@zscreate/form-component 1.1.194 → 1.1.195

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.
@@ -107473,6 +107473,7 @@ CryptoJS.pad.ZeroPadding = {
107473
107473
  "use strict";
107474
107474
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
107475
107475
  /* harmony export */ G_: () => (/* binding */ filterObj),
107476
+ /* harmony export */ Ph: () => (/* binding */ getQueryParam),
107476
107477
  /* harmony export */ WP: () => (/* binding */ toAwait),
107477
107478
  /* harmony export */ xb: () => (/* binding */ isEmpty)
107478
107479
  /* harmony export */ });
@@ -107517,6 +107518,14 @@ const isEmpty = value => {
107517
107518
  * @returns {*}
107518
107519
  */
107519
107520
  const toAwait = promise => promise.then(res => [null, res]).catch(error => [error]);
107521
+ function getQueryParam(name, url = window.location.href) {
107522
+ name = name.replace(/[\[\]]/g, "\\$&");
107523
+ const regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
107524
+ results = regex.exec(url);
107525
+ if (!results) return null;
107526
+ if (!results[2]) return '';
107527
+ return decodeURIComponent(results[2].replace(/\+/g, " "));
107528
+ }
107520
107529
 
107521
107530
  /***/ }),
107522
107531
 
@@ -128557,7 +128566,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7203__;
128557
128566
  /***/ ((module) => {
128558
128567
 
128559
128568
  "use strict";
128560
- module.exports = {"i8":"1.1.194"};
128569
+ module.exports = {"i8":"1.1.195"};
128561
128570
 
128562
128571
  /***/ })
128563
128572
 
@@ -128670,6 +128679,15 @@ __webpack_require__.d(__webpack_exports__, {
128670
128679
  "default": () => (/* binding */ entry_lib)
128671
128680
  });
128672
128681
 
128682
+ // NAMESPACE OBJECT: ./node_modules/_axios@1.6.2@axios/lib/platform/common/utils.js
128683
+ var common_utils_namespaceObject = {};
128684
+ __webpack_require__.r(common_utils_namespaceObject);
128685
+ __webpack_require__.d(common_utils_namespaceObject, {
128686
+ hasBrowserEnv: () => (hasBrowserEnv),
128687
+ hasStandardBrowserEnv: () => (hasStandardBrowserEnv),
128688
+ hasStandardBrowserWebWorkerEnv: () => (hasStandardBrowserWebWorkerEnv)
128689
+ });
128690
+
128673
128691
  ;// CONCATENATED MODULE: ./node_modules/_@vue_cli-service@5.0.8@@vue/cli-service/lib/commands/build/setPublicPath.js
128674
128692
  /* eslint-disable no-var */
128675
128693
  // This file is imported into lib/wc client bundles.
@@ -134049,12 +134067,3530 @@ Print.prototype = {
134049
134067
  }
134050
134068
  };
134051
134069
  /* harmony default export */ const print = (Print);
134052
- ;// CONCATENATED MODULE: ./src/main.js
134070
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/bind.js
134053
134071
 
134054
134072
 
134055
- const version = (__webpack_require__(4147)/* .version */ .i8);
134056
- window.formVersion = version;
134057
- console.log("version:", version);
134073
+ function bind(fn, thisArg) {
134074
+ return function wrap() {
134075
+ return fn.apply(thisArg, arguments);
134076
+ };
134077
+ }
134078
+
134079
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/utils.js
134080
+
134081
+
134082
+
134083
+
134084
+ // utils is a library of generic helper functions non-specific to axios
134085
+
134086
+ const {toString: utils_toString} = Object.prototype;
134087
+ const {getPrototypeOf} = Object;
134088
+
134089
+ const kindOf = (cache => thing => {
134090
+ const str = utils_toString.call(thing);
134091
+ return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
134092
+ })(Object.create(null));
134093
+
134094
+ const kindOfTest = (type) => {
134095
+ type = type.toLowerCase();
134096
+ return (thing) => kindOf(thing) === type
134097
+ }
134098
+
134099
+ const typeOfTest = type => thing => typeof thing === type;
134100
+
134101
+ /**
134102
+ * Determine if a value is an Array
134103
+ *
134104
+ * @param {Object} val The value to test
134105
+ *
134106
+ * @returns {boolean} True if value is an Array, otherwise false
134107
+ */
134108
+ const {isArray} = Array;
134109
+
134110
+ /**
134111
+ * Determine if a value is undefined
134112
+ *
134113
+ * @param {*} val The value to test
134114
+ *
134115
+ * @returns {boolean} True if the value is undefined, otherwise false
134116
+ */
134117
+ const isUndefined = typeOfTest('undefined');
134118
+
134119
+ /**
134120
+ * Determine if a value is a Buffer
134121
+ *
134122
+ * @param {*} val The value to test
134123
+ *
134124
+ * @returns {boolean} True if value is a Buffer, otherwise false
134125
+ */
134126
+ function isBuffer(val) {
134127
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)
134128
+ && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
134129
+ }
134130
+
134131
+ /**
134132
+ * Determine if a value is an ArrayBuffer
134133
+ *
134134
+ * @param {*} val The value to test
134135
+ *
134136
+ * @returns {boolean} True if value is an ArrayBuffer, otherwise false
134137
+ */
134138
+ const isArrayBuffer = kindOfTest('ArrayBuffer');
134139
+
134140
+
134141
+ /**
134142
+ * Determine if a value is a view on an ArrayBuffer
134143
+ *
134144
+ * @param {*} val The value to test
134145
+ *
134146
+ * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
134147
+ */
134148
+ function isArrayBufferView(val) {
134149
+ let result;
134150
+ if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
134151
+ result = ArrayBuffer.isView(val);
134152
+ } else {
134153
+ result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
134154
+ }
134155
+ return result;
134156
+ }
134157
+
134158
+ /**
134159
+ * Determine if a value is a String
134160
+ *
134161
+ * @param {*} val The value to test
134162
+ *
134163
+ * @returns {boolean} True if value is a String, otherwise false
134164
+ */
134165
+ const isString = typeOfTest('string');
134166
+
134167
+ /**
134168
+ * Determine if a value is a Function
134169
+ *
134170
+ * @param {*} val The value to test
134171
+ * @returns {boolean} True if value is a Function, otherwise false
134172
+ */
134173
+ const isFunction = typeOfTest('function');
134174
+
134175
+ /**
134176
+ * Determine if a value is a Number
134177
+ *
134178
+ * @param {*} val The value to test
134179
+ *
134180
+ * @returns {boolean} True if value is a Number, otherwise false
134181
+ */
134182
+ const isNumber = typeOfTest('number');
134183
+
134184
+ /**
134185
+ * Determine if a value is an Object
134186
+ *
134187
+ * @param {*} thing The value to test
134188
+ *
134189
+ * @returns {boolean} True if value is an Object, otherwise false
134190
+ */
134191
+ const isObject = (thing) => thing !== null && typeof thing === 'object';
134192
+
134193
+ /**
134194
+ * Determine if a value is a Boolean
134195
+ *
134196
+ * @param {*} thing The value to test
134197
+ * @returns {boolean} True if value is a Boolean, otherwise false
134198
+ */
134199
+ const isBoolean = thing => thing === true || thing === false;
134200
+
134201
+ /**
134202
+ * Determine if a value is a plain Object
134203
+ *
134204
+ * @param {*} val The value to test
134205
+ *
134206
+ * @returns {boolean} True if value is a plain Object, otherwise false
134207
+ */
134208
+ const isPlainObject = (val) => {
134209
+ if (kindOf(val) !== 'object') {
134210
+ return false;
134211
+ }
134212
+
134213
+ const prototype = getPrototypeOf(val);
134214
+ return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);
134215
+ }
134216
+
134217
+ /**
134218
+ * Determine if a value is a Date
134219
+ *
134220
+ * @param {*} val The value to test
134221
+ *
134222
+ * @returns {boolean} True if value is a Date, otherwise false
134223
+ */
134224
+ const isDate = kindOfTest('Date');
134225
+
134226
+ /**
134227
+ * Determine if a value is a File
134228
+ *
134229
+ * @param {*} val The value to test
134230
+ *
134231
+ * @returns {boolean} True if value is a File, otherwise false
134232
+ */
134233
+ const isFile = kindOfTest('File');
134234
+
134235
+ /**
134236
+ * Determine if a value is a Blob
134237
+ *
134238
+ * @param {*} val The value to test
134239
+ *
134240
+ * @returns {boolean} True if value is a Blob, otherwise false
134241
+ */
134242
+ const isBlob = kindOfTest('Blob');
134243
+
134244
+ /**
134245
+ * Determine if a value is a FileList
134246
+ *
134247
+ * @param {*} val The value to test
134248
+ *
134249
+ * @returns {boolean} True if value is a File, otherwise false
134250
+ */
134251
+ const isFileList = kindOfTest('FileList');
134252
+
134253
+ /**
134254
+ * Determine if a value is a Stream
134255
+ *
134256
+ * @param {*} val The value to test
134257
+ *
134258
+ * @returns {boolean} True if value is a Stream, otherwise false
134259
+ */
134260
+ const isStream = (val) => isObject(val) && isFunction(val.pipe);
134261
+
134262
+ /**
134263
+ * Determine if a value is a FormData
134264
+ *
134265
+ * @param {*} thing The value to test
134266
+ *
134267
+ * @returns {boolean} True if value is an FormData, otherwise false
134268
+ */
134269
+ const isFormData = (thing) => {
134270
+ let kind;
134271
+ return thing && (
134272
+ (typeof FormData === 'function' && thing instanceof FormData) || (
134273
+ isFunction(thing.append) && (
134274
+ (kind = kindOf(thing)) === 'formdata' ||
134275
+ // detect form-data instance
134276
+ (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')
134277
+ )
134278
+ )
134279
+ )
134280
+ }
134281
+
134282
+ /**
134283
+ * Determine if a value is a URLSearchParams object
134284
+ *
134285
+ * @param {*} val The value to test
134286
+ *
134287
+ * @returns {boolean} True if value is a URLSearchParams object, otherwise false
134288
+ */
134289
+ const isURLSearchParams = kindOfTest('URLSearchParams');
134290
+
134291
+ /**
134292
+ * Trim excess whitespace off the beginning and end of a string
134293
+ *
134294
+ * @param {String} str The String to trim
134295
+ *
134296
+ * @returns {String} The String freed of excess whitespace
134297
+ */
134298
+ const trim = (str) => str.trim ?
134299
+ str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
134300
+
134301
+ /**
134302
+ * Iterate over an Array or an Object invoking a function for each item.
134303
+ *
134304
+ * If `obj` is an Array callback will be called passing
134305
+ * the value, index, and complete array for each item.
134306
+ *
134307
+ * If 'obj' is an Object callback will be called passing
134308
+ * the value, key, and complete object for each property.
134309
+ *
134310
+ * @param {Object|Array} obj The object to iterate
134311
+ * @param {Function} fn The callback to invoke for each item
134312
+ *
134313
+ * @param {Boolean} [allOwnKeys = false]
134314
+ * @returns {any}
134315
+ */
134316
+ function forEach(obj, fn, {allOwnKeys = false} = {}) {
134317
+ // Don't bother if no value provided
134318
+ if (obj === null || typeof obj === 'undefined') {
134319
+ return;
134320
+ }
134321
+
134322
+ let i;
134323
+ let l;
134324
+
134325
+ // Force an array if not already something iterable
134326
+ if (typeof obj !== 'object') {
134327
+ /*eslint no-param-reassign:0*/
134328
+ obj = [obj];
134329
+ }
134330
+
134331
+ if (isArray(obj)) {
134332
+ // Iterate over array values
134333
+ for (i = 0, l = obj.length; i < l; i++) {
134334
+ fn.call(null, obj[i], i, obj);
134335
+ }
134336
+ } else {
134337
+ // Iterate over object keys
134338
+ const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
134339
+ const len = keys.length;
134340
+ let key;
134341
+
134342
+ for (i = 0; i < len; i++) {
134343
+ key = keys[i];
134344
+ fn.call(null, obj[key], key, obj);
134345
+ }
134346
+ }
134347
+ }
134348
+
134349
+ function findKey(obj, key) {
134350
+ key = key.toLowerCase();
134351
+ const keys = Object.keys(obj);
134352
+ let i = keys.length;
134353
+ let _key;
134354
+ while (i-- > 0) {
134355
+ _key = keys[i];
134356
+ if (key === _key.toLowerCase()) {
134357
+ return _key;
134358
+ }
134359
+ }
134360
+ return null;
134361
+ }
134362
+
134363
+ const _global = (() => {
134364
+ /*eslint no-undef:0*/
134365
+ if (typeof globalThis !== "undefined") return globalThis;
134366
+ return typeof self !== "undefined" ? self : (typeof window !== 'undefined' ? window : global)
134367
+ })();
134368
+
134369
+ const isContextDefined = (context) => !isUndefined(context) && context !== _global;
134370
+
134371
+ /**
134372
+ * Accepts varargs expecting each argument to be an object, then
134373
+ * immutably merges the properties of each object and returns result.
134374
+ *
134375
+ * When multiple objects contain the same key the later object in
134376
+ * the arguments list will take precedence.
134377
+ *
134378
+ * Example:
134379
+ *
134380
+ * ```js
134381
+ * var result = merge({foo: 123}, {foo: 456});
134382
+ * console.log(result.foo); // outputs 456
134383
+ * ```
134384
+ *
134385
+ * @param {Object} obj1 Object to merge
134386
+ *
134387
+ * @returns {Object} Result of all merge properties
134388
+ */
134389
+ function merge(/* obj1, obj2, obj3, ... */) {
134390
+ const {caseless} = isContextDefined(this) && this || {};
134391
+ const result = {};
134392
+ const assignValue = (val, key) => {
134393
+ const targetKey = caseless && findKey(result, key) || key;
134394
+ if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
134395
+ result[targetKey] = merge(result[targetKey], val);
134396
+ } else if (isPlainObject(val)) {
134397
+ result[targetKey] = merge({}, val);
134398
+ } else if (isArray(val)) {
134399
+ result[targetKey] = val.slice();
134400
+ } else {
134401
+ result[targetKey] = val;
134402
+ }
134403
+ }
134404
+
134405
+ for (let i = 0, l = arguments.length; i < l; i++) {
134406
+ arguments[i] && forEach(arguments[i], assignValue);
134407
+ }
134408
+ return result;
134409
+ }
134410
+
134411
+ /**
134412
+ * Extends object a by mutably adding to it the properties of object b.
134413
+ *
134414
+ * @param {Object} a The object to be extended
134415
+ * @param {Object} b The object to copy properties from
134416
+ * @param {Object} thisArg The object to bind function to
134417
+ *
134418
+ * @param {Boolean} [allOwnKeys]
134419
+ * @returns {Object} The resulting value of object a
134420
+ */
134421
+ const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
134422
+ forEach(b, (val, key) => {
134423
+ if (thisArg && isFunction(val)) {
134424
+ a[key] = bind(val, thisArg);
134425
+ } else {
134426
+ a[key] = val;
134427
+ }
134428
+ }, {allOwnKeys});
134429
+ return a;
134430
+ }
134431
+
134432
+ /**
134433
+ * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
134434
+ *
134435
+ * @param {string} content with BOM
134436
+ *
134437
+ * @returns {string} content value without BOM
134438
+ */
134439
+ const stripBOM = (content) => {
134440
+ if (content.charCodeAt(0) === 0xFEFF) {
134441
+ content = content.slice(1);
134442
+ }
134443
+ return content;
134444
+ }
134445
+
134446
+ /**
134447
+ * Inherit the prototype methods from one constructor into another
134448
+ * @param {function} constructor
134449
+ * @param {function} superConstructor
134450
+ * @param {object} [props]
134451
+ * @param {object} [descriptors]
134452
+ *
134453
+ * @returns {void}
134454
+ */
134455
+ const inherits = (constructor, superConstructor, props, descriptors) => {
134456
+ constructor.prototype = Object.create(superConstructor.prototype, descriptors);
134457
+ constructor.prototype.constructor = constructor;
134458
+ Object.defineProperty(constructor, 'super', {
134459
+ value: superConstructor.prototype
134460
+ });
134461
+ props && Object.assign(constructor.prototype, props);
134462
+ }
134463
+
134464
+ /**
134465
+ * Resolve object with deep prototype chain to a flat object
134466
+ * @param {Object} sourceObj source object
134467
+ * @param {Object} [destObj]
134468
+ * @param {Function|Boolean} [filter]
134469
+ * @param {Function} [propFilter]
134470
+ *
134471
+ * @returns {Object}
134472
+ */
134473
+ const toFlatObject = (sourceObj, destObj, filter, propFilter) => {
134474
+ let props;
134475
+ let i;
134476
+ let prop;
134477
+ const merged = {};
134478
+
134479
+ destObj = destObj || {};
134480
+ // eslint-disable-next-line no-eq-null,eqeqeq
134481
+ if (sourceObj == null) return destObj;
134482
+
134483
+ do {
134484
+ props = Object.getOwnPropertyNames(sourceObj);
134485
+ i = props.length;
134486
+ while (i-- > 0) {
134487
+ prop = props[i];
134488
+ if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
134489
+ destObj[prop] = sourceObj[prop];
134490
+ merged[prop] = true;
134491
+ }
134492
+ }
134493
+ sourceObj = filter !== false && getPrototypeOf(sourceObj);
134494
+ } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);
134495
+
134496
+ return destObj;
134497
+ }
134498
+
134499
+ /**
134500
+ * Determines whether a string ends with the characters of a specified string
134501
+ *
134502
+ * @param {String} str
134503
+ * @param {String} searchString
134504
+ * @param {Number} [position= 0]
134505
+ *
134506
+ * @returns {boolean}
134507
+ */
134508
+ const endsWith = (str, searchString, position) => {
134509
+ str = String(str);
134510
+ if (position === undefined || position > str.length) {
134511
+ position = str.length;
134512
+ }
134513
+ position -= searchString.length;
134514
+ const lastIndex = str.indexOf(searchString, position);
134515
+ return lastIndex !== -1 && lastIndex === position;
134516
+ }
134517
+
134518
+
134519
+ /**
134520
+ * Returns new array from array like object or null if failed
134521
+ *
134522
+ * @param {*} [thing]
134523
+ *
134524
+ * @returns {?Array}
134525
+ */
134526
+ const toArray = (thing) => {
134527
+ if (!thing) return null;
134528
+ if (isArray(thing)) return thing;
134529
+ let i = thing.length;
134530
+ if (!isNumber(i)) return null;
134531
+ const arr = new Array(i);
134532
+ while (i-- > 0) {
134533
+ arr[i] = thing[i];
134534
+ }
134535
+ return arr;
134536
+ }
134537
+
134538
+ /**
134539
+ * Checking if the Uint8Array exists and if it does, it returns a function that checks if the
134540
+ * thing passed in is an instance of Uint8Array
134541
+ *
134542
+ * @param {TypedArray}
134543
+ *
134544
+ * @returns {Array}
134545
+ */
134546
+ // eslint-disable-next-line func-names
134547
+ const isTypedArray = (TypedArray => {
134548
+ // eslint-disable-next-line func-names
134549
+ return thing => {
134550
+ return TypedArray && thing instanceof TypedArray;
134551
+ };
134552
+ })(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
134553
+
134554
+ /**
134555
+ * For each entry in the object, call the function with the key and value.
134556
+ *
134557
+ * @param {Object<any, any>} obj - The object to iterate over.
134558
+ * @param {Function} fn - The function to call for each entry.
134559
+ *
134560
+ * @returns {void}
134561
+ */
134562
+ const forEachEntry = (obj, fn) => {
134563
+ const generator = obj && obj[Symbol.iterator];
134564
+
134565
+ const iterator = generator.call(obj);
134566
+
134567
+ let result;
134568
+
134569
+ while ((result = iterator.next()) && !result.done) {
134570
+ const pair = result.value;
134571
+ fn.call(obj, pair[0], pair[1]);
134572
+ }
134573
+ }
134574
+
134575
+ /**
134576
+ * It takes a regular expression and a string, and returns an array of all the matches
134577
+ *
134578
+ * @param {string} regExp - The regular expression to match against.
134579
+ * @param {string} str - The string to search.
134580
+ *
134581
+ * @returns {Array<boolean>}
134582
+ */
134583
+ const matchAll = (regExp, str) => {
134584
+ let matches;
134585
+ const arr = [];
134586
+
134587
+ while ((matches = regExp.exec(str)) !== null) {
134588
+ arr.push(matches);
134589
+ }
134590
+
134591
+ return arr;
134592
+ }
134593
+
134594
+ /* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */
134595
+ const isHTMLForm = kindOfTest('HTMLFormElement');
134596
+
134597
+ const toCamelCase = str => {
134598
+ return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,
134599
+ function replacer(m, p1, p2) {
134600
+ return p1.toUpperCase() + p2;
134601
+ }
134602
+ );
134603
+ };
134604
+
134605
+ /* Creating a function that will check if an object has a property. */
134606
+ const utils_hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
134607
+
134608
+ /**
134609
+ * Determine if a value is a RegExp object
134610
+ *
134611
+ * @param {*} val The value to test
134612
+ *
134613
+ * @returns {boolean} True if value is a RegExp object, otherwise false
134614
+ */
134615
+ const isRegExp = kindOfTest('RegExp');
134616
+
134617
+ const reduceDescriptors = (obj, reducer) => {
134618
+ const descriptors = Object.getOwnPropertyDescriptors(obj);
134619
+ const reducedDescriptors = {};
134620
+
134621
+ forEach(descriptors, (descriptor, name) => {
134622
+ let ret;
134623
+ if ((ret = reducer(descriptor, name, obj)) !== false) {
134624
+ reducedDescriptors[name] = ret || descriptor;
134625
+ }
134626
+ });
134627
+
134628
+ Object.defineProperties(obj, reducedDescriptors);
134629
+ }
134630
+
134631
+ /**
134632
+ * Makes all methods read-only
134633
+ * @param {Object} obj
134634
+ */
134635
+
134636
+ const freezeMethods = (obj) => {
134637
+ reduceDescriptors(obj, (descriptor, name) => {
134638
+ // skip restricted props in strict mode
134639
+ if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {
134640
+ return false;
134641
+ }
134642
+
134643
+ const value = obj[name];
134644
+
134645
+ if (!isFunction(value)) return;
134646
+
134647
+ descriptor.enumerable = false;
134648
+
134649
+ if ('writable' in descriptor) {
134650
+ descriptor.writable = false;
134651
+ return;
134652
+ }
134653
+
134654
+ if (!descriptor.set) {
134655
+ descriptor.set = () => {
134656
+ throw Error('Can not rewrite read-only method \'' + name + '\'');
134657
+ };
134658
+ }
134659
+ });
134660
+ }
134661
+
134662
+ const toObjectSet = (arrayOrString, delimiter) => {
134663
+ const obj = {};
134664
+
134665
+ const define = (arr) => {
134666
+ arr.forEach(value => {
134667
+ obj[value] = true;
134668
+ });
134669
+ }
134670
+
134671
+ isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
134672
+
134673
+ return obj;
134674
+ }
134675
+
134676
+ const noop = () => {}
134677
+
134678
+ const toFiniteNumber = (value, defaultValue) => {
134679
+ value = +value;
134680
+ return Number.isFinite(value) ? value : defaultValue;
134681
+ }
134682
+
134683
+ const ALPHA = 'abcdefghijklmnopqrstuvwxyz'
134684
+
134685
+ const DIGIT = '0123456789';
134686
+
134687
+ const ALPHABET = {
134688
+ DIGIT,
134689
+ ALPHA,
134690
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
134691
+ }
134692
+
134693
+ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
134694
+ let str = '';
134695
+ const {length} = alphabet;
134696
+ while (size--) {
134697
+ str += alphabet[Math.random() * length|0]
134698
+ }
134699
+
134700
+ return str;
134701
+ }
134702
+
134703
+ /**
134704
+ * If the thing is a FormData object, return true, otherwise return false.
134705
+ *
134706
+ * @param {unknown} thing - The thing to check.
134707
+ *
134708
+ * @returns {boolean}
134709
+ */
134710
+ function isSpecCompliantForm(thing) {
134711
+ return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);
134712
+ }
134713
+
134714
+ const toJSONObject = (obj) => {
134715
+ const stack = new Array(10);
134716
+
134717
+ const visit = (source, i) => {
134718
+
134719
+ if (isObject(source)) {
134720
+ if (stack.indexOf(source) >= 0) {
134721
+ return;
134722
+ }
134723
+
134724
+ if(!('toJSON' in source)) {
134725
+ stack[i] = source;
134726
+ const target = isArray(source) ? [] : {};
134727
+
134728
+ forEach(source, (value, key) => {
134729
+ const reducedValue = visit(value, i + 1);
134730
+ !isUndefined(reducedValue) && (target[key] = reducedValue);
134731
+ });
134732
+
134733
+ stack[i] = undefined;
134734
+
134735
+ return target;
134736
+ }
134737
+ }
134738
+
134739
+ return source;
134740
+ }
134741
+
134742
+ return visit(obj, 0);
134743
+ }
134744
+
134745
+ const isAsyncFn = kindOfTest('AsyncFunction');
134746
+
134747
+ const isThenable = (thing) =>
134748
+ thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
134749
+
134750
+ /* harmony default export */ const utils = ({
134751
+ isArray,
134752
+ isArrayBuffer,
134753
+ isBuffer,
134754
+ isFormData,
134755
+ isArrayBufferView,
134756
+ isString,
134757
+ isNumber,
134758
+ isBoolean,
134759
+ isObject,
134760
+ isPlainObject,
134761
+ isUndefined,
134762
+ isDate,
134763
+ isFile,
134764
+ isBlob,
134765
+ isRegExp,
134766
+ isFunction,
134767
+ isStream,
134768
+ isURLSearchParams,
134769
+ isTypedArray,
134770
+ isFileList,
134771
+ forEach,
134772
+ merge,
134773
+ extend,
134774
+ trim,
134775
+ stripBOM,
134776
+ inherits,
134777
+ toFlatObject,
134778
+ kindOf,
134779
+ kindOfTest,
134780
+ endsWith,
134781
+ toArray,
134782
+ forEachEntry,
134783
+ matchAll,
134784
+ isHTMLForm,
134785
+ hasOwnProperty: utils_hasOwnProperty,
134786
+ hasOwnProp: utils_hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection
134787
+ reduceDescriptors,
134788
+ freezeMethods,
134789
+ toObjectSet,
134790
+ toCamelCase,
134791
+ noop,
134792
+ toFiniteNumber,
134793
+ findKey,
134794
+ global: _global,
134795
+ isContextDefined,
134796
+ ALPHABET,
134797
+ generateString,
134798
+ isSpecCompliantForm,
134799
+ toJSONObject,
134800
+ isAsyncFn,
134801
+ isThenable
134802
+ });
134803
+
134804
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/core/AxiosError.js
134805
+
134806
+
134807
+
134808
+
134809
+ /**
134810
+ * Create an Error with the specified message, config, error code, request and response.
134811
+ *
134812
+ * @param {string} message The error message.
134813
+ * @param {string} [code] The error code (for example, 'ECONNABORTED').
134814
+ * @param {Object} [config] The config.
134815
+ * @param {Object} [request] The request.
134816
+ * @param {Object} [response] The response.
134817
+ *
134818
+ * @returns {Error} The created error.
134819
+ */
134820
+ function AxiosError(message, code, config, request, response) {
134821
+ Error.call(this);
134822
+
134823
+ if (Error.captureStackTrace) {
134824
+ Error.captureStackTrace(this, this.constructor);
134825
+ } else {
134826
+ this.stack = (new Error()).stack;
134827
+ }
134828
+
134829
+ this.message = message;
134830
+ this.name = 'AxiosError';
134831
+ code && (this.code = code);
134832
+ config && (this.config = config);
134833
+ request && (this.request = request);
134834
+ response && (this.response = response);
134835
+ }
134836
+
134837
+ utils.inherits(AxiosError, Error, {
134838
+ toJSON: function toJSON() {
134839
+ return {
134840
+ // Standard
134841
+ message: this.message,
134842
+ name: this.name,
134843
+ // Microsoft
134844
+ description: this.description,
134845
+ number: this.number,
134846
+ // Mozilla
134847
+ fileName: this.fileName,
134848
+ lineNumber: this.lineNumber,
134849
+ columnNumber: this.columnNumber,
134850
+ stack: this.stack,
134851
+ // Axios
134852
+ config: utils.toJSONObject(this.config),
134853
+ code: this.code,
134854
+ status: this.response && this.response.status ? this.response.status : null
134855
+ };
134856
+ }
134857
+ });
134858
+
134859
+ const AxiosError_prototype = AxiosError.prototype;
134860
+ const descriptors = {};
134861
+
134862
+ [
134863
+ 'ERR_BAD_OPTION_VALUE',
134864
+ 'ERR_BAD_OPTION',
134865
+ 'ECONNABORTED',
134866
+ 'ETIMEDOUT',
134867
+ 'ERR_NETWORK',
134868
+ 'ERR_FR_TOO_MANY_REDIRECTS',
134869
+ 'ERR_DEPRECATED',
134870
+ 'ERR_BAD_RESPONSE',
134871
+ 'ERR_BAD_REQUEST',
134872
+ 'ERR_CANCELED',
134873
+ 'ERR_NOT_SUPPORT',
134874
+ 'ERR_INVALID_URL'
134875
+ // eslint-disable-next-line func-names
134876
+ ].forEach(code => {
134877
+ descriptors[code] = {value: code};
134878
+ });
134879
+
134880
+ Object.defineProperties(AxiosError, descriptors);
134881
+ Object.defineProperty(AxiosError_prototype, 'isAxiosError', {value: true});
134882
+
134883
+ // eslint-disable-next-line func-names
134884
+ AxiosError.from = (error, code, config, request, response, customProps) => {
134885
+ const axiosError = Object.create(AxiosError_prototype);
134886
+
134887
+ utils.toFlatObject(error, axiosError, function filter(obj) {
134888
+ return obj !== Error.prototype;
134889
+ }, prop => {
134890
+ return prop !== 'isAxiosError';
134891
+ });
134892
+
134893
+ AxiosError.call(axiosError, error.message, code, config, request, response);
134894
+
134895
+ axiosError.cause = error;
134896
+
134897
+ axiosError.name = error.name;
134898
+
134899
+ customProps && Object.assign(axiosError, customProps);
134900
+
134901
+ return axiosError;
134902
+ };
134903
+
134904
+ /* harmony default export */ const core_AxiosError = (AxiosError);
134905
+
134906
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/null.js
134907
+ // eslint-disable-next-line strict
134908
+ /* harmony default export */ const helpers_null = (null);
134909
+
134910
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/toFormData.js
134911
+
134912
+
134913
+
134914
+
134915
+ // temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
134916
+
134917
+
134918
+ /**
134919
+ * Determines if the given thing is a array or js object.
134920
+ *
134921
+ * @param {string} thing - The object or array to be visited.
134922
+ *
134923
+ * @returns {boolean}
134924
+ */
134925
+ function isVisitable(thing) {
134926
+ return utils.isPlainObject(thing) || utils.isArray(thing);
134927
+ }
134928
+
134929
+ /**
134930
+ * It removes the brackets from the end of a string
134931
+ *
134932
+ * @param {string} key - The key of the parameter.
134933
+ *
134934
+ * @returns {string} the key without the brackets.
134935
+ */
134936
+ function removeBrackets(key) {
134937
+ return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;
134938
+ }
134939
+
134940
+ /**
134941
+ * It takes a path, a key, and a boolean, and returns a string
134942
+ *
134943
+ * @param {string} path - The path to the current key.
134944
+ * @param {string} key - The key of the current object being iterated over.
134945
+ * @param {string} dots - If true, the key will be rendered with dots instead of brackets.
134946
+ *
134947
+ * @returns {string} The path to the current key.
134948
+ */
134949
+ function renderKey(path, key, dots) {
134950
+ if (!path) return key;
134951
+ return path.concat(key).map(function each(token, i) {
134952
+ // eslint-disable-next-line no-param-reassign
134953
+ token = removeBrackets(token);
134954
+ return !dots && i ? '[' + token + ']' : token;
134955
+ }).join(dots ? '.' : '');
134956
+ }
134957
+
134958
+ /**
134959
+ * If the array is an array and none of its elements are visitable, then it's a flat array.
134960
+ *
134961
+ * @param {Array<any>} arr - The array to check
134962
+ *
134963
+ * @returns {boolean}
134964
+ */
134965
+ function isFlatArray(arr) {
134966
+ return utils.isArray(arr) && !arr.some(isVisitable);
134967
+ }
134968
+
134969
+ const predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {
134970
+ return /^is[A-Z]/.test(prop);
134971
+ });
134972
+
134973
+ /**
134974
+ * Convert a data object to FormData
134975
+ *
134976
+ * @param {Object} obj
134977
+ * @param {?Object} [formData]
134978
+ * @param {?Object} [options]
134979
+ * @param {Function} [options.visitor]
134980
+ * @param {Boolean} [options.metaTokens = true]
134981
+ * @param {Boolean} [options.dots = false]
134982
+ * @param {?Boolean} [options.indexes = false]
134983
+ *
134984
+ * @returns {Object}
134985
+ **/
134986
+
134987
+ /**
134988
+ * It converts an object into a FormData object
134989
+ *
134990
+ * @param {Object<any, any>} obj - The object to convert to form data.
134991
+ * @param {string} formData - The FormData object to append to.
134992
+ * @param {Object<string, any>} options
134993
+ *
134994
+ * @returns
134995
+ */
134996
+ function toFormData(obj, formData, options) {
134997
+ if (!utils.isObject(obj)) {
134998
+ throw new TypeError('target must be an object');
134999
+ }
135000
+
135001
+ // eslint-disable-next-line no-param-reassign
135002
+ formData = formData || new (helpers_null || FormData)();
135003
+
135004
+ // eslint-disable-next-line no-param-reassign
135005
+ options = utils.toFlatObject(options, {
135006
+ metaTokens: true,
135007
+ dots: false,
135008
+ indexes: false
135009
+ }, false, function defined(option, source) {
135010
+ // eslint-disable-next-line no-eq-null,eqeqeq
135011
+ return !utils.isUndefined(source[option]);
135012
+ });
135013
+
135014
+ const metaTokens = options.metaTokens;
135015
+ // eslint-disable-next-line no-use-before-define
135016
+ const visitor = options.visitor || defaultVisitor;
135017
+ const dots = options.dots;
135018
+ const indexes = options.indexes;
135019
+ const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
135020
+ const useBlob = _Blob && utils.isSpecCompliantForm(formData);
135021
+
135022
+ if (!utils.isFunction(visitor)) {
135023
+ throw new TypeError('visitor must be a function');
135024
+ }
135025
+
135026
+ function convertValue(value) {
135027
+ if (value === null) return '';
135028
+
135029
+ if (utils.isDate(value)) {
135030
+ return value.toISOString();
135031
+ }
135032
+
135033
+ if (!useBlob && utils.isBlob(value)) {
135034
+ throw new core_AxiosError('Blob is not supported. Use a Buffer instead.');
135035
+ }
135036
+
135037
+ if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {
135038
+ return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);
135039
+ }
135040
+
135041
+ return value;
135042
+ }
135043
+
135044
+ /**
135045
+ * Default visitor.
135046
+ *
135047
+ * @param {*} value
135048
+ * @param {String|Number} key
135049
+ * @param {Array<String|Number>} path
135050
+ * @this {FormData}
135051
+ *
135052
+ * @returns {boolean} return true to visit the each prop of the value recursively
135053
+ */
135054
+ function defaultVisitor(value, key, path) {
135055
+ let arr = value;
135056
+
135057
+ if (value && !path && typeof value === 'object') {
135058
+ if (utils.endsWith(key, '{}')) {
135059
+ // eslint-disable-next-line no-param-reassign
135060
+ key = metaTokens ? key : key.slice(0, -2);
135061
+ // eslint-disable-next-line no-param-reassign
135062
+ value = JSON.stringify(value);
135063
+ } else if (
135064
+ (utils.isArray(value) && isFlatArray(value)) ||
135065
+ ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))
135066
+ )) {
135067
+ // eslint-disable-next-line no-param-reassign
135068
+ key = removeBrackets(key);
135069
+
135070
+ arr.forEach(function each(el, index) {
135071
+ !(utils.isUndefined(el) || el === null) && formData.append(
135072
+ // eslint-disable-next-line no-nested-ternary
135073
+ indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),
135074
+ convertValue(el)
135075
+ );
135076
+ });
135077
+ return false;
135078
+ }
135079
+ }
135080
+
135081
+ if (isVisitable(value)) {
135082
+ return true;
135083
+ }
135084
+
135085
+ formData.append(renderKey(path, key, dots), convertValue(value));
135086
+
135087
+ return false;
135088
+ }
135089
+
135090
+ const stack = [];
135091
+
135092
+ const exposedHelpers = Object.assign(predicates, {
135093
+ defaultVisitor,
135094
+ convertValue,
135095
+ isVisitable
135096
+ });
135097
+
135098
+ function build(value, path) {
135099
+ if (utils.isUndefined(value)) return;
135100
+
135101
+ if (stack.indexOf(value) !== -1) {
135102
+ throw Error('Circular reference detected in ' + path.join('.'));
135103
+ }
135104
+
135105
+ stack.push(value);
135106
+
135107
+ utils.forEach(value, function each(el, key) {
135108
+ const result = !(utils.isUndefined(el) || el === null) && visitor.call(
135109
+ formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers
135110
+ );
135111
+
135112
+ if (result === true) {
135113
+ build(el, path ? path.concat(key) : [key]);
135114
+ }
135115
+ });
135116
+
135117
+ stack.pop();
135118
+ }
135119
+
135120
+ if (!utils.isObject(obj)) {
135121
+ throw new TypeError('data must be an object');
135122
+ }
135123
+
135124
+ build(obj);
135125
+
135126
+ return formData;
135127
+ }
135128
+
135129
+ /* harmony default export */ const helpers_toFormData = (toFormData);
135130
+
135131
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/AxiosURLSearchParams.js
135132
+
135133
+
135134
+
135135
+
135136
+ /**
135137
+ * It encodes a string by replacing all characters that are not in the unreserved set with
135138
+ * their percent-encoded equivalents
135139
+ *
135140
+ * @param {string} str - The string to encode.
135141
+ *
135142
+ * @returns {string} The encoded string.
135143
+ */
135144
+ function encode(str) {
135145
+ const charMap = {
135146
+ '!': '%21',
135147
+ "'": '%27',
135148
+ '(': '%28',
135149
+ ')': '%29',
135150
+ '~': '%7E',
135151
+ '%20': '+',
135152
+ '%00': '\x00'
135153
+ };
135154
+ return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
135155
+ return charMap[match];
135156
+ });
135157
+ }
135158
+
135159
+ /**
135160
+ * It takes a params object and converts it to a FormData object
135161
+ *
135162
+ * @param {Object<string, any>} params - The parameters to be converted to a FormData object.
135163
+ * @param {Object<string, any>} options - The options object passed to the Axios constructor.
135164
+ *
135165
+ * @returns {void}
135166
+ */
135167
+ function AxiosURLSearchParams(params, options) {
135168
+ this._pairs = [];
135169
+
135170
+ params && helpers_toFormData(params, this, options);
135171
+ }
135172
+
135173
+ const AxiosURLSearchParams_prototype = AxiosURLSearchParams.prototype;
135174
+
135175
+ AxiosURLSearchParams_prototype.append = function append(name, value) {
135176
+ this._pairs.push([name, value]);
135177
+ };
135178
+
135179
+ AxiosURLSearchParams_prototype.toString = function toString(encoder) {
135180
+ const _encode = encoder ? function(value) {
135181
+ return encoder.call(this, value, encode);
135182
+ } : encode;
135183
+
135184
+ return this._pairs.map(function each(pair) {
135185
+ return _encode(pair[0]) + '=' + _encode(pair[1]);
135186
+ }, '').join('&');
135187
+ };
135188
+
135189
+ /* harmony default export */ const helpers_AxiosURLSearchParams = (AxiosURLSearchParams);
135190
+
135191
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/buildURL.js
135192
+
135193
+
135194
+
135195
+
135196
+
135197
+ /**
135198
+ * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
135199
+ * URI encoded counterparts
135200
+ *
135201
+ * @param {string} val The value to be encoded.
135202
+ *
135203
+ * @returns {string} The encoded value.
135204
+ */
135205
+ function buildURL_encode(val) {
135206
+ return encodeURIComponent(val).
135207
+ replace(/%3A/gi, ':').
135208
+ replace(/%24/g, '$').
135209
+ replace(/%2C/gi, ',').
135210
+ replace(/%20/g, '+').
135211
+ replace(/%5B/gi, '[').
135212
+ replace(/%5D/gi, ']');
135213
+ }
135214
+
135215
+ /**
135216
+ * Build a URL by appending params to the end
135217
+ *
135218
+ * @param {string} url The base of the url (e.g., http://www.google.com)
135219
+ * @param {object} [params] The params to be appended
135220
+ * @param {?object} options
135221
+ *
135222
+ * @returns {string} The formatted url
135223
+ */
135224
+ function buildURL(url, params, options) {
135225
+ /*eslint no-param-reassign:0*/
135226
+ if (!params) {
135227
+ return url;
135228
+ }
135229
+
135230
+ const _encode = options && options.encode || buildURL_encode;
135231
+
135232
+ const serializeFn = options && options.serialize;
135233
+
135234
+ let serializedParams;
135235
+
135236
+ if (serializeFn) {
135237
+ serializedParams = serializeFn(params, options);
135238
+ } else {
135239
+ serializedParams = utils.isURLSearchParams(params) ?
135240
+ params.toString() :
135241
+ new helpers_AxiosURLSearchParams(params, options).toString(_encode);
135242
+ }
135243
+
135244
+ if (serializedParams) {
135245
+ const hashmarkIndex = url.indexOf("#");
135246
+
135247
+ if (hashmarkIndex !== -1) {
135248
+ url = url.slice(0, hashmarkIndex);
135249
+ }
135250
+ url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
135251
+ }
135252
+
135253
+ return url;
135254
+ }
135255
+
135256
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/core/InterceptorManager.js
135257
+
135258
+
135259
+
135260
+
135261
+ class InterceptorManager {
135262
+ constructor() {
135263
+ this.handlers = [];
135264
+ }
135265
+
135266
+ /**
135267
+ * Add a new interceptor to the stack
135268
+ *
135269
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
135270
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
135271
+ *
135272
+ * @return {Number} An ID used to remove interceptor later
135273
+ */
135274
+ use(fulfilled, rejected, options) {
135275
+ this.handlers.push({
135276
+ fulfilled,
135277
+ rejected,
135278
+ synchronous: options ? options.synchronous : false,
135279
+ runWhen: options ? options.runWhen : null
135280
+ });
135281
+ return this.handlers.length - 1;
135282
+ }
135283
+
135284
+ /**
135285
+ * Remove an interceptor from the stack
135286
+ *
135287
+ * @param {Number} id The ID that was returned by `use`
135288
+ *
135289
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
135290
+ */
135291
+ eject(id) {
135292
+ if (this.handlers[id]) {
135293
+ this.handlers[id] = null;
135294
+ }
135295
+ }
135296
+
135297
+ /**
135298
+ * Clear all interceptors from the stack
135299
+ *
135300
+ * @returns {void}
135301
+ */
135302
+ clear() {
135303
+ if (this.handlers) {
135304
+ this.handlers = [];
135305
+ }
135306
+ }
135307
+
135308
+ /**
135309
+ * Iterate over all the registered interceptors
135310
+ *
135311
+ * This method is particularly useful for skipping over any
135312
+ * interceptors that may have become `null` calling `eject`.
135313
+ *
135314
+ * @param {Function} fn The function to call for each interceptor
135315
+ *
135316
+ * @returns {void}
135317
+ */
135318
+ forEach(fn) {
135319
+ utils.forEach(this.handlers, function forEachHandler(h) {
135320
+ if (h !== null) {
135321
+ fn(h);
135322
+ }
135323
+ });
135324
+ }
135325
+ }
135326
+
135327
+ /* harmony default export */ const core_InterceptorManager = (InterceptorManager);
135328
+
135329
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/defaults/transitional.js
135330
+
135331
+
135332
+ /* harmony default export */ const defaults_transitional = ({
135333
+ silentJSONParsing: true,
135334
+ forcedJSONParsing: true,
135335
+ clarifyTimeoutError: false
135336
+ });
135337
+
135338
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/platform/browser/classes/URLSearchParams.js
135339
+
135340
+
135341
+
135342
+ /* harmony default export */ const classes_URLSearchParams = (typeof URLSearchParams !== 'undefined' ? URLSearchParams : helpers_AxiosURLSearchParams);
135343
+
135344
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/platform/browser/classes/FormData.js
135345
+
135346
+
135347
+ /* harmony default export */ const classes_FormData = (typeof FormData !== 'undefined' ? FormData : null);
135348
+
135349
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/platform/browser/classes/Blob.js
135350
+
135351
+
135352
+ /* harmony default export */ const classes_Blob = (typeof Blob !== 'undefined' ? Blob : null);
135353
+
135354
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/platform/browser/index.js
135355
+
135356
+
135357
+
135358
+
135359
+ /* harmony default export */ const browser = ({
135360
+ isBrowser: true,
135361
+ classes: {
135362
+ URLSearchParams: classes_URLSearchParams,
135363
+ FormData: classes_FormData,
135364
+ Blob: classes_Blob
135365
+ },
135366
+ protocols: ['http', 'https', 'file', 'blob', 'url', 'data']
135367
+ });
135368
+
135369
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/platform/common/utils.js
135370
+ const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';
135371
+
135372
+ /**
135373
+ * Determine if we're running in a standard browser environment
135374
+ *
135375
+ * This allows axios to run in a web worker, and react-native.
135376
+ * Both environments support XMLHttpRequest, but not fully standard globals.
135377
+ *
135378
+ * web workers:
135379
+ * typeof window -> undefined
135380
+ * typeof document -> undefined
135381
+ *
135382
+ * react-native:
135383
+ * navigator.product -> 'ReactNative'
135384
+ * nativescript
135385
+ * navigator.product -> 'NativeScript' or 'NS'
135386
+ *
135387
+ * @returns {boolean}
135388
+ */
135389
+ const hasStandardBrowserEnv = (
135390
+ (product) => {
135391
+ return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0
135392
+ })(typeof navigator !== 'undefined' && navigator.product);
135393
+
135394
+ /**
135395
+ * Determine if we're running in a standard browser webWorker environment
135396
+ *
135397
+ * Although the `isStandardBrowserEnv` method indicates that
135398
+ * `allows axios to run in a web worker`, the WebWorker will still be
135399
+ * filtered out due to its judgment standard
135400
+ * `typeof window !== 'undefined' && typeof document !== 'undefined'`.
135401
+ * This leads to a problem when axios post `FormData` in webWorker
135402
+ */
135403
+ const hasStandardBrowserWebWorkerEnv = (() => {
135404
+ return (
135405
+ typeof WorkerGlobalScope !== 'undefined' &&
135406
+ // eslint-disable-next-line no-undef
135407
+ self instanceof WorkerGlobalScope &&
135408
+ typeof self.importScripts === 'function'
135409
+ );
135410
+ })();
135411
+
135412
+
135413
+
135414
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/platform/index.js
135415
+
135416
+
135417
+
135418
+ /* harmony default export */ const platform = ({
135419
+ ...common_utils_namespaceObject,
135420
+ ...browser
135421
+ });
135422
+
135423
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/toURLEncodedForm.js
135424
+
135425
+
135426
+
135427
+
135428
+
135429
+
135430
+ function toURLEncodedForm(data, options) {
135431
+ return helpers_toFormData(data, new platform.classes.URLSearchParams(), Object.assign({
135432
+ visitor: function(value, key, path, helpers) {
135433
+ if (platform.isNode && utils.isBuffer(value)) {
135434
+ this.append(key, value.toString('base64'));
135435
+ return false;
135436
+ }
135437
+
135438
+ return helpers.defaultVisitor.apply(this, arguments);
135439
+ }
135440
+ }, options));
135441
+ }
135442
+
135443
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/formDataToJSON.js
135444
+
135445
+
135446
+
135447
+
135448
+ /**
135449
+ * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
135450
+ *
135451
+ * @param {string} name - The name of the property to get.
135452
+ *
135453
+ * @returns An array of strings.
135454
+ */
135455
+ function parsePropPath(name) {
135456
+ // foo[x][y][z]
135457
+ // foo.x.y.z
135458
+ // foo-x-y-z
135459
+ // foo x y z
135460
+ return utils.matchAll(/\w+|\[(\w*)]/g, name).map(match => {
135461
+ return match[0] === '[]' ? '' : match[1] || match[0];
135462
+ });
135463
+ }
135464
+
135465
+ /**
135466
+ * Convert an array to an object.
135467
+ *
135468
+ * @param {Array<any>} arr - The array to convert to an object.
135469
+ *
135470
+ * @returns An object with the same keys and values as the array.
135471
+ */
135472
+ function arrayToObject(arr) {
135473
+ const obj = {};
135474
+ const keys = Object.keys(arr);
135475
+ let i;
135476
+ const len = keys.length;
135477
+ let key;
135478
+ for (i = 0; i < len; i++) {
135479
+ key = keys[i];
135480
+ obj[key] = arr[key];
135481
+ }
135482
+ return obj;
135483
+ }
135484
+
135485
+ /**
135486
+ * It takes a FormData object and returns a JavaScript object
135487
+ *
135488
+ * @param {string} formData The FormData object to convert to JSON.
135489
+ *
135490
+ * @returns {Object<string, any> | null} The converted object.
135491
+ */
135492
+ function formDataToJSON(formData) {
135493
+ function buildPath(path, value, target, index) {
135494
+ let name = path[index++];
135495
+ const isNumericKey = Number.isFinite(+name);
135496
+ const isLast = index >= path.length;
135497
+ name = !name && utils.isArray(target) ? target.length : name;
135498
+
135499
+ if (isLast) {
135500
+ if (utils.hasOwnProp(target, name)) {
135501
+ target[name] = [target[name], value];
135502
+ } else {
135503
+ target[name] = value;
135504
+ }
135505
+
135506
+ return !isNumericKey;
135507
+ }
135508
+
135509
+ if (!target[name] || !utils.isObject(target[name])) {
135510
+ target[name] = [];
135511
+ }
135512
+
135513
+ const result = buildPath(path, value, target[name], index);
135514
+
135515
+ if (result && utils.isArray(target[name])) {
135516
+ target[name] = arrayToObject(target[name]);
135517
+ }
135518
+
135519
+ return !isNumericKey;
135520
+ }
135521
+
135522
+ if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {
135523
+ const obj = {};
135524
+
135525
+ utils.forEachEntry(formData, (name, value) => {
135526
+ buildPath(parsePropPath(name), value, obj, 0);
135527
+ });
135528
+
135529
+ return obj;
135530
+ }
135531
+
135532
+ return null;
135533
+ }
135534
+
135535
+ /* harmony default export */ const helpers_formDataToJSON = (formDataToJSON);
135536
+
135537
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/defaults/index.js
135538
+
135539
+
135540
+
135541
+
135542
+
135543
+
135544
+
135545
+
135546
+
135547
+
135548
+ /**
135549
+ * It takes a string, tries to parse it, and if it fails, it returns the stringified version
135550
+ * of the input
135551
+ *
135552
+ * @param {any} rawValue - The value to be stringified.
135553
+ * @param {Function} parser - A function that parses a string into a JavaScript object.
135554
+ * @param {Function} encoder - A function that takes a value and returns a string.
135555
+ *
135556
+ * @returns {string} A stringified version of the rawValue.
135557
+ */
135558
+ function stringifySafely(rawValue, parser, encoder) {
135559
+ if (utils.isString(rawValue)) {
135560
+ try {
135561
+ (parser || JSON.parse)(rawValue);
135562
+ return utils.trim(rawValue);
135563
+ } catch (e) {
135564
+ if (e.name !== 'SyntaxError') {
135565
+ throw e;
135566
+ }
135567
+ }
135568
+ }
135569
+
135570
+ return (encoder || JSON.stringify)(rawValue);
135571
+ }
135572
+
135573
+ const defaults = {
135574
+
135575
+ transitional: defaults_transitional,
135576
+
135577
+ adapter: ['xhr', 'http'],
135578
+
135579
+ transformRequest: [function transformRequest(data, headers) {
135580
+ const contentType = headers.getContentType() || '';
135581
+ const hasJSONContentType = contentType.indexOf('application/json') > -1;
135582
+ const isObjectPayload = utils.isObject(data);
135583
+
135584
+ if (isObjectPayload && utils.isHTMLForm(data)) {
135585
+ data = new FormData(data);
135586
+ }
135587
+
135588
+ const isFormData = utils.isFormData(data);
135589
+
135590
+ if (isFormData) {
135591
+ if (!hasJSONContentType) {
135592
+ return data;
135593
+ }
135594
+ return hasJSONContentType ? JSON.stringify(helpers_formDataToJSON(data)) : data;
135595
+ }
135596
+
135597
+ if (utils.isArrayBuffer(data) ||
135598
+ utils.isBuffer(data) ||
135599
+ utils.isStream(data) ||
135600
+ utils.isFile(data) ||
135601
+ utils.isBlob(data)
135602
+ ) {
135603
+ return data;
135604
+ }
135605
+ if (utils.isArrayBufferView(data)) {
135606
+ return data.buffer;
135607
+ }
135608
+ if (utils.isURLSearchParams(data)) {
135609
+ headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
135610
+ return data.toString();
135611
+ }
135612
+
135613
+ let isFileList;
135614
+
135615
+ if (isObjectPayload) {
135616
+ if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
135617
+ return toURLEncodedForm(data, this.formSerializer).toString();
135618
+ }
135619
+
135620
+ if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
135621
+ const _FormData = this.env && this.env.FormData;
135622
+
135623
+ return helpers_toFormData(
135624
+ isFileList ? {'files[]': data} : data,
135625
+ _FormData && new _FormData(),
135626
+ this.formSerializer
135627
+ );
135628
+ }
135629
+ }
135630
+
135631
+ if (isObjectPayload || hasJSONContentType ) {
135632
+ headers.setContentType('application/json', false);
135633
+ return stringifySafely(data);
135634
+ }
135635
+
135636
+ return data;
135637
+ }],
135638
+
135639
+ transformResponse: [function transformResponse(data) {
135640
+ const transitional = this.transitional || defaults.transitional;
135641
+ const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
135642
+ const JSONRequested = this.responseType === 'json';
135643
+
135644
+ if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
135645
+ const silentJSONParsing = transitional && transitional.silentJSONParsing;
135646
+ const strictJSONParsing = !silentJSONParsing && JSONRequested;
135647
+
135648
+ try {
135649
+ return JSON.parse(data);
135650
+ } catch (e) {
135651
+ if (strictJSONParsing) {
135652
+ if (e.name === 'SyntaxError') {
135653
+ throw core_AxiosError.from(e, core_AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
135654
+ }
135655
+ throw e;
135656
+ }
135657
+ }
135658
+ }
135659
+
135660
+ return data;
135661
+ }],
135662
+
135663
+ /**
135664
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
135665
+ * timeout is not created.
135666
+ */
135667
+ timeout: 0,
135668
+
135669
+ xsrfCookieName: 'XSRF-TOKEN',
135670
+ xsrfHeaderName: 'X-XSRF-TOKEN',
135671
+
135672
+ maxContentLength: -1,
135673
+ maxBodyLength: -1,
135674
+
135675
+ env: {
135676
+ FormData: platform.classes.FormData,
135677
+ Blob: platform.classes.Blob
135678
+ },
135679
+
135680
+ validateStatus: function validateStatus(status) {
135681
+ return status >= 200 && status < 300;
135682
+ },
135683
+
135684
+ headers: {
135685
+ common: {
135686
+ 'Accept': 'application/json, text/plain, */*',
135687
+ 'Content-Type': undefined
135688
+ }
135689
+ }
135690
+ };
135691
+
135692
+ utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
135693
+ defaults.headers[method] = {};
135694
+ });
135695
+
135696
+ /* harmony default export */ const lib_defaults = (defaults);
135697
+
135698
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/parseHeaders.js
135699
+
135700
+
135701
+
135702
+
135703
+ // RawAxiosHeaders whose duplicates are ignored by node
135704
+ // c.f. https://nodejs.org/api/http.html#http_message_headers
135705
+ const ignoreDuplicateOf = utils.toObjectSet([
135706
+ 'age', 'authorization', 'content-length', 'content-type', 'etag',
135707
+ 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',
135708
+ 'last-modified', 'location', 'max-forwards', 'proxy-authorization',
135709
+ 'referer', 'retry-after', 'user-agent'
135710
+ ]);
135711
+
135712
+ /**
135713
+ * Parse headers into an object
135714
+ *
135715
+ * ```
135716
+ * Date: Wed, 27 Aug 2014 08:58:49 GMT
135717
+ * Content-Type: application/json
135718
+ * Connection: keep-alive
135719
+ * Transfer-Encoding: chunked
135720
+ * ```
135721
+ *
135722
+ * @param {String} rawHeaders Headers needing to be parsed
135723
+ *
135724
+ * @returns {Object} Headers parsed into an object
135725
+ */
135726
+ /* harmony default export */ const parseHeaders = (rawHeaders => {
135727
+ const parsed = {};
135728
+ let key;
135729
+ let val;
135730
+ let i;
135731
+
135732
+ rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
135733
+ i = line.indexOf(':');
135734
+ key = line.substring(0, i).trim().toLowerCase();
135735
+ val = line.substring(i + 1).trim();
135736
+
135737
+ if (!key || (parsed[key] && ignoreDuplicateOf[key])) {
135738
+ return;
135739
+ }
135740
+
135741
+ if (key === 'set-cookie') {
135742
+ if (parsed[key]) {
135743
+ parsed[key].push(val);
135744
+ } else {
135745
+ parsed[key] = [val];
135746
+ }
135747
+ } else {
135748
+ parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
135749
+ }
135750
+ });
135751
+
135752
+ return parsed;
135753
+ });
135754
+
135755
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/core/AxiosHeaders.js
135756
+
135757
+
135758
+
135759
+
135760
+
135761
+ const $internals = Symbol('internals');
135762
+
135763
+ function normalizeHeader(header) {
135764
+ return header && String(header).trim().toLowerCase();
135765
+ }
135766
+
135767
+ function normalizeValue(value) {
135768
+ if (value === false || value == null) {
135769
+ return value;
135770
+ }
135771
+
135772
+ return utils.isArray(value) ? value.map(normalizeValue) : String(value);
135773
+ }
135774
+
135775
+ function parseTokens(str) {
135776
+ const tokens = Object.create(null);
135777
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
135778
+ let match;
135779
+
135780
+ while ((match = tokensRE.exec(str))) {
135781
+ tokens[match[1]] = match[2];
135782
+ }
135783
+
135784
+ return tokens;
135785
+ }
135786
+
135787
+ const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
135788
+
135789
+ function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
135790
+ if (utils.isFunction(filter)) {
135791
+ return filter.call(this, value, header);
135792
+ }
135793
+
135794
+ if (isHeaderNameFilter) {
135795
+ value = header;
135796
+ }
135797
+
135798
+ if (!utils.isString(value)) return;
135799
+
135800
+ if (utils.isString(filter)) {
135801
+ return value.indexOf(filter) !== -1;
135802
+ }
135803
+
135804
+ if (utils.isRegExp(filter)) {
135805
+ return filter.test(value);
135806
+ }
135807
+ }
135808
+
135809
+ function formatHeader(header) {
135810
+ return header.trim()
135811
+ .toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
135812
+ return char.toUpperCase() + str;
135813
+ });
135814
+ }
135815
+
135816
+ function buildAccessors(obj, header) {
135817
+ const accessorName = utils.toCamelCase(' ' + header);
135818
+
135819
+ ['get', 'set', 'has'].forEach(methodName => {
135820
+ Object.defineProperty(obj, methodName + accessorName, {
135821
+ value: function(arg1, arg2, arg3) {
135822
+ return this[methodName].call(this, header, arg1, arg2, arg3);
135823
+ },
135824
+ configurable: true
135825
+ });
135826
+ });
135827
+ }
135828
+
135829
+ class AxiosHeaders {
135830
+ constructor(headers) {
135831
+ headers && this.set(headers);
135832
+ }
135833
+
135834
+ set(header, valueOrRewrite, rewrite) {
135835
+ const self = this;
135836
+
135837
+ function setHeader(_value, _header, _rewrite) {
135838
+ const lHeader = normalizeHeader(_header);
135839
+
135840
+ if (!lHeader) {
135841
+ throw new Error('header name must be a non-empty string');
135842
+ }
135843
+
135844
+ const key = utils.findKey(self, lHeader);
135845
+
135846
+ if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {
135847
+ self[key || _header] = normalizeValue(_value);
135848
+ }
135849
+ }
135850
+
135851
+ const setHeaders = (headers, _rewrite) =>
135852
+ utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
135853
+
135854
+ if (utils.isPlainObject(header) || header instanceof this.constructor) {
135855
+ setHeaders(header, valueOrRewrite)
135856
+ } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
135857
+ setHeaders(parseHeaders(header), valueOrRewrite);
135858
+ } else {
135859
+ header != null && setHeader(valueOrRewrite, header, rewrite);
135860
+ }
135861
+
135862
+ return this;
135863
+ }
135864
+
135865
+ get(header, parser) {
135866
+ header = normalizeHeader(header);
135867
+
135868
+ if (header) {
135869
+ const key = utils.findKey(this, header);
135870
+
135871
+ if (key) {
135872
+ const value = this[key];
135873
+
135874
+ if (!parser) {
135875
+ return value;
135876
+ }
135877
+
135878
+ if (parser === true) {
135879
+ return parseTokens(value);
135880
+ }
135881
+
135882
+ if (utils.isFunction(parser)) {
135883
+ return parser.call(this, value, key);
135884
+ }
135885
+
135886
+ if (utils.isRegExp(parser)) {
135887
+ return parser.exec(value);
135888
+ }
135889
+
135890
+ throw new TypeError('parser must be boolean|regexp|function');
135891
+ }
135892
+ }
135893
+ }
135894
+
135895
+ has(header, matcher) {
135896
+ header = normalizeHeader(header);
135897
+
135898
+ if (header) {
135899
+ const key = utils.findKey(this, header);
135900
+
135901
+ return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
135902
+ }
135903
+
135904
+ return false;
135905
+ }
135906
+
135907
+ delete(header, matcher) {
135908
+ const self = this;
135909
+ let deleted = false;
135910
+
135911
+ function deleteHeader(_header) {
135912
+ _header = normalizeHeader(_header);
135913
+
135914
+ if (_header) {
135915
+ const key = utils.findKey(self, _header);
135916
+
135917
+ if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
135918
+ delete self[key];
135919
+
135920
+ deleted = true;
135921
+ }
135922
+ }
135923
+ }
135924
+
135925
+ if (utils.isArray(header)) {
135926
+ header.forEach(deleteHeader);
135927
+ } else {
135928
+ deleteHeader(header);
135929
+ }
135930
+
135931
+ return deleted;
135932
+ }
135933
+
135934
+ clear(matcher) {
135935
+ const keys = Object.keys(this);
135936
+ let i = keys.length;
135937
+ let deleted = false;
135938
+
135939
+ while (i--) {
135940
+ const key = keys[i];
135941
+ if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
135942
+ delete this[key];
135943
+ deleted = true;
135944
+ }
135945
+ }
135946
+
135947
+ return deleted;
135948
+ }
135949
+
135950
+ normalize(format) {
135951
+ const self = this;
135952
+ const headers = {};
135953
+
135954
+ utils.forEach(this, (value, header) => {
135955
+ const key = utils.findKey(headers, header);
135956
+
135957
+ if (key) {
135958
+ self[key] = normalizeValue(value);
135959
+ delete self[header];
135960
+ return;
135961
+ }
135962
+
135963
+ const normalized = format ? formatHeader(header) : String(header).trim();
135964
+
135965
+ if (normalized !== header) {
135966
+ delete self[header];
135967
+ }
135968
+
135969
+ self[normalized] = normalizeValue(value);
135970
+
135971
+ headers[normalized] = true;
135972
+ });
135973
+
135974
+ return this;
135975
+ }
135976
+
135977
+ concat(...targets) {
135978
+ return this.constructor.concat(this, ...targets);
135979
+ }
135980
+
135981
+ toJSON(asStrings) {
135982
+ const obj = Object.create(null);
135983
+
135984
+ utils.forEach(this, (value, header) => {
135985
+ value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);
135986
+ });
135987
+
135988
+ return obj;
135989
+ }
135990
+
135991
+ [Symbol.iterator]() {
135992
+ return Object.entries(this.toJSON())[Symbol.iterator]();
135993
+ }
135994
+
135995
+ toString() {
135996
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\n');
135997
+ }
135998
+
135999
+ get [Symbol.toStringTag]() {
136000
+ return 'AxiosHeaders';
136001
+ }
136002
+
136003
+ static from(thing) {
136004
+ return thing instanceof this ? thing : new this(thing);
136005
+ }
136006
+
136007
+ static concat(first, ...targets) {
136008
+ const computed = new this(first);
136009
+
136010
+ targets.forEach((target) => computed.set(target));
136011
+
136012
+ return computed;
136013
+ }
136014
+
136015
+ static accessor(header) {
136016
+ const internals = this[$internals] = (this[$internals] = {
136017
+ accessors: {}
136018
+ });
136019
+
136020
+ const accessors = internals.accessors;
136021
+ const prototype = this.prototype;
136022
+
136023
+ function defineAccessor(_header) {
136024
+ const lHeader = normalizeHeader(_header);
136025
+
136026
+ if (!accessors[lHeader]) {
136027
+ buildAccessors(prototype, _header);
136028
+ accessors[lHeader] = true;
136029
+ }
136030
+ }
136031
+
136032
+ utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
136033
+
136034
+ return this;
136035
+ }
136036
+ }
136037
+
136038
+ AxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);
136039
+
136040
+ // reserved names hotfix
136041
+ utils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {
136042
+ let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
136043
+ return {
136044
+ get: () => value,
136045
+ set(headerValue) {
136046
+ this[mapped] = headerValue;
136047
+ }
136048
+ }
136049
+ });
136050
+
136051
+ utils.freezeMethods(AxiosHeaders);
136052
+
136053
+ /* harmony default export */ const core_AxiosHeaders = (AxiosHeaders);
136054
+
136055
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/core/transformData.js
136056
+
136057
+
136058
+
136059
+
136060
+
136061
+
136062
+ /**
136063
+ * Transform the data for a request or a response
136064
+ *
136065
+ * @param {Array|Function} fns A single function or Array of functions
136066
+ * @param {?Object} response The response object
136067
+ *
136068
+ * @returns {*} The resulting transformed data
136069
+ */
136070
+ function transformData(fns, response) {
136071
+ const config = this || lib_defaults;
136072
+ const context = response || config;
136073
+ const headers = core_AxiosHeaders.from(context.headers);
136074
+ let data = context.data;
136075
+
136076
+ utils.forEach(fns, function transform(fn) {
136077
+ data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
136078
+ });
136079
+
136080
+ headers.normalize();
136081
+
136082
+ return data;
136083
+ }
136084
+
136085
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/cancel/isCancel.js
136086
+
136087
+
136088
+ function isCancel(value) {
136089
+ return !!(value && value.__CANCEL__);
136090
+ }
136091
+
136092
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/cancel/CanceledError.js
136093
+
136094
+
136095
+
136096
+
136097
+
136098
+ /**
136099
+ * A `CanceledError` is an object that is thrown when an operation is canceled.
136100
+ *
136101
+ * @param {string=} message The message.
136102
+ * @param {Object=} config The config.
136103
+ * @param {Object=} request The request.
136104
+ *
136105
+ * @returns {CanceledError} The created error.
136106
+ */
136107
+ function CanceledError(message, config, request) {
136108
+ // eslint-disable-next-line no-eq-null,eqeqeq
136109
+ core_AxiosError.call(this, message == null ? 'canceled' : message, core_AxiosError.ERR_CANCELED, config, request);
136110
+ this.name = 'CanceledError';
136111
+ }
136112
+
136113
+ utils.inherits(CanceledError, core_AxiosError, {
136114
+ __CANCEL__: true
136115
+ });
136116
+
136117
+ /* harmony default export */ const cancel_CanceledError = (CanceledError);
136118
+
136119
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/core/settle.js
136120
+
136121
+
136122
+
136123
+
136124
+ /**
136125
+ * Resolve or reject a Promise based on response status.
136126
+ *
136127
+ * @param {Function} resolve A function that resolves the promise.
136128
+ * @param {Function} reject A function that rejects the promise.
136129
+ * @param {object} response The response.
136130
+ *
136131
+ * @returns {object} The response.
136132
+ */
136133
+ function settle(resolve, reject, response) {
136134
+ const validateStatus = response.config.validateStatus;
136135
+ if (!response.status || !validateStatus || validateStatus(response.status)) {
136136
+ resolve(response);
136137
+ } else {
136138
+ reject(new core_AxiosError(
136139
+ 'Request failed with status code ' + response.status,
136140
+ [core_AxiosError.ERR_BAD_REQUEST, core_AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
136141
+ response.config,
136142
+ response.request,
136143
+ response
136144
+ ));
136145
+ }
136146
+ }
136147
+
136148
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/cookies.js
136149
+
136150
+
136151
+
136152
+ /* harmony default export */ const cookies = (platform.hasStandardBrowserEnv ?
136153
+
136154
+ // Standard browser envs support document.cookie
136155
+ {
136156
+ write(name, value, expires, path, domain, secure) {
136157
+ const cookie = [name + '=' + encodeURIComponent(value)];
136158
+
136159
+ utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());
136160
+
136161
+ utils.isString(path) && cookie.push('path=' + path);
136162
+
136163
+ utils.isString(domain) && cookie.push('domain=' + domain);
136164
+
136165
+ secure === true && cookie.push('secure');
136166
+
136167
+ document.cookie = cookie.join('; ');
136168
+ },
136169
+
136170
+ read(name) {
136171
+ const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)'));
136172
+ return (match ? decodeURIComponent(match[3]) : null);
136173
+ },
136174
+
136175
+ remove(name) {
136176
+ this.write(name, '', Date.now() - 86400000);
136177
+ }
136178
+ }
136179
+
136180
+ :
136181
+
136182
+ // Non-standard browser env (web workers, react-native) lack needed support.
136183
+ {
136184
+ write() {},
136185
+ read() {
136186
+ return null;
136187
+ },
136188
+ remove() {}
136189
+ });
136190
+
136191
+
136192
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/isAbsoluteURL.js
136193
+
136194
+
136195
+ /**
136196
+ * Determines whether the specified URL is absolute
136197
+ *
136198
+ * @param {string} url The URL to test
136199
+ *
136200
+ * @returns {boolean} True if the specified URL is absolute, otherwise false
136201
+ */
136202
+ function isAbsoluteURL(url) {
136203
+ // A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
136204
+ // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
136205
+ // by any combination of letters, digits, plus, period, or hyphen.
136206
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
136207
+ }
136208
+
136209
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/combineURLs.js
136210
+
136211
+
136212
+ /**
136213
+ * Creates a new URL by combining the specified URLs
136214
+ *
136215
+ * @param {string} baseURL The base URL
136216
+ * @param {string} relativeURL The relative URL
136217
+ *
136218
+ * @returns {string} The combined URL
136219
+ */
136220
+ function combineURLs(baseURL, relativeURL) {
136221
+ return relativeURL
136222
+ ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '')
136223
+ : baseURL;
136224
+ }
136225
+
136226
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/core/buildFullPath.js
136227
+
136228
+
136229
+
136230
+
136231
+
136232
+ /**
136233
+ * Creates a new URL by combining the baseURL with the requestedURL,
136234
+ * only when the requestedURL is not already an absolute URL.
136235
+ * If the requestURL is absolute, this function returns the requestedURL untouched.
136236
+ *
136237
+ * @param {string} baseURL The base URL
136238
+ * @param {string} requestedURL Absolute or relative URL to combine
136239
+ *
136240
+ * @returns {string} The combined full path
136241
+ */
136242
+ function buildFullPath(baseURL, requestedURL) {
136243
+ if (baseURL && !isAbsoluteURL(requestedURL)) {
136244
+ return combineURLs(baseURL, requestedURL);
136245
+ }
136246
+ return requestedURL;
136247
+ }
136248
+
136249
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/isURLSameOrigin.js
136250
+
136251
+
136252
+
136253
+
136254
+
136255
+ /* harmony default export */ const isURLSameOrigin = (platform.hasStandardBrowserEnv ?
136256
+
136257
+ // Standard browser envs have full support of the APIs needed to test
136258
+ // whether the request URL is of the same origin as current location.
136259
+ (function standardBrowserEnv() {
136260
+ const msie = /(msie|trident)/i.test(navigator.userAgent);
136261
+ const urlParsingNode = document.createElement('a');
136262
+ let originURL;
136263
+
136264
+ /**
136265
+ * Parse a URL to discover its components
136266
+ *
136267
+ * @param {String} url The URL to be parsed
136268
+ * @returns {Object}
136269
+ */
136270
+ function resolveURL(url) {
136271
+ let href = url;
136272
+
136273
+ if (msie) {
136274
+ // IE needs attribute set twice to normalize properties
136275
+ urlParsingNode.setAttribute('href', href);
136276
+ href = urlParsingNode.href;
136277
+ }
136278
+
136279
+ urlParsingNode.setAttribute('href', href);
136280
+
136281
+ // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils
136282
+ return {
136283
+ href: urlParsingNode.href,
136284
+ protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',
136285
+ host: urlParsingNode.host,
136286
+ search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '',
136287
+ hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',
136288
+ hostname: urlParsingNode.hostname,
136289
+ port: urlParsingNode.port,
136290
+ pathname: (urlParsingNode.pathname.charAt(0) === '/') ?
136291
+ urlParsingNode.pathname :
136292
+ '/' + urlParsingNode.pathname
136293
+ };
136294
+ }
136295
+
136296
+ originURL = resolveURL(window.location.href);
136297
+
136298
+ /**
136299
+ * Determine if a URL shares the same origin as the current location
136300
+ *
136301
+ * @param {String} requestURL The URL to test
136302
+ * @returns {boolean} True if URL shares the same origin, otherwise false
136303
+ */
136304
+ return function isURLSameOrigin(requestURL) {
136305
+ const parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;
136306
+ return (parsed.protocol === originURL.protocol &&
136307
+ parsed.host === originURL.host);
136308
+ };
136309
+ })() :
136310
+
136311
+ // Non standard browser envs (web workers, react-native) lack needed support.
136312
+ (function nonStandardBrowserEnv() {
136313
+ return function isURLSameOrigin() {
136314
+ return true;
136315
+ };
136316
+ })());
136317
+
136318
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/parseProtocol.js
136319
+
136320
+
136321
+ function parseProtocol(url) {
136322
+ const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
136323
+ return match && match[1] || '';
136324
+ }
136325
+
136326
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/speedometer.js
136327
+
136328
+
136329
+ /**
136330
+ * Calculate data maxRate
136331
+ * @param {Number} [samplesCount= 10]
136332
+ * @param {Number} [min= 1000]
136333
+ * @returns {Function}
136334
+ */
136335
+ function speedometer(samplesCount, min) {
136336
+ samplesCount = samplesCount || 10;
136337
+ const bytes = new Array(samplesCount);
136338
+ const timestamps = new Array(samplesCount);
136339
+ let head = 0;
136340
+ let tail = 0;
136341
+ let firstSampleTS;
136342
+
136343
+ min = min !== undefined ? min : 1000;
136344
+
136345
+ return function push(chunkLength) {
136346
+ const now = Date.now();
136347
+
136348
+ const startedAt = timestamps[tail];
136349
+
136350
+ if (!firstSampleTS) {
136351
+ firstSampleTS = now;
136352
+ }
136353
+
136354
+ bytes[head] = chunkLength;
136355
+ timestamps[head] = now;
136356
+
136357
+ let i = tail;
136358
+ let bytesCount = 0;
136359
+
136360
+ while (i !== head) {
136361
+ bytesCount += bytes[i++];
136362
+ i = i % samplesCount;
136363
+ }
136364
+
136365
+ head = (head + 1) % samplesCount;
136366
+
136367
+ if (head === tail) {
136368
+ tail = (tail + 1) % samplesCount;
136369
+ }
136370
+
136371
+ if (now - firstSampleTS < min) {
136372
+ return;
136373
+ }
136374
+
136375
+ const passed = startedAt && now - startedAt;
136376
+
136377
+ return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
136378
+ };
136379
+ }
136380
+
136381
+ /* harmony default export */ const helpers_speedometer = (speedometer);
136382
+
136383
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/adapters/xhr.js
136384
+
136385
+
136386
+
136387
+
136388
+
136389
+
136390
+
136391
+
136392
+
136393
+
136394
+
136395
+
136396
+
136397
+
136398
+
136399
+
136400
+ function progressEventReducer(listener, isDownloadStream) {
136401
+ let bytesNotified = 0;
136402
+ const _speedometer = helpers_speedometer(50, 250);
136403
+
136404
+ return e => {
136405
+ const loaded = e.loaded;
136406
+ const total = e.lengthComputable ? e.total : undefined;
136407
+ const progressBytes = loaded - bytesNotified;
136408
+ const rate = _speedometer(progressBytes);
136409
+ const inRange = loaded <= total;
136410
+
136411
+ bytesNotified = loaded;
136412
+
136413
+ const data = {
136414
+ loaded,
136415
+ total,
136416
+ progress: total ? (loaded / total) : undefined,
136417
+ bytes: progressBytes,
136418
+ rate: rate ? rate : undefined,
136419
+ estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
136420
+ event: e
136421
+ };
136422
+
136423
+ data[isDownloadStream ? 'download' : 'upload'] = true;
136424
+
136425
+ listener(data);
136426
+ };
136427
+ }
136428
+
136429
+ const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
136430
+
136431
+ /* harmony default export */ const xhr = (isXHRAdapterSupported && function (config) {
136432
+ return new Promise(function dispatchXhrRequest(resolve, reject) {
136433
+ let requestData = config.data;
136434
+ const requestHeaders = core_AxiosHeaders.from(config.headers).normalize();
136435
+ let {responseType, withXSRFToken} = config;
136436
+ let onCanceled;
136437
+ function done() {
136438
+ if (config.cancelToken) {
136439
+ config.cancelToken.unsubscribe(onCanceled);
136440
+ }
136441
+
136442
+ if (config.signal) {
136443
+ config.signal.removeEventListener('abort', onCanceled);
136444
+ }
136445
+ }
136446
+
136447
+ let contentType;
136448
+
136449
+ if (utils.isFormData(requestData)) {
136450
+ if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
136451
+ requestHeaders.setContentType(false); // Let the browser set it
136452
+ } else if ((contentType = requestHeaders.getContentType()) !== false) {
136453
+ // fix semicolon duplication issue for ReactNative FormData implementation
136454
+ const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];
136455
+ requestHeaders.setContentType([type || 'multipart/form-data', ...tokens].join('; '));
136456
+ }
136457
+ }
136458
+
136459
+ let request = new XMLHttpRequest();
136460
+
136461
+ // HTTP basic authentication
136462
+ if (config.auth) {
136463
+ const username = config.auth.username || '';
136464
+ const password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';
136465
+ requestHeaders.set('Authorization', 'Basic ' + btoa(username + ':' + password));
136466
+ }
136467
+
136468
+ const fullPath = buildFullPath(config.baseURL, config.url);
136469
+
136470
+ request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);
136471
+
136472
+ // Set the request timeout in MS
136473
+ request.timeout = config.timeout;
136474
+
136475
+ function onloadend() {
136476
+ if (!request) {
136477
+ return;
136478
+ }
136479
+ // Prepare the response
136480
+ const responseHeaders = core_AxiosHeaders.from(
136481
+ 'getAllResponseHeaders' in request && request.getAllResponseHeaders()
136482
+ );
136483
+ const responseData = !responseType || responseType === 'text' || responseType === 'json' ?
136484
+ request.responseText : request.response;
136485
+ const response = {
136486
+ data: responseData,
136487
+ status: request.status,
136488
+ statusText: request.statusText,
136489
+ headers: responseHeaders,
136490
+ config,
136491
+ request
136492
+ };
136493
+
136494
+ settle(function _resolve(value) {
136495
+ resolve(value);
136496
+ done();
136497
+ }, function _reject(err) {
136498
+ reject(err);
136499
+ done();
136500
+ }, response);
136501
+
136502
+ // Clean up request
136503
+ request = null;
136504
+ }
136505
+
136506
+ if ('onloadend' in request) {
136507
+ // Use onloadend if available
136508
+ request.onloadend = onloadend;
136509
+ } else {
136510
+ // Listen for ready state to emulate onloadend
136511
+ request.onreadystatechange = function handleLoad() {
136512
+ if (!request || request.readyState !== 4) {
136513
+ return;
136514
+ }
136515
+
136516
+ // The request errored out and we didn't get a response, this will be
136517
+ // handled by onerror instead
136518
+ // With one exception: request that using file: protocol, most browsers
136519
+ // will return status as 0 even though it's a successful request
136520
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
136521
+ return;
136522
+ }
136523
+ // readystate handler is calling before onerror or ontimeout handlers,
136524
+ // so we should call onloadend on the next 'tick'
136525
+ setTimeout(onloadend);
136526
+ };
136527
+ }
136528
+
136529
+ // Handle browser request cancellation (as opposed to a manual cancellation)
136530
+ request.onabort = function handleAbort() {
136531
+ if (!request) {
136532
+ return;
136533
+ }
136534
+
136535
+ reject(new core_AxiosError('Request aborted', core_AxiosError.ECONNABORTED, config, request));
136536
+
136537
+ // Clean up request
136538
+ request = null;
136539
+ };
136540
+
136541
+ // Handle low level network errors
136542
+ request.onerror = function handleError() {
136543
+ // Real errors are hidden from us by the browser
136544
+ // onerror should only fire if it's a network error
136545
+ reject(new core_AxiosError('Network Error', core_AxiosError.ERR_NETWORK, config, request));
136546
+
136547
+ // Clean up request
136548
+ request = null;
136549
+ };
136550
+
136551
+ // Handle timeout
136552
+ request.ontimeout = function handleTimeout() {
136553
+ let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
136554
+ const transitional = config.transitional || defaults_transitional;
136555
+ if (config.timeoutErrorMessage) {
136556
+ timeoutErrorMessage = config.timeoutErrorMessage;
136557
+ }
136558
+ reject(new core_AxiosError(
136559
+ timeoutErrorMessage,
136560
+ transitional.clarifyTimeoutError ? core_AxiosError.ETIMEDOUT : core_AxiosError.ECONNABORTED,
136561
+ config,
136562
+ request));
136563
+
136564
+ // Clean up request
136565
+ request = null;
136566
+ };
136567
+
136568
+ // Add xsrf header
136569
+ // This is only done if running in a standard browser environment.
136570
+ // Specifically not if we're in a web worker, or react-native.
136571
+ if(platform.hasStandardBrowserEnv) {
136572
+ withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(config));
136573
+
136574
+ if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(fullPath))) {
136575
+ // Add xsrf header
136576
+ const xsrfValue = config.xsrfHeaderName && config.xsrfCookieName && cookies.read(config.xsrfCookieName);
136577
+
136578
+ if (xsrfValue) {
136579
+ requestHeaders.set(config.xsrfHeaderName, xsrfValue);
136580
+ }
136581
+ }
136582
+ }
136583
+
136584
+ // Remove Content-Type if data is undefined
136585
+ requestData === undefined && requestHeaders.setContentType(null);
136586
+
136587
+ // Add headers to the request
136588
+ if ('setRequestHeader' in request) {
136589
+ utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
136590
+ request.setRequestHeader(key, val);
136591
+ });
136592
+ }
136593
+
136594
+ // Add withCredentials to request if needed
136595
+ if (!utils.isUndefined(config.withCredentials)) {
136596
+ request.withCredentials = !!config.withCredentials;
136597
+ }
136598
+
136599
+ // Add responseType to request if needed
136600
+ if (responseType && responseType !== 'json') {
136601
+ request.responseType = config.responseType;
136602
+ }
136603
+
136604
+ // Handle progress if needed
136605
+ if (typeof config.onDownloadProgress === 'function') {
136606
+ request.addEventListener('progress', progressEventReducer(config.onDownloadProgress, true));
136607
+ }
136608
+
136609
+ // Not all browsers support upload events
136610
+ if (typeof config.onUploadProgress === 'function' && request.upload) {
136611
+ request.upload.addEventListener('progress', progressEventReducer(config.onUploadProgress));
136612
+ }
136613
+
136614
+ if (config.cancelToken || config.signal) {
136615
+ // Handle cancellation
136616
+ // eslint-disable-next-line func-names
136617
+ onCanceled = cancel => {
136618
+ if (!request) {
136619
+ return;
136620
+ }
136621
+ reject(!cancel || cancel.type ? new cancel_CanceledError(null, config, request) : cancel);
136622
+ request.abort();
136623
+ request = null;
136624
+ };
136625
+
136626
+ config.cancelToken && config.cancelToken.subscribe(onCanceled);
136627
+ if (config.signal) {
136628
+ config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);
136629
+ }
136630
+ }
136631
+
136632
+ const protocol = parseProtocol(fullPath);
136633
+
136634
+ if (protocol && platform.protocols.indexOf(protocol) === -1) {
136635
+ reject(new core_AxiosError('Unsupported protocol ' + protocol + ':', core_AxiosError.ERR_BAD_REQUEST, config));
136636
+ return;
136637
+ }
136638
+
136639
+
136640
+ // Send the request
136641
+ request.send(requestData || null);
136642
+ });
136643
+ });
136644
+
136645
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/adapters/adapters.js
136646
+
136647
+
136648
+
136649
+
136650
+
136651
+ const knownAdapters = {
136652
+ http: helpers_null,
136653
+ xhr: xhr
136654
+ }
136655
+
136656
+ utils.forEach(knownAdapters, (fn, value) => {
136657
+ if (fn) {
136658
+ try {
136659
+ Object.defineProperty(fn, 'name', {value});
136660
+ } catch (e) {
136661
+ // eslint-disable-next-line no-empty
136662
+ }
136663
+ Object.defineProperty(fn, 'adapterName', {value});
136664
+ }
136665
+ });
136666
+
136667
+ const renderReason = (reason) => `- ${reason}`;
136668
+
136669
+ const isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;
136670
+
136671
+ /* harmony default export */ const adapters = ({
136672
+ getAdapter: (adapters) => {
136673
+ adapters = utils.isArray(adapters) ? adapters : [adapters];
136674
+
136675
+ const {length} = adapters;
136676
+ let nameOrAdapter;
136677
+ let adapter;
136678
+
136679
+ const rejectedReasons = {};
136680
+
136681
+ for (let i = 0; i < length; i++) {
136682
+ nameOrAdapter = adapters[i];
136683
+ let id;
136684
+
136685
+ adapter = nameOrAdapter;
136686
+
136687
+ if (!isResolvedHandle(nameOrAdapter)) {
136688
+ adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
136689
+
136690
+ if (adapter === undefined) {
136691
+ throw new core_AxiosError(`Unknown adapter '${id}'`);
136692
+ }
136693
+ }
136694
+
136695
+ if (adapter) {
136696
+ break;
136697
+ }
136698
+
136699
+ rejectedReasons[id || '#' + i] = adapter;
136700
+ }
136701
+
136702
+ if (!adapter) {
136703
+
136704
+ const reasons = Object.entries(rejectedReasons)
136705
+ .map(([id, state]) => `adapter ${id} ` +
136706
+ (state === false ? 'is not supported by the environment' : 'is not available in the build')
136707
+ );
136708
+
136709
+ let s = length ?
136710
+ (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
136711
+ 'as no adapter specified';
136712
+
136713
+ throw new core_AxiosError(
136714
+ `There is no suitable adapter to dispatch the request ` + s,
136715
+ 'ERR_NOT_SUPPORT'
136716
+ );
136717
+ }
136718
+
136719
+ return adapter;
136720
+ },
136721
+ adapters: knownAdapters
136722
+ });
136723
+
136724
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/core/dispatchRequest.js
136725
+
136726
+
136727
+
136728
+
136729
+
136730
+
136731
+
136732
+
136733
+
136734
+ /**
136735
+ * Throws a `CanceledError` if cancellation has been requested.
136736
+ *
136737
+ * @param {Object} config The config that is to be used for the request
136738
+ *
136739
+ * @returns {void}
136740
+ */
136741
+ function throwIfCancellationRequested(config) {
136742
+ if (config.cancelToken) {
136743
+ config.cancelToken.throwIfRequested();
136744
+ }
136745
+
136746
+ if (config.signal && config.signal.aborted) {
136747
+ throw new cancel_CanceledError(null, config);
136748
+ }
136749
+ }
136750
+
136751
+ /**
136752
+ * Dispatch a request to the server using the configured adapter.
136753
+ *
136754
+ * @param {object} config The config that is to be used for the request
136755
+ *
136756
+ * @returns {Promise} The Promise to be fulfilled
136757
+ */
136758
+ function dispatchRequest(config) {
136759
+ throwIfCancellationRequested(config);
136760
+
136761
+ config.headers = core_AxiosHeaders.from(config.headers);
136762
+
136763
+ // Transform request data
136764
+ config.data = transformData.call(
136765
+ config,
136766
+ config.transformRequest
136767
+ );
136768
+
136769
+ if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {
136770
+ config.headers.setContentType('application/x-www-form-urlencoded', false);
136771
+ }
136772
+
136773
+ const adapter = adapters.getAdapter(config.adapter || lib_defaults.adapter);
136774
+
136775
+ return adapter(config).then(function onAdapterResolution(response) {
136776
+ throwIfCancellationRequested(config);
136777
+
136778
+ // Transform response data
136779
+ response.data = transformData.call(
136780
+ config,
136781
+ config.transformResponse,
136782
+ response
136783
+ );
136784
+
136785
+ response.headers = core_AxiosHeaders.from(response.headers);
136786
+
136787
+ return response;
136788
+ }, function onAdapterRejection(reason) {
136789
+ if (!isCancel(reason)) {
136790
+ throwIfCancellationRequested(config);
136791
+
136792
+ // Transform response data
136793
+ if (reason && reason.response) {
136794
+ reason.response.data = transformData.call(
136795
+ config,
136796
+ config.transformResponse,
136797
+ reason.response
136798
+ );
136799
+ reason.response.headers = core_AxiosHeaders.from(reason.response.headers);
136800
+ }
136801
+ }
136802
+
136803
+ return Promise.reject(reason);
136804
+ });
136805
+ }
136806
+
136807
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/core/mergeConfig.js
136808
+
136809
+
136810
+
136811
+
136812
+
136813
+ const headersToObject = (thing) => thing instanceof core_AxiosHeaders ? thing.toJSON() : thing;
136814
+
136815
+ /**
136816
+ * Config-specific merge-function which creates a new config-object
136817
+ * by merging two configuration objects together.
136818
+ *
136819
+ * @param {Object} config1
136820
+ * @param {Object} config2
136821
+ *
136822
+ * @returns {Object} New object resulting from merging config2 to config1
136823
+ */
136824
+ function mergeConfig(config1, config2) {
136825
+ // eslint-disable-next-line no-param-reassign
136826
+ config2 = config2 || {};
136827
+ const config = {};
136828
+
136829
+ function getMergedValue(target, source, caseless) {
136830
+ if (utils.isPlainObject(target) && utils.isPlainObject(source)) {
136831
+ return utils.merge.call({caseless}, target, source);
136832
+ } else if (utils.isPlainObject(source)) {
136833
+ return utils.merge({}, source);
136834
+ } else if (utils.isArray(source)) {
136835
+ return source.slice();
136836
+ }
136837
+ return source;
136838
+ }
136839
+
136840
+ // eslint-disable-next-line consistent-return
136841
+ function mergeDeepProperties(a, b, caseless) {
136842
+ if (!utils.isUndefined(b)) {
136843
+ return getMergedValue(a, b, caseless);
136844
+ } else if (!utils.isUndefined(a)) {
136845
+ return getMergedValue(undefined, a, caseless);
136846
+ }
136847
+ }
136848
+
136849
+ // eslint-disable-next-line consistent-return
136850
+ function valueFromConfig2(a, b) {
136851
+ if (!utils.isUndefined(b)) {
136852
+ return getMergedValue(undefined, b);
136853
+ }
136854
+ }
136855
+
136856
+ // eslint-disable-next-line consistent-return
136857
+ function defaultToConfig2(a, b) {
136858
+ if (!utils.isUndefined(b)) {
136859
+ return getMergedValue(undefined, b);
136860
+ } else if (!utils.isUndefined(a)) {
136861
+ return getMergedValue(undefined, a);
136862
+ }
136863
+ }
136864
+
136865
+ // eslint-disable-next-line consistent-return
136866
+ function mergeDirectKeys(a, b, prop) {
136867
+ if (prop in config2) {
136868
+ return getMergedValue(a, b);
136869
+ } else if (prop in config1) {
136870
+ return getMergedValue(undefined, a);
136871
+ }
136872
+ }
136873
+
136874
+ const mergeMap = {
136875
+ url: valueFromConfig2,
136876
+ method: valueFromConfig2,
136877
+ data: valueFromConfig2,
136878
+ baseURL: defaultToConfig2,
136879
+ transformRequest: defaultToConfig2,
136880
+ transformResponse: defaultToConfig2,
136881
+ paramsSerializer: defaultToConfig2,
136882
+ timeout: defaultToConfig2,
136883
+ timeoutMessage: defaultToConfig2,
136884
+ withCredentials: defaultToConfig2,
136885
+ withXSRFToken: defaultToConfig2,
136886
+ adapter: defaultToConfig2,
136887
+ responseType: defaultToConfig2,
136888
+ xsrfCookieName: defaultToConfig2,
136889
+ xsrfHeaderName: defaultToConfig2,
136890
+ onUploadProgress: defaultToConfig2,
136891
+ onDownloadProgress: defaultToConfig2,
136892
+ decompress: defaultToConfig2,
136893
+ maxContentLength: defaultToConfig2,
136894
+ maxBodyLength: defaultToConfig2,
136895
+ beforeRedirect: defaultToConfig2,
136896
+ transport: defaultToConfig2,
136897
+ httpAgent: defaultToConfig2,
136898
+ httpsAgent: defaultToConfig2,
136899
+ cancelToken: defaultToConfig2,
136900
+ socketPath: defaultToConfig2,
136901
+ responseEncoding: defaultToConfig2,
136902
+ validateStatus: mergeDirectKeys,
136903
+ headers: (a, b) => mergeDeepProperties(headersToObject(a), headersToObject(b), true)
136904
+ };
136905
+
136906
+ utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {
136907
+ const merge = mergeMap[prop] || mergeDeepProperties;
136908
+ const configValue = merge(config1[prop], config2[prop], prop);
136909
+ (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
136910
+ });
136911
+
136912
+ return config;
136913
+ }
136914
+
136915
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/env/data.js
136916
+ const VERSION = "1.6.2";
136917
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/validator.js
136918
+
136919
+
136920
+
136921
+
136922
+
136923
+ const validators = {};
136924
+
136925
+ // eslint-disable-next-line func-names
136926
+ ['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {
136927
+ validators[type] = function validator(thing) {
136928
+ return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
136929
+ };
136930
+ });
136931
+
136932
+ const deprecatedWarnings = {};
136933
+
136934
+ /**
136935
+ * Transitional option validator
136936
+ *
136937
+ * @param {function|boolean?} validator - set to false if the transitional option has been removed
136938
+ * @param {string?} version - deprecated version / removed since version
136939
+ * @param {string?} message - some message with additional info
136940
+ *
136941
+ * @returns {function}
136942
+ */
136943
+ validators.transitional = function transitional(validator, version, message) {
136944
+ function formatMessage(opt, desc) {
136945
+ return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : '');
136946
+ }
136947
+
136948
+ // eslint-disable-next-line func-names
136949
+ return (value, opt, opts) => {
136950
+ if (validator === false) {
136951
+ throw new core_AxiosError(
136952
+ formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),
136953
+ core_AxiosError.ERR_DEPRECATED
136954
+ );
136955
+ }
136956
+
136957
+ if (version && !deprecatedWarnings[opt]) {
136958
+ deprecatedWarnings[opt] = true;
136959
+ // eslint-disable-next-line no-console
136960
+ console.warn(
136961
+ formatMessage(
136962
+ opt,
136963
+ ' has been deprecated since v' + version + ' and will be removed in the near future'
136964
+ )
136965
+ );
136966
+ }
136967
+
136968
+ return validator ? validator(value, opt, opts) : true;
136969
+ };
136970
+ };
136971
+
136972
+ /**
136973
+ * Assert object's properties type
136974
+ *
136975
+ * @param {object} options
136976
+ * @param {object} schema
136977
+ * @param {boolean?} allowUnknown
136978
+ *
136979
+ * @returns {object}
136980
+ */
136981
+
136982
+ function assertOptions(options, schema, allowUnknown) {
136983
+ if (typeof options !== 'object') {
136984
+ throw new core_AxiosError('options must be an object', core_AxiosError.ERR_BAD_OPTION_VALUE);
136985
+ }
136986
+ const keys = Object.keys(options);
136987
+ let i = keys.length;
136988
+ while (i-- > 0) {
136989
+ const opt = keys[i];
136990
+ const validator = schema[opt];
136991
+ if (validator) {
136992
+ const value = options[opt];
136993
+ const result = value === undefined || validator(value, opt, options);
136994
+ if (result !== true) {
136995
+ throw new core_AxiosError('option ' + opt + ' must be ' + result, core_AxiosError.ERR_BAD_OPTION_VALUE);
136996
+ }
136997
+ continue;
136998
+ }
136999
+ if (allowUnknown !== true) {
137000
+ throw new core_AxiosError('Unknown option ' + opt, core_AxiosError.ERR_BAD_OPTION);
137001
+ }
137002
+ }
137003
+ }
137004
+
137005
+ /* harmony default export */ const validator = ({
137006
+ assertOptions,
137007
+ validators
137008
+ });
137009
+
137010
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/core/Axios.js
137011
+
137012
+
137013
+
137014
+
137015
+
137016
+
137017
+
137018
+
137019
+
137020
+
137021
+
137022
+ const Axios_validators = validator.validators;
137023
+
137024
+ /**
137025
+ * Create a new instance of Axios
137026
+ *
137027
+ * @param {Object} instanceConfig The default config for the instance
137028
+ *
137029
+ * @return {Axios} A new instance of Axios
137030
+ */
137031
+ class Axios {
137032
+ constructor(instanceConfig) {
137033
+ this.defaults = instanceConfig;
137034
+ this.interceptors = {
137035
+ request: new core_InterceptorManager(),
137036
+ response: new core_InterceptorManager()
137037
+ };
137038
+ }
137039
+
137040
+ /**
137041
+ * Dispatch a request
137042
+ *
137043
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
137044
+ * @param {?Object} config
137045
+ *
137046
+ * @returns {Promise} The Promise to be fulfilled
137047
+ */
137048
+ request(configOrUrl, config) {
137049
+ /*eslint no-param-reassign:0*/
137050
+ // Allow for axios('example/url'[, config]) a la fetch API
137051
+ if (typeof configOrUrl === 'string') {
137052
+ config = config || {};
137053
+ config.url = configOrUrl;
137054
+ } else {
137055
+ config = configOrUrl || {};
137056
+ }
137057
+
137058
+ config = mergeConfig(this.defaults, config);
137059
+
137060
+ const {transitional, paramsSerializer, headers} = config;
137061
+
137062
+ if (transitional !== undefined) {
137063
+ validator.assertOptions(transitional, {
137064
+ silentJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
137065
+ forcedJSONParsing: Axios_validators.transitional(Axios_validators.boolean),
137066
+ clarifyTimeoutError: Axios_validators.transitional(Axios_validators.boolean)
137067
+ }, false);
137068
+ }
137069
+
137070
+ if (paramsSerializer != null) {
137071
+ if (utils.isFunction(paramsSerializer)) {
137072
+ config.paramsSerializer = {
137073
+ serialize: paramsSerializer
137074
+ }
137075
+ } else {
137076
+ validator.assertOptions(paramsSerializer, {
137077
+ encode: Axios_validators.function,
137078
+ serialize: Axios_validators.function
137079
+ }, true);
137080
+ }
137081
+ }
137082
+
137083
+ // Set config.method
137084
+ config.method = (config.method || this.defaults.method || 'get').toLowerCase();
137085
+
137086
+ // Flatten headers
137087
+ let contextHeaders = headers && utils.merge(
137088
+ headers.common,
137089
+ headers[config.method]
137090
+ );
137091
+
137092
+ headers && utils.forEach(
137093
+ ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],
137094
+ (method) => {
137095
+ delete headers[method];
137096
+ }
137097
+ );
137098
+
137099
+ config.headers = core_AxiosHeaders.concat(contextHeaders, headers);
137100
+
137101
+ // filter out skipped interceptors
137102
+ const requestInterceptorChain = [];
137103
+ let synchronousRequestInterceptors = true;
137104
+ this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
137105
+ if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
137106
+ return;
137107
+ }
137108
+
137109
+ synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
137110
+
137111
+ requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
137112
+ });
137113
+
137114
+ const responseInterceptorChain = [];
137115
+ this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
137116
+ responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
137117
+ });
137118
+
137119
+ let promise;
137120
+ let i = 0;
137121
+ let len;
137122
+
137123
+ if (!synchronousRequestInterceptors) {
137124
+ const chain = [dispatchRequest.bind(this), undefined];
137125
+ chain.unshift.apply(chain, requestInterceptorChain);
137126
+ chain.push.apply(chain, responseInterceptorChain);
137127
+ len = chain.length;
137128
+
137129
+ promise = Promise.resolve(config);
137130
+
137131
+ while (i < len) {
137132
+ promise = promise.then(chain[i++], chain[i++]);
137133
+ }
137134
+
137135
+ return promise;
137136
+ }
137137
+
137138
+ len = requestInterceptorChain.length;
137139
+
137140
+ let newConfig = config;
137141
+
137142
+ i = 0;
137143
+
137144
+ while (i < len) {
137145
+ const onFulfilled = requestInterceptorChain[i++];
137146
+ const onRejected = requestInterceptorChain[i++];
137147
+ try {
137148
+ newConfig = onFulfilled(newConfig);
137149
+ } catch (error) {
137150
+ onRejected.call(this, error);
137151
+ break;
137152
+ }
137153
+ }
137154
+
137155
+ try {
137156
+ promise = dispatchRequest.call(this, newConfig);
137157
+ } catch (error) {
137158
+ return Promise.reject(error);
137159
+ }
137160
+
137161
+ i = 0;
137162
+ len = responseInterceptorChain.length;
137163
+
137164
+ while (i < len) {
137165
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
137166
+ }
137167
+
137168
+ return promise;
137169
+ }
137170
+
137171
+ getUri(config) {
137172
+ config = mergeConfig(this.defaults, config);
137173
+ const fullPath = buildFullPath(config.baseURL, config.url);
137174
+ return buildURL(fullPath, config.params, config.paramsSerializer);
137175
+ }
137176
+ }
137177
+
137178
+ // Provide aliases for supported request methods
137179
+ utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {
137180
+ /*eslint func-names:0*/
137181
+ Axios.prototype[method] = function(url, config) {
137182
+ return this.request(mergeConfig(config || {}, {
137183
+ method,
137184
+ url,
137185
+ data: (config || {}).data
137186
+ }));
137187
+ };
137188
+ });
137189
+
137190
+ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
137191
+ /*eslint func-names:0*/
137192
+
137193
+ function generateHTTPMethod(isForm) {
137194
+ return function httpMethod(url, data, config) {
137195
+ return this.request(mergeConfig(config || {}, {
137196
+ method,
137197
+ headers: isForm ? {
137198
+ 'Content-Type': 'multipart/form-data'
137199
+ } : {},
137200
+ url,
137201
+ data
137202
+ }));
137203
+ };
137204
+ }
137205
+
137206
+ Axios.prototype[method] = generateHTTPMethod();
137207
+
137208
+ Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
137209
+ });
137210
+
137211
+ /* harmony default export */ const core_Axios = (Axios);
137212
+
137213
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/cancel/CancelToken.js
137214
+
137215
+
137216
+
137217
+
137218
+ /**
137219
+ * A `CancelToken` is an object that can be used to request cancellation of an operation.
137220
+ *
137221
+ * @param {Function} executor The executor function.
137222
+ *
137223
+ * @returns {CancelToken}
137224
+ */
137225
+ class CancelToken {
137226
+ constructor(executor) {
137227
+ if (typeof executor !== 'function') {
137228
+ throw new TypeError('executor must be a function.');
137229
+ }
137230
+
137231
+ let resolvePromise;
137232
+
137233
+ this.promise = new Promise(function promiseExecutor(resolve) {
137234
+ resolvePromise = resolve;
137235
+ });
137236
+
137237
+ const token = this;
137238
+
137239
+ // eslint-disable-next-line func-names
137240
+ this.promise.then(cancel => {
137241
+ if (!token._listeners) return;
137242
+
137243
+ let i = token._listeners.length;
137244
+
137245
+ while (i-- > 0) {
137246
+ token._listeners[i](cancel);
137247
+ }
137248
+ token._listeners = null;
137249
+ });
137250
+
137251
+ // eslint-disable-next-line func-names
137252
+ this.promise.then = onfulfilled => {
137253
+ let _resolve;
137254
+ // eslint-disable-next-line func-names
137255
+ const promise = new Promise(resolve => {
137256
+ token.subscribe(resolve);
137257
+ _resolve = resolve;
137258
+ }).then(onfulfilled);
137259
+
137260
+ promise.cancel = function reject() {
137261
+ token.unsubscribe(_resolve);
137262
+ };
137263
+
137264
+ return promise;
137265
+ };
137266
+
137267
+ executor(function cancel(message, config, request) {
137268
+ if (token.reason) {
137269
+ // Cancellation has already been requested
137270
+ return;
137271
+ }
137272
+
137273
+ token.reason = new cancel_CanceledError(message, config, request);
137274
+ resolvePromise(token.reason);
137275
+ });
137276
+ }
137277
+
137278
+ /**
137279
+ * Throws a `CanceledError` if cancellation has been requested.
137280
+ */
137281
+ throwIfRequested() {
137282
+ if (this.reason) {
137283
+ throw this.reason;
137284
+ }
137285
+ }
137286
+
137287
+ /**
137288
+ * Subscribe to the cancel signal
137289
+ */
137290
+
137291
+ subscribe(listener) {
137292
+ if (this.reason) {
137293
+ listener(this.reason);
137294
+ return;
137295
+ }
137296
+
137297
+ if (this._listeners) {
137298
+ this._listeners.push(listener);
137299
+ } else {
137300
+ this._listeners = [listener];
137301
+ }
137302
+ }
137303
+
137304
+ /**
137305
+ * Unsubscribe from the cancel signal
137306
+ */
137307
+
137308
+ unsubscribe(listener) {
137309
+ if (!this._listeners) {
137310
+ return;
137311
+ }
137312
+ const index = this._listeners.indexOf(listener);
137313
+ if (index !== -1) {
137314
+ this._listeners.splice(index, 1);
137315
+ }
137316
+ }
137317
+
137318
+ /**
137319
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
137320
+ * cancels the `CancelToken`.
137321
+ */
137322
+ static source() {
137323
+ let cancel;
137324
+ const token = new CancelToken(function executor(c) {
137325
+ cancel = c;
137326
+ });
137327
+ return {
137328
+ token,
137329
+ cancel
137330
+ };
137331
+ }
137332
+ }
137333
+
137334
+ /* harmony default export */ const cancel_CancelToken = (CancelToken);
137335
+
137336
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/spread.js
137337
+
137338
+
137339
+ /**
137340
+ * Syntactic sugar for invoking a function and expanding an array for arguments.
137341
+ *
137342
+ * Common use case would be to use `Function.prototype.apply`.
137343
+ *
137344
+ * ```js
137345
+ * function f(x, y, z) {}
137346
+ * var args = [1, 2, 3];
137347
+ * f.apply(null, args);
137348
+ * ```
137349
+ *
137350
+ * With `spread` this example can be re-written.
137351
+ *
137352
+ * ```js
137353
+ * spread(function(x, y, z) {})([1, 2, 3]);
137354
+ * ```
137355
+ *
137356
+ * @param {Function} callback
137357
+ *
137358
+ * @returns {Function}
137359
+ */
137360
+ function spread(callback) {
137361
+ return function wrap(arr) {
137362
+ return callback.apply(null, arr);
137363
+ };
137364
+ }
137365
+
137366
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/isAxiosError.js
137367
+
137368
+
137369
+
137370
+
137371
+ /**
137372
+ * Determines whether the payload is an error thrown by Axios
137373
+ *
137374
+ * @param {*} payload The value to test
137375
+ *
137376
+ * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
137377
+ */
137378
+ function isAxiosError(payload) {
137379
+ return utils.isObject(payload) && (payload.isAxiosError === true);
137380
+ }
137381
+
137382
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/helpers/HttpStatusCode.js
137383
+ const HttpStatusCode = {
137384
+ Continue: 100,
137385
+ SwitchingProtocols: 101,
137386
+ Processing: 102,
137387
+ EarlyHints: 103,
137388
+ Ok: 200,
137389
+ Created: 201,
137390
+ Accepted: 202,
137391
+ NonAuthoritativeInformation: 203,
137392
+ NoContent: 204,
137393
+ ResetContent: 205,
137394
+ PartialContent: 206,
137395
+ MultiStatus: 207,
137396
+ AlreadyReported: 208,
137397
+ ImUsed: 226,
137398
+ MultipleChoices: 300,
137399
+ MovedPermanently: 301,
137400
+ Found: 302,
137401
+ SeeOther: 303,
137402
+ NotModified: 304,
137403
+ UseProxy: 305,
137404
+ Unused: 306,
137405
+ TemporaryRedirect: 307,
137406
+ PermanentRedirect: 308,
137407
+ BadRequest: 400,
137408
+ Unauthorized: 401,
137409
+ PaymentRequired: 402,
137410
+ Forbidden: 403,
137411
+ NotFound: 404,
137412
+ MethodNotAllowed: 405,
137413
+ NotAcceptable: 406,
137414
+ ProxyAuthenticationRequired: 407,
137415
+ RequestTimeout: 408,
137416
+ Conflict: 409,
137417
+ Gone: 410,
137418
+ LengthRequired: 411,
137419
+ PreconditionFailed: 412,
137420
+ PayloadTooLarge: 413,
137421
+ UriTooLong: 414,
137422
+ UnsupportedMediaType: 415,
137423
+ RangeNotSatisfiable: 416,
137424
+ ExpectationFailed: 417,
137425
+ ImATeapot: 418,
137426
+ MisdirectedRequest: 421,
137427
+ UnprocessableEntity: 422,
137428
+ Locked: 423,
137429
+ FailedDependency: 424,
137430
+ TooEarly: 425,
137431
+ UpgradeRequired: 426,
137432
+ PreconditionRequired: 428,
137433
+ TooManyRequests: 429,
137434
+ RequestHeaderFieldsTooLarge: 431,
137435
+ UnavailableForLegalReasons: 451,
137436
+ InternalServerError: 500,
137437
+ NotImplemented: 501,
137438
+ BadGateway: 502,
137439
+ ServiceUnavailable: 503,
137440
+ GatewayTimeout: 504,
137441
+ HttpVersionNotSupported: 505,
137442
+ VariantAlsoNegotiates: 506,
137443
+ InsufficientStorage: 507,
137444
+ LoopDetected: 508,
137445
+ NotExtended: 510,
137446
+ NetworkAuthenticationRequired: 511,
137447
+ };
137448
+
137449
+ Object.entries(HttpStatusCode).forEach(([key, value]) => {
137450
+ HttpStatusCode[value] = key;
137451
+ });
137452
+
137453
+ /* harmony default export */ const helpers_HttpStatusCode = (HttpStatusCode);
137454
+
137455
+ ;// CONCATENATED MODULE: ./node_modules/_axios@1.6.2@axios/lib/axios.js
137456
+
137457
+
137458
+
137459
+
137460
+
137461
+
137462
+
137463
+
137464
+
137465
+
137466
+
137467
+
137468
+
137469
+
137470
+
137471
+
137472
+
137473
+
137474
+
137475
+
137476
+ /**
137477
+ * Create an instance of Axios
137478
+ *
137479
+ * @param {Object} defaultConfig The default config for the instance
137480
+ *
137481
+ * @returns {Axios} A new instance of Axios
137482
+ */
137483
+ function createInstance(defaultConfig) {
137484
+ const context = new core_Axios(defaultConfig);
137485
+ const instance = bind(core_Axios.prototype.request, context);
137486
+
137487
+ // Copy axios.prototype to instance
137488
+ utils.extend(instance, core_Axios.prototype, context, {allOwnKeys: true});
137489
+
137490
+ // Copy context to instance
137491
+ utils.extend(instance, context, null, {allOwnKeys: true});
137492
+
137493
+ // Factory for creating new instances
137494
+ instance.create = function create(instanceConfig) {
137495
+ return createInstance(mergeConfig(defaultConfig, instanceConfig));
137496
+ };
137497
+
137498
+ return instance;
137499
+ }
137500
+
137501
+ // Create the default instance to be exported
137502
+ const axios = createInstance(lib_defaults);
137503
+
137504
+ // Expose Axios class to allow class inheritance
137505
+ axios.Axios = core_Axios;
137506
+
137507
+ // Expose Cancel & CancelToken
137508
+ axios.CanceledError = cancel_CanceledError;
137509
+ axios.CancelToken = cancel_CancelToken;
137510
+ axios.isCancel = isCancel;
137511
+ axios.VERSION = VERSION;
137512
+ axios.toFormData = helpers_toFormData;
137513
+
137514
+ // Expose AxiosError class
137515
+ axios.AxiosError = core_AxiosError;
137516
+
137517
+ // alias for CanceledError for backward compatibility
137518
+ axios.Cancel = axios.CanceledError;
137519
+
137520
+ // Expose all/spread
137521
+ axios.all = function all(promises) {
137522
+ return Promise.all(promises);
137523
+ };
137524
+
137525
+ axios.spread = spread;
137526
+
137527
+ // Expose isAxiosError
137528
+ axios.isAxiosError = isAxiosError;
137529
+
137530
+ // Expose mergeConfig
137531
+ axios.mergeConfig = mergeConfig;
137532
+
137533
+ axios.AxiosHeaders = core_AxiosHeaders;
137534
+
137535
+ axios.formToJSON = thing => helpers_formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);
137536
+
137537
+ axios.getAdapter = adapters.getAdapter;
137538
+
137539
+ axios.HttpStatusCode = helpers_HttpStatusCode;
137540
+
137541
+ axios.default = axios;
137542
+
137543
+ // this module should only have a default export
137544
+ /* harmony default export */ const lib_axios = (axios);
137545
+
137546
+ // EXTERNAL MODULE: ./src/utils/util.js
137547
+ var utils_util = __webpack_require__(4948);
137548
+ ;// CONCATENATED MODULE: ./src/utils/checkSsoStatus.js
137549
+
137550
+
137551
+ const ax = lib_axios.create({});
137552
+ ax.interceptors.response.use(response => {
137553
+ const {
137554
+ config
137555
+ } = response;
137556
+ console.log(response);
137557
+ return response;
137558
+ }, (err, ...arg) => {
137559
+ console.warn(err, arg);
137560
+ return Promise.reject(err);
137561
+ });
137562
+ function useSsoStatus(options) {
137563
+ const {
137564
+ casUrl,
137565
+ serviceUrl,
137566
+ refreshTicket,
137567
+ logout
137568
+ } = options;
137569
+ return {
137570
+ check() {
137571
+ ax.get(`${casUrl}/login?service=${serviceUrl}`).then(res => {
137572
+ const resUrl = res.request.responseURL;
137573
+ if (resUrl.includes('service=')) {
137574
+ return logout(); // 退出登录
137575
+ }
137576
+
137577
+ if (resUrl.includes(serviceUrl)) {
137578
+ const ticket = (0,utils_util/* getQueryParam */.Ph)('ticket', res.request.responseURL);
137579
+ return refreshTicket(ticket); // 重新获取用户信息
137580
+ }
137581
+
137582
+ return logout(); // 退出登录
137583
+ });
137584
+ }
137585
+ };
137586
+ }
137587
+ ;// CONCATENATED MODULE: ./src/main.js
137588
+
137589
+
137590
+ const version = (__webpack_require__(4147)/* .version */ .i8);
137591
+ window.formVersion = version;
137592
+ console.log("version:", version);
137593
+
134058
137594
 
134059
137595
 
134060
137596
 
@@ -134091,6 +137627,7 @@ if (typeof window !== 'undefined' && window.Vue) {
134091
137627
  Print: print,
134092
137628
  ...components/* default */.Z.componentList,
134093
137629
  MessageBox: components_MessageBox,
137630
+ useSsoStatus: useSsoStatus,
134094
137631
  encrypt: encryption
134095
137632
  });
134096
137633
  ;// CONCATENATED MODULE: ./node_modules/_@vue_cli-service@5.0.8@@vue/cli-service/lib/commands/build/entry-lib.js