@indfnd/common-mobile 1.0.74 → 1.0.77
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.
- package/CHANGELOG.md +16 -0
- package/dist/ind-common-mobile.es.js +1103 -2481
- package/dist/ind-common-mobile.umd.cjs +8 -12
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
|
-
import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$
|
|
2
|
+
import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$3, getCaptchaURL, guid, setLocalStorage, clearSessionStorage, cryptor, listComTreeApi, listItemTreeApi, getToken, MIME_TYPE, config as config$1, getSessionStorage, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi, setConfig } from "@indfnd/utils";
|
|
3
3
|
import Vue$1 from "vue";
|
|
4
4
|
import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
|
|
5
|
-
const name = "@indfnd/common-mobile";
|
|
6
|
-
const version$
|
|
7
|
-
const author = "huxuetong";
|
|
5
|
+
const name$1 = "@indfnd/common-mobile";
|
|
6
|
+
const version$2 = "1.0.76";
|
|
7
|
+
const author$1 = "huxuetong";
|
|
8
8
|
const publishConfig = {
|
|
9
9
|
registry: "https://registry.npmjs.org/"
|
|
10
10
|
};
|
|
11
|
-
const main$
|
|
11
|
+
const main$2 = "./dist/ind-common-mobile.umd.cjs";
|
|
12
12
|
const module = "./dist/ind-common-mobile.es.js";
|
|
13
13
|
const style = "./dist/styles/index.css";
|
|
14
14
|
const types = "./types/index.d.ts";
|
|
@@ -32,7 +32,7 @@ const files = [
|
|
|
32
32
|
"global.d.ts",
|
|
33
33
|
"src/styles/variables"
|
|
34
34
|
];
|
|
35
|
-
const scripts = {
|
|
35
|
+
const scripts$1 = {
|
|
36
36
|
"build:prod": "vite build",
|
|
37
37
|
"build:style": "gulp --gulpfile build/build-style.js",
|
|
38
38
|
build: "yarn build:prod && yarn build:style",
|
|
@@ -44,11 +44,11 @@ const scripts = {
|
|
|
44
44
|
"release-patch": "standard-version --release-as patch",
|
|
45
45
|
"re-publish": "yarn publish --access public"
|
|
46
46
|
};
|
|
47
|
-
const dependencies = {
|
|
47
|
+
const dependencies$1 = {
|
|
48
48
|
classnames: "^2.5.1",
|
|
49
49
|
vuedraggable: "^2.24.3"
|
|
50
50
|
};
|
|
51
|
-
const devDependencies = {
|
|
51
|
+
const devDependencies$1 = {
|
|
52
52
|
lodash: "4.17.21",
|
|
53
53
|
"@indfnd/utils": "^0.1.40",
|
|
54
54
|
eslint: "^3.19.0",
|
|
@@ -82,20 +82,20 @@ const devDependencies = {
|
|
|
82
82
|
const engines = {
|
|
83
83
|
node: ">= 16"
|
|
84
84
|
};
|
|
85
|
-
var pkg = {
|
|
86
|
-
name,
|
|
87
|
-
version: version$
|
|
88
|
-
author,
|
|
85
|
+
var pkg$1 = {
|
|
86
|
+
name: name$1,
|
|
87
|
+
version: version$2,
|
|
88
|
+
author: author$1,
|
|
89
89
|
publishConfig,
|
|
90
|
-
main: main$
|
|
90
|
+
main: main$2,
|
|
91
91
|
module,
|
|
92
92
|
style,
|
|
93
93
|
types,
|
|
94
94
|
exports,
|
|
95
95
|
files,
|
|
96
|
-
scripts,
|
|
97
|
-
dependencies,
|
|
98
|
-
devDependencies,
|
|
96
|
+
scripts: scripts$1,
|
|
97
|
+
dependencies: dependencies$1,
|
|
98
|
+
devDependencies: devDependencies$1,
|
|
99
99
|
engines
|
|
100
100
|
};
|
|
101
101
|
var render$L = function() {
|
|
@@ -4167,9 +4167,9 @@ const __vue2_script$z = {
|
|
|
4167
4167
|
params = this.renderParams(params);
|
|
4168
4168
|
}
|
|
4169
4169
|
if (this.methodsType == "post") {
|
|
4170
|
-
resp = await axios$
|
|
4170
|
+
resp = await axios$3.post(this.dataUrl, params);
|
|
4171
4171
|
} else {
|
|
4172
|
-
resp = await axios$
|
|
4172
|
+
resp = await axios$3.get(this.dataUrl, { params });
|
|
4173
4173
|
}
|
|
4174
4174
|
const newData = ((_a = resp.data) == null ? void 0 : _a.rows) || ((_b = resp.data) == null ? void 0 : _b.records) || [];
|
|
4175
4175
|
console.log("\u6536\u5230\u5206\u9875\u54CD\u5E94", {
|
|
@@ -4283,9 +4283,9 @@ const __vue2_script$z = {
|
|
|
4283
4283
|
params = this.renderParams(params);
|
|
4284
4284
|
}
|
|
4285
4285
|
if (this.methodsType == "post") {
|
|
4286
|
-
resp = await axios$
|
|
4286
|
+
resp = await axios$3.post(this.dataUrl, params);
|
|
4287
4287
|
} else {
|
|
4288
|
-
resp = await axios$
|
|
4288
|
+
resp = await axios$3.get(this.dataUrl, { params });
|
|
4289
4289
|
}
|
|
4290
4290
|
const newData = ((_b = resp.data) == null ? void 0 : _b.rows) || ((_c = resp.data) == null ? void 0 : _c.records) || [];
|
|
4291
4291
|
this.rows = [...newData];
|
|
@@ -4719,10 +4719,10 @@ var LoginForm = /* @__PURE__ */ function() {
|
|
|
4719
4719
|
function _extends$2() {
|
|
4720
4720
|
_extends$2 = Object.assign ? Object.assign.bind() : function(target2) {
|
|
4721
4721
|
for (var i = 1; i < arguments.length; i++) {
|
|
4722
|
-
var
|
|
4723
|
-
for (var key in
|
|
4724
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
4725
|
-
target2[key] =
|
|
4722
|
+
var source2 = arguments[i];
|
|
4723
|
+
for (var key in source2) {
|
|
4724
|
+
if (Object.prototype.hasOwnProperty.call(source2, key)) {
|
|
4725
|
+
target2[key] = source2[key];
|
|
4726
4726
|
}
|
|
4727
4727
|
}
|
|
4728
4728
|
}
|
|
@@ -4795,13 +4795,13 @@ function createBEM(name2) {
|
|
|
4795
4795
|
return "" + el + gen(el, mods);
|
|
4796
4796
|
};
|
|
4797
4797
|
}
|
|
4798
|
-
var hasOwnProperty
|
|
4798
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4799
4799
|
function assignKey(to, from, key) {
|
|
4800
4800
|
var val = from[key];
|
|
4801
4801
|
if (!isDef(val)) {
|
|
4802
4802
|
return;
|
|
4803
4803
|
}
|
|
4804
|
-
if (!hasOwnProperty
|
|
4804
|
+
if (!hasOwnProperty.call(to, key) || !isObject$1(val)) {
|
|
4805
4805
|
to[key] = val;
|
|
4806
4806
|
} else {
|
|
4807
4807
|
to[key] = deepAssign(Object(to[key]), from[key]);
|
|
@@ -4986,7 +4986,7 @@ function transformFunctionComponent(pure) {
|
|
|
4986
4986
|
}
|
|
4987
4987
|
function createComponent$1H(name2) {
|
|
4988
4988
|
return function(sfc) {
|
|
4989
|
-
if (isFunction$
|
|
4989
|
+
if (isFunction$1(sfc)) {
|
|
4990
4990
|
sfc = transformFunctionComponent(sfc);
|
|
4991
4991
|
}
|
|
4992
4992
|
if (!sfc.functional) {
|
|
@@ -5006,7 +5006,7 @@ function createI18N(name2) {
|
|
|
5006
5006
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
5007
5007
|
args[_key - 1] = arguments[_key];
|
|
5008
5008
|
}
|
|
5009
|
-
return isFunction$
|
|
5009
|
+
return isFunction$1(message) ? message.apply(void 0, args) : message;
|
|
5010
5010
|
};
|
|
5011
5011
|
}
|
|
5012
5012
|
function createNamespace(name2) {
|
|
@@ -5069,19 +5069,19 @@ function unitToPx(value17) {
|
|
|
5069
5069
|
}
|
|
5070
5070
|
var inBrowser = typeof window !== "undefined";
|
|
5071
5071
|
var isServer = Vue$1.prototype.$isServer;
|
|
5072
|
-
function noop
|
|
5072
|
+
function noop() {
|
|
5073
5073
|
}
|
|
5074
5074
|
function isDef(val) {
|
|
5075
5075
|
return val !== void 0 && val !== null;
|
|
5076
5076
|
}
|
|
5077
|
-
function isFunction$
|
|
5077
|
+
function isFunction$1(val) {
|
|
5078
5078
|
return typeof val === "function";
|
|
5079
5079
|
}
|
|
5080
5080
|
function isObject$1(val) {
|
|
5081
5081
|
return val !== null && typeof val === "object";
|
|
5082
5082
|
}
|
|
5083
5083
|
function isPromise(val) {
|
|
5084
|
-
return isObject$1(val) && isFunction$
|
|
5084
|
+
return isObject$1(val) && isFunction$1(val.then) && isFunction$1(val.catch);
|
|
5085
5085
|
}
|
|
5086
5086
|
function get2(object, path2) {
|
|
5087
5087
|
var keys2 = path2.split(".");
|
|
@@ -5228,7 +5228,7 @@ function Overlay(h, props, slots2, ctx) {
|
|
|
5228
5228
|
"style": style12,
|
|
5229
5229
|
"class": [bem$1x(), props.className],
|
|
5230
5230
|
"on": {
|
|
5231
|
-
"touchmove": props.lockScroll ? preventTouchMove : noop
|
|
5231
|
+
"touchmove": props.lockScroll ? preventTouchMove : noop
|
|
5232
5232
|
}
|
|
5233
5233
|
}, inherit(ctx, true)]), [slots2.default == null ? void 0 : slots2.default()])]);
|
|
5234
5234
|
}
|
|
@@ -5458,7 +5458,7 @@ function PortalMixin(_temp) {
|
|
|
5458
5458
|
var uid$1 = 0;
|
|
5459
5459
|
function BindEventMixin(handler4) {
|
|
5460
5460
|
var key = "binded_" + uid$1++;
|
|
5461
|
-
function
|
|
5461
|
+
function bind3() {
|
|
5462
5462
|
if (!this[key]) {
|
|
5463
5463
|
handler4.call(this, on$1, true);
|
|
5464
5464
|
this[key] = true;
|
|
@@ -5471,14 +5471,14 @@ function BindEventMixin(handler4) {
|
|
|
5471
5471
|
}
|
|
5472
5472
|
}
|
|
5473
5473
|
return {
|
|
5474
|
-
mounted:
|
|
5475
|
-
activated:
|
|
5474
|
+
mounted: bind3,
|
|
5475
|
+
activated: bind3,
|
|
5476
5476
|
deactivated: unbind,
|
|
5477
5477
|
beforeDestroy: unbind
|
|
5478
5478
|
};
|
|
5479
5479
|
}
|
|
5480
5480
|
var CloseOnPopstateMixin = {
|
|
5481
|
-
mixins: [BindEventMixin(function(
|
|
5481
|
+
mixins: [BindEventMixin(function(bind3, isBind) {
|
|
5482
5482
|
this.handlePopstate(isBind && this.closeOnPopstate);
|
|
5483
5483
|
})],
|
|
5484
5484
|
props: {
|
|
@@ -5499,13 +5499,13 @@ var CloseOnPopstateMixin = {
|
|
|
5499
5499
|
this.close();
|
|
5500
5500
|
this.shouldReopen = false;
|
|
5501
5501
|
},
|
|
5502
|
-
handlePopstate: function handlePopstate(
|
|
5502
|
+
handlePopstate: function handlePopstate(bind3) {
|
|
5503
5503
|
if (this.$isServer) {
|
|
5504
5504
|
return;
|
|
5505
5505
|
}
|
|
5506
|
-
if (this.bindStatus !==
|
|
5507
|
-
this.bindStatus =
|
|
5508
|
-
var action =
|
|
5506
|
+
if (this.bindStatus !== bind3) {
|
|
5507
|
+
this.bindStatus = bind3;
|
|
5508
|
+
var action = bind3 ? on$1 : off$1;
|
|
5509
5509
|
action(window, "popstate", this.onPopstate);
|
|
5510
5510
|
}
|
|
5511
5511
|
}
|
|
@@ -5998,11 +5998,11 @@ function ActionSheet(h, props, slots2, ctx) {
|
|
|
5998
5998
|
}
|
|
5999
5999
|
}
|
|
6000
6000
|
function Description() {
|
|
6001
|
-
var
|
|
6002
|
-
if (
|
|
6001
|
+
var description2 = (slots2.description == null ? void 0 : slots2.description()) || props.description;
|
|
6002
|
+
if (description2) {
|
|
6003
6003
|
return h("div", {
|
|
6004
6004
|
"class": bem$1s("description")
|
|
6005
|
-
}, [
|
|
6005
|
+
}, [description2]);
|
|
6006
6006
|
}
|
|
6007
6007
|
}
|
|
6008
6008
|
return h(Popup, _mergeJSXProps([{
|
|
@@ -7340,7 +7340,7 @@ var Field = createComponent$1w({
|
|
|
7340
7340
|
},
|
|
7341
7341
|
getRuleMessage: function getRuleMessage(value17, rule) {
|
|
7342
7342
|
var message = rule.message;
|
|
7343
|
-
if (isFunction$
|
|
7343
|
+
if (isFunction$1(message)) {
|
|
7344
7344
|
return message(value17, rule);
|
|
7345
7345
|
}
|
|
7346
7346
|
return message;
|
|
@@ -8393,10 +8393,10 @@ var VanDialog = createComponent$1r({
|
|
|
8393
8393
|
var onEventType = {
|
|
8394
8394
|
Enter: this.showConfirmButton ? function() {
|
|
8395
8395
|
return _this3.handleAction("confirm");
|
|
8396
|
-
} : noop
|
|
8396
|
+
} : noop,
|
|
8397
8397
|
Escape: this.showCancelButton ? function() {
|
|
8398
8398
|
return _this3.handleAction("cancel");
|
|
8399
|
-
} : noop
|
|
8399
|
+
} : noop
|
|
8400
8400
|
};
|
|
8401
8401
|
onEventType[event.key]();
|
|
8402
8402
|
this.$emit("keydown", event);
|
|
@@ -11001,7 +11001,7 @@ function callInterceptor(options) {
|
|
|
11001
11001
|
if (value17) {
|
|
11002
11002
|
done();
|
|
11003
11003
|
}
|
|
11004
|
-
}).catch(noop
|
|
11004
|
+
}).catch(noop);
|
|
11005
11005
|
} else if (returnVal) {
|
|
11006
11006
|
done();
|
|
11007
11007
|
}
|
|
@@ -11089,7 +11089,7 @@ var Title = createComponent$1b({
|
|
|
11089
11089
|
});
|
|
11090
11090
|
var _createNamespace$16 = createNamespace("sticky"), createComponent$1a = _createNamespace$16[0], bem$13 = _createNamespace$16[1];
|
|
11091
11091
|
var Sticky = createComponent$1a({
|
|
11092
|
-
mixins: [BindEventMixin(function(
|
|
11092
|
+
mixins: [BindEventMixin(function(bind3, isBind) {
|
|
11093
11093
|
if (!this.scroller) {
|
|
11094
11094
|
this.scroller = getScroller(this.$el);
|
|
11095
11095
|
}
|
|
@@ -11097,7 +11097,7 @@ var Sticky = createComponent$1a({
|
|
|
11097
11097
|
var method = isBind ? "observe" : "unobserve";
|
|
11098
11098
|
this.observer[method](this.$el);
|
|
11099
11099
|
}
|
|
11100
|
-
|
|
11100
|
+
bind3(this.scroller, "scroll", this.onScroll, true);
|
|
11101
11101
|
this.onScroll();
|
|
11102
11102
|
})],
|
|
11103
11103
|
props: {
|
|
@@ -11273,13 +11273,13 @@ var Content = createComponent$19({
|
|
|
11273
11273
|
});
|
|
11274
11274
|
var _createNamespace$14 = createNamespace("tabs"), createComponent$18 = _createNamespace$14[0], bem$11 = _createNamespace$14[1];
|
|
11275
11275
|
var Tabs = createComponent$18({
|
|
11276
|
-
mixins: [ParentMixin("vanTabs"), BindEventMixin(function(
|
|
11276
|
+
mixins: [ParentMixin("vanTabs"), BindEventMixin(function(bind3) {
|
|
11277
11277
|
if (!this.scroller) {
|
|
11278
11278
|
this.scroller = getScroller(this.$el);
|
|
11279
11279
|
}
|
|
11280
|
-
|
|
11280
|
+
bind3(window, "resize", this.resize, true);
|
|
11281
11281
|
if (this.scrollspy) {
|
|
11282
|
-
|
|
11282
|
+
bind3(this.scroller, "scroll", this.onScroll, true);
|
|
11283
11283
|
}
|
|
11284
11284
|
})],
|
|
11285
11285
|
inject: {
|
|
@@ -12948,7 +12948,7 @@ var Coupon = createComponent$X({
|
|
|
12948
12948
|
render: function render32() {
|
|
12949
12949
|
var h = arguments[0];
|
|
12950
12950
|
var coupon = this.coupon, disabled = this.disabled;
|
|
12951
|
-
var
|
|
12951
|
+
var description2 = disabled && coupon.reason || coupon.description;
|
|
12952
12952
|
return h("div", {
|
|
12953
12953
|
"class": bem$Q({
|
|
12954
12954
|
disabled
|
|
@@ -12977,9 +12977,9 @@ var Coupon = createComponent$X({
|
|
|
12977
12977
|
"checkedColor": RED
|
|
12978
12978
|
},
|
|
12979
12979
|
"class": bem$Q("corner")
|
|
12980
|
-
})])]),
|
|
12980
|
+
})])]), description2 && h("p", {
|
|
12981
12981
|
"class": bem$Q("description")
|
|
12982
|
-
}, [
|
|
12982
|
+
}, [description2])]);
|
|
12983
12983
|
}
|
|
12984
12984
|
});
|
|
12985
12985
|
var _createNamespace$S = createNamespace("coupon-cell"), createComponent$W = _createNamespace$S[0], bem$P = _createNamespace$S[1], t$e = _createNamespace$S[2];
|
|
@@ -13904,9 +13904,9 @@ var DropdownItem = createComponent$Q({
|
|
|
13904
13904
|
this.showWrapper = true;
|
|
13905
13905
|
}
|
|
13906
13906
|
},
|
|
13907
|
-
bindScroll: function bindScroll(
|
|
13907
|
+
bindScroll: function bindScroll(bind3) {
|
|
13908
13908
|
var scroller2 = this.parent.scroller;
|
|
13909
|
-
var action =
|
|
13909
|
+
var action = bind3 ? on$1 : off$1;
|
|
13910
13910
|
action(scroller2, "scroll", this.onScroll, true);
|
|
13911
13911
|
},
|
|
13912
13912
|
onScroll: function onScroll4() {
|
|
@@ -14365,11 +14365,11 @@ var Empty = createComponent$O({
|
|
|
14365
14365
|
},
|
|
14366
14366
|
genDescription: function genDescription() {
|
|
14367
14367
|
var h = this.$createElement;
|
|
14368
|
-
var
|
|
14369
|
-
if (
|
|
14368
|
+
var description2 = this.slots("description") || this.description;
|
|
14369
|
+
if (description2) {
|
|
14370
14370
|
return h("p", {
|
|
14371
14371
|
"class": bem$J("description")
|
|
14372
|
-
}, [
|
|
14372
|
+
}, [description2]);
|
|
14373
14373
|
}
|
|
14374
14374
|
},
|
|
14375
14375
|
genBottom: function genBottom() {
|
|
@@ -14788,10 +14788,10 @@ var GridItem = createComponent$K({
|
|
|
14788
14788
|
var _createNamespace$F = createNamespace("image-preview"), createComponent$J = _createNamespace$F[0], bem$E = _createNamespace$F[1];
|
|
14789
14789
|
var _createNamespace$E = createNamespace("swipe"), createComponent$I = _createNamespace$E[0], bem$D = _createNamespace$E[1];
|
|
14790
14790
|
var Swipe = createComponent$I({
|
|
14791
|
-
mixins: [TouchMixin, ParentMixin("vanSwipe"), BindEventMixin(function(
|
|
14792
|
-
|
|
14793
|
-
|
|
14794
|
-
|
|
14791
|
+
mixins: [TouchMixin, ParentMixin("vanSwipe"), BindEventMixin(function(bind3, isBind) {
|
|
14792
|
+
bind3(window, "resize", this.resize, true);
|
|
14793
|
+
bind3(window, "orientationchange", this.resize, true);
|
|
14794
|
+
bind3(window, "visibilitychange", this.onVisibilityChange);
|
|
14795
14795
|
if (isBind) {
|
|
14796
14796
|
this.initialize();
|
|
14797
14797
|
} else {
|
|
@@ -15414,9 +15414,9 @@ var ImagePreviewItem = {
|
|
|
15414
15414
|
var VueImagePreview = createComponent$J({
|
|
15415
15415
|
mixins: [TouchMixin, PopupMixin({
|
|
15416
15416
|
skipToggleEvent: true
|
|
15417
|
-
}), BindEventMixin(function(
|
|
15418
|
-
|
|
15419
|
-
|
|
15417
|
+
}), BindEventMixin(function(bind3) {
|
|
15418
|
+
bind3(window, "resize", this.resize, true);
|
|
15419
|
+
bind3(window, "orientationchange", this.resize, true);
|
|
15420
15420
|
})],
|
|
15421
15421
|
props: {
|
|
15422
15422
|
className: null,
|
|
@@ -15781,11 +15781,11 @@ function genAlphabet() {
|
|
|
15781
15781
|
}
|
|
15782
15782
|
var _createNamespace$B = createNamespace("index-bar"), createComponent$F = _createNamespace$B[0], bem$A = _createNamespace$B[1];
|
|
15783
15783
|
var IndexBar = createComponent$F({
|
|
15784
|
-
mixins: [TouchMixin, ParentMixin("vanIndexBar"), BindEventMixin(function(
|
|
15784
|
+
mixins: [TouchMixin, ParentMixin("vanIndexBar"), BindEventMixin(function(bind3) {
|
|
15785
15785
|
if (!this.scroller) {
|
|
15786
15786
|
this.scroller = getScroller(this.$el);
|
|
15787
15787
|
}
|
|
15788
|
-
|
|
15788
|
+
bind3(this.scroller, "scroll", this.onScroll);
|
|
15789
15789
|
})],
|
|
15790
15790
|
props: {
|
|
15791
15791
|
zIndex: [Number, String],
|
|
@@ -15960,11 +15960,11 @@ var IndexBar = createComponent$F({
|
|
|
15960
15960
|
});
|
|
15961
15961
|
var _createNamespace$A = createNamespace("list"), createComponent$E = _createNamespace$A[0], bem$z = _createNamespace$A[1], t$c = _createNamespace$A[2];
|
|
15962
15962
|
var List = createComponent$E({
|
|
15963
|
-
mixins: [BindEventMixin(function(
|
|
15963
|
+
mixins: [BindEventMixin(function(bind3) {
|
|
15964
15964
|
if (!this.scroller) {
|
|
15965
15965
|
this.scroller = getScroller(this.$el);
|
|
15966
15966
|
}
|
|
15967
|
-
|
|
15967
|
+
bind3(this.scroller, "scroll", this.check);
|
|
15968
15968
|
})],
|
|
15969
15969
|
model: {
|
|
15970
15970
|
prop: "loading"
|
|
@@ -16215,8 +16215,8 @@ var NavBar = createComponent$D({
|
|
|
16215
16215
|
});
|
|
16216
16216
|
var _createNamespace$y = createNamespace("notice-bar"), createComponent$C = _createNamespace$y[0], bem$x = _createNamespace$y[1];
|
|
16217
16217
|
var NoticeBar = createComponent$C({
|
|
16218
|
-
mixins: [BindEventMixin(function(
|
|
16219
|
-
|
|
16218
|
+
mixins: [BindEventMixin(function(bind3) {
|
|
16219
|
+
bind3(window, "pageshow", this.reset);
|
|
16220
16220
|
})],
|
|
16221
16221
|
inject: {
|
|
16222
16222
|
vanPopup: {
|
|
@@ -16617,9 +16617,9 @@ var Key = createComponent$A({
|
|
|
16617
16617
|
});
|
|
16618
16618
|
var _createNamespace$v = createNamespace("number-keyboard"), createComponent$z = _createNamespace$v[0], bem$u = _createNamespace$v[1];
|
|
16619
16619
|
var NumberKeyboard = createComponent$z({
|
|
16620
|
-
mixins: [PortalMixin(), BindEventMixin(function(
|
|
16620
|
+
mixins: [PortalMixin(), BindEventMixin(function(bind3) {
|
|
16621
16621
|
if (this.hideOnClickOutside) {
|
|
16622
|
-
|
|
16622
|
+
bind3(document.body, "touchstart", this.onBlur);
|
|
16623
16623
|
}
|
|
16624
16624
|
})],
|
|
16625
16625
|
model: {
|
|
@@ -17348,12 +17348,12 @@ var beforeRead = "beforeRead";
|
|
|
17348
17348
|
var read = "read";
|
|
17349
17349
|
var afterRead = "afterRead";
|
|
17350
17350
|
var beforeMain = "beforeMain";
|
|
17351
|
-
var main = "main";
|
|
17351
|
+
var main$1 = "main";
|
|
17352
17352
|
var afterMain = "afterMain";
|
|
17353
17353
|
var beforeWrite = "beforeWrite";
|
|
17354
17354
|
var write = "write";
|
|
17355
17355
|
var afterWrite = "afterWrite";
|
|
17356
|
-
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
|
|
17356
|
+
var modifierPhases = [beforeRead, read, afterRead, beforeMain, main$1, afterMain, beforeWrite, write, afterWrite];
|
|
17357
17357
|
function order(modifiers) {
|
|
17358
17358
|
var map = /* @__PURE__ */ new Map();
|
|
17359
17359
|
var visited = /* @__PURE__ */ new Set();
|
|
@@ -18204,9 +18204,9 @@ var Popover = createComponent$v({
|
|
|
18204
18204
|
});
|
|
18205
18205
|
var _createNamespace$q = createNamespace("progress"), createComponent$u = _createNamespace$q[0], bem$p = _createNamespace$q[1];
|
|
18206
18206
|
var Progress = createComponent$u({
|
|
18207
|
-
mixins: [BindEventMixin(function(
|
|
18208
|
-
|
|
18209
|
-
|
|
18207
|
+
mixins: [BindEventMixin(function(bind3) {
|
|
18208
|
+
bind3(window, "resize", this.resize, true);
|
|
18209
|
+
bind3(window, "orientationchange", this.resize, true);
|
|
18210
18210
|
})],
|
|
18211
18211
|
props: {
|
|
18212
18212
|
color: String,
|
|
@@ -18876,17 +18876,17 @@ var ShareSheet = createComponent$p({
|
|
|
18876
18876
|
genHeader: function genHeader() {
|
|
18877
18877
|
var h = this.$createElement;
|
|
18878
18878
|
var title4 = this.slots("title") || this.title;
|
|
18879
|
-
var
|
|
18880
|
-
if (!title4 && !
|
|
18879
|
+
var description2 = this.slots("description") || this.description;
|
|
18880
|
+
if (!title4 && !description2) {
|
|
18881
18881
|
return;
|
|
18882
18882
|
}
|
|
18883
18883
|
return h("div", {
|
|
18884
18884
|
"class": bem$k("header")
|
|
18885
18885
|
}, [title4 && h("h2", {
|
|
18886
18886
|
"class": bem$k("title")
|
|
18887
|
-
}, [title4]),
|
|
18887
|
+
}, [title4]), description2 && h("span", {
|
|
18888
18888
|
"class": bem$k("description")
|
|
18889
|
-
}, [
|
|
18889
|
+
}, [description2])]);
|
|
18890
18890
|
},
|
|
18891
18891
|
genOptions: function genOptions2(options, showBorder) {
|
|
18892
18892
|
var _this = this;
|
|
@@ -19399,9 +19399,9 @@ function SkuHeader(h, props, slots2, ctx) {
|
|
|
19399
19399
|
var SkuHeaderItem = createComponent$k(SkuHeader);
|
|
19400
19400
|
var _createNamespace$f = createNamespace("sku-row"), createComponent$j = _createNamespace$f[0], bem$e = _createNamespace$f[1], t$7 = _createNamespace$f[2];
|
|
19401
19401
|
var SkuRow = createComponent$j({
|
|
19402
|
-
mixins: [ParentMixin("vanSkuRows"), BindEventMixin(function(
|
|
19402
|
+
mixins: [ParentMixin("vanSkuRows"), BindEventMixin(function(bind3) {
|
|
19403
19403
|
if (this.scrollable && this.$refs.scroller) {
|
|
19404
|
-
|
|
19404
|
+
bind3(this.$refs.scroller, "scroll", this.onScroll);
|
|
19405
19405
|
}
|
|
19406
19406
|
})],
|
|
19407
19407
|
props: {
|
|
@@ -20088,7 +20088,7 @@ function isEmail(value17) {
|
|
|
20088
20088
|
var reg = /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/;
|
|
20089
20089
|
return reg.test(value17.trim());
|
|
20090
20090
|
}
|
|
20091
|
-
function toArray
|
|
20091
|
+
function toArray(item2) {
|
|
20092
20092
|
if (Array.isArray(item2)) {
|
|
20093
20093
|
return item2;
|
|
20094
20094
|
}
|
|
@@ -20112,9 +20112,9 @@ function readFile(file, resultType) {
|
|
|
20112
20112
|
});
|
|
20113
20113
|
}
|
|
20114
20114
|
function isOversize(files2, maxSize) {
|
|
20115
|
-
return toArray
|
|
20115
|
+
return toArray(files2).some(function(file) {
|
|
20116
20116
|
if (file) {
|
|
20117
|
-
if (isFunction$
|
|
20117
|
+
if (isFunction$1(maxSize)) {
|
|
20118
20118
|
return maxSize(file);
|
|
20119
20119
|
}
|
|
20120
20120
|
return file.size > maxSize;
|
|
@@ -20324,7 +20324,7 @@ var Uploader = createComponent$e({
|
|
|
20324
20324
|
}
|
|
20325
20325
|
var isValidFiles = Array.isArray(validFiles) ? Boolean(validFiles.length) : Boolean(validFiles);
|
|
20326
20326
|
if (isValidFiles) {
|
|
20327
|
-
this.$emit("input", [].concat(this.fileList, toArray
|
|
20327
|
+
this.$emit("input", [].concat(this.fileList, toArray(validFiles)));
|
|
20328
20328
|
if (this.afterRead) {
|
|
20329
20329
|
this.afterRead(validFiles, this.getDetail());
|
|
20330
20330
|
}
|
|
@@ -20341,7 +20341,7 @@ var Uploader = createComponent$e({
|
|
|
20341
20341
|
if (isPromise(response)) {
|
|
20342
20342
|
response.then(function() {
|
|
20343
20343
|
_this4.deleteFile(file, index2);
|
|
20344
|
-
}).catch(noop
|
|
20344
|
+
}).catch(noop);
|
|
20345
20345
|
return;
|
|
20346
20346
|
}
|
|
20347
20347
|
}
|
|
@@ -22674,20 +22674,20 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
22674
22674
|
}
|
|
22675
22675
|
const isHb$2 = location.pathname.includes("scyxweb");
|
|
22676
22676
|
function getIndexPreset(params) {
|
|
22677
|
-
return axios$
|
|
22677
|
+
return axios$3.get(
|
|
22678
22678
|
`${location.protocol}//${location.host}${isHb$2 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
|
|
22679
22679
|
{ params }
|
|
22680
22680
|
);
|
|
22681
22681
|
}
|
|
22682
22682
|
function saveIndexPreset(params) {
|
|
22683
|
-
return axios$
|
|
22683
|
+
return axios$3.post(
|
|
22684
22684
|
`${location.protocol}//${location.host}${isHb$2 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
|
|
22685
22685
|
params
|
|
22686
22686
|
);
|
|
22687
22687
|
}
|
|
22688
22688
|
function getUserDefaultUrl() {
|
|
22689
22689
|
console.log("getUserDefaultUrl begin");
|
|
22690
|
-
return axios$
|
|
22690
|
+
return axios$3.get(
|
|
22691
22691
|
`${location.protocol}//${location.host}${isHb$2 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
|
|
22692
22692
|
);
|
|
22693
22693
|
}
|
|
@@ -24165,10 +24165,10 @@ function _defineProperty(obj, key, value17) {
|
|
|
24165
24165
|
function _extends() {
|
|
24166
24166
|
_extends = Object.assign || function(target2) {
|
|
24167
24167
|
for (var i = 1; i < arguments.length; i++) {
|
|
24168
|
-
var
|
|
24169
|
-
for (var key in
|
|
24170
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
24171
|
-
target2[key] =
|
|
24168
|
+
var source2 = arguments[i];
|
|
24169
|
+
for (var key in source2) {
|
|
24170
|
+
if (Object.prototype.hasOwnProperty.call(source2, key)) {
|
|
24171
|
+
target2[key] = source2[key];
|
|
24172
24172
|
}
|
|
24173
24173
|
}
|
|
24174
24174
|
}
|
|
@@ -24178,47 +24178,47 @@ function _extends() {
|
|
|
24178
24178
|
}
|
|
24179
24179
|
function _objectSpread(target2) {
|
|
24180
24180
|
for (var i = 1; i < arguments.length; i++) {
|
|
24181
|
-
var
|
|
24182
|
-
var ownKeys = Object.keys(
|
|
24181
|
+
var source2 = arguments[i] != null ? arguments[i] : {};
|
|
24182
|
+
var ownKeys = Object.keys(source2);
|
|
24183
24183
|
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
24184
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(
|
|
24185
|
-
return Object.getOwnPropertyDescriptor(
|
|
24184
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
|
|
24185
|
+
return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
|
|
24186
24186
|
}));
|
|
24187
24187
|
}
|
|
24188
24188
|
ownKeys.forEach(function(key) {
|
|
24189
|
-
_defineProperty(target2, key,
|
|
24189
|
+
_defineProperty(target2, key, source2[key]);
|
|
24190
24190
|
});
|
|
24191
24191
|
}
|
|
24192
24192
|
return target2;
|
|
24193
24193
|
}
|
|
24194
|
-
function _objectWithoutPropertiesLoose(
|
|
24195
|
-
if (
|
|
24194
|
+
function _objectWithoutPropertiesLoose(source2, excluded) {
|
|
24195
|
+
if (source2 == null)
|
|
24196
24196
|
return {};
|
|
24197
24197
|
var target2 = {};
|
|
24198
|
-
var sourceKeys = Object.keys(
|
|
24198
|
+
var sourceKeys = Object.keys(source2);
|
|
24199
24199
|
var key, i;
|
|
24200
24200
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
24201
24201
|
key = sourceKeys[i];
|
|
24202
24202
|
if (excluded.indexOf(key) >= 0)
|
|
24203
24203
|
continue;
|
|
24204
|
-
target2[key] =
|
|
24204
|
+
target2[key] = source2[key];
|
|
24205
24205
|
}
|
|
24206
24206
|
return target2;
|
|
24207
24207
|
}
|
|
24208
|
-
function _objectWithoutProperties(
|
|
24209
|
-
if (
|
|
24208
|
+
function _objectWithoutProperties(source2, excluded) {
|
|
24209
|
+
if (source2 == null)
|
|
24210
24210
|
return {};
|
|
24211
|
-
var target2 = _objectWithoutPropertiesLoose(
|
|
24211
|
+
var target2 = _objectWithoutPropertiesLoose(source2, excluded);
|
|
24212
24212
|
var key, i;
|
|
24213
24213
|
if (Object.getOwnPropertySymbols) {
|
|
24214
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(
|
|
24214
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
|
24215
24215
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
24216
24216
|
key = sourceSymbolKeys[i];
|
|
24217
24217
|
if (excluded.indexOf(key) >= 0)
|
|
24218
24218
|
continue;
|
|
24219
|
-
if (!Object.prototype.propertyIsEnumerable.call(
|
|
24219
|
+
if (!Object.prototype.propertyIsEnumerable.call(source2, key))
|
|
24220
24220
|
continue;
|
|
24221
|
-
target2[key] =
|
|
24221
|
+
target2[key] = source2[key];
|
|
24222
24222
|
}
|
|
24223
24223
|
}
|
|
24224
24224
|
return target2;
|
|
@@ -24240,7 +24240,7 @@ function _iterableToArray(iter) {
|
|
|
24240
24240
|
function _nonIterableSpread() {
|
|
24241
24241
|
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
24242
24242
|
}
|
|
24243
|
-
var version = "1.10.2";
|
|
24243
|
+
var version$1 = "1.10.2";
|
|
24244
24244
|
function userAgent$1(pattern) {
|
|
24245
24245
|
if (typeof window !== "undefined" && window.navigator) {
|
|
24246
24246
|
return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
|
|
@@ -24341,12 +24341,12 @@ function matrix(el, selfOnly) {
|
|
|
24341
24341
|
var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
24342
24342
|
return matrixFn && new matrixFn(appliedTransforms);
|
|
24343
24343
|
}
|
|
24344
|
-
function find2(ctx, tagName,
|
|
24344
|
+
function find2(ctx, tagName, iterator) {
|
|
24345
24345
|
if (ctx) {
|
|
24346
24346
|
var list2 = ctx.getElementsByTagName(tagName), i = 0, n = list2.length;
|
|
24347
|
-
if (
|
|
24347
|
+
if (iterator) {
|
|
24348
24348
|
for (; i < n; i++) {
|
|
24349
|
-
|
|
24349
|
+
iterator(list2[i], i);
|
|
24350
24350
|
}
|
|
24351
24351
|
}
|
|
24352
24352
|
return list2;
|
|
@@ -24520,7 +24520,7 @@ function isRectEqual(rect1, rect2) {
|
|
|
24520
24520
|
return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
|
|
24521
24521
|
}
|
|
24522
24522
|
var _throttleTimeout;
|
|
24523
|
-
function throttle
|
|
24523
|
+
function throttle(callback2, ms) {
|
|
24524
24524
|
return function() {
|
|
24525
24525
|
if (!_throttleTimeout) {
|
|
24526
24526
|
var args = arguments, _this = this;
|
|
@@ -24688,14 +24688,14 @@ function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
|
|
24688
24688
|
return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
|
|
24689
24689
|
}
|
|
24690
24690
|
var plugins$1 = [];
|
|
24691
|
-
var defaults$
|
|
24691
|
+
var defaults$4 = {
|
|
24692
24692
|
initializeByDefault: true
|
|
24693
24693
|
};
|
|
24694
24694
|
var PluginManager = {
|
|
24695
24695
|
mount: function mount2(plugin) {
|
|
24696
|
-
for (var option2 in defaults$
|
|
24697
|
-
if (defaults$
|
|
24698
|
-
plugin[option2] = defaults$
|
|
24696
|
+
for (var option2 in defaults$4) {
|
|
24697
|
+
if (defaults$4.hasOwnProperty(option2) && !(option2 in plugin)) {
|
|
24698
|
+
plugin[option2] = defaults$4[option2];
|
|
24699
24699
|
}
|
|
24700
24700
|
}
|
|
24701
24701
|
plugins$1.push(plugin);
|
|
@@ -25047,7 +25047,7 @@ Sortable.prototype = {
|
|
|
25047
25047
|
_onTapStart: function _onTapStart(evt) {
|
|
25048
25048
|
if (!evt.cancelable)
|
|
25049
25049
|
return;
|
|
25050
|
-
var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type2 = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === "touch" && evt, target2 = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target2,
|
|
25050
|
+
var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type2 = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === "touch" && evt, target2 = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target2, filter = options.filter;
|
|
25051
25051
|
_saveInputCheckedState(el);
|
|
25052
25052
|
if (dragEl) {
|
|
25053
25053
|
return;
|
|
@@ -25067,8 +25067,8 @@ Sortable.prototype = {
|
|
|
25067
25067
|
}
|
|
25068
25068
|
oldIndex = index$2(target2);
|
|
25069
25069
|
oldDraggableIndex = index$2(target2, options.draggable);
|
|
25070
|
-
if (typeof
|
|
25071
|
-
if (
|
|
25070
|
+
if (typeof filter === "function") {
|
|
25071
|
+
if (filter.call(this, evt, target2, this)) {
|
|
25072
25072
|
_dispatchEvent({
|
|
25073
25073
|
sortable: _this,
|
|
25074
25074
|
rootEl: originalTarget,
|
|
@@ -25083,8 +25083,8 @@ Sortable.prototype = {
|
|
|
25083
25083
|
preventOnFilter && evt.cancelable && evt.preventDefault();
|
|
25084
25084
|
return;
|
|
25085
25085
|
}
|
|
25086
|
-
} else if (
|
|
25087
|
-
|
|
25086
|
+
} else if (filter) {
|
|
25087
|
+
filter = filter.split(",").some(function(criteria) {
|
|
25088
25088
|
criteria = closest(originalTarget, criteria.trim(), el, false);
|
|
25089
25089
|
if (criteria) {
|
|
25090
25090
|
_dispatchEvent({
|
|
@@ -25101,7 +25101,7 @@ Sortable.prototype = {
|
|
|
25101
25101
|
return true;
|
|
25102
25102
|
}
|
|
25103
25103
|
});
|
|
25104
|
-
if (
|
|
25104
|
+
if (filter) {
|
|
25105
25105
|
preventOnFilter && evt.cancelable && evt.preventDefault();
|
|
25106
25106
|
return;
|
|
25107
25107
|
}
|
|
@@ -25768,7 +25768,7 @@ Sortable.prototype = {
|
|
|
25768
25768
|
break;
|
|
25769
25769
|
}
|
|
25770
25770
|
},
|
|
25771
|
-
toArray: function
|
|
25771
|
+
toArray: function toArray2() {
|
|
25772
25772
|
var order2 = [], el, children3 = this.el.children, i = 0, n = children3.length, options = this.options;
|
|
25773
25773
|
for (; i < n; i++) {
|
|
25774
25774
|
el = children3[i];
|
|
@@ -25986,7 +25986,7 @@ Sortable.utils = {
|
|
|
25986
25986
|
return !!closest(el, selector, el, false);
|
|
25987
25987
|
},
|
|
25988
25988
|
extend: extend$1,
|
|
25989
|
-
throttle
|
|
25989
|
+
throttle,
|
|
25990
25990
|
closest,
|
|
25991
25991
|
toggleClass,
|
|
25992
25992
|
clone,
|
|
@@ -26017,7 +26017,7 @@ Sortable.mount = function() {
|
|
|
26017
26017
|
Sortable.create = function(el, options) {
|
|
26018
26018
|
return new Sortable(el, options);
|
|
26019
26019
|
};
|
|
26020
|
-
Sortable.version = version;
|
|
26020
|
+
Sortable.version = version$1;
|
|
26021
26021
|
var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
|
|
26022
26022
|
function AutoScrollPlugin() {
|
|
26023
26023
|
function AutoScroll() {
|
|
@@ -26116,7 +26116,7 @@ function clearAutoScrolls() {
|
|
|
26116
26116
|
function clearPointerElemChangedInterval() {
|
|
26117
26117
|
clearInterval(pointerElemChangedInterval);
|
|
26118
26118
|
}
|
|
26119
|
-
var autoScroll = throttle
|
|
26119
|
+
var autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
|
|
26120
26120
|
if (!options.scroll)
|
|
26121
26121
|
return;
|
|
26122
26122
|
var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement();
|
|
@@ -26804,10 +26804,10 @@ var sortable_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
26804
26804
|
Sortable,
|
|
26805
26805
|
Swap: SwapPlugin
|
|
26806
26806
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
26807
|
-
var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26807
|
+
var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
26808
26808
|
(function(module2, exports2) {
|
|
26809
|
-
(function webpackUniversalModuleDefinition(root2,
|
|
26810
|
-
module2.exports =
|
|
26809
|
+
(function webpackUniversalModuleDefinition(root2, factory) {
|
|
26810
|
+
module2.exports = factory(require$$0$1);
|
|
26811
26811
|
})(typeof self !== "undefined" ? self : commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_a352__) {
|
|
26812
26812
|
return function(modules) {
|
|
26813
26813
|
var installedModules = {};
|
|
@@ -26877,7 +26877,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
26877
26877
|
var Iterators = __webpack_require__("84f2");
|
|
26878
26878
|
var $iterCreate = __webpack_require__("41a0");
|
|
26879
26879
|
var setToStringTag = __webpack_require__("7f20");
|
|
26880
|
-
var
|
|
26880
|
+
var getPrototypeOf = __webpack_require__("38fd");
|
|
26881
26881
|
var ITERATOR = __webpack_require__("2b4c")("iterator");
|
|
26882
26882
|
var BUGGY = !([].keys && "next" in [].keys());
|
|
26883
26883
|
var FF_ITERATOR = "@@iterator";
|
|
@@ -26915,7 +26915,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
26915
26915
|
var $anyNative = NAME == "Array" ? proto2.entries || $native : $native;
|
|
26916
26916
|
var methods, key, IteratorPrototype;
|
|
26917
26917
|
if ($anyNative) {
|
|
26918
|
-
IteratorPrototype =
|
|
26918
|
+
IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
|
|
26919
26919
|
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
|
|
26920
26920
|
setToStringTag(IteratorPrototype, TAG, true);
|
|
26921
26921
|
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != "function")
|
|
@@ -27182,7 +27182,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27182
27182
|
delete createDict[PROTOTYPE][enumBugKeys[i]];
|
|
27183
27183
|
return createDict();
|
|
27184
27184
|
};
|
|
27185
|
-
module3.exports = Object.create || function
|
|
27185
|
+
module3.exports = Object.create || function create2(O, Properties) {
|
|
27186
27186
|
var result;
|
|
27187
27187
|
if (O !== null) {
|
|
27188
27188
|
Empty2[PROTOTYPE] = anObject(O);
|
|
@@ -27249,7 +27249,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27249
27249
|
};
|
|
27250
27250
|
},
|
|
27251
27251
|
"41a0": function(module3, exports3, __webpack_require__) {
|
|
27252
|
-
var
|
|
27252
|
+
var create2 = __webpack_require__("2aeb");
|
|
27253
27253
|
var descriptor = __webpack_require__("4630");
|
|
27254
27254
|
var setToStringTag = __webpack_require__("7f20");
|
|
27255
27255
|
var IteratorPrototype = {};
|
|
@@ -27257,7 +27257,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27257
27257
|
return this;
|
|
27258
27258
|
});
|
|
27259
27259
|
module3.exports = function(Constructor, NAME, next2) {
|
|
27260
|
-
Constructor.prototype =
|
|
27260
|
+
Constructor.prototype = create2(IteratorPrototype, { next: descriptor(1, next2) });
|
|
27261
27261
|
setToStringTag(Constructor, NAME + " Iterator");
|
|
27262
27262
|
};
|
|
27263
27263
|
},
|
|
@@ -27372,7 +27372,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27372
27372
|
var redefine = __webpack_require__("2aba");
|
|
27373
27373
|
var ctx = __webpack_require__("9b43");
|
|
27374
27374
|
var PROTOTYPE = "prototype";
|
|
27375
|
-
var $export = function(type2, name2,
|
|
27375
|
+
var $export = function(type2, name2, source2) {
|
|
27376
27376
|
var IS_FORCED = type2 & $export.F;
|
|
27377
27377
|
var IS_GLOBAL = type2 & $export.G;
|
|
27378
27378
|
var IS_STATIC = type2 & $export.S;
|
|
@@ -27383,10 +27383,10 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27383
27383
|
var expProto = exports4[PROTOTYPE] || (exports4[PROTOTYPE] = {});
|
|
27384
27384
|
var key, own, out, exp;
|
|
27385
27385
|
if (IS_GLOBAL)
|
|
27386
|
-
|
|
27387
|
-
for (key in
|
|
27386
|
+
source2 = name2;
|
|
27387
|
+
for (key in source2) {
|
|
27388
27388
|
own = !IS_FORCED && target2 && target2[key] !== void 0;
|
|
27389
|
-
out = (own ? target2 :
|
|
27389
|
+
out = (own ? target2 : source2)[key];
|
|
27390
27390
|
exp = IS_BIND && own ? ctx(out, global2) : IS_PROTO && typeof out == "function" ? ctx(Function.call, out) : out;
|
|
27391
27391
|
if (target2)
|
|
27392
27392
|
redefine(target2, key, out, type2 & $export.U);
|
|
@@ -27506,7 +27506,7 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27506
27506
|
B[k] = k;
|
|
27507
27507
|
});
|
|
27508
27508
|
return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join("") != K;
|
|
27509
|
-
}) ? function assign(target2,
|
|
27509
|
+
}) ? function assign(target2, source2) {
|
|
27510
27510
|
var T = toObject(target2);
|
|
27511
27511
|
var aLen = arguments.length;
|
|
27512
27512
|
var index2 = 1;
|
|
@@ -27757,8 +27757,8 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27757
27757
|
var cof = __webpack_require__("2d95");
|
|
27758
27758
|
var MATCH = __webpack_require__("2b4c")("match");
|
|
27759
27759
|
module3.exports = function(it) {
|
|
27760
|
-
var
|
|
27761
|
-
return isObject2(it) && ((
|
|
27760
|
+
var isRegExp;
|
|
27761
|
+
return isObject2(it) && ((isRegExp = it[MATCH]) !== void 0 ? !!isRegExp : cof(it) == "RegExp");
|
|
27762
27762
|
};
|
|
27763
27763
|
},
|
|
27764
27764
|
"ac6a": function(module3, exports3, __webpack_require__) {
|
|
@@ -27998,10 +27998,10 @@ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
|
|
|
27998
27998
|
};
|
|
27999
27999
|
},
|
|
28000
28000
|
"d2c8": function(module3, exports3, __webpack_require__) {
|
|
28001
|
-
var
|
|
28001
|
+
var isRegExp = __webpack_require__("aae3");
|
|
28002
28002
|
var defined = __webpack_require__("be13");
|
|
28003
28003
|
module3.exports = function(that, searchString, NAME) {
|
|
28004
|
-
if (
|
|
28004
|
+
if (isRegExp(searchString))
|
|
28005
28005
|
throw TypeError("String#" + NAME + " doesn't accept regex!");
|
|
28006
28006
|
return String(defined(that));
|
|
28007
28007
|
};
|
|
@@ -31042,7 +31042,7 @@ const __vue2_script$3 = {
|
|
|
31042
31042
|
for (let file of allFile) {
|
|
31043
31043
|
formData.append("file", file);
|
|
31044
31044
|
}
|
|
31045
|
-
axios$
|
|
31045
|
+
axios$3.post(self2.ossServerContext + self2.ossFilePutUrl, formData, { payload: true }).then((response) => {
|
|
31046
31046
|
if (response.code === 1) {
|
|
31047
31047
|
self2.loading = false;
|
|
31048
31048
|
const result = response.data;
|
|
@@ -31153,7 +31153,7 @@ const __vue2_script$3 = {
|
|
|
31153
31153
|
}
|
|
31154
31154
|
if (location.pathname.includes("scyxweb")) {
|
|
31155
31155
|
let watermarkTxt = "";
|
|
31156
|
-
await axios$
|
|
31156
|
+
await axios$3.get(`/user-manage-server/manage/user/getCurrentInfo`).then((res) => {
|
|
31157
31157
|
if (res.code === 1) {
|
|
31158
31158
|
const isPicture = file.fileName.endsWith(".jpg") || file.fileName.endsWith(".jpeg") || file.fileName.endsWith(".png") || file.fileName.endsWith(".gif");
|
|
31159
31159
|
let url = "";
|
|
@@ -31186,7 +31186,7 @@ const __vue2_script$3 = {
|
|
|
31186
31186
|
var _a;
|
|
31187
31187
|
const isWeb = location.protocol === "https:" ? "1" : "";
|
|
31188
31188
|
const token = getToken() || sessionStorage.getItem("sso_token");
|
|
31189
|
-
return axios$
|
|
31189
|
+
return axios$3.get(
|
|
31190
31190
|
`${location.protocol}//${location.host}${"/ind-uc-ext-server"}/api/wps/getPreviewUrl/${fileId}?isWeb=${isWeb}&previewMode=high_definition`,
|
|
31191
31191
|
{
|
|
31192
31192
|
headers: {
|
|
@@ -31655,7 +31655,7 @@ let isHb$1 = location.pathname.includes("scyxweb");
|
|
|
31655
31655
|
const rootRoute = {
|
|
31656
31656
|
name: config.rootRouteName,
|
|
31657
31657
|
path: "/",
|
|
31658
|
-
|
|
31658
|
+
...isHb$1 ? { redirect: "/home" } : {},
|
|
31659
31659
|
component: EmptyLayout,
|
|
31660
31660
|
meta: {
|
|
31661
31661
|
hideInMenu: true,
|
|
@@ -31665,7 +31665,7 @@ const rootRoute = {
|
|
|
31665
31665
|
{
|
|
31666
31666
|
name: config.homeRouteName,
|
|
31667
31667
|
path: "home",
|
|
31668
|
-
|
|
31668
|
+
...!isHb$1 ? { redirect: `/apps?t=${new Date().getTime()}` } : {},
|
|
31669
31669
|
meta: {
|
|
31670
31670
|
hideInMenu: true,
|
|
31671
31671
|
title: "\u9996\u9875",
|
|
@@ -31785,11 +31785,29 @@ function filterMicroPermissionList(microType, permissionList = []) {
|
|
|
31785
31785
|
return itemName.startsWith(microType) || itemName.startsWith(`${config$1.routerBase}-${microType}`);
|
|
31786
31786
|
});
|
|
31787
31787
|
}
|
|
31788
|
-
function
|
|
31788
|
+
function buildChildrenMap(list2) {
|
|
31789
|
+
const childrenMap = /* @__PURE__ */ new Map();
|
|
31790
|
+
if (!list2)
|
|
31791
|
+
return childrenMap;
|
|
31792
|
+
list2.forEach((item2) => {
|
|
31793
|
+
const { pid } = item2;
|
|
31794
|
+
if (!childrenMap.has(pid)) {
|
|
31795
|
+
childrenMap.set(pid, []);
|
|
31796
|
+
}
|
|
31797
|
+
childrenMap.get(pid).push(item2);
|
|
31798
|
+
});
|
|
31799
|
+
return childrenMap;
|
|
31800
|
+
}
|
|
31801
|
+
function listToMenuTree({ list: list2, childrenMap, menuTree, pageNode, parentId, crumbs, root: root2 }) {
|
|
31789
31802
|
if (!list2)
|
|
31790
31803
|
return;
|
|
31804
|
+
if (!childrenMap) {
|
|
31805
|
+
childrenMap = buildChildrenMap(list2);
|
|
31806
|
+
}
|
|
31807
|
+
console.log("childrenMap now is", childrenMap);
|
|
31791
31808
|
let appInfo = getSessionStorage("appInfo");
|
|
31792
|
-
|
|
31809
|
+
const siblings = childrenMap.get(parentId) || [];
|
|
31810
|
+
siblings.forEach((item2) => {
|
|
31793
31811
|
var _a;
|
|
31794
31812
|
const {
|
|
31795
31813
|
permissionId,
|
|
@@ -31829,7 +31847,7 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
|
|
|
31829
31847
|
} catch (e) {
|
|
31830
31848
|
hideInIbp2 = false;
|
|
31831
31849
|
}
|
|
31832
|
-
if (
|
|
31850
|
+
if (!(hideInIbp1 || hideInIbp2)) {
|
|
31833
31851
|
if (isMenuPermissionType(type2)) {
|
|
31834
31852
|
let node = {
|
|
31835
31853
|
type: type2,
|
|
@@ -31848,6 +31866,7 @@ function listToMenuTree({ list: list2, menuTree, pageNode, parentId, crumbs, roo
|
|
|
31848
31866
|
}
|
|
31849
31867
|
listToMenuTree({
|
|
31850
31868
|
list: list2,
|
|
31869
|
+
childrenMap,
|
|
31851
31870
|
menuTree: node.children,
|
|
31852
31871
|
pageNode,
|
|
31853
31872
|
parentId: permissionId,
|
|
@@ -31953,384 +31972,139 @@ function generator(menuData = []) {
|
|
|
31953
31972
|
}
|
|
31954
31973
|
return menuData;
|
|
31955
31974
|
}
|
|
31956
|
-
|
|
31975
|
+
var axios$2 = { exports: {} };
|
|
31976
|
+
var bind$2 = function bind(fn2, thisArg) {
|
|
31957
31977
|
return function wrap() {
|
|
31958
|
-
|
|
31978
|
+
var args = new Array(arguments.length);
|
|
31979
|
+
for (var i = 0; i < args.length; i++) {
|
|
31980
|
+
args[i] = arguments[i];
|
|
31981
|
+
}
|
|
31982
|
+
return fn2.apply(thisArg, args);
|
|
31959
31983
|
};
|
|
31984
|
+
};
|
|
31985
|
+
var bind$1 = bind$2;
|
|
31986
|
+
var toString = Object.prototype.toString;
|
|
31987
|
+
function isArray(val) {
|
|
31988
|
+
return toString.call(val) === "[object Array]";
|
|
31989
|
+
}
|
|
31990
|
+
function isUndefined(val) {
|
|
31991
|
+
return typeof val === "undefined";
|
|
31960
31992
|
}
|
|
31961
|
-
const { toString } = Object.prototype;
|
|
31962
|
-
const { getPrototypeOf } = Object;
|
|
31963
|
-
const { iterator, toStringTag } = Symbol;
|
|
31964
|
-
const kindOf = ((cache) => (thing) => {
|
|
31965
|
-
const str = toString.call(thing);
|
|
31966
|
-
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
|
31967
|
-
})(/* @__PURE__ */ Object.create(null));
|
|
31968
|
-
const kindOfTest = (type2) => {
|
|
31969
|
-
type2 = type2.toLowerCase();
|
|
31970
|
-
return (thing) => kindOf(thing) === type2;
|
|
31971
|
-
};
|
|
31972
|
-
const typeOfTest = (type2) => (thing) => typeof thing === type2;
|
|
31973
|
-
const { isArray } = Array;
|
|
31974
|
-
const isUndefined = typeOfTest("undefined");
|
|
31975
31993
|
function isBuffer(val) {
|
|
31976
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) &&
|
|
31994
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val);
|
|
31995
|
+
}
|
|
31996
|
+
function isArrayBuffer(val) {
|
|
31997
|
+
return toString.call(val) === "[object ArrayBuffer]";
|
|
31998
|
+
}
|
|
31999
|
+
function isFormData(val) {
|
|
32000
|
+
return typeof FormData !== "undefined" && val instanceof FormData;
|
|
31977
32001
|
}
|
|
31978
|
-
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
31979
32002
|
function isArrayBufferView(val) {
|
|
31980
|
-
|
|
32003
|
+
var result;
|
|
31981
32004
|
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
31982
32005
|
result = ArrayBuffer.isView(val);
|
|
31983
32006
|
} else {
|
|
31984
|
-
result = val && val.buffer &&
|
|
32007
|
+
result = val && val.buffer && val.buffer instanceof ArrayBuffer;
|
|
31985
32008
|
}
|
|
31986
32009
|
return result;
|
|
31987
32010
|
}
|
|
31988
|
-
|
|
31989
|
-
|
|
31990
|
-
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
|
|
31997
|
-
|
|
31998
|
-
|
|
31999
|
-
};
|
|
32000
|
-
const isEmptyObject = (val) => {
|
|
32001
|
-
if (!isObject(val) || isBuffer(val)) {
|
|
32011
|
+
function isString(val) {
|
|
32012
|
+
return typeof val === "string";
|
|
32013
|
+
}
|
|
32014
|
+
function isNumber(val) {
|
|
32015
|
+
return typeof val === "number";
|
|
32016
|
+
}
|
|
32017
|
+
function isObject(val) {
|
|
32018
|
+
return val !== null && typeof val === "object";
|
|
32019
|
+
}
|
|
32020
|
+
function isPlainObject(val) {
|
|
32021
|
+
if (toString.call(val) !== "[object Object]") {
|
|
32002
32022
|
return false;
|
|
32003
32023
|
}
|
|
32004
|
-
|
|
32005
|
-
|
|
32006
|
-
|
|
32024
|
+
var prototype = Object.getPrototypeOf(val);
|
|
32025
|
+
return prototype === null || prototype === Object.prototype;
|
|
32026
|
+
}
|
|
32027
|
+
function isDate(val) {
|
|
32028
|
+
return toString.call(val) === "[object Date]";
|
|
32029
|
+
}
|
|
32030
|
+
function isFile(val) {
|
|
32031
|
+
return toString.call(val) === "[object File]";
|
|
32032
|
+
}
|
|
32033
|
+
function isBlob(val) {
|
|
32034
|
+
return toString.call(val) === "[object Blob]";
|
|
32035
|
+
}
|
|
32036
|
+
function isFunction(val) {
|
|
32037
|
+
return toString.call(val) === "[object Function]";
|
|
32038
|
+
}
|
|
32039
|
+
function isStream(val) {
|
|
32040
|
+
return isObject(val) && isFunction(val.pipe);
|
|
32041
|
+
}
|
|
32042
|
+
function isURLSearchParams(val) {
|
|
32043
|
+
return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
|
|
32044
|
+
}
|
|
32045
|
+
function trim(str) {
|
|
32046
|
+
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
|
|
32047
|
+
}
|
|
32048
|
+
function isStandardBrowserEnv() {
|
|
32049
|
+
if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
|
|
32007
32050
|
return false;
|
|
32008
32051
|
}
|
|
32009
|
-
|
|
32010
|
-
|
|
32011
|
-
|
|
32012
|
-
const isReactNativeBlob = (value17) => {
|
|
32013
|
-
return !!(value17 && typeof value17.uri !== "undefined");
|
|
32014
|
-
};
|
|
32015
|
-
const isReactNative = (formData) => formData && typeof formData.getParts !== "undefined";
|
|
32016
|
-
const isBlob = kindOfTest("Blob");
|
|
32017
|
-
const isFileList = kindOfTest("FileList");
|
|
32018
|
-
const isStream = (val) => isObject(val) && isFunction$1(val.pipe);
|
|
32019
|
-
function getGlobal() {
|
|
32020
|
-
if (typeof globalThis !== "undefined")
|
|
32021
|
-
return globalThis;
|
|
32022
|
-
if (typeof self !== "undefined")
|
|
32023
|
-
return self;
|
|
32024
|
-
if (typeof window !== "undefined")
|
|
32025
|
-
return window;
|
|
32026
|
-
if (typeof global !== "undefined")
|
|
32027
|
-
return global;
|
|
32028
|
-
return {};
|
|
32029
|
-
}
|
|
32030
|
-
const G = getGlobal();
|
|
32031
|
-
const FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
|
|
32032
|
-
const isFormData = (thing) => {
|
|
32033
|
-
let kind;
|
|
32034
|
-
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
|
|
32035
|
-
};
|
|
32036
|
-
const isURLSearchParams = kindOfTest("URLSearchParams");
|
|
32037
|
-
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
|
32038
|
-
"ReadableStream",
|
|
32039
|
-
"Request",
|
|
32040
|
-
"Response",
|
|
32041
|
-
"Headers"
|
|
32042
|
-
].map(kindOfTest);
|
|
32043
|
-
const trim = (str) => {
|
|
32044
|
-
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
32045
|
-
};
|
|
32046
|
-
function forEach(obj, fn2, { allOwnKeys = false } = {}) {
|
|
32052
|
+
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
32053
|
+
}
|
|
32054
|
+
function forEach(obj, fn2) {
|
|
32047
32055
|
if (obj === null || typeof obj === "undefined") {
|
|
32048
32056
|
return;
|
|
32049
32057
|
}
|
|
32050
|
-
let i;
|
|
32051
|
-
let l;
|
|
32052
32058
|
if (typeof obj !== "object") {
|
|
32053
32059
|
obj = [obj];
|
|
32054
32060
|
}
|
|
32055
32061
|
if (isArray(obj)) {
|
|
32056
|
-
for (i = 0, l = obj.length; i < l; i++) {
|
|
32062
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
|
32057
32063
|
fn2.call(null, obj[i], i, obj);
|
|
32058
32064
|
}
|
|
32059
32065
|
} else {
|
|
32060
|
-
|
|
32061
|
-
|
|
32062
|
-
|
|
32063
|
-
|
|
32064
|
-
const len = keys2.length;
|
|
32065
|
-
let key;
|
|
32066
|
-
for (i = 0; i < len; i++) {
|
|
32067
|
-
key = keys2[i];
|
|
32068
|
-
fn2.call(null, obj[key], key, obj);
|
|
32069
|
-
}
|
|
32070
|
-
}
|
|
32071
|
-
}
|
|
32072
|
-
function findKey(obj, key) {
|
|
32073
|
-
if (isBuffer(obj)) {
|
|
32074
|
-
return null;
|
|
32075
|
-
}
|
|
32076
|
-
key = key.toLowerCase();
|
|
32077
|
-
const keys2 = Object.keys(obj);
|
|
32078
|
-
let i = keys2.length;
|
|
32079
|
-
let _key;
|
|
32080
|
-
while (i-- > 0) {
|
|
32081
|
-
_key = keys2[i];
|
|
32082
|
-
if (key === _key.toLowerCase()) {
|
|
32083
|
-
return _key;
|
|
32066
|
+
for (var key in obj) {
|
|
32067
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
32068
|
+
fn2.call(null, obj[key], key, obj);
|
|
32069
|
+
}
|
|
32084
32070
|
}
|
|
32085
32071
|
}
|
|
32086
|
-
return null;
|
|
32087
32072
|
}
|
|
32088
|
-
const _global = (() => {
|
|
32089
|
-
if (typeof globalThis !== "undefined")
|
|
32090
|
-
return globalThis;
|
|
32091
|
-
return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
|
|
32092
|
-
})();
|
|
32093
|
-
const isContextDefined = (context2) => !isUndefined(context2) && context2 !== _global;
|
|
32094
32073
|
function merge() {
|
|
32095
|
-
|
|
32096
|
-
|
|
32097
|
-
|
|
32098
|
-
|
|
32099
|
-
return;
|
|
32100
|
-
}
|
|
32101
|
-
const targetKey = caseless && findKey(result, key) || key;
|
|
32102
|
-
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
|
32103
|
-
result[targetKey] = merge(result[targetKey], val);
|
|
32074
|
+
var result = {};
|
|
32075
|
+
function assignValue(val, key) {
|
|
32076
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
|
32077
|
+
result[key] = merge(result[key], val);
|
|
32104
32078
|
} else if (isPlainObject(val)) {
|
|
32105
|
-
result[
|
|
32079
|
+
result[key] = merge({}, val);
|
|
32106
32080
|
} else if (isArray(val)) {
|
|
32107
|
-
result[
|
|
32108
|
-
} else
|
|
32109
|
-
result[
|
|
32081
|
+
result[key] = val.slice();
|
|
32082
|
+
} else {
|
|
32083
|
+
result[key] = val;
|
|
32110
32084
|
}
|
|
32111
|
-
}
|
|
32112
|
-
for (
|
|
32113
|
-
|
|
32085
|
+
}
|
|
32086
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
32087
|
+
forEach(arguments[i], assignValue);
|
|
32114
32088
|
}
|
|
32115
32089
|
return result;
|
|
32116
32090
|
}
|
|
32117
|
-
|
|
32118
|
-
forEach(
|
|
32119
|
-
|
|
32120
|
-
|
|
32121
|
-
|
|
32122
|
-
|
|
32123
|
-
|
|
32124
|
-
|
|
32125
|
-
enumerable: true,
|
|
32126
|
-
configurable: true
|
|
32127
|
-
});
|
|
32128
|
-
} else {
|
|
32129
|
-
Object.defineProperty(a, key, {
|
|
32130
|
-
value: val,
|
|
32131
|
-
writable: true,
|
|
32132
|
-
enumerable: true,
|
|
32133
|
-
configurable: true
|
|
32134
|
-
});
|
|
32135
|
-
}
|
|
32136
|
-
},
|
|
32137
|
-
{ allOwnKeys }
|
|
32138
|
-
);
|
|
32091
|
+
function extend(a, b, thisArg) {
|
|
32092
|
+
forEach(b, function assignValue(val, key) {
|
|
32093
|
+
if (thisArg && typeof val === "function") {
|
|
32094
|
+
a[key] = bind$1(val, thisArg);
|
|
32095
|
+
} else {
|
|
32096
|
+
a[key] = val;
|
|
32097
|
+
}
|
|
32098
|
+
});
|
|
32139
32099
|
return a;
|
|
32140
|
-
}
|
|
32141
|
-
|
|
32100
|
+
}
|
|
32101
|
+
function stripBOM(content) {
|
|
32142
32102
|
if (content.charCodeAt(0) === 65279) {
|
|
32143
32103
|
content = content.slice(1);
|
|
32144
32104
|
}
|
|
32145
32105
|
return content;
|
|
32146
|
-
};
|
|
32147
|
-
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
32148
|
-
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
32149
|
-
Object.defineProperty(constructor.prototype, "constructor", {
|
|
32150
|
-
value: constructor,
|
|
32151
|
-
writable: true,
|
|
32152
|
-
enumerable: false,
|
|
32153
|
-
configurable: true
|
|
32154
|
-
});
|
|
32155
|
-
Object.defineProperty(constructor, "super", {
|
|
32156
|
-
value: superConstructor.prototype
|
|
32157
|
-
});
|
|
32158
|
-
props && Object.assign(constructor.prototype, props);
|
|
32159
|
-
};
|
|
32160
|
-
const toFlatObject = (sourceObj, destObj, filter2, propFilter) => {
|
|
32161
|
-
let props;
|
|
32162
|
-
let i;
|
|
32163
|
-
let prop;
|
|
32164
|
-
const merged = {};
|
|
32165
|
-
destObj = destObj || {};
|
|
32166
|
-
if (sourceObj == null)
|
|
32167
|
-
return destObj;
|
|
32168
|
-
do {
|
|
32169
|
-
props = Object.getOwnPropertyNames(sourceObj);
|
|
32170
|
-
i = props.length;
|
|
32171
|
-
while (i-- > 0) {
|
|
32172
|
-
prop = props[i];
|
|
32173
|
-
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
|
|
32174
|
-
destObj[prop] = sourceObj[prop];
|
|
32175
|
-
merged[prop] = true;
|
|
32176
|
-
}
|
|
32177
|
-
}
|
|
32178
|
-
sourceObj = filter2 !== false && getPrototypeOf(sourceObj);
|
|
32179
|
-
} while (sourceObj && (!filter2 || filter2(sourceObj, destObj)) && sourceObj !== Object.prototype);
|
|
32180
|
-
return destObj;
|
|
32181
|
-
};
|
|
32182
|
-
const endsWith = (str, searchString, position) => {
|
|
32183
|
-
str = String(str);
|
|
32184
|
-
if (position === void 0 || position > str.length) {
|
|
32185
|
-
position = str.length;
|
|
32186
|
-
}
|
|
32187
|
-
position -= searchString.length;
|
|
32188
|
-
const lastIndex = str.indexOf(searchString, position);
|
|
32189
|
-
return lastIndex !== -1 && lastIndex === position;
|
|
32190
|
-
};
|
|
32191
|
-
const toArray2 = (thing) => {
|
|
32192
|
-
if (!thing)
|
|
32193
|
-
return null;
|
|
32194
|
-
if (isArray(thing))
|
|
32195
|
-
return thing;
|
|
32196
|
-
let i = thing.length;
|
|
32197
|
-
if (!isNumber(i))
|
|
32198
|
-
return null;
|
|
32199
|
-
const arr = new Array(i);
|
|
32200
|
-
while (i-- > 0) {
|
|
32201
|
-
arr[i] = thing[i];
|
|
32202
|
-
}
|
|
32203
|
-
return arr;
|
|
32204
|
-
};
|
|
32205
|
-
const isTypedArray = ((TypedArray) => {
|
|
32206
|
-
return (thing) => {
|
|
32207
|
-
return TypedArray && thing instanceof TypedArray;
|
|
32208
|
-
};
|
|
32209
|
-
})(typeof Uint8Array !== "undefined" && getPrototypeOf(Uint8Array));
|
|
32210
|
-
const forEachEntry = (obj, fn2) => {
|
|
32211
|
-
const generator2 = obj && obj[iterator];
|
|
32212
|
-
const _iterator = generator2.call(obj);
|
|
32213
|
-
let result;
|
|
32214
|
-
while ((result = _iterator.next()) && !result.done) {
|
|
32215
|
-
const pair = result.value;
|
|
32216
|
-
fn2.call(obj, pair[0], pair[1]);
|
|
32217
|
-
}
|
|
32218
|
-
};
|
|
32219
|
-
const matchAll = (regExp, str) => {
|
|
32220
|
-
let matches2;
|
|
32221
|
-
const arr = [];
|
|
32222
|
-
while ((matches2 = regExp.exec(str)) !== null) {
|
|
32223
|
-
arr.push(matches2);
|
|
32224
|
-
}
|
|
32225
|
-
return arr;
|
|
32226
|
-
};
|
|
32227
|
-
const isHTMLForm = kindOfTest("HTMLFormElement");
|
|
32228
|
-
const toCamelCase = (str) => {
|
|
32229
|
-
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
|
32230
|
-
return p1.toUpperCase() + p2;
|
|
32231
|
-
});
|
|
32232
|
-
};
|
|
32233
|
-
const hasOwnProperty = (({ hasOwnProperty: hasOwnProperty2 }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
|
|
32234
|
-
const isRegExp = kindOfTest("RegExp");
|
|
32235
|
-
const reduceDescriptors = (obj, reducer) => {
|
|
32236
|
-
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
|
32237
|
-
const reducedDescriptors = {};
|
|
32238
|
-
forEach(descriptors, (descriptor, name2) => {
|
|
32239
|
-
let ret;
|
|
32240
|
-
if ((ret = reducer(descriptor, name2, obj)) !== false) {
|
|
32241
|
-
reducedDescriptors[name2] = ret || descriptor;
|
|
32242
|
-
}
|
|
32243
|
-
});
|
|
32244
|
-
Object.defineProperties(obj, reducedDescriptors);
|
|
32245
|
-
};
|
|
32246
|
-
const freezeMethods = (obj) => {
|
|
32247
|
-
reduceDescriptors(obj, (descriptor, name2) => {
|
|
32248
|
-
if (isFunction$1(obj) && ["arguments", "caller", "callee"].indexOf(name2) !== -1) {
|
|
32249
|
-
return false;
|
|
32250
|
-
}
|
|
32251
|
-
const value17 = obj[name2];
|
|
32252
|
-
if (!isFunction$1(value17))
|
|
32253
|
-
return;
|
|
32254
|
-
descriptor.enumerable = false;
|
|
32255
|
-
if ("writable" in descriptor) {
|
|
32256
|
-
descriptor.writable = false;
|
|
32257
|
-
return;
|
|
32258
|
-
}
|
|
32259
|
-
if (!descriptor.set) {
|
|
32260
|
-
descriptor.set = () => {
|
|
32261
|
-
throw Error("Can not rewrite read-only method '" + name2 + "'");
|
|
32262
|
-
};
|
|
32263
|
-
}
|
|
32264
|
-
});
|
|
32265
|
-
};
|
|
32266
|
-
const toObjectSet = (arrayOrString, delimiter) => {
|
|
32267
|
-
const obj = {};
|
|
32268
|
-
const define = (arr) => {
|
|
32269
|
-
arr.forEach((value17) => {
|
|
32270
|
-
obj[value17] = true;
|
|
32271
|
-
});
|
|
32272
|
-
};
|
|
32273
|
-
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
|
32274
|
-
return obj;
|
|
32275
|
-
};
|
|
32276
|
-
const noop = () => {
|
|
32277
|
-
};
|
|
32278
|
-
const toFiniteNumber = (value17, defaultValue) => {
|
|
32279
|
-
return value17 != null && Number.isFinite(value17 = +value17) ? value17 : defaultValue;
|
|
32280
|
-
};
|
|
32281
|
-
function isSpecCompliantForm(thing) {
|
|
32282
|
-
return !!(thing && isFunction$1(thing.append) && thing[toStringTag] === "FormData" && thing[iterator]);
|
|
32283
32106
|
}
|
|
32284
|
-
|
|
32285
|
-
const stack = new Array(10);
|
|
32286
|
-
const visit = (source, i) => {
|
|
32287
|
-
if (isObject(source)) {
|
|
32288
|
-
if (stack.indexOf(source) >= 0) {
|
|
32289
|
-
return;
|
|
32290
|
-
}
|
|
32291
|
-
if (isBuffer(source)) {
|
|
32292
|
-
return source;
|
|
32293
|
-
}
|
|
32294
|
-
if (!("toJSON" in source)) {
|
|
32295
|
-
stack[i] = source;
|
|
32296
|
-
const target2 = isArray(source) ? [] : {};
|
|
32297
|
-
forEach(source, (value17, key) => {
|
|
32298
|
-
const reducedValue = visit(value17, i + 1);
|
|
32299
|
-
!isUndefined(reducedValue) && (target2[key] = reducedValue);
|
|
32300
|
-
});
|
|
32301
|
-
stack[i] = void 0;
|
|
32302
|
-
return target2;
|
|
32303
|
-
}
|
|
32304
|
-
}
|
|
32305
|
-
return source;
|
|
32306
|
-
};
|
|
32307
|
-
return visit(obj, 0);
|
|
32308
|
-
};
|
|
32309
|
-
const isAsyncFn = kindOfTest("AsyncFunction");
|
|
32310
|
-
const isThenable = (thing) => thing && (isObject(thing) || isFunction$1(thing)) && isFunction$1(thing.then) && isFunction$1(thing.catch);
|
|
32311
|
-
const _setImmediate = ((setImmediateSupported, postMessageSupported) => {
|
|
32312
|
-
if (setImmediateSupported) {
|
|
32313
|
-
return setImmediate;
|
|
32314
|
-
}
|
|
32315
|
-
return postMessageSupported ? ((token, callbacks) => {
|
|
32316
|
-
_global.addEventListener(
|
|
32317
|
-
"message",
|
|
32318
|
-
({ source, data: data49 }) => {
|
|
32319
|
-
if (source === _global && data49 === token) {
|
|
32320
|
-
callbacks.length && callbacks.shift()();
|
|
32321
|
-
}
|
|
32322
|
-
},
|
|
32323
|
-
false
|
|
32324
|
-
);
|
|
32325
|
-
return (cb) => {
|
|
32326
|
-
callbacks.push(cb);
|
|
32327
|
-
_global.postMessage(token, "*");
|
|
32328
|
-
};
|
|
32329
|
-
})(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);
|
|
32330
|
-
})(typeof setImmediate === "function", isFunction$1(_global.postMessage));
|
|
32331
|
-
const asap = typeof queueMicrotask !== "undefined" ? queueMicrotask.bind(_global) : typeof process !== "undefined" && process.nextTick || _setImmediate;
|
|
32332
|
-
const isIterable = (thing) => thing != null && isFunction$1(thing[iterator]);
|
|
32333
|
-
var utils$1 = {
|
|
32107
|
+
var utils$d = {
|
|
32334
32108
|
isArray,
|
|
32335
32109
|
isArrayBuffer,
|
|
32336
32110
|
isBuffer,
|
|
@@ -32338,532 +32112,200 @@ var utils$1 = {
|
|
|
32338
32112
|
isArrayBufferView,
|
|
32339
32113
|
isString,
|
|
32340
32114
|
isNumber,
|
|
32341
|
-
isBoolean,
|
|
32342
32115
|
isObject,
|
|
32343
32116
|
isPlainObject,
|
|
32344
|
-
isEmptyObject,
|
|
32345
|
-
isReadableStream,
|
|
32346
|
-
isRequest,
|
|
32347
|
-
isResponse,
|
|
32348
|
-
isHeaders,
|
|
32349
32117
|
isUndefined,
|
|
32350
32118
|
isDate,
|
|
32351
32119
|
isFile,
|
|
32352
|
-
isReactNativeBlob,
|
|
32353
|
-
isReactNative,
|
|
32354
32120
|
isBlob,
|
|
32355
|
-
|
|
32356
|
-
isFunction: isFunction$1,
|
|
32121
|
+
isFunction,
|
|
32357
32122
|
isStream,
|
|
32358
32123
|
isURLSearchParams,
|
|
32359
|
-
|
|
32360
|
-
isFileList,
|
|
32124
|
+
isStandardBrowserEnv,
|
|
32361
32125
|
forEach,
|
|
32362
32126
|
merge,
|
|
32363
32127
|
extend,
|
|
32364
32128
|
trim,
|
|
32365
|
-
stripBOM
|
|
32366
|
-
inherits,
|
|
32367
|
-
toFlatObject,
|
|
32368
|
-
kindOf,
|
|
32369
|
-
kindOfTest,
|
|
32370
|
-
endsWith,
|
|
32371
|
-
toArray: toArray2,
|
|
32372
|
-
forEachEntry,
|
|
32373
|
-
matchAll,
|
|
32374
|
-
isHTMLForm,
|
|
32375
|
-
hasOwnProperty,
|
|
32376
|
-
hasOwnProp: hasOwnProperty,
|
|
32377
|
-
reduceDescriptors,
|
|
32378
|
-
freezeMethods,
|
|
32379
|
-
toObjectSet,
|
|
32380
|
-
toCamelCase,
|
|
32381
|
-
noop,
|
|
32382
|
-
toFiniteNumber,
|
|
32383
|
-
findKey,
|
|
32384
|
-
global: _global,
|
|
32385
|
-
isContextDefined,
|
|
32386
|
-
isSpecCompliantForm,
|
|
32387
|
-
toJSONObject,
|
|
32388
|
-
isAsyncFn,
|
|
32389
|
-
isThenable,
|
|
32390
|
-
setImmediate: _setImmediate,
|
|
32391
|
-
asap,
|
|
32392
|
-
isIterable
|
|
32393
|
-
};
|
|
32394
|
-
class AxiosError extends Error {
|
|
32395
|
-
static from(error, code2, config2, request, response, customProps) {
|
|
32396
|
-
const axiosError = new AxiosError(error.message, code2 || error.code, config2, request, response);
|
|
32397
|
-
axiosError.cause = error;
|
|
32398
|
-
axiosError.name = error.name;
|
|
32399
|
-
if (error.status != null && axiosError.status == null) {
|
|
32400
|
-
axiosError.status = error.status;
|
|
32401
|
-
}
|
|
32402
|
-
customProps && Object.assign(axiosError, customProps);
|
|
32403
|
-
return axiosError;
|
|
32404
|
-
}
|
|
32405
|
-
constructor(message, code2, config2, request, response) {
|
|
32406
|
-
super(message);
|
|
32407
|
-
Object.defineProperty(this, "message", {
|
|
32408
|
-
value: message,
|
|
32409
|
-
enumerable: true,
|
|
32410
|
-
writable: true,
|
|
32411
|
-
configurable: true
|
|
32412
|
-
});
|
|
32413
|
-
this.name = "AxiosError";
|
|
32414
|
-
this.isAxiosError = true;
|
|
32415
|
-
code2 && (this.code = code2);
|
|
32416
|
-
config2 && (this.config = config2);
|
|
32417
|
-
request && (this.request = request);
|
|
32418
|
-
if (response) {
|
|
32419
|
-
this.response = response;
|
|
32420
|
-
this.status = response.status;
|
|
32421
|
-
}
|
|
32422
|
-
}
|
|
32423
|
-
toJSON() {
|
|
32424
|
-
return {
|
|
32425
|
-
message: this.message,
|
|
32426
|
-
name: this.name,
|
|
32427
|
-
description: this.description,
|
|
32428
|
-
number: this.number,
|
|
32429
|
-
fileName: this.fileName,
|
|
32430
|
-
lineNumber: this.lineNumber,
|
|
32431
|
-
columnNumber: this.columnNumber,
|
|
32432
|
-
stack: this.stack,
|
|
32433
|
-
config: utils$1.toJSONObject(this.config),
|
|
32434
|
-
code: this.code,
|
|
32435
|
-
status: this.status
|
|
32436
|
-
};
|
|
32437
|
-
}
|
|
32438
|
-
}
|
|
32439
|
-
AxiosError.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
32440
|
-
AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
32441
|
-
AxiosError.ECONNABORTED = "ECONNABORTED";
|
|
32442
|
-
AxiosError.ETIMEDOUT = "ETIMEDOUT";
|
|
32443
|
-
AxiosError.ERR_NETWORK = "ERR_NETWORK";
|
|
32444
|
-
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
32445
|
-
AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
32446
|
-
AxiosError.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
32447
|
-
AxiosError.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
32448
|
-
AxiosError.ERR_CANCELED = "ERR_CANCELED";
|
|
32449
|
-
AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
32450
|
-
AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
32451
|
-
var AxiosError$1 = AxiosError;
|
|
32452
|
-
var httpAdapter = null;
|
|
32453
|
-
function isVisitable(thing) {
|
|
32454
|
-
return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
|
|
32455
|
-
}
|
|
32456
|
-
function removeBrackets(key) {
|
|
32457
|
-
return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
|
|
32458
|
-
}
|
|
32459
|
-
function renderKey(path2, key, dots) {
|
|
32460
|
-
if (!path2)
|
|
32461
|
-
return key;
|
|
32462
|
-
return path2.concat(key).map(function each(token, i) {
|
|
32463
|
-
token = removeBrackets(token);
|
|
32464
|
-
return !dots && i ? "[" + token + "]" : token;
|
|
32465
|
-
}).join(dots ? "." : "");
|
|
32466
|
-
}
|
|
32467
|
-
function isFlatArray(arr) {
|
|
32468
|
-
return utils$1.isArray(arr) && !arr.some(isVisitable);
|
|
32469
|
-
}
|
|
32470
|
-
const predicates = utils$1.toFlatObject(utils$1, {}, null, function filter(prop) {
|
|
32471
|
-
return /^is[A-Z]/.test(prop);
|
|
32472
|
-
});
|
|
32473
|
-
function toFormData(obj, formData, options) {
|
|
32474
|
-
if (!utils$1.isObject(obj)) {
|
|
32475
|
-
throw new TypeError("target must be an object");
|
|
32476
|
-
}
|
|
32477
|
-
formData = formData || new FormData();
|
|
32478
|
-
options = utils$1.toFlatObject(
|
|
32479
|
-
options,
|
|
32480
|
-
{
|
|
32481
|
-
metaTokens: true,
|
|
32482
|
-
dots: false,
|
|
32483
|
-
indexes: false
|
|
32484
|
-
},
|
|
32485
|
-
false,
|
|
32486
|
-
function defined(option2, source) {
|
|
32487
|
-
return !utils$1.isUndefined(source[option2]);
|
|
32488
|
-
}
|
|
32489
|
-
);
|
|
32490
|
-
const metaTokens = options.metaTokens;
|
|
32491
|
-
const visitor = options.visitor || defaultVisitor;
|
|
32492
|
-
const dots = options.dots;
|
|
32493
|
-
const indexes = options.indexes;
|
|
32494
|
-
const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
|
|
32495
|
-
const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
|
|
32496
|
-
if (!utils$1.isFunction(visitor)) {
|
|
32497
|
-
throw new TypeError("visitor must be a function");
|
|
32498
|
-
}
|
|
32499
|
-
function convertValue(value17) {
|
|
32500
|
-
if (value17 === null)
|
|
32501
|
-
return "";
|
|
32502
|
-
if (utils$1.isDate(value17)) {
|
|
32503
|
-
return value17.toISOString();
|
|
32504
|
-
}
|
|
32505
|
-
if (utils$1.isBoolean(value17)) {
|
|
32506
|
-
return value17.toString();
|
|
32507
|
-
}
|
|
32508
|
-
if (!useBlob && utils$1.isBlob(value17)) {
|
|
32509
|
-
throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");
|
|
32510
|
-
}
|
|
32511
|
-
if (utils$1.isArrayBuffer(value17) || utils$1.isTypedArray(value17)) {
|
|
32512
|
-
return useBlob && typeof Blob === "function" ? new Blob([value17]) : Buffer.from(value17);
|
|
32513
|
-
}
|
|
32514
|
-
return value17;
|
|
32515
|
-
}
|
|
32516
|
-
function defaultVisitor(value17, key, path2) {
|
|
32517
|
-
let arr = value17;
|
|
32518
|
-
if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value17)) {
|
|
32519
|
-
formData.append(renderKey(path2, key, dots), convertValue(value17));
|
|
32520
|
-
return false;
|
|
32521
|
-
}
|
|
32522
|
-
if (value17 && !path2 && typeof value17 === "object") {
|
|
32523
|
-
if (utils$1.endsWith(key, "{}")) {
|
|
32524
|
-
key = metaTokens ? key : key.slice(0, -2);
|
|
32525
|
-
value17 = JSON.stringify(value17);
|
|
32526
|
-
} else if (utils$1.isArray(value17) && isFlatArray(value17) || (utils$1.isFileList(value17) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value17))) {
|
|
32527
|
-
key = removeBrackets(key);
|
|
32528
|
-
arr.forEach(function each(el, index2) {
|
|
32529
|
-
!(utils$1.isUndefined(el) || el === null) && formData.append(
|
|
32530
|
-
indexes === true ? renderKey([key], index2, dots) : indexes === null ? key : key + "[]",
|
|
32531
|
-
convertValue(el)
|
|
32532
|
-
);
|
|
32533
|
-
});
|
|
32534
|
-
return false;
|
|
32535
|
-
}
|
|
32536
|
-
}
|
|
32537
|
-
if (isVisitable(value17)) {
|
|
32538
|
-
return true;
|
|
32539
|
-
}
|
|
32540
|
-
formData.append(renderKey(path2, key, dots), convertValue(value17));
|
|
32541
|
-
return false;
|
|
32542
|
-
}
|
|
32543
|
-
const stack = [];
|
|
32544
|
-
const exposedHelpers = Object.assign(predicates, {
|
|
32545
|
-
defaultVisitor,
|
|
32546
|
-
convertValue,
|
|
32547
|
-
isVisitable
|
|
32548
|
-
});
|
|
32549
|
-
function build(value17, path2) {
|
|
32550
|
-
if (utils$1.isUndefined(value17))
|
|
32551
|
-
return;
|
|
32552
|
-
if (stack.indexOf(value17) !== -1) {
|
|
32553
|
-
throw Error("Circular reference detected in " + path2.join("."));
|
|
32554
|
-
}
|
|
32555
|
-
stack.push(value17);
|
|
32556
|
-
utils$1.forEach(value17, function each(el, key) {
|
|
32557
|
-
const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path2, exposedHelpers);
|
|
32558
|
-
if (result === true) {
|
|
32559
|
-
build(el, path2 ? path2.concat(key) : [key]);
|
|
32560
|
-
}
|
|
32561
|
-
});
|
|
32562
|
-
stack.pop();
|
|
32563
|
-
}
|
|
32564
|
-
if (!utils$1.isObject(obj)) {
|
|
32565
|
-
throw new TypeError("data must be an object");
|
|
32566
|
-
}
|
|
32567
|
-
build(obj);
|
|
32568
|
-
return formData;
|
|
32569
|
-
}
|
|
32570
|
-
function encode$1(str) {
|
|
32571
|
-
const charMap = {
|
|
32572
|
-
"!": "%21",
|
|
32573
|
-
"'": "%27",
|
|
32574
|
-
"(": "%28",
|
|
32575
|
-
")": "%29",
|
|
32576
|
-
"~": "%7E",
|
|
32577
|
-
"%20": "+",
|
|
32578
|
-
"%00": "\0"
|
|
32579
|
-
};
|
|
32580
|
-
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
|
32581
|
-
return charMap[match];
|
|
32582
|
-
});
|
|
32583
|
-
}
|
|
32584
|
-
function AxiosURLSearchParams(params, options) {
|
|
32585
|
-
this._pairs = [];
|
|
32586
|
-
params && toFormData(params, this, options);
|
|
32587
|
-
}
|
|
32588
|
-
const prototype = AxiosURLSearchParams.prototype;
|
|
32589
|
-
prototype.append = function append(name2, value17) {
|
|
32590
|
-
this._pairs.push([name2, value17]);
|
|
32591
|
-
};
|
|
32592
|
-
prototype.toString = function toString2(encoder) {
|
|
32593
|
-
const _encode = encoder ? function(value17) {
|
|
32594
|
-
return encoder.call(this, value17, encode$1);
|
|
32595
|
-
} : encode$1;
|
|
32596
|
-
return this._pairs.map(function each(pair) {
|
|
32597
|
-
return _encode(pair[0]) + "=" + _encode(pair[1]);
|
|
32598
|
-
}, "").join("&");
|
|
32129
|
+
stripBOM
|
|
32599
32130
|
};
|
|
32131
|
+
var utils$c = utils$d;
|
|
32600
32132
|
function encode(val) {
|
|
32601
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
32133
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
32602
32134
|
}
|
|
32603
|
-
function buildURL(url, params,
|
|
32135
|
+
var buildURL$2 = function buildURL(url, params, paramsSerializer) {
|
|
32604
32136
|
if (!params) {
|
|
32605
32137
|
return url;
|
|
32606
32138
|
}
|
|
32607
|
-
|
|
32608
|
-
|
|
32609
|
-
|
|
32610
|
-
}
|
|
32611
|
-
|
|
32612
|
-
let serializedParams;
|
|
32613
|
-
if (serializeFn) {
|
|
32614
|
-
serializedParams = serializeFn(params, _options);
|
|
32139
|
+
var serializedParams;
|
|
32140
|
+
if (paramsSerializer) {
|
|
32141
|
+
serializedParams = paramsSerializer(params);
|
|
32142
|
+
} else if (utils$c.isURLSearchParams(params)) {
|
|
32143
|
+
serializedParams = params.toString();
|
|
32615
32144
|
} else {
|
|
32616
|
-
|
|
32145
|
+
var parts = [];
|
|
32146
|
+
utils$c.forEach(params, function serialize(val, key) {
|
|
32147
|
+
if (val === null || typeof val === "undefined") {
|
|
32148
|
+
return;
|
|
32149
|
+
}
|
|
32150
|
+
if (utils$c.isArray(val)) {
|
|
32151
|
+
key = key + "[]";
|
|
32152
|
+
} else {
|
|
32153
|
+
val = [val];
|
|
32154
|
+
}
|
|
32155
|
+
utils$c.forEach(val, function parseValue(v) {
|
|
32156
|
+
if (utils$c.isDate(v)) {
|
|
32157
|
+
v = v.toISOString();
|
|
32158
|
+
} else if (utils$c.isObject(v)) {
|
|
32159
|
+
v = JSON.stringify(v);
|
|
32160
|
+
}
|
|
32161
|
+
parts.push(encode(key) + "=" + encode(v));
|
|
32162
|
+
});
|
|
32163
|
+
});
|
|
32164
|
+
serializedParams = parts.join("&");
|
|
32617
32165
|
}
|
|
32618
32166
|
if (serializedParams) {
|
|
32619
|
-
|
|
32167
|
+
var hashmarkIndex = url.indexOf("#");
|
|
32620
32168
|
if (hashmarkIndex !== -1) {
|
|
32621
32169
|
url = url.slice(0, hashmarkIndex);
|
|
32622
32170
|
}
|
|
32623
32171
|
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
32624
32172
|
}
|
|
32625
32173
|
return url;
|
|
32174
|
+
};
|
|
32175
|
+
var utils$b = utils$d;
|
|
32176
|
+
function InterceptorManager$1() {
|
|
32177
|
+
this.handlers = [];
|
|
32626
32178
|
}
|
|
32627
|
-
|
|
32628
|
-
|
|
32629
|
-
|
|
32630
|
-
|
|
32631
|
-
|
|
32632
|
-
|
|
32633
|
-
fulfilled,
|
|
32634
|
-
rejected,
|
|
32635
|
-
synchronous: options ? options.synchronous : false,
|
|
32636
|
-
runWhen: options ? options.runWhen : null
|
|
32637
|
-
});
|
|
32638
|
-
return this.handlers.length - 1;
|
|
32639
|
-
}
|
|
32640
|
-
eject(id) {
|
|
32641
|
-
if (this.handlers[id]) {
|
|
32642
|
-
this.handlers[id] = null;
|
|
32643
|
-
}
|
|
32644
|
-
}
|
|
32645
|
-
clear() {
|
|
32646
|
-
if (this.handlers) {
|
|
32647
|
-
this.handlers = [];
|
|
32648
|
-
}
|
|
32649
|
-
}
|
|
32650
|
-
forEach(fn2) {
|
|
32651
|
-
utils$1.forEach(this.handlers, function forEachHandler(h) {
|
|
32652
|
-
if (h !== null) {
|
|
32653
|
-
fn2(h);
|
|
32654
|
-
}
|
|
32655
|
-
});
|
|
32656
|
-
}
|
|
32657
|
-
}
|
|
32658
|
-
var InterceptorManager$1 = InterceptorManager;
|
|
32659
|
-
var transitionalDefaults = {
|
|
32660
|
-
silentJSONParsing: true,
|
|
32661
|
-
forcedJSONParsing: true,
|
|
32662
|
-
clarifyTimeoutError: false,
|
|
32663
|
-
legacyInterceptorReqResOrdering: true
|
|
32664
|
-
};
|
|
32665
|
-
var URLSearchParams$1 = typeof URLSearchParams !== "undefined" ? URLSearchParams : AxiosURLSearchParams;
|
|
32666
|
-
var FormData$1 = typeof FormData !== "undefined" ? FormData : null;
|
|
32667
|
-
var Blob$1 = typeof Blob !== "undefined" ? Blob : null;
|
|
32668
|
-
var platform$1 = {
|
|
32669
|
-
isBrowser: true,
|
|
32670
|
-
classes: {
|
|
32671
|
-
URLSearchParams: URLSearchParams$1,
|
|
32672
|
-
FormData: FormData$1,
|
|
32673
|
-
Blob: Blob$1
|
|
32674
|
-
},
|
|
32675
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
32676
|
-
};
|
|
32677
|
-
const hasBrowserEnv = typeof window !== "undefined" && typeof document !== "undefined";
|
|
32678
|
-
const _navigator = typeof navigator === "object" && navigator || void 0;
|
|
32679
|
-
const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || ["ReactNative", "NativeScript", "NS"].indexOf(_navigator.product) < 0);
|
|
32680
|
-
const hasStandardBrowserWebWorkerEnv = (() => {
|
|
32681
|
-
return typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope && typeof self.importScripts === "function";
|
|
32682
|
-
})();
|
|
32683
|
-
const origin = hasBrowserEnv && window.location.href || "http://localhost";
|
|
32684
|
-
var utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32685
|
-
__proto__: null,
|
|
32686
|
-
hasBrowserEnv,
|
|
32687
|
-
hasStandardBrowserWebWorkerEnv,
|
|
32688
|
-
hasStandardBrowserEnv,
|
|
32689
|
-
navigator: _navigator,
|
|
32690
|
-
origin
|
|
32691
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
32692
|
-
var platform = {
|
|
32693
|
-
...utils,
|
|
32694
|
-
...platform$1
|
|
32695
|
-
};
|
|
32696
|
-
function toURLEncodedForm(data49, options) {
|
|
32697
|
-
return toFormData(data49, new platform.classes.URLSearchParams(), {
|
|
32698
|
-
visitor: function(value17, key, path2, helpers) {
|
|
32699
|
-
if (platform.isNode && utils$1.isBuffer(value17)) {
|
|
32700
|
-
this.append(key, value17.toString("base64"));
|
|
32701
|
-
return false;
|
|
32702
|
-
}
|
|
32703
|
-
return helpers.defaultVisitor.apply(this, arguments);
|
|
32704
|
-
},
|
|
32705
|
-
...options
|
|
32706
|
-
});
|
|
32707
|
-
}
|
|
32708
|
-
function parsePropPath(name2) {
|
|
32709
|
-
return utils$1.matchAll(/\w+|\[(\w*)]/g, name2).map((match) => {
|
|
32710
|
-
return match[0] === "[]" ? "" : match[1] || match[0];
|
|
32179
|
+
InterceptorManager$1.prototype.use = function use2(fulfilled, rejected, options) {
|
|
32180
|
+
this.handlers.push({
|
|
32181
|
+
fulfilled,
|
|
32182
|
+
rejected,
|
|
32183
|
+
synchronous: options ? options.synchronous : false,
|
|
32184
|
+
runWhen: options ? options.runWhen : null
|
|
32711
32185
|
});
|
|
32712
|
-
|
|
32713
|
-
|
|
32714
|
-
|
|
32715
|
-
|
|
32716
|
-
|
|
32717
|
-
const len = keys2.length;
|
|
32718
|
-
let key;
|
|
32719
|
-
for (i = 0; i < len; i++) {
|
|
32720
|
-
key = keys2[i];
|
|
32721
|
-
obj[key] = arr[key];
|
|
32186
|
+
return this.handlers.length - 1;
|
|
32187
|
+
};
|
|
32188
|
+
InterceptorManager$1.prototype.eject = function eject(id) {
|
|
32189
|
+
if (this.handlers[id]) {
|
|
32190
|
+
this.handlers[id] = null;
|
|
32722
32191
|
}
|
|
32723
|
-
|
|
32724
|
-
|
|
32725
|
-
function
|
|
32726
|
-
|
|
32727
|
-
|
|
32728
|
-
if (name2 === "__proto__")
|
|
32729
|
-
return true;
|
|
32730
|
-
const isNumericKey = Number.isFinite(+name2);
|
|
32731
|
-
const isLast2 = index2 >= path2.length;
|
|
32732
|
-
name2 = !name2 && utils$1.isArray(target2) ? target2.length : name2;
|
|
32733
|
-
if (isLast2) {
|
|
32734
|
-
if (utils$1.hasOwnProp(target2, name2)) {
|
|
32735
|
-
target2[name2] = [target2[name2], value17];
|
|
32736
|
-
} else {
|
|
32737
|
-
target2[name2] = value17;
|
|
32738
|
-
}
|
|
32739
|
-
return !isNumericKey;
|
|
32740
|
-
}
|
|
32741
|
-
if (!target2[name2] || !utils$1.isObject(target2[name2])) {
|
|
32742
|
-
target2[name2] = [];
|
|
32192
|
+
};
|
|
32193
|
+
InterceptorManager$1.prototype.forEach = function forEach2(fn2) {
|
|
32194
|
+
utils$b.forEach(this.handlers, function forEachHandler(h) {
|
|
32195
|
+
if (h !== null) {
|
|
32196
|
+
fn2(h);
|
|
32743
32197
|
}
|
|
32744
|
-
|
|
32745
|
-
|
|
32746
|
-
|
|
32198
|
+
});
|
|
32199
|
+
};
|
|
32200
|
+
var InterceptorManager_1 = InterceptorManager$1;
|
|
32201
|
+
var utils$a = utils$d;
|
|
32202
|
+
var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
|
|
32203
|
+
utils$a.forEach(headers, function processHeader(value17, name2) {
|
|
32204
|
+
if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
|
|
32205
|
+
headers[normalizedName] = value17;
|
|
32206
|
+
delete headers[name2];
|
|
32747
32207
|
}
|
|
32748
|
-
|
|
32208
|
+
});
|
|
32209
|
+
};
|
|
32210
|
+
var enhanceError$2 = function enhanceError(error, config2, code2, request2, response) {
|
|
32211
|
+
error.config = config2;
|
|
32212
|
+
if (code2) {
|
|
32213
|
+
error.code = code2;
|
|
32749
32214
|
}
|
|
32750
|
-
|
|
32751
|
-
|
|
32752
|
-
|
|
32753
|
-
|
|
32754
|
-
|
|
32755
|
-
|
|
32215
|
+
error.request = request2;
|
|
32216
|
+
error.response = response;
|
|
32217
|
+
error.isAxiosError = true;
|
|
32218
|
+
error.toJSON = function toJSON() {
|
|
32219
|
+
return {
|
|
32220
|
+
message: this.message,
|
|
32221
|
+
name: this.name,
|
|
32222
|
+
description: this.description,
|
|
32223
|
+
number: this.number,
|
|
32224
|
+
fileName: this.fileName,
|
|
32225
|
+
lineNumber: this.lineNumber,
|
|
32226
|
+
columnNumber: this.columnNumber,
|
|
32227
|
+
stack: this.stack,
|
|
32228
|
+
config: this.config,
|
|
32229
|
+
code: this.code
|
|
32230
|
+
};
|
|
32231
|
+
};
|
|
32232
|
+
return error;
|
|
32233
|
+
};
|
|
32234
|
+
var enhanceError$1 = enhanceError$2;
|
|
32235
|
+
var createError$2 = function createError(message, config2, code2, request2, response) {
|
|
32236
|
+
var error = new Error(message);
|
|
32237
|
+
return enhanceError$1(error, config2, code2, request2, response);
|
|
32238
|
+
};
|
|
32239
|
+
var createError$1 = createError$2;
|
|
32240
|
+
var settle$1 = function settle(resolve, reject, response) {
|
|
32241
|
+
var validateStatus2 = response.config.validateStatus;
|
|
32242
|
+
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
32243
|
+
resolve(response);
|
|
32244
|
+
} else {
|
|
32245
|
+
reject(createError$1(
|
|
32246
|
+
"Request failed with status code " + response.status,
|
|
32247
|
+
response.config,
|
|
32248
|
+
null,
|
|
32249
|
+
response.request,
|
|
32250
|
+
response
|
|
32251
|
+
));
|
|
32756
32252
|
}
|
|
32757
|
-
|
|
32758
|
-
|
|
32759
|
-
|
|
32760
|
-
|
|
32761
|
-
|
|
32762
|
-
|
|
32763
|
-
|
|
32764
|
-
|
|
32765
|
-
|
|
32766
|
-
throw e;
|
|
32253
|
+
};
|
|
32254
|
+
var utils$9 = utils$d;
|
|
32255
|
+
var cookies$1 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
32256
|
+
return {
|
|
32257
|
+
write: function write2(name2, value17, expires, path2, domain, secure) {
|
|
32258
|
+
var cookie = [];
|
|
32259
|
+
cookie.push(name2 + "=" + encodeURIComponent(value17));
|
|
32260
|
+
if (utils$9.isNumber(expires)) {
|
|
32261
|
+
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
32767
32262
|
}
|
|
32768
|
-
|
|
32769
|
-
|
|
32770
|
-
return (encoder || JSON.stringify)(rawValue);
|
|
32771
|
-
}
|
|
32772
|
-
const defaults = {
|
|
32773
|
-
transitional: transitionalDefaults,
|
|
32774
|
-
adapter: ["xhr", "http", "fetch"],
|
|
32775
|
-
transformRequest: [
|
|
32776
|
-
function transformRequest(data49, headers) {
|
|
32777
|
-
const contentType = headers.getContentType() || "";
|
|
32778
|
-
const hasJSONContentType = contentType.indexOf("application/json") > -1;
|
|
32779
|
-
const isObjectPayload = utils$1.isObject(data49);
|
|
32780
|
-
if (isObjectPayload && utils$1.isHTMLForm(data49)) {
|
|
32781
|
-
data49 = new FormData(data49);
|
|
32782
|
-
}
|
|
32783
|
-
const isFormData2 = utils$1.isFormData(data49);
|
|
32784
|
-
if (isFormData2) {
|
|
32785
|
-
return hasJSONContentType ? JSON.stringify(formDataToJSON(data49)) : data49;
|
|
32786
|
-
}
|
|
32787
|
-
if (utils$1.isArrayBuffer(data49) || utils$1.isBuffer(data49) || utils$1.isStream(data49) || utils$1.isFile(data49) || utils$1.isBlob(data49) || utils$1.isReadableStream(data49)) {
|
|
32788
|
-
return data49;
|
|
32789
|
-
}
|
|
32790
|
-
if (utils$1.isArrayBufferView(data49)) {
|
|
32791
|
-
return data49.buffer;
|
|
32792
|
-
}
|
|
32793
|
-
if (utils$1.isURLSearchParams(data49)) {
|
|
32794
|
-
headers.setContentType("application/x-www-form-urlencoded;charset=utf-8", false);
|
|
32795
|
-
return data49.toString();
|
|
32796
|
-
}
|
|
32797
|
-
let isFileList2;
|
|
32798
|
-
if (isObjectPayload) {
|
|
32799
|
-
if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
|
|
32800
|
-
return toURLEncodedForm(data49, this.formSerializer).toString();
|
|
32801
|
-
}
|
|
32802
|
-
if ((isFileList2 = utils$1.isFileList(data49)) || contentType.indexOf("multipart/form-data") > -1) {
|
|
32803
|
-
const _FormData = this.env && this.env.FormData;
|
|
32804
|
-
return toFormData(
|
|
32805
|
-
isFileList2 ? { "files[]": data49 } : data49,
|
|
32806
|
-
_FormData && new _FormData(),
|
|
32807
|
-
this.formSerializer
|
|
32808
|
-
);
|
|
32809
|
-
}
|
|
32263
|
+
if (utils$9.isString(path2)) {
|
|
32264
|
+
cookie.push("path=" + path2);
|
|
32810
32265
|
}
|
|
32811
|
-
if (
|
|
32812
|
-
|
|
32813
|
-
return stringifySafely(data49);
|
|
32266
|
+
if (utils$9.isString(domain)) {
|
|
32267
|
+
cookie.push("domain=" + domain);
|
|
32814
32268
|
}
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
],
|
|
32818
|
-
transformResponse: [
|
|
32819
|
-
function transformResponse(data49) {
|
|
32820
|
-
const transitional2 = this.transitional || defaults.transitional;
|
|
32821
|
-
const forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32822
|
-
const JSONRequested = this.responseType === "json";
|
|
32823
|
-
if (utils$1.isResponse(data49) || utils$1.isReadableStream(data49)) {
|
|
32824
|
-
return data49;
|
|
32825
|
-
}
|
|
32826
|
-
if (data49 && utils$1.isString(data49) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
|
32827
|
-
const silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32828
|
-
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
|
32829
|
-
try {
|
|
32830
|
-
return JSON.parse(data49, this.parseReviver);
|
|
32831
|
-
} catch (e) {
|
|
32832
|
-
if (strictJSONParsing) {
|
|
32833
|
-
if (e.name === "SyntaxError") {
|
|
32834
|
-
throw AxiosError$1.from(e, AxiosError$1.ERR_BAD_RESPONSE, this, null, this.response);
|
|
32835
|
-
}
|
|
32836
|
-
throw e;
|
|
32837
|
-
}
|
|
32838
|
-
}
|
|
32269
|
+
if (secure === true) {
|
|
32270
|
+
cookie.push("secure");
|
|
32839
32271
|
}
|
|
32840
|
-
|
|
32272
|
+
document.cookie = cookie.join("; ");
|
|
32273
|
+
},
|
|
32274
|
+
read: function read2(name2) {
|
|
32275
|
+
var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
|
|
32276
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
32277
|
+
},
|
|
32278
|
+
remove: function remove2(name2) {
|
|
32279
|
+
this.write(name2, "", Date.now() - 864e5);
|
|
32841
32280
|
}
|
|
32842
|
-
|
|
32843
|
-
|
|
32844
|
-
|
|
32845
|
-
|
|
32846
|
-
|
|
32847
|
-
|
|
32848
|
-
|
|
32849
|
-
|
|
32850
|
-
|
|
32851
|
-
},
|
|
32852
|
-
validateStatus: function validateStatus(status2) {
|
|
32853
|
-
return status2 >= 200 && status2 < 300;
|
|
32854
|
-
},
|
|
32855
|
-
headers: {
|
|
32856
|
-
common: {
|
|
32857
|
-
Accept: "application/json, text/plain, */*",
|
|
32858
|
-
"Content-Type": void 0
|
|
32281
|
+
};
|
|
32282
|
+
}() : function nonStandardBrowserEnv() {
|
|
32283
|
+
return {
|
|
32284
|
+
write: function write2() {
|
|
32285
|
+
},
|
|
32286
|
+
read: function read2() {
|
|
32287
|
+
return null;
|
|
32288
|
+
},
|
|
32289
|
+
remove: function remove2() {
|
|
32859
32290
|
}
|
|
32291
|
+
};
|
|
32292
|
+
}();
|
|
32293
|
+
var isAbsoluteURL$1 = function isAbsoluteURL(url) {
|
|
32294
|
+
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
32295
|
+
};
|
|
32296
|
+
var combineURLs$1 = function combineURLs(baseURL, relativeURL) {
|
|
32297
|
+
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
32298
|
+
};
|
|
32299
|
+
var isAbsoluteURL2 = isAbsoluteURL$1;
|
|
32300
|
+
var combineURLs2 = combineURLs$1;
|
|
32301
|
+
var buildFullPath$1 = function buildFullPath(baseURL, requestedURL) {
|
|
32302
|
+
if (baseURL && !isAbsoluteURL2(requestedURL)) {
|
|
32303
|
+
return combineURLs2(baseURL, requestedURL);
|
|
32860
32304
|
}
|
|
32305
|
+
return requestedURL;
|
|
32861
32306
|
};
|
|
32862
|
-
utils$
|
|
32863
|
-
|
|
32864
|
-
});
|
|
32865
|
-
var defaults$1 = defaults;
|
|
32866
|
-
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
32307
|
+
var utils$8 = utils$d;
|
|
32308
|
+
var ignoreDuplicateOf = [
|
|
32867
32309
|
"age",
|
|
32868
32310
|
"authorization",
|
|
32869
32311
|
"content-length",
|
|
@@ -32881,1181 +32323,561 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
|
32881
32323
|
"referer",
|
|
32882
32324
|
"retry-after",
|
|
32883
32325
|
"user-agent"
|
|
32884
|
-
]
|
|
32885
|
-
var parseHeaders = (
|
|
32886
|
-
|
|
32887
|
-
|
|
32888
|
-
|
|
32889
|
-
|
|
32890
|
-
|
|
32326
|
+
];
|
|
32327
|
+
var parseHeaders$1 = function parseHeaders(headers) {
|
|
32328
|
+
var parsed = {};
|
|
32329
|
+
var key;
|
|
32330
|
+
var val;
|
|
32331
|
+
var i;
|
|
32332
|
+
if (!headers) {
|
|
32333
|
+
return parsed;
|
|
32334
|
+
}
|
|
32335
|
+
utils$8.forEach(headers.split("\n"), function parser(line) {
|
|
32891
32336
|
i = line.indexOf(":");
|
|
32892
|
-
key = line.
|
|
32893
|
-
val = line.
|
|
32894
|
-
if (
|
|
32895
|
-
|
|
32896
|
-
|
|
32897
|
-
|
|
32898
|
-
if (
|
|
32899
|
-
parsed[key].
|
|
32337
|
+
key = utils$8.trim(line.substr(0, i)).toLowerCase();
|
|
32338
|
+
val = utils$8.trim(line.substr(i + 1));
|
|
32339
|
+
if (key) {
|
|
32340
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
32341
|
+
return;
|
|
32342
|
+
}
|
|
32343
|
+
if (key === "set-cookie") {
|
|
32344
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
32900
32345
|
} else {
|
|
32901
|
-
parsed[key] = [val
|
|
32346
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
32902
32347
|
}
|
|
32903
|
-
} else {
|
|
32904
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
32905
32348
|
}
|
|
32906
32349
|
});
|
|
32907
32350
|
return parsed;
|
|
32908
32351
|
};
|
|
32909
|
-
|
|
32910
|
-
function
|
|
32911
|
-
|
|
32912
|
-
|
|
32913
|
-
|
|
32914
|
-
|
|
32915
|
-
|
|
32916
|
-
|
|
32917
|
-
|
|
32918
|
-
|
|
32919
|
-
|
|
32920
|
-
|
|
32921
|
-
|
|
32922
|
-
|
|
32923
|
-
|
|
32924
|
-
|
|
32925
|
-
|
|
32926
|
-
|
|
32927
|
-
|
|
32928
|
-
|
|
32929
|
-
|
|
32930
|
-
if (utils$1.isFunction(filter2)) {
|
|
32931
|
-
return filter2.call(this, value17, header);
|
|
32932
|
-
}
|
|
32933
|
-
if (isHeaderNameFilter) {
|
|
32934
|
-
value17 = header;
|
|
32935
|
-
}
|
|
32936
|
-
if (!utils$1.isString(value17))
|
|
32937
|
-
return;
|
|
32938
|
-
if (utils$1.isString(filter2)) {
|
|
32939
|
-
return value17.indexOf(filter2) !== -1;
|
|
32940
|
-
}
|
|
32941
|
-
if (utils$1.isRegExp(filter2)) {
|
|
32942
|
-
return filter2.test(value17);
|
|
32943
|
-
}
|
|
32944
|
-
}
|
|
32945
|
-
function formatHeader(header) {
|
|
32946
|
-
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
|
|
32947
|
-
return char.toUpperCase() + str;
|
|
32948
|
-
});
|
|
32949
|
-
}
|
|
32950
|
-
function buildAccessors(obj, header) {
|
|
32951
|
-
const accessorName = utils$1.toCamelCase(" " + header);
|
|
32952
|
-
["get", "set", "has"].forEach((methodName) => {
|
|
32953
|
-
Object.defineProperty(obj, methodName + accessorName, {
|
|
32954
|
-
value: function(arg1, arg2, arg3) {
|
|
32955
|
-
return this[methodName].call(this, header, arg1, arg2, arg3);
|
|
32956
|
-
},
|
|
32957
|
-
configurable: true
|
|
32958
|
-
});
|
|
32959
|
-
});
|
|
32960
|
-
}
|
|
32961
|
-
class AxiosHeaders {
|
|
32962
|
-
constructor(headers) {
|
|
32963
|
-
headers && this.set(headers);
|
|
32964
|
-
}
|
|
32965
|
-
set(header, valueOrRewrite, rewrite) {
|
|
32966
|
-
const self2 = this;
|
|
32967
|
-
function setHeader(_value, _header, _rewrite) {
|
|
32968
|
-
const lHeader = normalizeHeader(_header);
|
|
32969
|
-
if (!lHeader) {
|
|
32970
|
-
throw new Error("header name must be a non-empty string");
|
|
32971
|
-
}
|
|
32972
|
-
const key = utils$1.findKey(self2, lHeader);
|
|
32973
|
-
if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
|
|
32974
|
-
self2[key || _header] = normalizeValue(_value);
|
|
32975
|
-
}
|
|
32976
|
-
}
|
|
32977
|
-
const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
|
|
32978
|
-
if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
|
|
32979
|
-
setHeaders(header, valueOrRewrite);
|
|
32980
|
-
} else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
|
32981
|
-
setHeaders(parseHeaders(header), valueOrRewrite);
|
|
32982
|
-
} else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
|
|
32983
|
-
let obj = {}, dest, key;
|
|
32984
|
-
for (const entry of header) {
|
|
32985
|
-
if (!utils$1.isArray(entry)) {
|
|
32986
|
-
throw TypeError("Object iterator must return a key-value pair");
|
|
32987
|
-
}
|
|
32988
|
-
obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
|
|
32989
|
-
}
|
|
32990
|
-
setHeaders(obj, valueOrRewrite);
|
|
32991
|
-
} else {
|
|
32992
|
-
header != null && setHeader(valueOrRewrite, header, rewrite);
|
|
32993
|
-
}
|
|
32994
|
-
return this;
|
|
32995
|
-
}
|
|
32996
|
-
get(header, parser) {
|
|
32997
|
-
header = normalizeHeader(header);
|
|
32998
|
-
if (header) {
|
|
32999
|
-
const key = utils$1.findKey(this, header);
|
|
33000
|
-
if (key) {
|
|
33001
|
-
const value17 = this[key];
|
|
33002
|
-
if (!parser) {
|
|
33003
|
-
return value17;
|
|
33004
|
-
}
|
|
33005
|
-
if (parser === true) {
|
|
33006
|
-
return parseTokens(value17);
|
|
33007
|
-
}
|
|
33008
|
-
if (utils$1.isFunction(parser)) {
|
|
33009
|
-
return parser.call(this, value17, key);
|
|
33010
|
-
}
|
|
33011
|
-
if (utils$1.isRegExp(parser)) {
|
|
33012
|
-
return parser.exec(value17);
|
|
33013
|
-
}
|
|
33014
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
33015
|
-
}
|
|
33016
|
-
}
|
|
33017
|
-
}
|
|
33018
|
-
has(header, matcher) {
|
|
33019
|
-
header = normalizeHeader(header);
|
|
33020
|
-
if (header) {
|
|
33021
|
-
const key = utils$1.findKey(this, header);
|
|
33022
|
-
return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
|
33023
|
-
}
|
|
33024
|
-
return false;
|
|
33025
|
-
}
|
|
33026
|
-
delete(header, matcher) {
|
|
33027
|
-
const self2 = this;
|
|
33028
|
-
let deleted = false;
|
|
33029
|
-
function deleteHeader(_header) {
|
|
33030
|
-
_header = normalizeHeader(_header);
|
|
33031
|
-
if (_header) {
|
|
33032
|
-
const key = utils$1.findKey(self2, _header);
|
|
33033
|
-
if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
|
|
33034
|
-
delete self2[key];
|
|
33035
|
-
deleted = true;
|
|
33036
|
-
}
|
|
33037
|
-
}
|
|
33038
|
-
}
|
|
33039
|
-
if (utils$1.isArray(header)) {
|
|
33040
|
-
header.forEach(deleteHeader);
|
|
33041
|
-
} else {
|
|
33042
|
-
deleteHeader(header);
|
|
33043
|
-
}
|
|
33044
|
-
return deleted;
|
|
33045
|
-
}
|
|
33046
|
-
clear(matcher) {
|
|
33047
|
-
const keys2 = Object.keys(this);
|
|
33048
|
-
let i = keys2.length;
|
|
33049
|
-
let deleted = false;
|
|
33050
|
-
while (i--) {
|
|
33051
|
-
const key = keys2[i];
|
|
33052
|
-
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
|
33053
|
-
delete this[key];
|
|
33054
|
-
deleted = true;
|
|
33055
|
-
}
|
|
33056
|
-
}
|
|
33057
|
-
return deleted;
|
|
33058
|
-
}
|
|
33059
|
-
normalize(format5) {
|
|
33060
|
-
const self2 = this;
|
|
33061
|
-
const headers = {};
|
|
33062
|
-
utils$1.forEach(this, (value17, header) => {
|
|
33063
|
-
const key = utils$1.findKey(headers, header);
|
|
33064
|
-
if (key) {
|
|
33065
|
-
self2[key] = normalizeValue(value17);
|
|
33066
|
-
delete self2[header];
|
|
33067
|
-
return;
|
|
33068
|
-
}
|
|
33069
|
-
const normalized = format5 ? formatHeader(header) : String(header).trim();
|
|
33070
|
-
if (normalized !== header) {
|
|
33071
|
-
delete self2[header];
|
|
33072
|
-
}
|
|
33073
|
-
self2[normalized] = normalizeValue(value17);
|
|
33074
|
-
headers[normalized] = true;
|
|
33075
|
-
});
|
|
33076
|
-
return this;
|
|
33077
|
-
}
|
|
33078
|
-
concat(...targets) {
|
|
33079
|
-
return this.constructor.concat(this, ...targets);
|
|
33080
|
-
}
|
|
33081
|
-
toJSON(asStrings) {
|
|
33082
|
-
const obj = /* @__PURE__ */ Object.create(null);
|
|
33083
|
-
utils$1.forEach(this, (value17, header) => {
|
|
33084
|
-
value17 != null && value17 !== false && (obj[header] = asStrings && utils$1.isArray(value17) ? value17.join(", ") : value17);
|
|
33085
|
-
});
|
|
33086
|
-
return obj;
|
|
33087
|
-
}
|
|
33088
|
-
[Symbol.iterator]() {
|
|
33089
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
33090
|
-
}
|
|
33091
|
-
toString() {
|
|
33092
|
-
return Object.entries(this.toJSON()).map(([header, value17]) => header + ": " + value17).join("\n");
|
|
33093
|
-
}
|
|
33094
|
-
getSetCookie() {
|
|
33095
|
-
return this.get("set-cookie") || [];
|
|
33096
|
-
}
|
|
33097
|
-
get [Symbol.toStringTag]() {
|
|
33098
|
-
return "AxiosHeaders";
|
|
33099
|
-
}
|
|
33100
|
-
static from(thing) {
|
|
33101
|
-
return thing instanceof this ? thing : new this(thing);
|
|
33102
|
-
}
|
|
33103
|
-
static concat(first, ...targets) {
|
|
33104
|
-
const computed = new this(first);
|
|
33105
|
-
targets.forEach((target2) => computed.set(target2));
|
|
33106
|
-
return computed;
|
|
33107
|
-
}
|
|
33108
|
-
static accessor(header) {
|
|
33109
|
-
const internals = this[$internals] = this[$internals] = {
|
|
33110
|
-
accessors: {}
|
|
32352
|
+
var utils$7 = utils$d;
|
|
32353
|
+
var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowserEnv2() {
|
|
32354
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
32355
|
+
var urlParsingNode = document.createElement("a");
|
|
32356
|
+
var originURL;
|
|
32357
|
+
function resolveURL(url) {
|
|
32358
|
+
var href = url;
|
|
32359
|
+
if (msie) {
|
|
32360
|
+
urlParsingNode.setAttribute("href", href);
|
|
32361
|
+
href = urlParsingNode.href;
|
|
32362
|
+
}
|
|
32363
|
+
urlParsingNode.setAttribute("href", href);
|
|
32364
|
+
return {
|
|
32365
|
+
href: urlParsingNode.href,
|
|
32366
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
32367
|
+
host: urlParsingNode.host,
|
|
32368
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
32369
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
32370
|
+
hostname: urlParsingNode.hostname,
|
|
32371
|
+
port: urlParsingNode.port,
|
|
32372
|
+
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
33111
32373
|
};
|
|
33112
|
-
const accessors = internals.accessors;
|
|
33113
|
-
const prototype2 = this.prototype;
|
|
33114
|
-
function defineAccessor(_header) {
|
|
33115
|
-
const lHeader = normalizeHeader(_header);
|
|
33116
|
-
if (!accessors[lHeader]) {
|
|
33117
|
-
buildAccessors(prototype2, _header);
|
|
33118
|
-
accessors[lHeader] = true;
|
|
33119
|
-
}
|
|
33120
|
-
}
|
|
33121
|
-
utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
|
33122
|
-
return this;
|
|
33123
|
-
}
|
|
33124
|
-
}
|
|
33125
|
-
AxiosHeaders.accessor([
|
|
33126
|
-
"Content-Type",
|
|
33127
|
-
"Content-Length",
|
|
33128
|
-
"Accept",
|
|
33129
|
-
"Accept-Encoding",
|
|
33130
|
-
"User-Agent",
|
|
33131
|
-
"Authorization"
|
|
33132
|
-
]);
|
|
33133
|
-
utils$1.reduceDescriptors(AxiosHeaders.prototype, ({ value: value17 }, key) => {
|
|
33134
|
-
let mapped = key[0].toUpperCase() + key.slice(1);
|
|
33135
|
-
return {
|
|
33136
|
-
get: () => value17,
|
|
33137
|
-
set(headerValue) {
|
|
33138
|
-
this[mapped] = headerValue;
|
|
33139
|
-
}
|
|
33140
|
-
};
|
|
33141
|
-
});
|
|
33142
|
-
utils$1.freezeMethods(AxiosHeaders);
|
|
33143
|
-
var AxiosHeaders$1 = AxiosHeaders;
|
|
33144
|
-
function transformData(fns, response) {
|
|
33145
|
-
const config2 = this || defaults$1;
|
|
33146
|
-
const context2 = response || config2;
|
|
33147
|
-
const headers = AxiosHeaders$1.from(context2.headers);
|
|
33148
|
-
let data49 = context2.data;
|
|
33149
|
-
utils$1.forEach(fns, function transform(fn2) {
|
|
33150
|
-
data49 = fn2.call(config2, data49, headers.normalize(), response ? response.status : void 0);
|
|
33151
|
-
});
|
|
33152
|
-
headers.normalize();
|
|
33153
|
-
return data49;
|
|
33154
|
-
}
|
|
33155
|
-
function isCancel(value17) {
|
|
33156
|
-
return !!(value17 && value17.__CANCEL__);
|
|
33157
|
-
}
|
|
33158
|
-
class CanceledError extends AxiosError$1 {
|
|
33159
|
-
constructor(message, config2, request) {
|
|
33160
|
-
super(message == null ? "canceled" : message, AxiosError$1.ERR_CANCELED, config2, request);
|
|
33161
|
-
this.name = "CanceledError";
|
|
33162
|
-
this.__CANCEL__ = true;
|
|
33163
32374
|
}
|
|
33164
|
-
|
|
33165
|
-
|
|
33166
|
-
|
|
33167
|
-
|
|
33168
|
-
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
33169
|
-
resolve(response);
|
|
33170
|
-
} else {
|
|
33171
|
-
reject(
|
|
33172
|
-
new AxiosError$1(
|
|
33173
|
-
"Request failed with status code " + response.status,
|
|
33174
|
-
[AxiosError$1.ERR_BAD_REQUEST, AxiosError$1.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],
|
|
33175
|
-
response.config,
|
|
33176
|
-
response.request,
|
|
33177
|
-
response
|
|
33178
|
-
)
|
|
33179
|
-
);
|
|
33180
|
-
}
|
|
33181
|
-
}
|
|
33182
|
-
function parseProtocol(url) {
|
|
33183
|
-
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
|
33184
|
-
return match && match[1] || "";
|
|
33185
|
-
}
|
|
33186
|
-
function speedometer(samplesCount, min) {
|
|
33187
|
-
samplesCount = samplesCount || 10;
|
|
33188
|
-
const bytes = new Array(samplesCount);
|
|
33189
|
-
const timestamps = new Array(samplesCount);
|
|
33190
|
-
let head = 0;
|
|
33191
|
-
let tail = 0;
|
|
33192
|
-
let firstSampleTS;
|
|
33193
|
-
min = min !== void 0 ? min : 1e3;
|
|
33194
|
-
return function push(chunkLength) {
|
|
33195
|
-
const now = Date.now();
|
|
33196
|
-
const startedAt = timestamps[tail];
|
|
33197
|
-
if (!firstSampleTS) {
|
|
33198
|
-
firstSampleTS = now;
|
|
33199
|
-
}
|
|
33200
|
-
bytes[head] = chunkLength;
|
|
33201
|
-
timestamps[head] = now;
|
|
33202
|
-
let i = tail;
|
|
33203
|
-
let bytesCount = 0;
|
|
33204
|
-
while (i !== head) {
|
|
33205
|
-
bytesCount += bytes[i++];
|
|
33206
|
-
i = i % samplesCount;
|
|
33207
|
-
}
|
|
33208
|
-
head = (head + 1) % samplesCount;
|
|
33209
|
-
if (head === tail) {
|
|
33210
|
-
tail = (tail + 1) % samplesCount;
|
|
33211
|
-
}
|
|
33212
|
-
if (now - firstSampleTS < min) {
|
|
33213
|
-
return;
|
|
33214
|
-
}
|
|
33215
|
-
const passed = startedAt && now - startedAt;
|
|
33216
|
-
return passed ? Math.round(bytesCount * 1e3 / passed) : void 0;
|
|
33217
|
-
};
|
|
33218
|
-
}
|
|
33219
|
-
function throttle(fn2, freq) {
|
|
33220
|
-
let timestamp = 0;
|
|
33221
|
-
let threshold = 1e3 / freq;
|
|
33222
|
-
let lastArgs;
|
|
33223
|
-
let timer2;
|
|
33224
|
-
const invoke = (args, now = Date.now()) => {
|
|
33225
|
-
timestamp = now;
|
|
33226
|
-
lastArgs = null;
|
|
33227
|
-
if (timer2) {
|
|
33228
|
-
clearTimeout(timer2);
|
|
33229
|
-
timer2 = null;
|
|
33230
|
-
}
|
|
33231
|
-
fn2(...args);
|
|
33232
|
-
};
|
|
33233
|
-
const throttled = (...args) => {
|
|
33234
|
-
const now = Date.now();
|
|
33235
|
-
const passed = now - timestamp;
|
|
33236
|
-
if (passed >= threshold) {
|
|
33237
|
-
invoke(args, now);
|
|
33238
|
-
} else {
|
|
33239
|
-
lastArgs = args;
|
|
33240
|
-
if (!timer2) {
|
|
33241
|
-
timer2 = setTimeout(() => {
|
|
33242
|
-
timer2 = null;
|
|
33243
|
-
invoke(lastArgs);
|
|
33244
|
-
}, threshold - passed);
|
|
33245
|
-
}
|
|
33246
|
-
}
|
|
32375
|
+
originURL = resolveURL(window.location.href);
|
|
32376
|
+
return function isURLSameOrigin2(requestURL) {
|
|
32377
|
+
var parsed = utils$7.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
32378
|
+
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
33247
32379
|
};
|
|
33248
|
-
|
|
33249
|
-
return
|
|
33250
|
-
|
|
33251
|
-
const progressEventReducer = (listener, isDownloadStream, freq = 3) => {
|
|
33252
|
-
let bytesNotified = 0;
|
|
33253
|
-
const _speedometer = speedometer(50, 250);
|
|
33254
|
-
return throttle((e) => {
|
|
33255
|
-
const loaded = e.loaded;
|
|
33256
|
-
const total = e.lengthComputable ? e.total : void 0;
|
|
33257
|
-
const progressBytes = loaded - bytesNotified;
|
|
33258
|
-
const rate = _speedometer(progressBytes);
|
|
33259
|
-
const inRange = loaded <= total;
|
|
33260
|
-
bytesNotified = loaded;
|
|
33261
|
-
const data49 = {
|
|
33262
|
-
loaded,
|
|
33263
|
-
total,
|
|
33264
|
-
progress: total ? loaded / total : void 0,
|
|
33265
|
-
bytes: progressBytes,
|
|
33266
|
-
rate: rate ? rate : void 0,
|
|
33267
|
-
estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
|
|
33268
|
-
event: e,
|
|
33269
|
-
lengthComputable: total != null,
|
|
33270
|
-
[isDownloadStream ? "download" : "upload"]: true
|
|
33271
|
-
};
|
|
33272
|
-
listener(data49);
|
|
33273
|
-
}, freq);
|
|
33274
|
-
};
|
|
33275
|
-
const progressEventDecorator = (total, throttled) => {
|
|
33276
|
-
const lengthComputable = total != null;
|
|
33277
|
-
return [
|
|
33278
|
-
(loaded) => throttled[0]({
|
|
33279
|
-
lengthComputable,
|
|
33280
|
-
total,
|
|
33281
|
-
loaded
|
|
33282
|
-
}),
|
|
33283
|
-
throttled[1]
|
|
33284
|
-
];
|
|
33285
|
-
};
|
|
33286
|
-
const asyncDecorator = (fn2) => (...args) => utils$1.asap(() => fn2(...args));
|
|
33287
|
-
var isURLSameOrigin = platform.hasStandardBrowserEnv ? ((origin2, isMSIE) => (url) => {
|
|
33288
|
-
url = new URL(url, platform.origin);
|
|
33289
|
-
return origin2.protocol === url.protocol && origin2.host === url.host && (isMSIE || origin2.port === url.port);
|
|
33290
|
-
})(
|
|
33291
|
-
new URL(platform.origin),
|
|
33292
|
-
platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
|
|
33293
|
-
) : () => true;
|
|
33294
|
-
var cookies = platform.hasStandardBrowserEnv ? {
|
|
33295
|
-
write(name2, value17, expires, path2, domain, secure, sameSite) {
|
|
33296
|
-
if (typeof document === "undefined")
|
|
33297
|
-
return;
|
|
33298
|
-
const cookie = [`${name2}=${encodeURIComponent(value17)}`];
|
|
33299
|
-
if (utils$1.isNumber(expires)) {
|
|
33300
|
-
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
|
33301
|
-
}
|
|
33302
|
-
if (utils$1.isString(path2)) {
|
|
33303
|
-
cookie.push(`path=${path2}`);
|
|
33304
|
-
}
|
|
33305
|
-
if (utils$1.isString(domain)) {
|
|
33306
|
-
cookie.push(`domain=${domain}`);
|
|
33307
|
-
}
|
|
33308
|
-
if (secure === true) {
|
|
33309
|
-
cookie.push("secure");
|
|
33310
|
-
}
|
|
33311
|
-
if (utils$1.isString(sameSite)) {
|
|
33312
|
-
cookie.push(`SameSite=${sameSite}`);
|
|
33313
|
-
}
|
|
33314
|
-
document.cookie = cookie.join("; ");
|
|
33315
|
-
},
|
|
33316
|
-
read(name2) {
|
|
33317
|
-
if (typeof document === "undefined")
|
|
33318
|
-
return null;
|
|
33319
|
-
const match = document.cookie.match(new RegExp("(?:^|; )" + name2 + "=([^;]*)"));
|
|
33320
|
-
return match ? decodeURIComponent(match[1]) : null;
|
|
33321
|
-
},
|
|
33322
|
-
remove(name2) {
|
|
33323
|
-
this.write(name2, "", Date.now() - 864e5, "/");
|
|
33324
|
-
}
|
|
33325
|
-
} : {
|
|
33326
|
-
write() {
|
|
33327
|
-
},
|
|
33328
|
-
read() {
|
|
33329
|
-
return null;
|
|
33330
|
-
},
|
|
33331
|
-
remove() {
|
|
33332
|
-
}
|
|
33333
|
-
};
|
|
33334
|
-
function isAbsoluteURL(url) {
|
|
33335
|
-
if (typeof url !== "string") {
|
|
33336
|
-
return false;
|
|
33337
|
-
}
|
|
33338
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
|
33339
|
-
}
|
|
33340
|
-
function combineURLs(baseURL, relativeURL) {
|
|
33341
|
-
return relativeURL ? baseURL.replace(/\/?\/$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
33342
|
-
}
|
|
33343
|
-
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
33344
|
-
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
33345
|
-
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
33346
|
-
return combineURLs(baseURL, requestedURL);
|
|
33347
|
-
}
|
|
33348
|
-
return requestedURL;
|
|
33349
|
-
}
|
|
33350
|
-
const headersToObject = (thing) => thing instanceof AxiosHeaders$1 ? { ...thing } : thing;
|
|
33351
|
-
function mergeConfig(config1, config2) {
|
|
33352
|
-
config2 = config2 || {};
|
|
33353
|
-
const config3 = {};
|
|
33354
|
-
function getMergedValue(target2, source, prop, caseless) {
|
|
33355
|
-
if (utils$1.isPlainObject(target2) && utils$1.isPlainObject(source)) {
|
|
33356
|
-
return utils$1.merge.call({ caseless }, target2, source);
|
|
33357
|
-
} else if (utils$1.isPlainObject(source)) {
|
|
33358
|
-
return utils$1.merge({}, source);
|
|
33359
|
-
} else if (utils$1.isArray(source)) {
|
|
33360
|
-
return source.slice();
|
|
33361
|
-
}
|
|
33362
|
-
return source;
|
|
33363
|
-
}
|
|
33364
|
-
function mergeDeepProperties(a, b, prop, caseless) {
|
|
33365
|
-
if (!utils$1.isUndefined(b)) {
|
|
33366
|
-
return getMergedValue(a, b, prop, caseless);
|
|
33367
|
-
} else if (!utils$1.isUndefined(a)) {
|
|
33368
|
-
return getMergedValue(void 0, a, prop, caseless);
|
|
33369
|
-
}
|
|
33370
|
-
}
|
|
33371
|
-
function valueFromConfig2(a, b) {
|
|
33372
|
-
if (!utils$1.isUndefined(b)) {
|
|
33373
|
-
return getMergedValue(void 0, b);
|
|
33374
|
-
}
|
|
33375
|
-
}
|
|
33376
|
-
function defaultToConfig2(a, b) {
|
|
33377
|
-
if (!utils$1.isUndefined(b)) {
|
|
33378
|
-
return getMergedValue(void 0, b);
|
|
33379
|
-
} else if (!utils$1.isUndefined(a)) {
|
|
33380
|
-
return getMergedValue(void 0, a);
|
|
33381
|
-
}
|
|
33382
|
-
}
|
|
33383
|
-
function mergeDirectKeys(a, b, prop) {
|
|
33384
|
-
if (prop in config2) {
|
|
33385
|
-
return getMergedValue(a, b);
|
|
33386
|
-
} else if (prop in config1) {
|
|
33387
|
-
return getMergedValue(void 0, a);
|
|
33388
|
-
}
|
|
33389
|
-
}
|
|
33390
|
-
const mergeMap = {
|
|
33391
|
-
url: valueFromConfig2,
|
|
33392
|
-
method: valueFromConfig2,
|
|
33393
|
-
data: valueFromConfig2,
|
|
33394
|
-
baseURL: defaultToConfig2,
|
|
33395
|
-
transformRequest: defaultToConfig2,
|
|
33396
|
-
transformResponse: defaultToConfig2,
|
|
33397
|
-
paramsSerializer: defaultToConfig2,
|
|
33398
|
-
timeout: defaultToConfig2,
|
|
33399
|
-
timeoutMessage: defaultToConfig2,
|
|
33400
|
-
withCredentials: defaultToConfig2,
|
|
33401
|
-
withXSRFToken: defaultToConfig2,
|
|
33402
|
-
adapter: defaultToConfig2,
|
|
33403
|
-
responseType: defaultToConfig2,
|
|
33404
|
-
xsrfCookieName: defaultToConfig2,
|
|
33405
|
-
xsrfHeaderName: defaultToConfig2,
|
|
33406
|
-
onUploadProgress: defaultToConfig2,
|
|
33407
|
-
onDownloadProgress: defaultToConfig2,
|
|
33408
|
-
decompress: defaultToConfig2,
|
|
33409
|
-
maxContentLength: defaultToConfig2,
|
|
33410
|
-
maxBodyLength: defaultToConfig2,
|
|
33411
|
-
beforeRedirect: defaultToConfig2,
|
|
33412
|
-
transport: defaultToConfig2,
|
|
33413
|
-
httpAgent: defaultToConfig2,
|
|
33414
|
-
httpsAgent: defaultToConfig2,
|
|
33415
|
-
cancelToken: defaultToConfig2,
|
|
33416
|
-
socketPath: defaultToConfig2,
|
|
33417
|
-
responseEncoding: defaultToConfig2,
|
|
33418
|
-
validateStatus: mergeDirectKeys,
|
|
33419
|
-
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
32380
|
+
}() : function nonStandardBrowserEnv2() {
|
|
32381
|
+
return function isURLSameOrigin2() {
|
|
32382
|
+
return true;
|
|
33420
32383
|
};
|
|
33421
|
-
|
|
33422
|
-
|
|
33423
|
-
|
|
33424
|
-
|
|
33425
|
-
|
|
33426
|
-
|
|
33427
|
-
|
|
33428
|
-
|
|
33429
|
-
|
|
33430
|
-
var
|
|
33431
|
-
const newConfig = mergeConfig({}, config2);
|
|
33432
|
-
let { data: data49, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
|
33433
|
-
newConfig.headers = headers = AxiosHeaders$1.from(headers);
|
|
33434
|
-
newConfig.url = buildURL(
|
|
33435
|
-
buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls),
|
|
33436
|
-
config2.params,
|
|
33437
|
-
config2.paramsSerializer
|
|
33438
|
-
);
|
|
33439
|
-
if (auth) {
|
|
33440
|
-
headers.set(
|
|
33441
|
-
"Authorization",
|
|
33442
|
-
"Basic " + btoa(
|
|
33443
|
-
(auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")
|
|
33444
|
-
)
|
|
33445
|
-
);
|
|
33446
|
-
}
|
|
33447
|
-
if (utils$1.isFormData(data49)) {
|
|
33448
|
-
if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
|
|
33449
|
-
headers.setContentType(void 0);
|
|
33450
|
-
} else if (utils$1.isFunction(data49.getHeaders)) {
|
|
33451
|
-
const formHeaders = data49.getHeaders();
|
|
33452
|
-
const allowedHeaders = ["content-type", "content-length"];
|
|
33453
|
-
Object.entries(formHeaders).forEach(([key, val]) => {
|
|
33454
|
-
if (allowedHeaders.includes(key.toLowerCase())) {
|
|
33455
|
-
headers.set(key, val);
|
|
33456
|
-
}
|
|
33457
|
-
});
|
|
33458
|
-
}
|
|
33459
|
-
}
|
|
33460
|
-
if (platform.hasStandardBrowserEnv) {
|
|
33461
|
-
withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
|
33462
|
-
if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(newConfig.url)) {
|
|
33463
|
-
const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
|
|
33464
|
-
if (xsrfValue) {
|
|
33465
|
-
headers.set(xsrfHeaderName, xsrfValue);
|
|
33466
|
-
}
|
|
33467
|
-
}
|
|
33468
|
-
}
|
|
33469
|
-
return newConfig;
|
|
33470
|
-
};
|
|
33471
|
-
const isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
|
|
33472
|
-
var xhrAdapter = isXHRAdapterSupported && function(config2) {
|
|
32384
|
+
}();
|
|
32385
|
+
var utils$6 = utils$d;
|
|
32386
|
+
var settle2 = settle$1;
|
|
32387
|
+
var cookies = cookies$1;
|
|
32388
|
+
var buildURL$1 = buildURL$2;
|
|
32389
|
+
var buildFullPath2 = buildFullPath$1;
|
|
32390
|
+
var parseHeaders2 = parseHeaders$1;
|
|
32391
|
+
var isURLSameOrigin = isURLSameOrigin$1;
|
|
32392
|
+
var createError2 = createError$2;
|
|
32393
|
+
var xhr = function xhrAdapter(config2) {
|
|
33473
32394
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
33474
|
-
|
|
33475
|
-
|
|
33476
|
-
|
|
33477
|
-
|
|
33478
|
-
|
|
33479
|
-
|
|
33480
|
-
|
|
33481
|
-
|
|
33482
|
-
|
|
33483
|
-
|
|
33484
|
-
|
|
33485
|
-
|
|
33486
|
-
|
|
33487
|
-
|
|
33488
|
-
|
|
33489
|
-
request.timeout = _config.timeout;
|
|
32395
|
+
var requestData = config2.data;
|
|
32396
|
+
var requestHeaders = config2.headers;
|
|
32397
|
+
var responseType = config2.responseType;
|
|
32398
|
+
if (utils$6.isFormData(requestData)) {
|
|
32399
|
+
delete requestHeaders["Content-Type"];
|
|
32400
|
+
}
|
|
32401
|
+
var request2 = new XMLHttpRequest();
|
|
32402
|
+
if (config2.auth) {
|
|
32403
|
+
var username = config2.auth.username || "";
|
|
32404
|
+
var password = config2.auth.password ? unescape(encodeURIComponent(config2.auth.password)) : "";
|
|
32405
|
+
requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
|
|
32406
|
+
}
|
|
32407
|
+
var fullPath = buildFullPath2(config2.baseURL, config2.url);
|
|
32408
|
+
request2.open(config2.method.toUpperCase(), buildURL$1(fullPath, config2.params, config2.paramsSerializer), true);
|
|
32409
|
+
request2.timeout = config2.timeout;
|
|
33490
32410
|
function onloadend() {
|
|
33491
|
-
if (!
|
|
32411
|
+
if (!request2) {
|
|
33492
32412
|
return;
|
|
33493
32413
|
}
|
|
33494
|
-
|
|
33495
|
-
|
|
33496
|
-
|
|
33497
|
-
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
33498
|
-
const response = {
|
|
32414
|
+
var responseHeaders = "getAllResponseHeaders" in request2 ? parseHeaders2(request2.getAllResponseHeaders()) : null;
|
|
32415
|
+
var responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
|
|
32416
|
+
var response = {
|
|
33499
32417
|
data: responseData,
|
|
33500
|
-
status:
|
|
33501
|
-
statusText:
|
|
32418
|
+
status: request2.status,
|
|
32419
|
+
statusText: request2.statusText,
|
|
33502
32420
|
headers: responseHeaders,
|
|
33503
32421
|
config: config2,
|
|
33504
|
-
request
|
|
32422
|
+
request: request2
|
|
33505
32423
|
};
|
|
33506
|
-
|
|
33507
|
-
|
|
33508
|
-
resolve(value17);
|
|
33509
|
-
done();
|
|
33510
|
-
},
|
|
33511
|
-
function _reject(err) {
|
|
33512
|
-
reject(err);
|
|
33513
|
-
done();
|
|
33514
|
-
},
|
|
33515
|
-
response
|
|
33516
|
-
);
|
|
33517
|
-
request = null;
|
|
32424
|
+
settle2(resolve, reject, response);
|
|
32425
|
+
request2 = null;
|
|
33518
32426
|
}
|
|
33519
|
-
if ("onloadend" in
|
|
33520
|
-
|
|
32427
|
+
if ("onloadend" in request2) {
|
|
32428
|
+
request2.onloadend = onloadend;
|
|
33521
32429
|
} else {
|
|
33522
|
-
|
|
33523
|
-
if (!
|
|
32430
|
+
request2.onreadystatechange = function handleLoad() {
|
|
32431
|
+
if (!request2 || request2.readyState !== 4) {
|
|
33524
32432
|
return;
|
|
33525
32433
|
}
|
|
33526
|
-
if (
|
|
32434
|
+
if (request2.status === 0 && !(request2.responseURL && request2.responseURL.indexOf("file:") === 0)) {
|
|
33527
32435
|
return;
|
|
33528
32436
|
}
|
|
33529
32437
|
setTimeout(onloadend);
|
|
33530
32438
|
};
|
|
33531
32439
|
}
|
|
33532
|
-
|
|
33533
|
-
if (!
|
|
32440
|
+
request2.onabort = function handleAbort() {
|
|
32441
|
+
if (!request2) {
|
|
33534
32442
|
return;
|
|
33535
32443
|
}
|
|
33536
|
-
reject(
|
|
33537
|
-
|
|
32444
|
+
reject(createError2("Request aborted", config2, "ECONNABORTED", request2));
|
|
32445
|
+
request2 = null;
|
|
33538
32446
|
};
|
|
33539
|
-
|
|
33540
|
-
|
|
33541
|
-
|
|
33542
|
-
err.event = event || null;
|
|
33543
|
-
reject(err);
|
|
33544
|
-
request = null;
|
|
32447
|
+
request2.onerror = function handleError() {
|
|
32448
|
+
reject(createError2("Network Error", config2, null, request2));
|
|
32449
|
+
request2 = null;
|
|
33545
32450
|
};
|
|
33546
|
-
|
|
33547
|
-
|
|
33548
|
-
|
|
33549
|
-
|
|
33550
|
-
|
|
33551
|
-
|
|
33552
|
-
|
|
33553
|
-
|
|
33554
|
-
|
|
33555
|
-
|
|
33556
|
-
|
|
33557
|
-
|
|
33558
|
-
)
|
|
33559
|
-
);
|
|
33560
|
-
request = null;
|
|
32451
|
+
request2.ontimeout = function handleTimeout() {
|
|
32452
|
+
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
32453
|
+
if (config2.timeoutErrorMessage) {
|
|
32454
|
+
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
32455
|
+
}
|
|
32456
|
+
reject(createError2(
|
|
32457
|
+
timeoutErrorMessage,
|
|
32458
|
+
config2,
|
|
32459
|
+
config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
32460
|
+
request2
|
|
32461
|
+
));
|
|
32462
|
+
request2 = null;
|
|
33561
32463
|
};
|
|
33562
|
-
|
|
33563
|
-
|
|
33564
|
-
|
|
33565
|
-
|
|
32464
|
+
if (utils$6.isStandardBrowserEnv()) {
|
|
32465
|
+
var xsrfValue = (config2.withCredentials || isURLSameOrigin(fullPath)) && config2.xsrfCookieName ? cookies.read(config2.xsrfCookieName) : void 0;
|
|
32466
|
+
if (xsrfValue) {
|
|
32467
|
+
requestHeaders[config2.xsrfHeaderName] = xsrfValue;
|
|
32468
|
+
}
|
|
32469
|
+
}
|
|
32470
|
+
if ("setRequestHeader" in request2) {
|
|
32471
|
+
utils$6.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
32472
|
+
if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
|
|
32473
|
+
delete requestHeaders[key];
|
|
32474
|
+
} else {
|
|
32475
|
+
request2.setRequestHeader(key, val);
|
|
32476
|
+
}
|
|
33566
32477
|
});
|
|
33567
32478
|
}
|
|
33568
|
-
if (!utils$
|
|
33569
|
-
|
|
32479
|
+
if (!utils$6.isUndefined(config2.withCredentials)) {
|
|
32480
|
+
request2.withCredentials = !!config2.withCredentials;
|
|
33570
32481
|
}
|
|
33571
32482
|
if (responseType && responseType !== "json") {
|
|
33572
|
-
|
|
32483
|
+
request2.responseType = config2.responseType;
|
|
33573
32484
|
}
|
|
33574
|
-
if (onDownloadProgress) {
|
|
33575
|
-
|
|
33576
|
-
request.addEventListener("progress", downloadThrottled);
|
|
32485
|
+
if (typeof config2.onDownloadProgress === "function") {
|
|
32486
|
+
request2.addEventListener("progress", config2.onDownloadProgress);
|
|
33577
32487
|
}
|
|
33578
|
-
if (onUploadProgress &&
|
|
33579
|
-
|
|
33580
|
-
request.upload.addEventListener("progress", uploadThrottled);
|
|
33581
|
-
request.upload.addEventListener("loadend", flushUpload);
|
|
32488
|
+
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
32489
|
+
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
33582
32490
|
}
|
|
33583
|
-
if (
|
|
33584
|
-
onCanceled
|
|
33585
|
-
if (!
|
|
32491
|
+
if (config2.cancelToken) {
|
|
32492
|
+
config2.cancelToken.promise.then(function onCanceled(cancel2) {
|
|
32493
|
+
if (!request2) {
|
|
33586
32494
|
return;
|
|
33587
32495
|
}
|
|
33588
|
-
|
|
33589
|
-
|
|
33590
|
-
|
|
33591
|
-
};
|
|
33592
|
-
|
|
33593
|
-
|
|
33594
|
-
|
|
33595
|
-
}
|
|
33596
|
-
}
|
|
33597
|
-
const protocol = parseProtocol(_config.url);
|
|
33598
|
-
if (protocol && platform.protocols.indexOf(protocol) === -1) {
|
|
33599
|
-
reject(
|
|
33600
|
-
new AxiosError$1(
|
|
33601
|
-
"Unsupported protocol " + protocol + ":",
|
|
33602
|
-
AxiosError$1.ERR_BAD_REQUEST,
|
|
33603
|
-
config2
|
|
33604
|
-
)
|
|
33605
|
-
);
|
|
33606
|
-
return;
|
|
32496
|
+
request2.abort();
|
|
32497
|
+
reject(cancel2);
|
|
32498
|
+
request2 = null;
|
|
32499
|
+
});
|
|
32500
|
+
}
|
|
32501
|
+
if (!requestData) {
|
|
32502
|
+
requestData = null;
|
|
33607
32503
|
}
|
|
33608
|
-
|
|
32504
|
+
request2.send(requestData);
|
|
33609
32505
|
});
|
|
33610
32506
|
};
|
|
33611
|
-
|
|
33612
|
-
|
|
33613
|
-
|
|
33614
|
-
|
|
33615
|
-
|
|
33616
|
-
const onabort = function(reason) {
|
|
33617
|
-
if (!aborted) {
|
|
33618
|
-
aborted = true;
|
|
33619
|
-
unsubscribe();
|
|
33620
|
-
const err = reason instanceof Error ? reason : this.reason;
|
|
33621
|
-
controller.abort(
|
|
33622
|
-
err instanceof AxiosError$1 ? err : new CanceledError$1(err instanceof Error ? err.message : err)
|
|
33623
|
-
);
|
|
33624
|
-
}
|
|
33625
|
-
};
|
|
33626
|
-
let timer2 = timeout && setTimeout(() => {
|
|
33627
|
-
timer2 = null;
|
|
33628
|
-
onabort(new AxiosError$1(`timeout of ${timeout}ms exceeded`, AxiosError$1.ETIMEDOUT));
|
|
33629
|
-
}, timeout);
|
|
33630
|
-
const unsubscribe = () => {
|
|
33631
|
-
if (signals) {
|
|
33632
|
-
timer2 && clearTimeout(timer2);
|
|
33633
|
-
timer2 = null;
|
|
33634
|
-
signals.forEach((signal2) => {
|
|
33635
|
-
signal2.unsubscribe ? signal2.unsubscribe(onabort) : signal2.removeEventListener("abort", onabort);
|
|
33636
|
-
});
|
|
33637
|
-
signals = null;
|
|
33638
|
-
}
|
|
33639
|
-
};
|
|
33640
|
-
signals.forEach((signal2) => signal2.addEventListener("abort", onabort));
|
|
33641
|
-
const { signal } = controller;
|
|
33642
|
-
signal.unsubscribe = () => utils$1.asap(unsubscribe);
|
|
33643
|
-
return signal;
|
|
33644
|
-
}
|
|
32507
|
+
var utils$5 = utils$d;
|
|
32508
|
+
var normalizeHeaderName2 = normalizeHeaderName$1;
|
|
32509
|
+
var enhanceError2 = enhanceError$2;
|
|
32510
|
+
var DEFAULT_CONTENT_TYPE = {
|
|
32511
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
33645
32512
|
};
|
|
33646
|
-
|
|
33647
|
-
|
|
33648
|
-
|
|
33649
|
-
if (!chunkSize || len < chunkSize) {
|
|
33650
|
-
yield chunk;
|
|
33651
|
-
return;
|
|
33652
|
-
}
|
|
33653
|
-
let pos = 0;
|
|
33654
|
-
let end2;
|
|
33655
|
-
while (pos < len) {
|
|
33656
|
-
end2 = pos + chunkSize;
|
|
33657
|
-
yield chunk.slice(pos, end2);
|
|
33658
|
-
pos = end2;
|
|
32513
|
+
function setContentTypeIfUnset(headers, value17) {
|
|
32514
|
+
if (!utils$5.isUndefined(headers) && utils$5.isUndefined(headers["Content-Type"])) {
|
|
32515
|
+
headers["Content-Type"] = value17;
|
|
33659
32516
|
}
|
|
33660
|
-
}
|
|
33661
|
-
|
|
33662
|
-
|
|
33663
|
-
|
|
33664
|
-
|
|
33665
|
-
}
|
|
33666
|
-
|
|
33667
|
-
if (stream[Symbol.asyncIterator]) {
|
|
33668
|
-
yield* stream;
|
|
33669
|
-
return;
|
|
32517
|
+
}
|
|
32518
|
+
function getDefaultAdapter() {
|
|
32519
|
+
var adapter;
|
|
32520
|
+
if (typeof XMLHttpRequest !== "undefined") {
|
|
32521
|
+
adapter = xhr;
|
|
32522
|
+
} else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") {
|
|
32523
|
+
adapter = xhr;
|
|
33670
32524
|
}
|
|
33671
|
-
|
|
33672
|
-
|
|
33673
|
-
|
|
33674
|
-
|
|
33675
|
-
|
|
33676
|
-
|
|
32525
|
+
return adapter;
|
|
32526
|
+
}
|
|
32527
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
32528
|
+
if (utils$5.isString(rawValue)) {
|
|
32529
|
+
try {
|
|
32530
|
+
(parser || JSON.parse)(rawValue);
|
|
32531
|
+
return utils$5.trim(rawValue);
|
|
32532
|
+
} catch (e) {
|
|
32533
|
+
if (e.name !== "SyntaxError") {
|
|
32534
|
+
throw e;
|
|
33677
32535
|
}
|
|
33678
|
-
yield value17;
|
|
33679
32536
|
}
|
|
33680
|
-
} finally {
|
|
33681
|
-
await reader.cancel();
|
|
33682
32537
|
}
|
|
33683
|
-
|
|
33684
|
-
|
|
33685
|
-
|
|
33686
|
-
|
|
33687
|
-
|
|
33688
|
-
|
|
33689
|
-
|
|
33690
|
-
|
|
33691
|
-
|
|
32538
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
32539
|
+
}
|
|
32540
|
+
var defaults$3 = {
|
|
32541
|
+
transitional: {
|
|
32542
|
+
silentJSONParsing: true,
|
|
32543
|
+
forcedJSONParsing: true,
|
|
32544
|
+
clarifyTimeoutError: false
|
|
32545
|
+
},
|
|
32546
|
+
adapter: getDefaultAdapter(),
|
|
32547
|
+
transformRequest: [function transformRequest(data49, headers) {
|
|
32548
|
+
normalizeHeaderName2(headers, "Accept");
|
|
32549
|
+
normalizeHeaderName2(headers, "Content-Type");
|
|
32550
|
+
if (utils$5.isFormData(data49) || utils$5.isArrayBuffer(data49) || utils$5.isBuffer(data49) || utils$5.isStream(data49) || utils$5.isFile(data49) || utils$5.isBlob(data49)) {
|
|
32551
|
+
return data49;
|
|
33692
32552
|
}
|
|
33693
|
-
|
|
33694
|
-
|
|
33695
|
-
|
|
33696
|
-
|
|
33697
|
-
|
|
33698
|
-
|
|
33699
|
-
|
|
33700
|
-
|
|
33701
|
-
|
|
33702
|
-
|
|
33703
|
-
|
|
33704
|
-
|
|
33705
|
-
|
|
33706
|
-
|
|
33707
|
-
|
|
32553
|
+
if (utils$5.isArrayBufferView(data49)) {
|
|
32554
|
+
return data49.buffer;
|
|
32555
|
+
}
|
|
32556
|
+
if (utils$5.isURLSearchParams(data49)) {
|
|
32557
|
+
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
32558
|
+
return data49.toString();
|
|
32559
|
+
}
|
|
32560
|
+
if (utils$5.isObject(data49) || headers && headers["Content-Type"] === "application/json") {
|
|
32561
|
+
setContentTypeIfUnset(headers, "application/json");
|
|
32562
|
+
return stringifySafely(data49);
|
|
32563
|
+
}
|
|
32564
|
+
return data49;
|
|
32565
|
+
}],
|
|
32566
|
+
transformResponse: [function transformResponse(data49) {
|
|
32567
|
+
var transitional2 = this.transitional;
|
|
32568
|
+
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32569
|
+
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32570
|
+
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32571
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data49) && data49.length) {
|
|
32572
|
+
try {
|
|
32573
|
+
return JSON.parse(data49);
|
|
32574
|
+
} catch (e) {
|
|
32575
|
+
if (strictJSONParsing) {
|
|
32576
|
+
if (e.name === "SyntaxError") {
|
|
32577
|
+
throw enhanceError2(e, this, "E_JSON_PARSE");
|
|
33708
32578
|
}
|
|
33709
|
-
|
|
33710
|
-
} catch (err) {
|
|
33711
|
-
_onFinish(err);
|
|
33712
|
-
throw err;
|
|
32579
|
+
throw e;
|
|
33713
32580
|
}
|
|
33714
|
-
},
|
|
33715
|
-
cancel(reason) {
|
|
33716
|
-
_onFinish(reason);
|
|
33717
|
-
return iterator2.return();
|
|
33718
32581
|
}
|
|
33719
|
-
},
|
|
33720
|
-
{
|
|
33721
|
-
highWaterMark: 2
|
|
33722
32582
|
}
|
|
33723
|
-
|
|
33724
|
-
}
|
|
33725
|
-
|
|
33726
|
-
|
|
33727
|
-
|
|
33728
|
-
|
|
33729
|
-
|
|
33730
|
-
|
|
33731
|
-
|
|
33732
|
-
const test = (fn2, ...args) => {
|
|
33733
|
-
try {
|
|
33734
|
-
return !!fn2(...args);
|
|
33735
|
-
} catch (e) {
|
|
33736
|
-
return false;
|
|
32583
|
+
return data49;
|
|
32584
|
+
}],
|
|
32585
|
+
timeout: 0,
|
|
32586
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
32587
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
32588
|
+
maxContentLength: -1,
|
|
32589
|
+
maxBodyLength: -1,
|
|
32590
|
+
validateStatus: function validateStatus(status2) {
|
|
32591
|
+
return status2 >= 200 && status2 < 300;
|
|
33737
32592
|
}
|
|
33738
32593
|
};
|
|
33739
|
-
|
|
33740
|
-
|
|
33741
|
-
|
|
33742
|
-
skipUndefined: true
|
|
33743
|
-
},
|
|
33744
|
-
globalFetchAPI,
|
|
33745
|
-
env
|
|
33746
|
-
);
|
|
33747
|
-
const { fetch: envFetch, Request, Response } = env;
|
|
33748
|
-
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === "function";
|
|
33749
|
-
const isRequestSupported = isFunction(Request);
|
|
33750
|
-
const isResponseSupported = isFunction(Response);
|
|
33751
|
-
if (!isFetchSupported) {
|
|
33752
|
-
return false;
|
|
32594
|
+
defaults$3.headers = {
|
|
32595
|
+
common: {
|
|
32596
|
+
"Accept": "application/json, text/plain, */*"
|
|
33753
32597
|
}
|
|
33754
|
-
|
|
33755
|
-
|
|
33756
|
-
|
|
33757
|
-
|
|
33758
|
-
|
|
33759
|
-
|
|
33760
|
-
|
|
33761
|
-
|
|
33762
|
-
|
|
33763
|
-
|
|
33764
|
-
|
|
33765
|
-
|
|
33766
|
-
|
|
32598
|
+
};
|
|
32599
|
+
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
32600
|
+
defaults$3.headers[method] = {};
|
|
32601
|
+
});
|
|
32602
|
+
utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
32603
|
+
defaults$3.headers[method] = utils$5.merge(DEFAULT_CONTENT_TYPE);
|
|
32604
|
+
});
|
|
32605
|
+
var defaults_1 = defaults$3;
|
|
32606
|
+
var utils$4 = utils$d;
|
|
32607
|
+
var defaults$2 = defaults_1;
|
|
32608
|
+
var transformData$1 = function transformData(data49, headers, fns) {
|
|
32609
|
+
var context2 = this || defaults$2;
|
|
32610
|
+
utils$4.forEach(fns, function transform(fn2) {
|
|
32611
|
+
data49 = fn2.call(context2, data49, headers);
|
|
33767
32612
|
});
|
|
33768
|
-
|
|
33769
|
-
|
|
33770
|
-
|
|
33771
|
-
|
|
33772
|
-
|
|
33773
|
-
|
|
33774
|
-
|
|
33775
|
-
|
|
33776
|
-
|
|
33777
|
-
|
|
33778
|
-
|
|
33779
|
-
|
|
33780
|
-
|
|
33781
|
-
|
|
33782
|
-
|
|
33783
|
-
|
|
33784
|
-
|
|
33785
|
-
|
|
33786
|
-
|
|
33787
|
-
|
|
33788
|
-
|
|
33789
|
-
|
|
33790
|
-
|
|
33791
|
-
|
|
33792
|
-
|
|
33793
|
-
}
|
|
33794
|
-
|
|
33795
|
-
|
|
33796
|
-
|
|
33797
|
-
|
|
33798
|
-
|
|
33799
|
-
|
|
33800
|
-
}
|
|
33801
|
-
if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
|
|
33802
|
-
return body.byteLength;
|
|
33803
|
-
}
|
|
33804
|
-
if (utils$1.isURLSearchParams(body)) {
|
|
33805
|
-
body = body + "";
|
|
33806
|
-
}
|
|
33807
|
-
if (utils$1.isString(body)) {
|
|
33808
|
-
return (await encodeText(body)).byteLength;
|
|
32613
|
+
return data49;
|
|
32614
|
+
};
|
|
32615
|
+
var isCancel$1 = function isCancel(value17) {
|
|
32616
|
+
return !!(value17 && value17.__CANCEL__);
|
|
32617
|
+
};
|
|
32618
|
+
var utils$3 = utils$d;
|
|
32619
|
+
var transformData2 = transformData$1;
|
|
32620
|
+
var isCancel2 = isCancel$1;
|
|
32621
|
+
var defaults$1 = defaults_1;
|
|
32622
|
+
function throwIfCancellationRequested(config2) {
|
|
32623
|
+
if (config2.cancelToken) {
|
|
32624
|
+
config2.cancelToken.throwIfRequested();
|
|
32625
|
+
}
|
|
32626
|
+
}
|
|
32627
|
+
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32628
|
+
throwIfCancellationRequested(config2);
|
|
32629
|
+
config2.headers = config2.headers || {};
|
|
32630
|
+
config2.data = transformData2.call(
|
|
32631
|
+
config2,
|
|
32632
|
+
config2.data,
|
|
32633
|
+
config2.headers,
|
|
32634
|
+
config2.transformRequest
|
|
32635
|
+
);
|
|
32636
|
+
config2.headers = utils$3.merge(
|
|
32637
|
+
config2.headers.common || {},
|
|
32638
|
+
config2.headers[config2.method] || {},
|
|
32639
|
+
config2.headers
|
|
32640
|
+
);
|
|
32641
|
+
utils$3.forEach(
|
|
32642
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
32643
|
+
function cleanHeaderConfig(method) {
|
|
32644
|
+
delete config2.headers[method];
|
|
33809
32645
|
}
|
|
33810
|
-
|
|
33811
|
-
|
|
33812
|
-
|
|
33813
|
-
|
|
33814
|
-
|
|
33815
|
-
|
|
33816
|
-
|
|
33817
|
-
|
|
33818
|
-
|
|
33819
|
-
data: data49,
|
|
33820
|
-
signal,
|
|
33821
|
-
cancelToken,
|
|
33822
|
-
timeout,
|
|
33823
|
-
onDownloadProgress,
|
|
33824
|
-
onUploadProgress,
|
|
33825
|
-
responseType,
|
|
33826
|
-
headers,
|
|
33827
|
-
withCredentials = "same-origin",
|
|
33828
|
-
fetchOptions
|
|
33829
|
-
} = resolveConfig(config2);
|
|
33830
|
-
let _fetch = envFetch || fetch;
|
|
33831
|
-
responseType = responseType ? (responseType + "").toLowerCase() : "text";
|
|
33832
|
-
let composedSignal = composeSignals$1(
|
|
33833
|
-
[signal, cancelToken && cancelToken.toAbortSignal()],
|
|
33834
|
-
timeout
|
|
32646
|
+
);
|
|
32647
|
+
var adapter = config2.adapter || defaults$1.adapter;
|
|
32648
|
+
return adapter(config2).then(function onAdapterResolution(response) {
|
|
32649
|
+
throwIfCancellationRequested(config2);
|
|
32650
|
+
response.data = transformData2.call(
|
|
32651
|
+
config2,
|
|
32652
|
+
response.data,
|
|
32653
|
+
response.headers,
|
|
32654
|
+
config2.transformResponse
|
|
33835
32655
|
);
|
|
33836
|
-
|
|
33837
|
-
|
|
33838
|
-
|
|
33839
|
-
|
|
33840
|
-
|
|
33841
|
-
|
|
33842
|
-
|
|
33843
|
-
|
|
33844
|
-
|
|
33845
|
-
|
|
33846
|
-
duplex: "half"
|
|
33847
|
-
});
|
|
33848
|
-
let contentTypeHeader;
|
|
33849
|
-
if (utils$1.isFormData(data49) && (contentTypeHeader = _request.headers.get("content-type"))) {
|
|
33850
|
-
headers.setContentType(contentTypeHeader);
|
|
33851
|
-
}
|
|
33852
|
-
if (_request.body) {
|
|
33853
|
-
const [onProgress, flush] = progressEventDecorator(
|
|
33854
|
-
requestContentLength,
|
|
33855
|
-
progressEventReducer(asyncDecorator(onUploadProgress))
|
|
33856
|
-
);
|
|
33857
|
-
data49 = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
33858
|
-
}
|
|
33859
|
-
}
|
|
33860
|
-
if (!utils$1.isString(withCredentials)) {
|
|
33861
|
-
withCredentials = withCredentials ? "include" : "omit";
|
|
33862
|
-
}
|
|
33863
|
-
const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
|
|
33864
|
-
const resolvedOptions = {
|
|
33865
|
-
...fetchOptions,
|
|
33866
|
-
signal: composedSignal,
|
|
33867
|
-
method: method.toUpperCase(),
|
|
33868
|
-
headers: headers.normalize().toJSON(),
|
|
33869
|
-
body: data49,
|
|
33870
|
-
duplex: "half",
|
|
33871
|
-
credentials: isCredentialsSupported ? withCredentials : void 0
|
|
33872
|
-
};
|
|
33873
|
-
request = isRequestSupported && new Request(url, resolvedOptions);
|
|
33874
|
-
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
|
33875
|
-
const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
|
|
33876
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
|
33877
|
-
const options = {};
|
|
33878
|
-
["status", "statusText", "headers"].forEach((prop) => {
|
|
33879
|
-
options[prop] = response[prop];
|
|
33880
|
-
});
|
|
33881
|
-
const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
|
|
33882
|
-
const [onProgress, flush] = onDownloadProgress && progressEventDecorator(
|
|
33883
|
-
responseContentLength,
|
|
33884
|
-
progressEventReducer(asyncDecorator(onDownloadProgress), true)
|
|
33885
|
-
) || [];
|
|
33886
|
-
response = new Response(
|
|
33887
|
-
trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
33888
|
-
flush && flush();
|
|
33889
|
-
unsubscribe && unsubscribe();
|
|
33890
|
-
}),
|
|
33891
|
-
options
|
|
33892
|
-
);
|
|
33893
|
-
}
|
|
33894
|
-
responseType = responseType || "text";
|
|
33895
|
-
let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](
|
|
33896
|
-
response,
|
|
33897
|
-
config2
|
|
33898
|
-
);
|
|
33899
|
-
!isStreamResponse && unsubscribe && unsubscribe();
|
|
33900
|
-
return await new Promise((resolve, reject) => {
|
|
33901
|
-
settle(resolve, reject, {
|
|
33902
|
-
data: responseData,
|
|
33903
|
-
headers: AxiosHeaders$1.from(response.headers),
|
|
33904
|
-
status: response.status,
|
|
33905
|
-
statusText: response.statusText,
|
|
33906
|
-
config: config2,
|
|
33907
|
-
request
|
|
33908
|
-
});
|
|
33909
|
-
});
|
|
33910
|
-
} catch (err) {
|
|
33911
|
-
unsubscribe && unsubscribe();
|
|
33912
|
-
if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
|
|
33913
|
-
throw Object.assign(
|
|
33914
|
-
new AxiosError$1(
|
|
33915
|
-
"Network Error",
|
|
33916
|
-
AxiosError$1.ERR_NETWORK,
|
|
33917
|
-
config2,
|
|
33918
|
-
request,
|
|
33919
|
-
err && err.response
|
|
33920
|
-
),
|
|
33921
|
-
{
|
|
33922
|
-
cause: err.cause || err
|
|
33923
|
-
}
|
|
32656
|
+
return response;
|
|
32657
|
+
}, function onAdapterRejection(reason) {
|
|
32658
|
+
if (!isCancel2(reason)) {
|
|
32659
|
+
throwIfCancellationRequested(config2);
|
|
32660
|
+
if (reason && reason.response) {
|
|
32661
|
+
reason.response.data = transformData2.call(
|
|
32662
|
+
config2,
|
|
32663
|
+
reason.response.data,
|
|
32664
|
+
reason.response.headers,
|
|
32665
|
+
config2.transformResponse
|
|
33924
32666
|
);
|
|
33925
32667
|
}
|
|
33926
|
-
throw AxiosError$1.from(err, err && err.code, config2, request, err && err.response);
|
|
33927
32668
|
}
|
|
33928
|
-
|
|
33929
|
-
};
|
|
33930
|
-
const seedCache = /* @__PURE__ */ new Map();
|
|
33931
|
-
const getFetch = (config2) => {
|
|
33932
|
-
let env = config2 && config2.env || {};
|
|
33933
|
-
const { fetch: fetch2, Request, Response } = env;
|
|
33934
|
-
const seeds = [Request, Response, fetch2];
|
|
33935
|
-
let len = seeds.length, i = len, seed, target2, map = seedCache;
|
|
33936
|
-
while (i--) {
|
|
33937
|
-
seed = seeds[i];
|
|
33938
|
-
target2 = map.get(seed);
|
|
33939
|
-
target2 === void 0 && map.set(seed, target2 = i ? /* @__PURE__ */ new Map() : factory(env));
|
|
33940
|
-
map = target2;
|
|
33941
|
-
}
|
|
33942
|
-
return target2;
|
|
33943
|
-
};
|
|
33944
|
-
getFetch();
|
|
33945
|
-
const knownAdapters = {
|
|
33946
|
-
http: httpAdapter,
|
|
33947
|
-
xhr: xhrAdapter,
|
|
33948
|
-
fetch: {
|
|
33949
|
-
get: getFetch
|
|
33950
|
-
}
|
|
32669
|
+
return Promise.reject(reason);
|
|
32670
|
+
});
|
|
33951
32671
|
};
|
|
33952
|
-
utils$
|
|
33953
|
-
|
|
33954
|
-
|
|
33955
|
-
|
|
33956
|
-
|
|
32672
|
+
var utils$2 = utils$d;
|
|
32673
|
+
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32674
|
+
config2 = config2 || {};
|
|
32675
|
+
var config3 = {};
|
|
32676
|
+
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
32677
|
+
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
32678
|
+
var defaultToConfig2Keys = [
|
|
32679
|
+
"baseURL",
|
|
32680
|
+
"transformRequest",
|
|
32681
|
+
"transformResponse",
|
|
32682
|
+
"paramsSerializer",
|
|
32683
|
+
"timeout",
|
|
32684
|
+
"timeoutMessage",
|
|
32685
|
+
"withCredentials",
|
|
32686
|
+
"adapter",
|
|
32687
|
+
"responseType",
|
|
32688
|
+
"xsrfCookieName",
|
|
32689
|
+
"xsrfHeaderName",
|
|
32690
|
+
"onUploadProgress",
|
|
32691
|
+
"onDownloadProgress",
|
|
32692
|
+
"decompress",
|
|
32693
|
+
"maxContentLength",
|
|
32694
|
+
"maxBodyLength",
|
|
32695
|
+
"maxRedirects",
|
|
32696
|
+
"transport",
|
|
32697
|
+
"httpAgent",
|
|
32698
|
+
"httpsAgent",
|
|
32699
|
+
"cancelToken",
|
|
32700
|
+
"socketPath",
|
|
32701
|
+
"responseEncoding"
|
|
32702
|
+
];
|
|
32703
|
+
var directMergeKeys = ["validateStatus"];
|
|
32704
|
+
function getMergedValue(target2, source2) {
|
|
32705
|
+
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32706
|
+
return utils$2.merge(target2, source2);
|
|
32707
|
+
} else if (utils$2.isPlainObject(source2)) {
|
|
32708
|
+
return utils$2.merge({}, source2);
|
|
32709
|
+
} else if (utils$2.isArray(source2)) {
|
|
32710
|
+
return source2.slice();
|
|
33957
32711
|
}
|
|
33958
|
-
|
|
32712
|
+
return source2;
|
|
33959
32713
|
}
|
|
33960
|
-
|
|
33961
|
-
|
|
33962
|
-
|
|
33963
|
-
|
|
33964
|
-
|
|
33965
|
-
const { length } = adapters2;
|
|
33966
|
-
let nameOrAdapter;
|
|
33967
|
-
let adapter;
|
|
33968
|
-
const rejectedReasons = {};
|
|
33969
|
-
for (let i = 0; i < length; i++) {
|
|
33970
|
-
nameOrAdapter = adapters2[i];
|
|
33971
|
-
let id;
|
|
33972
|
-
adapter = nameOrAdapter;
|
|
33973
|
-
if (!isResolvedHandle(nameOrAdapter)) {
|
|
33974
|
-
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
|
33975
|
-
if (adapter === void 0) {
|
|
33976
|
-
throw new AxiosError$1(`Unknown adapter '${id}'`);
|
|
33977
|
-
}
|
|
33978
|
-
}
|
|
33979
|
-
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config2)))) {
|
|
33980
|
-
break;
|
|
32714
|
+
function mergeDeepProperties(prop) {
|
|
32715
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
32716
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32717
|
+
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32718
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
33981
32719
|
}
|
|
33982
|
-
rejectedReasons[id || "#" + i] = adapter;
|
|
33983
|
-
}
|
|
33984
|
-
if (!adapter) {
|
|
33985
|
-
const reasons = Object.entries(rejectedReasons).map(
|
|
33986
|
-
([id, state]) => `adapter ${id} ` + (state === false ? "is not supported by the environment" : "is not available in the build")
|
|
33987
|
-
);
|
|
33988
|
-
let s = length ? reasons.length > 1 ? "since :\n" + reasons.map(renderReason).join("\n") : " " + renderReason(reasons[0]) : "as no adapter specified";
|
|
33989
|
-
throw new AxiosError$1(
|
|
33990
|
-
`There is no suitable adapter to dispatch the request ` + s,
|
|
33991
|
-
"ERR_NOT_SUPPORT"
|
|
33992
|
-
);
|
|
33993
32720
|
}
|
|
33994
|
-
|
|
33995
|
-
|
|
33996
|
-
|
|
33997
|
-
|
|
33998
|
-
|
|
32721
|
+
utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
32722
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
32723
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32724
|
+
}
|
|
32725
|
+
});
|
|
32726
|
+
utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
32727
|
+
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32728
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
32729
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32730
|
+
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32731
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32732
|
+
}
|
|
32733
|
+
});
|
|
32734
|
+
utils$2.forEach(directMergeKeys, function merge2(prop) {
|
|
32735
|
+
if (prop in config2) {
|
|
32736
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32737
|
+
} else if (prop in config1) {
|
|
32738
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32739
|
+
}
|
|
32740
|
+
});
|
|
32741
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
32742
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
32743
|
+
return axiosKeys.indexOf(key) === -1;
|
|
32744
|
+
});
|
|
32745
|
+
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
32746
|
+
return config3;
|
|
33999
32747
|
};
|
|
34000
|
-
|
|
34001
|
-
|
|
34002
|
-
|
|
34003
|
-
|
|
34004
|
-
|
|
34005
|
-
|
|
32748
|
+
const name = "axios";
|
|
32749
|
+
const version = "0.21.4";
|
|
32750
|
+
const description = "Promise based HTTP client for the browser and node.js";
|
|
32751
|
+
const main = "index.js";
|
|
32752
|
+
const scripts = {
|
|
32753
|
+
test: "grunt test",
|
|
32754
|
+
start: "node ./sandbox/server.js",
|
|
32755
|
+
build: "NODE_ENV=production grunt build",
|
|
32756
|
+
preversion: "npm test",
|
|
32757
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
32758
|
+
postversion: "git push && git push --tags",
|
|
32759
|
+
examples: "node ./examples/server.js",
|
|
32760
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
32761
|
+
fix: "eslint --fix lib/**/*.js"
|
|
32762
|
+
};
|
|
32763
|
+
const repository = {
|
|
32764
|
+
type: "git",
|
|
32765
|
+
url: "https://github.com/axios/axios.git"
|
|
32766
|
+
};
|
|
32767
|
+
const keywords = [
|
|
32768
|
+
"xhr",
|
|
32769
|
+
"http",
|
|
32770
|
+
"ajax",
|
|
32771
|
+
"promise",
|
|
32772
|
+
"node"
|
|
32773
|
+
];
|
|
32774
|
+
const author = "Matt Zabriskie";
|
|
32775
|
+
const license = "MIT";
|
|
32776
|
+
const bugs = {
|
|
32777
|
+
url: "https://github.com/axios/axios/issues"
|
|
32778
|
+
};
|
|
32779
|
+
const homepage = "https://axios-http.com";
|
|
32780
|
+
const devDependencies = {
|
|
32781
|
+
coveralls: "^3.0.0",
|
|
32782
|
+
"es6-promise": "^4.2.4",
|
|
32783
|
+
grunt: "^1.3.0",
|
|
32784
|
+
"grunt-banner": "^0.6.0",
|
|
32785
|
+
"grunt-cli": "^1.2.0",
|
|
32786
|
+
"grunt-contrib-clean": "^1.1.0",
|
|
32787
|
+
"grunt-contrib-watch": "^1.0.0",
|
|
32788
|
+
"grunt-eslint": "^23.0.0",
|
|
32789
|
+
"grunt-karma": "^4.0.0",
|
|
32790
|
+
"grunt-mocha-test": "^0.13.3",
|
|
32791
|
+
"grunt-ts": "^6.0.0-beta.19",
|
|
32792
|
+
"grunt-webpack": "^4.0.2",
|
|
32793
|
+
"istanbul-instrumenter-loader": "^1.0.0",
|
|
32794
|
+
"jasmine-core": "^2.4.1",
|
|
32795
|
+
karma: "^6.3.2",
|
|
32796
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
32797
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
32798
|
+
"karma-jasmine": "^1.1.1",
|
|
32799
|
+
"karma-jasmine-ajax": "^0.1.13",
|
|
32800
|
+
"karma-safari-launcher": "^1.0.0",
|
|
32801
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
32802
|
+
"karma-sinon": "^1.0.5",
|
|
32803
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
32804
|
+
"karma-webpack": "^4.0.2",
|
|
32805
|
+
"load-grunt-tasks": "^3.5.2",
|
|
32806
|
+
minimist: "^1.2.0",
|
|
32807
|
+
mocha: "^8.2.1",
|
|
32808
|
+
sinon: "^4.5.0",
|
|
32809
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
32810
|
+
typescript: "^4.0.5",
|
|
32811
|
+
"url-search-params": "^0.10.0",
|
|
32812
|
+
webpack: "^4.44.2",
|
|
32813
|
+
"webpack-dev-server": "^3.11.0"
|
|
32814
|
+
};
|
|
32815
|
+
const browser = {
|
|
32816
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
32817
|
+
};
|
|
32818
|
+
const jsdelivr = "dist/axios.min.js";
|
|
32819
|
+
const unpkg = "dist/axios.min.js";
|
|
32820
|
+
const typings = "./index.d.ts";
|
|
32821
|
+
const dependencies = {
|
|
32822
|
+
"follow-redirects": "^1.14.0"
|
|
32823
|
+
};
|
|
32824
|
+
const bundlesize = [
|
|
32825
|
+
{
|
|
32826
|
+
path: "./dist/axios.min.js",
|
|
32827
|
+
threshold: "5kB"
|
|
34006
32828
|
}
|
|
34007
|
-
|
|
34008
|
-
|
|
34009
|
-
|
|
34010
|
-
|
|
34011
|
-
|
|
34012
|
-
|
|
34013
|
-
|
|
34014
|
-
|
|
34015
|
-
|
|
34016
|
-
|
|
34017
|
-
|
|
34018
|
-
|
|
34019
|
-
|
|
34020
|
-
|
|
34021
|
-
|
|
34022
|
-
|
|
34023
|
-
|
|
34024
|
-
|
|
34025
|
-
|
|
34026
|
-
|
|
34027
|
-
|
|
34028
|
-
|
|
34029
|
-
|
|
34030
|
-
|
|
34031
|
-
);
|
|
34032
|
-
reason.response.headers = AxiosHeaders$1.from(reason.response.headers);
|
|
34033
|
-
}
|
|
34034
|
-
}
|
|
34035
|
-
return Promise.reject(reason);
|
|
34036
|
-
}
|
|
34037
|
-
);
|
|
34038
|
-
}
|
|
34039
|
-
const VERSION = "1.13.6";
|
|
34040
|
-
const validators$1 = {};
|
|
34041
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((type2, i) => {
|
|
32829
|
+
];
|
|
32830
|
+
var require$$0 = {
|
|
32831
|
+
name,
|
|
32832
|
+
version,
|
|
32833
|
+
description,
|
|
32834
|
+
main,
|
|
32835
|
+
scripts,
|
|
32836
|
+
repository,
|
|
32837
|
+
keywords,
|
|
32838
|
+
author,
|
|
32839
|
+
license,
|
|
32840
|
+
bugs,
|
|
32841
|
+
homepage,
|
|
32842
|
+
devDependencies,
|
|
32843
|
+
browser,
|
|
32844
|
+
jsdelivr,
|
|
32845
|
+
unpkg,
|
|
32846
|
+
typings,
|
|
32847
|
+
dependencies,
|
|
32848
|
+
bundlesize
|
|
32849
|
+
};
|
|
32850
|
+
var pkg = require$$0;
|
|
32851
|
+
var validators$1 = {};
|
|
32852
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
|
|
34042
32853
|
validators$1[type2] = function validator4(thing) {
|
|
34043
32854
|
return typeof thing === type2 || "a" + (i < 1 ? "n " : " ") + type2;
|
|
34044
32855
|
};
|
|
34045
32856
|
});
|
|
34046
|
-
|
|
32857
|
+
var deprecatedWarnings = {};
|
|
32858
|
+
var currentVerArr = pkg.version.split(".");
|
|
32859
|
+
function isOlderVersion(version2, thanVersion) {
|
|
32860
|
+
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
32861
|
+
var destVer = version2.split(".");
|
|
32862
|
+
for (var i = 0; i < 3; i++) {
|
|
32863
|
+
if (pkgVersionArr[i] > destVer[i]) {
|
|
32864
|
+
return true;
|
|
32865
|
+
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
32866
|
+
return false;
|
|
32867
|
+
}
|
|
32868
|
+
}
|
|
32869
|
+
return false;
|
|
32870
|
+
}
|
|
34047
32871
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32872
|
+
var isDeprecated = version2 && isOlderVersion(version2);
|
|
34048
32873
|
function formatMessage(opt, desc) {
|
|
34049
|
-
return "[Axios v" +
|
|
32874
|
+
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
34050
32875
|
}
|
|
34051
|
-
return (value17, opt, opts)
|
|
32876
|
+
return function(value17, opt, opts) {
|
|
34052
32877
|
if (validator4 === false) {
|
|
34053
|
-
throw new
|
|
34054
|
-
formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")),
|
|
34055
|
-
AxiosError$1.ERR_DEPRECATED
|
|
34056
|
-
);
|
|
32878
|
+
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
34057
32879
|
}
|
|
34058
|
-
if (
|
|
32880
|
+
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
34059
32881
|
deprecatedWarnings[opt] = true;
|
|
34060
32882
|
console.warn(
|
|
34061
32883
|
formatMessage(
|
|
@@ -34067,419 +32889,216 @@ validators$1.transitional = function transitional(validator4, version2, message)
|
|
|
34067
32889
|
return validator4 ? validator4(value17, opt, opts) : true;
|
|
34068
32890
|
};
|
|
34069
32891
|
};
|
|
34070
|
-
validators$1.spelling = function spelling(correctSpelling) {
|
|
34071
|
-
return (value17, opt) => {
|
|
34072
|
-
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
|
34073
|
-
return true;
|
|
34074
|
-
};
|
|
34075
|
-
};
|
|
34076
32892
|
function assertOptions(options, schema, allowUnknown) {
|
|
34077
32893
|
if (typeof options !== "object") {
|
|
34078
|
-
throw new
|
|
32894
|
+
throw new TypeError("options must be an object");
|
|
34079
32895
|
}
|
|
34080
|
-
|
|
34081
|
-
|
|
32896
|
+
var keys2 = Object.keys(options);
|
|
32897
|
+
var i = keys2.length;
|
|
34082
32898
|
while (i-- > 0) {
|
|
34083
|
-
|
|
34084
|
-
|
|
32899
|
+
var opt = keys2[i];
|
|
32900
|
+
var validator4 = schema[opt];
|
|
34085
32901
|
if (validator4) {
|
|
34086
|
-
|
|
34087
|
-
|
|
32902
|
+
var value17 = options[opt];
|
|
32903
|
+
var result = value17 === void 0 || validator4(value17, opt, options);
|
|
34088
32904
|
if (result !== true) {
|
|
34089
|
-
throw new
|
|
34090
|
-
"option " + opt + " must be " + result,
|
|
34091
|
-
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
34092
|
-
);
|
|
32905
|
+
throw new TypeError("option " + opt + " must be " + result);
|
|
34093
32906
|
}
|
|
34094
32907
|
continue;
|
|
34095
32908
|
}
|
|
34096
32909
|
if (allowUnknown !== true) {
|
|
34097
|
-
throw
|
|
32910
|
+
throw Error("Unknown option " + opt);
|
|
34098
32911
|
}
|
|
34099
32912
|
}
|
|
34100
32913
|
}
|
|
34101
|
-
var
|
|
32914
|
+
var validator$1 = {
|
|
32915
|
+
isOlderVersion,
|
|
34102
32916
|
assertOptions,
|
|
34103
32917
|
validators: validators$1
|
|
34104
32918
|
};
|
|
34105
|
-
|
|
34106
|
-
|
|
34107
|
-
|
|
34108
|
-
|
|
34109
|
-
|
|
34110
|
-
|
|
34111
|
-
|
|
34112
|
-
|
|
34113
|
-
|
|
34114
|
-
|
|
34115
|
-
|
|
34116
|
-
|
|
34117
|
-
|
|
34118
|
-
|
|
34119
|
-
|
|
34120
|
-
|
|
34121
|
-
|
|
34122
|
-
|
|
34123
|
-
|
|
34124
|
-
|
|
34125
|
-
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ""))) {
|
|
34126
|
-
err.stack += "\n" + stack;
|
|
34127
|
-
}
|
|
34128
|
-
} catch (e) {
|
|
34129
|
-
}
|
|
34130
|
-
}
|
|
34131
|
-
throw err;
|
|
34132
|
-
}
|
|
32919
|
+
var utils$1 = utils$d;
|
|
32920
|
+
var buildURL2 = buildURL$2;
|
|
32921
|
+
var InterceptorManager = InterceptorManager_1;
|
|
32922
|
+
var dispatchRequest2 = dispatchRequest$1;
|
|
32923
|
+
var mergeConfig$1 = mergeConfig$2;
|
|
32924
|
+
var validator3 = validator$1;
|
|
32925
|
+
var validators = validator3.validators;
|
|
32926
|
+
function Axios$1(instanceConfig) {
|
|
32927
|
+
this.defaults = instanceConfig;
|
|
32928
|
+
this.interceptors = {
|
|
32929
|
+
request: new InterceptorManager(),
|
|
32930
|
+
response: new InterceptorManager()
|
|
32931
|
+
};
|
|
32932
|
+
}
|
|
32933
|
+
Axios$1.prototype.request = function request(config2) {
|
|
32934
|
+
if (typeof config2 === "string") {
|
|
32935
|
+
config2 = arguments[1] || {};
|
|
32936
|
+
config2.url = arguments[0];
|
|
32937
|
+
} else {
|
|
32938
|
+
config2 = config2 || {};
|
|
34133
32939
|
}
|
|
34134
|
-
|
|
34135
|
-
|
|
34136
|
-
|
|
34137
|
-
|
|
34138
|
-
|
|
34139
|
-
|
|
34140
|
-
|
|
34141
|
-
|
|
34142
|
-
|
|
34143
|
-
|
|
34144
|
-
|
|
34145
|
-
|
|
34146
|
-
|
|
34147
|
-
|
|
34148
|
-
|
|
34149
|
-
|
|
34150
|
-
|
|
34151
|
-
|
|
34152
|
-
|
|
34153
|
-
|
|
34154
|
-
|
|
34155
|
-
if (paramsSerializer != null) {
|
|
34156
|
-
if (utils$1.isFunction(paramsSerializer)) {
|
|
34157
|
-
config2.paramsSerializer = {
|
|
34158
|
-
serialize: paramsSerializer
|
|
34159
|
-
};
|
|
34160
|
-
} else {
|
|
34161
|
-
validator3.assertOptions(
|
|
34162
|
-
paramsSerializer,
|
|
34163
|
-
{
|
|
34164
|
-
encode: validators.function,
|
|
34165
|
-
serialize: validators.function
|
|
34166
|
-
},
|
|
34167
|
-
true
|
|
34168
|
-
);
|
|
34169
|
-
}
|
|
34170
|
-
}
|
|
34171
|
-
if (config2.allowAbsoluteUrls !== void 0)
|
|
34172
|
-
;
|
|
34173
|
-
else if (this.defaults.allowAbsoluteUrls !== void 0) {
|
|
34174
|
-
config2.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
34175
|
-
} else {
|
|
34176
|
-
config2.allowAbsoluteUrls = true;
|
|
32940
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
32941
|
+
if (config2.method) {
|
|
32942
|
+
config2.method = config2.method.toLowerCase();
|
|
32943
|
+
} else if (this.defaults.method) {
|
|
32944
|
+
config2.method = this.defaults.method.toLowerCase();
|
|
32945
|
+
} else {
|
|
32946
|
+
config2.method = "get";
|
|
32947
|
+
}
|
|
32948
|
+
var transitional2 = config2.transitional;
|
|
32949
|
+
if (transitional2 !== void 0) {
|
|
32950
|
+
validator3.assertOptions(transitional2, {
|
|
32951
|
+
silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32952
|
+
forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32953
|
+
clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
|
|
32954
|
+
}, false);
|
|
32955
|
+
}
|
|
32956
|
+
var requestInterceptorChain = [];
|
|
32957
|
+
var synchronousRequestInterceptors = true;
|
|
32958
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
32959
|
+
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config2) === false) {
|
|
32960
|
+
return;
|
|
34177
32961
|
}
|
|
34178
|
-
|
|
34179
|
-
|
|
34180
|
-
|
|
34181
|
-
|
|
34182
|
-
|
|
34183
|
-
|
|
34184
|
-
|
|
34185
|
-
|
|
34186
|
-
|
|
34187
|
-
|
|
34188
|
-
|
|
34189
|
-
|
|
34190
|
-
|
|
34191
|
-
|
|
34192
|
-
|
|
34193
|
-
let synchronousRequestInterceptors = true;
|
|
34194
|
-
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
34195
|
-
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config2) === false) {
|
|
34196
|
-
return;
|
|
34197
|
-
}
|
|
34198
|
-
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
34199
|
-
const transitional3 = config2.transitional || transitionalDefaults;
|
|
34200
|
-
const legacyInterceptorReqResOrdering = transitional3 && transitional3.legacyInterceptorReqResOrdering;
|
|
34201
|
-
if (legacyInterceptorReqResOrdering) {
|
|
34202
|
-
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
34203
|
-
} else {
|
|
34204
|
-
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
34205
|
-
}
|
|
34206
|
-
});
|
|
34207
|
-
const responseInterceptorChain = [];
|
|
34208
|
-
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
34209
|
-
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
34210
|
-
});
|
|
34211
|
-
let promise;
|
|
34212
|
-
let i = 0;
|
|
34213
|
-
let len;
|
|
34214
|
-
if (!synchronousRequestInterceptors) {
|
|
34215
|
-
const chain = [dispatchRequest.bind(this), void 0];
|
|
34216
|
-
chain.unshift(...requestInterceptorChain);
|
|
34217
|
-
chain.push(...responseInterceptorChain);
|
|
34218
|
-
len = chain.length;
|
|
34219
|
-
promise = Promise.resolve(config2);
|
|
34220
|
-
while (i < len) {
|
|
34221
|
-
promise = promise.then(chain[i++], chain[i++]);
|
|
34222
|
-
}
|
|
34223
|
-
return promise;
|
|
34224
|
-
}
|
|
34225
|
-
len = requestInterceptorChain.length;
|
|
34226
|
-
let newConfig = config2;
|
|
34227
|
-
while (i < len) {
|
|
34228
|
-
const onFulfilled = requestInterceptorChain[i++];
|
|
34229
|
-
const onRejected = requestInterceptorChain[i++];
|
|
34230
|
-
try {
|
|
34231
|
-
newConfig = onFulfilled(newConfig);
|
|
34232
|
-
} catch (error) {
|
|
34233
|
-
onRejected.call(this, error);
|
|
34234
|
-
break;
|
|
34235
|
-
}
|
|
32962
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
32963
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
32964
|
+
});
|
|
32965
|
+
var responseInterceptorChain = [];
|
|
32966
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
32967
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
32968
|
+
});
|
|
32969
|
+
var promise;
|
|
32970
|
+
if (!synchronousRequestInterceptors) {
|
|
32971
|
+
var chain = [dispatchRequest2, void 0];
|
|
32972
|
+
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
32973
|
+
chain = chain.concat(responseInterceptorChain);
|
|
32974
|
+
promise = Promise.resolve(config2);
|
|
32975
|
+
while (chain.length) {
|
|
32976
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
34236
32977
|
}
|
|
32978
|
+
return promise;
|
|
32979
|
+
}
|
|
32980
|
+
var newConfig = config2;
|
|
32981
|
+
while (requestInterceptorChain.length) {
|
|
32982
|
+
var onFulfilled = requestInterceptorChain.shift();
|
|
32983
|
+
var onRejected = requestInterceptorChain.shift();
|
|
34237
32984
|
try {
|
|
34238
|
-
|
|
32985
|
+
newConfig = onFulfilled(newConfig);
|
|
34239
32986
|
} catch (error) {
|
|
34240
|
-
|
|
34241
|
-
|
|
34242
|
-
i = 0;
|
|
34243
|
-
len = responseInterceptorChain.length;
|
|
34244
|
-
while (i < len) {
|
|
34245
|
-
promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
|
|
32987
|
+
onRejected(error);
|
|
32988
|
+
break;
|
|
34246
32989
|
}
|
|
34247
|
-
return promise;
|
|
34248
32990
|
}
|
|
34249
|
-
|
|
34250
|
-
|
|
34251
|
-
|
|
34252
|
-
return
|
|
32991
|
+
try {
|
|
32992
|
+
promise = dispatchRequest2(newConfig);
|
|
32993
|
+
} catch (error) {
|
|
32994
|
+
return Promise.reject(error);
|
|
34253
32995
|
}
|
|
34254
|
-
|
|
34255
|
-
|
|
34256
|
-
|
|
34257
|
-
|
|
34258
|
-
|
|
34259
|
-
|
|
34260
|
-
|
|
34261
|
-
|
|
34262
|
-
|
|
34263
|
-
|
|
32996
|
+
while (responseInterceptorChain.length) {
|
|
32997
|
+
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
32998
|
+
}
|
|
32999
|
+
return promise;
|
|
33000
|
+
};
|
|
33001
|
+
Axios$1.prototype.getUri = function getUri(config2) {
|
|
33002
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
33003
|
+
return buildURL2(config2.url, config2.params, config2.paramsSerializer).replace(/^\?/, "");
|
|
33004
|
+
};
|
|
33005
|
+
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
|
|
33006
|
+
Axios$1.prototype[method] = function(url, config2) {
|
|
33007
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
33008
|
+
method,
|
|
33009
|
+
url,
|
|
33010
|
+
data: (config2 || {}).data
|
|
33011
|
+
}));
|
|
34264
33012
|
};
|
|
34265
33013
|
});
|
|
34266
|
-
utils$1.forEach(["post", "put", "patch"], function
|
|
34267
|
-
function
|
|
34268
|
-
return
|
|
34269
|
-
|
|
34270
|
-
|
|
34271
|
-
|
|
34272
|
-
|
|
34273
|
-
|
|
34274
|
-
} : {},
|
|
34275
|
-
url,
|
|
34276
|
-
data: data49
|
|
34277
|
-
})
|
|
34278
|
-
);
|
|
34279
|
-
};
|
|
34280
|
-
}
|
|
34281
|
-
Axios.prototype[method] = generateHTTPMethod();
|
|
34282
|
-
Axios.prototype[method + "Form"] = generateHTTPMethod(true);
|
|
33014
|
+
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
33015
|
+
Axios$1.prototype[method] = function(url, data49, config2) {
|
|
33016
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
33017
|
+
method,
|
|
33018
|
+
url,
|
|
33019
|
+
data: data49
|
|
33020
|
+
}));
|
|
33021
|
+
};
|
|
34283
33022
|
});
|
|
34284
|
-
var
|
|
34285
|
-
|
|
34286
|
-
|
|
34287
|
-
|
|
34288
|
-
|
|
34289
|
-
|
|
34290
|
-
|
|
34291
|
-
|
|
34292
|
-
|
|
34293
|
-
|
|
34294
|
-
|
|
34295
|
-
|
|
34296
|
-
|
|
34297
|
-
|
|
34298
|
-
|
|
34299
|
-
|
|
34300
|
-
|
|
34301
|
-
|
|
34302
|
-
|
|
34303
|
-
|
|
34304
|
-
|
|
34305
|
-
let _resolve;
|
|
34306
|
-
const promise = new Promise((resolve) => {
|
|
34307
|
-
token.subscribe(resolve);
|
|
34308
|
-
_resolve = resolve;
|
|
34309
|
-
}).then(onfulfilled);
|
|
34310
|
-
promise.cancel = function reject() {
|
|
34311
|
-
token.unsubscribe(_resolve);
|
|
34312
|
-
};
|
|
34313
|
-
return promise;
|
|
34314
|
-
};
|
|
34315
|
-
executor(function cancel2(message, config2, request) {
|
|
34316
|
-
if (token.reason) {
|
|
34317
|
-
return;
|
|
34318
|
-
}
|
|
34319
|
-
token.reason = new CanceledError$1(message, config2, request);
|
|
34320
|
-
resolvePromise(token.reason);
|
|
34321
|
-
});
|
|
34322
|
-
}
|
|
34323
|
-
throwIfRequested() {
|
|
34324
|
-
if (this.reason) {
|
|
34325
|
-
throw this.reason;
|
|
34326
|
-
}
|
|
34327
|
-
}
|
|
34328
|
-
subscribe(listener) {
|
|
34329
|
-
if (this.reason) {
|
|
34330
|
-
listener(this.reason);
|
|
34331
|
-
return;
|
|
34332
|
-
}
|
|
34333
|
-
if (this._listeners) {
|
|
34334
|
-
this._listeners.push(listener);
|
|
34335
|
-
} else {
|
|
34336
|
-
this._listeners = [listener];
|
|
34337
|
-
}
|
|
34338
|
-
}
|
|
34339
|
-
unsubscribe(listener) {
|
|
34340
|
-
if (!this._listeners) {
|
|
33023
|
+
var Axios_1 = Axios$1;
|
|
33024
|
+
function Cancel$1(message) {
|
|
33025
|
+
this.message = message;
|
|
33026
|
+
}
|
|
33027
|
+
Cancel$1.prototype.toString = function toString2() {
|
|
33028
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
33029
|
+
};
|
|
33030
|
+
Cancel$1.prototype.__CANCEL__ = true;
|
|
33031
|
+
var Cancel_1 = Cancel$1;
|
|
33032
|
+
var Cancel = Cancel_1;
|
|
33033
|
+
function CancelToken(executor) {
|
|
33034
|
+
if (typeof executor !== "function") {
|
|
33035
|
+
throw new TypeError("executor must be a function.");
|
|
33036
|
+
}
|
|
33037
|
+
var resolvePromise;
|
|
33038
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
33039
|
+
resolvePromise = resolve;
|
|
33040
|
+
});
|
|
33041
|
+
var token = this;
|
|
33042
|
+
executor(function cancel2(message) {
|
|
33043
|
+
if (token.reason) {
|
|
34341
33044
|
return;
|
|
34342
33045
|
}
|
|
34343
|
-
|
|
34344
|
-
|
|
34345
|
-
|
|
34346
|
-
}
|
|
34347
|
-
}
|
|
34348
|
-
toAbortSignal() {
|
|
34349
|
-
const controller = new AbortController();
|
|
34350
|
-
const abort = (err) => {
|
|
34351
|
-
controller.abort(err);
|
|
34352
|
-
};
|
|
34353
|
-
this.subscribe(abort);
|
|
34354
|
-
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
34355
|
-
return controller.signal;
|
|
34356
|
-
}
|
|
34357
|
-
static source() {
|
|
34358
|
-
let cancel2;
|
|
34359
|
-
const token = new CancelToken(function executor(c) {
|
|
34360
|
-
cancel2 = c;
|
|
34361
|
-
});
|
|
34362
|
-
return {
|
|
34363
|
-
token,
|
|
34364
|
-
cancel: cancel2
|
|
34365
|
-
};
|
|
34366
|
-
}
|
|
33046
|
+
token.reason = new Cancel(message);
|
|
33047
|
+
resolvePromise(token.reason);
|
|
33048
|
+
});
|
|
34367
33049
|
}
|
|
34368
|
-
|
|
34369
|
-
|
|
33050
|
+
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
33051
|
+
if (this.reason) {
|
|
33052
|
+
throw this.reason;
|
|
33053
|
+
}
|
|
33054
|
+
};
|
|
33055
|
+
CancelToken.source = function source() {
|
|
33056
|
+
var cancel2;
|
|
33057
|
+
var token = new CancelToken(function executor(c) {
|
|
33058
|
+
cancel2 = c;
|
|
33059
|
+
});
|
|
33060
|
+
return {
|
|
33061
|
+
token,
|
|
33062
|
+
cancel: cancel2
|
|
33063
|
+
};
|
|
33064
|
+
};
|
|
33065
|
+
var CancelToken_1 = CancelToken;
|
|
33066
|
+
var spread = function spread2(callback2) {
|
|
34370
33067
|
return function wrap(arr) {
|
|
34371
33068
|
return callback2.apply(null, arr);
|
|
34372
33069
|
};
|
|
34373
|
-
}
|
|
34374
|
-
function
|
|
34375
|
-
return
|
|
34376
|
-
}
|
|
34377
|
-
|
|
34378
|
-
|
|
34379
|
-
|
|
34380
|
-
|
|
34381
|
-
|
|
34382
|
-
Ok: 200,
|
|
34383
|
-
Created: 201,
|
|
34384
|
-
Accepted: 202,
|
|
34385
|
-
NonAuthoritativeInformation: 203,
|
|
34386
|
-
NoContent: 204,
|
|
34387
|
-
ResetContent: 205,
|
|
34388
|
-
PartialContent: 206,
|
|
34389
|
-
MultiStatus: 207,
|
|
34390
|
-
AlreadyReported: 208,
|
|
34391
|
-
ImUsed: 226,
|
|
34392
|
-
MultipleChoices: 300,
|
|
34393
|
-
MovedPermanently: 301,
|
|
34394
|
-
Found: 302,
|
|
34395
|
-
SeeOther: 303,
|
|
34396
|
-
NotModified: 304,
|
|
34397
|
-
UseProxy: 305,
|
|
34398
|
-
Unused: 306,
|
|
34399
|
-
TemporaryRedirect: 307,
|
|
34400
|
-
PermanentRedirect: 308,
|
|
34401
|
-
BadRequest: 400,
|
|
34402
|
-
Unauthorized: 401,
|
|
34403
|
-
PaymentRequired: 402,
|
|
34404
|
-
Forbidden: 403,
|
|
34405
|
-
NotFound: 404,
|
|
34406
|
-
MethodNotAllowed: 405,
|
|
34407
|
-
NotAcceptable: 406,
|
|
34408
|
-
ProxyAuthenticationRequired: 407,
|
|
34409
|
-
RequestTimeout: 408,
|
|
34410
|
-
Conflict: 409,
|
|
34411
|
-
Gone: 410,
|
|
34412
|
-
LengthRequired: 411,
|
|
34413
|
-
PreconditionFailed: 412,
|
|
34414
|
-
PayloadTooLarge: 413,
|
|
34415
|
-
UriTooLong: 414,
|
|
34416
|
-
UnsupportedMediaType: 415,
|
|
34417
|
-
RangeNotSatisfiable: 416,
|
|
34418
|
-
ExpectationFailed: 417,
|
|
34419
|
-
ImATeapot: 418,
|
|
34420
|
-
MisdirectedRequest: 421,
|
|
34421
|
-
UnprocessableEntity: 422,
|
|
34422
|
-
Locked: 423,
|
|
34423
|
-
FailedDependency: 424,
|
|
34424
|
-
TooEarly: 425,
|
|
34425
|
-
UpgradeRequired: 426,
|
|
34426
|
-
PreconditionRequired: 428,
|
|
34427
|
-
TooManyRequests: 429,
|
|
34428
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
34429
|
-
UnavailableForLegalReasons: 451,
|
|
34430
|
-
InternalServerError: 500,
|
|
34431
|
-
NotImplemented: 501,
|
|
34432
|
-
BadGateway: 502,
|
|
34433
|
-
ServiceUnavailable: 503,
|
|
34434
|
-
GatewayTimeout: 504,
|
|
34435
|
-
HttpVersionNotSupported: 505,
|
|
34436
|
-
VariantAlsoNegotiates: 506,
|
|
34437
|
-
InsufficientStorage: 507,
|
|
34438
|
-
LoopDetected: 508,
|
|
34439
|
-
NotExtended: 510,
|
|
34440
|
-
NetworkAuthenticationRequired: 511,
|
|
34441
|
-
WebServerIsDown: 521,
|
|
34442
|
-
ConnectionTimedOut: 522,
|
|
34443
|
-
OriginIsUnreachable: 523,
|
|
34444
|
-
TimeoutOccurred: 524,
|
|
34445
|
-
SslHandshakeFailed: 525,
|
|
34446
|
-
InvalidSslCertificate: 526
|
|
34447
|
-
};
|
|
34448
|
-
Object.entries(HttpStatusCode).forEach(([key, value17]) => {
|
|
34449
|
-
HttpStatusCode[value17] = key;
|
|
34450
|
-
});
|
|
34451
|
-
var HttpStatusCode$1 = HttpStatusCode;
|
|
33070
|
+
};
|
|
33071
|
+
var isAxiosError = function isAxiosError2(payload) {
|
|
33072
|
+
return typeof payload === "object" && payload.isAxiosError === true;
|
|
33073
|
+
};
|
|
33074
|
+
var utils = utils$d;
|
|
33075
|
+
var bind2 = bind$2;
|
|
33076
|
+
var Axios = Axios_1;
|
|
33077
|
+
var mergeConfig2 = mergeConfig$2;
|
|
33078
|
+
var defaults = defaults_1;
|
|
34452
33079
|
function createInstance(defaultConfig2) {
|
|
34453
|
-
|
|
34454
|
-
|
|
34455
|
-
utils
|
|
34456
|
-
utils
|
|
34457
|
-
instance2.create = function create(instanceConfig) {
|
|
34458
|
-
return createInstance(mergeConfig(defaultConfig2, instanceConfig));
|
|
34459
|
-
};
|
|
33080
|
+
var context2 = new Axios(defaultConfig2);
|
|
33081
|
+
var instance2 = bind2(Axios.prototype.request, context2);
|
|
33082
|
+
utils.extend(instance2, Axios.prototype, context2);
|
|
33083
|
+
utils.extend(instance2, context2);
|
|
34460
33084
|
return instance2;
|
|
34461
33085
|
}
|
|
34462
|
-
|
|
34463
|
-
axios.Axios = Axios
|
|
34464
|
-
axios.
|
|
34465
|
-
axios.
|
|
34466
|
-
|
|
34467
|
-
axios.
|
|
34468
|
-
axios.
|
|
34469
|
-
axios.
|
|
34470
|
-
axios.
|
|
34471
|
-
axios.all = function all(promises) {
|
|
33086
|
+
var axios$1 = createInstance(defaults);
|
|
33087
|
+
axios$1.Axios = Axios;
|
|
33088
|
+
axios$1.create = function create(instanceConfig) {
|
|
33089
|
+
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
33090
|
+
};
|
|
33091
|
+
axios$1.Cancel = Cancel_1;
|
|
33092
|
+
axios$1.CancelToken = CancelToken_1;
|
|
33093
|
+
axios$1.isCancel = isCancel$1;
|
|
33094
|
+
axios$1.all = function all(promises) {
|
|
34472
33095
|
return Promise.all(promises);
|
|
34473
33096
|
};
|
|
34474
|
-
axios.spread = spread;
|
|
34475
|
-
axios.isAxiosError = isAxiosError;
|
|
34476
|
-
axios.
|
|
34477
|
-
axios.
|
|
34478
|
-
axios
|
|
34479
|
-
axios.getAdapter = adapters.getAdapter;
|
|
34480
|
-
axios.HttpStatusCode = HttpStatusCode$1;
|
|
34481
|
-
axios.default = axios;
|
|
34482
|
-
var axiosSrc = axios;
|
|
33097
|
+
axios$1.spread = spread;
|
|
33098
|
+
axios$1.isAxiosError = isAxiosError;
|
|
33099
|
+
axios$2.exports = axios$1;
|
|
33100
|
+
axios$2.exports.default = axios$1;
|
|
33101
|
+
var axios = axios$2.exports;
|
|
34483
33102
|
const isHb = location.pathname.includes("scyxweb");
|
|
34484
33103
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
34485
33104
|
const isQywx = /wxwork/.test(userAgent) ? true : false;
|
|
@@ -34619,7 +33238,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34619
33238
|
}
|
|
34620
33239
|
}
|
|
34621
33240
|
console.log("typeof window.Code", typeof window.Code);
|
|
34622
|
-
async function _renderRoutes() {
|
|
33241
|
+
async function _renderRoutes(targetRouteFromPlugin) {
|
|
34623
33242
|
var _a, _b, _c;
|
|
34624
33243
|
if (!store2.state.user.userName) {
|
|
34625
33244
|
Spin.show();
|
|
@@ -34632,6 +33251,10 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34632
33251
|
routerOptionsBak
|
|
34633
33252
|
});
|
|
34634
33253
|
console.log("router1");
|
|
33254
|
+
if (targetRouteFromPlugin) {
|
|
33255
|
+
next2({ ...targetRouteFromPlugin, replace: true });
|
|
33256
|
+
return;
|
|
33257
|
+
}
|
|
34635
33258
|
const wxState = getQueryVariable("state");
|
|
34636
33259
|
let state = {};
|
|
34637
33260
|
if (!!wxState && wxState != "null") {
|
|
@@ -34666,9 +33289,12 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34666
33289
|
}
|
|
34667
33290
|
async function tryPluginLogin(to2) {
|
|
34668
33291
|
try {
|
|
34669
|
-
|
|
34670
|
-
|
|
34671
|
-
|
|
33292
|
+
const result = await pluginLogin(store2, router, to2);
|
|
33293
|
+
if (result && result.token) {
|
|
33294
|
+
store2.dispatch("loginSuccess", result.token);
|
|
33295
|
+
return result;
|
|
33296
|
+
}
|
|
33297
|
+
return false;
|
|
34672
33298
|
} catch (e) {
|
|
34673
33299
|
console.log("tryPluginLogin error", e);
|
|
34674
33300
|
return false;
|
|
@@ -34677,13 +33303,17 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34677
33303
|
const code2 = getQueryVariable("code");
|
|
34678
33304
|
if (typeof window.Code != "undefined" || code2 || isHb) {
|
|
34679
33305
|
if (!token) {
|
|
34680
|
-
|
|
34681
|
-
|
|
33306
|
+
const pluginLoginResult = await tryPluginLogin(to);
|
|
33307
|
+
if (pluginLoginResult) {
|
|
33308
|
+
await _renderRoutes(pluginLoginResult.targetRoute);
|
|
33309
|
+
} else {
|
|
33310
|
+
console.log("\u5355\u70B9\u767B\u5F55\u5F02\u5E38\u4E86\uFF1F\uFF01\uFF01");
|
|
34682
33311
|
}
|
|
34683
33312
|
} else {
|
|
34684
33313
|
if (!await checkLogin()) {
|
|
34685
|
-
|
|
34686
|
-
|
|
33314
|
+
const pluginLoginResult = await tryPluginLogin(to);
|
|
33315
|
+
if (pluginLoginResult) {
|
|
33316
|
+
await _renderRoutes(pluginLoginResult.targetRoute);
|
|
34687
33317
|
}
|
|
34688
33318
|
} else {
|
|
34689
33319
|
await _renderRoutes();
|
|
@@ -34699,8 +33329,9 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34699
33329
|
} else {
|
|
34700
33330
|
console.log("router8");
|
|
34701
33331
|
if (!await checkLogin()) {
|
|
34702
|
-
|
|
34703
|
-
|
|
33332
|
+
const pluginLoginResult = await tryPluginLogin(to);
|
|
33333
|
+
if (pluginLoginResult) {
|
|
33334
|
+
await _renderRoutes(pluginLoginResult.targetRoute);
|
|
34704
33335
|
} else {
|
|
34705
33336
|
console.log("router9");
|
|
34706
33337
|
}
|
|
@@ -34723,7 +33354,7 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34723
33354
|
console.log("\u91CD\u590D\u4F7F\u7528\u4E86code\u521B\u5EFA\u4F1A\u8BDD\uFF01");
|
|
34724
33355
|
return singleLoginPromise;
|
|
34725
33356
|
}
|
|
34726
|
-
singleLoginPromise =
|
|
33357
|
+
singleLoginPromise = new Promise((resolve, reject) => {
|
|
34727
33358
|
sessionStorage.removeItem("lambo-token");
|
|
34728
33359
|
sessionStorage.removeItem("sso_token");
|
|
34729
33360
|
sessionStorage.removeItem("userInfo");
|
|
@@ -34736,19 +33367,14 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34736
33367
|
store2.commit("setToken", "");
|
|
34737
33368
|
if (isHb) {
|
|
34738
33369
|
let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
|
|
34739
|
-
axios$
|
|
33370
|
+
axios$3.get(url).then(async (resp) => {
|
|
34740
33371
|
setToken(resp.token);
|
|
34741
33372
|
localStorage.setItem("v8-token", resp.token);
|
|
34742
33373
|
sessionStorage.setItem("lambo-token", resp.token);
|
|
34743
33374
|
setTimeout(() => {
|
|
34744
33375
|
if (targetRoute && targetRoute.path && targetRoute.path !== "/") {
|
|
34745
33376
|
console.log("===targetRoute===", targetRoute.path, targetRoute.query);
|
|
34746
|
-
|
|
34747
|
-
path: targetRoute.path,
|
|
34748
|
-
query: targetRoute.query,
|
|
34749
|
-
replace: true
|
|
34750
|
-
});
|
|
34751
|
-
reject(0);
|
|
33377
|
+
resolve({ token: resp.token });
|
|
34752
33378
|
return;
|
|
34753
33379
|
}
|
|
34754
33380
|
console.log("before getUserDefaultUrl");
|
|
@@ -34756,17 +33382,10 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34756
33382
|
var _a;
|
|
34757
33383
|
console.log("getUserDefaultUrl data", resp1);
|
|
34758
33384
|
if ((_a = resp1.data) == null ? void 0 : _a.includes("home")) {
|
|
34759
|
-
|
|
34760
|
-
name: config.homeRouteName,
|
|
34761
|
-
replace: true
|
|
34762
|
-
});
|
|
33385
|
+
resolve({ token: resp.token, targetRoute: { name: config.homeRouteName } });
|
|
34763
33386
|
} else {
|
|
34764
|
-
|
|
34765
|
-
name: "workBench",
|
|
34766
|
-
replace: true
|
|
34767
|
-
});
|
|
33387
|
+
resolve({ token: resp.token, targetRoute: { name: "workBench" } });
|
|
34768
33388
|
}
|
|
34769
|
-
reject(0);
|
|
34770
33389
|
console.log("location.href", location.href);
|
|
34771
33390
|
return;
|
|
34772
33391
|
});
|
|
@@ -34778,9 +33397,9 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34778
33397
|
} else {
|
|
34779
33398
|
console.log("1111`111");
|
|
34780
33399
|
if (code2) {
|
|
34781
|
-
axios$
|
|
33400
|
+
axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
|
|
34782
33401
|
setToken(resp.token);
|
|
34783
|
-
resolve(resp.token);
|
|
33402
|
+
resolve({ token: resp.token });
|
|
34784
33403
|
}).catch((e) => {
|
|
34785
33404
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
34786
33405
|
Message.error({
|
|
@@ -34794,9 +33413,9 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34794
33413
|
Code.postMessage("");
|
|
34795
33414
|
window.getCode = function(res) {
|
|
34796
33415
|
console.log("getCode res", res);
|
|
34797
|
-
axios$
|
|
33416
|
+
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
34798
33417
|
setToken(resp.token);
|
|
34799
|
-
resolve(resp.token);
|
|
33418
|
+
resolve({ token: resp.token });
|
|
34800
33419
|
}).catch((e) => {
|
|
34801
33420
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
34802
33421
|
Message.error({
|
|
@@ -34810,6 +33429,9 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34810
33429
|
}
|
|
34811
33430
|
}
|
|
34812
33431
|
});
|
|
33432
|
+
if (!!code2) {
|
|
33433
|
+
singleLoginPromiseMapping[code2] = singleLoginPromise;
|
|
33434
|
+
}
|
|
34813
33435
|
return singleLoginPromise;
|
|
34814
33436
|
};
|
|
34815
33437
|
window.getQueryVariable = function getQueryVariable2(variable) {
|
|
@@ -34843,7 +33465,7 @@ const checkLogin = async () => {
|
|
|
34843
33465
|
try {
|
|
34844
33466
|
let token = getToken();
|
|
34845
33467
|
console.log("checkLogin token", token);
|
|
34846
|
-
const resp = await
|
|
33468
|
+
const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
|
|
34847
33469
|
params: {},
|
|
34848
33470
|
headers: {
|
|
34849
33471
|
token
|
|
@@ -35238,11 +33860,11 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
35238
33860
|
doChangeTheme(theme);
|
|
35239
33861
|
if (location.pathname.includes("scyxweb")) {
|
|
35240
33862
|
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
35241
|
-
axios$
|
|
33863
|
+
axios$3.get(url).then((data49) => {
|
|
35242
33864
|
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
35243
33865
|
});
|
|
35244
33866
|
}
|
|
35245
|
-
Vue2.ready = axios$
|
|
33867
|
+
Vue2.ready = axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
|
|
35246
33868
|
var _a;
|
|
35247
33869
|
try {
|
|
35248
33870
|
const ret = JSON.parse(((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.settingInfo) || "{}");
|
|
@@ -35309,7 +33931,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
35309
33931
|
install(window.Vue);
|
|
35310
33932
|
}
|
|
35311
33933
|
const API = {
|
|
35312
|
-
version: pkg.version,
|
|
33934
|
+
version: pkg$1.version,
|
|
35313
33935
|
install,
|
|
35314
33936
|
components,
|
|
35315
33937
|
plugins,
|