ui-process-h5 0.1.12 → 0.1.14

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.
@@ -114,18 +114,3498 @@ if (typeof window !== 'undefined') {
114
114
 
115
115
  ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
116
116
  var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
117
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=template&id=2cd1004b&ts=true
117
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=template&id=fd1f1ce4&scoped=true&ts=true
118
118
 
119
+ const _withScopeId = n => ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.pushScopeId)("data-v-fd1f1ce4"), n = n(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.popScopeId)(), n);
119
120
  const _hoisted_1 = {
120
121
  class: "process-warp"
121
122
  };
123
+ const _hoisted_2 = {
124
+ key: 0,
125
+ class: "process-main"
126
+ };
127
+ const _hoisted_3 = {
128
+ class: "process-ml-item border"
129
+ };
130
+ const _hoisted_4 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
131
+ class: "process-mli-name"
132
+ }, "流程状态", -1));
133
+ const _hoisted_5 = {
134
+ class: "process-mli-value"
135
+ };
136
+ const _hoisted_6 = {
137
+ class: "process-ml-item border"
138
+ };
139
+ const _hoisted_7 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
140
+ class: "process-mli-name"
141
+ }, "流程发起时间", -1));
142
+ const _hoisted_8 = {
143
+ class: "process-mli-value"
144
+ };
145
+ const _hoisted_9 = {
146
+ key: 0,
147
+ class: "process-ml-item"
148
+ };
149
+ const _hoisted_10 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
150
+ class: "process-mli-name"
151
+ }, "审批节点", -1));
152
+ const _hoisted_11 = {
153
+ class: "process-mli-value"
154
+ };
155
+ const _hoisted_12 = {
156
+ class: "process-mliv-jd"
157
+ };
122
158
  function render(_ctx, _cache, $props, $setup, $data, $options) {
123
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_1, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($setup.host) + " ", 1);
159
+ return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($setup.HOST) + " " + (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($setup.BASE) + " ", 1), $setup.processStatus.status ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", _hoisted_3, [_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", _hoisted_5, [$setup.processStatus.status || $setup.processStatus.bizStatusName ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
160
+ key: 0,
161
+ class: "process-mliv-dd",
162
+ style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)({
163
+ background: $options.getColor($setup.processStatus.status)
164
+ })
165
+ }, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($setup.processStatus.bizStatusName ? $setup.processStatus.bizStatusName : $setup.processStatus.status), 5)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", _hoisted_6, [_hoisted_7, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", _hoisted_8, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($setup.processStatus.createTime), 1)])]), $setup.processStatus.allUserNames && $setup.processStatus.allUserNames.length ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_9, [_hoisted_10, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", _hoisted_11, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("span", _hoisted_12, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(`${$setup.processStatus.taskState == 4 ? $setup.processStatus.currUserName : $setup.processStatus.allUserNames.toString()}审批中`), 1)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
166
+ }
167
+ ;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=fd1f1ce4&scoped=true&ts=true
168
+
169
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/bind.js
170
+
171
+
172
+ function bind(fn, thisArg) {
173
+ return function wrap() {
174
+ return fn.apply(thisArg, arguments);
175
+ };
176
+ }
177
+
178
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/utils.js
179
+
180
+
181
+
182
+
183
+ // utils is a library of generic helper functions non-specific to axios
184
+
185
+ const {toString: utils_toString} = Object.prototype;
186
+ const {getPrototypeOf} = Object;
187
+
188
+ const kindOf = (cache => thing => {
189
+ const str = utils_toString.call(thing);
190
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
191
+ })(Object.create(null));
192
+
193
+ const kindOfTest = (type) => {
194
+ type = type.toLowerCase();
195
+ return (thing) => kindOf(thing) === type
196
+ }
197
+
198
+ const typeOfTest = type => thing => typeof thing === type;
199
+
200
+ /**
201
+ * Determine if a value is an Array
202
+ *
203
+ * @param {Object} val The value to test
204
+ *
205
+ * @returns {boolean} True if value is an Array, otherwise false
206
+ */
207
+ const {isArray} = Array;
208
+
209
+ /**
210
+ * Determine if a value is undefined
211
+ *
212
+ * @param {*} val The value to test
213
+ *
214
+ * @returns {boolean} True if the value is undefined, otherwise false
215
+ */
216
+ const isUndefined = typeOfTest('undefined');
217
+
218
+ /**
219
+ * Determine if a value is a Buffer
220
+ *
221
+ * @param {*} val The value to test
222
+ *
223
+ * @returns {boolean} True if value is a Buffer, otherwise false
224
+ */
225
+ function isBuffer(val) {
226
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
227
+ && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
228
+ }
229
+
230
+ /**
231
+ * Determine if a value is an ArrayBuffer
232
+ *
233
+ * @param {*} val The value to test
234
+ *
235
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
236
+ */
237
+ const isArrayBuffer = kindOfTest('ArrayBuffer');
238
+
239
+
240
+ /**
241
+ * Determine if a value is a view on an ArrayBuffer
242
+ *
243
+ * @param {*} val The value to test
244
+ *
245
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
246
+ */
247
+ function isArrayBufferView(val) {
248
+ let result;
249
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
250
+ result = ArrayBuffer.isView(val);
251
+ } else {
252
+ result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
253
+ }
254
+ return result;
255
+ }
256
+
257
+ /**
258
+ * Determine if a value is a String
259
+ *
260
+ * @param {*} val The value to test
261
+ *
262
+ * @returns {boolean} True if value is a String, otherwise false
263
+ */
264
+ const isString = typeOfTest('string');
265
+
266
+ /**
267
+ * Determine if a value is a Function
268
+ *
269
+ * @param {*} val The value to test
270
+ * @returns {boolean} True if value is a Function, otherwise false
271
+ */
272
+ const isFunction = typeOfTest('function');
273
+
274
+ /**
275
+ * Determine if a value is a Number
276
+ *
277
+ * @param {*} val The value to test
278
+ *
279
+ * @returns {boolean} True if value is a Number, otherwise false
280
+ */
281
+ const isNumber = typeOfTest('number');
282
+
283
+ /**
284
+ * Determine if a value is an Object
285
+ *
286
+ * @param {*} thing The value to test
287
+ *
288
+ * @returns {boolean} True if value is an Object, otherwise false
289
+ */
290
+ const isObject = (thing) => thing !== null && typeof thing === 'object';
291
+
292
+ /**
293
+ * Determine if a value is a Boolean
294
+ *
295
+ * @param {*} thing The value to test
296
+ * @returns {boolean} True if value is a Boolean, otherwise false
297
+ */
298
+ const isBoolean = thing => thing === true || thing === false;
299
+
300
+ /**
301
+ * Determine if a value is a plain Object
302
+ *
303
+ * @param {*} val The value to test
304
+ *
305
+ * @returns {boolean} True if value is a plain Object, otherwise false
306
+ */
307
+ const isPlainObject = (val) => {
308
+ if (kindOf(val) !== 'object') {
309
+ return false;
310
+ }
311
+
312
+ const prototype = getPrototypeOf(val);
313
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
314
+ }
315
+
316
+ /**
317
+ * Determine if a value is a Date
318
+ *
319
+ * @param {*} val The value to test
320
+ *
321
+ * @returns {boolean} True if value is a Date, otherwise false
322
+ */
323
+ const isDate = kindOfTest('Date');
324
+
325
+ /**
326
+ * Determine if a value is a File
327
+ *
328
+ * @param {*} val The value to test
329
+ *
330
+ * @returns {boolean} True if value is a File, otherwise false
331
+ */
332
+ const isFile = kindOfTest('File');
333
+
334
+ /**
335
+ * Determine if a value is a Blob
336
+ *
337
+ * @param {*} val The value to test
338
+ *
339
+ * @returns {boolean} True if value is a Blob, otherwise false
340
+ */
341
+ const isBlob = kindOfTest('Blob');
342
+
343
+ /**
344
+ * Determine if a value is a FileList
345
+ *
346
+ * @param {*} val The value to test
347
+ *
348
+ * @returns {boolean} True if value is a File, otherwise false
349
+ */
350
+ const isFileList = kindOfTest('FileList');
351
+
352
+ /**
353
+ * Determine if a value is a Stream
354
+ *
355
+ * @param {*} val The value to test
356
+ *
357
+ * @returns {boolean} True if value is a Stream, otherwise false
358
+ */
359
+ const isStream = (val) => isObject(val) && isFunction(val.pipe);
360
+
361
+ /**
362
+ * Determine if a value is a FormData
363
+ *
364
+ * @param {*} thing The value to test
365
+ *
366
+ * @returns {boolean} True if value is an FormData, otherwise false
367
+ */
368
+ const isFormData = (thing) => {
369
+ const pattern = '[object FormData]';
370
+ return thing && (
371
+ (typeof FormData === 'function' && thing instanceof FormData) ||
372
+ utils_toString.call(thing) === pattern ||
373
+ (isFunction(thing.toString) && thing.toString() === pattern)
374
+ );
375
+ }
376
+
377
+ /**
378
+ * Determine if a value is a URLSearchParams object
379
+ *
380
+ * @param {*} val The value to test
381
+ *
382
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
383
+ */
384
+ const isURLSearchParams = kindOfTest('URLSearchParams');
385
+
386
+ /**
387
+ * Trim excess whitespace off the beginning and end of a string
388
+ *
389
+ * @param {String} str The String to trim
390
+ *
391
+ * @returns {String} The String freed of excess whitespace
392
+ */
393
+ const trim = (str) => str.trim ?
394
+ str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
395
+
396
+ /**
397
+ * Iterate over an Array or an Object invoking a function for each item.
398
+ *
399
+ * If `obj` is an Array callback will be called passing
400
+ * the value, index, and complete array for each item.
401
+ *
402
+ * If 'obj' is an Object callback will be called passing
403
+ * the value, key, and complete object for each property.
404
+ *
405
+ * @param {Object|Array} obj The object to iterate
406
+ * @param {Function} fn The callback to invoke for each item
407
+ *
408
+ * @param {Boolean} [allOwnKeys = false]
409
+ * @returns {any}
410
+ */
411
+ function forEach(obj, fn, {allOwnKeys = false} = {}) {
412
+ // Don't bother if no value provided
413
+ if (obj === null || typeof obj === 'undefined') {
414
+ return;
415
+ }
416
+
417
+ let i;
418
+ let l;
419
+
420
+ // Force an array if not already something iterable
421
+ if (typeof obj !== 'object') {
422
+ /*eslint no-param-reassign:0*/
423
+ obj = [obj];
424
+ }
425
+
426
+ if (isArray(obj)) {
427
+ // Iterate over array values
428
+ for (i = 0, l = obj.length; i < l; i++) {
429
+ fn.call(null, obj[i], i, obj);
430
+ }
431
+ } else {
432
+ // Iterate over object keys
433
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
434
+ const len = keys.length;
435
+ let key;
436
+
437
+ for (i = 0; i < len; i++) {
438
+ key = keys[i];
439
+ fn.call(null, obj[key], key, obj);
440
+ }
441
+ }
442
+ }
443
+
444
+ function findKey(obj, key) {
445
+ key = key.toLowerCase();
446
+ const keys = Object.keys(obj);
447
+ let i = keys.length;
448
+ let _key;
449
+ while (i-- > 0) {
450
+ _key = keys[i];
451
+ if (key === _key.toLowerCase()) {
452
+ return _key;
453
+ }
454
+ }
455
+ return null;
456
+ }
457
+
458
+ const _global = (() => {
459
+ /*eslint no-undef:0*/
460
+ if (typeof globalThis !== "undefined") return globalThis;
461
+ return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
462
+ })();
463
+
464
+ const isContextDefined = (context) => !isUndefined(context) && context !== _global;
465
+
466
+ /**
467
+ * Accepts varargs expecting each argument to be an object, then
468
+ * immutably merges the properties of each object and returns result.
469
+ *
470
+ * When multiple objects contain the same key the later object in
471
+ * the arguments list will take precedence.
472
+ *
473
+ * Example:
474
+ *
475
+ * ```js
476
+ * var result = merge({foo: 123}, {foo: 456});
477
+ * console.log(result.foo); // outputs 456
478
+ * ```
479
+ *
480
+ * @param {Object} obj1 Object to merge
481
+ *
482
+ * @returns {Object} Result of all merge properties
483
+ */
484
+ function merge(/* obj1, obj2, obj3, ... */) {
485
+ const {caseless} = isContextDefined(this) && this || {};
486
+ const result = {};
487
+ const assignValue = (val, key) => {
488
+ const targetKey = caseless && findKey(result, key) || key;
489
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
490
+ result[targetKey] = merge(result[targetKey], val);
491
+ } else if (isPlainObject(val)) {
492
+ result[targetKey] = merge({}, val);
493
+ } else if (isArray(val)) {
494
+ result[targetKey] = val.slice();
495
+ } else {
496
+ result[targetKey] = val;
497
+ }
498
+ }
499
+
500
+ for (let i = 0, l = arguments.length; i < l; i++) {
501
+ arguments[i] && forEach(arguments[i], assignValue);
502
+ }
503
+ return result;
504
+ }
505
+
506
+ /**
507
+ * Extends object a by mutably adding to it the properties of object b.
508
+ *
509
+ * @param {Object} a The object to be extended
510
+ * @param {Object} b The object to copy properties from
511
+ * @param {Object} thisArg The object to bind function to
512
+ *
513
+ * @param {Boolean} [allOwnKeys]
514
+ * @returns {Object} The resulting value of object a
515
+ */
516
+ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
517
+ forEach(b, (val, key) => {
518
+ if (thisArg && isFunction(val)) {
519
+ a[key] = bind(val, thisArg);
520
+ } else {
521
+ a[key] = val;
522
+ }
523
+ }, {allOwnKeys});
524
+ return a;
525
+ }
526
+
527
+ /**
528
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
529
+ *
530
+ * @param {string} content with BOM
531
+ *
532
+ * @returns {string} content value without BOM
533
+ */
534
+ const stripBOM = (content) => {
535
+ if (content.charCodeAt(0) === 0xFEFF) {
536
+ content = content.slice(1);
537
+ }
538
+ return content;
539
+ }
540
+
541
+ /**
542
+ * Inherit the prototype methods from one constructor into another
543
+ * @param {function} constructor
544
+ * @param {function} superConstructor
545
+ * @param {object} [props]
546
+ * @param {object} [descriptors]
547
+ *
548
+ * @returns {void}
549
+ */
550
+ const inherits = (constructor, superConstructor, props, descriptors) => {
551
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
552
+ constructor.prototype.constructor = constructor;
553
+ Object.defineProperty(constructor, 'super', {
554
+ value: superConstructor.prototype
555
+ });
556
+ props && Object.assign(constructor.prototype, props);
557
+ }
558
+
559
+ /**
560
+ * Resolve object with deep prototype chain to a flat object
561
+ * @param {Object} sourceObj source object
562
+ * @param {Object} [destObj]
563
+ * @param {Function|Boolean} [filter]
564
+ * @param {Function} [propFilter]
565
+ *
566
+ * @returns {Object}
567
+ */
568
+ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
569
+ let props;
570
+ let i;
571
+ let prop;
572
+ const merged = {};
573
+
574
+ destObj = destObj || {};
575
+ // eslint-disable-next-line no-eq-null,eqeqeq
576
+ if (sourceObj == null) return destObj;
577
+
578
+ do {
579
+ props = Object.getOwnPropertyNames(sourceObj);
580
+ i = props.length;
581
+ while (i-- > 0) {
582
+ prop = props[i];
583
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
584
+ destObj[prop] = sourceObj[prop];
585
+ merged[prop] = true;
586
+ }
587
+ }
588
+ sourceObj = filter !== false && getPrototypeOf(sourceObj);
589
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
590
+
591
+ return destObj;
592
+ }
593
+
594
+ /**
595
+ * Determines whether a string ends with the characters of a specified string
596
+ *
597
+ * @param {String} str
598
+ * @param {String} searchString
599
+ * @param {Number} [position= 0]
600
+ *
601
+ * @returns {boolean}
602
+ */
603
+ const endsWith = (str, searchString, position) => {
604
+ str = String(str);
605
+ if (position === undefined || position > str.length) {
606
+ position = str.length;
607
+ }
608
+ position -= searchString.length;
609
+ const lastIndex = str.indexOf(searchString, position);
610
+ return lastIndex !== -1 && lastIndex === position;
611
+ }
612
+
613
+
614
+ /**
615
+ * Returns new array from array like object or null if failed
616
+ *
617
+ * @param {*} [thing]
618
+ *
619
+ * @returns {?Array}
620
+ */
621
+ const toArray = (thing) => {
622
+ if (!thing) return null;
623
+ if (isArray(thing)) return thing;
624
+ let i = thing.length;
625
+ if (!isNumber(i)) return null;
626
+ const arr = new Array(i);
627
+ while (i-- > 0) {
628
+ arr[i] = thing[i];
629
+ }
630
+ return arr;
631
+ }
632
+
633
+ /**
634
+ * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
635
+ * thing passed in is an instance of Uint8Array
636
+ *
637
+ * @param {TypedArray}
638
+ *
639
+ * @returns {Array}
640
+ */
641
+ // eslint-disable-next-line func-names
642
+ const isTypedArray = (TypedArray => {
643
+ // eslint-disable-next-line func-names
644
+ return thing => {
645
+ return TypedArray && thing instanceof TypedArray;
646
+ };
647
+ })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
648
+
649
+ /**
650
+ * For each entry in the object, call the function with the key and value.
651
+ *
652
+ * @param {Object<any, any>} obj - The object to iterate over.
653
+ * @param {Function} fn - The function to call for each entry.
654
+ *
655
+ * @returns {void}
656
+ */
657
+ const forEachEntry = (obj, fn) => {
658
+ const generator = obj && obj[Symbol.iterator];
659
+
660
+ const iterator = generator.call(obj);
661
+
662
+ let result;
663
+
664
+ while ((result = iterator.next()) && !result.done) {
665
+ const pair = result.value;
666
+ fn.call(obj, pair[0], pair[1]);
667
+ }
668
+ }
669
+
670
+ /**
671
+ * It takes a regular expression and a string, and returns an array of all the matches
672
+ *
673
+ * @param {string} regExp - The regular expression to match against.
674
+ * @param {string} str - The string to search.
675
+ *
676
+ * @returns {Array<boolean>}
677
+ */
678
+ const matchAll = (regExp, str) => {
679
+ let matches;
680
+ const arr = [];
681
+
682
+ while ((matches = regExp.exec(str)) !== null) {
683
+ arr.push(matches);
684
+ }
685
+
686
+ return arr;
687
+ }
688
+
689
+ /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
690
+ const isHTMLForm = kindOfTest('HTMLFormElement');
691
+
692
+ const toCamelCase = str => {
693
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
694
+ function replacer(m, p1, p2) {
695
+ return p1.toUpperCase() + p2;
696
+ }
697
+ );
698
+ };
699
+
700
+ /* Creating a function that will check if an object has a property. */
701
+ const utils_hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
702
+
703
+ /**
704
+ * Determine if a value is a RegExp object
705
+ *
706
+ * @param {*} val The value to test
707
+ *
708
+ * @returns {boolean} True if value is a RegExp object, otherwise false
709
+ */
710
+ const isRegExp = kindOfTest('RegExp');
711
+
712
+ const reduceDescriptors = (obj, reducer) => {
713
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
714
+ const reducedDescriptors = {};
715
+
716
+ forEach(descriptors, (descriptor, name) => {
717
+ if (reducer(descriptor, name, obj) !== false) {
718
+ reducedDescriptors[name] = descriptor;
719
+ }
720
+ });
721
+
722
+ Object.defineProperties(obj, reducedDescriptors);
723
+ }
724
+
725
+ /**
726
+ * Makes all methods read-only
727
+ * @param {Object} obj
728
+ */
729
+
730
+ const freezeMethods = (obj) => {
731
+ reduceDescriptors(obj, (descriptor, name) => {
732
+ // skip restricted props in strict mode
733
+ if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
734
+ return false;
735
+ }
736
+
737
+ const value = obj[name];
738
+
739
+ if (!isFunction(value)) return;
740
+
741
+ descriptor.enumerable = false;
742
+
743
+ if ('writable' in descriptor) {
744
+ descriptor.writable = false;
745
+ return;
746
+ }
747
+
748
+ if (!descriptor.set) {
749
+ descriptor.set = () => {
750
+ throw Error('Can not rewrite read-only method \'' + name + '\'');
751
+ };
752
+ }
753
+ });
754
+ }
755
+
756
+ const toObjectSet = (arrayOrString, delimiter) => {
757
+ const obj = {};
758
+
759
+ const define = (arr) => {
760
+ arr.forEach(value => {
761
+ obj[value] = true;
762
+ });
763
+ }
764
+
765
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
766
+
767
+ return obj;
768
+ }
769
+
770
+ const noop = () => {}
771
+
772
+ const toFiniteNumber = (value, defaultValue) => {
773
+ value = +value;
774
+ return Number.isFinite(value) ? value : defaultValue;
775
+ }
776
+
777
+ const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
778
+
779
+ const DIGIT = '0123456789';
780
+
781
+ const ALPHABET = {
782
+ DIGIT,
783
+ ALPHA,
784
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
785
+ }
786
+
787
+ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
788
+ let str = '';
789
+ const {length} = alphabet;
790
+ while (size--) {
791
+ str += alphabet[Math.random() * length|0]
792
+ }
793
+
794
+ return str;
795
+ }
796
+
797
+ /**
798
+ * If the thing is a FormData object, return true, otherwise return false.
799
+ *
800
+ * @param {unknown} thing - The thing to check.
801
+ *
802
+ * @returns {boolean}
803
+ */
804
+ function isSpecCompliantForm(thing) {
805
+ return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
806
+ }
807
+
808
+ const toJSONObject = (obj) => {
809
+ const stack = new Array(10);
810
+
811
+ const visit = (source, i) => {
812
+
813
+ if (isObject(source)) {
814
+ if (stack.indexOf(source) >= 0) {
815
+ return;
816
+ }
817
+
818
+ if(!('toJSON' in source)) {
819
+ stack[i] = source;
820
+ const target = isArray(source) ? [] : {};
821
+
822
+ forEach(source, (value, key) => {
823
+ const reducedValue = visit(value, i + 1);
824
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
825
+ });
826
+
827
+ stack[i] = undefined;
828
+
829
+ return target;
830
+ }
831
+ }
832
+
833
+ return source;
834
+ }
835
+
836
+ return visit(obj, 0);
837
+ }
838
+
839
+ /* harmony default export */ var utils = ({
840
+ isArray,
841
+ isArrayBuffer,
842
+ isBuffer,
843
+ isFormData,
844
+ isArrayBufferView,
845
+ isString,
846
+ isNumber,
847
+ isBoolean,
848
+ isObject,
849
+ isPlainObject,
850
+ isUndefined,
851
+ isDate,
852
+ isFile,
853
+ isBlob,
854
+ isRegExp,
855
+ isFunction,
856
+ isStream,
857
+ isURLSearchParams,
858
+ isTypedArray,
859
+ isFileList,
860
+ forEach,
861
+ merge,
862
+ extend,
863
+ trim,
864
+ stripBOM,
865
+ inherits,
866
+ toFlatObject,
867
+ kindOf,
868
+ kindOfTest,
869
+ endsWith,
870
+ toArray,
871
+ forEachEntry,
872
+ matchAll,
873
+ isHTMLForm,
874
+ hasOwnProperty: utils_hasOwnProperty,
875
+ hasOwnProp: utils_hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
876
+ reduceDescriptors,
877
+ freezeMethods,
878
+ toObjectSet,
879
+ toCamelCase,
880
+ noop,
881
+ toFiniteNumber,
882
+ findKey,
883
+ global: _global,
884
+ isContextDefined,
885
+ ALPHABET,
886
+ generateString,
887
+ isSpecCompliantForm,
888
+ toJSONObject
889
+ });
890
+
891
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/AxiosError.js
892
+
893
+
894
+
895
+
896
+ /**
897
+ * Create an Error with the specified message, config, error code, request and response.
898
+ *
899
+ * @param {string} message The error message.
900
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
901
+ * @param {Object} [config] The config.
902
+ * @param {Object} [request] The request.
903
+ * @param {Object} [response] The response.
904
+ *
905
+ * @returns {Error} The created error.
906
+ */
907
+ function AxiosError(message, code, config, request, response) {
908
+ Error.call(this);
909
+
910
+ if (Error.captureStackTrace) {
911
+ Error.captureStackTrace(this, this.constructor);
912
+ } else {
913
+ this.stack = (new Error()).stack;
914
+ }
915
+
916
+ this.message = message;
917
+ this.name = 'AxiosError';
918
+ code && (this.code = code);
919
+ config && (this.config = config);
920
+ request && (this.request = request);
921
+ response && (this.response = response);
922
+ }
923
+
924
+ utils.inherits(AxiosError, Error, {
925
+ toJSON: function toJSON() {
926
+ return {
927
+ // Standard
928
+ message: this.message,
929
+ name: this.name,
930
+ // Microsoft
931
+ description: this.description,
932
+ number: this.number,
933
+ // Mozilla
934
+ fileName: this.fileName,
935
+ lineNumber: this.lineNumber,
936
+ columnNumber: this.columnNumber,
937
+ stack: this.stack,
938
+ // Axios
939
+ config: utils.toJSONObject(this.config),
940
+ code: this.code,
941
+ status: this.response && this.response.status ? this.response.status : null
942
+ };
943
+ }
944
+ });
945
+
946
+ const AxiosError_prototype = AxiosError.prototype;
947
+ const descriptors = {};
948
+
949
+ [
950
+ 'ERR_BAD_OPTION_VALUE',
951
+ 'ERR_BAD_OPTION',
952
+ 'ECONNABORTED',
953
+ 'ETIMEDOUT',
954
+ 'ERR_NETWORK',
955
+ 'ERR_FR_TOO_MANY_REDIRECTS',
956
+ 'ERR_DEPRECATED',
957
+ 'ERR_BAD_RESPONSE',
958
+ 'ERR_BAD_REQUEST',
959
+ 'ERR_CANCELED',
960
+ 'ERR_NOT_SUPPORT',
961
+ 'ERR_INVALID_URL'
962
+ // eslint-disable-next-line func-names
963
+ ].forEach(code => {
964
+ descriptors[code] = {value: code};
965
+ });
966
+
967
+ Object.defineProperties(AxiosError, descriptors);
968
+ Object.defineProperty(AxiosError_prototype, 'isAxiosError', {value: true});
969
+
970
+ // eslint-disable-next-line func-names
971
+ AxiosError.from = (error, code, config, request, response, customProps) => {
972
+ const axiosError = Object.create(AxiosError_prototype);
973
+
974
+ utils.toFlatObject(error, axiosError, function filter(obj) {
975
+ return obj !== Error.prototype;
976
+ }, prop => {
977
+ return prop !== 'isAxiosError';
978
+ });
979
+
980
+ AxiosError.call(axiosError, error.message, code, config, request, response);
981
+
982
+ axiosError.cause = error;
983
+
984
+ axiosError.name = error.name;
985
+
986
+ customProps && Object.assign(axiosError, customProps);
987
+
988
+ return axiosError;
989
+ };
990
+
991
+ /* harmony default export */ var core_AxiosError = (AxiosError);
992
+
993
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/null.js
994
+ // eslint-disable-next-line strict
995
+ /* harmony default export */ var helpers_null = (null);
996
+
997
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/toFormData.js
998
+
999
+
1000
+
1001
+
1002
+ // temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
1003
+
1004
+
1005
+ /**
1006
+ * Determines if the given thing is a array or js object.
1007
+ *
1008
+ * @param {string} thing - The object or array to be visited.
1009
+ *
1010
+ * @returns {boolean}
1011
+ */
1012
+ function isVisitable(thing) {
1013
+ return utils.isPlainObject(thing) || utils.isArray(thing);
1014
+ }
1015
+
1016
+ /**
1017
+ * It removes the brackets from the end of a string
1018
+ *
1019
+ * @param {string} key - The key of the parameter.
1020
+ *
1021
+ * @returns {string} the key without the brackets.
1022
+ */
1023
+ function removeBrackets(key) {
1024
+ return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;
1025
+ }
1026
+
1027
+ /**
1028
+ * It takes a path, a key, and a boolean, and returns a string
1029
+ *
1030
+ * @param {string} path - The path to the current key.
1031
+ * @param {string} key - The key of the current object being iterated over.
1032
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
1033
+ *
1034
+ * @returns {string} The path to the current key.
1035
+ */
1036
+ function renderKey(path, key, dots) {
1037
+ if (!path) return key;
1038
+ return path.concat(key).map(function each(token, i) {
1039
+ // eslint-disable-next-line no-param-reassign
1040
+ token = removeBrackets(token);
1041
+ return !dots && i ? '[' + token + ']' : token;
1042
+ }).join(dots ? '.' : '');
1043
+ }
1044
+
1045
+ /**
1046
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
1047
+ *
1048
+ * @param {Array<any>} arr - The array to check
1049
+ *
1050
+ * @returns {boolean}
1051
+ */
1052
+ function isFlatArray(arr) {
1053
+ return utils.isArray(arr) && !arr.some(isVisitable);
1054
+ }
1055
+
1056
+ const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
1057
+ return /^is[A-Z]/.test(prop);
1058
+ });
1059
+
1060
+ /**
1061
+ * Convert a data object to FormData
1062
+ *
1063
+ * @param {Object} obj
1064
+ * @param {?Object} [formData]
1065
+ * @param {?Object} [options]
1066
+ * @param {Function} [options.visitor]
1067
+ * @param {Boolean} [options.metaTokens = true]
1068
+ * @param {Boolean} [options.dots = false]
1069
+ * @param {?Boolean} [options.indexes = false]
1070
+ *
1071
+ * @returns {Object}
1072
+ **/
1073
+
1074
+ /**
1075
+ * It converts an object into a FormData object
1076
+ *
1077
+ * @param {Object<any, any>} obj - The object to convert to form data.
1078
+ * @param {string} formData - The FormData object to append to.
1079
+ * @param {Object<string, any>} options
1080
+ *
1081
+ * @returns
1082
+ */
1083
+ function toFormData(obj, formData, options) {
1084
+ if (!utils.isObject(obj)) {
1085
+ throw new TypeError('target must be an object');
1086
+ }
1087
+
1088
+ // eslint-disable-next-line no-param-reassign
1089
+ formData = formData || new (helpers_null || FormData)();
1090
+
1091
+ // eslint-disable-next-line no-param-reassign
1092
+ options = utils.toFlatObject(options, {
1093
+ metaTokens: true,
1094
+ dots: false,
1095
+ indexes: false
1096
+ }, false, function defined(option, source) {
1097
+ // eslint-disable-next-line no-eq-null,eqeqeq
1098
+ return !utils.isUndefined(source[option]);
1099
+ });
1100
+
1101
+ const metaTokens = options.metaTokens;
1102
+ // eslint-disable-next-line no-use-before-define
1103
+ const visitor = options.visitor || defaultVisitor;
1104
+ const dots = options.dots;
1105
+ const indexes = options.indexes;
1106
+ const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
1107
+ const useBlob = _Blob && utils.isSpecCompliantForm(formData);
1108
+
1109
+ if (!utils.isFunction(visitor)) {
1110
+ throw new TypeError('visitor must be a function');
1111
+ }
1112
+
1113
+ function convertValue(value) {
1114
+ if (value === null) return '';
1115
+
1116
+ if (utils.isDate(value)) {
1117
+ return value.toISOString();
1118
+ }
1119
+
1120
+ if (!useBlob && utils.isBlob(value)) {
1121
+ throw new core_AxiosError('Blob is not supported. Use a Buffer instead.');
1122
+ }
1123
+
1124
+ if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
1125
+ return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
1126
+ }
1127
+
1128
+ return value;
1129
+ }
1130
+
1131
+ /**
1132
+ * Default visitor.
1133
+ *
1134
+ * @param {*} value
1135
+ * @param {String|Number} key
1136
+ * @param {Array<String|Number>} path
1137
+ * @this {FormData}
1138
+ *
1139
+ * @returns {boolean} return true to visit the each prop of the value recursively
1140
+ */
1141
+ function defaultVisitor(value, key, path) {
1142
+ let arr = value;
1143
+
1144
+ if (value && !path && typeof value === 'object') {
1145
+ if (utils.endsWith(key, '{}')) {
1146
+ // eslint-disable-next-line no-param-reassign
1147
+ key = metaTokens ? key : key.slice(0, -2);
1148
+ // eslint-disable-next-line no-param-reassign
1149
+ value = JSON.stringify(value);
1150
+ } else if (
1151
+ (utils.isArray(value) && isFlatArray(value)) ||
1152
+ ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
1153
+ )) {
1154
+ // eslint-disable-next-line no-param-reassign
1155
+ key = removeBrackets(key);
1156
+
1157
+ arr.forEach(function each(el, index) {
1158
+ !(utils.isUndefined(el) || el === null) && formData.append(
1159
+ // eslint-disable-next-line no-nested-ternary
1160
+ indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
1161
+ convertValue(el)
1162
+ );
1163
+ });
1164
+ return false;
1165
+ }
1166
+ }
1167
+
1168
+ if (isVisitable(value)) {
1169
+ return true;
1170
+ }
1171
+
1172
+ formData.append(renderKey(path, key, dots), convertValue(value));
1173
+
1174
+ return false;
1175
+ }
1176
+
1177
+ const stack = [];
1178
+
1179
+ const exposedHelpers = Object.assign(predicates, {
1180
+ defaultVisitor,
1181
+ convertValue,
1182
+ isVisitable
1183
+ });
1184
+
1185
+ function build(value, path) {
1186
+ if (utils.isUndefined(value)) return;
1187
+
1188
+ if (stack.indexOf(value) !== -1) {
1189
+ throw Error('Circular reference detected in ' + path.join('.'));
1190
+ }
1191
+
1192
+ stack.push(value);
1193
+
1194
+ utils.forEach(value, function each(el, key) {
1195
+ const result = !(utils.isUndefined(el) || el === null) && visitor.call(
1196
+ formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers
1197
+ );
1198
+
1199
+ if (result === true) {
1200
+ build(el, path ? path.concat(key) : [key]);
1201
+ }
1202
+ });
1203
+
1204
+ stack.pop();
1205
+ }
1206
+
1207
+ if (!utils.isObject(obj)) {
1208
+ throw new TypeError('data must be an object');
1209
+ }
1210
+
1211
+ build(obj);
1212
+
1213
+ return formData;
1214
+ }
1215
+
1216
+ /* harmony default export */ var helpers_toFormData = (toFormData);
1217
+
1218
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/AxiosURLSearchParams.js
1219
+
1220
+
1221
+
1222
+
1223
+ /**
1224
+ * It encodes a string by replacing all characters that are not in the unreserved set with
1225
+ * their percent-encoded equivalents
1226
+ *
1227
+ * @param {string} str - The string to encode.
1228
+ *
1229
+ * @returns {string} The encoded string.
1230
+ */
1231
+ function encode(str) {
1232
+ const charMap = {
1233
+ '!': '%21',
1234
+ "'": '%27',
1235
+ '(': '%28',
1236
+ ')': '%29',
1237
+ '~': '%7E',
1238
+ '%20': '+',
1239
+ '%00': '\x00'
1240
+ };
1241
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
1242
+ return charMap[match];
1243
+ });
1244
+ }
1245
+
1246
+ /**
1247
+ * It takes a params object and converts it to a FormData object
1248
+ *
1249
+ * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
1250
+ * @param {Object<string, any>} options - The options object passed to the Axios constructor.
1251
+ *
1252
+ * @returns {void}
1253
+ */
1254
+ function AxiosURLSearchParams(params, options) {
1255
+ this._pairs = [];
1256
+
1257
+ params && helpers_toFormData(params, this, options);
1258
+ }
1259
+
1260
+ const AxiosURLSearchParams_prototype = AxiosURLSearchParams.prototype;
1261
+
1262
+ AxiosURLSearchParams_prototype.append = function append(name, value) {
1263
+ this._pairs.push([name, value]);
1264
+ };
1265
+
1266
+ AxiosURLSearchParams_prototype.toString = function toString(encoder) {
1267
+ const _encode = encoder ? function(value) {
1268
+ return encoder.call(this, value, encode);
1269
+ } : encode;
1270
+
1271
+ return this._pairs.map(function each(pair) {
1272
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
1273
+ }, '').join('&');
1274
+ };
1275
+
1276
+ /* harmony default export */ var helpers_AxiosURLSearchParams = (AxiosURLSearchParams);
1277
+
1278
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/buildURL.js
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+ /**
1285
+ * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
1286
+ * URI encoded counterparts
1287
+ *
1288
+ * @param {string} val The value to be encoded.
1289
+ *
1290
+ * @returns {string} The encoded value.
1291
+ */
1292
+ function buildURL_encode(val) {
1293
+ return encodeURIComponent(val).
1294
+ replace(/%3A/gi, ':').
1295
+ replace(/%24/g, '$').
1296
+ replace(/%2C/gi, ',').
1297
+ replace(/%20/g, '+').
1298
+ replace(/%5B/gi, '[').
1299
+ replace(/%5D/gi, ']');
1300
+ }
1301
+
1302
+ /**
1303
+ * Build a URL by appending params to the end
1304
+ *
1305
+ * @param {string} url The base of the url (e.g., http://www.google.com)
1306
+ * @param {object} [params] The params to be appended
1307
+ * @param {?object} options
1308
+ *
1309
+ * @returns {string} The formatted url
1310
+ */
1311
+ function buildURL(url, params, options) {
1312
+ /*eslint no-param-reassign:0*/
1313
+ if (!params) {
1314
+ return url;
1315
+ }
1316
+
1317
+ const _encode = options && options.encode || buildURL_encode;
1318
+
1319
+ const serializeFn = options && options.serialize;
1320
+
1321
+ let serializedParams;
1322
+
1323
+ if (serializeFn) {
1324
+ serializedParams = serializeFn(params, options);
1325
+ } else {
1326
+ serializedParams = utils.isURLSearchParams(params) ?
1327
+ params.toString() :
1328
+ new helpers_AxiosURLSearchParams(params, options).toString(_encode);
1329
+ }
1330
+
1331
+ if (serializedParams) {
1332
+ const hashmarkIndex = url.indexOf("#");
1333
+
1334
+ if (hashmarkIndex !== -1) {
1335
+ url = url.slice(0, hashmarkIndex);
1336
+ }
1337
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
1338
+ }
1339
+
1340
+ return url;
1341
+ }
1342
+
1343
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/InterceptorManager.js
1344
+
1345
+
1346
+
1347
+
1348
+ class InterceptorManager {
1349
+ constructor() {
1350
+ this.handlers = [];
1351
+ }
1352
+
1353
+ /**
1354
+ * Add a new interceptor to the stack
1355
+ *
1356
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
1357
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
1358
+ *
1359
+ * @return {Number} An ID used to remove interceptor later
1360
+ */
1361
+ use(fulfilled, rejected, options) {
1362
+ this.handlers.push({
1363
+ fulfilled,
1364
+ rejected,
1365
+ synchronous: options ? options.synchronous : false,
1366
+ runWhen: options ? options.runWhen : null
1367
+ });
1368
+ return this.handlers.length - 1;
1369
+ }
1370
+
1371
+ /**
1372
+ * Remove an interceptor from the stack
1373
+ *
1374
+ * @param {Number} id The ID that was returned by `use`
1375
+ *
1376
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
1377
+ */
1378
+ eject(id) {
1379
+ if (this.handlers[id]) {
1380
+ this.handlers[id] = null;
1381
+ }
1382
+ }
1383
+
1384
+ /**
1385
+ * Clear all interceptors from the stack
1386
+ *
1387
+ * @returns {void}
1388
+ */
1389
+ clear() {
1390
+ if (this.handlers) {
1391
+ this.handlers = [];
1392
+ }
1393
+ }
1394
+
1395
+ /**
1396
+ * Iterate over all the registered interceptors
1397
+ *
1398
+ * This method is particularly useful for skipping over any
1399
+ * interceptors that may have become `null` calling `eject`.
1400
+ *
1401
+ * @param {Function} fn The function to call for each interceptor
1402
+ *
1403
+ * @returns {void}
1404
+ */
1405
+ forEach(fn) {
1406
+ utils.forEach(this.handlers, function forEachHandler(h) {
1407
+ if (h !== null) {
1408
+ fn(h);
1409
+ }
1410
+ });
1411
+ }
1412
+ }
1413
+
1414
+ /* harmony default export */ var core_InterceptorManager = (InterceptorManager);
1415
+
1416
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/defaults/transitional.js
1417
+
1418
+
1419
+ /* harmony default export */ var defaults_transitional = ({
1420
+ silentJSONParsing: true,
1421
+ forcedJSONParsing: true,
1422
+ clarifyTimeoutError: false
1423
+ });
1424
+
1425
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
1426
+
1427
+
1428
+
1429
+ /* harmony default export */ var classes_URLSearchParams = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : helpers_AxiosURLSearchParams);
1430
+
1431
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/classes/FormData.js
1432
+
1433
+
1434
+ /* harmony default export */ var classes_FormData = (typeof FormData !== 'undefined' ? FormData : null);
1435
+
1436
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/classes/Blob.js
1437
+
1438
+
1439
+ /* harmony default export */ var classes_Blob = (typeof Blob !== 'undefined' ? Blob : null);
1440
+
1441
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/platform/browser/index.js
1442
+
1443
+
1444
+
1445
+
1446
+ /**
1447
+ * Determine if we're running in a standard browser environment
1448
+ *
1449
+ * This allows axios to run in a web worker, and react-native.
1450
+ * Both environments support XMLHttpRequest, but not fully standard globals.
1451
+ *
1452
+ * web workers:
1453
+ * typeof window -> undefined
1454
+ * typeof document -> undefined
1455
+ *
1456
+ * react-native:
1457
+ * navigator.product -> 'ReactNative'
1458
+ * nativescript
1459
+ * navigator.product -> 'NativeScript' or 'NS'
1460
+ *
1461
+ * @returns {boolean}
1462
+ */
1463
+ const isStandardBrowserEnv = (() => {
1464
+ let product;
1465
+ if (typeof navigator !== 'undefined' && (
1466
+ (product = navigator.product) === 'ReactNative' ||
1467
+ product === 'NativeScript' ||
1468
+ product === 'NS')
1469
+ ) {
1470
+ return false;
1471
+ }
1472
+
1473
+ return typeof window !== 'undefined' && typeof document !== 'undefined';
1474
+ })();
1475
+
1476
+ /**
1477
+ * Determine if we're running in a standard browser webWorker environment
1478
+ *
1479
+ * Although the `isStandardBrowserEnv` method indicates that
1480
+ * `allows axios to run in a web worker`, the WebWorker will still be
1481
+ * filtered out due to its judgment standard
1482
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
1483
+ * This leads to a problem when axios post `FormData` in webWorker
1484
+ */
1485
+ const isStandardBrowserWebWorkerEnv = (() => {
1486
+ return (
1487
+ typeof WorkerGlobalScope !== 'undefined' &&
1488
+ // eslint-disable-next-line no-undef
1489
+ self instanceof WorkerGlobalScope &&
1490
+ typeof self.importScripts === 'function'
1491
+ );
1492
+ })();
1493
+
1494
+
1495
+ /* harmony default export */ var browser = ({
1496
+ isBrowser: true,
1497
+ classes: {
1498
+ URLSearchParams: classes_URLSearchParams,
1499
+ FormData: classes_FormData,
1500
+ Blob: classes_Blob
1501
+ },
1502
+ isStandardBrowserEnv,
1503
+ isStandardBrowserWebWorkerEnv,
1504
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
1505
+ });
1506
+
1507
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/toURLEncodedForm.js
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+
1514
+ function toURLEncodedForm(data, options) {
1515
+ return helpers_toFormData(data, new browser.classes.URLSearchParams(), Object.assign({
1516
+ visitor: function(value, key, path, helpers) {
1517
+ if (browser.isNode && utils.isBuffer(value)) {
1518
+ this.append(key, value.toString('base64'));
1519
+ return false;
1520
+ }
1521
+
1522
+ return helpers.defaultVisitor.apply(this, arguments);
1523
+ }
1524
+ }, options));
1525
+ }
1526
+
1527
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/formDataToJSON.js
1528
+
1529
+
1530
+
1531
+
1532
+ /**
1533
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
1534
+ *
1535
+ * @param {string} name - The name of the property to get.
1536
+ *
1537
+ * @returns An array of strings.
1538
+ */
1539
+ function parsePropPath(name) {
1540
+ // foo[x][y][z]
1541
+ // foo.x.y.z
1542
+ // foo-x-y-z
1543
+ // foo x y z
1544
+ return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
1545
+ return match[0] === '[]' ? '' : match[1] || match[0];
1546
+ });
1547
+ }
1548
+
1549
+ /**
1550
+ * Convert an array to an object.
1551
+ *
1552
+ * @param {Array<any>} arr - The array to convert to an object.
1553
+ *
1554
+ * @returns An object with the same keys and values as the array.
1555
+ */
1556
+ function arrayToObject(arr) {
1557
+ const obj = {};
1558
+ const keys = Object.keys(arr);
1559
+ let i;
1560
+ const len = keys.length;
1561
+ let key;
1562
+ for (i = 0; i < len; i++) {
1563
+ key = keys[i];
1564
+ obj[key] = arr[key];
1565
+ }
1566
+ return obj;
1567
+ }
1568
+
1569
+ /**
1570
+ * It takes a FormData object and returns a JavaScript object
1571
+ *
1572
+ * @param {string} formData The FormData object to convert to JSON.
1573
+ *
1574
+ * @returns {Object<string, any> | null} The converted object.
1575
+ */
1576
+ function formDataToJSON(formData) {
1577
+ function buildPath(path, value, target, index) {
1578
+ let name = path[index++];
1579
+ const isNumericKey = Number.isFinite(+name);
1580
+ const isLast = index >= path.length;
1581
+ name = !name && utils.isArray(target) ? target.length : name;
1582
+
1583
+ if (isLast) {
1584
+ if (utils.hasOwnProp(target, name)) {
1585
+ target[name] = [target[name], value];
1586
+ } else {
1587
+ target[name] = value;
1588
+ }
1589
+
1590
+ return !isNumericKey;
1591
+ }
1592
+
1593
+ if (!target[name] || !utils.isObject(target[name])) {
1594
+ target[name] = [];
1595
+ }
1596
+
1597
+ const result = buildPath(path, value, target[name], index);
1598
+
1599
+ if (result && utils.isArray(target[name])) {
1600
+ target[name] = arrayToObject(target[name]);
1601
+ }
1602
+
1603
+ return !isNumericKey;
1604
+ }
1605
+
1606
+ if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
1607
+ const obj = {};
1608
+
1609
+ utils.forEachEntry(formData, (name, value) => {
1610
+ buildPath(parsePropPath(name), value, obj, 0);
1611
+ });
1612
+
1613
+ return obj;
1614
+ }
1615
+
1616
+ return null;
1617
+ }
1618
+
1619
+ /* harmony default export */ var helpers_formDataToJSON = (formDataToJSON);
1620
+
1621
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/defaults/index.js
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+
1632
+ const DEFAULT_CONTENT_TYPE = {
1633
+ 'Content-Type': undefined
1634
+ };
1635
+
1636
+ /**
1637
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
1638
+ * of the input
1639
+ *
1640
+ * @param {any} rawValue - The value to be stringified.
1641
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
1642
+ * @param {Function} encoder - A function that takes a value and returns a string.
1643
+ *
1644
+ * @returns {string} A stringified version of the rawValue.
1645
+ */
1646
+ function stringifySafely(rawValue, parser, encoder) {
1647
+ if (utils.isString(rawValue)) {
1648
+ try {
1649
+ (parser || JSON.parse)(rawValue);
1650
+ return utils.trim(rawValue);
1651
+ } catch (e) {
1652
+ if (e.name !== 'SyntaxError') {
1653
+ throw e;
1654
+ }
1655
+ }
1656
+ }
1657
+
1658
+ return (encoder || JSON.stringify)(rawValue);
1659
+ }
1660
+
1661
+ const defaults = {
1662
+
1663
+ transitional: defaults_transitional,
1664
+
1665
+ adapter: ['xhr', 'http'],
1666
+
1667
+ transformRequest: [function transformRequest(data, headers) {
1668
+ const contentType = headers.getContentType() || '';
1669
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
1670
+ const isObjectPayload = utils.isObject(data);
1671
+
1672
+ if (isObjectPayload && utils.isHTMLForm(data)) {
1673
+ data = new FormData(data);
1674
+ }
1675
+
1676
+ const isFormData = utils.isFormData(data);
1677
+
1678
+ if (isFormData) {
1679
+ if (!hasJSONContentType) {
1680
+ return data;
1681
+ }
1682
+ return hasJSONContentType ? JSON.stringify(helpers_formDataToJSON(data)) : data;
1683
+ }
1684
+
1685
+ if (utils.isArrayBuffer(data) ||
1686
+ utils.isBuffer(data) ||
1687
+ utils.isStream(data) ||
1688
+ utils.isFile(data) ||
1689
+ utils.isBlob(data)
1690
+ ) {
1691
+ return data;
1692
+ }
1693
+ if (utils.isArrayBufferView(data)) {
1694
+ return data.buffer;
1695
+ }
1696
+ if (utils.isURLSearchParams(data)) {
1697
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
1698
+ return data.toString();
1699
+ }
1700
+
1701
+ let isFileList;
1702
+
1703
+ if (isObjectPayload) {
1704
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
1705
+ return toURLEncodedForm(data, this.formSerializer).toString();
1706
+ }
1707
+
1708
+ if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
1709
+ const _FormData = this.env && this.env.FormData;
1710
+
1711
+ return helpers_toFormData(
1712
+ isFileList ? {'files[]': data} : data,
1713
+ _FormData && new _FormData(),
1714
+ this.formSerializer
1715
+ );
1716
+ }
1717
+ }
1718
+
1719
+ if (isObjectPayload || hasJSONContentType ) {
1720
+ headers.setContentType('application/json', false);
1721
+ return stringifySafely(data);
1722
+ }
1723
+
1724
+ return data;
1725
+ }],
1726
+
1727
+ transformResponse: [function transformResponse(data) {
1728
+ const transitional = this.transitional || defaults.transitional;
1729
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
1730
+ const JSONRequested = this.responseType === 'json';
1731
+
1732
+ if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
1733
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
1734
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
1735
+
1736
+ try {
1737
+ return JSON.parse(data);
1738
+ } catch (e) {
1739
+ if (strictJSONParsing) {
1740
+ if (e.name === 'SyntaxError') {
1741
+ throw core_AxiosError.from(e, core_AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
1742
+ }
1743
+ throw e;
1744
+ }
1745
+ }
1746
+ }
1747
+
1748
+ return data;
1749
+ }],
1750
+
1751
+ /**
1752
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
1753
+ * timeout is not created.
1754
+ */
1755
+ timeout: 0,
1756
+
1757
+ xsrfCookieName: 'XSRF-TOKEN',
1758
+ xsrfHeaderName: 'X-XSRF-TOKEN',
1759
+
1760
+ maxContentLength: -1,
1761
+ maxBodyLength: -1,
1762
+
1763
+ env: {
1764
+ FormData: browser.classes.FormData,
1765
+ Blob: browser.classes.Blob
1766
+ },
1767
+
1768
+ validateStatus: function validateStatus(status) {
1769
+ return status >= 200 && status < 300;
1770
+ },
1771
+
1772
+ headers: {
1773
+ common: {
1774
+ 'Accept': 'application/json, text/plain, */*'
1775
+ }
1776
+ }
1777
+ };
1778
+
1779
+ utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {
1780
+ defaults.headers[method] = {};
1781
+ });
1782
+
1783
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
1784
+ defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);
1785
+ });
1786
+
1787
+ /* harmony default export */ var lib_defaults = (defaults);
1788
+
1789
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/parseHeaders.js
1790
+
1791
+
1792
+
1793
+
1794
+ // RawAxiosHeaders whose duplicates are ignored by node
1795
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
1796
+ const ignoreDuplicateOf = utils.toObjectSet([
1797
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
1798
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
1799
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
1800
+ 'referer', 'retry-after', 'user-agent'
1801
+ ]);
1802
+
1803
+ /**
1804
+ * Parse headers into an object
1805
+ *
1806
+ * ```
1807
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
1808
+ * Content-Type: application/json
1809
+ * Connection: keep-alive
1810
+ * Transfer-Encoding: chunked
1811
+ * ```
1812
+ *
1813
+ * @param {String} rawHeaders Headers needing to be parsed
1814
+ *
1815
+ * @returns {Object} Headers parsed into an object
1816
+ */
1817
+ /* harmony default export */ var parseHeaders = (rawHeaders => {
1818
+ const parsed = {};
1819
+ let key;
1820
+ let val;
1821
+ let i;
1822
+
1823
+ rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
1824
+ i = line.indexOf(':');
1825
+ key = line.substring(0, i).trim().toLowerCase();
1826
+ val = line.substring(i + 1).trim();
1827
+
1828
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
1829
+ return;
1830
+ }
1831
+
1832
+ if (key === 'set-cookie') {
1833
+ if (parsed[key]) {
1834
+ parsed[key].push(val);
1835
+ } else {
1836
+ parsed[key] = [val];
1837
+ }
1838
+ } else {
1839
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
1840
+ }
1841
+ });
1842
+
1843
+ return parsed;
1844
+ });
1845
+
1846
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/AxiosHeaders.js
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+ const $internals = Symbol('internals');
1853
+
1854
+ function normalizeHeader(header) {
1855
+ return header && String(header).trim().toLowerCase();
1856
+ }
1857
+
1858
+ function normalizeValue(value) {
1859
+ if (value === false || value == null) {
1860
+ return value;
1861
+ }
1862
+
1863
+ return utils.isArray(value) ? value.map(normalizeValue) : String(value);
1864
+ }
1865
+
1866
+ function parseTokens(str) {
1867
+ const tokens = Object.create(null);
1868
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1869
+ let match;
1870
+
1871
+ while ((match = tokensRE.exec(str))) {
1872
+ tokens[match[1]] = match[2];
1873
+ }
1874
+
1875
+ return tokens;
1876
+ }
1877
+
1878
+ const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
1879
+
1880
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
1881
+ if (utils.isFunction(filter)) {
1882
+ return filter.call(this, value, header);
1883
+ }
1884
+
1885
+ if (isHeaderNameFilter) {
1886
+ value = header;
1887
+ }
1888
+
1889
+ if (!utils.isString(value)) return;
1890
+
1891
+ if (utils.isString(filter)) {
1892
+ return value.indexOf(filter) !== -1;
1893
+ }
1894
+
1895
+ if (utils.isRegExp(filter)) {
1896
+ return filter.test(value);
1897
+ }
1898
+ }
1899
+
1900
+ function formatHeader(header) {
1901
+ return header.trim()
1902
+ .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
1903
+ return char.toUpperCase() + str;
1904
+ });
1905
+ }
1906
+
1907
+ function buildAccessors(obj, header) {
1908
+ const accessorName = utils.toCamelCase(' ' + header);
1909
+
1910
+ ['get', 'set', 'has'].forEach(methodName => {
1911
+ Object.defineProperty(obj, methodName + accessorName, {
1912
+ value: function(arg1, arg2, arg3) {
1913
+ return this[methodName].call(this, header, arg1, arg2, arg3);
1914
+ },
1915
+ configurable: true
1916
+ });
1917
+ });
1918
+ }
1919
+
1920
+ class AxiosHeaders {
1921
+ constructor(headers) {
1922
+ headers && this.set(headers);
1923
+ }
1924
+
1925
+ set(header, valueOrRewrite, rewrite) {
1926
+ const self = this;
1927
+
1928
+ function setHeader(_value, _header, _rewrite) {
1929
+ const lHeader = normalizeHeader(_header);
1930
+
1931
+ if (!lHeader) {
1932
+ throw new Error('header name must be a non-empty string');
1933
+ }
1934
+
1935
+ const key = utils.findKey(self, lHeader);
1936
+
1937
+ if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
1938
+ self[key || _header] = normalizeValue(_value);
1939
+ }
1940
+ }
1941
+
1942
+ const setHeaders = (headers, _rewrite) =>
1943
+ utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
1944
+
1945
+ if (utils.isPlainObject(header) || header instanceof this.constructor) {
1946
+ setHeaders(header, valueOrRewrite)
1947
+ } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
1948
+ setHeaders(parseHeaders(header), valueOrRewrite);
1949
+ } else {
1950
+ header != null && setHeader(valueOrRewrite, header, rewrite);
1951
+ }
1952
+
1953
+ return this;
1954
+ }
1955
+
1956
+ get(header, parser) {
1957
+ header = normalizeHeader(header);
1958
+
1959
+ if (header) {
1960
+ const key = utils.findKey(this, header);
1961
+
1962
+ if (key) {
1963
+ const value = this[key];
1964
+
1965
+ if (!parser) {
1966
+ return value;
1967
+ }
1968
+
1969
+ if (parser === true) {
1970
+ return parseTokens(value);
1971
+ }
1972
+
1973
+ if (utils.isFunction(parser)) {
1974
+ return parser.call(this, value, key);
1975
+ }
1976
+
1977
+ if (utils.isRegExp(parser)) {
1978
+ return parser.exec(value);
1979
+ }
1980
+
1981
+ throw new TypeError('parser must be boolean|regexp|function');
1982
+ }
1983
+ }
1984
+ }
1985
+
1986
+ has(header, matcher) {
1987
+ header = normalizeHeader(header);
1988
+
1989
+ if (header) {
1990
+ const key = utils.findKey(this, header);
1991
+
1992
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
1993
+ }
1994
+
1995
+ return false;
1996
+ }
1997
+
1998
+ delete(header, matcher) {
1999
+ const self = this;
2000
+ let deleted = false;
2001
+
2002
+ function deleteHeader(_header) {
2003
+ _header = normalizeHeader(_header);
2004
+
2005
+ if (_header) {
2006
+ const key = utils.findKey(self, _header);
2007
+
2008
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
2009
+ delete self[key];
2010
+
2011
+ deleted = true;
2012
+ }
2013
+ }
2014
+ }
2015
+
2016
+ if (utils.isArray(header)) {
2017
+ header.forEach(deleteHeader);
2018
+ } else {
2019
+ deleteHeader(header);
2020
+ }
2021
+
2022
+ return deleted;
2023
+ }
2024
+
2025
+ clear(matcher) {
2026
+ const keys = Object.keys(this);
2027
+ let i = keys.length;
2028
+ let deleted = false;
2029
+
2030
+ while (i--) {
2031
+ const key = keys[i];
2032
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
2033
+ delete this[key];
2034
+ deleted = true;
2035
+ }
2036
+ }
2037
+
2038
+ return deleted;
2039
+ }
2040
+
2041
+ normalize(format) {
2042
+ const self = this;
2043
+ const headers = {};
2044
+
2045
+ utils.forEach(this, (value, header) => {
2046
+ const key = utils.findKey(headers, header);
2047
+
2048
+ if (key) {
2049
+ self[key] = normalizeValue(value);
2050
+ delete self[header];
2051
+ return;
2052
+ }
2053
+
2054
+ const normalized = format ? formatHeader(header) : String(header).trim();
2055
+
2056
+ if (normalized !== header) {
2057
+ delete self[header];
2058
+ }
2059
+
2060
+ self[normalized] = normalizeValue(value);
2061
+
2062
+ headers[normalized] = true;
2063
+ });
2064
+
2065
+ return this;
2066
+ }
2067
+
2068
+ concat(...targets) {
2069
+ return this.constructor.concat(this, ...targets);
2070
+ }
2071
+
2072
+ toJSON(asStrings) {
2073
+ const obj = Object.create(null);
2074
+
2075
+ utils.forEach(this, (value, header) => {
2076
+ value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);
2077
+ });
2078
+
2079
+ return obj;
2080
+ }
2081
+
2082
+ [Symbol.iterator]() {
2083
+ return Object.entries(this.toJSON())[Symbol.iterator]();
2084
+ }
2085
+
2086
+ toString() {
2087
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
2088
+ }
2089
+
2090
+ get [Symbol.toStringTag]() {
2091
+ return 'AxiosHeaders';
2092
+ }
2093
+
2094
+ static from(thing) {
2095
+ return thing instanceof this ? thing : new this(thing);
2096
+ }
2097
+
2098
+ static concat(first, ...targets) {
2099
+ const computed = new this(first);
2100
+
2101
+ targets.forEach((target) => computed.set(target));
2102
+
2103
+ return computed;
2104
+ }
2105
+
2106
+ static accessor(header) {
2107
+ const internals = this[$internals] = (this[$internals] = {
2108
+ accessors: {}
2109
+ });
2110
+
2111
+ const accessors = internals.accessors;
2112
+ const prototype = this.prototype;
2113
+
2114
+ function defineAccessor(_header) {
2115
+ const lHeader = normalizeHeader(_header);
2116
+
2117
+ if (!accessors[lHeader]) {
2118
+ buildAccessors(prototype, _header);
2119
+ accessors[lHeader] = true;
2120
+ }
2121
+ }
2122
+
2123
+ utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
2124
+
2125
+ return this;
2126
+ }
2127
+ }
2128
+
2129
+ AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
2130
+
2131
+ utils.freezeMethods(AxiosHeaders.prototype);
2132
+ utils.freezeMethods(AxiosHeaders);
2133
+
2134
+ /* harmony default export */ var core_AxiosHeaders = (AxiosHeaders);
2135
+
2136
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/transformData.js
2137
+
2138
+
2139
+
2140
+
2141
+
2142
+
2143
+ /**
2144
+ * Transform the data for a request or a response
2145
+ *
2146
+ * @param {Array|Function} fns A single function or Array of functions
2147
+ * @param {?Object} response The response object
2148
+ *
2149
+ * @returns {*} The resulting transformed data
2150
+ */
2151
+ function transformData(fns, response) {
2152
+ const config = this || lib_defaults;
2153
+ const context = response || config;
2154
+ const headers = core_AxiosHeaders.from(context.headers);
2155
+ let data = context.data;
2156
+
2157
+ utils.forEach(fns, function transform(fn) {
2158
+ data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
2159
+ });
2160
+
2161
+ headers.normalize();
2162
+
2163
+ return data;
2164
+ }
2165
+
2166
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/cancel/isCancel.js
2167
+
2168
+
2169
+ function isCancel(value) {
2170
+ return !!(value && value.__CANCEL__);
2171
+ }
2172
+
2173
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/cancel/CanceledError.js
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+ /**
2180
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
2181
+ *
2182
+ * @param {string=} message The message.
2183
+ * @param {Object=} config The config.
2184
+ * @param {Object=} request The request.
2185
+ *
2186
+ * @returns {CanceledError} The created error.
2187
+ */
2188
+ function CanceledError(message, config, request) {
2189
+ // eslint-disable-next-line no-eq-null,eqeqeq
2190
+ core_AxiosError.call(this, message == null ? 'canceled' : message, core_AxiosError.ERR_CANCELED, config, request);
2191
+ this.name = 'CanceledError';
2192
+ }
2193
+
2194
+ utils.inherits(CanceledError, core_AxiosError, {
2195
+ __CANCEL__: true
2196
+ });
2197
+
2198
+ /* harmony default export */ var cancel_CanceledError = (CanceledError);
2199
+
2200
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/settle.js
2201
+
2202
+
2203
+
2204
+
2205
+ /**
2206
+ * Resolve or reject a Promise based on response status.
2207
+ *
2208
+ * @param {Function} resolve A function that resolves the promise.
2209
+ * @param {Function} reject A function that rejects the promise.
2210
+ * @param {object} response The response.
2211
+ *
2212
+ * @returns {object} The response.
2213
+ */
2214
+ function settle(resolve, reject, response) {
2215
+ const validateStatus = response.config.validateStatus;
2216
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
2217
+ resolve(response);
2218
+ } else {
2219
+ reject(new core_AxiosError(
2220
+ 'Request failed with status code ' + response.status,
2221
+ [core_AxiosError.ERR_BAD_REQUEST, core_AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
2222
+ response.config,
2223
+ response.request,
2224
+ response
2225
+ ));
2226
+ }
2227
+ }
2228
+
2229
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/cookies.js
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+ /* harmony default export */ var cookies = (browser.isStandardBrowserEnv ?
2236
+
2237
+ // Standard browser envs support document.cookie
2238
+ (function standardBrowserEnv() {
2239
+ return {
2240
+ write: function write(name, value, expires, path, domain, secure) {
2241
+ const cookie = [];
2242
+ cookie.push(name + '=' + encodeURIComponent(value));
2243
+
2244
+ if (utils.isNumber(expires)) {
2245
+ cookie.push('expires=' + new Date(expires).toGMTString());
2246
+ }
2247
+
2248
+ if (utils.isString(path)) {
2249
+ cookie.push('path=' + path);
2250
+ }
2251
+
2252
+ if (utils.isString(domain)) {
2253
+ cookie.push('domain=' + domain);
2254
+ }
2255
+
2256
+ if (secure === true) {
2257
+ cookie.push('secure');
2258
+ }
2259
+
2260
+ document.cookie = cookie.join('; ');
2261
+ },
2262
+
2263
+ read: function read(name) {
2264
+ const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
2265
+ return (match ? decodeURIComponent(match[3]) : null);
2266
+ },
2267
+
2268
+ remove: function remove(name) {
2269
+ this.write(name, '', Date.now() - 86400000);
2270
+ }
2271
+ };
2272
+ })() :
2273
+
2274
+ // Non standard browser env (web workers, react-native) lack needed support.
2275
+ (function nonStandardBrowserEnv() {
2276
+ return {
2277
+ write: function write() {},
2278
+ read: function read() { return null; },
2279
+ remove: function remove() {}
2280
+ };
2281
+ })());
2282
+
2283
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isAbsoluteURL.js
2284
+
2285
+
2286
+ /**
2287
+ * Determines whether the specified URL is absolute
2288
+ *
2289
+ * @param {string} url The URL to test
2290
+ *
2291
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
2292
+ */
2293
+ function isAbsoluteURL(url) {
2294
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
2295
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
2296
+ // by any combination of letters, digits, plus, period, or hyphen.
2297
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
2298
+ }
2299
+
2300
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/combineURLs.js
2301
+
2302
+
2303
+ /**
2304
+ * Creates a new URL by combining the specified URLs
2305
+ *
2306
+ * @param {string} baseURL The base URL
2307
+ * @param {string} relativeURL The relative URL
2308
+ *
2309
+ * @returns {string} The combined URL
2310
+ */
2311
+ function combineURLs(baseURL, relativeURL) {
2312
+ return relativeURL
2313
+ ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
2314
+ : baseURL;
2315
+ }
2316
+
2317
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/buildFullPath.js
2318
+
2319
+
2320
+
2321
+
2322
+
2323
+ /**
2324
+ * Creates a new URL by combining the baseURL with the requestedURL,
2325
+ * only when the requestedURL is not already an absolute URL.
2326
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
2327
+ *
2328
+ * @param {string} baseURL The base URL
2329
+ * @param {string} requestedURL Absolute or relative URL to combine
2330
+ *
2331
+ * @returns {string} The combined full path
2332
+ */
2333
+ function buildFullPath(baseURL, requestedURL) {
2334
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
2335
+ return combineURLs(baseURL, requestedURL);
2336
+ }
2337
+ return requestedURL;
2338
+ }
2339
+
2340
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isURLSameOrigin.js
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+ /* harmony default export */ var isURLSameOrigin = (browser.isStandardBrowserEnv ?
2347
+
2348
+ // Standard browser envs have full support of the APIs needed to test
2349
+ // whether the request URL is of the same origin as current location.
2350
+ (function standardBrowserEnv() {
2351
+ const msie = /(msie|trident)/i.test(navigator.userAgent);
2352
+ const urlParsingNode = document.createElement('a');
2353
+ let originURL;
2354
+
2355
+ /**
2356
+ * Parse a URL to discover it's components
2357
+ *
2358
+ * @param {String} url The URL to be parsed
2359
+ * @returns {Object}
2360
+ */
2361
+ function resolveURL(url) {
2362
+ let href = url;
2363
+
2364
+ if (msie) {
2365
+ // IE needs attribute set twice to normalize properties
2366
+ urlParsingNode.setAttribute('href', href);
2367
+ href = urlParsingNode.href;
2368
+ }
2369
+
2370
+ urlParsingNode.setAttribute('href', href);
2371
+
2372
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
2373
+ return {
2374
+ href: urlParsingNode.href,
2375
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
2376
+ host: urlParsingNode.host,
2377
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
2378
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
2379
+ hostname: urlParsingNode.hostname,
2380
+ port: urlParsingNode.port,
2381
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
2382
+ urlParsingNode.pathname :
2383
+ '/' + urlParsingNode.pathname
2384
+ };
2385
+ }
2386
+
2387
+ originURL = resolveURL(window.location.href);
2388
+
2389
+ /**
2390
+ * Determine if a URL shares the same origin as the current location
2391
+ *
2392
+ * @param {String} requestURL The URL to test
2393
+ * @returns {boolean} True if URL shares the same origin, otherwise false
2394
+ */
2395
+ return function isURLSameOrigin(requestURL) {
2396
+ const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
2397
+ return (parsed.protocol === originURL.protocol &&
2398
+ parsed.host === originURL.host);
2399
+ };
2400
+ })() :
2401
+
2402
+ // Non standard browser envs (web workers, react-native) lack needed support.
2403
+ (function nonStandardBrowserEnv() {
2404
+ return function isURLSameOrigin() {
2405
+ return true;
2406
+ };
2407
+ })());
2408
+
2409
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/parseProtocol.js
2410
+
2411
+
2412
+ function parseProtocol(url) {
2413
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
2414
+ return match && match[1] || '';
2415
+ }
2416
+
2417
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/speedometer.js
2418
+
2419
+
2420
+ /**
2421
+ * Calculate data maxRate
2422
+ * @param {Number} [samplesCount= 10]
2423
+ * @param {Number} [min= 1000]
2424
+ * @returns {Function}
2425
+ */
2426
+ function speedometer(samplesCount, min) {
2427
+ samplesCount = samplesCount || 10;
2428
+ const bytes = new Array(samplesCount);
2429
+ const timestamps = new Array(samplesCount);
2430
+ let head = 0;
2431
+ let tail = 0;
2432
+ let firstSampleTS;
2433
+
2434
+ min = min !== undefined ? min : 1000;
2435
+
2436
+ return function push(chunkLength) {
2437
+ const now = Date.now();
2438
+
2439
+ const startedAt = timestamps[tail];
2440
+
2441
+ if (!firstSampleTS) {
2442
+ firstSampleTS = now;
2443
+ }
2444
+
2445
+ bytes[head] = chunkLength;
2446
+ timestamps[head] = now;
2447
+
2448
+ let i = tail;
2449
+ let bytesCount = 0;
2450
+
2451
+ while (i !== head) {
2452
+ bytesCount += bytes[i++];
2453
+ i = i % samplesCount;
2454
+ }
2455
+
2456
+ head = (head + 1) % samplesCount;
2457
+
2458
+ if (head === tail) {
2459
+ tail = (tail + 1) % samplesCount;
2460
+ }
2461
+
2462
+ if (now - firstSampleTS < min) {
2463
+ return;
2464
+ }
2465
+
2466
+ const passed = startedAt && now - startedAt;
2467
+
2468
+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
2469
+ };
2470
+ }
2471
+
2472
+ /* harmony default export */ var helpers_speedometer = (speedometer);
2473
+
2474
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/adapters/xhr.js
2475
+
2476
+
2477
+
2478
+
2479
+
2480
+
2481
+
2482
+
2483
+
2484
+
2485
+
2486
+
2487
+
2488
+
2489
+
2490
+
2491
+ function progressEventReducer(listener, isDownloadStream) {
2492
+ let bytesNotified = 0;
2493
+ const _speedometer = helpers_speedometer(50, 250);
2494
+
2495
+ return e => {
2496
+ const loaded = e.loaded;
2497
+ const total = e.lengthComputable ? e.total : undefined;
2498
+ const progressBytes = loaded - bytesNotified;
2499
+ const rate = _speedometer(progressBytes);
2500
+ const inRange = loaded <= total;
2501
+
2502
+ bytesNotified = loaded;
2503
+
2504
+ const data = {
2505
+ loaded,
2506
+ total,
2507
+ progress: total ? (loaded / total) : undefined,
2508
+ bytes: progressBytes,
2509
+ rate: rate ? rate : undefined,
2510
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
2511
+ event: e
2512
+ };
2513
+
2514
+ data[isDownloadStream ? 'download' : 'upload'] = true;
2515
+
2516
+ listener(data);
2517
+ };
2518
+ }
2519
+
2520
+ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
2521
+
2522
+ /* harmony default export */ var xhr = (isXHRAdapterSupported && function (config) {
2523
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
2524
+ let requestData = config.data;
2525
+ const requestHeaders = core_AxiosHeaders.from(config.headers).normalize();
2526
+ const responseType = config.responseType;
2527
+ let onCanceled;
2528
+ function done() {
2529
+ if (config.cancelToken) {
2530
+ config.cancelToken.unsubscribe(onCanceled);
2531
+ }
2532
+
2533
+ if (config.signal) {
2534
+ config.signal.removeEventListener('abort', onCanceled);
2535
+ }
2536
+ }
2537
+
2538
+ if (utils.isFormData(requestData) && (browser.isStandardBrowserEnv || browser.isStandardBrowserWebWorkerEnv)) {
2539
+ requestHeaders.setContentType(false); // Let the browser set it
2540
+ }
2541
+
2542
+ let request = new XMLHttpRequest();
2543
+
2544
+ // HTTP basic authentication
2545
+ if (config.auth) {
2546
+ const username = config.auth.username || '';
2547
+ const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
2548
+ requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));
2549
+ }
2550
+
2551
+ const fullPath = buildFullPath(config.baseURL, config.url);
2552
+
2553
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
2554
+
2555
+ // Set the request timeout in MS
2556
+ request.timeout = config.timeout;
2557
+
2558
+ function onloadend() {
2559
+ if (!request) {
2560
+ return;
2561
+ }
2562
+ // Prepare the response
2563
+ const responseHeaders = core_AxiosHeaders.from(
2564
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
2565
+ );
2566
+ const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
2567
+ request.responseText : request.response;
2568
+ const response = {
2569
+ data: responseData,
2570
+ status: request.status,
2571
+ statusText: request.statusText,
2572
+ headers: responseHeaders,
2573
+ config,
2574
+ request
2575
+ };
2576
+
2577
+ settle(function _resolve(value) {
2578
+ resolve(value);
2579
+ done();
2580
+ }, function _reject(err) {
2581
+ reject(err);
2582
+ done();
2583
+ }, response);
2584
+
2585
+ // Clean up request
2586
+ request = null;
2587
+ }
2588
+
2589
+ if ('onloadend' in request) {
2590
+ // Use onloadend if available
2591
+ request.onloadend = onloadend;
2592
+ } else {
2593
+ // Listen for ready state to emulate onloadend
2594
+ request.onreadystatechange = function handleLoad() {
2595
+ if (!request || request.readyState !== 4) {
2596
+ return;
2597
+ }
2598
+
2599
+ // The request errored out and we didn't get a response, this will be
2600
+ // handled by onerror instead
2601
+ // With one exception: request that using file: protocol, most browsers
2602
+ // will return status as 0 even though it's a successful request
2603
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
2604
+ return;
2605
+ }
2606
+ // readystate handler is calling before onerror or ontimeout handlers,
2607
+ // so we should call onloadend on the next 'tick'
2608
+ setTimeout(onloadend);
2609
+ };
2610
+ }
2611
+
2612
+ // Handle browser request cancellation (as opposed to a manual cancellation)
2613
+ request.onabort = function handleAbort() {
2614
+ if (!request) {
2615
+ return;
2616
+ }
2617
+
2618
+ reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, config, request));
2619
+
2620
+ // Clean up request
2621
+ request = null;
2622
+ };
2623
+
2624
+ // Handle low level network errors
2625
+ request.onerror = function handleError() {
2626
+ // Real errors are hidden from us by the browser
2627
+ // onerror should only fire if it's a network error
2628
+ reject(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request));
2629
+
2630
+ // Clean up request
2631
+ request = null;
2632
+ };
2633
+
2634
+ // Handle timeout
2635
+ request.ontimeout = function handleTimeout() {
2636
+ let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
2637
+ const transitional = config.transitional || defaults_transitional;
2638
+ if (config.timeoutErrorMessage) {
2639
+ timeoutErrorMessage = config.timeoutErrorMessage;
2640
+ }
2641
+ reject(new core_AxiosError(
2642
+ timeoutErrorMessage,
2643
+ transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED,
2644
+ config,
2645
+ request));
2646
+
2647
+ // Clean up request
2648
+ request = null;
2649
+ };
2650
+
2651
+ // Add xsrf header
2652
+ // This is only done if running in a standard browser environment.
2653
+ // Specifically not if we're in a web worker, or react-native.
2654
+ if (browser.isStandardBrowserEnv) {
2655
+ // Add xsrf header
2656
+ const xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath))
2657
+ && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
2658
+
2659
+ if (xsrfValue) {
2660
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
2661
+ }
2662
+ }
2663
+
2664
+ // Remove Content-Type if data is undefined
2665
+ requestData === undefined && requestHeaders.setContentType(null);
2666
+
2667
+ // Add headers to the request
2668
+ if ('setRequestHeader' in request) {
2669
+ utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
2670
+ request.setRequestHeader(key, val);
2671
+ });
2672
+ }
2673
+
2674
+ // Add withCredentials to request if needed
2675
+ if (!utils.isUndefined(config.withCredentials)) {
2676
+ request.withCredentials = !!config.withCredentials;
2677
+ }
2678
+
2679
+ // Add responseType to request if needed
2680
+ if (responseType && responseType !== 'json') {
2681
+ request.responseType = config.responseType;
2682
+ }
2683
+
2684
+ // Handle progress if needed
2685
+ if (typeof config.onDownloadProgress === 'function') {
2686
+ request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));
2687
+ }
2688
+
2689
+ // Not all browsers support upload events
2690
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
2691
+ request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));
2692
+ }
2693
+
2694
+ if (config.cancelToken || config.signal) {
2695
+ // Handle cancellation
2696
+ // eslint-disable-next-line func-names
2697
+ onCanceled = cancel => {
2698
+ if (!request) {
2699
+ return;
2700
+ }
2701
+ reject(!cancel || cancel.type ? new cancel_CanceledError(null, config, request) : cancel);
2702
+ request.abort();
2703
+ request = null;
2704
+ };
2705
+
2706
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
2707
+ if (config.signal) {
2708
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
2709
+ }
2710
+ }
2711
+
2712
+ const protocol = parseProtocol(fullPath);
2713
+
2714
+ if (protocol && browser.protocols.indexOf(protocol) === -1) {
2715
+ reject(new core_AxiosError('Unsupported protocol ' + protocol + ':', core_AxiosError.ERR_BAD_REQUEST, config));
2716
+ return;
2717
+ }
2718
+
2719
+
2720
+ // Send the request
2721
+ request.send(requestData || null);
2722
+ });
2723
+ });
2724
+
2725
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/adapters/adapters.js
2726
+
2727
+
2728
+
2729
+
2730
+
2731
+ const knownAdapters = {
2732
+ http: helpers_null,
2733
+ xhr: xhr
2734
+ }
2735
+
2736
+ utils.forEach(knownAdapters, (fn, value) => {
2737
+ if(fn) {
2738
+ try {
2739
+ Object.defineProperty(fn, 'name', {value});
2740
+ } catch (e) {
2741
+ // eslint-disable-next-line no-empty
2742
+ }
2743
+ Object.defineProperty(fn, 'adapterName', {value});
2744
+ }
2745
+ });
2746
+
2747
+ /* harmony default export */ var adapters = ({
2748
+ getAdapter: (adapters) => {
2749
+ adapters = utils.isArray(adapters) ? adapters : [adapters];
2750
+
2751
+ const {length} = adapters;
2752
+ let nameOrAdapter;
2753
+ let adapter;
2754
+
2755
+ for (let i = 0; i < length; i++) {
2756
+ nameOrAdapter = adapters[i];
2757
+ if((adapter = utils.isString(nameOrAdapter) ? knownAdapters[nameOrAdapter.toLowerCase()] : nameOrAdapter)) {
2758
+ break;
2759
+ }
2760
+ }
2761
+
2762
+ if (!adapter) {
2763
+ if (adapter === false) {
2764
+ throw new core_AxiosError(
2765
+ `Adapter ${nameOrAdapter} is not supported by the environment`,
2766
+ 'ERR_NOT_SUPPORT'
2767
+ );
2768
+ }
2769
+
2770
+ throw new Error(
2771
+ utils.hasOwnProp(knownAdapters, nameOrAdapter) ?
2772
+ `Adapter '${nameOrAdapter}' is not available in the build` :
2773
+ `Unknown adapter '${nameOrAdapter}'`
2774
+ );
2775
+ }
2776
+
2777
+ if (!utils.isFunction(adapter)) {
2778
+ throw new TypeError('adapter is not a function');
2779
+ }
2780
+
2781
+ return adapter;
2782
+ },
2783
+ adapters: knownAdapters
2784
+ });
2785
+
2786
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/dispatchRequest.js
2787
+
2788
+
2789
+
2790
+
2791
+
2792
+
2793
+
2794
+
2795
+
2796
+ /**
2797
+ * Throws a `CanceledError` if cancellation has been requested.
2798
+ *
2799
+ * @param {Object} config The config that is to be used for the request
2800
+ *
2801
+ * @returns {void}
2802
+ */
2803
+ function throwIfCancellationRequested(config) {
2804
+ if (config.cancelToken) {
2805
+ config.cancelToken.throwIfRequested();
2806
+ }
2807
+
2808
+ if (config.signal && config.signal.aborted) {
2809
+ throw new cancel_CanceledError(null, config);
2810
+ }
2811
+ }
2812
+
2813
+ /**
2814
+ * Dispatch a request to the server using the configured adapter.
2815
+ *
2816
+ * @param {object} config The config that is to be used for the request
2817
+ *
2818
+ * @returns {Promise} The Promise to be fulfilled
2819
+ */
2820
+ function dispatchRequest(config) {
2821
+ throwIfCancellationRequested(config);
2822
+
2823
+ config.headers = core_AxiosHeaders.from(config.headers);
2824
+
2825
+ // Transform request data
2826
+ config.data = transformData.call(
2827
+ config,
2828
+ config.transformRequest
2829
+ );
2830
+
2831
+ if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
2832
+ config.headers.setContentType('application/x-www-form-urlencoded', false);
2833
+ }
2834
+
2835
+ const adapter = adapters.getAdapter(config.adapter || lib_defaults.adapter);
2836
+
2837
+ return adapter(config).then(function onAdapterResolution(response) {
2838
+ throwIfCancellationRequested(config);
2839
+
2840
+ // Transform response data
2841
+ response.data = transformData.call(
2842
+ config,
2843
+ config.transformResponse,
2844
+ response
2845
+ );
2846
+
2847
+ response.headers = core_AxiosHeaders.from(response.headers);
2848
+
2849
+ return response;
2850
+ }, function onAdapterRejection(reason) {
2851
+ if (!isCancel(reason)) {
2852
+ throwIfCancellationRequested(config);
2853
+
2854
+ // Transform response data
2855
+ if (reason && reason.response) {
2856
+ reason.response.data = transformData.call(
2857
+ config,
2858
+ config.transformResponse,
2859
+ reason.response
2860
+ );
2861
+ reason.response.headers = core_AxiosHeaders.from(reason.response.headers);
2862
+ }
2863
+ }
2864
+
2865
+ return Promise.reject(reason);
2866
+ });
2867
+ }
2868
+
2869
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/mergeConfig.js
2870
+
2871
+
2872
+
2873
+
2874
+
2875
+ const headersToObject = (thing) => thing instanceof core_AxiosHeaders ? thing.toJSON() : thing;
2876
+
2877
+ /**
2878
+ * Config-specific merge-function which creates a new config-object
2879
+ * by merging two configuration objects together.
2880
+ *
2881
+ * @param {Object} config1
2882
+ * @param {Object} config2
2883
+ *
2884
+ * @returns {Object} New object resulting from merging config2 to config1
2885
+ */
2886
+ function mergeConfig(config1, config2) {
2887
+ // eslint-disable-next-line no-param-reassign
2888
+ config2 = config2 || {};
2889
+ const config = {};
2890
+
2891
+ function getMergedValue(target, source, caseless) {
2892
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
2893
+ return utils.merge.call({caseless}, target, source);
2894
+ } else if (utils.isPlainObject(source)) {
2895
+ return utils.merge({}, source);
2896
+ } else if (utils.isArray(source)) {
2897
+ return source.slice();
2898
+ }
2899
+ return source;
2900
+ }
2901
+
2902
+ // eslint-disable-next-line consistent-return
2903
+ function mergeDeepProperties(a, b, caseless) {
2904
+ if (!utils.isUndefined(b)) {
2905
+ return getMergedValue(a, b, caseless);
2906
+ } else if (!utils.isUndefined(a)) {
2907
+ return getMergedValue(undefined, a, caseless);
2908
+ }
2909
+ }
2910
+
2911
+ // eslint-disable-next-line consistent-return
2912
+ function valueFromConfig2(a, b) {
2913
+ if (!utils.isUndefined(b)) {
2914
+ return getMergedValue(undefined, b);
2915
+ }
2916
+ }
2917
+
2918
+ // eslint-disable-next-line consistent-return
2919
+ function defaultToConfig2(a, b) {
2920
+ if (!utils.isUndefined(b)) {
2921
+ return getMergedValue(undefined, b);
2922
+ } else if (!utils.isUndefined(a)) {
2923
+ return getMergedValue(undefined, a);
2924
+ }
2925
+ }
2926
+
2927
+ // eslint-disable-next-line consistent-return
2928
+ function mergeDirectKeys(a, b, prop) {
2929
+ if (prop in config2) {
2930
+ return getMergedValue(a, b);
2931
+ } else if (prop in config1) {
2932
+ return getMergedValue(undefined, a);
2933
+ }
2934
+ }
2935
+
2936
+ const mergeMap = {
2937
+ url: valueFromConfig2,
2938
+ method: valueFromConfig2,
2939
+ data: valueFromConfig2,
2940
+ baseURL: defaultToConfig2,
2941
+ transformRequest: defaultToConfig2,
2942
+ transformResponse: defaultToConfig2,
2943
+ paramsSerializer: defaultToConfig2,
2944
+ timeout: defaultToConfig2,
2945
+ timeoutMessage: defaultToConfig2,
2946
+ withCredentials: defaultToConfig2,
2947
+ adapter: defaultToConfig2,
2948
+ responseType: defaultToConfig2,
2949
+ xsrfCookieName: defaultToConfig2,
2950
+ xsrfHeaderName: defaultToConfig2,
2951
+ onUploadProgress: defaultToConfig2,
2952
+ onDownloadProgress: defaultToConfig2,
2953
+ decompress: defaultToConfig2,
2954
+ maxContentLength: defaultToConfig2,
2955
+ maxBodyLength: defaultToConfig2,
2956
+ beforeRedirect: defaultToConfig2,
2957
+ transport: defaultToConfig2,
2958
+ httpAgent: defaultToConfig2,
2959
+ httpsAgent: defaultToConfig2,
2960
+ cancelToken: defaultToConfig2,
2961
+ socketPath: defaultToConfig2,
2962
+ responseEncoding: defaultToConfig2,
2963
+ validateStatus: mergeDirectKeys,
2964
+ headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
2965
+ };
2966
+
2967
+ utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
2968
+ const merge = mergeMap[prop] || mergeDeepProperties;
2969
+ const configValue = merge(config1[prop], config2[prop], prop);
2970
+ (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
2971
+ });
2972
+
2973
+ return config;
2974
+ }
2975
+
2976
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/env/data.js
2977
+ const VERSION = "1.3.5";
2978
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/validator.js
2979
+
2980
+
2981
+
2982
+
2983
+
2984
+ const validators = {};
2985
+
2986
+ // eslint-disable-next-line func-names
2987
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {
2988
+ validators[type] = function validator(thing) {
2989
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
2990
+ };
2991
+ });
2992
+
2993
+ const deprecatedWarnings = {};
2994
+
2995
+ /**
2996
+ * Transitional option validator
2997
+ *
2998
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
2999
+ * @param {string?} version - deprecated version / removed since version
3000
+ * @param {string?} message - some message with additional info
3001
+ *
3002
+ * @returns {function}
3003
+ */
3004
+ validators.transitional = function transitional(validator, version, message) {
3005
+ function formatMessage(opt, desc) {
3006
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
3007
+ }
3008
+
3009
+ // eslint-disable-next-line func-names
3010
+ return (value, opt, opts) => {
3011
+ if (validator === false) {
3012
+ throw new core_AxiosError(
3013
+ formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
3014
+ core_AxiosError.ERR_DEPRECATED
3015
+ );
3016
+ }
3017
+
3018
+ if (version && !deprecatedWarnings[opt]) {
3019
+ deprecatedWarnings[opt] = true;
3020
+ // eslint-disable-next-line no-console
3021
+ console.warn(
3022
+ formatMessage(
3023
+ opt,
3024
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
3025
+ )
3026
+ );
3027
+ }
3028
+
3029
+ return validator ? validator(value, opt, opts) : true;
3030
+ };
3031
+ };
3032
+
3033
+ /**
3034
+ * Assert object's properties type
3035
+ *
3036
+ * @param {object} options
3037
+ * @param {object} schema
3038
+ * @param {boolean?} allowUnknown
3039
+ *
3040
+ * @returns {object}
3041
+ */
3042
+
3043
+ function assertOptions(options, schema, allowUnknown) {
3044
+ if (typeof options !== 'object') {
3045
+ throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
3046
+ }
3047
+ const keys = Object.keys(options);
3048
+ let i = keys.length;
3049
+ while (i-- > 0) {
3050
+ const opt = keys[i];
3051
+ const validator = schema[opt];
3052
+ if (validator) {
3053
+ const value = options[opt];
3054
+ const result = value === undefined || validator(value, opt, options);
3055
+ if (result !== true) {
3056
+ throw new core_AxiosError('option ' + opt + ' must be ' + result, core_AxiosError.ERR_BAD_OPTION_VALUE);
3057
+ }
3058
+ continue;
3059
+ }
3060
+ if (allowUnknown !== true) {
3061
+ throw new core_AxiosError('Unknown option ' + opt, core_AxiosError.ERR_BAD_OPTION);
3062
+ }
3063
+ }
3064
+ }
3065
+
3066
+ /* harmony default export */ var validator = ({
3067
+ assertOptions,
3068
+ validators
3069
+ });
3070
+
3071
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/core/Axios.js
3072
+
3073
+
3074
+
3075
+
3076
+
3077
+
3078
+
3079
+
3080
+
3081
+
3082
+
3083
+ const Axios_validators = validator.validators;
3084
+
3085
+ /**
3086
+ * Create a new instance of Axios
3087
+ *
3088
+ * @param {Object} instanceConfig The default config for the instance
3089
+ *
3090
+ * @return {Axios} A new instance of Axios
3091
+ */
3092
+ class Axios {
3093
+ constructor(instanceConfig) {
3094
+ this.defaults = instanceConfig;
3095
+ this.interceptors = {
3096
+ request: new core_InterceptorManager(),
3097
+ response: new core_InterceptorManager()
3098
+ };
3099
+ }
3100
+
3101
+ /**
3102
+ * Dispatch a request
3103
+ *
3104
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
3105
+ * @param {?Object} config
3106
+ *
3107
+ * @returns {Promise} The Promise to be fulfilled
3108
+ */
3109
+ request(configOrUrl, config) {
3110
+ /*eslint no-param-reassign:0*/
3111
+ // Allow for axios('example/url'[, config]) a la fetch API
3112
+ if (typeof configOrUrl === 'string') {
3113
+ config = config || {};
3114
+ config.url = configOrUrl;
3115
+ } else {
3116
+ config = configOrUrl || {};
3117
+ }
3118
+
3119
+ config = mergeConfig(this.defaults, config);
3120
+
3121
+ const {transitional, paramsSerializer, headers} = config;
3122
+
3123
+ if (transitional !== undefined) {
3124
+ validator.assertOptions(transitional, {
3125
+ silentJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
3126
+ forcedJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
3127
+ clarifyTimeoutError: Axios_validators.transitional(Axios_validators.boolean)
3128
+ }, false);
3129
+ }
3130
+
3131
+ if (paramsSerializer != null) {
3132
+ if (utils.isFunction(paramsSerializer)) {
3133
+ config.paramsSerializer = {
3134
+ serialize: paramsSerializer
3135
+ }
3136
+ } else {
3137
+ validator.assertOptions(paramsSerializer, {
3138
+ encode: Axios_validators.function,
3139
+ serialize: Axios_validators.function
3140
+ }, true);
3141
+ }
3142
+ }
3143
+
3144
+ // Set config.method
3145
+ config.method = (config.method || this.defaults.method || 'get').toLowerCase();
3146
+
3147
+ let contextHeaders;
3148
+
3149
+ // Flatten headers
3150
+ contextHeaders = headers && utils.merge(
3151
+ headers.common,
3152
+ headers[config.method]
3153
+ );
3154
+
3155
+ contextHeaders && utils.forEach(
3156
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
3157
+ (method) => {
3158
+ delete headers[method];
3159
+ }
3160
+ );
3161
+
3162
+ config.headers = core_AxiosHeaders.concat(contextHeaders, headers);
3163
+
3164
+ // filter out skipped interceptors
3165
+ const requestInterceptorChain = [];
3166
+ let synchronousRequestInterceptors = true;
3167
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
3168
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
3169
+ return;
3170
+ }
3171
+
3172
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
3173
+
3174
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
3175
+ });
3176
+
3177
+ const responseInterceptorChain = [];
3178
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
3179
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
3180
+ });
3181
+
3182
+ let promise;
3183
+ let i = 0;
3184
+ let len;
3185
+
3186
+ if (!synchronousRequestInterceptors) {
3187
+ const chain = [dispatchRequest.bind(this), undefined];
3188
+ chain.unshift.apply(chain, requestInterceptorChain);
3189
+ chain.push.apply(chain, responseInterceptorChain);
3190
+ len = chain.length;
3191
+
3192
+ promise = Promise.resolve(config);
3193
+
3194
+ while (i < len) {
3195
+ promise = promise.then(chain[i++], chain[i++]);
3196
+ }
3197
+
3198
+ return promise;
3199
+ }
3200
+
3201
+ len = requestInterceptorChain.length;
3202
+
3203
+ let newConfig = config;
3204
+
3205
+ i = 0;
3206
+
3207
+ while (i < len) {
3208
+ const onFulfilled = requestInterceptorChain[i++];
3209
+ const onRejected = requestInterceptorChain[i++];
3210
+ try {
3211
+ newConfig = onFulfilled(newConfig);
3212
+ } catch (error) {
3213
+ onRejected.call(this, error);
3214
+ break;
3215
+ }
3216
+ }
3217
+
3218
+ try {
3219
+ promise = dispatchRequest.call(this, newConfig);
3220
+ } catch (error) {
3221
+ return Promise.reject(error);
3222
+ }
3223
+
3224
+ i = 0;
3225
+ len = responseInterceptorChain.length;
3226
+
3227
+ while (i < len) {
3228
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
3229
+ }
3230
+
3231
+ return promise;
3232
+ }
3233
+
3234
+ getUri(config) {
3235
+ config = mergeConfig(this.defaults, config);
3236
+ const fullPath = buildFullPath(config.baseURL, config.url);
3237
+ return buildURL(fullPath, config.params, config.paramsSerializer);
3238
+ }
3239
+ }
3240
+
3241
+ // Provide aliases for supported request methods
3242
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
3243
+ /*eslint func-names:0*/
3244
+ Axios.prototype[method] = function(url, config) {
3245
+ return this.request(mergeConfig(config || {}, {
3246
+ method,
3247
+ url,
3248
+ data: (config || {}).data
3249
+ }));
3250
+ };
3251
+ });
3252
+
3253
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
3254
+ /*eslint func-names:0*/
3255
+
3256
+ function generateHTTPMethod(isForm) {
3257
+ return function httpMethod(url, data, config) {
3258
+ return this.request(mergeConfig(config || {}, {
3259
+ method,
3260
+ headers: isForm ? {
3261
+ 'Content-Type': 'multipart/form-data'
3262
+ } : {},
3263
+ url,
3264
+ data
3265
+ }));
3266
+ };
3267
+ }
3268
+
3269
+ Axios.prototype[method] = generateHTTPMethod();
3270
+
3271
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
3272
+ });
3273
+
3274
+ /* harmony default export */ var core_Axios = (Axios);
3275
+
3276
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/cancel/CancelToken.js
3277
+
3278
+
3279
+
3280
+
3281
+ /**
3282
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
3283
+ *
3284
+ * @param {Function} executor The executor function.
3285
+ *
3286
+ * @returns {CancelToken}
3287
+ */
3288
+ class CancelToken {
3289
+ constructor(executor) {
3290
+ if (typeof executor !== 'function') {
3291
+ throw new TypeError('executor must be a function.');
3292
+ }
3293
+
3294
+ let resolvePromise;
3295
+
3296
+ this.promise = new Promise(function promiseExecutor(resolve) {
3297
+ resolvePromise = resolve;
3298
+ });
3299
+
3300
+ const token = this;
3301
+
3302
+ // eslint-disable-next-line func-names
3303
+ this.promise.then(cancel => {
3304
+ if (!token._listeners) return;
3305
+
3306
+ let i = token._listeners.length;
3307
+
3308
+ while (i-- > 0) {
3309
+ token._listeners[i](cancel);
3310
+ }
3311
+ token._listeners = null;
3312
+ });
3313
+
3314
+ // eslint-disable-next-line func-names
3315
+ this.promise.then = onfulfilled => {
3316
+ let _resolve;
3317
+ // eslint-disable-next-line func-names
3318
+ const promise = new Promise(resolve => {
3319
+ token.subscribe(resolve);
3320
+ _resolve = resolve;
3321
+ }).then(onfulfilled);
3322
+
3323
+ promise.cancel = function reject() {
3324
+ token.unsubscribe(_resolve);
3325
+ };
3326
+
3327
+ return promise;
3328
+ };
3329
+
3330
+ executor(function cancel(message, config, request) {
3331
+ if (token.reason) {
3332
+ // Cancellation has already been requested
3333
+ return;
3334
+ }
3335
+
3336
+ token.reason = new cancel_CanceledError(message, config, request);
3337
+ resolvePromise(token.reason);
3338
+ });
3339
+ }
3340
+
3341
+ /**
3342
+ * Throws a `CanceledError` if cancellation has been requested.
3343
+ */
3344
+ throwIfRequested() {
3345
+ if (this.reason) {
3346
+ throw this.reason;
3347
+ }
3348
+ }
3349
+
3350
+ /**
3351
+ * Subscribe to the cancel signal
3352
+ */
3353
+
3354
+ subscribe(listener) {
3355
+ if (this.reason) {
3356
+ listener(this.reason);
3357
+ return;
3358
+ }
3359
+
3360
+ if (this._listeners) {
3361
+ this._listeners.push(listener);
3362
+ } else {
3363
+ this._listeners = [listener];
3364
+ }
3365
+ }
3366
+
3367
+ /**
3368
+ * Unsubscribe from the cancel signal
3369
+ */
3370
+
3371
+ unsubscribe(listener) {
3372
+ if (!this._listeners) {
3373
+ return;
3374
+ }
3375
+ const index = this._listeners.indexOf(listener);
3376
+ if (index !== -1) {
3377
+ this._listeners.splice(index, 1);
3378
+ }
3379
+ }
3380
+
3381
+ /**
3382
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
3383
+ * cancels the `CancelToken`.
3384
+ */
3385
+ static source() {
3386
+ let cancel;
3387
+ const token = new CancelToken(function executor(c) {
3388
+ cancel = c;
3389
+ });
3390
+ return {
3391
+ token,
3392
+ cancel
3393
+ };
3394
+ }
3395
+ }
3396
+
3397
+ /* harmony default export */ var cancel_CancelToken = (CancelToken);
3398
+
3399
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/spread.js
3400
+
3401
+
3402
+ /**
3403
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
3404
+ *
3405
+ * Common use case would be to use `Function.prototype.apply`.
3406
+ *
3407
+ * ```js
3408
+ * function f(x, y, z) {}
3409
+ * var args = [1, 2, 3];
3410
+ * f.apply(null, args);
3411
+ * ```
3412
+ *
3413
+ * With `spread` this example can be re-written.
3414
+ *
3415
+ * ```js
3416
+ * spread(function(x, y, z) {})([1, 2, 3]);
3417
+ * ```
3418
+ *
3419
+ * @param {Function} callback
3420
+ *
3421
+ * @returns {Function}
3422
+ */
3423
+ function spread(callback) {
3424
+ return function wrap(arr) {
3425
+ return callback.apply(null, arr);
3426
+ };
3427
+ }
3428
+
3429
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/isAxiosError.js
3430
+
3431
+
3432
+
3433
+
3434
+ /**
3435
+ * Determines whether the payload is an error thrown by Axios
3436
+ *
3437
+ * @param {*} payload The value to test
3438
+ *
3439
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
3440
+ */
3441
+ function isAxiosError(payload) {
3442
+ return utils.isObject(payload) && (payload.isAxiosError === true);
3443
+ }
3444
+
3445
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/helpers/HttpStatusCode.js
3446
+ const HttpStatusCode = {
3447
+ Continue: 100,
3448
+ SwitchingProtocols: 101,
3449
+ Processing: 102,
3450
+ EarlyHints: 103,
3451
+ Ok: 200,
3452
+ Created: 201,
3453
+ Accepted: 202,
3454
+ NonAuthoritativeInformation: 203,
3455
+ NoContent: 204,
3456
+ ResetContent: 205,
3457
+ PartialContent: 206,
3458
+ MultiStatus: 207,
3459
+ AlreadyReported: 208,
3460
+ ImUsed: 226,
3461
+ MultipleChoices: 300,
3462
+ MovedPermanently: 301,
3463
+ Found: 302,
3464
+ SeeOther: 303,
3465
+ NotModified: 304,
3466
+ UseProxy: 305,
3467
+ Unused: 306,
3468
+ TemporaryRedirect: 307,
3469
+ PermanentRedirect: 308,
3470
+ BadRequest: 400,
3471
+ Unauthorized: 401,
3472
+ PaymentRequired: 402,
3473
+ Forbidden: 403,
3474
+ NotFound: 404,
3475
+ MethodNotAllowed: 405,
3476
+ NotAcceptable: 406,
3477
+ ProxyAuthenticationRequired: 407,
3478
+ RequestTimeout: 408,
3479
+ Conflict: 409,
3480
+ Gone: 410,
3481
+ LengthRequired: 411,
3482
+ PreconditionFailed: 412,
3483
+ PayloadTooLarge: 413,
3484
+ UriTooLong: 414,
3485
+ UnsupportedMediaType: 415,
3486
+ RangeNotSatisfiable: 416,
3487
+ ExpectationFailed: 417,
3488
+ ImATeapot: 418,
3489
+ MisdirectedRequest: 421,
3490
+ UnprocessableEntity: 422,
3491
+ Locked: 423,
3492
+ FailedDependency: 424,
3493
+ TooEarly: 425,
3494
+ UpgradeRequired: 426,
3495
+ PreconditionRequired: 428,
3496
+ TooManyRequests: 429,
3497
+ RequestHeaderFieldsTooLarge: 431,
3498
+ UnavailableForLegalReasons: 451,
3499
+ InternalServerError: 500,
3500
+ NotImplemented: 501,
3501
+ BadGateway: 502,
3502
+ ServiceUnavailable: 503,
3503
+ GatewayTimeout: 504,
3504
+ HttpVersionNotSupported: 505,
3505
+ VariantAlsoNegotiates: 506,
3506
+ InsufficientStorage: 507,
3507
+ LoopDetected: 508,
3508
+ NotExtended: 510,
3509
+ NetworkAuthenticationRequired: 511,
3510
+ };
3511
+
3512
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
3513
+ HttpStatusCode[value] = key;
3514
+ });
3515
+
3516
+ /* harmony default export */ var helpers_HttpStatusCode = (HttpStatusCode);
3517
+
3518
+ ;// CONCATENATED MODULE: ./node_modules/axios/lib/axios.js
3519
+
3520
+
3521
+
3522
+
3523
+
3524
+
3525
+
3526
+
3527
+
3528
+
3529
+
3530
+
3531
+
3532
+
3533
+
3534
+
3535
+
3536
+
3537
+
3538
+ /**
3539
+ * Create an instance of Axios
3540
+ *
3541
+ * @param {Object} defaultConfig The default config for the instance
3542
+ *
3543
+ * @returns {Axios} A new instance of Axios
3544
+ */
3545
+ function createInstance(defaultConfig) {
3546
+ const context = new core_Axios(defaultConfig);
3547
+ const instance = bind(core_Axios.prototype.request, context);
3548
+
3549
+ // Copy axios.prototype to instance
3550
+ utils.extend(instance, core_Axios.prototype, context, {allOwnKeys: true});
3551
+
3552
+ // Copy context to instance
3553
+ utils.extend(instance, context, null, {allOwnKeys: true});
3554
+
3555
+ // Factory for creating new instances
3556
+ instance.create = function create(instanceConfig) {
3557
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
3558
+ };
3559
+
3560
+ return instance;
124
3561
  }
125
- ;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=2cd1004b&ts=true
3562
+
3563
+ // Create the default instance to be exported
3564
+ const axios = createInstance(lib_defaults);
3565
+
3566
+ // Expose Axios class to allow class inheritance
3567
+ axios.Axios = core_Axios;
3568
+
3569
+ // Expose Cancel & CancelToken
3570
+ axios.CanceledError = cancel_CanceledError;
3571
+ axios.CancelToken = cancel_CancelToken;
3572
+ axios.isCancel = isCancel;
3573
+ axios.VERSION = VERSION;
3574
+ axios.toFormData = helpers_toFormData;
3575
+
3576
+ // Expose AxiosError class
3577
+ axios.AxiosError = core_AxiosError;
3578
+
3579
+ // alias for CanceledError for backward compatibility
3580
+ axios.Cancel = axios.CanceledError;
3581
+
3582
+ // Expose all/spread
3583
+ axios.all = function all(promises) {
3584
+ return Promise.all(promises);
3585
+ };
3586
+
3587
+ axios.spread = spread;
3588
+
3589
+ // Expose isAxiosError
3590
+ axios.isAxiosError = isAxiosError;
3591
+
3592
+ // Expose mergeConfig
3593
+ axios.mergeConfig = mergeConfig;
3594
+
3595
+ axios.AxiosHeaders = core_AxiosHeaders;
3596
+
3597
+ axios.formToJSON = thing => helpers_formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
3598
+
3599
+ axios.HttpStatusCode = helpers_HttpStatusCode;
3600
+
3601
+ axios.default = axios;
3602
+
3603
+ // this module should only have a default export
3604
+ /* harmony default export */ var lib_axios = (axios);
126
3605
 
127
3606
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=script&lang=ts
128
3607
 
3608
+
129
3609
  /* harmony default export */ var processvue_type_script_lang_ts = ({
130
3610
  name: "tops-process",
131
3611
  props: {
@@ -146,16 +3626,20 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
146
3626
  }
147
3627
  },
148
3628
  setup(props) {
149
- const processStatus = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)("");
150
- const host = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)(({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_BASE_URL || "123333");
3629
+ const processStatus = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)({});
3630
+ const BASE = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)(({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_BASE_URL || "process.env.VUE_APP_BASE_URL ");
3631
+ const HOST = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)(({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_H5_HOST || "process.env.VUE_APP_H5_HOST");
3632
+ lib_axios.get(`${HOST}${BASE}/aws/pis/getProcessStatus?processInstId=44cdbdaa-b349-44ec-94d9-04827e0a11f2&taskId=80781ede-b00b-4d07-9d46-8893846a0c7a`).then(response => {
3633
+ console.log("res:::", response);
3634
+ processStatus.value = response.data;
3635
+ });
151
3636
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.processId, (val, preVal) => {
152
- if (val) {
153
- /* axios.get. */
154
- }
3637
+ if (val) {}
155
3638
  });
156
3639
  return {
157
3640
  processStatus,
158
- host
3641
+ BASE,
3642
+ HOST
159
3643
  };
160
3644
  },
161
3645
  methods: {
@@ -170,6 +3654,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
170
3654
  });
171
3655
  ;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=script&lang=ts
172
3656
 
3657
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=style&index=0&id=fd1f1ce4&scoped=true&lang=css
3658
+ // extracted by mini-css-extract-plugin
3659
+
3660
+ ;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=style&index=0&id=fd1f1ce4&scoped=true&lang=css
3661
+
173
3662
  // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
174
3663
  var exportHelper = __webpack_require__(744);
175
3664
  ;// CONCATENATED MODULE: ./packages/process/src/process.vue
@@ -178,7 +3667,9 @@ var exportHelper = __webpack_require__(744);
178
3667
 
179
3668
 
180
3669
  ;
181
- const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(processvue_type_script_lang_ts, [['render',render]])
3670
+
3671
+
3672
+ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(processvue_type_script_lang_ts, [['render',render],['__scopeId',"data-v-fd1f1ce4"]])
182
3673
 
183
3674
  /* harmony default export */ var process = (__exports__);
184
3675
  ;// CONCATENATED MODULE: ./packages/process/index.ts