@squidcloud/client 1.0.145-beta → 1.0.145

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.
Files changed (2) hide show
  1. package/dist/cjs/index.js +3515 -6
  2. package/package.json +2 -2
package/dist/cjs/index.js CHANGED
@@ -27293,6 +27293,15 @@ __webpack_require__.d(__webpack_exports__, {
27293
27293
  deserializeQuery: () => (/* reexport */ deserializeQuery)
27294
27294
  });
27295
27295
 
27296
+ // NAMESPACE OBJECT: ../node_modules/axios/lib/platform/common/utils.js
27297
+ var common_utils_namespaceObject = {};
27298
+ __webpack_require__.r(common_utils_namespaceObject);
27299
+ __webpack_require__.d(common_utils_namespaceObject, {
27300
+ hasBrowserEnv: () => (hasBrowserEnv),
27301
+ hasStandardBrowserEnv: () => (hasStandardBrowserEnv),
27302
+ hasStandardBrowserWebWorkerEnv: () => (hasStandardBrowserWebWorkerEnv)
27303
+ });
27304
+
27296
27305
  ;// CONCATENATED MODULE: ../common/src/ai-chatbot.schemas.ts
27297
27306
  /** @internal */
27298
27307
  const AiChatbotChatRequestSchema = {
@@ -49418,9 +49427,3509 @@ class RateLimiter {
49418
49427
  }
49419
49428
  }
49420
49429
 
49421
- ;// CONCATENATED MODULE: external "axios"
49422
- const external_axios_namespaceObject = require("axios");
49423
- var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_namespaceObject);
49430
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/bind.js
49431
+
49432
+
49433
+ function bind_bind(fn, thisArg) {
49434
+ return function wrap() {
49435
+ return fn.apply(thisArg, arguments);
49436
+ };
49437
+ }
49438
+
49439
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/utils.js
49440
+
49441
+
49442
+
49443
+
49444
+ // utils is a library of generic helper functions non-specific to axios
49445
+
49446
+ const {toString: utils_toString} = Object.prototype;
49447
+ const {getPrototypeOf} = Object;
49448
+
49449
+ const kindOf = (cache => thing => {
49450
+ const str = utils_toString.call(thing);
49451
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
49452
+ })(Object.create(null));
49453
+
49454
+ const kindOfTest = (type) => {
49455
+ type = type.toLowerCase();
49456
+ return (thing) => kindOf(thing) === type
49457
+ }
49458
+
49459
+ const typeOfTest = type => thing => typeof thing === type;
49460
+
49461
+ /**
49462
+ * Determine if a value is an Array
49463
+ *
49464
+ * @param {Object} val The value to test
49465
+ *
49466
+ * @returns {boolean} True if value is an Array, otherwise false
49467
+ */
49468
+ const {isArray: utils_isArray} = Array;
49469
+
49470
+ /**
49471
+ * Determine if a value is undefined
49472
+ *
49473
+ * @param {*} val The value to test
49474
+ *
49475
+ * @returns {boolean} True if the value is undefined, otherwise false
49476
+ */
49477
+ const isUndefined = typeOfTest('undefined');
49478
+
49479
+ /**
49480
+ * Determine if a value is a Buffer
49481
+ *
49482
+ * @param {*} val The value to test
49483
+ *
49484
+ * @returns {boolean} True if value is a Buffer, otherwise false
49485
+ */
49486
+ function isBuffer(val) {
49487
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
49488
+ && utils_isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
49489
+ }
49490
+
49491
+ /**
49492
+ * Determine if a value is an ArrayBuffer
49493
+ *
49494
+ * @param {*} val The value to test
49495
+ *
49496
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
49497
+ */
49498
+ const isArrayBuffer = kindOfTest('ArrayBuffer');
49499
+
49500
+
49501
+ /**
49502
+ * Determine if a value is a view on an ArrayBuffer
49503
+ *
49504
+ * @param {*} val The value to test
49505
+ *
49506
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
49507
+ */
49508
+ function isArrayBufferView(val) {
49509
+ let result;
49510
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
49511
+ result = ArrayBuffer.isView(val);
49512
+ } else {
49513
+ result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
49514
+ }
49515
+ return result;
49516
+ }
49517
+
49518
+ /**
49519
+ * Determine if a value is a String
49520
+ *
49521
+ * @param {*} val The value to test
49522
+ *
49523
+ * @returns {boolean} True if value is a String, otherwise false
49524
+ */
49525
+ const isString = typeOfTest('string');
49526
+
49527
+ /**
49528
+ * Determine if a value is a Function
49529
+ *
49530
+ * @param {*} val The value to test
49531
+ * @returns {boolean} True if value is a Function, otherwise false
49532
+ */
49533
+ const utils_isFunction = typeOfTest('function');
49534
+
49535
+ /**
49536
+ * Determine if a value is a Number
49537
+ *
49538
+ * @param {*} val The value to test
49539
+ *
49540
+ * @returns {boolean} True if value is a Number, otherwise false
49541
+ */
49542
+ const isNumber = typeOfTest('number');
49543
+
49544
+ /**
49545
+ * Determine if a value is an Object
49546
+ *
49547
+ * @param {*} thing The value to test
49548
+ *
49549
+ * @returns {boolean} True if value is an Object, otherwise false
49550
+ */
49551
+ const isObject = (thing) => thing !== null && typeof thing === 'object';
49552
+
49553
+ /**
49554
+ * Determine if a value is a Boolean
49555
+ *
49556
+ * @param {*} thing The value to test
49557
+ * @returns {boolean} True if value is a Boolean, otherwise false
49558
+ */
49559
+ const isBoolean = thing => thing === true || thing === false;
49560
+
49561
+ /**
49562
+ * Determine if a value is a plain Object
49563
+ *
49564
+ * @param {*} val The value to test
49565
+ *
49566
+ * @returns {boolean} True if value is a plain Object, otherwise false
49567
+ */
49568
+ const isPlainObject = (val) => {
49569
+ if (kindOf(val) !== 'object') {
49570
+ return false;
49571
+ }
49572
+
49573
+ const prototype = getPrototypeOf(val);
49574
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
49575
+ }
49576
+
49577
+ /**
49578
+ * Determine if a value is a Date
49579
+ *
49580
+ * @param {*} val The value to test
49581
+ *
49582
+ * @returns {boolean} True if value is a Date, otherwise false
49583
+ */
49584
+ const isDate = kindOfTest('Date');
49585
+
49586
+ /**
49587
+ * Determine if a value is a File
49588
+ *
49589
+ * @param {*} val The value to test
49590
+ *
49591
+ * @returns {boolean} True if value is a File, otherwise false
49592
+ */
49593
+ const isFile = kindOfTest('File');
49594
+
49595
+ /**
49596
+ * Determine if a value is a Blob
49597
+ *
49598
+ * @param {*} val The value to test
49599
+ *
49600
+ * @returns {boolean} True if value is a Blob, otherwise false
49601
+ */
49602
+ const utils_isBlob = kindOfTest('Blob');
49603
+
49604
+ /**
49605
+ * Determine if a value is a FileList
49606
+ *
49607
+ * @param {*} val The value to test
49608
+ *
49609
+ * @returns {boolean} True if value is a File, otherwise false
49610
+ */
49611
+ const isFileList = kindOfTest('FileList');
49612
+
49613
+ /**
49614
+ * Determine if a value is a Stream
49615
+ *
49616
+ * @param {*} val The value to test
49617
+ *
49618
+ * @returns {boolean} True if value is a Stream, otherwise false
49619
+ */
49620
+ const isStream = (val) => isObject(val) && utils_isFunction(val.pipe);
49621
+
49622
+ /**
49623
+ * Determine if a value is a FormData
49624
+ *
49625
+ * @param {*} thing The value to test
49626
+ *
49627
+ * @returns {boolean} True if value is an FormData, otherwise false
49628
+ */
49629
+ const isFormData = (thing) => {
49630
+ let kind;
49631
+ return thing && (
49632
+ (typeof FormData === 'function' && thing instanceof FormData) || (
49633
+ utils_isFunction(thing.append) && (
49634
+ (kind = kindOf(thing)) === 'formdata' ||
49635
+ // detect form-data instance
49636
+ (kind === 'object' && utils_isFunction(thing.toString) && thing.toString() === '[object FormData]')
49637
+ )
49638
+ )
49639
+ )
49640
+ }
49641
+
49642
+ /**
49643
+ * Determine if a value is a URLSearchParams object
49644
+ *
49645
+ * @param {*} val The value to test
49646
+ *
49647
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
49648
+ */
49649
+ const isURLSearchParams = kindOfTest('URLSearchParams');
49650
+
49651
+ /**
49652
+ * Trim excess whitespace off the beginning and end of a string
49653
+ *
49654
+ * @param {String} str The String to trim
49655
+ *
49656
+ * @returns {String} The String freed of excess whitespace
49657
+ */
49658
+ const trim = (str) => str.trim ?
49659
+ str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
49660
+
49661
+ /**
49662
+ * Iterate over an Array or an Object invoking a function for each item.
49663
+ *
49664
+ * If `obj` is an Array callback will be called passing
49665
+ * the value, index, and complete array for each item.
49666
+ *
49667
+ * If 'obj' is an Object callback will be called passing
49668
+ * the value, key, and complete object for each property.
49669
+ *
49670
+ * @param {Object|Array} obj The object to iterate
49671
+ * @param {Function} fn The callback to invoke for each item
49672
+ *
49673
+ * @param {Boolean} [allOwnKeys = false]
49674
+ * @returns {any}
49675
+ */
49676
+ function utils_forEach(obj, fn, {allOwnKeys = false} = {}) {
49677
+ // Don't bother if no value provided
49678
+ if (obj === null || typeof obj === 'undefined') {
49679
+ return;
49680
+ }
49681
+
49682
+ let i;
49683
+ let l;
49684
+
49685
+ // Force an array if not already something iterable
49686
+ if (typeof obj !== 'object') {
49687
+ /*eslint no-param-reassign:0*/
49688
+ obj = [obj];
49689
+ }
49690
+
49691
+ if (utils_isArray(obj)) {
49692
+ // Iterate over array values
49693
+ for (i = 0, l = obj.length; i < l; i++) {
49694
+ fn.call(null, obj[i], i, obj);
49695
+ }
49696
+ } else {
49697
+ // Iterate over object keys
49698
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
49699
+ const len = keys.length;
49700
+ let key;
49701
+
49702
+ for (i = 0; i < len; i++) {
49703
+ key = keys[i];
49704
+ fn.call(null, obj[key], key, obj);
49705
+ }
49706
+ }
49707
+ }
49708
+
49709
+ function findKey(obj, key) {
49710
+ key = key.toLowerCase();
49711
+ const keys = Object.keys(obj);
49712
+ let i = keys.length;
49713
+ let _key;
49714
+ while (i-- > 0) {
49715
+ _key = keys[i];
49716
+ if (key === _key.toLowerCase()) {
49717
+ return _key;
49718
+ }
49719
+ }
49720
+ return null;
49721
+ }
49722
+
49723
+ const _global = (() => {
49724
+ /*eslint no-undef:0*/
49725
+ if (typeof globalThis !== "undefined") return globalThis;
49726
+ return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
49727
+ })();
49728
+
49729
+ const isContextDefined = (context) => !isUndefined(context) && context !== _global;
49730
+
49731
+ /**
49732
+ * Accepts varargs expecting each argument to be an object, then
49733
+ * immutably merges the properties of each object and returns result.
49734
+ *
49735
+ * When multiple objects contain the same key the later object in
49736
+ * the arguments list will take precedence.
49737
+ *
49738
+ * Example:
49739
+ *
49740
+ * ```js
49741
+ * var result = merge({foo: 123}, {foo: 456});
49742
+ * console.log(result.foo); // outputs 456
49743
+ * ```
49744
+ *
49745
+ * @param {Object} obj1 Object to merge
49746
+ *
49747
+ * @returns {Object} Result of all merge properties
49748
+ */
49749
+ function merge(/* obj1, obj2, obj3, ... */) {
49750
+ const {caseless} = isContextDefined(this) && this || {};
49751
+ const result = {};
49752
+ const assignValue = (val, key) => {
49753
+ const targetKey = caseless && findKey(result, key) || key;
49754
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
49755
+ result[targetKey] = merge(result[targetKey], val);
49756
+ } else if (isPlainObject(val)) {
49757
+ result[targetKey] = merge({}, val);
49758
+ } else if (utils_isArray(val)) {
49759
+ result[targetKey] = val.slice();
49760
+ } else {
49761
+ result[targetKey] = val;
49762
+ }
49763
+ }
49764
+
49765
+ for (let i = 0, l = arguments.length; i < l; i++) {
49766
+ arguments[i] && utils_forEach(arguments[i], assignValue);
49767
+ }
49768
+ return result;
49769
+ }
49770
+
49771
+ /**
49772
+ * Extends object a by mutably adding to it the properties of object b.
49773
+ *
49774
+ * @param {Object} a The object to be extended
49775
+ * @param {Object} b The object to copy properties from
49776
+ * @param {Object} thisArg The object to bind function to
49777
+ *
49778
+ * @param {Boolean} [allOwnKeys]
49779
+ * @returns {Object} The resulting value of object a
49780
+ */
49781
+ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
49782
+ utils_forEach(b, (val, key) => {
49783
+ if (thisArg && utils_isFunction(val)) {
49784
+ a[key] = bind_bind(val, thisArg);
49785
+ } else {
49786
+ a[key] = val;
49787
+ }
49788
+ }, {allOwnKeys});
49789
+ return a;
49790
+ }
49791
+
49792
+ /**
49793
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
49794
+ *
49795
+ * @param {string} content with BOM
49796
+ *
49797
+ * @returns {string} content value without BOM
49798
+ */
49799
+ const stripBOM = (content) => {
49800
+ if (content.charCodeAt(0) === 0xFEFF) {
49801
+ content = content.slice(1);
49802
+ }
49803
+ return content;
49804
+ }
49805
+
49806
+ /**
49807
+ * Inherit the prototype methods from one constructor into another
49808
+ * @param {function} constructor
49809
+ * @param {function} superConstructor
49810
+ * @param {object} [props]
49811
+ * @param {object} [descriptors]
49812
+ *
49813
+ * @returns {void}
49814
+ */
49815
+ const inherits = (constructor, superConstructor, props, descriptors) => {
49816
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
49817
+ constructor.prototype.constructor = constructor;
49818
+ Object.defineProperty(constructor, 'super', {
49819
+ value: superConstructor.prototype
49820
+ });
49821
+ props && Object.assign(constructor.prototype, props);
49822
+ }
49823
+
49824
+ /**
49825
+ * Resolve object with deep prototype chain to a flat object
49826
+ * @param {Object} sourceObj source object
49827
+ * @param {Object} [destObj]
49828
+ * @param {Function|Boolean} [filter]
49829
+ * @param {Function} [propFilter]
49830
+ *
49831
+ * @returns {Object}
49832
+ */
49833
+ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
49834
+ let props;
49835
+ let i;
49836
+ let prop;
49837
+ const merged = {};
49838
+
49839
+ destObj = destObj || {};
49840
+ // eslint-disable-next-line no-eq-null,eqeqeq
49841
+ if (sourceObj == null) return destObj;
49842
+
49843
+ do {
49844
+ props = Object.getOwnPropertyNames(sourceObj);
49845
+ i = props.length;
49846
+ while (i-- > 0) {
49847
+ prop = props[i];
49848
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
49849
+ destObj[prop] = sourceObj[prop];
49850
+ merged[prop] = true;
49851
+ }
49852
+ }
49853
+ sourceObj = filter !== false && getPrototypeOf(sourceObj);
49854
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
49855
+
49856
+ return destObj;
49857
+ }
49858
+
49859
+ /**
49860
+ * Determines whether a string ends with the characters of a specified string
49861
+ *
49862
+ * @param {String} str
49863
+ * @param {String} searchString
49864
+ * @param {Number} [position= 0]
49865
+ *
49866
+ * @returns {boolean}
49867
+ */
49868
+ const utils_endsWith = (str, searchString, position) => {
49869
+ str = String(str);
49870
+ if (position === undefined || position > str.length) {
49871
+ position = str.length;
49872
+ }
49873
+ position -= searchString.length;
49874
+ const lastIndex = str.indexOf(searchString, position);
49875
+ return lastIndex !== -1 && lastIndex === position;
49876
+ }
49877
+
49878
+
49879
+ /**
49880
+ * Returns new array from array like object or null if failed
49881
+ *
49882
+ * @param {*} [thing]
49883
+ *
49884
+ * @returns {?Array}
49885
+ */
49886
+ const utils_toArray = (thing) => {
49887
+ if (!thing) return null;
49888
+ if (utils_isArray(thing)) return thing;
49889
+ let i = thing.length;
49890
+ if (!isNumber(i)) return null;
49891
+ const arr = new Array(i);
49892
+ while (i-- > 0) {
49893
+ arr[i] = thing[i];
49894
+ }
49895
+ return arr;
49896
+ }
49897
+
49898
+ /**
49899
+ * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
49900
+ * thing passed in is an instance of Uint8Array
49901
+ *
49902
+ * @param {TypedArray}
49903
+ *
49904
+ * @returns {Array}
49905
+ */
49906
+ // eslint-disable-next-line func-names
49907
+ const isTypedArray = (TypedArray => {
49908
+ // eslint-disable-next-line func-names
49909
+ return thing => {
49910
+ return TypedArray && thing instanceof TypedArray;
49911
+ };
49912
+ })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
49913
+
49914
+ /**
49915
+ * For each entry in the object, call the function with the key and value.
49916
+ *
49917
+ * @param {Object<any, any>} obj - The object to iterate over.
49918
+ * @param {Function} fn - The function to call for each entry.
49919
+ *
49920
+ * @returns {void}
49921
+ */
49922
+ const forEachEntry = (obj, fn) => {
49923
+ const generator = obj && obj[Symbol.iterator];
49924
+
49925
+ const iterator = generator.call(obj);
49926
+
49927
+ let result;
49928
+
49929
+ while ((result = iterator.next()) && !result.done) {
49930
+ const pair = result.value;
49931
+ fn.call(obj, pair[0], pair[1]);
49932
+ }
49933
+ }
49934
+
49935
+ /**
49936
+ * It takes a regular expression and a string, and returns an array of all the matches
49937
+ *
49938
+ * @param {string} regExp - The regular expression to match against.
49939
+ * @param {string} str - The string to search.
49940
+ *
49941
+ * @returns {Array<boolean>}
49942
+ */
49943
+ const matchAll = (regExp, str) => {
49944
+ let matches;
49945
+ const arr = [];
49946
+
49947
+ while ((matches = regExp.exec(str)) !== null) {
49948
+ arr.push(matches);
49949
+ }
49950
+
49951
+ return arr;
49952
+ }
49953
+
49954
+ /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
49955
+ const isHTMLForm = kindOfTest('HTMLFormElement');
49956
+
49957
+ const toCamelCase = str => {
49958
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
49959
+ function replacer(m, p1, p2) {
49960
+ return p1.toUpperCase() + p2;
49961
+ }
49962
+ );
49963
+ };
49964
+
49965
+ /* Creating a function that will check if an object has a property. */
49966
+ const utils_hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
49967
+
49968
+ /**
49969
+ * Determine if a value is a RegExp object
49970
+ *
49971
+ * @param {*} val The value to test
49972
+ *
49973
+ * @returns {boolean} True if value is a RegExp object, otherwise false
49974
+ */
49975
+ const isRegExp = kindOfTest('RegExp');
49976
+
49977
+ const reduceDescriptors = (obj, reducer) => {
49978
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
49979
+ const reducedDescriptors = {};
49980
+
49981
+ utils_forEach(descriptors, (descriptor, name) => {
49982
+ let ret;
49983
+ if ((ret = reducer(descriptor, name, obj)) !== false) {
49984
+ reducedDescriptors[name] = ret || descriptor;
49985
+ }
49986
+ });
49987
+
49988
+ Object.defineProperties(obj, reducedDescriptors);
49989
+ }
49990
+
49991
+ /**
49992
+ * Makes all methods read-only
49993
+ * @param {Object} obj
49994
+ */
49995
+
49996
+ const freezeMethods = (obj) => {
49997
+ reduceDescriptors(obj, (descriptor, name) => {
49998
+ // skip restricted props in strict mode
49999
+ if (utils_isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
50000
+ return false;
50001
+ }
50002
+
50003
+ const value = obj[name];
50004
+
50005
+ if (!utils_isFunction(value)) return;
50006
+
50007
+ descriptor.enumerable = false;
50008
+
50009
+ if ('writable' in descriptor) {
50010
+ descriptor.writable = false;
50011
+ return;
50012
+ }
50013
+
50014
+ if (!descriptor.set) {
50015
+ descriptor.set = () => {
50016
+ throw Error('Can not rewrite read-only method \'' + name + '\'');
50017
+ };
50018
+ }
50019
+ });
50020
+ }
50021
+
50022
+ const toObjectSet = (arrayOrString, delimiter) => {
50023
+ const obj = {};
50024
+
50025
+ const define = (arr) => {
50026
+ arr.forEach(value => {
50027
+ obj[value] = true;
50028
+ });
50029
+ }
50030
+
50031
+ utils_isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
50032
+
50033
+ return obj;
50034
+ }
50035
+
50036
+ const utils_noop = () => {}
50037
+
50038
+ const toFiniteNumber = (value, defaultValue) => {
50039
+ value = +value;
50040
+ return Number.isFinite(value) ? value : defaultValue;
50041
+ }
50042
+
50043
+ const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
50044
+
50045
+ const DIGIT = '0123456789';
50046
+
50047
+ const ALPHABET = {
50048
+ DIGIT,
50049
+ ALPHA,
50050
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
50051
+ }
50052
+
50053
+ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
50054
+ let str = '';
50055
+ const {length} = alphabet;
50056
+ while (size--) {
50057
+ str += alphabet[Math.random() * length|0]
50058
+ }
50059
+
50060
+ return str;
50061
+ }
50062
+
50063
+ /**
50064
+ * If the thing is a FormData object, return true, otherwise return false.
50065
+ *
50066
+ * @param {unknown} thing - The thing to check.
50067
+ *
50068
+ * @returns {boolean}
50069
+ */
50070
+ function isSpecCompliantForm(thing) {
50071
+ return !!(thing && utils_isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
50072
+ }
50073
+
50074
+ const toJSONObject = (obj) => {
50075
+ const stack = new Array(10);
50076
+
50077
+ const visit = (source, i) => {
50078
+
50079
+ if (isObject(source)) {
50080
+ if (stack.indexOf(source) >= 0) {
50081
+ return;
50082
+ }
50083
+
50084
+ if(!('toJSON' in source)) {
50085
+ stack[i] = source;
50086
+ const target = utils_isArray(source) ? [] : {};
50087
+
50088
+ utils_forEach(source, (value, key) => {
50089
+ const reducedValue = visit(value, i + 1);
50090
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
50091
+ });
50092
+
50093
+ stack[i] = undefined;
50094
+
50095
+ return target;
50096
+ }
50097
+ }
50098
+
50099
+ return source;
50100
+ }
50101
+
50102
+ return visit(obj, 0);
50103
+ }
50104
+
50105
+ const isAsyncFn = kindOfTest('AsyncFunction');
50106
+
50107
+ const isThenable = (thing) =>
50108
+ thing && (isObject(thing) || utils_isFunction(thing)) && utils_isFunction(thing.then) && utils_isFunction(thing.catch);
50109
+
50110
+ /* harmony default export */ const utils = ({
50111
+ isArray: utils_isArray,
50112
+ isArrayBuffer,
50113
+ isBuffer,
50114
+ isFormData,
50115
+ isArrayBufferView,
50116
+ isString,
50117
+ isNumber,
50118
+ isBoolean,
50119
+ isObject,
50120
+ isPlainObject,
50121
+ isUndefined,
50122
+ isDate,
50123
+ isFile,
50124
+ isBlob: utils_isBlob,
50125
+ isRegExp,
50126
+ isFunction: utils_isFunction,
50127
+ isStream,
50128
+ isURLSearchParams,
50129
+ isTypedArray,
50130
+ isFileList,
50131
+ forEach: utils_forEach,
50132
+ merge,
50133
+ extend,
50134
+ trim,
50135
+ stripBOM,
50136
+ inherits,
50137
+ toFlatObject,
50138
+ kindOf,
50139
+ kindOfTest,
50140
+ endsWith: utils_endsWith,
50141
+ toArray: utils_toArray,
50142
+ forEachEntry,
50143
+ matchAll,
50144
+ isHTMLForm,
50145
+ hasOwnProperty: utils_hasOwnProperty,
50146
+ hasOwnProp: utils_hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
50147
+ reduceDescriptors,
50148
+ freezeMethods,
50149
+ toObjectSet,
50150
+ toCamelCase,
50151
+ noop: utils_noop,
50152
+ toFiniteNumber,
50153
+ findKey,
50154
+ global: _global,
50155
+ isContextDefined,
50156
+ ALPHABET,
50157
+ generateString,
50158
+ isSpecCompliantForm,
50159
+ toJSONObject,
50160
+ isAsyncFn,
50161
+ isThenable
50162
+ });
50163
+
50164
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/core/AxiosError.js
50165
+
50166
+
50167
+
50168
+
50169
+ /**
50170
+ * Create an Error with the specified message, config, error code, request and response.
50171
+ *
50172
+ * @param {string} message The error message.
50173
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
50174
+ * @param {Object} [config] The config.
50175
+ * @param {Object} [request] The request.
50176
+ * @param {Object} [response] The response.
50177
+ *
50178
+ * @returns {Error} The created error.
50179
+ */
50180
+ function AxiosError(message, code, config, request, response) {
50181
+ Error.call(this);
50182
+
50183
+ if (Error.captureStackTrace) {
50184
+ Error.captureStackTrace(this, this.constructor);
50185
+ } else {
50186
+ this.stack = (new Error()).stack;
50187
+ }
50188
+
50189
+ this.message = message;
50190
+ this.name = 'AxiosError';
50191
+ code && (this.code = code);
50192
+ config && (this.config = config);
50193
+ request && (this.request = request);
50194
+ response && (this.response = response);
50195
+ }
50196
+
50197
+ utils.inherits(AxiosError, Error, {
50198
+ toJSON: function toJSON() {
50199
+ return {
50200
+ // Standard
50201
+ message: this.message,
50202
+ name: this.name,
50203
+ // Microsoft
50204
+ description: this.description,
50205
+ number: this.number,
50206
+ // Mozilla
50207
+ fileName: this.fileName,
50208
+ lineNumber: this.lineNumber,
50209
+ columnNumber: this.columnNumber,
50210
+ stack: this.stack,
50211
+ // Axios
50212
+ config: utils.toJSONObject(this.config),
50213
+ code: this.code,
50214
+ status: this.response && this.response.status ? this.response.status : null
50215
+ };
50216
+ }
50217
+ });
50218
+
50219
+ const AxiosError_prototype = AxiosError.prototype;
50220
+ const descriptors = {};
50221
+
50222
+ [
50223
+ 'ERR_BAD_OPTION_VALUE',
50224
+ 'ERR_BAD_OPTION',
50225
+ 'ECONNABORTED',
50226
+ 'ETIMEDOUT',
50227
+ 'ERR_NETWORK',
50228
+ 'ERR_FR_TOO_MANY_REDIRECTS',
50229
+ 'ERR_DEPRECATED',
50230
+ 'ERR_BAD_RESPONSE',
50231
+ 'ERR_BAD_REQUEST',
50232
+ 'ERR_CANCELED',
50233
+ 'ERR_NOT_SUPPORT',
50234
+ 'ERR_INVALID_URL'
50235
+ // eslint-disable-next-line func-names
50236
+ ].forEach(code => {
50237
+ descriptors[code] = {value: code};
50238
+ });
50239
+
50240
+ Object.defineProperties(AxiosError, descriptors);
50241
+ Object.defineProperty(AxiosError_prototype, 'isAxiosError', {value: true});
50242
+
50243
+ // eslint-disable-next-line func-names
50244
+ AxiosError.from = (error, code, config, request, response, customProps) => {
50245
+ const axiosError = Object.create(AxiosError_prototype);
50246
+
50247
+ utils.toFlatObject(error, axiosError, function filter(obj) {
50248
+ return obj !== Error.prototype;
50249
+ }, prop => {
50250
+ return prop !== 'isAxiosError';
50251
+ });
50252
+
50253
+ AxiosError.call(axiosError, error.message, code, config, request, response);
50254
+
50255
+ axiosError.cause = error;
50256
+
50257
+ axiosError.name = error.name;
50258
+
50259
+ customProps && Object.assign(axiosError, customProps);
50260
+
50261
+ return axiosError;
50262
+ };
50263
+
50264
+ /* harmony default export */ const core_AxiosError = (AxiosError);
50265
+
50266
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/null.js
50267
+ // eslint-disable-next-line strict
50268
+ /* harmony default export */ const helpers_null = (null);
50269
+
50270
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/toFormData.js
50271
+
50272
+
50273
+
50274
+
50275
+ // temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
50276
+
50277
+
50278
+ /**
50279
+ * Determines if the given thing is a array or js object.
50280
+ *
50281
+ * @param {string} thing - The object or array to be visited.
50282
+ *
50283
+ * @returns {boolean}
50284
+ */
50285
+ function isVisitable(thing) {
50286
+ return utils.isPlainObject(thing) || utils.isArray(thing);
50287
+ }
50288
+
50289
+ /**
50290
+ * It removes the brackets from the end of a string
50291
+ *
50292
+ * @param {string} key - The key of the parameter.
50293
+ *
50294
+ * @returns {string} the key without the brackets.
50295
+ */
50296
+ function removeBrackets(key) {
50297
+ return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;
50298
+ }
50299
+
50300
+ /**
50301
+ * It takes a path, a key, and a boolean, and returns a string
50302
+ *
50303
+ * @param {string} path - The path to the current key.
50304
+ * @param {string} key - The key of the current object being iterated over.
50305
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
50306
+ *
50307
+ * @returns {string} The path to the current key.
50308
+ */
50309
+ function renderKey(path, key, dots) {
50310
+ if (!path) return key;
50311
+ return path.concat(key).map(function each(token, i) {
50312
+ // eslint-disable-next-line no-param-reassign
50313
+ token = removeBrackets(token);
50314
+ return !dots && i ? '[' + token + ']' : token;
50315
+ }).join(dots ? '.' : '');
50316
+ }
50317
+
50318
+ /**
50319
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
50320
+ *
50321
+ * @param {Array<any>} arr - The array to check
50322
+ *
50323
+ * @returns {boolean}
50324
+ */
50325
+ function isFlatArray(arr) {
50326
+ return utils.isArray(arr) && !arr.some(isVisitable);
50327
+ }
50328
+
50329
+ const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
50330
+ return /^is[A-Z]/.test(prop);
50331
+ });
50332
+
50333
+ /**
50334
+ * Convert a data object to FormData
50335
+ *
50336
+ * @param {Object} obj
50337
+ * @param {?Object} [formData]
50338
+ * @param {?Object} [options]
50339
+ * @param {Function} [options.visitor]
50340
+ * @param {Boolean} [options.metaTokens = true]
50341
+ * @param {Boolean} [options.dots = false]
50342
+ * @param {?Boolean} [options.indexes = false]
50343
+ *
50344
+ * @returns {Object}
50345
+ **/
50346
+
50347
+ /**
50348
+ * It converts an object into a FormData object
50349
+ *
50350
+ * @param {Object<any, any>} obj - The object to convert to form data.
50351
+ * @param {string} formData - The FormData object to append to.
50352
+ * @param {Object<string, any>} options
50353
+ *
50354
+ * @returns
50355
+ */
50356
+ function toFormData(obj, formData, options) {
50357
+ if (!utils.isObject(obj)) {
50358
+ throw new TypeError('target must be an object');
50359
+ }
50360
+
50361
+ // eslint-disable-next-line no-param-reassign
50362
+ formData = formData || new (helpers_null || FormData)();
50363
+
50364
+ // eslint-disable-next-line no-param-reassign
50365
+ options = utils.toFlatObject(options, {
50366
+ metaTokens: true,
50367
+ dots: false,
50368
+ indexes: false
50369
+ }, false, function defined(option, source) {
50370
+ // eslint-disable-next-line no-eq-null,eqeqeq
50371
+ return !utils.isUndefined(source[option]);
50372
+ });
50373
+
50374
+ const metaTokens = options.metaTokens;
50375
+ // eslint-disable-next-line no-use-before-define
50376
+ const visitor = options.visitor || defaultVisitor;
50377
+ const dots = options.dots;
50378
+ const indexes = options.indexes;
50379
+ const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
50380
+ const useBlob = _Blob && utils.isSpecCompliantForm(formData);
50381
+
50382
+ if (!utils.isFunction(visitor)) {
50383
+ throw new TypeError('visitor must be a function');
50384
+ }
50385
+
50386
+ function convertValue(value) {
50387
+ if (value === null) return '';
50388
+
50389
+ if (utils.isDate(value)) {
50390
+ return value.toISOString();
50391
+ }
50392
+
50393
+ if (!useBlob && utils.isBlob(value)) {
50394
+ throw new core_AxiosError('Blob is not supported. Use a Buffer instead.');
50395
+ }
50396
+
50397
+ if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
50398
+ return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
50399
+ }
50400
+
50401
+ return value;
50402
+ }
50403
+
50404
+ /**
50405
+ * Default visitor.
50406
+ *
50407
+ * @param {*} value
50408
+ * @param {String|Number} key
50409
+ * @param {Array<String|Number>} path
50410
+ * @this {FormData}
50411
+ *
50412
+ * @returns {boolean} return true to visit the each prop of the value recursively
50413
+ */
50414
+ function defaultVisitor(value, key, path) {
50415
+ let arr = value;
50416
+
50417
+ if (value && !path && typeof value === 'object') {
50418
+ if (utils.endsWith(key, '{}')) {
50419
+ // eslint-disable-next-line no-param-reassign
50420
+ key = metaTokens ? key : key.slice(0, -2);
50421
+ // eslint-disable-next-line no-param-reassign
50422
+ value = JSON.stringify(value);
50423
+ } else if (
50424
+ (utils.isArray(value) && isFlatArray(value)) ||
50425
+ ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
50426
+ )) {
50427
+ // eslint-disable-next-line no-param-reassign
50428
+ key = removeBrackets(key);
50429
+
50430
+ arr.forEach(function each(el, index) {
50431
+ !(utils.isUndefined(el) || el === null) && formData.append(
50432
+ // eslint-disable-next-line no-nested-ternary
50433
+ indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
50434
+ convertValue(el)
50435
+ );
50436
+ });
50437
+ return false;
50438
+ }
50439
+ }
50440
+
50441
+ if (isVisitable(value)) {
50442
+ return true;
50443
+ }
50444
+
50445
+ formData.append(renderKey(path, key, dots), convertValue(value));
50446
+
50447
+ return false;
50448
+ }
50449
+
50450
+ const stack = [];
50451
+
50452
+ const exposedHelpers = Object.assign(predicates, {
50453
+ defaultVisitor,
50454
+ convertValue,
50455
+ isVisitable
50456
+ });
50457
+
50458
+ function build(value, path) {
50459
+ if (utils.isUndefined(value)) return;
50460
+
50461
+ if (stack.indexOf(value) !== -1) {
50462
+ throw Error('Circular reference detected in ' + path.join('.'));
50463
+ }
50464
+
50465
+ stack.push(value);
50466
+
50467
+ utils.forEach(value, function each(el, key) {
50468
+ const result = !(utils.isUndefined(el) || el === null) && visitor.call(
50469
+ formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers
50470
+ );
50471
+
50472
+ if (result === true) {
50473
+ build(el, path ? path.concat(key) : [key]);
50474
+ }
50475
+ });
50476
+
50477
+ stack.pop();
50478
+ }
50479
+
50480
+ if (!utils.isObject(obj)) {
50481
+ throw new TypeError('data must be an object');
50482
+ }
50483
+
50484
+ build(obj);
50485
+
50486
+ return formData;
50487
+ }
50488
+
50489
+ /* harmony default export */ const helpers_toFormData = (toFormData);
50490
+
50491
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/AxiosURLSearchParams.js
50492
+
50493
+
50494
+
50495
+
50496
+ /**
50497
+ * It encodes a string by replacing all characters that are not in the unreserved set with
50498
+ * their percent-encoded equivalents
50499
+ *
50500
+ * @param {string} str - The string to encode.
50501
+ *
50502
+ * @returns {string} The encoded string.
50503
+ */
50504
+ function encode(str) {
50505
+ const charMap = {
50506
+ '!': '%21',
50507
+ "'": '%27',
50508
+ '(': '%28',
50509
+ ')': '%29',
50510
+ '~': '%7E',
50511
+ '%20': '+',
50512
+ '%00': '\x00'
50513
+ };
50514
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
50515
+ return charMap[match];
50516
+ });
50517
+ }
50518
+
50519
+ /**
50520
+ * It takes a params object and converts it to a FormData object
50521
+ *
50522
+ * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
50523
+ * @param {Object<string, any>} options - The options object passed to the Axios constructor.
50524
+ *
50525
+ * @returns {void}
50526
+ */
50527
+ function AxiosURLSearchParams(params, options) {
50528
+ this._pairs = [];
50529
+
50530
+ params && helpers_toFormData(params, this, options);
50531
+ }
50532
+
50533
+ const AxiosURLSearchParams_prototype = AxiosURLSearchParams.prototype;
50534
+
50535
+ AxiosURLSearchParams_prototype.append = function append(name, value) {
50536
+ this._pairs.push([name, value]);
50537
+ };
50538
+
50539
+ AxiosURLSearchParams_prototype.toString = function toString(encoder) {
50540
+ const _encode = encoder ? function(value) {
50541
+ return encoder.call(this, value, encode);
50542
+ } : encode;
50543
+
50544
+ return this._pairs.map(function each(pair) {
50545
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
50546
+ }, '').join('&');
50547
+ };
50548
+
50549
+ /* harmony default export */ const helpers_AxiosURLSearchParams = (AxiosURLSearchParams);
50550
+
50551
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/buildURL.js
50552
+
50553
+
50554
+
50555
+
50556
+
50557
+ /**
50558
+ * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
50559
+ * URI encoded counterparts
50560
+ *
50561
+ * @param {string} val The value to be encoded.
50562
+ *
50563
+ * @returns {string} The encoded value.
50564
+ */
50565
+ function buildURL_encode(val) {
50566
+ return encodeURIComponent(val).
50567
+ replace(/%3A/gi, ':').
50568
+ replace(/%24/g, '$').
50569
+ replace(/%2C/gi, ',').
50570
+ replace(/%20/g, '+').
50571
+ replace(/%5B/gi, '[').
50572
+ replace(/%5D/gi, ']');
50573
+ }
50574
+
50575
+ /**
50576
+ * Build a URL by appending params to the end
50577
+ *
50578
+ * @param {string} url The base of the url (e.g., http://www.google.com)
50579
+ * @param {object} [params] The params to be appended
50580
+ * @param {?object} options
50581
+ *
50582
+ * @returns {string} The formatted url
50583
+ */
50584
+ function buildURL(url, params, options) {
50585
+ /*eslint no-param-reassign:0*/
50586
+ if (!params) {
50587
+ return url;
50588
+ }
50589
+
50590
+ const _encode = options && options.encode || buildURL_encode;
50591
+
50592
+ const serializeFn = options && options.serialize;
50593
+
50594
+ let serializedParams;
50595
+
50596
+ if (serializeFn) {
50597
+ serializedParams = serializeFn(params, options);
50598
+ } else {
50599
+ serializedParams = utils.isURLSearchParams(params) ?
50600
+ params.toString() :
50601
+ new helpers_AxiosURLSearchParams(params, options).toString(_encode);
50602
+ }
50603
+
50604
+ if (serializedParams) {
50605
+ const hashmarkIndex = url.indexOf("#");
50606
+
50607
+ if (hashmarkIndex !== -1) {
50608
+ url = url.slice(0, hashmarkIndex);
50609
+ }
50610
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
50611
+ }
50612
+
50613
+ return url;
50614
+ }
50615
+
50616
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/core/InterceptorManager.js
50617
+
50618
+
50619
+
50620
+
50621
+ class InterceptorManager {
50622
+ constructor() {
50623
+ this.handlers = [];
50624
+ }
50625
+
50626
+ /**
50627
+ * Add a new interceptor to the stack
50628
+ *
50629
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
50630
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
50631
+ *
50632
+ * @return {Number} An ID used to remove interceptor later
50633
+ */
50634
+ use(fulfilled, rejected, options) {
50635
+ this.handlers.push({
50636
+ fulfilled,
50637
+ rejected,
50638
+ synchronous: options ? options.synchronous : false,
50639
+ runWhen: options ? options.runWhen : null
50640
+ });
50641
+ return this.handlers.length - 1;
50642
+ }
50643
+
50644
+ /**
50645
+ * Remove an interceptor from the stack
50646
+ *
50647
+ * @param {Number} id The ID that was returned by `use`
50648
+ *
50649
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
50650
+ */
50651
+ eject(id) {
50652
+ if (this.handlers[id]) {
50653
+ this.handlers[id] = null;
50654
+ }
50655
+ }
50656
+
50657
+ /**
50658
+ * Clear all interceptors from the stack
50659
+ *
50660
+ * @returns {void}
50661
+ */
50662
+ clear() {
50663
+ if (this.handlers) {
50664
+ this.handlers = [];
50665
+ }
50666
+ }
50667
+
50668
+ /**
50669
+ * Iterate over all the registered interceptors
50670
+ *
50671
+ * This method is particularly useful for skipping over any
50672
+ * interceptors that may have become `null` calling `eject`.
50673
+ *
50674
+ * @param {Function} fn The function to call for each interceptor
50675
+ *
50676
+ * @returns {void}
50677
+ */
50678
+ forEach(fn) {
50679
+ utils.forEach(this.handlers, function forEachHandler(h) {
50680
+ if (h !== null) {
50681
+ fn(h);
50682
+ }
50683
+ });
50684
+ }
50685
+ }
50686
+
50687
+ /* harmony default export */ const core_InterceptorManager = (InterceptorManager);
50688
+
50689
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/defaults/transitional.js
50690
+
50691
+
50692
+ /* harmony default export */ const defaults_transitional = ({
50693
+ silentJSONParsing: true,
50694
+ forcedJSONParsing: true,
50695
+ clarifyTimeoutError: false
50696
+ });
50697
+
50698
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js
50699
+
50700
+
50701
+
50702
+ /* harmony default export */ const classes_URLSearchParams = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : helpers_AxiosURLSearchParams);
50703
+
50704
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/platform/browser/classes/FormData.js
50705
+
50706
+
50707
+ /* harmony default export */ const classes_FormData = (typeof FormData !== 'undefined' ? FormData : null);
50708
+
50709
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/platform/browser/classes/Blob.js
50710
+
50711
+
50712
+ /* harmony default export */ const classes_Blob = (typeof Blob !== 'undefined' ? Blob : null);
50713
+
50714
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/platform/browser/index.js
50715
+
50716
+
50717
+
50718
+
50719
+ /* harmony default export */ const browser = ({
50720
+ isBrowser: true,
50721
+ classes: {
50722
+ URLSearchParams: classes_URLSearchParams,
50723
+ FormData: classes_FormData,
50724
+ Blob: classes_Blob
50725
+ },
50726
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
50727
+ });
50728
+
50729
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/platform/common/utils.js
50730
+ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
50731
+
50732
+ /**
50733
+ * Determine if we're running in a standard browser environment
50734
+ *
50735
+ * This allows axios to run in a web worker, and react-native.
50736
+ * Both environments support XMLHttpRequest, but not fully standard globals.
50737
+ *
50738
+ * web workers:
50739
+ * typeof window -> undefined
50740
+ * typeof document -> undefined
50741
+ *
50742
+ * react-native:
50743
+ * navigator.product -> 'ReactNative'
50744
+ * nativescript
50745
+ * navigator.product -> 'NativeScript' or 'NS'
50746
+ *
50747
+ * @returns {boolean}
50748
+ */
50749
+ const hasStandardBrowserEnv = (
50750
+ (product) => {
50751
+ return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
50752
+ })(typeof navigator !== 'undefined' && navigator.product);
50753
+
50754
+ /**
50755
+ * Determine if we're running in a standard browser webWorker environment
50756
+ *
50757
+ * Although the `isStandardBrowserEnv` method indicates that
50758
+ * `allows axios to run in a web worker`, the WebWorker will still be
50759
+ * filtered out due to its judgment standard
50760
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
50761
+ * This leads to a problem when axios post `FormData` in webWorker
50762
+ */
50763
+ const hasStandardBrowserWebWorkerEnv = (() => {
50764
+ return (
50765
+ typeof WorkerGlobalScope !== 'undefined' &&
50766
+ // eslint-disable-next-line no-undef
50767
+ self instanceof WorkerGlobalScope &&
50768
+ typeof self.importScripts === 'function'
50769
+ );
50770
+ })();
50771
+
50772
+
50773
+
50774
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/platform/index.js
50775
+
50776
+
50777
+
50778
+ /* harmony default export */ const platform = ({
50779
+ ...common_utils_namespaceObject,
50780
+ ...browser
50781
+ });
50782
+
50783
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/toURLEncodedForm.js
50784
+
50785
+
50786
+
50787
+
50788
+
50789
+
50790
+ function toURLEncodedForm(data, options) {
50791
+ return helpers_toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
50792
+ visitor: function(value, key, path, helpers) {
50793
+ if (platform.isNode && utils.isBuffer(value)) {
50794
+ this.append(key, value.toString('base64'));
50795
+ return false;
50796
+ }
50797
+
50798
+ return helpers.defaultVisitor.apply(this, arguments);
50799
+ }
50800
+ }, options));
50801
+ }
50802
+
50803
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/formDataToJSON.js
50804
+
50805
+
50806
+
50807
+
50808
+ /**
50809
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
50810
+ *
50811
+ * @param {string} name - The name of the property to get.
50812
+ *
50813
+ * @returns An array of strings.
50814
+ */
50815
+ function parsePropPath(name) {
50816
+ // foo[x][y][z]
50817
+ // foo.x.y.z
50818
+ // foo-x-y-z
50819
+ // foo x y z
50820
+ return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
50821
+ return match[0] === '[]' ? '' : match[1] || match[0];
50822
+ });
50823
+ }
50824
+
50825
+ /**
50826
+ * Convert an array to an object.
50827
+ *
50828
+ * @param {Array<any>} arr - The array to convert to an object.
50829
+ *
50830
+ * @returns An object with the same keys and values as the array.
50831
+ */
50832
+ function arrayToObject(arr) {
50833
+ const obj = {};
50834
+ const keys = Object.keys(arr);
50835
+ let i;
50836
+ const len = keys.length;
50837
+ let key;
50838
+ for (i = 0; i < len; i++) {
50839
+ key = keys[i];
50840
+ obj[key] = arr[key];
50841
+ }
50842
+ return obj;
50843
+ }
50844
+
50845
+ /**
50846
+ * It takes a FormData object and returns a JavaScript object
50847
+ *
50848
+ * @param {string} formData The FormData object to convert to JSON.
50849
+ *
50850
+ * @returns {Object<string, any> | null} The converted object.
50851
+ */
50852
+ function formDataToJSON(formData) {
50853
+ function buildPath(path, value, target, index) {
50854
+ let name = path[index++];
50855
+ const isNumericKey = Number.isFinite(+name);
50856
+ const isLast = index >= path.length;
50857
+ name = !name && utils.isArray(target) ? target.length : name;
50858
+
50859
+ if (isLast) {
50860
+ if (utils.hasOwnProp(target, name)) {
50861
+ target[name] = [target[name], value];
50862
+ } else {
50863
+ target[name] = value;
50864
+ }
50865
+
50866
+ return !isNumericKey;
50867
+ }
50868
+
50869
+ if (!target[name] || !utils.isObject(target[name])) {
50870
+ target[name] = [];
50871
+ }
50872
+
50873
+ const result = buildPath(path, value, target[name], index);
50874
+
50875
+ if (result && utils.isArray(target[name])) {
50876
+ target[name] = arrayToObject(target[name]);
50877
+ }
50878
+
50879
+ return !isNumericKey;
50880
+ }
50881
+
50882
+ if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
50883
+ const obj = {};
50884
+
50885
+ utils.forEachEntry(formData, (name, value) => {
50886
+ buildPath(parsePropPath(name), value, obj, 0);
50887
+ });
50888
+
50889
+ return obj;
50890
+ }
50891
+
50892
+ return null;
50893
+ }
50894
+
50895
+ /* harmony default export */ const helpers_formDataToJSON = (formDataToJSON);
50896
+
50897
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/defaults/index.js
50898
+
50899
+
50900
+
50901
+
50902
+
50903
+
50904
+
50905
+
50906
+
50907
+
50908
+ /**
50909
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
50910
+ * of the input
50911
+ *
50912
+ * @param {any} rawValue - The value to be stringified.
50913
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
50914
+ * @param {Function} encoder - A function that takes a value and returns a string.
50915
+ *
50916
+ * @returns {string} A stringified version of the rawValue.
50917
+ */
50918
+ function stringifySafely(rawValue, parser, encoder) {
50919
+ if (utils.isString(rawValue)) {
50920
+ try {
50921
+ (parser || JSON.parse)(rawValue);
50922
+ return utils.trim(rawValue);
50923
+ } catch (e) {
50924
+ if (e.name !== 'SyntaxError') {
50925
+ throw e;
50926
+ }
50927
+ }
50928
+ }
50929
+
50930
+ return (encoder || JSON.stringify)(rawValue);
50931
+ }
50932
+
50933
+ const defaults = {
50934
+
50935
+ transitional: defaults_transitional,
50936
+
50937
+ adapter: ['xhr', 'http'],
50938
+
50939
+ transformRequest: [function transformRequest(data, headers) {
50940
+ const contentType = headers.getContentType() || '';
50941
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
50942
+ const isObjectPayload = utils.isObject(data);
50943
+
50944
+ if (isObjectPayload && utils.isHTMLForm(data)) {
50945
+ data = new FormData(data);
50946
+ }
50947
+
50948
+ const isFormData = utils.isFormData(data);
50949
+
50950
+ if (isFormData) {
50951
+ if (!hasJSONContentType) {
50952
+ return data;
50953
+ }
50954
+ return hasJSONContentType ? JSON.stringify(helpers_formDataToJSON(data)) : data;
50955
+ }
50956
+
50957
+ if (utils.isArrayBuffer(data) ||
50958
+ utils.isBuffer(data) ||
50959
+ utils.isStream(data) ||
50960
+ utils.isFile(data) ||
50961
+ utils.isBlob(data)
50962
+ ) {
50963
+ return data;
50964
+ }
50965
+ if (utils.isArrayBufferView(data)) {
50966
+ return data.buffer;
50967
+ }
50968
+ if (utils.isURLSearchParams(data)) {
50969
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
50970
+ return data.toString();
50971
+ }
50972
+
50973
+ let isFileList;
50974
+
50975
+ if (isObjectPayload) {
50976
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
50977
+ return toURLEncodedForm(data, this.formSerializer).toString();
50978
+ }
50979
+
50980
+ if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
50981
+ const _FormData = this.env && this.env.FormData;
50982
+
50983
+ return helpers_toFormData(
50984
+ isFileList ? {'files[]': data} : data,
50985
+ _FormData && new _FormData(),
50986
+ this.formSerializer
50987
+ );
50988
+ }
50989
+ }
50990
+
50991
+ if (isObjectPayload || hasJSONContentType ) {
50992
+ headers.setContentType('application/json', false);
50993
+ return stringifySafely(data);
50994
+ }
50995
+
50996
+ return data;
50997
+ }],
50998
+
50999
+ transformResponse: [function transformResponse(data) {
51000
+ const transitional = this.transitional || defaults.transitional;
51001
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
51002
+ const JSONRequested = this.responseType === 'json';
51003
+
51004
+ if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
51005
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
51006
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
51007
+
51008
+ try {
51009
+ return JSON.parse(data);
51010
+ } catch (e) {
51011
+ if (strictJSONParsing) {
51012
+ if (e.name === 'SyntaxError') {
51013
+ throw core_AxiosError.from(e, core_AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
51014
+ }
51015
+ throw e;
51016
+ }
51017
+ }
51018
+ }
51019
+
51020
+ return data;
51021
+ }],
51022
+
51023
+ /**
51024
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
51025
+ * timeout is not created.
51026
+ */
51027
+ timeout: 0,
51028
+
51029
+ xsrfCookieName: 'XSRF-TOKEN',
51030
+ xsrfHeaderName: 'X-XSRF-TOKEN',
51031
+
51032
+ maxContentLength: -1,
51033
+ maxBodyLength: -1,
51034
+
51035
+ env: {
51036
+ FormData: platform.classes.FormData,
51037
+ Blob: platform.classes.Blob
51038
+ },
51039
+
51040
+ validateStatus: function validateStatus(status) {
51041
+ return status >= 200 && status < 300;
51042
+ },
51043
+
51044
+ headers: {
51045
+ common: {
51046
+ 'Accept': 'application/json, text/plain, */*',
51047
+ 'Content-Type': undefined
51048
+ }
51049
+ }
51050
+ };
51051
+
51052
+ utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
51053
+ defaults.headers[method] = {};
51054
+ });
51055
+
51056
+ /* harmony default export */ const lib_defaults = (defaults);
51057
+
51058
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/parseHeaders.js
51059
+
51060
+
51061
+
51062
+
51063
+ // RawAxiosHeaders whose duplicates are ignored by node
51064
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
51065
+ const ignoreDuplicateOf = utils.toObjectSet([
51066
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
51067
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
51068
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
51069
+ 'referer', 'retry-after', 'user-agent'
51070
+ ]);
51071
+
51072
+ /**
51073
+ * Parse headers into an object
51074
+ *
51075
+ * ```
51076
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
51077
+ * Content-Type: application/json
51078
+ * Connection: keep-alive
51079
+ * Transfer-Encoding: chunked
51080
+ * ```
51081
+ *
51082
+ * @param {String} rawHeaders Headers needing to be parsed
51083
+ *
51084
+ * @returns {Object} Headers parsed into an object
51085
+ */
51086
+ /* harmony default export */ const helpers_parseHeaders = (rawHeaders => {
51087
+ const parsed = {};
51088
+ let key;
51089
+ let val;
51090
+ let i;
51091
+
51092
+ rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
51093
+ i = line.indexOf(':');
51094
+ key = line.substring(0, i).trim().toLowerCase();
51095
+ val = line.substring(i + 1).trim();
51096
+
51097
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
51098
+ return;
51099
+ }
51100
+
51101
+ if (key === 'set-cookie') {
51102
+ if (parsed[key]) {
51103
+ parsed[key].push(val);
51104
+ } else {
51105
+ parsed[key] = [val];
51106
+ }
51107
+ } else {
51108
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
51109
+ }
51110
+ });
51111
+
51112
+ return parsed;
51113
+ });
51114
+
51115
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/core/AxiosHeaders.js
51116
+
51117
+
51118
+
51119
+
51120
+
51121
+ const $internals = Symbol('internals');
51122
+
51123
+ function normalizeHeader(header) {
51124
+ return header && String(header).trim().toLowerCase();
51125
+ }
51126
+
51127
+ function normalizeValue(value) {
51128
+ if (value === false || value == null) {
51129
+ return value;
51130
+ }
51131
+
51132
+ return utils.isArray(value) ? value.map(normalizeValue) : String(value);
51133
+ }
51134
+
51135
+ function parseTokens(str) {
51136
+ const tokens = Object.create(null);
51137
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
51138
+ let match;
51139
+
51140
+ while ((match = tokensRE.exec(str))) {
51141
+ tokens[match[1]] = match[2];
51142
+ }
51143
+
51144
+ return tokens;
51145
+ }
51146
+
51147
+ const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
51148
+
51149
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
51150
+ if (utils.isFunction(filter)) {
51151
+ return filter.call(this, value, header);
51152
+ }
51153
+
51154
+ if (isHeaderNameFilter) {
51155
+ value = header;
51156
+ }
51157
+
51158
+ if (!utils.isString(value)) return;
51159
+
51160
+ if (utils.isString(filter)) {
51161
+ return value.indexOf(filter) !== -1;
51162
+ }
51163
+
51164
+ if (utils.isRegExp(filter)) {
51165
+ return filter.test(value);
51166
+ }
51167
+ }
51168
+
51169
+ function formatHeader(header) {
51170
+ return header.trim()
51171
+ .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
51172
+ return char.toUpperCase() + str;
51173
+ });
51174
+ }
51175
+
51176
+ function buildAccessors(obj, header) {
51177
+ const accessorName = utils.toCamelCase(' ' + header);
51178
+
51179
+ ['get', 'set', 'has'].forEach(methodName => {
51180
+ Object.defineProperty(obj, methodName + accessorName, {
51181
+ value: function(arg1, arg2, arg3) {
51182
+ return this[methodName].call(this, header, arg1, arg2, arg3);
51183
+ },
51184
+ configurable: true
51185
+ });
51186
+ });
51187
+ }
51188
+
51189
+ class AxiosHeaders {
51190
+ constructor(headers) {
51191
+ headers && this.set(headers);
51192
+ }
51193
+
51194
+ set(header, valueOrRewrite, rewrite) {
51195
+ const self = this;
51196
+
51197
+ function setHeader(_value, _header, _rewrite) {
51198
+ const lHeader = normalizeHeader(_header);
51199
+
51200
+ if (!lHeader) {
51201
+ throw new Error('header name must be a non-empty string');
51202
+ }
51203
+
51204
+ const key = utils.findKey(self, lHeader);
51205
+
51206
+ if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
51207
+ self[key || _header] = normalizeValue(_value);
51208
+ }
51209
+ }
51210
+
51211
+ const setHeaders = (headers, _rewrite) =>
51212
+ utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
51213
+
51214
+ if (utils.isPlainObject(header) || header instanceof this.constructor) {
51215
+ setHeaders(header, valueOrRewrite)
51216
+ } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
51217
+ setHeaders(helpers_parseHeaders(header), valueOrRewrite);
51218
+ } else {
51219
+ header != null && setHeader(valueOrRewrite, header, rewrite);
51220
+ }
51221
+
51222
+ return this;
51223
+ }
51224
+
51225
+ get(header, parser) {
51226
+ header = normalizeHeader(header);
51227
+
51228
+ if (header) {
51229
+ const key = utils.findKey(this, header);
51230
+
51231
+ if (key) {
51232
+ const value = this[key];
51233
+
51234
+ if (!parser) {
51235
+ return value;
51236
+ }
51237
+
51238
+ if (parser === true) {
51239
+ return parseTokens(value);
51240
+ }
51241
+
51242
+ if (utils.isFunction(parser)) {
51243
+ return parser.call(this, value, key);
51244
+ }
51245
+
51246
+ if (utils.isRegExp(parser)) {
51247
+ return parser.exec(value);
51248
+ }
51249
+
51250
+ throw new TypeError('parser must be boolean|regexp|function');
51251
+ }
51252
+ }
51253
+ }
51254
+
51255
+ has(header, matcher) {
51256
+ header = normalizeHeader(header);
51257
+
51258
+ if (header) {
51259
+ const key = utils.findKey(this, header);
51260
+
51261
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
51262
+ }
51263
+
51264
+ return false;
51265
+ }
51266
+
51267
+ delete(header, matcher) {
51268
+ const self = this;
51269
+ let deleted = false;
51270
+
51271
+ function deleteHeader(_header) {
51272
+ _header = normalizeHeader(_header);
51273
+
51274
+ if (_header) {
51275
+ const key = utils.findKey(self, _header);
51276
+
51277
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
51278
+ delete self[key];
51279
+
51280
+ deleted = true;
51281
+ }
51282
+ }
51283
+ }
51284
+
51285
+ if (utils.isArray(header)) {
51286
+ header.forEach(deleteHeader);
51287
+ } else {
51288
+ deleteHeader(header);
51289
+ }
51290
+
51291
+ return deleted;
51292
+ }
51293
+
51294
+ clear(matcher) {
51295
+ const keys = Object.keys(this);
51296
+ let i = keys.length;
51297
+ let deleted = false;
51298
+
51299
+ while (i--) {
51300
+ const key = keys[i];
51301
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
51302
+ delete this[key];
51303
+ deleted = true;
51304
+ }
51305
+ }
51306
+
51307
+ return deleted;
51308
+ }
51309
+
51310
+ normalize(format) {
51311
+ const self = this;
51312
+ const headers = {};
51313
+
51314
+ utils.forEach(this, (value, header) => {
51315
+ const key = utils.findKey(headers, header);
51316
+
51317
+ if (key) {
51318
+ self[key] = normalizeValue(value);
51319
+ delete self[header];
51320
+ return;
51321
+ }
51322
+
51323
+ const normalized = format ? formatHeader(header) : String(header).trim();
51324
+
51325
+ if (normalized !== header) {
51326
+ delete self[header];
51327
+ }
51328
+
51329
+ self[normalized] = normalizeValue(value);
51330
+
51331
+ headers[normalized] = true;
51332
+ });
51333
+
51334
+ return this;
51335
+ }
51336
+
51337
+ concat(...targets) {
51338
+ return this.constructor.concat(this, ...targets);
51339
+ }
51340
+
51341
+ toJSON(asStrings) {
51342
+ const obj = Object.create(null);
51343
+
51344
+ utils.forEach(this, (value, header) => {
51345
+ value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);
51346
+ });
51347
+
51348
+ return obj;
51349
+ }
51350
+
51351
+ [Symbol.iterator]() {
51352
+ return Object.entries(this.toJSON())[Symbol.iterator]();
51353
+ }
51354
+
51355
+ toString() {
51356
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
51357
+ }
51358
+
51359
+ get [Symbol.toStringTag]() {
51360
+ return 'AxiosHeaders';
51361
+ }
51362
+
51363
+ static from(thing) {
51364
+ return thing instanceof this ? thing : new this(thing);
51365
+ }
51366
+
51367
+ static concat(first, ...targets) {
51368
+ const computed = new this(first);
51369
+
51370
+ targets.forEach((target) => computed.set(target));
51371
+
51372
+ return computed;
51373
+ }
51374
+
51375
+ static accessor(header) {
51376
+ const internals = this[$internals] = (this[$internals] = {
51377
+ accessors: {}
51378
+ });
51379
+
51380
+ const accessors = internals.accessors;
51381
+ const prototype = this.prototype;
51382
+
51383
+ function defineAccessor(_header) {
51384
+ const lHeader = normalizeHeader(_header);
51385
+
51386
+ if (!accessors[lHeader]) {
51387
+ buildAccessors(prototype, _header);
51388
+ accessors[lHeader] = true;
51389
+ }
51390
+ }
51391
+
51392
+ utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
51393
+
51394
+ return this;
51395
+ }
51396
+ }
51397
+
51398
+ AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
51399
+
51400
+ // reserved names hotfix
51401
+ utils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
51402
+ let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
51403
+ return {
51404
+ get: () => value,
51405
+ set(headerValue) {
51406
+ this[mapped] = headerValue;
51407
+ }
51408
+ }
51409
+ });
51410
+
51411
+ utils.freezeMethods(AxiosHeaders);
51412
+
51413
+ /* harmony default export */ const core_AxiosHeaders = (AxiosHeaders);
51414
+
51415
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/core/transformData.js
51416
+
51417
+
51418
+
51419
+
51420
+
51421
+
51422
+ /**
51423
+ * Transform the data for a request or a response
51424
+ *
51425
+ * @param {Array|Function} fns A single function or Array of functions
51426
+ * @param {?Object} response The response object
51427
+ *
51428
+ * @returns {*} The resulting transformed data
51429
+ */
51430
+ function transformData(fns, response) {
51431
+ const config = this || lib_defaults;
51432
+ const context = response || config;
51433
+ const headers = core_AxiosHeaders.from(context.headers);
51434
+ let data = context.data;
51435
+
51436
+ utils.forEach(fns, function transform(fn) {
51437
+ data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
51438
+ });
51439
+
51440
+ headers.normalize();
51441
+
51442
+ return data;
51443
+ }
51444
+
51445
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/cancel/isCancel.js
51446
+
51447
+
51448
+ function isCancel(value) {
51449
+ return !!(value && value.__CANCEL__);
51450
+ }
51451
+
51452
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/cancel/CanceledError.js
51453
+
51454
+
51455
+
51456
+
51457
+
51458
+ /**
51459
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
51460
+ *
51461
+ * @param {string=} message The message.
51462
+ * @param {Object=} config The config.
51463
+ * @param {Object=} request The request.
51464
+ *
51465
+ * @returns {CanceledError} The created error.
51466
+ */
51467
+ function CanceledError(message, config, request) {
51468
+ // eslint-disable-next-line no-eq-null,eqeqeq
51469
+ core_AxiosError.call(this, message == null ? 'canceled' : message, core_AxiosError.ERR_CANCELED, config, request);
51470
+ this.name = 'CanceledError';
51471
+ }
51472
+
51473
+ utils.inherits(CanceledError, core_AxiosError, {
51474
+ __CANCEL__: true
51475
+ });
51476
+
51477
+ /* harmony default export */ const cancel_CanceledError = (CanceledError);
51478
+
51479
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/core/settle.js
51480
+
51481
+
51482
+
51483
+
51484
+ /**
51485
+ * Resolve or reject a Promise based on response status.
51486
+ *
51487
+ * @param {Function} resolve A function that resolves the promise.
51488
+ * @param {Function} reject A function that rejects the promise.
51489
+ * @param {object} response The response.
51490
+ *
51491
+ * @returns {object} The response.
51492
+ */
51493
+ function settle(resolve, reject, response) {
51494
+ const validateStatus = response.config.validateStatus;
51495
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
51496
+ resolve(response);
51497
+ } else {
51498
+ reject(new core_AxiosError(
51499
+ 'Request failed with status code ' + response.status,
51500
+ [core_AxiosError.ERR_BAD_REQUEST, core_AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
51501
+ response.config,
51502
+ response.request,
51503
+ response
51504
+ ));
51505
+ }
51506
+ }
51507
+
51508
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/cookies.js
51509
+
51510
+
51511
+
51512
+ /* harmony default export */ const cookies = (platform.hasStandardBrowserEnv ?
51513
+
51514
+ // Standard browser envs support document.cookie
51515
+ {
51516
+ write(name, value, expires, path, domain, secure) {
51517
+ const cookie = [name + '=' + encodeURIComponent(value)];
51518
+
51519
+ utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
51520
+
51521
+ utils.isString(path) && cookie.push('path=' + path);
51522
+
51523
+ utils.isString(domain) && cookie.push('domain=' + domain);
51524
+
51525
+ secure === true && cookie.push('secure');
51526
+
51527
+ document.cookie = cookie.join('; ');
51528
+ },
51529
+
51530
+ read(name) {
51531
+ const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
51532
+ return (match ? decodeURIComponent(match[3]) : null);
51533
+ },
51534
+
51535
+ remove(name) {
51536
+ this.write(name, '', Date.now() - 86400000);
51537
+ }
51538
+ }
51539
+
51540
+ :
51541
+
51542
+ // Non-standard browser env (web workers, react-native) lack needed support.
51543
+ {
51544
+ write() {},
51545
+ read() {
51546
+ return null;
51547
+ },
51548
+ remove() {}
51549
+ });
51550
+
51551
+
51552
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/isAbsoluteURL.js
51553
+
51554
+
51555
+ /**
51556
+ * Determines whether the specified URL is absolute
51557
+ *
51558
+ * @param {string} url The URL to test
51559
+ *
51560
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
51561
+ */
51562
+ function isAbsoluteURL(url) {
51563
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
51564
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
51565
+ // by any combination of letters, digits, plus, period, or hyphen.
51566
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
51567
+ }
51568
+
51569
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/combineURLs.js
51570
+
51571
+
51572
+ /**
51573
+ * Creates a new URL by combining the specified URLs
51574
+ *
51575
+ * @param {string} baseURL The base URL
51576
+ * @param {string} relativeURL The relative URL
51577
+ *
51578
+ * @returns {string} The combined URL
51579
+ */
51580
+ function combineURLs(baseURL, relativeURL) {
51581
+ return relativeURL
51582
+ ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
51583
+ : baseURL;
51584
+ }
51585
+
51586
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/core/buildFullPath.js
51587
+
51588
+
51589
+
51590
+
51591
+
51592
+ /**
51593
+ * Creates a new URL by combining the baseURL with the requestedURL,
51594
+ * only when the requestedURL is not already an absolute URL.
51595
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
51596
+ *
51597
+ * @param {string} baseURL The base URL
51598
+ * @param {string} requestedURL Absolute or relative URL to combine
51599
+ *
51600
+ * @returns {string} The combined full path
51601
+ */
51602
+ function buildFullPath(baseURL, requestedURL) {
51603
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
51604
+ return combineURLs(baseURL, requestedURL);
51605
+ }
51606
+ return requestedURL;
51607
+ }
51608
+
51609
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/isURLSameOrigin.js
51610
+
51611
+
51612
+
51613
+
51614
+
51615
+ /* harmony default export */ const isURLSameOrigin = (platform.hasStandardBrowserEnv ?
51616
+
51617
+ // Standard browser envs have full support of the APIs needed to test
51618
+ // whether the request URL is of the same origin as current location.
51619
+ (function standardBrowserEnv() {
51620
+ const msie = /(msie|trident)/i.test(navigator.userAgent);
51621
+ const urlParsingNode = document.createElement('a');
51622
+ let originURL;
51623
+
51624
+ /**
51625
+ * Parse a URL to discover its components
51626
+ *
51627
+ * @param {String} url The URL to be parsed
51628
+ * @returns {Object}
51629
+ */
51630
+ function resolveURL(url) {
51631
+ let href = url;
51632
+
51633
+ if (msie) {
51634
+ // IE needs attribute set twice to normalize properties
51635
+ urlParsingNode.setAttribute('href', href);
51636
+ href = urlParsingNode.href;
51637
+ }
51638
+
51639
+ urlParsingNode.setAttribute('href', href);
51640
+
51641
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
51642
+ return {
51643
+ href: urlParsingNode.href,
51644
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
51645
+ host: urlParsingNode.host,
51646
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
51647
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
51648
+ hostname: urlParsingNode.hostname,
51649
+ port: urlParsingNode.port,
51650
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
51651
+ urlParsingNode.pathname :
51652
+ '/' + urlParsingNode.pathname
51653
+ };
51654
+ }
51655
+
51656
+ originURL = resolveURL(window.location.href);
51657
+
51658
+ /**
51659
+ * Determine if a URL shares the same origin as the current location
51660
+ *
51661
+ * @param {String} requestURL The URL to test
51662
+ * @returns {boolean} True if URL shares the same origin, otherwise false
51663
+ */
51664
+ return function isURLSameOrigin(requestURL) {
51665
+ const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
51666
+ return (parsed.protocol === originURL.protocol &&
51667
+ parsed.host === originURL.host);
51668
+ };
51669
+ })() :
51670
+
51671
+ // Non standard browser envs (web workers, react-native) lack needed support.
51672
+ (function nonStandardBrowserEnv() {
51673
+ return function isURLSameOrigin() {
51674
+ return true;
51675
+ };
51676
+ })());
51677
+
51678
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/parseProtocol.js
51679
+
51680
+
51681
+ function parseProtocol(url) {
51682
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
51683
+ return match && match[1] || '';
51684
+ }
51685
+
51686
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/speedometer.js
51687
+
51688
+
51689
+ /**
51690
+ * Calculate data maxRate
51691
+ * @param {Number} [samplesCount= 10]
51692
+ * @param {Number} [min= 1000]
51693
+ * @returns {Function}
51694
+ */
51695
+ function speedometer(samplesCount, min) {
51696
+ samplesCount = samplesCount || 10;
51697
+ const bytes = new Array(samplesCount);
51698
+ const timestamps = new Array(samplesCount);
51699
+ let head = 0;
51700
+ let tail = 0;
51701
+ let firstSampleTS;
51702
+
51703
+ min = min !== undefined ? min : 1000;
51704
+
51705
+ return function push(chunkLength) {
51706
+ const now = Date.now();
51707
+
51708
+ const startedAt = timestamps[tail];
51709
+
51710
+ if (!firstSampleTS) {
51711
+ firstSampleTS = now;
51712
+ }
51713
+
51714
+ bytes[head] = chunkLength;
51715
+ timestamps[head] = now;
51716
+
51717
+ let i = tail;
51718
+ let bytesCount = 0;
51719
+
51720
+ while (i !== head) {
51721
+ bytesCount += bytes[i++];
51722
+ i = i % samplesCount;
51723
+ }
51724
+
51725
+ head = (head + 1) % samplesCount;
51726
+
51727
+ if (head === tail) {
51728
+ tail = (tail + 1) % samplesCount;
51729
+ }
51730
+
51731
+ if (now - firstSampleTS < min) {
51732
+ return;
51733
+ }
51734
+
51735
+ const passed = startedAt && now - startedAt;
51736
+
51737
+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
51738
+ };
51739
+ }
51740
+
51741
+ /* harmony default export */ const helpers_speedometer = (speedometer);
51742
+
51743
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/adapters/xhr.js
51744
+
51745
+
51746
+
51747
+
51748
+
51749
+
51750
+
51751
+
51752
+
51753
+
51754
+
51755
+
51756
+
51757
+
51758
+
51759
+
51760
+ function progressEventReducer(listener, isDownloadStream) {
51761
+ let bytesNotified = 0;
51762
+ const _speedometer = helpers_speedometer(50, 250);
51763
+
51764
+ return e => {
51765
+ const loaded = e.loaded;
51766
+ const total = e.lengthComputable ? e.total : undefined;
51767
+ const progressBytes = loaded - bytesNotified;
51768
+ const rate = _speedometer(progressBytes);
51769
+ const inRange = loaded <= total;
51770
+
51771
+ bytesNotified = loaded;
51772
+
51773
+ const data = {
51774
+ loaded,
51775
+ total,
51776
+ progress: total ? (loaded / total) : undefined,
51777
+ bytes: progressBytes,
51778
+ rate: rate ? rate : undefined,
51779
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
51780
+ event: e
51781
+ };
51782
+
51783
+ data[isDownloadStream ? 'download' : 'upload'] = true;
51784
+
51785
+ listener(data);
51786
+ };
51787
+ }
51788
+
51789
+ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
51790
+
51791
+ /* harmony default export */ const xhr = (isXHRAdapterSupported && function (config) {
51792
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
51793
+ let requestData = config.data;
51794
+ const requestHeaders = core_AxiosHeaders.from(config.headers).normalize();
51795
+ let {responseType, withXSRFToken} = config;
51796
+ let onCanceled;
51797
+ function done() {
51798
+ if (config.cancelToken) {
51799
+ config.cancelToken.unsubscribe(onCanceled);
51800
+ }
51801
+
51802
+ if (config.signal) {
51803
+ config.signal.removeEventListener('abort', onCanceled);
51804
+ }
51805
+ }
51806
+
51807
+ let contentType;
51808
+
51809
+ if (utils.isFormData(requestData)) {
51810
+ if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
51811
+ requestHeaders.setContentType(false); // Let the browser set it
51812
+ } else if ((contentType = requestHeaders.getContentType()) !== false) {
51813
+ // fix semicolon duplication issue for ReactNative FormData implementation
51814
+ const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
51815
+ requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
51816
+ }
51817
+ }
51818
+
51819
+ let request = new XMLHttpRequest();
51820
+
51821
+ // HTTP basic authentication
51822
+ if (config.auth) {
51823
+ const username = config.auth.username || '';
51824
+ const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
51825
+ requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));
51826
+ }
51827
+
51828
+ const fullPath = buildFullPath(config.baseURL, config.url);
51829
+
51830
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
51831
+
51832
+ // Set the request timeout in MS
51833
+ request.timeout = config.timeout;
51834
+
51835
+ function onloadend() {
51836
+ if (!request) {
51837
+ return;
51838
+ }
51839
+ // Prepare the response
51840
+ const responseHeaders = core_AxiosHeaders.from(
51841
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
51842
+ );
51843
+ const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
51844
+ request.responseText : request.response;
51845
+ const response = {
51846
+ data: responseData,
51847
+ status: request.status,
51848
+ statusText: request.statusText,
51849
+ headers: responseHeaders,
51850
+ config,
51851
+ request
51852
+ };
51853
+
51854
+ settle(function _resolve(value) {
51855
+ resolve(value);
51856
+ done();
51857
+ }, function _reject(err) {
51858
+ reject(err);
51859
+ done();
51860
+ }, response);
51861
+
51862
+ // Clean up request
51863
+ request = null;
51864
+ }
51865
+
51866
+ if ('onloadend' in request) {
51867
+ // Use onloadend if available
51868
+ request.onloadend = onloadend;
51869
+ } else {
51870
+ // Listen for ready state to emulate onloadend
51871
+ request.onreadystatechange = function handleLoad() {
51872
+ if (!request || request.readyState !== 4) {
51873
+ return;
51874
+ }
51875
+
51876
+ // The request errored out and we didn't get a response, this will be
51877
+ // handled by onerror instead
51878
+ // With one exception: request that using file: protocol, most browsers
51879
+ // will return status as 0 even though it's a successful request
51880
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
51881
+ return;
51882
+ }
51883
+ // readystate handler is calling before onerror or ontimeout handlers,
51884
+ // so we should call onloadend on the next 'tick'
51885
+ setTimeout(onloadend);
51886
+ };
51887
+ }
51888
+
51889
+ // Handle browser request cancellation (as opposed to a manual cancellation)
51890
+ request.onabort = function handleAbort() {
51891
+ if (!request) {
51892
+ return;
51893
+ }
51894
+
51895
+ reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, config, request));
51896
+
51897
+ // Clean up request
51898
+ request = null;
51899
+ };
51900
+
51901
+ // Handle low level network errors
51902
+ request.onerror = function handleError() {
51903
+ // Real errors are hidden from us by the browser
51904
+ // onerror should only fire if it's a network error
51905
+ reject(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request));
51906
+
51907
+ // Clean up request
51908
+ request = null;
51909
+ };
51910
+
51911
+ // Handle timeout
51912
+ request.ontimeout = function handleTimeout() {
51913
+ let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
51914
+ const transitional = config.transitional || defaults_transitional;
51915
+ if (config.timeoutErrorMessage) {
51916
+ timeoutErrorMessage = config.timeoutErrorMessage;
51917
+ }
51918
+ reject(new core_AxiosError(
51919
+ timeoutErrorMessage,
51920
+ transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED,
51921
+ config,
51922
+ request));
51923
+
51924
+ // Clean up request
51925
+ request = null;
51926
+ };
51927
+
51928
+ // Add xsrf header
51929
+ // This is only done if running in a standard browser environment.
51930
+ // Specifically not if we're in a web worker, or react-native.
51931
+ if(platform.hasStandardBrowserEnv) {
51932
+ withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
51933
+
51934
+ if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {
51935
+ // Add xsrf header
51936
+ const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
51937
+
51938
+ if (xsrfValue) {
51939
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
51940
+ }
51941
+ }
51942
+ }
51943
+
51944
+ // Remove Content-Type if data is undefined
51945
+ requestData === undefined && requestHeaders.setContentType(null);
51946
+
51947
+ // Add headers to the request
51948
+ if ('setRequestHeader' in request) {
51949
+ utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
51950
+ request.setRequestHeader(key, val);
51951
+ });
51952
+ }
51953
+
51954
+ // Add withCredentials to request if needed
51955
+ if (!utils.isUndefined(config.withCredentials)) {
51956
+ request.withCredentials = !!config.withCredentials;
51957
+ }
51958
+
51959
+ // Add responseType to request if needed
51960
+ if (responseType && responseType !== 'json') {
51961
+ request.responseType = config.responseType;
51962
+ }
51963
+
51964
+ // Handle progress if needed
51965
+ if (typeof config.onDownloadProgress === 'function') {
51966
+ request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));
51967
+ }
51968
+
51969
+ // Not all browsers support upload events
51970
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
51971
+ request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));
51972
+ }
51973
+
51974
+ if (config.cancelToken || config.signal) {
51975
+ // Handle cancellation
51976
+ // eslint-disable-next-line func-names
51977
+ onCanceled = cancel => {
51978
+ if (!request) {
51979
+ return;
51980
+ }
51981
+ reject(!cancel || cancel.type ? new cancel_CanceledError(null, config, request) : cancel);
51982
+ request.abort();
51983
+ request = null;
51984
+ };
51985
+
51986
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
51987
+ if (config.signal) {
51988
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
51989
+ }
51990
+ }
51991
+
51992
+ const protocol = parseProtocol(fullPath);
51993
+
51994
+ if (protocol && platform.protocols.indexOf(protocol) === -1) {
51995
+ reject(new core_AxiosError('Unsupported protocol ' + protocol + ':', core_AxiosError.ERR_BAD_REQUEST, config));
51996
+ return;
51997
+ }
51998
+
51999
+
52000
+ // Send the request
52001
+ request.send(requestData || null);
52002
+ });
52003
+ });
52004
+
52005
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/adapters/adapters.js
52006
+
52007
+
52008
+
52009
+
52010
+
52011
+ const knownAdapters = {
52012
+ http: helpers_null,
52013
+ xhr: xhr
52014
+ }
52015
+
52016
+ utils.forEach(knownAdapters, (fn, value) => {
52017
+ if (fn) {
52018
+ try {
52019
+ Object.defineProperty(fn, 'name', {value});
52020
+ } catch (e) {
52021
+ // eslint-disable-next-line no-empty
52022
+ }
52023
+ Object.defineProperty(fn, 'adapterName', {value});
52024
+ }
52025
+ });
52026
+
52027
+ const renderReason = (reason) => `- ${reason}`;
52028
+
52029
+ const isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;
52030
+
52031
+ /* harmony default export */ const adapters = ({
52032
+ getAdapter: (adapters) => {
52033
+ adapters = utils.isArray(adapters) ? adapters : [adapters];
52034
+
52035
+ const {length} = adapters;
52036
+ let nameOrAdapter;
52037
+ let adapter;
52038
+
52039
+ const rejectedReasons = {};
52040
+
52041
+ for (let i = 0; i < length; i++) {
52042
+ nameOrAdapter = adapters[i];
52043
+ let id;
52044
+
52045
+ adapter = nameOrAdapter;
52046
+
52047
+ if (!isResolvedHandle(nameOrAdapter)) {
52048
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
52049
+
52050
+ if (adapter === undefined) {
52051
+ throw new core_AxiosError(`Unknown adapter '${id}'`);
52052
+ }
52053
+ }
52054
+
52055
+ if (adapter) {
52056
+ break;
52057
+ }
52058
+
52059
+ rejectedReasons[id || '#' + i] = adapter;
52060
+ }
52061
+
52062
+ if (!adapter) {
52063
+
52064
+ const reasons = Object.entries(rejectedReasons)
52065
+ .map(([id, state]) => `adapter ${id} ` +
52066
+ (state === false ? 'is not supported by the environment' : 'is not available in the build')
52067
+ );
52068
+
52069
+ let s = length ?
52070
+ (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
52071
+ 'as no adapter specified';
52072
+
52073
+ throw new core_AxiosError(
52074
+ `There is no suitable adapter to dispatch the request ` + s,
52075
+ 'ERR_NOT_SUPPORT'
52076
+ );
52077
+ }
52078
+
52079
+ return adapter;
52080
+ },
52081
+ adapters: knownAdapters
52082
+ });
52083
+
52084
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/core/dispatchRequest.js
52085
+
52086
+
52087
+
52088
+
52089
+
52090
+
52091
+
52092
+
52093
+
52094
+ /**
52095
+ * Throws a `CanceledError` if cancellation has been requested.
52096
+ *
52097
+ * @param {Object} config The config that is to be used for the request
52098
+ *
52099
+ * @returns {void}
52100
+ */
52101
+ function throwIfCancellationRequested(config) {
52102
+ if (config.cancelToken) {
52103
+ config.cancelToken.throwIfRequested();
52104
+ }
52105
+
52106
+ if (config.signal && config.signal.aborted) {
52107
+ throw new cancel_CanceledError(null, config);
52108
+ }
52109
+ }
52110
+
52111
+ /**
52112
+ * Dispatch a request to the server using the configured adapter.
52113
+ *
52114
+ * @param {object} config The config that is to be used for the request
52115
+ *
52116
+ * @returns {Promise} The Promise to be fulfilled
52117
+ */
52118
+ function dispatchRequest(config) {
52119
+ throwIfCancellationRequested(config);
52120
+
52121
+ config.headers = core_AxiosHeaders.from(config.headers);
52122
+
52123
+ // Transform request data
52124
+ config.data = transformData.call(
52125
+ config,
52126
+ config.transformRequest
52127
+ );
52128
+
52129
+ if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
52130
+ config.headers.setContentType('application/x-www-form-urlencoded', false);
52131
+ }
52132
+
52133
+ const adapter = adapters.getAdapter(config.adapter || lib_defaults.adapter);
52134
+
52135
+ return adapter(config).then(function onAdapterResolution(response) {
52136
+ throwIfCancellationRequested(config);
52137
+
52138
+ // Transform response data
52139
+ response.data = transformData.call(
52140
+ config,
52141
+ config.transformResponse,
52142
+ response
52143
+ );
52144
+
52145
+ response.headers = core_AxiosHeaders.from(response.headers);
52146
+
52147
+ return response;
52148
+ }, function onAdapterRejection(reason) {
52149
+ if (!isCancel(reason)) {
52150
+ throwIfCancellationRequested(config);
52151
+
52152
+ // Transform response data
52153
+ if (reason && reason.response) {
52154
+ reason.response.data = transformData.call(
52155
+ config,
52156
+ config.transformResponse,
52157
+ reason.response
52158
+ );
52159
+ reason.response.headers = core_AxiosHeaders.from(reason.response.headers);
52160
+ }
52161
+ }
52162
+
52163
+ return Promise.reject(reason);
52164
+ });
52165
+ }
52166
+
52167
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/core/mergeConfig.js
52168
+
52169
+
52170
+
52171
+
52172
+
52173
+ const headersToObject = (thing) => thing instanceof core_AxiosHeaders ? thing.toJSON() : thing;
52174
+
52175
+ /**
52176
+ * Config-specific merge-function which creates a new config-object
52177
+ * by merging two configuration objects together.
52178
+ *
52179
+ * @param {Object} config1
52180
+ * @param {Object} config2
52181
+ *
52182
+ * @returns {Object} New object resulting from merging config2 to config1
52183
+ */
52184
+ function mergeConfig(config1, config2) {
52185
+ // eslint-disable-next-line no-param-reassign
52186
+ config2 = config2 || {};
52187
+ const config = {};
52188
+
52189
+ function getMergedValue(target, source, caseless) {
52190
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
52191
+ return utils.merge.call({caseless}, target, source);
52192
+ } else if (utils.isPlainObject(source)) {
52193
+ return utils.merge({}, source);
52194
+ } else if (utils.isArray(source)) {
52195
+ return source.slice();
52196
+ }
52197
+ return source;
52198
+ }
52199
+
52200
+ // eslint-disable-next-line consistent-return
52201
+ function mergeDeepProperties(a, b, caseless) {
52202
+ if (!utils.isUndefined(b)) {
52203
+ return getMergedValue(a, b, caseless);
52204
+ } else if (!utils.isUndefined(a)) {
52205
+ return getMergedValue(undefined, a, caseless);
52206
+ }
52207
+ }
52208
+
52209
+ // eslint-disable-next-line consistent-return
52210
+ function valueFromConfig2(a, b) {
52211
+ if (!utils.isUndefined(b)) {
52212
+ return getMergedValue(undefined, b);
52213
+ }
52214
+ }
52215
+
52216
+ // eslint-disable-next-line consistent-return
52217
+ function defaultToConfig2(a, b) {
52218
+ if (!utils.isUndefined(b)) {
52219
+ return getMergedValue(undefined, b);
52220
+ } else if (!utils.isUndefined(a)) {
52221
+ return getMergedValue(undefined, a);
52222
+ }
52223
+ }
52224
+
52225
+ // eslint-disable-next-line consistent-return
52226
+ function mergeDirectKeys(a, b, prop) {
52227
+ if (prop in config2) {
52228
+ return getMergedValue(a, b);
52229
+ } else if (prop in config1) {
52230
+ return getMergedValue(undefined, a);
52231
+ }
52232
+ }
52233
+
52234
+ const mergeMap = {
52235
+ url: valueFromConfig2,
52236
+ method: valueFromConfig2,
52237
+ data: valueFromConfig2,
52238
+ baseURL: defaultToConfig2,
52239
+ transformRequest: defaultToConfig2,
52240
+ transformResponse: defaultToConfig2,
52241
+ paramsSerializer: defaultToConfig2,
52242
+ timeout: defaultToConfig2,
52243
+ timeoutMessage: defaultToConfig2,
52244
+ withCredentials: defaultToConfig2,
52245
+ withXSRFToken: defaultToConfig2,
52246
+ adapter: defaultToConfig2,
52247
+ responseType: defaultToConfig2,
52248
+ xsrfCookieName: defaultToConfig2,
52249
+ xsrfHeaderName: defaultToConfig2,
52250
+ onUploadProgress: defaultToConfig2,
52251
+ onDownloadProgress: defaultToConfig2,
52252
+ decompress: defaultToConfig2,
52253
+ maxContentLength: defaultToConfig2,
52254
+ maxBodyLength: defaultToConfig2,
52255
+ beforeRedirect: defaultToConfig2,
52256
+ transport: defaultToConfig2,
52257
+ httpAgent: defaultToConfig2,
52258
+ httpsAgent: defaultToConfig2,
52259
+ cancelToken: defaultToConfig2,
52260
+ socketPath: defaultToConfig2,
52261
+ responseEncoding: defaultToConfig2,
52262
+ validateStatus: mergeDirectKeys,
52263
+ headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
52264
+ };
52265
+
52266
+ utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
52267
+ const merge = mergeMap[prop] || mergeDeepProperties;
52268
+ const configValue = merge(config1[prop], config2[prop], prop);
52269
+ (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
52270
+ });
52271
+
52272
+ return config;
52273
+ }
52274
+
52275
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/env/data.js
52276
+ const VERSION = "1.6.2";
52277
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/validator.js
52278
+
52279
+
52280
+
52281
+
52282
+
52283
+ const validators = {};
52284
+
52285
+ // eslint-disable-next-line func-names
52286
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {
52287
+ validators[type] = function validator(thing) {
52288
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
52289
+ };
52290
+ });
52291
+
52292
+ const deprecatedWarnings = {};
52293
+
52294
+ /**
52295
+ * Transitional option validator
52296
+ *
52297
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
52298
+ * @param {string?} version - deprecated version / removed since version
52299
+ * @param {string?} message - some message with additional info
52300
+ *
52301
+ * @returns {function}
52302
+ */
52303
+ validators.transitional = function transitional(validator, version, message) {
52304
+ function formatMessage(opt, desc) {
52305
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
52306
+ }
52307
+
52308
+ // eslint-disable-next-line func-names
52309
+ return (value, opt, opts) => {
52310
+ if (validator === false) {
52311
+ throw new core_AxiosError(
52312
+ formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
52313
+ core_AxiosError.ERR_DEPRECATED
52314
+ );
52315
+ }
52316
+
52317
+ if (version && !deprecatedWarnings[opt]) {
52318
+ deprecatedWarnings[opt] = true;
52319
+ // eslint-disable-next-line no-console
52320
+ console.warn(
52321
+ formatMessage(
52322
+ opt,
52323
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
52324
+ )
52325
+ );
52326
+ }
52327
+
52328
+ return validator ? validator(value, opt, opts) : true;
52329
+ };
52330
+ };
52331
+
52332
+ /**
52333
+ * Assert object's properties type
52334
+ *
52335
+ * @param {object} options
52336
+ * @param {object} schema
52337
+ * @param {boolean?} allowUnknown
52338
+ *
52339
+ * @returns {object}
52340
+ */
52341
+
52342
+ function assertOptions(options, schema, allowUnknown) {
52343
+ if (typeof options !== 'object') {
52344
+ throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
52345
+ }
52346
+ const keys = Object.keys(options);
52347
+ let i = keys.length;
52348
+ while (i-- > 0) {
52349
+ const opt = keys[i];
52350
+ const validator = schema[opt];
52351
+ if (validator) {
52352
+ const value = options[opt];
52353
+ const result = value === undefined || validator(value, opt, options);
52354
+ if (result !== true) {
52355
+ throw new core_AxiosError('option ' + opt + ' must be ' + result, core_AxiosError.ERR_BAD_OPTION_VALUE);
52356
+ }
52357
+ continue;
52358
+ }
52359
+ if (allowUnknown !== true) {
52360
+ throw new core_AxiosError('Unknown option ' + opt, core_AxiosError.ERR_BAD_OPTION);
52361
+ }
52362
+ }
52363
+ }
52364
+
52365
+ /* harmony default export */ const validator = ({
52366
+ assertOptions,
52367
+ validators
52368
+ });
52369
+
52370
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/core/Axios.js
52371
+
52372
+
52373
+
52374
+
52375
+
52376
+
52377
+
52378
+
52379
+
52380
+
52381
+
52382
+ const Axios_validators = validator.validators;
52383
+
52384
+ /**
52385
+ * Create a new instance of Axios
52386
+ *
52387
+ * @param {Object} instanceConfig The default config for the instance
52388
+ *
52389
+ * @return {Axios} A new instance of Axios
52390
+ */
52391
+ class Axios {
52392
+ constructor(instanceConfig) {
52393
+ this.defaults = instanceConfig;
52394
+ this.interceptors = {
52395
+ request: new core_InterceptorManager(),
52396
+ response: new core_InterceptorManager()
52397
+ };
52398
+ }
52399
+
52400
+ /**
52401
+ * Dispatch a request
52402
+ *
52403
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
52404
+ * @param {?Object} config
52405
+ *
52406
+ * @returns {Promise} The Promise to be fulfilled
52407
+ */
52408
+ request(configOrUrl, config) {
52409
+ /*eslint no-param-reassign:0*/
52410
+ // Allow for axios('example/url'[, config]) a la fetch API
52411
+ if (typeof configOrUrl === 'string') {
52412
+ config = config || {};
52413
+ config.url = configOrUrl;
52414
+ } else {
52415
+ config = configOrUrl || {};
52416
+ }
52417
+
52418
+ config = mergeConfig(this.defaults, config);
52419
+
52420
+ const {transitional, paramsSerializer, headers} = config;
52421
+
52422
+ if (transitional !== undefined) {
52423
+ validator.assertOptions(transitional, {
52424
+ silentJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
52425
+ forcedJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
52426
+ clarifyTimeoutError: Axios_validators.transitional(Axios_validators.boolean)
52427
+ }, false);
52428
+ }
52429
+
52430
+ if (paramsSerializer != null) {
52431
+ if (utils.isFunction(paramsSerializer)) {
52432
+ config.paramsSerializer = {
52433
+ serialize: paramsSerializer
52434
+ }
52435
+ } else {
52436
+ validator.assertOptions(paramsSerializer, {
52437
+ encode: Axios_validators.function,
52438
+ serialize: Axios_validators.function
52439
+ }, true);
52440
+ }
52441
+ }
52442
+
52443
+ // Set config.method
52444
+ config.method = (config.method || this.defaults.method || 'get').toLowerCase();
52445
+
52446
+ // Flatten headers
52447
+ let contextHeaders = headers && utils.merge(
52448
+ headers.common,
52449
+ headers[config.method]
52450
+ );
52451
+
52452
+ headers && utils.forEach(
52453
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
52454
+ (method) => {
52455
+ delete headers[method];
52456
+ }
52457
+ );
52458
+
52459
+ config.headers = core_AxiosHeaders.concat(contextHeaders, headers);
52460
+
52461
+ // filter out skipped interceptors
52462
+ const requestInterceptorChain = [];
52463
+ let synchronousRequestInterceptors = true;
52464
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
52465
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
52466
+ return;
52467
+ }
52468
+
52469
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
52470
+
52471
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
52472
+ });
52473
+
52474
+ const responseInterceptorChain = [];
52475
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
52476
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
52477
+ });
52478
+
52479
+ let promise;
52480
+ let i = 0;
52481
+ let len;
52482
+
52483
+ if (!synchronousRequestInterceptors) {
52484
+ const chain = [dispatchRequest.bind(this), undefined];
52485
+ chain.unshift.apply(chain, requestInterceptorChain);
52486
+ chain.push.apply(chain, responseInterceptorChain);
52487
+ len = chain.length;
52488
+
52489
+ promise = Promise.resolve(config);
52490
+
52491
+ while (i < len) {
52492
+ promise = promise.then(chain[i++], chain[i++]);
52493
+ }
52494
+
52495
+ return promise;
52496
+ }
52497
+
52498
+ len = requestInterceptorChain.length;
52499
+
52500
+ let newConfig = config;
52501
+
52502
+ i = 0;
52503
+
52504
+ while (i < len) {
52505
+ const onFulfilled = requestInterceptorChain[i++];
52506
+ const onRejected = requestInterceptorChain[i++];
52507
+ try {
52508
+ newConfig = onFulfilled(newConfig);
52509
+ } catch (error) {
52510
+ onRejected.call(this, error);
52511
+ break;
52512
+ }
52513
+ }
52514
+
52515
+ try {
52516
+ promise = dispatchRequest.call(this, newConfig);
52517
+ } catch (error) {
52518
+ return Promise.reject(error);
52519
+ }
52520
+
52521
+ i = 0;
52522
+ len = responseInterceptorChain.length;
52523
+
52524
+ while (i < len) {
52525
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
52526
+ }
52527
+
52528
+ return promise;
52529
+ }
52530
+
52531
+ getUri(config) {
52532
+ config = mergeConfig(this.defaults, config);
52533
+ const fullPath = buildFullPath(config.baseURL, config.url);
52534
+ return buildURL(fullPath, config.params, config.paramsSerializer);
52535
+ }
52536
+ }
52537
+
52538
+ // Provide aliases for supported request methods
52539
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
52540
+ /*eslint func-names:0*/
52541
+ Axios.prototype[method] = function(url, config) {
52542
+ return this.request(mergeConfig(config || {}, {
52543
+ method,
52544
+ url,
52545
+ data: (config || {}).data
52546
+ }));
52547
+ };
52548
+ });
52549
+
52550
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
52551
+ /*eslint func-names:0*/
52552
+
52553
+ function generateHTTPMethod(isForm) {
52554
+ return function httpMethod(url, data, config) {
52555
+ return this.request(mergeConfig(config || {}, {
52556
+ method,
52557
+ headers: isForm ? {
52558
+ 'Content-Type': 'multipart/form-data'
52559
+ } : {},
52560
+ url,
52561
+ data
52562
+ }));
52563
+ };
52564
+ }
52565
+
52566
+ Axios.prototype[method] = generateHTTPMethod();
52567
+
52568
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
52569
+ });
52570
+
52571
+ /* harmony default export */ const core_Axios = (Axios);
52572
+
52573
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/cancel/CancelToken.js
52574
+
52575
+
52576
+
52577
+
52578
+ /**
52579
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
52580
+ *
52581
+ * @param {Function} executor The executor function.
52582
+ *
52583
+ * @returns {CancelToken}
52584
+ */
52585
+ class CancelToken {
52586
+ constructor(executor) {
52587
+ if (typeof executor !== 'function') {
52588
+ throw new TypeError('executor must be a function.');
52589
+ }
52590
+
52591
+ let resolvePromise;
52592
+
52593
+ this.promise = new Promise(function promiseExecutor(resolve) {
52594
+ resolvePromise = resolve;
52595
+ });
52596
+
52597
+ const token = this;
52598
+
52599
+ // eslint-disable-next-line func-names
52600
+ this.promise.then(cancel => {
52601
+ if (!token._listeners) return;
52602
+
52603
+ let i = token._listeners.length;
52604
+
52605
+ while (i-- > 0) {
52606
+ token._listeners[i](cancel);
52607
+ }
52608
+ token._listeners = null;
52609
+ });
52610
+
52611
+ // eslint-disable-next-line func-names
52612
+ this.promise.then = onfulfilled => {
52613
+ let _resolve;
52614
+ // eslint-disable-next-line func-names
52615
+ const promise = new Promise(resolve => {
52616
+ token.subscribe(resolve);
52617
+ _resolve = resolve;
52618
+ }).then(onfulfilled);
52619
+
52620
+ promise.cancel = function reject() {
52621
+ token.unsubscribe(_resolve);
52622
+ };
52623
+
52624
+ return promise;
52625
+ };
52626
+
52627
+ executor(function cancel(message, config, request) {
52628
+ if (token.reason) {
52629
+ // Cancellation has already been requested
52630
+ return;
52631
+ }
52632
+
52633
+ token.reason = new cancel_CanceledError(message, config, request);
52634
+ resolvePromise(token.reason);
52635
+ });
52636
+ }
52637
+
52638
+ /**
52639
+ * Throws a `CanceledError` if cancellation has been requested.
52640
+ */
52641
+ throwIfRequested() {
52642
+ if (this.reason) {
52643
+ throw this.reason;
52644
+ }
52645
+ }
52646
+
52647
+ /**
52648
+ * Subscribe to the cancel signal
52649
+ */
52650
+
52651
+ subscribe(listener) {
52652
+ if (this.reason) {
52653
+ listener(this.reason);
52654
+ return;
52655
+ }
52656
+
52657
+ if (this._listeners) {
52658
+ this._listeners.push(listener);
52659
+ } else {
52660
+ this._listeners = [listener];
52661
+ }
52662
+ }
52663
+
52664
+ /**
52665
+ * Unsubscribe from the cancel signal
52666
+ */
52667
+
52668
+ unsubscribe(listener) {
52669
+ if (!this._listeners) {
52670
+ return;
52671
+ }
52672
+ const index = this._listeners.indexOf(listener);
52673
+ if (index !== -1) {
52674
+ this._listeners.splice(index, 1);
52675
+ }
52676
+ }
52677
+
52678
+ /**
52679
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
52680
+ * cancels the `CancelToken`.
52681
+ */
52682
+ static source() {
52683
+ let cancel;
52684
+ const token = new CancelToken(function executor(c) {
52685
+ cancel = c;
52686
+ });
52687
+ return {
52688
+ token,
52689
+ cancel
52690
+ };
52691
+ }
52692
+ }
52693
+
52694
+ /* harmony default export */ const cancel_CancelToken = (CancelToken);
52695
+
52696
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/spread.js
52697
+
52698
+
52699
+ /**
52700
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
52701
+ *
52702
+ * Common use case would be to use `Function.prototype.apply`.
52703
+ *
52704
+ * ```js
52705
+ * function f(x, y, z) {}
52706
+ * var args = [1, 2, 3];
52707
+ * f.apply(null, args);
52708
+ * ```
52709
+ *
52710
+ * With `spread` this example can be re-written.
52711
+ *
52712
+ * ```js
52713
+ * spread(function(x, y, z) {})([1, 2, 3]);
52714
+ * ```
52715
+ *
52716
+ * @param {Function} callback
52717
+ *
52718
+ * @returns {Function}
52719
+ */
52720
+ function spread(callback) {
52721
+ return function wrap(arr) {
52722
+ return callback.apply(null, arr);
52723
+ };
52724
+ }
52725
+
52726
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/isAxiosError.js
52727
+
52728
+
52729
+
52730
+
52731
+ /**
52732
+ * Determines whether the payload is an error thrown by Axios
52733
+ *
52734
+ * @param {*} payload The value to test
52735
+ *
52736
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
52737
+ */
52738
+ function isAxiosError(payload) {
52739
+ return utils.isObject(payload) && (payload.isAxiosError === true);
52740
+ }
52741
+
52742
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/helpers/HttpStatusCode.js
52743
+ const HttpStatusCode = {
52744
+ Continue: 100,
52745
+ SwitchingProtocols: 101,
52746
+ Processing: 102,
52747
+ EarlyHints: 103,
52748
+ Ok: 200,
52749
+ Created: 201,
52750
+ Accepted: 202,
52751
+ NonAuthoritativeInformation: 203,
52752
+ NoContent: 204,
52753
+ ResetContent: 205,
52754
+ PartialContent: 206,
52755
+ MultiStatus: 207,
52756
+ AlreadyReported: 208,
52757
+ ImUsed: 226,
52758
+ MultipleChoices: 300,
52759
+ MovedPermanently: 301,
52760
+ Found: 302,
52761
+ SeeOther: 303,
52762
+ NotModified: 304,
52763
+ UseProxy: 305,
52764
+ Unused: 306,
52765
+ TemporaryRedirect: 307,
52766
+ PermanentRedirect: 308,
52767
+ BadRequest: 400,
52768
+ Unauthorized: 401,
52769
+ PaymentRequired: 402,
52770
+ Forbidden: 403,
52771
+ NotFound: 404,
52772
+ MethodNotAllowed: 405,
52773
+ NotAcceptable: 406,
52774
+ ProxyAuthenticationRequired: 407,
52775
+ RequestTimeout: 408,
52776
+ Conflict: 409,
52777
+ Gone: 410,
52778
+ LengthRequired: 411,
52779
+ PreconditionFailed: 412,
52780
+ PayloadTooLarge: 413,
52781
+ UriTooLong: 414,
52782
+ UnsupportedMediaType: 415,
52783
+ RangeNotSatisfiable: 416,
52784
+ ExpectationFailed: 417,
52785
+ ImATeapot: 418,
52786
+ MisdirectedRequest: 421,
52787
+ UnprocessableEntity: 422,
52788
+ Locked: 423,
52789
+ FailedDependency: 424,
52790
+ TooEarly: 425,
52791
+ UpgradeRequired: 426,
52792
+ PreconditionRequired: 428,
52793
+ TooManyRequests: 429,
52794
+ RequestHeaderFieldsTooLarge: 431,
52795
+ UnavailableForLegalReasons: 451,
52796
+ InternalServerError: 500,
52797
+ NotImplemented: 501,
52798
+ BadGateway: 502,
52799
+ ServiceUnavailable: 503,
52800
+ GatewayTimeout: 504,
52801
+ HttpVersionNotSupported: 505,
52802
+ VariantAlsoNegotiates: 506,
52803
+ InsufficientStorage: 507,
52804
+ LoopDetected: 508,
52805
+ NotExtended: 510,
52806
+ NetworkAuthenticationRequired: 511,
52807
+ };
52808
+
52809
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
52810
+ HttpStatusCode[value] = key;
52811
+ });
52812
+
52813
+ /* harmony default export */ const helpers_HttpStatusCode = (HttpStatusCode);
52814
+
52815
+ ;// CONCATENATED MODULE: ../node_modules/axios/lib/axios.js
52816
+
52817
+
52818
+
52819
+
52820
+
52821
+
52822
+
52823
+
52824
+
52825
+
52826
+
52827
+
52828
+
52829
+
52830
+
52831
+
52832
+
52833
+
52834
+
52835
+
52836
+ /**
52837
+ * Create an instance of Axios
52838
+ *
52839
+ * @param {Object} defaultConfig The default config for the instance
52840
+ *
52841
+ * @returns {Axios} A new instance of Axios
52842
+ */
52843
+ function createInstance(defaultConfig) {
52844
+ const context = new core_Axios(defaultConfig);
52845
+ const instance = bind_bind(core_Axios.prototype.request, context);
52846
+
52847
+ // Copy axios.prototype to instance
52848
+ utils.extend(instance, core_Axios.prototype, context, {allOwnKeys: true});
52849
+
52850
+ // Copy context to instance
52851
+ utils.extend(instance, context, null, {allOwnKeys: true});
52852
+
52853
+ // Factory for creating new instances
52854
+ instance.create = function create(instanceConfig) {
52855
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
52856
+ };
52857
+
52858
+ return instance;
52859
+ }
52860
+
52861
+ // Create the default instance to be exported
52862
+ const axios = createInstance(lib_defaults);
52863
+
52864
+ // Expose Axios class to allow class inheritance
52865
+ axios.Axios = core_Axios;
52866
+
52867
+ // Expose Cancel & CancelToken
52868
+ axios.CanceledError = cancel_CanceledError;
52869
+ axios.CancelToken = cancel_CancelToken;
52870
+ axios.isCancel = isCancel;
52871
+ axios.VERSION = VERSION;
52872
+ axios.toFormData = helpers_toFormData;
52873
+
52874
+ // Expose AxiosError class
52875
+ axios.AxiosError = core_AxiosError;
52876
+
52877
+ // alias for CanceledError for backward compatibility
52878
+ axios.Cancel = axios.CanceledError;
52879
+
52880
+ // Expose all/spread
52881
+ axios.all = function all(promises) {
52882
+ return Promise.all(promises);
52883
+ };
52884
+
52885
+ axios.spread = spread;
52886
+
52887
+ // Expose isAxiosError
52888
+ axios.isAxiosError = isAxiosError;
52889
+
52890
+ // Expose mergeConfig
52891
+ axios.mergeConfig = mergeConfig;
52892
+
52893
+ axios.AxiosHeaders = core_AxiosHeaders;
52894
+
52895
+ axios.formToJSON = thing => helpers_formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
52896
+
52897
+ axios.getAdapter = adapters.getAdapter;
52898
+
52899
+ axios.HttpStatusCode = helpers_HttpStatusCode;
52900
+
52901
+ axios.default = axios;
52902
+
52903
+ // this module should only have a default export
52904
+ /* harmony default export */ const lib_axios = (axios);
52905
+
52906
+ ;// CONCATENATED MODULE: ../node_modules/axios/index.js
52907
+
52908
+
52909
+ // This module is intended to unwrap Axios default export as named.
52910
+ // Keep top-level export same with static properties
52911
+ // so that it can keep same with es module or cjs
52912
+ const {
52913
+ Axios: axios_Axios,
52914
+ AxiosError: axios_AxiosError,
52915
+ CanceledError: axios_CanceledError,
52916
+ isCancel: axios_isCancel,
52917
+ CancelToken: axios_CancelToken,
52918
+ VERSION: axios_VERSION,
52919
+ all: axios_all,
52920
+ Cancel,
52921
+ isAxiosError: axios_isAxiosError,
52922
+ spread: axios_spread,
52923
+ toFormData: axios_toFormData,
52924
+ AxiosHeaders: axios_AxiosHeaders,
52925
+ HttpStatusCode: axios_HttpStatusCode,
52926
+ formToJSON,
52927
+ getAdapter,
52928
+ mergeConfig: axios_mergeConfig
52929
+ } = lib_axios;
52930
+
52931
+
52932
+
49424
52933
  ;// CONCATENATED MODULE: ./src/rpc.manager.ts
49425
52934
 
49426
52935
 
@@ -49506,20 +53015,20 @@ class RpcManager {
49506
53015
  });
49507
53016
  formData.append('body', serialization_serializeObj(message));
49508
53017
  // Make the axios call
49509
- axiosResponse = await external_axios_default().post(url, formData, {
53018
+ axiosResponse = await lib_axios.post(url, formData, {
49510
53019
  headers: Object.assign({}, headers),
49511
53020
  responseType: 'text',
49512
53021
  });
49513
53022
  }
49514
53023
  else {
49515
- axiosResponse = await external_axios_default().post(url, serialization_serializeObj(message), {
53024
+ axiosResponse = await lib_axios.post(url, serialization_serializeObj(message), {
49516
53025
  headers: Object.assign(Object.assign({}, headers), { 'Content-Type': 'application/json' }),
49517
53026
  responseType: 'text',
49518
53027
  });
49519
53028
  }
49520
53029
  }
49521
53030
  catch (e) {
49522
- if (e instanceof external_axios_namespaceObject.AxiosError) {
53031
+ if (e instanceof axios_AxiosError) {
49523
53032
  const response = e.response;
49524
53033
  if (!response)
49525
53034
  throw e;