ui-process-h5 0.1.12 → 0.1.13

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