@indfnd/utils 0.1.27 → 0.1.28

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.
@@ -96,8 +96,8 @@ const INDEX_DESC_KEY = "indexDesc";
96
96
  function getIndexDescCache() {
97
97
  return getLocalStorage(INDEX_DESC_KEY);
98
98
  }
99
- function setIndexDescCache(data) {
100
- setLocalStorage(INDEX_DESC_KEY, data);
99
+ function setIndexDescCache(data2) {
100
+ setLocalStorage(INDEX_DESC_KEY, data2);
101
101
  }
102
102
  function clearIndexDescCache() {
103
103
  removeLocalStorage(INDEX_DESC_KEY);
@@ -106,8 +106,8 @@ const PERMISSION_KEY = "ibp-sc-permission";
106
106
  function getPermissionCache() {
107
107
  return getSessionStorage(PERMISSION_KEY);
108
108
  }
109
- function setPermissionCache(data) {
110
- setSessionStorage(PERMISSION_KEY, data);
109
+ function setPermissionCache(data2) {
110
+ setSessionStorage(PERMISSION_KEY, data2);
111
111
  }
112
112
  function clearPermissionCache() {
113
113
  removeSessionStorage(PERMISSION_KEY);
@@ -116,8 +116,8 @@ const USER_INFO_KEY = "lambo-userInfo";
116
116
  function getUserInfoCache() {
117
117
  return getLocalStorage(USER_INFO_KEY);
118
118
  }
119
- function setUserInfoCache(data) {
120
- setLocalStorage(USER_INFO_KEY, data);
119
+ function setUserInfoCache(data2) {
120
+ setLocalStorage(USER_INFO_KEY, data2);
121
121
  }
122
122
  function clearUserInfoCache() {
123
123
  removeLocalStorage(USER_INFO_KEY);
@@ -366,10 +366,10 @@ InterceptorManager$1.prototype.forEach = function forEach2(fn) {
366
366
  var InterceptorManager_1 = InterceptorManager$1;
367
367
  var utils$d = utils$g;
368
368
  var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
369
- utils$d.forEach(headers, function processHeader(value, name2) {
370
- if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
369
+ utils$d.forEach(headers, function processHeader(value, name) {
370
+ if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
371
371
  headers[normalizedName] = value;
372
- delete headers[name2];
372
+ delete headers[name];
373
373
  }
374
374
  });
375
375
  };
@@ -392,7 +392,8 @@ var enhanceError$2 = function enhanceError(error, config2, code, request2, respo
392
392
  columnNumber: this.columnNumber,
393
393
  stack: this.stack,
394
394
  config: this.config,
395
- code: this.code
395
+ code: this.code,
396
+ status: this.response && this.response.status ? this.response.status : null
396
397
  };
397
398
  };
398
399
  return error;
@@ -420,9 +421,9 @@ var settle$1 = function settle(resolve, reject, response) {
420
421
  var utils$c = utils$g;
421
422
  var cookies$1 = utils$c.isStandardBrowserEnv() ? function standardBrowserEnv() {
422
423
  return {
423
- write: function write(name2, value, expires, path, domain, secure) {
424
+ write: function write(name, value, expires, path, domain, secure) {
424
425
  var cookie = [];
425
- cookie.push(name2 + "=" + encodeURIComponent(value));
426
+ cookie.push(name + "=" + encodeURIComponent(value));
426
427
  if (utils$c.isNumber(expires)) {
427
428
  cookie.push("expires=" + new Date(expires).toGMTString());
428
429
  }
@@ -437,12 +438,12 @@ var cookies$1 = utils$c.isStandardBrowserEnv() ? function standardBrowserEnv() {
437
438
  }
438
439
  document.cookie = cookie.join("; ");
439
440
  },
440
- read: function read(name2) {
441
- var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
441
+ read: function read(name) {
442
+ var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name + ")=([^;]*)"));
442
443
  return match ? decodeURIComponent(match[3]) : null;
443
444
  },
444
- remove: function remove(name2) {
445
- this.write(name2, "", Date.now() - 864e5);
445
+ remove: function remove(name) {
446
+ this.write(name, "", Date.now() - 864e5);
446
447
  }
447
448
  };
448
449
  }() : function nonStandardBrowserEnv() {
@@ -548,6 +549,14 @@ var isURLSameOrigin$1 = utils$a.isStandardBrowserEnv() ? function standardBrowse
548
549
  return true;
549
550
  };
550
551
  }();
552
+ function Cancel$3(message) {
553
+ this.message = message;
554
+ }
555
+ Cancel$3.prototype.toString = function toString() {
556
+ return "Cancel" + (this.message ? ": " + this.message : "");
557
+ };
558
+ Cancel$3.prototype.__CANCEL__ = true;
559
+ var Cancel_1 = Cancel$3;
551
560
  var utils$9 = utils$g;
552
561
  var settle2 = settle$1;
553
562
  var cookies = cookies$1;
@@ -556,11 +565,22 @@ var buildFullPath2 = buildFullPath$1;
556
565
  var parseHeaders2 = parseHeaders$1;
557
566
  var isURLSameOrigin = isURLSameOrigin$1;
558
567
  var createError2 = createError$2;
568
+ var defaults$6 = defaults_1;
569
+ var Cancel$2 = Cancel_1;
559
570
  var xhr = function xhrAdapter(config2) {
560
571
  return new Promise(function dispatchXhrRequest(resolve, reject) {
561
572
  var requestData = config2.data;
562
573
  var requestHeaders = config2.headers;
563
574
  var responseType = config2.responseType;
575
+ var onCanceled;
576
+ function done() {
577
+ if (config2.cancelToken) {
578
+ config2.cancelToken.unsubscribe(onCanceled);
579
+ }
580
+ if (config2.signal) {
581
+ config2.signal.removeEventListener("abort", onCanceled);
582
+ }
583
+ }
564
584
  if (utils$9.isFormData(requestData)) {
565
585
  delete requestHeaders["Content-Type"];
566
586
  }
@@ -587,7 +607,13 @@ var xhr = function xhrAdapter(config2) {
587
607
  config: config2,
588
608
  request: request2
589
609
  };
590
- settle2(resolve, reject, response);
610
+ settle2(function _resolve(value) {
611
+ resolve(value);
612
+ done();
613
+ }, function _reject(err) {
614
+ reject(err);
615
+ done();
616
+ }, response);
591
617
  request2 = null;
592
618
  }
593
619
  if ("onloadend" in request2) {
@@ -615,14 +641,15 @@ var xhr = function xhrAdapter(config2) {
615
641
  request2 = null;
616
642
  };
617
643
  request2.ontimeout = function handleTimeout() {
618
- var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
644
+ var timeoutErrorMessage = config2.timeout ? "timeout of " + config2.timeout + "ms exceeded" : "timeout exceeded";
645
+ var transitional2 = config2.transitional || defaults$6.transitional;
619
646
  if (config2.timeoutErrorMessage) {
620
647
  timeoutErrorMessage = config2.timeoutErrorMessage;
621
648
  }
622
649
  reject(createError2(
623
650
  timeoutErrorMessage,
624
651
  config2,
625
- config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
652
+ transitional2.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
626
653
  request2
627
654
  ));
628
655
  request2 = null;
@@ -654,15 +681,19 @@ var xhr = function xhrAdapter(config2) {
654
681
  if (typeof config2.onUploadProgress === "function" && request2.upload) {
655
682
  request2.upload.addEventListener("progress", config2.onUploadProgress);
656
683
  }
657
- if (config2.cancelToken) {
658
- config2.cancelToken.promise.then(function onCanceled(cancel) {
684
+ if (config2.cancelToken || config2.signal) {
685
+ onCanceled = function(cancel) {
659
686
  if (!request2) {
660
687
  return;
661
688
  }
689
+ reject(!cancel || cancel && cancel.type ? new Cancel$2("canceled") : cancel);
662
690
  request2.abort();
663
- reject(cancel);
664
691
  request2 = null;
665
- });
692
+ };
693
+ config2.cancelToken && config2.cancelToken.subscribe(onCanceled);
694
+ if (config2.signal) {
695
+ config2.signal.aborted ? onCanceled() : config2.signal.addEventListener("abort", onCanceled);
696
+ }
666
697
  }
667
698
  if (!requestData) {
668
699
  requestData = null;
@@ -710,33 +741,33 @@ var defaults$5 = {
710
741
  clarifyTimeoutError: false
711
742
  },
712
743
  adapter: getDefaultAdapter(),
713
- transformRequest: [function transformRequest(data, headers) {
744
+ transformRequest: [function transformRequest(data2, headers) {
714
745
  normalizeHeaderName2(headers, "Accept");
715
746
  normalizeHeaderName2(headers, "Content-Type");
716
- if (utils$8.isFormData(data) || utils$8.isArrayBuffer(data) || utils$8.isBuffer(data) || utils$8.isStream(data) || utils$8.isFile(data) || utils$8.isBlob(data)) {
717
- return data;
747
+ if (utils$8.isFormData(data2) || utils$8.isArrayBuffer(data2) || utils$8.isBuffer(data2) || utils$8.isStream(data2) || utils$8.isFile(data2) || utils$8.isBlob(data2)) {
748
+ return data2;
718
749
  }
719
- if (utils$8.isArrayBufferView(data)) {
720
- return data.buffer;
750
+ if (utils$8.isArrayBufferView(data2)) {
751
+ return data2.buffer;
721
752
  }
722
- if (utils$8.isURLSearchParams(data)) {
753
+ if (utils$8.isURLSearchParams(data2)) {
723
754
  setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
724
- return data.toString();
755
+ return data2.toString();
725
756
  }
726
- if (utils$8.isObject(data) || headers && headers["Content-Type"] === "application/json") {
757
+ if (utils$8.isObject(data2) || headers && headers["Content-Type"] === "application/json") {
727
758
  setContentTypeIfUnset(headers, "application/json");
728
- return stringifySafely(data);
759
+ return stringifySafely(data2);
729
760
  }
730
- return data;
761
+ return data2;
731
762
  }],
732
- transformResponse: [function transformResponse(data) {
733
- var transitional2 = this.transitional;
763
+ transformResponse: [function transformResponse(data2) {
764
+ var transitional2 = this.transitional || defaults$5.transitional;
734
765
  var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
735
766
  var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
736
767
  var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
737
- if (strictJSONParsing || forcedJSONParsing && utils$8.isString(data) && data.length) {
768
+ if (strictJSONParsing || forcedJSONParsing && utils$8.isString(data2) && data2.length) {
738
769
  try {
739
- return JSON.parse(data);
770
+ return JSON.parse(data2);
740
771
  } catch (e) {
741
772
  if (strictJSONParsing) {
742
773
  if (e.name === "SyntaxError") {
@@ -746,7 +777,7 @@ var defaults$5 = {
746
777
  }
747
778
  }
748
779
  }
749
- return data;
780
+ return data2;
750
781
  }],
751
782
  timeout: 0,
752
783
  xsrfCookieName: "XSRF-TOKEN",
@@ -755,11 +786,11 @@ var defaults$5 = {
755
786
  maxBodyLength: -1,
756
787
  validateStatus: function validateStatus(status) {
757
788
  return status >= 200 && status < 300;
758
- }
759
- };
760
- defaults$5.headers = {
761
- common: {
762
- "Accept": "application/json, text/plain, */*"
789
+ },
790
+ headers: {
791
+ common: {
792
+ "Accept": "application/json, text/plain, */*"
793
+ }
763
794
  }
764
795
  };
765
796
  utils$8.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
@@ -771,12 +802,12 @@ utils$8.forEach(["post", "put", "patch"], function forEachMethodWithData(method)
771
802
  var defaults_1 = defaults$5;
772
803
  var utils$7 = utils$g;
773
804
  var defaults$4 = defaults_1;
774
- var transformData$1 = function transformData(data, headers, fns) {
805
+ var transformData$1 = function transformData(data2, headers, fns) {
775
806
  var context = this || defaults$4;
776
807
  utils$7.forEach(fns, function transform(fn) {
777
- data = fn.call(context, data, headers);
808
+ data2 = fn.call(context, data2, headers);
778
809
  });
779
- return data;
810
+ return data2;
780
811
  };
781
812
  var isCancel$1 = function isCancel(value) {
782
813
  return !!(value && value.__CANCEL__);
@@ -785,10 +816,14 @@ var utils$6 = utils$g;
785
816
  var transformData2 = transformData$1;
786
817
  var isCancel2 = isCancel$1;
787
818
  var defaults$3 = defaults_1;
819
+ var Cancel$1 = Cancel_1;
788
820
  function throwIfCancellationRequested(config2) {
789
821
  if (config2.cancelToken) {
790
822
  config2.cancelToken.throwIfRequested();
791
823
  }
824
+ if (config2.signal && config2.signal.aborted) {
825
+ throw new Cancel$1("canceled");
826
+ }
792
827
  }
793
828
  var dispatchRequest$1 = function dispatchRequest(config2) {
794
829
  throwIfCancellationRequested(config2);
@@ -839,34 +874,6 @@ var utils$5 = utils$g;
839
874
  var mergeConfig$2 = function mergeConfig(config1, config2) {
840
875
  config2 = config2 || {};
841
876
  var config3 = {};
842
- var valueFromConfig2Keys = ["url", "method", "data"];
843
- var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
844
- var defaultToConfig2Keys = [
845
- "baseURL",
846
- "transformRequest",
847
- "transformResponse",
848
- "paramsSerializer",
849
- "timeout",
850
- "timeoutMessage",
851
- "withCredentials",
852
- "adapter",
853
- "responseType",
854
- "xsrfCookieName",
855
- "xsrfHeaderName",
856
- "onUploadProgress",
857
- "onDownloadProgress",
858
- "decompress",
859
- "maxContentLength",
860
- "maxBodyLength",
861
- "maxRedirects",
862
- "transport",
863
- "httpAgent",
864
- "httpsAgent",
865
- "cancelToken",
866
- "socketPath",
867
- "responseEncoding"
868
- ];
869
- var directMergeKeys = ["validateStatus"];
870
877
  function getMergedValue(target, source2) {
871
878
  if (utils$5.isPlainObject(target) && utils$5.isPlainObject(source2)) {
872
879
  return utils$5.merge(target, source2);
@@ -879,141 +886,69 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
879
886
  }
880
887
  function mergeDeepProperties(prop) {
881
888
  if (!utils$5.isUndefined(config2[prop])) {
882
- config3[prop] = getMergedValue(config1[prop], config2[prop]);
889
+ return getMergedValue(config1[prop], config2[prop]);
883
890
  } else if (!utils$5.isUndefined(config1[prop])) {
884
- config3[prop] = getMergedValue(void 0, config1[prop]);
891
+ return getMergedValue(void 0, config1[prop]);
885
892
  }
886
893
  }
887
- utils$5.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
894
+ function valueFromConfig2(prop) {
888
895
  if (!utils$5.isUndefined(config2[prop])) {
889
- config3[prop] = getMergedValue(void 0, config2[prop]);
896
+ return getMergedValue(void 0, config2[prop]);
890
897
  }
891
- });
892
- utils$5.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
893
- utils$5.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
898
+ }
899
+ function defaultToConfig2(prop) {
894
900
  if (!utils$5.isUndefined(config2[prop])) {
895
- config3[prop] = getMergedValue(void 0, config2[prop]);
901
+ return getMergedValue(void 0, config2[prop]);
896
902
  } else if (!utils$5.isUndefined(config1[prop])) {
897
- config3[prop] = getMergedValue(void 0, config1[prop]);
903
+ return getMergedValue(void 0, config1[prop]);
898
904
  }
899
- });
900
- utils$5.forEach(directMergeKeys, function merge3(prop) {
905
+ }
906
+ function mergeDirectKeys(prop) {
901
907
  if (prop in config2) {
902
- config3[prop] = getMergedValue(config1[prop], config2[prop]);
908
+ return getMergedValue(config1[prop], config2[prop]);
903
909
  } else if (prop in config1) {
904
- config3[prop] = getMergedValue(void 0, config1[prop]);
905
- }
906
- });
907
- var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
908
- var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
909
- return axiosKeys.indexOf(key) === -1;
910
+ return getMergedValue(void 0, config1[prop]);
911
+ }
912
+ }
913
+ var mergeMap = {
914
+ "url": valueFromConfig2,
915
+ "method": valueFromConfig2,
916
+ "data": valueFromConfig2,
917
+ "baseURL": defaultToConfig2,
918
+ "transformRequest": defaultToConfig2,
919
+ "transformResponse": defaultToConfig2,
920
+ "paramsSerializer": defaultToConfig2,
921
+ "timeout": defaultToConfig2,
922
+ "timeoutMessage": defaultToConfig2,
923
+ "withCredentials": defaultToConfig2,
924
+ "adapter": defaultToConfig2,
925
+ "responseType": defaultToConfig2,
926
+ "xsrfCookieName": defaultToConfig2,
927
+ "xsrfHeaderName": defaultToConfig2,
928
+ "onUploadProgress": defaultToConfig2,
929
+ "onDownloadProgress": defaultToConfig2,
930
+ "decompress": defaultToConfig2,
931
+ "maxContentLength": defaultToConfig2,
932
+ "maxBodyLength": defaultToConfig2,
933
+ "transport": defaultToConfig2,
934
+ "httpAgent": defaultToConfig2,
935
+ "httpsAgent": defaultToConfig2,
936
+ "cancelToken": defaultToConfig2,
937
+ "socketPath": defaultToConfig2,
938
+ "responseEncoding": defaultToConfig2,
939
+ "validateStatus": mergeDirectKeys
940
+ };
941
+ utils$5.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {
942
+ var merge3 = mergeMap[prop] || mergeDeepProperties;
943
+ var configValue = merge3(prop);
944
+ utils$5.isUndefined(configValue) && merge3 !== mergeDirectKeys || (config3[prop] = configValue);
910
945
  });
911
- utils$5.forEach(otherKeys, mergeDeepProperties);
912
946
  return config3;
913
947
  };
914
- const name = "axios";
915
- const version = "0.21.4";
916
- const description = "Promise based HTTP client for the browser and node.js";
917
- const main = "index.js";
918
- const scripts = {
919
- test: "grunt test",
920
- start: "node ./sandbox/server.js",
921
- build: "NODE_ENV=production grunt build",
922
- preversion: "npm test",
923
- version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
924
- postversion: "git push && git push --tags",
925
- examples: "node ./examples/server.js",
926
- coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
927
- fix: "eslint --fix lib/**/*.js"
928
- };
929
- const repository = {
930
- type: "git",
931
- url: "https://github.com/axios/axios.git"
932
- };
933
- const keywords = [
934
- "xhr",
935
- "http",
936
- "ajax",
937
- "promise",
938
- "node"
939
- ];
940
- const author = "Matt Zabriskie";
941
- const license = "MIT";
942
- const bugs = {
943
- url: "https://github.com/axios/axios/issues"
944
- };
945
- const homepage = "https://axios-http.com";
946
- const devDependencies = {
947
- coveralls: "^3.0.0",
948
- "es6-promise": "^4.2.4",
949
- grunt: "^1.3.0",
950
- "grunt-banner": "^0.6.0",
951
- "grunt-cli": "^1.2.0",
952
- "grunt-contrib-clean": "^1.1.0",
953
- "grunt-contrib-watch": "^1.0.0",
954
- "grunt-eslint": "^23.0.0",
955
- "grunt-karma": "^4.0.0",
956
- "grunt-mocha-test": "^0.13.3",
957
- "grunt-ts": "^6.0.0-beta.19",
958
- "grunt-webpack": "^4.0.2",
959
- "istanbul-instrumenter-loader": "^1.0.0",
960
- "jasmine-core": "^2.4.1",
961
- karma: "^6.3.2",
962
- "karma-chrome-launcher": "^3.1.0",
963
- "karma-firefox-launcher": "^2.1.0",
964
- "karma-jasmine": "^1.1.1",
965
- "karma-jasmine-ajax": "^0.1.13",
966
- "karma-safari-launcher": "^1.0.0",
967
- "karma-sauce-launcher": "^4.3.6",
968
- "karma-sinon": "^1.0.5",
969
- "karma-sourcemap-loader": "^0.3.8",
970
- "karma-webpack": "^4.0.2",
971
- "load-grunt-tasks": "^3.5.2",
972
- minimist: "^1.2.0",
973
- mocha: "^8.2.1",
974
- sinon: "^4.5.0",
975
- "terser-webpack-plugin": "^4.2.3",
976
- typescript: "^4.0.5",
977
- "url-search-params": "^0.10.0",
978
- webpack: "^4.44.2",
979
- "webpack-dev-server": "^3.11.0"
980
- };
981
- const browser = {
982
- "./lib/adapters/http.js": "./lib/adapters/xhr.js"
983
- };
984
- const jsdelivr = "dist/axios.min.js";
985
- const unpkg = "dist/axios.min.js";
986
- const typings = "./index.d.ts";
987
- const dependencies = {
988
- "follow-redirects": "^1.14.0"
989
- };
990
- const bundlesize = [
991
- {
992
- path: "./dist/axios.min.js",
993
- threshold: "5kB"
994
- }
995
- ];
996
- var require$$0$1 = {
997
- name,
998
- version,
999
- description,
1000
- main,
1001
- scripts,
1002
- repository,
1003
- keywords,
1004
- author,
1005
- license,
1006
- bugs,
1007
- homepage,
1008
- devDependencies,
1009
- browser,
1010
- jsdelivr,
1011
- unpkg,
1012
- typings,
1013
- dependencies,
1014
- bundlesize
1015
- };
1016
- var pkg = require$$0$1;
948
+ var data = {
949
+ "version": "0.24.0"
950
+ };
951
+ var VERSION = data.version;
1017
952
  var validators$1 = {};
1018
953
  ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type, i) {
1019
954
  validators$1[type] = function validator2(thing) {
@@ -1021,34 +956,20 @@ var validators$1 = {};
1021
956
  };
1022
957
  });
1023
958
  var deprecatedWarnings = {};
1024
- var currentVerArr = pkg.version.split(".");
1025
- function isOlderVersion(version2, thanVersion) {
1026
- var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
1027
- var destVer = version2.split(".");
1028
- for (var i = 0; i < 3; i++) {
1029
- if (pkgVersionArr[i] > destVer[i]) {
1030
- return true;
1031
- } else if (pkgVersionArr[i] < destVer[i]) {
1032
- return false;
1033
- }
1034
- }
1035
- return false;
1036
- }
1037
- validators$1.transitional = function transitional(validator2, version2, message) {
1038
- var isDeprecated = version2 && isOlderVersion(version2);
959
+ validators$1.transitional = function transitional(validator2, version, message) {
1039
960
  function formatMessage(opt, desc) {
1040
- return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
961
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
1041
962
  }
1042
963
  return function(value, opt, opts) {
1043
964
  if (validator2 === false) {
1044
- throw new Error(formatMessage(opt, " has been removed in " + version2));
965
+ throw new Error(formatMessage(opt, " has been removed" + (version ? " in " + version : "")));
1045
966
  }
1046
- if (isDeprecated && !deprecatedWarnings[opt]) {
967
+ if (version && !deprecatedWarnings[opt]) {
1047
968
  deprecatedWarnings[opt] = true;
1048
969
  console.warn(
1049
970
  formatMessage(
1050
971
  opt,
1051
- " has been deprecated since v" + version2 + " and will be removed in the near future"
972
+ " has been deprecated since v" + version + " and will be removed in the near future"
1052
973
  )
1053
974
  );
1054
975
  }
@@ -1078,7 +999,6 @@ function assertOptions(options, schema, allowUnknown) {
1078
999
  }
1079
1000
  }
1080
1001
  var validator$1 = {
1081
- isOlderVersion,
1082
1002
  assertOptions,
1083
1003
  validators: validators$1
1084
1004
  };
@@ -1114,9 +1034,9 @@ Axios$1.prototype.request = function request(config2) {
1114
1034
  var transitional2 = config2.transitional;
1115
1035
  if (transitional2 !== void 0) {
1116
1036
  validator.assertOptions(transitional2, {
1117
- silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
1118
- forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
1119
- clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
1037
+ silentJSONParsing: validators.transitional(validators.boolean),
1038
+ forcedJSONParsing: validators.transitional(validators.boolean),
1039
+ clarifyTimeoutError: validators.transitional(validators.boolean)
1120
1040
  }, false);
1121
1041
  }
1122
1042
  var requestInterceptorChain = [];
@@ -1178,23 +1098,15 @@ utils$4.forEach(["delete", "get", "head", "options"], function forEachMethodNoDa
1178
1098
  };
1179
1099
  });
1180
1100
  utils$4.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
1181
- Axios$1.prototype[method] = function(url, data, config2) {
1101
+ Axios$1.prototype[method] = function(url, data2, config2) {
1182
1102
  return this.request(mergeConfig$1(config2 || {}, {
1183
1103
  method,
1184
1104
  url,
1185
- data
1105
+ data: data2
1186
1106
  }));
1187
1107
  };
1188
1108
  });
1189
1109
  var Axios_1 = Axios$1;
1190
- function Cancel$1(message) {
1191
- this.message = message;
1192
- }
1193
- Cancel$1.prototype.toString = function toString() {
1194
- return "Cancel" + (this.message ? ": " + this.message : "");
1195
- };
1196
- Cancel$1.prototype.__CANCEL__ = true;
1197
- var Cancel_1 = Cancel$1;
1198
1110
  var Cancel = Cancel_1;
1199
1111
  function CancelToken(executor) {
1200
1112
  if (typeof executor !== "function") {
@@ -1205,6 +1117,27 @@ function CancelToken(executor) {
1205
1117
  resolvePromise = resolve;
1206
1118
  });
1207
1119
  var token = this;
1120
+ this.promise.then(function(cancel) {
1121
+ if (!token._listeners)
1122
+ return;
1123
+ var i;
1124
+ var l = token._listeners.length;
1125
+ for (i = 0; i < l; i++) {
1126
+ token._listeners[i](cancel);
1127
+ }
1128
+ token._listeners = null;
1129
+ });
1130
+ this.promise.then = function(onfulfilled) {
1131
+ var _resolve;
1132
+ var promise = new Promise(function(resolve) {
1133
+ token.subscribe(resolve);
1134
+ _resolve = resolve;
1135
+ }).then(onfulfilled);
1136
+ promise.cancel = function reject() {
1137
+ token.unsubscribe(_resolve);
1138
+ };
1139
+ return promise;
1140
+ };
1208
1141
  executor(function cancel(message) {
1209
1142
  if (token.reason) {
1210
1143
  return;
@@ -1218,6 +1151,26 @@ CancelToken.prototype.throwIfRequested = function throwIfRequested() {
1218
1151
  throw this.reason;
1219
1152
  }
1220
1153
  };
1154
+ CancelToken.prototype.subscribe = function subscribe(listener) {
1155
+ if (this.reason) {
1156
+ listener(this.reason);
1157
+ return;
1158
+ }
1159
+ if (this._listeners) {
1160
+ this._listeners.push(listener);
1161
+ } else {
1162
+ this._listeners = [listener];
1163
+ }
1164
+ };
1165
+ CancelToken.prototype.unsubscribe = function unsubscribe(listener) {
1166
+ if (!this._listeners) {
1167
+ return;
1168
+ }
1169
+ var index = this._listeners.indexOf(listener);
1170
+ if (index !== -1) {
1171
+ this._listeners.splice(index, 1);
1172
+ }
1173
+ };
1221
1174
  CancelToken.source = function source() {
1222
1175
  var cancel;
1223
1176
  var token = new CancelToken(function executor(c) {
@@ -1247,16 +1200,17 @@ function createInstance(defaultConfig) {
1247
1200
  var instance2 = bind$2(Axios.prototype.request, context);
1248
1201
  utils$3.extend(instance2, Axios.prototype, context);
1249
1202
  utils$3.extend(instance2, context);
1203
+ instance2.create = function create(instanceConfig) {
1204
+ return createInstance(mergeConfig2(defaultConfig, instanceConfig));
1205
+ };
1250
1206
  return instance2;
1251
1207
  }
1252
1208
  var axios$1 = createInstance(defaults$2);
1253
1209
  axios$1.Axios = Axios;
1254
- axios$1.create = function create(instanceConfig) {
1255
- return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
1256
- };
1257
1210
  axios$1.Cancel = Cancel_1;
1258
1211
  axios$1.CancelToken = CancelToken_1;
1259
1212
  axios$1.isCancel = isCancel$1;
1213
+ axios$1.VERSION = data.version;
1260
1214
  axios$1.all = function all(promises) {
1261
1215
  return Promise.all(promises);
1262
1216
  };
@@ -1525,26 +1479,26 @@ if (getProto) {
1525
1479
  INTRINSICS["%Error.prototype%"] = errorProto;
1526
1480
  }
1527
1481
  }
1528
- var doEval = function doEval2(name2) {
1482
+ var doEval = function doEval2(name) {
1529
1483
  var value;
1530
- if (name2 === "%AsyncFunction%") {
1484
+ if (name === "%AsyncFunction%") {
1531
1485
  value = getEvalledConstructor("async function () {}");
1532
- } else if (name2 === "%GeneratorFunction%") {
1486
+ } else if (name === "%GeneratorFunction%") {
1533
1487
  value = getEvalledConstructor("function* () {}");
1534
- } else if (name2 === "%AsyncGeneratorFunction%") {
1488
+ } else if (name === "%AsyncGeneratorFunction%") {
1535
1489
  value = getEvalledConstructor("async function* () {}");
1536
- } else if (name2 === "%AsyncGenerator%") {
1490
+ } else if (name === "%AsyncGenerator%") {
1537
1491
  var fn = doEval2("%AsyncGeneratorFunction%");
1538
1492
  if (fn) {
1539
1493
  value = fn.prototype;
1540
1494
  }
1541
- } else if (name2 === "%AsyncIteratorPrototype%") {
1495
+ } else if (name === "%AsyncIteratorPrototype%") {
1542
1496
  var gen = doEval2("%AsyncGenerator%");
1543
1497
  if (gen && getProto) {
1544
1498
  value = getProto(gen.prototype);
1545
1499
  }
1546
1500
  }
1547
- INTRINSICS[name2] = value;
1501
+ INTRINSICS[name] = value;
1548
1502
  return value;
1549
1503
  };
1550
1504
  var LEGACY_ALIASES = {
@@ -1623,8 +1577,8 @@ var stringToPath = function stringToPath2(string) {
1623
1577
  });
1624
1578
  return result;
1625
1579
  };
1626
- var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
1627
- var intrinsicName = name2;
1580
+ var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
1581
+ var intrinsicName = name;
1628
1582
  var alias;
1629
1583
  if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
1630
1584
  alias = LEGACY_ALIASES[intrinsicName];
@@ -1636,7 +1590,7 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
1636
1590
  value = doEval(intrinsicName);
1637
1591
  }
1638
1592
  if (typeof value === "undefined" && !allowMissing) {
1639
- throw new $TypeError$3("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
1593
+ throw new $TypeError$3("intrinsic " + name + " exists, but is not available. Please file an issue!");
1640
1594
  }
1641
1595
  return {
1642
1596
  alias,
@@ -1644,19 +1598,19 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
1644
1598
  value
1645
1599
  };
1646
1600
  }
1647
- throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
1601
+ throw new $SyntaxError$1("intrinsic " + name + " does not exist!");
1648
1602
  };
1649
- var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
1650
- if (typeof name2 !== "string" || name2.length === 0) {
1603
+ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
1604
+ if (typeof name !== "string" || name.length === 0) {
1651
1605
  throw new $TypeError$3("intrinsic name must be a non-empty string");
1652
1606
  }
1653
1607
  if (arguments.length > 1 && typeof allowMissing !== "boolean") {
1654
1608
  throw new $TypeError$3('"allowMissing" argument must be a boolean');
1655
1609
  }
1656
- if ($exec(/^%?[^%]*%?$/, name2) === null) {
1610
+ if ($exec(/^%?[^%]*%?$/, name) === null) {
1657
1611
  throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1658
1612
  }
1659
- var parts = stringToPath(name2);
1613
+ var parts = stringToPath(name);
1660
1614
  var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
1661
1615
  var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
1662
1616
  var intrinsicRealName = intrinsic.name;
@@ -1684,7 +1638,7 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
1684
1638
  } else if (value != null) {
1685
1639
  if (!(part in value)) {
1686
1640
  if (!allowMissing) {
1687
- throw new $TypeError$3("base intrinsic for " + name2 + " exists, but the property is not available.");
1641
+ throw new $TypeError$3("base intrinsic for " + name + " exists, but the property is not available.");
1688
1642
  }
1689
1643
  return void 0;
1690
1644
  }
@@ -1866,9 +1820,9 @@ var setFunctionLength = function setFunctionLength2(fn, length) {
1866
1820
  var GetIntrinsic$1 = getIntrinsic;
1867
1821
  var callBind = callBind$1.exports;
1868
1822
  var $indexOf = callBind(GetIntrinsic$1("String.prototype.indexOf"));
1869
- var callBound$1 = function callBoundIntrinsic(name2, allowMissing) {
1870
- var intrinsic = GetIntrinsic$1(name2, !!allowMissing);
1871
- if (typeof intrinsic === "function" && $indexOf(name2, ".prototype.") > -1) {
1823
+ var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
1824
+ var intrinsic = GetIntrinsic$1(name, !!allowMissing);
1825
+ if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
1872
1826
  return callBind(intrinsic);
1873
1827
  }
1874
1828
  return intrinsic;
@@ -2005,9 +1959,9 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
2005
1959
  return inspect_(value, opts, depth + 1, seen);
2006
1960
  }
2007
1961
  if (typeof obj === "function" && !isRegExp$2(obj)) {
2008
- var name2 = nameOf(obj);
1962
+ var name = nameOf(obj);
2009
1963
  var keys = arrObjKeys(obj, inspect2);
2010
- return "[Function" + (name2 ? ": " + name2 : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
1964
+ return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
2011
1965
  }
2012
1966
  if (isSymbol(obj)) {
2013
1967
  var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
@@ -2536,7 +2490,7 @@ var compactQueue = function compactQueue2(queue) {
2536
2490
  }
2537
2491
  };
2538
2492
  var arrayToObject = function arrayToObject2(source2, options) {
2539
- var obj = options && options.plainObjects ? { __proto__: null } : {};
2493
+ var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2540
2494
  for (var i = 0; i < source2.length; ++i) {
2541
2495
  if (typeof source2[i] !== "undefined") {
2542
2496
  obj[i] = source2[i];
@@ -2548,7 +2502,7 @@ var merge = function merge2(target, source2, options) {
2548
2502
  if (!source2) {
2549
2503
  return target;
2550
2504
  }
2551
- if (typeof source2 !== "object" && typeof source2 !== "function") {
2505
+ if (typeof source2 !== "object") {
2552
2506
  if (isArray$3(target)) {
2553
2507
  target.push(source2);
2554
2508
  } else if (target && typeof target === "object") {
@@ -2598,7 +2552,7 @@ var assign = function assignSingleSource(target, source2) {
2598
2552
  return acc;
2599
2553
  }, target);
2600
2554
  };
2601
- var decode = function(str, defaultDecoder, charset) {
2555
+ var decode = function(str, decoder, charset) {
2602
2556
  var strWithoutPlus = str.replace(/\+/g, " ");
2603
2557
  if (charset === "iso-8859-1") {
2604
2558
  return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -2609,7 +2563,6 @@ var decode = function(str, defaultDecoder, charset) {
2609
2563
  return strWithoutPlus;
2610
2564
  }
2611
2565
  };
2612
- var limit = 1024;
2613
2566
  var encode = function encode2(str, defaultEncoder, charset, kind, format) {
2614
2567
  if (str.length === 0) {
2615
2568
  return str;
@@ -2626,32 +2579,27 @@ var encode = function encode2(str, defaultEncoder, charset, kind, format) {
2626
2579
  });
2627
2580
  }
2628
2581
  var out = "";
2629
- for (var j = 0; j < string.length; j += limit) {
2630
- var segment = string.length >= limit ? string.slice(j, j + limit) : string;
2631
- var arr = [];
2632
- for (var i = 0; i < segment.length; ++i) {
2633
- var c = segment.charCodeAt(i);
2634
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats$2.RFC1738 && (c === 40 || c === 41)) {
2635
- arr[arr.length] = segment.charAt(i);
2636
- continue;
2637
- }
2638
- if (c < 128) {
2639
- arr[arr.length] = hexTable[c];
2640
- continue;
2641
- }
2642
- if (c < 2048) {
2643
- arr[arr.length] = hexTable[192 | c >> 6] + hexTable[128 | c & 63];
2644
- continue;
2645
- }
2646
- if (c < 55296 || c >= 57344) {
2647
- arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
2648
- continue;
2649
- }
2650
- i += 1;
2651
- c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
2652
- arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
2582
+ for (var i = 0; i < string.length; ++i) {
2583
+ var c = string.charCodeAt(i);
2584
+ if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats$2.RFC1738 && (c === 40 || c === 41)) {
2585
+ out += string.charAt(i);
2586
+ continue;
2653
2587
  }
2654
- out += arr.join("");
2588
+ if (c < 128) {
2589
+ out = out + hexTable[c];
2590
+ continue;
2591
+ }
2592
+ if (c < 2048) {
2593
+ out = out + (hexTable[192 | c >> 6] + hexTable[128 | c & 63]);
2594
+ continue;
2595
+ }
2596
+ if (c < 55296 || c >= 57344) {
2597
+ out = out + (hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]);
2598
+ continue;
2599
+ }
2600
+ i += 1;
2601
+ c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
2602
+ out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
2655
2603
  }
2656
2604
  return out;
2657
2605
  };
@@ -2734,17 +2682,12 @@ var defaultFormat = formats$1["default"];
2734
2682
  var defaults$1 = {
2735
2683
  addQueryPrefix: false,
2736
2684
  allowDots: false,
2737
- allowEmptyArrays: false,
2738
- arrayFormat: "indices",
2739
2685
  charset: "utf-8",
2740
2686
  charsetSentinel: false,
2741
- commaRoundTrip: false,
2742
2687
  delimiter: "&",
2743
2688
  encode: true,
2744
- encodeDotInKeys: false,
2745
2689
  encoder: utils$1.encode,
2746
2690
  encodeValuesOnly: false,
2747
- filter: void 0,
2748
2691
  format: defaultFormat,
2749
2692
  formatter: formats$1.formatters[defaultFormat],
2750
2693
  indices: false,
@@ -2758,7 +2701,7 @@ var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
2758
2701
  return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
2759
2702
  };
2760
2703
  var sentinel = {};
2761
- var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaRoundTrip, allowEmptyArrays, strictNullHandling, skipNulls, encodeDotInKeys, encoder, filter, sort, allowDots, serializeDate2, format, formatter, encodeValuesOnly, charset, sideChannel2) {
2704
+ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate2, format, formatter, encodeValuesOnly, charset, sideChannel2) {
2762
2705
  var obj = object;
2763
2706
  var tmpSc = sideChannel2;
2764
2707
  var step = 0;
@@ -2818,19 +2761,14 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
2818
2761
  var keys = Object.keys(obj);
2819
2762
  objKeys = sort ? keys.sort(sort) : keys;
2820
2763
  }
2821
- var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
2822
- var adjustedPrefix = commaRoundTrip && isArray$2(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
2823
- if (allowEmptyArrays && isArray$2(obj) && obj.length === 0) {
2824
- return adjustedPrefix + "[]";
2825
- }
2764
+ var adjustedPrefix = commaRoundTrip && isArray$2(obj) && obj.length === 1 ? prefix + "[]" : prefix;
2826
2765
  for (var j = 0; j < objKeys.length; ++j) {
2827
2766
  var key = objKeys[j];
2828
- var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
2767
+ var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
2829
2768
  if (skipNulls && value === null) {
2830
2769
  continue;
2831
2770
  }
2832
- var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
2833
- var keyPrefix = isArray$2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
2771
+ var keyPrefix = isArray$2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
2834
2772
  sideChannel2.set(object, step);
2835
2773
  var valueSideChannel = getSideChannel2();
2836
2774
  valueSideChannel.set(sentinel, sideChannel2);
@@ -2839,10 +2777,8 @@ var stringify$1 = function stringify(object, prefix, generateArrayPrefix, commaR
2839
2777
  keyPrefix,
2840
2778
  generateArrayPrefix,
2841
2779
  commaRoundTrip,
2842
- allowEmptyArrays,
2843
2780
  strictNullHandling,
2844
2781
  skipNulls,
2845
- encodeDotInKeys,
2846
2782
  generateArrayPrefix === "comma" && encodeValuesOnly && isArray$2(obj) ? null : encoder,
2847
2783
  filter,
2848
2784
  sort,
@@ -2861,12 +2797,6 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
2861
2797
  if (!opts) {
2862
2798
  return defaults$1;
2863
2799
  }
2864
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
2865
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
2866
- }
2867
- if (typeof opts.encodeDotInKeys !== "undefined" && typeof opts.encodeDotInKeys !== "boolean") {
2868
- throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
2869
- }
2870
2800
  if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
2871
2801
  throw new TypeError("Encoder has to be a function.");
2872
2802
  }
@@ -2886,29 +2816,13 @@ var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
2886
2816
  if (typeof opts.filter === "function" || isArray$2(opts.filter)) {
2887
2817
  filter = opts.filter;
2888
2818
  }
2889
- var arrayFormat;
2890
- if (opts.arrayFormat in arrayPrefixGenerators) {
2891
- arrayFormat = opts.arrayFormat;
2892
- } else if ("indices" in opts) {
2893
- arrayFormat = opts.indices ? "indices" : "repeat";
2894
- } else {
2895
- arrayFormat = defaults$1.arrayFormat;
2896
- }
2897
- if ("commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
2898
- throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2899
- }
2900
- var allowDots = typeof opts.allowDots === "undefined" ? opts.encodeDotInKeys === true ? true : defaults$1.allowDots : !!opts.allowDots;
2901
2819
  return {
2902
2820
  addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
2903
- allowDots,
2904
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults$1.allowEmptyArrays,
2905
- arrayFormat,
2821
+ allowDots: typeof opts.allowDots === "undefined" ? defaults$1.allowDots : !!opts.allowDots,
2906
2822
  charset,
2907
2823
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults$1.charsetSentinel,
2908
- commaRoundTrip: !!opts.commaRoundTrip,
2909
2824
  delimiter: typeof opts.delimiter === "undefined" ? defaults$1.delimiter : opts.delimiter,
2910
2825
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults$1.encode,
2911
- encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults$1.encodeDotInKeys,
2912
2826
  encoder: typeof opts.encoder === "function" ? opts.encoder : defaults$1.encoder,
2913
2827
  encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
2914
2828
  filter,
@@ -2936,8 +2850,19 @@ var stringify_1 = function(object, opts) {
2936
2850
  if (typeof obj !== "object" || obj === null) {
2937
2851
  return "";
2938
2852
  }
2939
- var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
2940
- var commaRoundTrip = generateArrayPrefix === "comma" && options.commaRoundTrip;
2853
+ var arrayFormat;
2854
+ if (opts && opts.arrayFormat in arrayPrefixGenerators) {
2855
+ arrayFormat = opts.arrayFormat;
2856
+ } else if (opts && "indices" in opts) {
2857
+ arrayFormat = opts.indices ? "indices" : "repeat";
2858
+ } else {
2859
+ arrayFormat = "indices";
2860
+ }
2861
+ var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
2862
+ if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
2863
+ throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
2864
+ }
2865
+ var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
2941
2866
  if (!objKeys) {
2942
2867
  objKeys = Object.keys(obj);
2943
2868
  }
@@ -2947,19 +2872,16 @@ var stringify_1 = function(object, opts) {
2947
2872
  var sideChannel2 = getSideChannel2();
2948
2873
  for (var i = 0; i < objKeys.length; ++i) {
2949
2874
  var key = objKeys[i];
2950
- var value = obj[key];
2951
- if (options.skipNulls && value === null) {
2875
+ if (options.skipNulls && obj[key] === null) {
2952
2876
  continue;
2953
2877
  }
2954
2878
  pushToArray(keys, stringify$1(
2955
- value,
2879
+ obj[key],
2956
2880
  key,
2957
2881
  generateArrayPrefix,
2958
2882
  commaRoundTrip,
2959
- options.allowEmptyArrays,
2960
2883
  options.strictNullHandling,
2961
2884
  options.skipNulls,
2962
- options.encodeDotInKeys,
2963
2885
  options.encode ? options.encoder : null,
2964
2886
  options.filter,
2965
2887
  options.sort,
@@ -2988,39 +2910,31 @@ var has = Object.prototype.hasOwnProperty;
2988
2910
  var isArray$1 = Array.isArray;
2989
2911
  var defaults = {
2990
2912
  allowDots: false,
2991
- allowEmptyArrays: false,
2992
2913
  allowPrototypes: false,
2993
2914
  allowSparse: false,
2994
2915
  arrayLimit: 20,
2995
2916
  charset: "utf-8",
2996
2917
  charsetSentinel: false,
2997
2918
  comma: false,
2998
- decodeDotInKeys: false,
2999
2919
  decoder: utils.decode,
3000
2920
  delimiter: "&",
3001
2921
  depth: 5,
3002
- duplicates: "combine",
3003
2922
  ignoreQueryPrefix: false,
3004
2923
  interpretNumericEntities: false,
3005
2924
  parameterLimit: 1e3,
3006
2925
  parseArrays: true,
3007
2926
  plainObjects: false,
3008
- strictDepth: false,
3009
- strictNullHandling: false,
3010
- throwOnLimitExceeded: false
2927
+ strictNullHandling: false
3011
2928
  };
3012
2929
  var interpretNumericEntities = function(str) {
3013
2930
  return str.replace(/&#(\d+);/g, function($0, numberStr) {
3014
2931
  return String.fromCharCode(parseInt(numberStr, 10));
3015
2932
  });
3016
2933
  };
3017
- var parseArrayValue = function(val, options, currentArrayLength) {
2934
+ var parseArrayValue = function(val, options) {
3018
2935
  if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
3019
2936
  return val.split(",");
3020
2937
  }
3021
- if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
3022
- throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
3023
- }
3024
2938
  return val;
3025
2939
  };
3026
2940
  var isoSentinel = "utf8=%26%2310003%3B";
@@ -3028,15 +2942,8 @@ var charsetSentinel = "utf8=%E2%9C%93";
3028
2942
  var parseValues = function parseQueryStringValues(str, options) {
3029
2943
  var obj = { __proto__: null };
3030
2944
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
3031
- cleanStr = cleanStr.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3032
- var limit2 = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
3033
- var parts = cleanStr.split(
3034
- options.delimiter,
3035
- options.throwOnLimitExceeded ? limit2 + 1 : limit2
3036
- );
3037
- if (options.throwOnLimitExceeded && parts.length > limit2) {
3038
- throw new RangeError("Parameter limit exceeded. Only " + limit2 + " parameter" + (limit2 === 1 ? "" : "s") + " allowed.");
3039
- }
2945
+ var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
2946
+ var parts = cleanStr.split(options.delimiter, limit);
3040
2947
  var skipIndex = -1;
3041
2948
  var i;
3042
2949
  var charset = options.charset;
@@ -3060,63 +2967,51 @@ var parseValues = function parseQueryStringValues(str, options) {
3060
2967
  var part = parts[i];
3061
2968
  var bracketEqualsPos = part.indexOf("]=");
3062
2969
  var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
3063
- var key;
3064
- var val;
2970
+ var key, val;
3065
2971
  if (pos === -1) {
3066
2972
  key = options.decoder(part, defaults.decoder, charset, "key");
3067
2973
  val = options.strictNullHandling ? null : "";
3068
2974
  } else {
3069
2975
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
3070
2976
  val = utils.maybeMap(
3071
- parseArrayValue(
3072
- part.slice(pos + 1),
3073
- options,
3074
- isArray$1(obj[key]) ? obj[key].length : 0
3075
- ),
2977
+ parseArrayValue(part.slice(pos + 1), options),
3076
2978
  function(encodedVal) {
3077
2979
  return options.decoder(encodedVal, defaults.decoder, charset, "value");
3078
2980
  }
3079
2981
  );
3080
2982
  }
3081
2983
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
3082
- val = interpretNumericEntities(String(val));
2984
+ val = interpretNumericEntities(val);
3083
2985
  }
3084
2986
  if (part.indexOf("[]=") > -1) {
3085
2987
  val = isArray$1(val) ? [val] : val;
3086
2988
  }
3087
- var existing = has.call(obj, key);
3088
- if (existing && options.duplicates === "combine") {
2989
+ if (has.call(obj, key)) {
3089
2990
  obj[key] = utils.combine(obj[key], val);
3090
- } else if (!existing || options.duplicates === "last") {
2991
+ } else {
3091
2992
  obj[key] = val;
3092
2993
  }
3093
2994
  }
3094
2995
  return obj;
3095
2996
  };
3096
2997
  var parseObject = function(chain, val, options, valuesParsed) {
3097
- var currentArrayLength = 0;
3098
- if (chain.length > 0 && chain[chain.length - 1] === "[]") {
3099
- var parentKey = chain.slice(0, -1).join("");
3100
- currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
3101
- }
3102
- var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
2998
+ var leaf = valuesParsed ? val : parseArrayValue(val, options);
3103
2999
  for (var i = chain.length - 1; i >= 0; --i) {
3104
3000
  var obj;
3105
3001
  var root = chain[i];
3106
3002
  if (root === "[]" && options.parseArrays) {
3107
- obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : utils.combine([], leaf);
3003
+ obj = [].concat(leaf);
3108
3004
  } else {
3109
- obj = options.plainObjects ? { __proto__: null } : {};
3005
+ obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3110
3006
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
3111
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
3112
- var index = parseInt(decodedRoot, 10);
3113
- if (!options.parseArrays && decodedRoot === "") {
3007
+ var index = parseInt(cleanRoot, 10);
3008
+ if (!options.parseArrays && cleanRoot === "") {
3114
3009
  obj = { 0: leaf };
3115
- } else if (!isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
3010
+ } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
3116
3011
  obj = [];
3117
3012
  obj[index] = leaf;
3118
- } else if (decodedRoot !== "__proto__") {
3119
- obj[decodedRoot] = leaf;
3013
+ } else if (cleanRoot !== "__proto__") {
3014
+ obj[cleanRoot] = leaf;
3120
3015
  }
3121
3016
  }
3122
3017
  leaf = obj;
@@ -3152,9 +3047,6 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
3152
3047
  keys.push(segment[1]);
3153
3048
  }
3154
3049
  if (segment) {
3155
- if (options.strictDepth === true) {
3156
- throw new RangeError("Input depth exceeded depth option of " + options.depth + " and strictDepth is true");
3157
- }
3158
3050
  keys.push("[" + key.slice(segment.index) + "]");
3159
3051
  }
3160
3052
  return parseObject(keys, val, options, valuesParsed);
@@ -3163,58 +3055,39 @@ var normalizeParseOptions = function normalizeParseOptions2(opts) {
3163
3055
  if (!opts) {
3164
3056
  return defaults;
3165
3057
  }
3166
- if (typeof opts.allowEmptyArrays !== "undefined" && typeof opts.allowEmptyArrays !== "boolean") {
3167
- throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3168
- }
3169
- if (typeof opts.decodeDotInKeys !== "undefined" && typeof opts.decodeDotInKeys !== "boolean") {
3170
- throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
3171
- }
3172
- if (opts.decoder !== null && typeof opts.decoder !== "undefined" && typeof opts.decoder !== "function") {
3058
+ if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
3173
3059
  throw new TypeError("Decoder has to be a function.");
3174
3060
  }
3175
3061
  if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
3176
3062
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3177
3063
  }
3178
- if (typeof opts.throwOnLimitExceeded !== "undefined" && typeof opts.throwOnLimitExceeded !== "boolean") {
3179
- throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
3180
- }
3181
3064
  var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
3182
- var duplicates = typeof opts.duplicates === "undefined" ? defaults.duplicates : opts.duplicates;
3183
- if (duplicates !== "combine" && duplicates !== "first" && duplicates !== "last") {
3184
- throw new TypeError("The duplicates option must be either combine, first, or last");
3185
- }
3186
- var allowDots = typeof opts.allowDots === "undefined" ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
3187
3065
  return {
3188
- allowDots,
3189
- allowEmptyArrays: typeof opts.allowEmptyArrays === "boolean" ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
3066
+ allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
3190
3067
  allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
3191
3068
  allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
3192
3069
  arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
3193
3070
  charset,
3194
3071
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
3195
3072
  comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
3196
- decodeDotInKeys: typeof opts.decodeDotInKeys === "boolean" ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
3197
3073
  decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
3198
3074
  delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
3199
3075
  depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
3200
- duplicates,
3201
3076
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
3202
3077
  interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
3203
3078
  parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
3204
3079
  parseArrays: opts.parseArrays !== false,
3205
3080
  plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
3206
- strictDepth: typeof opts.strictDepth === "boolean" ? !!opts.strictDepth : defaults.strictDepth,
3207
- strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling,
3208
- throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === "boolean" ? opts.throwOnLimitExceeded : false
3081
+ strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
3209
3082
  };
3210
3083
  };
3211
3084
  var parse$1 = function(str, opts) {
3212
3085
  var options = normalizeParseOptions(opts);
3213
3086
  if (str === "" || str === null || typeof str === "undefined") {
3214
- return options.plainObjects ? { __proto__: null } : {};
3087
+ return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3215
3088
  }
3216
3089
  var tempObj = typeof str === "string" ? parseValues(str, options) : str;
3217
- var obj = options.plainObjects ? { __proto__: null } : {};
3090
+ var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
3218
3091
  var keys = Object.keys(tempObj);
3219
3092
  for (var i = 0; i < keys.length; ++i) {
3220
3093
  var key = keys[i];
@@ -3234,7 +3107,6 @@ var lib = {
3234
3107
  parse,
3235
3108
  stringify: stringify2
3236
3109
  };
3237
- var qs = lib;
3238
3110
  function getUrlParams() {
3239
3111
  const url = location.search;
3240
3112
  const theRequest = new Object();
@@ -3394,7 +3266,7 @@ function requestInterceptors(config2) {
3394
3266
  const contentType = getContentType(config2.headers);
3395
3267
  if (config2.method === "post") {
3396
3268
  if (contentType === CONTENT_TYPE.form) {
3397
- config2.data = qs.stringify(config2.data);
3269
+ config2.data = lib.stringify(config2.data);
3398
3270
  }
3399
3271
  } else if (config2.method === "get")
3400
3272
  ;
@@ -3402,23 +3274,23 @@ function requestInterceptors(config2) {
3402
3274
  }
3403
3275
  function responseInterceptors(response) {
3404
3276
  var _a;
3405
- let data = response.data;
3277
+ let data2 = response.data;
3406
3278
  const contentType = getContentType(response.headers);
3407
3279
  if (contentType !== CONTENT_TYPE.json) {
3408
- return data;
3280
+ return data2;
3409
3281
  }
3410
3282
  if (typeof response.data === "string") {
3411
- data = JSON.parse(response.data);
3283
+ data2 = JSON.parse(response.data);
3412
3284
  }
3413
- const code = data.code;
3285
+ const code = data2.code;
3414
3286
  switch (code) {
3415
3287
  case SUCCESS_CODE: {
3416
- if (sessionStorage.getItem("isFromIM") == "1" && ((_a = data == null ? void 0 : data.extInfo) == null ? void 0 : _a.handleTask)) {
3288
+ if (sessionStorage.getItem("isFromIM") == "1" && ((_a = data2 == null ? void 0 : data2.extInfo) == null ? void 0 : _a.handleTask)) {
3417
3289
  if (typeof window.native != "undefined") {
3418
3290
  window.native.goHome();
3419
3291
  }
3420
3292
  }
3421
- return data;
3293
+ return data2;
3422
3294
  }
3423
3295
  case NO_SESSION_CODE: {
3424
3296
  _debounce(function() {
@@ -3427,11 +3299,11 @@ function responseInterceptors(response) {
3427
3299
  break;
3428
3300
  }
3429
3301
  default: {
3430
- let msg = data.message || data.msg || config.errorMessage;
3302
+ let msg = data2.message || data2.msg || config.errorMessage;
3431
3303
  window.apiErrorHandler && window.apiErrorHandler(msg);
3432
3304
  }
3433
3305
  }
3434
- return Promise.reject(data);
3306
+ return Promise.reject(data2);
3435
3307
  }
3436
3308
  function inspectorError(error) {
3437
3309
  var _a;
@@ -3445,10 +3317,10 @@ function inspectorError(error) {
3445
3317
  const instance = axios.create({ timeout: 5 * 60 * 1e3 });
3446
3318
  instance.interceptors.request.use(requestInterceptors, inspectorError);
3447
3319
  instance.interceptors.response.use(responseInterceptors, inspectorError);
3448
- instance.formPost = function(url, data, config2) {
3320
+ instance.formPost = function(url, data2, config2) {
3449
3321
  const headers = (config2 == null ? void 0 : config2.headers) || {};
3450
3322
  setContentType(headers, CONTENT_TYPE.form);
3451
- return instance.post(url, data, __spreadProps(__spreadValues({}, config2), { headers }));
3323
+ return instance.post(url, data2, __spreadProps(__spreadValues({}, config2), { headers }));
3452
3324
  };
3453
3325
  const wrapApi = (api) => {
3454
3326
  let currentController = null;
@@ -4497,7 +4369,7 @@ var lodash = { exports: {} };
4497
4369
  (function(module, exports) {
4498
4370
  (function() {
4499
4371
  var undefined$12;
4500
- var VERSION = "4.17.21";
4372
+ var VERSION2 = "4.17.21";
4501
4373
  var LARGE_ARRAY_SIZE = 200;
4502
4374
  var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`";
4503
4375
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
@@ -5092,9 +4964,9 @@ var lodash = { exports: {} };
5092
4964
  return reHasUnicodeWord.test(string);
5093
4965
  }
5094
4966
  function iteratorToArray(iterator) {
5095
- var data, result = [];
5096
- while (!(data = iterator.next()).done) {
5097
- result.push(data.value);
4967
+ var data2, result = [];
4968
+ while (!(data2 = iterator.next()).done) {
4969
+ result.push(data2.value);
5098
4970
  }
5099
4971
  return result;
5100
4972
  }
@@ -5303,7 +5175,7 @@ var lodash = { exports: {} };
5303
5175
  index += dir;
5304
5176
  var iterIndex = -1, value = array[index];
5305
5177
  while (++iterIndex < iterLength) {
5306
- var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value);
5178
+ var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type = data2.type, computed = iteratee2(value);
5307
5179
  if (type == LAZY_MAP_FLAG) {
5308
5180
  value = computed;
5309
5181
  } else if (!computed) {
@@ -5338,21 +5210,21 @@ var lodash = { exports: {} };
5338
5210
  return result2;
5339
5211
  }
5340
5212
  function hashGet(key) {
5341
- var data = this.__data__;
5213
+ var data2 = this.__data__;
5342
5214
  if (nativeCreate) {
5343
- var result2 = data[key];
5215
+ var result2 = data2[key];
5344
5216
  return result2 === HASH_UNDEFINED ? undefined$12 : result2;
5345
5217
  }
5346
- return hasOwnProperty2.call(data, key) ? data[key] : undefined$12;
5218
+ return hasOwnProperty2.call(data2, key) ? data2[key] : undefined$12;
5347
5219
  }
5348
5220
  function hashHas(key) {
5349
- var data = this.__data__;
5350
- return nativeCreate ? data[key] !== undefined$12 : hasOwnProperty2.call(data, key);
5221
+ var data2 = this.__data__;
5222
+ return nativeCreate ? data2[key] !== undefined$12 : hasOwnProperty2.call(data2, key);
5351
5223
  }
5352
5224
  function hashSet(key, value) {
5353
- var data = this.__data__;
5225
+ var data2 = this.__data__;
5354
5226
  this.size += this.has(key) ? 0 : 1;
5355
- data[key] = nativeCreate && value === undefined$12 ? HASH_UNDEFINED : value;
5227
+ data2[key] = nativeCreate && value === undefined$12 ? HASH_UNDEFINED : value;
5356
5228
  return this;
5357
5229
  }
5358
5230
  Hash.prototype.clear = hashClear;
@@ -5373,33 +5245,33 @@ var lodash = { exports: {} };
5373
5245
  this.size = 0;
5374
5246
  }
5375
5247
  function listCacheDelete(key) {
5376
- var data = this.__data__, index = assocIndexOf(data, key);
5248
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
5377
5249
  if (index < 0) {
5378
5250
  return false;
5379
5251
  }
5380
- var lastIndex = data.length - 1;
5252
+ var lastIndex = data2.length - 1;
5381
5253
  if (index == lastIndex) {
5382
- data.pop();
5254
+ data2.pop();
5383
5255
  } else {
5384
- splice.call(data, index, 1);
5256
+ splice.call(data2, index, 1);
5385
5257
  }
5386
5258
  --this.size;
5387
5259
  return true;
5388
5260
  }
5389
5261
  function listCacheGet(key) {
5390
- var data = this.__data__, index = assocIndexOf(data, key);
5391
- return index < 0 ? undefined$12 : data[index][1];
5262
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
5263
+ return index < 0 ? undefined$12 : data2[index][1];
5392
5264
  }
5393
5265
  function listCacheHas(key) {
5394
5266
  return assocIndexOf(this.__data__, key) > -1;
5395
5267
  }
5396
5268
  function listCacheSet(key, value) {
5397
- var data = this.__data__, index = assocIndexOf(data, key);
5269
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
5398
5270
  if (index < 0) {
5399
5271
  ++this.size;
5400
- data.push([key, value]);
5272
+ data2.push([key, value]);
5401
5273
  } else {
5402
- data[index][1] = value;
5274
+ data2[index][1] = value;
5403
5275
  }
5404
5276
  return this;
5405
5277
  }
@@ -5436,9 +5308,9 @@ var lodash = { exports: {} };
5436
5308
  return getMapData(this, key).has(key);
5437
5309
  }
5438
5310
  function mapCacheSet(key, value) {
5439
- var data = getMapData(this, key), size2 = data.size;
5440
- data.set(key, value);
5441
- this.size += data.size == size2 ? 0 : 1;
5311
+ var data2 = getMapData(this, key), size2 = data2.size;
5312
+ data2.set(key, value);
5313
+ this.size += data2.size == size2 ? 0 : 1;
5442
5314
  return this;
5443
5315
  }
5444
5316
  MapCache.prototype.clear = mapCacheClear;
@@ -5463,16 +5335,16 @@ var lodash = { exports: {} };
5463
5335
  SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
5464
5336
  SetCache.prototype.has = setCacheHas;
5465
5337
  function Stack(entries) {
5466
- var data = this.__data__ = new ListCache(entries);
5467
- this.size = data.size;
5338
+ var data2 = this.__data__ = new ListCache(entries);
5339
+ this.size = data2.size;
5468
5340
  }
5469
5341
  function stackClear() {
5470
5342
  this.__data__ = new ListCache();
5471
5343
  this.size = 0;
5472
5344
  }
5473
5345
  function stackDelete(key) {
5474
- var data = this.__data__, result2 = data["delete"](key);
5475
- this.size = data.size;
5346
+ var data2 = this.__data__, result2 = data2["delete"](key);
5347
+ this.size = data2.size;
5476
5348
  return result2;
5477
5349
  }
5478
5350
  function stackGet(key) {
@@ -5482,18 +5354,18 @@ var lodash = { exports: {} };
5482
5354
  return this.__data__.has(key);
5483
5355
  }
5484
5356
  function stackSet(key, value) {
5485
- var data = this.__data__;
5486
- if (data instanceof ListCache) {
5487
- var pairs = data.__data__;
5357
+ var data2 = this.__data__;
5358
+ if (data2 instanceof ListCache) {
5359
+ var pairs = data2.__data__;
5488
5360
  if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
5489
5361
  pairs.push([key, value]);
5490
- this.size = ++data.size;
5362
+ this.size = ++data2.size;
5491
5363
  return this;
5492
5364
  }
5493
- data = this.__data__ = new MapCache(pairs);
5365
+ data2 = this.__data__ = new MapCache(pairs);
5494
5366
  }
5495
- data.set(key, value);
5496
- this.size = data.size;
5367
+ data2.set(key, value);
5368
+ this.size = data2.size;
5497
5369
  return this;
5498
5370
  }
5499
5371
  Stack.prototype.clear = stackClear;
@@ -5912,15 +5784,15 @@ var lodash = { exports: {} };
5912
5784
  }
5913
5785
  object = Object2(object);
5914
5786
  while (index--) {
5915
- var data = matchData[index];
5916
- if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
5787
+ var data2 = matchData[index];
5788
+ if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) {
5917
5789
  return false;
5918
5790
  }
5919
5791
  }
5920
5792
  while (++index < length) {
5921
- data = matchData[index];
5922
- var key = data[0], objValue = object[key], srcValue = data[1];
5923
- if (noCustomizer && data[2]) {
5793
+ data2 = matchData[index];
5794
+ var key = data2[0], objValue = object[key], srcValue = data2[1];
5795
+ if (noCustomizer && data2[2]) {
5924
5796
  if (objValue === undefined$12 && !(key in object)) {
5925
5797
  return false;
5926
5798
  }
@@ -6223,8 +6095,8 @@ var lodash = { exports: {} };
6223
6095
  }
6224
6096
  return object;
6225
6097
  }
6226
- var baseSetData = !metaMap ? identity : function(func, data) {
6227
- metaMap.set(func, data);
6098
+ var baseSetData = !metaMap ? identity : function(func, data2) {
6099
+ metaMap.set(func, data2);
6228
6100
  return func;
6229
6101
  };
6230
6102
  var baseSetToString = !defineProperty ? identity : function(func, string) {
@@ -6728,9 +6600,9 @@ var lodash = { exports: {} };
6728
6600
  index = wrapper ? index : length;
6729
6601
  while (++index < length) {
6730
6602
  func = funcs[index];
6731
- var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$12;
6732
- if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
6733
- wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
6603
+ var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$12;
6604
+ if (data2 && isLaziable(data2[0]) && data2[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data2[4].length && data2[9] == 1) {
6605
+ wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
6734
6606
  } else {
6735
6607
  wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func);
6736
6608
  }
@@ -6957,7 +6829,7 @@ var lodash = { exports: {} };
6957
6829
  var partialsRight = partials, holdersRight = holders;
6958
6830
  partials = holders = undefined$12;
6959
6831
  }
6960
- var data = isBindKey ? undefined$12 : getData(func);
6832
+ var data2 = isBindKey ? undefined$12 : getData(func);
6961
6833
  var newData = [
6962
6834
  func,
6963
6835
  bitmask,
@@ -6970,8 +6842,8 @@ var lodash = { exports: {} };
6970
6842
  ary2,
6971
6843
  arity
6972
6844
  ];
6973
- if (data) {
6974
- mergeData(newData, data);
6845
+ if (data2) {
6846
+ mergeData(newData, data2);
6975
6847
  }
6976
6848
  func = newData[0];
6977
6849
  bitmask = newData[1];
@@ -6991,7 +6863,7 @@ var lodash = { exports: {} };
6991
6863
  } else {
6992
6864
  result2 = createHybrid.apply(undefined$12, newData);
6993
6865
  }
6994
- var setter = data ? baseSetData : setData;
6866
+ var setter = data2 ? baseSetData : setData;
6995
6867
  return setWrapToString(setter(result2, newData), func, bitmask);
6996
6868
  }
6997
6869
  function customDefaultsAssignIn(objValue, srcValue, key, object) {
@@ -7158,9 +7030,9 @@ var lodash = { exports: {} };
7158
7030
  function getFuncName(func) {
7159
7031
  var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty2.call(realNames, result2) ? array.length : 0;
7160
7032
  while (length--) {
7161
- var data = array[length], otherFunc = data.func;
7033
+ var data2 = array[length], otherFunc = data2.func;
7162
7034
  if (otherFunc == null || otherFunc == func) {
7163
- return data.name;
7035
+ return data2.name;
7164
7036
  }
7165
7037
  }
7166
7038
  return result2;
@@ -7175,8 +7047,8 @@ var lodash = { exports: {} };
7175
7047
  return arguments.length ? result2(arguments[0], arguments[1]) : result2;
7176
7048
  }
7177
7049
  function getMapData(map2, key) {
7178
- var data = map2.__data__;
7179
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
7050
+ var data2 = map2.__data__;
7051
+ return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
7180
7052
  }
7181
7053
  function getMatchData(object) {
7182
7054
  var result2 = keys(object), length = result2.length;
@@ -7248,8 +7120,8 @@ var lodash = { exports: {} };
7248
7120
  function getView(start, end, transforms) {
7249
7121
  var index = -1, length = transforms.length;
7250
7122
  while (++index < length) {
7251
- var data = transforms[index], size2 = data.size;
7252
- switch (data.type) {
7123
+ var data2 = transforms[index], size2 = data2.size;
7124
+ switch (data2.type) {
7253
7125
  case "drop":
7254
7126
  start += size2;
7255
7127
  break;
@@ -7380,8 +7252,8 @@ var lodash = { exports: {} };
7380
7252
  if (func === other) {
7381
7253
  return true;
7382
7254
  }
7383
- var data = getData(other);
7384
- return !!data && func === data[0];
7255
+ var data2 = getData(other);
7256
+ return !!data2 && func === data2[0];
7385
7257
  }
7386
7258
  function isMasked(func) {
7387
7259
  return !!maskSrcKey && maskSrcKey in func;
@@ -7412,41 +7284,41 @@ var lodash = { exports: {} };
7412
7284
  var cache = result2.cache;
7413
7285
  return result2;
7414
7286
  }
7415
- function mergeData(data, source2) {
7416
- var bitmask = data[1], srcBitmask = source2[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
7417
- var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source2[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source2[7].length <= source2[8] && bitmask == WRAP_CURRY_FLAG;
7287
+ function mergeData(data2, source2) {
7288
+ var bitmask = data2[1], srcBitmask = source2[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
7289
+ var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data2[7].length <= source2[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source2[7].length <= source2[8] && bitmask == WRAP_CURRY_FLAG;
7418
7290
  if (!(isCommon || isCombo)) {
7419
- return data;
7291
+ return data2;
7420
7292
  }
7421
7293
  if (srcBitmask & WRAP_BIND_FLAG) {
7422
- data[2] = source2[2];
7294
+ data2[2] = source2[2];
7423
7295
  newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
7424
7296
  }
7425
7297
  var value = source2[3];
7426
7298
  if (value) {
7427
- var partials = data[3];
7428
- data[3] = partials ? composeArgs(partials, value, source2[4]) : value;
7429
- data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source2[4];
7299
+ var partials = data2[3];
7300
+ data2[3] = partials ? composeArgs(partials, value, source2[4]) : value;
7301
+ data2[4] = partials ? replaceHolders(data2[3], PLACEHOLDER) : source2[4];
7430
7302
  }
7431
7303
  value = source2[5];
7432
7304
  if (value) {
7433
- partials = data[5];
7434
- data[5] = partials ? composeArgsRight(partials, value, source2[6]) : value;
7435
- data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source2[6];
7305
+ partials = data2[5];
7306
+ data2[5] = partials ? composeArgsRight(partials, value, source2[6]) : value;
7307
+ data2[6] = partials ? replaceHolders(data2[5], PLACEHOLDER) : source2[6];
7436
7308
  }
7437
7309
  value = source2[7];
7438
7310
  if (value) {
7439
- data[7] = value;
7311
+ data2[7] = value;
7440
7312
  }
7441
7313
  if (srcBitmask & WRAP_ARY_FLAG) {
7442
- data[8] = data[8] == null ? source2[8] : nativeMin(data[8], source2[8]);
7314
+ data2[8] = data2[8] == null ? source2[8] : nativeMin(data2[8], source2[8]);
7443
7315
  }
7444
- if (data[9] == null) {
7445
- data[9] = source2[9];
7316
+ if (data2[9] == null) {
7317
+ data2[9] = source2[9];
7446
7318
  }
7447
- data[0] = source2[0];
7448
- data[1] = newBitmask;
7449
- return data;
7319
+ data2[0] = source2[0];
7320
+ data2[1] = newBitmask;
7321
+ return data2;
7450
7322
  }
7451
7323
  function nativeKeysIn(object) {
7452
7324
  var result2 = [];
@@ -8712,7 +8584,7 @@ var lodash = { exports: {} };
8712
8584
  copyObject(source2, keys(source2), object, customizer);
8713
8585
  });
8714
8586
  var at = flatRest(baseAt);
8715
- function create2(prototype, properties) {
8587
+ function create(prototype, properties) {
8716
8588
  var result2 = baseCreate(prototype);
8717
8589
  return properties == null ? result2 : baseAssign(result2, properties);
8718
8590
  }
@@ -9063,22 +8935,22 @@ var lodash = { exports: {} };
9063
8935
  var snakeCase = createCompounder(function(result2, word, index) {
9064
8936
  return result2 + (index ? "_" : "") + word.toLowerCase();
9065
8937
  });
9066
- function split(string, separator, limit2) {
9067
- if (limit2 && typeof limit2 != "number" && isIterateeCall(string, separator, limit2)) {
9068
- separator = limit2 = undefined$12;
8938
+ function split(string, separator, limit) {
8939
+ if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) {
8940
+ separator = limit = undefined$12;
9069
8941
  }
9070
- limit2 = limit2 === undefined$12 ? MAX_ARRAY_LENGTH : limit2 >>> 0;
9071
- if (!limit2) {
8942
+ limit = limit === undefined$12 ? MAX_ARRAY_LENGTH : limit >>> 0;
8943
+ if (!limit) {
9072
8944
  return [];
9073
8945
  }
9074
8946
  string = toString3(string);
9075
8947
  if (string && (typeof separator == "string" || separator != null && !isRegExp3(separator))) {
9076
8948
  separator = baseToString(separator);
9077
8949
  if (!separator && hasUnicode(string)) {
9078
- return castSlice(stringToArray(string), 0, limit2);
8950
+ return castSlice(stringToArray(string), 0, limit);
9079
8951
  }
9080
8952
  }
9081
- return string.split(separator, limit2);
8953
+ return string.split(separator, limit);
9082
8954
  }
9083
8955
  var startCase = createCompounder(function(result2, word, index) {
9084
8956
  return result2 + (index ? " " : "") + upperFirst(word);
@@ -9459,7 +9331,7 @@ var lodash = { exports: {} };
9459
9331
  lodash2.conforms = conforms;
9460
9332
  lodash2.constant = constant;
9461
9333
  lodash2.countBy = countBy;
9462
- lodash2.create = create2;
9334
+ lodash2.create = create;
9463
9335
  lodash2.curry = curry;
9464
9336
  lodash2.curryRight = curryRight;
9465
9337
  lodash2.debounce = debounce;
@@ -9754,7 +9626,7 @@ var lodash = { exports: {} };
9754
9626
  });
9755
9627
  return source2;
9756
9628
  }(), { "chain": false });
9757
- lodash2.VERSION = VERSION;
9629
+ lodash2.VERSION = VERSION2;
9758
9630
  arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) {
9759
9631
  lodash2[methodName].placeholder = lodash2;
9760
9632
  });
@@ -10822,7 +10694,7 @@ function renderHeaderTooltip({
10822
10694
  }
10823
10695
  return text;
10824
10696
  }
10825
- function renderColumnTree(data, columnGroup, option = {}) {
10697
+ function renderColumnTree(data2, columnGroup, option = {}) {
10826
10698
  var _b;
10827
10699
  const _a = columnGroup, {
10828
10700
  key,
@@ -10851,7 +10723,7 @@ function renderColumnTree(data, columnGroup, option = {}) {
10851
10723
  ]);
10852
10724
  const { keyPropName = "key", titlePropName = "title", keyPrefix = "", parents = [] } = option;
10853
10725
  if (keyProp) {
10854
- let columnUniqData = ((_b = _.uniqBy(data, columnGroup.keyProp)) == null ? void 0 : _b.filter((item) => !isNil(item[columnGroup.keyProp]))) || [];
10726
+ let columnUniqData = ((_b = _.uniqBy(data2, columnGroup.keyProp)) == null ? void 0 : _b.filter((item) => !isNil(item[columnGroup.keyProp]))) || [];
10855
10727
  if (sortProp) {
10856
10728
  const unSortData = columnUniqData.filter((item) => isNil(item[sortProp]));
10857
10729
  const sortData = columnUniqData.filter((item) => !isNil(item[sortProp]));
@@ -10862,7 +10734,7 @@ function renderColumnTree(data, columnGroup, option = {}) {
10862
10734
  if (children && children.length) {
10863
10735
  const prefix = `${keyPrefix}${keyProp}${VALUE_SEP}${item[keyProp]}${GROUP_SEP}`;
10864
10736
  const columnChildren = children.map((child) => {
10865
- let nextData = isLimitChildren ? data.filter((temp) => temp[keyProp] === item[keyProp]) : data;
10737
+ let nextData = isLimitChildren ? data2.filter((temp) => temp[keyProp] === item[keyProp]) : data2;
10866
10738
  return renderColumnTree(nextData, child, __spreadProps(__spreadValues({}, option), {
10867
10739
  keyPrefix: prefix,
10868
10740
  parents: [...parents, item]
@@ -10901,7 +10773,7 @@ function renderColumnTree(data, columnGroup, option = {}) {
10901
10773
  if (children && children.length) {
10902
10774
  const prefix = `${keyPrefix}${key || ""}`;
10903
10775
  const columnChildren = children.map((child) => {
10904
- return renderColumnTree(data, child, __spreadProps(__spreadValues({}, option), { keyPrefix: prefix }));
10776
+ return renderColumnTree(data2, child, __spreadProps(__spreadValues({}, option), { keyPrefix: prefix }));
10905
10777
  });
10906
10778
  return __spreadProps(__spreadValues({}, args), {
10907
10779
  [titlePropName]: title,
@@ -10926,7 +10798,7 @@ function getLeafColumns(columns = []) {
10926
10798
  }
10927
10799
  }, []);
10928
10800
  }
10929
- function renderRowData(data, keys) {
10801
+ function renderRowData(data2, keys) {
10930
10802
  var _a;
10931
10803
  if (!keys.length)
10932
10804
  return;
@@ -10934,13 +10806,13 @@ function renderRowData(data, keys) {
10934
10806
  keys = keys.slice(1);
10935
10807
  if (key.includes(VALUE_SEP) && keys.length) {
10936
10808
  const [keyProp, keyValue] = key.split(VALUE_SEP);
10937
- const matchData = _.filter(data, { [keyProp]: keyValue });
10809
+ const matchData = _.filter(data2, { [keyProp]: keyValue });
10938
10810
  return renderRowData(matchData, keys);
10939
10811
  }
10940
10812
  if (keys.length) {
10941
10813
  console.error("\u600E\u4E48\u4F1A\u4E0D\u662F\u6700\u540E\u4E00\u5C42\u5206\u7EC4\u5462\uFF0C\u8BF7\u8054\u7CFB\u5F00\u53D1\u4EBA\u5458\u67E5\u770B\uFF01");
10942
10814
  }
10943
- const value = (_a = data == null ? void 0 : data[0]) == null ? void 0 : _a[key];
10815
+ const value = (_a = data2 == null ? void 0 : data2[0]) == null ? void 0 : _a[key];
10944
10816
  return value;
10945
10817
  }
10946
10818
  function getRowKeyValue(item, rowKey) {
@@ -10980,19 +10852,19 @@ function renderSumColumns({ sumColumnDefs }) {
10980
10852
  }
10981
10853
  return columns;
10982
10854
  }
10983
- function row2column(data = [], columnGroups = [], rowKey, option = {}) {
10855
+ function row2column(data2 = [], columnGroups = [], rowKey, option = {}) {
10984
10856
  var _a;
10985
10857
  const columns = [];
10986
10858
  if (option.sumColumnDefs && option.sumColumnDefs.length) {
10987
10859
  columns.push(...renderSumColumns(option));
10988
10860
  }
10989
- const groupColumns = _.flatten(columnGroups.map((group) => renderColumnTree(data, group, option))) || [];
10861
+ const groupColumns = _.flatten(columnGroups.map((group) => renderColumnTree(data2, group, option))) || [];
10990
10862
  columns.push(...groupColumns);
10991
10863
  const leafColumns = getLeafColumns(columns);
10992
- const rowKeyUniqData = ((_a = _.uniqBy(data, (item) => getRowKeyValue(item, rowKey))) == null ? void 0 : _a.filter(
10864
+ const rowKeyUniqData = ((_a = _.uniqBy(data2, (item) => getRowKeyValue(item, rowKey))) == null ? void 0 : _a.filter(
10993
10865
  (item) => !isNil(getRowKeyValue(item, rowKey))
10994
10866
  )) || [];
10995
- const groupData = _.groupBy(data, (item) => getRowKeyValue(item, rowKey));
10867
+ const groupData = _.groupBy(data2, (item) => getRowKeyValue(item, rowKey));
10996
10868
  const rltData = rowKeyUniqData.map((item) => {
10997
10869
  const rowKeyValue = getRowKeyValue(item, rowKey);
10998
10870
  const rowGroupData = groupData[rowKeyValue] || [];
@@ -11052,9 +10924,9 @@ function flattenRowData(rowData = {}, leafColumns = [], option = {}) {
11052
10924
  });
11053
10925
  return rlt;
11054
10926
  }
11055
- function flattenRow2ColumnData(data = [], columns = [], option = {}) {
10927
+ function flattenRow2ColumnData(data2 = [], columns = [], option = {}) {
11056
10928
  const leafColumns = getLeafColumns(columns);
11057
- return data.reduce(
10929
+ return data2.reduce(
11058
10930
  (rlt, rowData) => [...rlt, ...flattenRowData(rowData, leafColumns, option)],
11059
10931
  []
11060
10932
  );
@@ -11198,8 +11070,8 @@ const DICT_KEY = "ind-dict_";
11198
11070
  function getDictCache(dictId) {
11199
11071
  return getSessionStorage(`${DICT_KEY}${dictId}`);
11200
11072
  }
11201
- function setDictCache(dictId, data) {
11202
- setSessionStorage(`${DICT_KEY}${dictId}`, data);
11073
+ function setDictCache(dictId, data2) {
11074
+ setSessionStorage(`${DICT_KEY}${dictId}`, data2);
11203
11075
  }
11204
11076
  const CONTEXT$5 = config.authServerContext;
11205
11077
  function getDictsMapApi(dictId) {
@@ -11215,9 +11087,9 @@ function getDictApi(dictId) {
11215
11087
  return dictValue;
11216
11088
  }
11217
11089
  try {
11218
- const { data } = yield instance.get(`${CONTEXT$5}/dict/getDicts`, { params: { dictId } });
11219
- setDictCache(dictId, data);
11220
- return data;
11090
+ const { data: data2 } = yield instance.get(`${CONTEXT$5}/dict/getDicts`, { params: { dictId } });
11091
+ setDictCache(dictId, data2);
11092
+ return data2;
11221
11093
  } catch (error) {
11222
11094
  console.error(`getDict error dictId=${dictId}`, error);
11223
11095
  }
@@ -11394,8 +11266,8 @@ function loginApi({ userName, password, validCodeId, validCodeInput }) {
11394
11266
  let nodeRSA = new window.NodeRSA(publicKey, "pkcs8-public");
11395
11267
  let rsaPaswword = nodeRSA.encrypt(password, "base64");
11396
11268
  let upw = Base64.encode(rsaPaswword);
11397
- const data = { usn: userName, upw, validCodeId, validCodeInput };
11398
- return instance.formPost(CONTEXT$2 + "/sso/auth/login", data);
11269
+ const data2 = { usn: userName, upw, validCodeId, validCodeInput };
11270
+ return instance.formPost(CONTEXT$2 + "/sso/auth/login", data2);
11399
11271
  }
11400
11272
  function getUserInfoApi() {
11401
11273
  return instance.get(`${CONTEXT$2}/manage/user/getCurrentInfo`);
@@ -11403,8 +11275,8 @@ function getUserInfoApi() {
11403
11275
  function getGlobalPolicyApi() {
11404
11276
  return instance.get(`${CONTEXT$2}/anon/user/getGlobalPolicy`);
11405
11277
  }
11406
- function updatePasswordApi(data) {
11407
- return instance.post(`${CONTEXT$2}/manage/user/updatePassword`, data);
11278
+ function updatePasswordApi(data2) {
11279
+ return instance.post(`${CONTEXT$2}/manage/user/updatePassword`, data2);
11408
11280
  }
11409
11281
  function getCaptchaURL(validCodeId) {
11410
11282
  return `${CONTEXT$2}/anon/user/getCaptcha/` + validCodeId;