@indfnd/common-mobile 1.0.74 → 1.0.75
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 +7 -0
- package/dist/ind-common-mobile.es.js +1081 -2478
- 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.74";
|
|
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",
|
|
@@ -31953,384 +31953,139 @@ function generator(menuData = []) {
|
|
|
31953
31953
|
}
|
|
31954
31954
|
return menuData;
|
|
31955
31955
|
}
|
|
31956
|
-
|
|
31956
|
+
var axios$2 = { exports: {} };
|
|
31957
|
+
var bind$2 = function bind(fn2, thisArg) {
|
|
31957
31958
|
return function wrap() {
|
|
31958
|
-
|
|
31959
|
+
var args = new Array(arguments.length);
|
|
31960
|
+
for (var i = 0; i < args.length; i++) {
|
|
31961
|
+
args[i] = arguments[i];
|
|
31962
|
+
}
|
|
31963
|
+
return fn2.apply(thisArg, args);
|
|
31959
31964
|
};
|
|
31965
|
+
};
|
|
31966
|
+
var bind$1 = bind$2;
|
|
31967
|
+
var toString = Object.prototype.toString;
|
|
31968
|
+
function isArray(val) {
|
|
31969
|
+
return toString.call(val) === "[object Array]";
|
|
31970
|
+
}
|
|
31971
|
+
function isUndefined(val) {
|
|
31972
|
+
return typeof val === "undefined";
|
|
31960
31973
|
}
|
|
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
31974
|
function isBuffer(val) {
|
|
31976
|
-
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) &&
|
|
31975
|
+
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val);
|
|
31976
|
+
}
|
|
31977
|
+
function isArrayBuffer(val) {
|
|
31978
|
+
return toString.call(val) === "[object ArrayBuffer]";
|
|
31979
|
+
}
|
|
31980
|
+
function isFormData(val) {
|
|
31981
|
+
return typeof FormData !== "undefined" && val instanceof FormData;
|
|
31977
31982
|
}
|
|
31978
|
-
const isArrayBuffer = kindOfTest("ArrayBuffer");
|
|
31979
31983
|
function isArrayBufferView(val) {
|
|
31980
|
-
|
|
31984
|
+
var result;
|
|
31981
31985
|
if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
|
|
31982
31986
|
result = ArrayBuffer.isView(val);
|
|
31983
31987
|
} else {
|
|
31984
|
-
result = val && val.buffer &&
|
|
31988
|
+
result = val && val.buffer && val.buffer instanceof ArrayBuffer;
|
|
31985
31989
|
}
|
|
31986
31990
|
return result;
|
|
31987
31991
|
}
|
|
31988
|
-
|
|
31989
|
-
|
|
31990
|
-
|
|
31991
|
-
|
|
31992
|
-
|
|
31993
|
-
|
|
31994
|
-
|
|
31995
|
-
|
|
31996
|
-
|
|
31997
|
-
|
|
31998
|
-
|
|
31999
|
-
};
|
|
32000
|
-
const isEmptyObject = (val) => {
|
|
32001
|
-
if (!isObject(val) || isBuffer(val)) {
|
|
31992
|
+
function isString(val) {
|
|
31993
|
+
return typeof val === "string";
|
|
31994
|
+
}
|
|
31995
|
+
function isNumber(val) {
|
|
31996
|
+
return typeof val === "number";
|
|
31997
|
+
}
|
|
31998
|
+
function isObject(val) {
|
|
31999
|
+
return val !== null && typeof val === "object";
|
|
32000
|
+
}
|
|
32001
|
+
function isPlainObject(val) {
|
|
32002
|
+
if (toString.call(val) !== "[object Object]") {
|
|
32002
32003
|
return false;
|
|
32003
32004
|
}
|
|
32004
|
-
|
|
32005
|
-
|
|
32006
|
-
|
|
32005
|
+
var prototype = Object.getPrototypeOf(val);
|
|
32006
|
+
return prototype === null || prototype === Object.prototype;
|
|
32007
|
+
}
|
|
32008
|
+
function isDate(val) {
|
|
32009
|
+
return toString.call(val) === "[object Date]";
|
|
32010
|
+
}
|
|
32011
|
+
function isFile(val) {
|
|
32012
|
+
return toString.call(val) === "[object File]";
|
|
32013
|
+
}
|
|
32014
|
+
function isBlob(val) {
|
|
32015
|
+
return toString.call(val) === "[object Blob]";
|
|
32016
|
+
}
|
|
32017
|
+
function isFunction(val) {
|
|
32018
|
+
return toString.call(val) === "[object Function]";
|
|
32019
|
+
}
|
|
32020
|
+
function isStream(val) {
|
|
32021
|
+
return isObject(val) && isFunction(val.pipe);
|
|
32022
|
+
}
|
|
32023
|
+
function isURLSearchParams(val) {
|
|
32024
|
+
return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
|
|
32025
|
+
}
|
|
32026
|
+
function trim(str) {
|
|
32027
|
+
return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
|
|
32028
|
+
}
|
|
32029
|
+
function isStandardBrowserEnv() {
|
|
32030
|
+
if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
|
|
32007
32031
|
return false;
|
|
32008
32032
|
}
|
|
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 } = {}) {
|
|
32033
|
+
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
32034
|
+
}
|
|
32035
|
+
function forEach(obj, fn2) {
|
|
32047
32036
|
if (obj === null || typeof obj === "undefined") {
|
|
32048
32037
|
return;
|
|
32049
32038
|
}
|
|
32050
|
-
let i;
|
|
32051
|
-
let l;
|
|
32052
32039
|
if (typeof obj !== "object") {
|
|
32053
32040
|
obj = [obj];
|
|
32054
32041
|
}
|
|
32055
32042
|
if (isArray(obj)) {
|
|
32056
|
-
for (i = 0, l = obj.length; i < l; i++) {
|
|
32043
|
+
for (var i = 0, l = obj.length; i < l; i++) {
|
|
32057
32044
|
fn2.call(null, obj[i], i, obj);
|
|
32058
32045
|
}
|
|
32059
32046
|
} 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;
|
|
32047
|
+
for (var key in obj) {
|
|
32048
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
32049
|
+
fn2.call(null, obj[key], key, obj);
|
|
32050
|
+
}
|
|
32084
32051
|
}
|
|
32085
32052
|
}
|
|
32086
|
-
return null;
|
|
32087
32053
|
}
|
|
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
32054
|
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);
|
|
32055
|
+
var result = {};
|
|
32056
|
+
function assignValue(val, key) {
|
|
32057
|
+
if (isPlainObject(result[key]) && isPlainObject(val)) {
|
|
32058
|
+
result[key] = merge(result[key], val);
|
|
32104
32059
|
} else if (isPlainObject(val)) {
|
|
32105
|
-
result[
|
|
32060
|
+
result[key] = merge({}, val);
|
|
32106
32061
|
} else if (isArray(val)) {
|
|
32107
|
-
result[
|
|
32108
|
-
} else
|
|
32109
|
-
result[
|
|
32062
|
+
result[key] = val.slice();
|
|
32063
|
+
} else {
|
|
32064
|
+
result[key] = val;
|
|
32110
32065
|
}
|
|
32111
|
-
}
|
|
32112
|
-
for (
|
|
32113
|
-
|
|
32066
|
+
}
|
|
32067
|
+
for (var i = 0, l = arguments.length; i < l; i++) {
|
|
32068
|
+
forEach(arguments[i], assignValue);
|
|
32114
32069
|
}
|
|
32115
32070
|
return result;
|
|
32116
32071
|
}
|
|
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
|
-
);
|
|
32072
|
+
function extend(a, b, thisArg) {
|
|
32073
|
+
forEach(b, function assignValue(val, key) {
|
|
32074
|
+
if (thisArg && typeof val === "function") {
|
|
32075
|
+
a[key] = bind$1(val, thisArg);
|
|
32076
|
+
} else {
|
|
32077
|
+
a[key] = val;
|
|
32078
|
+
}
|
|
32079
|
+
});
|
|
32139
32080
|
return a;
|
|
32140
|
-
}
|
|
32141
|
-
|
|
32081
|
+
}
|
|
32082
|
+
function stripBOM(content) {
|
|
32142
32083
|
if (content.charCodeAt(0) === 65279) {
|
|
32143
32084
|
content = content.slice(1);
|
|
32144
32085
|
}
|
|
32145
32086
|
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
32087
|
}
|
|
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 = {
|
|
32088
|
+
var utils$d = {
|
|
32334
32089
|
isArray,
|
|
32335
32090
|
isArrayBuffer,
|
|
32336
32091
|
isBuffer,
|
|
@@ -32338,532 +32093,200 @@ var utils$1 = {
|
|
|
32338
32093
|
isArrayBufferView,
|
|
32339
32094
|
isString,
|
|
32340
32095
|
isNumber,
|
|
32341
|
-
isBoolean,
|
|
32342
32096
|
isObject,
|
|
32343
32097
|
isPlainObject,
|
|
32344
|
-
isEmptyObject,
|
|
32345
|
-
isReadableStream,
|
|
32346
|
-
isRequest,
|
|
32347
|
-
isResponse,
|
|
32348
|
-
isHeaders,
|
|
32349
32098
|
isUndefined,
|
|
32350
32099
|
isDate,
|
|
32351
32100
|
isFile,
|
|
32352
|
-
isReactNativeBlob,
|
|
32353
|
-
isReactNative,
|
|
32354
32101
|
isBlob,
|
|
32355
|
-
|
|
32356
|
-
isFunction: isFunction$1,
|
|
32102
|
+
isFunction,
|
|
32357
32103
|
isStream,
|
|
32358
32104
|
isURLSearchParams,
|
|
32359
|
-
|
|
32360
|
-
isFileList,
|
|
32105
|
+
isStandardBrowserEnv,
|
|
32361
32106
|
forEach,
|
|
32362
32107
|
merge,
|
|
32363
32108
|
extend,
|
|
32364
32109
|
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("&");
|
|
32110
|
+
stripBOM
|
|
32599
32111
|
};
|
|
32112
|
+
var utils$c = utils$d;
|
|
32600
32113
|
function encode(val) {
|
|
32601
|
-
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
32114
|
+
return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
32602
32115
|
}
|
|
32603
|
-
function buildURL(url, params,
|
|
32116
|
+
var buildURL$2 = function buildURL(url, params, paramsSerializer) {
|
|
32604
32117
|
if (!params) {
|
|
32605
32118
|
return url;
|
|
32606
32119
|
}
|
|
32607
|
-
|
|
32608
|
-
|
|
32609
|
-
|
|
32610
|
-
}
|
|
32611
|
-
|
|
32612
|
-
let serializedParams;
|
|
32613
|
-
if (serializeFn) {
|
|
32614
|
-
serializedParams = serializeFn(params, _options);
|
|
32120
|
+
var serializedParams;
|
|
32121
|
+
if (paramsSerializer) {
|
|
32122
|
+
serializedParams = paramsSerializer(params);
|
|
32123
|
+
} else if (utils$c.isURLSearchParams(params)) {
|
|
32124
|
+
serializedParams = params.toString();
|
|
32615
32125
|
} else {
|
|
32616
|
-
|
|
32126
|
+
var parts = [];
|
|
32127
|
+
utils$c.forEach(params, function serialize(val, key) {
|
|
32128
|
+
if (val === null || typeof val === "undefined") {
|
|
32129
|
+
return;
|
|
32130
|
+
}
|
|
32131
|
+
if (utils$c.isArray(val)) {
|
|
32132
|
+
key = key + "[]";
|
|
32133
|
+
} else {
|
|
32134
|
+
val = [val];
|
|
32135
|
+
}
|
|
32136
|
+
utils$c.forEach(val, function parseValue(v) {
|
|
32137
|
+
if (utils$c.isDate(v)) {
|
|
32138
|
+
v = v.toISOString();
|
|
32139
|
+
} else if (utils$c.isObject(v)) {
|
|
32140
|
+
v = JSON.stringify(v);
|
|
32141
|
+
}
|
|
32142
|
+
parts.push(encode(key) + "=" + encode(v));
|
|
32143
|
+
});
|
|
32144
|
+
});
|
|
32145
|
+
serializedParams = parts.join("&");
|
|
32617
32146
|
}
|
|
32618
32147
|
if (serializedParams) {
|
|
32619
|
-
|
|
32148
|
+
var hashmarkIndex = url.indexOf("#");
|
|
32620
32149
|
if (hashmarkIndex !== -1) {
|
|
32621
32150
|
url = url.slice(0, hashmarkIndex);
|
|
32622
32151
|
}
|
|
32623
32152
|
url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
|
|
32624
32153
|
}
|
|
32625
32154
|
return url;
|
|
32155
|
+
};
|
|
32156
|
+
var utils$b = utils$d;
|
|
32157
|
+
function InterceptorManager$1() {
|
|
32158
|
+
this.handlers = [];
|
|
32626
32159
|
}
|
|
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];
|
|
32160
|
+
InterceptorManager$1.prototype.use = function use2(fulfilled, rejected, options) {
|
|
32161
|
+
this.handlers.push({
|
|
32162
|
+
fulfilled,
|
|
32163
|
+
rejected,
|
|
32164
|
+
synchronous: options ? options.synchronous : false,
|
|
32165
|
+
runWhen: options ? options.runWhen : null
|
|
32711
32166
|
});
|
|
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];
|
|
32167
|
+
return this.handlers.length - 1;
|
|
32168
|
+
};
|
|
32169
|
+
InterceptorManager$1.prototype.eject = function eject(id) {
|
|
32170
|
+
if (this.handlers[id]) {
|
|
32171
|
+
this.handlers[id] = null;
|
|
32722
32172
|
}
|
|
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] = [];
|
|
32173
|
+
};
|
|
32174
|
+
InterceptorManager$1.prototype.forEach = function forEach2(fn2) {
|
|
32175
|
+
utils$b.forEach(this.handlers, function forEachHandler(h) {
|
|
32176
|
+
if (h !== null) {
|
|
32177
|
+
fn2(h);
|
|
32743
32178
|
}
|
|
32744
|
-
|
|
32745
|
-
|
|
32746
|
-
|
|
32179
|
+
});
|
|
32180
|
+
};
|
|
32181
|
+
var InterceptorManager_1 = InterceptorManager$1;
|
|
32182
|
+
var utils$a = utils$d;
|
|
32183
|
+
var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
|
|
32184
|
+
utils$a.forEach(headers, function processHeader(value17, name2) {
|
|
32185
|
+
if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
|
|
32186
|
+
headers[normalizedName] = value17;
|
|
32187
|
+
delete headers[name2];
|
|
32747
32188
|
}
|
|
32748
|
-
|
|
32189
|
+
});
|
|
32190
|
+
};
|
|
32191
|
+
var enhanceError$2 = function enhanceError(error, config2, code2, request2, response) {
|
|
32192
|
+
error.config = config2;
|
|
32193
|
+
if (code2) {
|
|
32194
|
+
error.code = code2;
|
|
32749
32195
|
}
|
|
32750
|
-
|
|
32751
|
-
|
|
32752
|
-
|
|
32753
|
-
|
|
32754
|
-
|
|
32755
|
-
|
|
32196
|
+
error.request = request2;
|
|
32197
|
+
error.response = response;
|
|
32198
|
+
error.isAxiosError = true;
|
|
32199
|
+
error.toJSON = function toJSON() {
|
|
32200
|
+
return {
|
|
32201
|
+
message: this.message,
|
|
32202
|
+
name: this.name,
|
|
32203
|
+
description: this.description,
|
|
32204
|
+
number: this.number,
|
|
32205
|
+
fileName: this.fileName,
|
|
32206
|
+
lineNumber: this.lineNumber,
|
|
32207
|
+
columnNumber: this.columnNumber,
|
|
32208
|
+
stack: this.stack,
|
|
32209
|
+
config: this.config,
|
|
32210
|
+
code: this.code
|
|
32211
|
+
};
|
|
32212
|
+
};
|
|
32213
|
+
return error;
|
|
32214
|
+
};
|
|
32215
|
+
var enhanceError$1 = enhanceError$2;
|
|
32216
|
+
var createError$2 = function createError(message, config2, code2, request2, response) {
|
|
32217
|
+
var error = new Error(message);
|
|
32218
|
+
return enhanceError$1(error, config2, code2, request2, response);
|
|
32219
|
+
};
|
|
32220
|
+
var createError$1 = createError$2;
|
|
32221
|
+
var settle$1 = function settle(resolve, reject, response) {
|
|
32222
|
+
var validateStatus2 = response.config.validateStatus;
|
|
32223
|
+
if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
|
|
32224
|
+
resolve(response);
|
|
32225
|
+
} else {
|
|
32226
|
+
reject(createError$1(
|
|
32227
|
+
"Request failed with status code " + response.status,
|
|
32228
|
+
response.config,
|
|
32229
|
+
null,
|
|
32230
|
+
response.request,
|
|
32231
|
+
response
|
|
32232
|
+
));
|
|
32756
32233
|
}
|
|
32757
|
-
|
|
32758
|
-
|
|
32759
|
-
|
|
32760
|
-
|
|
32761
|
-
|
|
32762
|
-
|
|
32763
|
-
|
|
32764
|
-
|
|
32765
|
-
|
|
32766
|
-
throw e;
|
|
32234
|
+
};
|
|
32235
|
+
var utils$9 = utils$d;
|
|
32236
|
+
var cookies$1 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
|
|
32237
|
+
return {
|
|
32238
|
+
write: function write2(name2, value17, expires, path2, domain, secure) {
|
|
32239
|
+
var cookie = [];
|
|
32240
|
+
cookie.push(name2 + "=" + encodeURIComponent(value17));
|
|
32241
|
+
if (utils$9.isNumber(expires)) {
|
|
32242
|
+
cookie.push("expires=" + new Date(expires).toGMTString());
|
|
32767
32243
|
}
|
|
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
|
-
}
|
|
32244
|
+
if (utils$9.isString(path2)) {
|
|
32245
|
+
cookie.push("path=" + path2);
|
|
32810
32246
|
}
|
|
32811
|
-
if (
|
|
32812
|
-
|
|
32813
|
-
return stringifySafely(data49);
|
|
32247
|
+
if (utils$9.isString(domain)) {
|
|
32248
|
+
cookie.push("domain=" + domain);
|
|
32814
32249
|
}
|
|
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
|
-
}
|
|
32250
|
+
if (secure === true) {
|
|
32251
|
+
cookie.push("secure");
|
|
32839
32252
|
}
|
|
32840
|
-
|
|
32253
|
+
document.cookie = cookie.join("; ");
|
|
32254
|
+
},
|
|
32255
|
+
read: function read2(name2) {
|
|
32256
|
+
var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
|
|
32257
|
+
return match ? decodeURIComponent(match[3]) : null;
|
|
32258
|
+
},
|
|
32259
|
+
remove: function remove2(name2) {
|
|
32260
|
+
this.write(name2, "", Date.now() - 864e5);
|
|
32841
32261
|
}
|
|
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
|
|
32262
|
+
};
|
|
32263
|
+
}() : function nonStandardBrowserEnv() {
|
|
32264
|
+
return {
|
|
32265
|
+
write: function write2() {
|
|
32266
|
+
},
|
|
32267
|
+
read: function read2() {
|
|
32268
|
+
return null;
|
|
32269
|
+
},
|
|
32270
|
+
remove: function remove2() {
|
|
32859
32271
|
}
|
|
32272
|
+
};
|
|
32273
|
+
}();
|
|
32274
|
+
var isAbsoluteURL$1 = function isAbsoluteURL(url) {
|
|
32275
|
+
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
32276
|
+
};
|
|
32277
|
+
var combineURLs$1 = function combineURLs(baseURL, relativeURL) {
|
|
32278
|
+
return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
|
|
32279
|
+
};
|
|
32280
|
+
var isAbsoluteURL2 = isAbsoluteURL$1;
|
|
32281
|
+
var combineURLs2 = combineURLs$1;
|
|
32282
|
+
var buildFullPath$1 = function buildFullPath(baseURL, requestedURL) {
|
|
32283
|
+
if (baseURL && !isAbsoluteURL2(requestedURL)) {
|
|
32284
|
+
return combineURLs2(baseURL, requestedURL);
|
|
32860
32285
|
}
|
|
32286
|
+
return requestedURL;
|
|
32861
32287
|
};
|
|
32862
|
-
utils$
|
|
32863
|
-
|
|
32864
|
-
});
|
|
32865
|
-
var defaults$1 = defaults;
|
|
32866
|
-
const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
32288
|
+
var utils$8 = utils$d;
|
|
32289
|
+
var ignoreDuplicateOf = [
|
|
32867
32290
|
"age",
|
|
32868
32291
|
"authorization",
|
|
32869
32292
|
"content-length",
|
|
@@ -32881,1181 +32304,561 @@ const ignoreDuplicateOf = utils$1.toObjectSet([
|
|
|
32881
32304
|
"referer",
|
|
32882
32305
|
"retry-after",
|
|
32883
32306
|
"user-agent"
|
|
32884
|
-
]
|
|
32885
|
-
var parseHeaders = (
|
|
32886
|
-
|
|
32887
|
-
|
|
32888
|
-
|
|
32889
|
-
|
|
32890
|
-
|
|
32307
|
+
];
|
|
32308
|
+
var parseHeaders$1 = function parseHeaders(headers) {
|
|
32309
|
+
var parsed = {};
|
|
32310
|
+
var key;
|
|
32311
|
+
var val;
|
|
32312
|
+
var i;
|
|
32313
|
+
if (!headers) {
|
|
32314
|
+
return parsed;
|
|
32315
|
+
}
|
|
32316
|
+
utils$8.forEach(headers.split("\n"), function parser(line) {
|
|
32891
32317
|
i = line.indexOf(":");
|
|
32892
|
-
key = line.
|
|
32893
|
-
val = line.
|
|
32894
|
-
if (
|
|
32895
|
-
|
|
32896
|
-
|
|
32897
|
-
|
|
32898
|
-
if (
|
|
32899
|
-
parsed[key].
|
|
32318
|
+
key = utils$8.trim(line.substr(0, i)).toLowerCase();
|
|
32319
|
+
val = utils$8.trim(line.substr(i + 1));
|
|
32320
|
+
if (key) {
|
|
32321
|
+
if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
|
|
32322
|
+
return;
|
|
32323
|
+
}
|
|
32324
|
+
if (key === "set-cookie") {
|
|
32325
|
+
parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
|
|
32900
32326
|
} else {
|
|
32901
|
-
parsed[key] = [val
|
|
32327
|
+
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
32902
32328
|
}
|
|
32903
|
-
} else {
|
|
32904
|
-
parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
|
|
32905
32329
|
}
|
|
32906
32330
|
});
|
|
32907
32331
|
return parsed;
|
|
32908
32332
|
};
|
|
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: {}
|
|
32333
|
+
var utils$7 = utils$d;
|
|
32334
|
+
var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowserEnv2() {
|
|
32335
|
+
var msie = /(msie|trident)/i.test(navigator.userAgent);
|
|
32336
|
+
var urlParsingNode = document.createElement("a");
|
|
32337
|
+
var originURL;
|
|
32338
|
+
function resolveURL(url) {
|
|
32339
|
+
var href = url;
|
|
32340
|
+
if (msie) {
|
|
32341
|
+
urlParsingNode.setAttribute("href", href);
|
|
32342
|
+
href = urlParsingNode.href;
|
|
32343
|
+
}
|
|
32344
|
+
urlParsingNode.setAttribute("href", href);
|
|
32345
|
+
return {
|
|
32346
|
+
href: urlParsingNode.href,
|
|
32347
|
+
protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
|
|
32348
|
+
host: urlParsingNode.host,
|
|
32349
|
+
search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
|
|
32350
|
+
hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
|
|
32351
|
+
hostname: urlParsingNode.hostname,
|
|
32352
|
+
port: urlParsingNode.port,
|
|
32353
|
+
pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
|
|
33111
32354
|
};
|
|
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
32355
|
}
|
|
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);
|
|
32356
|
+
originURL = resolveURL(window.location.href);
|
|
32357
|
+
return function isURLSameOrigin2(requestURL) {
|
|
32358
|
+
var parsed = utils$7.isString(requestURL) ? resolveURL(requestURL) : requestURL;
|
|
32359
|
+
return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
|
|
33232
32360
|
};
|
|
33233
|
-
|
|
33234
|
-
|
|
33235
|
-
|
|
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
|
-
}
|
|
33247
|
-
};
|
|
33248
|
-
const flush = () => lastArgs && invoke(lastArgs);
|
|
33249
|
-
return [throttled, flush];
|
|
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)
|
|
32361
|
+
}() : function nonStandardBrowserEnv2() {
|
|
32362
|
+
return function isURLSameOrigin2() {
|
|
32363
|
+
return true;
|
|
33420
32364
|
};
|
|
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) {
|
|
32365
|
+
}();
|
|
32366
|
+
var utils$6 = utils$d;
|
|
32367
|
+
var settle2 = settle$1;
|
|
32368
|
+
var cookies = cookies$1;
|
|
32369
|
+
var buildURL$1 = buildURL$2;
|
|
32370
|
+
var buildFullPath2 = buildFullPath$1;
|
|
32371
|
+
var parseHeaders2 = parseHeaders$1;
|
|
32372
|
+
var isURLSameOrigin = isURLSameOrigin$1;
|
|
32373
|
+
var createError2 = createError$2;
|
|
32374
|
+
var xhr = function xhrAdapter(config2) {
|
|
33473
32375
|
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;
|
|
32376
|
+
var requestData = config2.data;
|
|
32377
|
+
var requestHeaders = config2.headers;
|
|
32378
|
+
var responseType = config2.responseType;
|
|
32379
|
+
if (utils$6.isFormData(requestData)) {
|
|
32380
|
+
delete requestHeaders["Content-Type"];
|
|
32381
|
+
}
|
|
32382
|
+
var request2 = new XMLHttpRequest();
|
|
32383
|
+
if (config2.auth) {
|
|
32384
|
+
var username = config2.auth.username || "";
|
|
32385
|
+
var password = config2.auth.password ? unescape(encodeURIComponent(config2.auth.password)) : "";
|
|
32386
|
+
requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
|
|
32387
|
+
}
|
|
32388
|
+
var fullPath = buildFullPath2(config2.baseURL, config2.url);
|
|
32389
|
+
request2.open(config2.method.toUpperCase(), buildURL$1(fullPath, config2.params, config2.paramsSerializer), true);
|
|
32390
|
+
request2.timeout = config2.timeout;
|
|
33490
32391
|
function onloadend() {
|
|
33491
|
-
if (!
|
|
32392
|
+
if (!request2) {
|
|
33492
32393
|
return;
|
|
33493
32394
|
}
|
|
33494
|
-
|
|
33495
|
-
|
|
33496
|
-
|
|
33497
|
-
const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
|
|
33498
|
-
const response = {
|
|
32395
|
+
var responseHeaders = "getAllResponseHeaders" in request2 ? parseHeaders2(request2.getAllResponseHeaders()) : null;
|
|
32396
|
+
var responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
|
|
32397
|
+
var response = {
|
|
33499
32398
|
data: responseData,
|
|
33500
|
-
status:
|
|
33501
|
-
statusText:
|
|
32399
|
+
status: request2.status,
|
|
32400
|
+
statusText: request2.statusText,
|
|
33502
32401
|
headers: responseHeaders,
|
|
33503
32402
|
config: config2,
|
|
33504
|
-
request
|
|
32403
|
+
request: request2
|
|
33505
32404
|
};
|
|
33506
|
-
|
|
33507
|
-
|
|
33508
|
-
resolve(value17);
|
|
33509
|
-
done();
|
|
33510
|
-
},
|
|
33511
|
-
function _reject(err) {
|
|
33512
|
-
reject(err);
|
|
33513
|
-
done();
|
|
33514
|
-
},
|
|
33515
|
-
response
|
|
33516
|
-
);
|
|
33517
|
-
request = null;
|
|
32405
|
+
settle2(resolve, reject, response);
|
|
32406
|
+
request2 = null;
|
|
33518
32407
|
}
|
|
33519
|
-
if ("onloadend" in
|
|
33520
|
-
|
|
32408
|
+
if ("onloadend" in request2) {
|
|
32409
|
+
request2.onloadend = onloadend;
|
|
33521
32410
|
} else {
|
|
33522
|
-
|
|
33523
|
-
if (!
|
|
32411
|
+
request2.onreadystatechange = function handleLoad() {
|
|
32412
|
+
if (!request2 || request2.readyState !== 4) {
|
|
33524
32413
|
return;
|
|
33525
32414
|
}
|
|
33526
|
-
if (
|
|
32415
|
+
if (request2.status === 0 && !(request2.responseURL && request2.responseURL.indexOf("file:") === 0)) {
|
|
33527
32416
|
return;
|
|
33528
32417
|
}
|
|
33529
32418
|
setTimeout(onloadend);
|
|
33530
32419
|
};
|
|
33531
32420
|
}
|
|
33532
|
-
|
|
33533
|
-
if (!
|
|
32421
|
+
request2.onabort = function handleAbort() {
|
|
32422
|
+
if (!request2) {
|
|
33534
32423
|
return;
|
|
33535
32424
|
}
|
|
33536
|
-
reject(
|
|
33537
|
-
|
|
32425
|
+
reject(createError2("Request aborted", config2, "ECONNABORTED", request2));
|
|
32426
|
+
request2 = null;
|
|
33538
32427
|
};
|
|
33539
|
-
|
|
33540
|
-
|
|
33541
|
-
|
|
33542
|
-
err.event = event || null;
|
|
33543
|
-
reject(err);
|
|
33544
|
-
request = null;
|
|
32428
|
+
request2.onerror = function handleError() {
|
|
32429
|
+
reject(createError2("Network Error", config2, null, request2));
|
|
32430
|
+
request2 = null;
|
|
33545
32431
|
};
|
|
33546
|
-
|
|
33547
|
-
|
|
33548
|
-
|
|
33549
|
-
|
|
33550
|
-
|
|
33551
|
-
|
|
33552
|
-
|
|
33553
|
-
|
|
33554
|
-
|
|
33555
|
-
|
|
33556
|
-
|
|
33557
|
-
|
|
33558
|
-
)
|
|
33559
|
-
);
|
|
33560
|
-
request = null;
|
|
32432
|
+
request2.ontimeout = function handleTimeout() {
|
|
32433
|
+
var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
|
|
32434
|
+
if (config2.timeoutErrorMessage) {
|
|
32435
|
+
timeoutErrorMessage = config2.timeoutErrorMessage;
|
|
32436
|
+
}
|
|
32437
|
+
reject(createError2(
|
|
32438
|
+
timeoutErrorMessage,
|
|
32439
|
+
config2,
|
|
32440
|
+
config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
32441
|
+
request2
|
|
32442
|
+
));
|
|
32443
|
+
request2 = null;
|
|
33561
32444
|
};
|
|
33562
|
-
|
|
33563
|
-
|
|
33564
|
-
|
|
33565
|
-
|
|
32445
|
+
if (utils$6.isStandardBrowserEnv()) {
|
|
32446
|
+
var xsrfValue = (config2.withCredentials || isURLSameOrigin(fullPath)) && config2.xsrfCookieName ? cookies.read(config2.xsrfCookieName) : void 0;
|
|
32447
|
+
if (xsrfValue) {
|
|
32448
|
+
requestHeaders[config2.xsrfHeaderName] = xsrfValue;
|
|
32449
|
+
}
|
|
32450
|
+
}
|
|
32451
|
+
if ("setRequestHeader" in request2) {
|
|
32452
|
+
utils$6.forEach(requestHeaders, function setRequestHeader(val, key) {
|
|
32453
|
+
if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
|
|
32454
|
+
delete requestHeaders[key];
|
|
32455
|
+
} else {
|
|
32456
|
+
request2.setRequestHeader(key, val);
|
|
32457
|
+
}
|
|
33566
32458
|
});
|
|
33567
32459
|
}
|
|
33568
|
-
if (!utils$
|
|
33569
|
-
|
|
32460
|
+
if (!utils$6.isUndefined(config2.withCredentials)) {
|
|
32461
|
+
request2.withCredentials = !!config2.withCredentials;
|
|
33570
32462
|
}
|
|
33571
32463
|
if (responseType && responseType !== "json") {
|
|
33572
|
-
|
|
32464
|
+
request2.responseType = config2.responseType;
|
|
33573
32465
|
}
|
|
33574
|
-
if (onDownloadProgress) {
|
|
33575
|
-
|
|
33576
|
-
request.addEventListener("progress", downloadThrottled);
|
|
32466
|
+
if (typeof config2.onDownloadProgress === "function") {
|
|
32467
|
+
request2.addEventListener("progress", config2.onDownloadProgress);
|
|
33577
32468
|
}
|
|
33578
|
-
if (onUploadProgress &&
|
|
33579
|
-
|
|
33580
|
-
request.upload.addEventListener("progress", uploadThrottled);
|
|
33581
|
-
request.upload.addEventListener("loadend", flushUpload);
|
|
32469
|
+
if (typeof config2.onUploadProgress === "function" && request2.upload) {
|
|
32470
|
+
request2.upload.addEventListener("progress", config2.onUploadProgress);
|
|
33582
32471
|
}
|
|
33583
|
-
if (
|
|
33584
|
-
onCanceled
|
|
33585
|
-
if (!
|
|
32472
|
+
if (config2.cancelToken) {
|
|
32473
|
+
config2.cancelToken.promise.then(function onCanceled(cancel2) {
|
|
32474
|
+
if (!request2) {
|
|
33586
32475
|
return;
|
|
33587
32476
|
}
|
|
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;
|
|
32477
|
+
request2.abort();
|
|
32478
|
+
reject(cancel2);
|
|
32479
|
+
request2 = null;
|
|
32480
|
+
});
|
|
32481
|
+
}
|
|
32482
|
+
if (!requestData) {
|
|
32483
|
+
requestData = null;
|
|
33607
32484
|
}
|
|
33608
|
-
|
|
32485
|
+
request2.send(requestData);
|
|
33609
32486
|
});
|
|
33610
32487
|
};
|
|
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
|
-
}
|
|
33645
|
-
};
|
|
33646
|
-
var composeSignals$1 = composeSignals;
|
|
33647
|
-
const streamChunk = function* (chunk, chunkSize) {
|
|
33648
|
-
let len = chunk.byteLength;
|
|
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;
|
|
33659
|
-
}
|
|
32488
|
+
var utils$5 = utils$d;
|
|
32489
|
+
var normalizeHeaderName2 = normalizeHeaderName$1;
|
|
32490
|
+
var enhanceError2 = enhanceError$2;
|
|
32491
|
+
var DEFAULT_CONTENT_TYPE = {
|
|
32492
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
33660
32493
|
};
|
|
33661
|
-
|
|
33662
|
-
|
|
33663
|
-
|
|
32494
|
+
function setContentTypeIfUnset(headers, value17) {
|
|
32495
|
+
if (!utils$5.isUndefined(headers) && utils$5.isUndefined(headers["Content-Type"])) {
|
|
32496
|
+
headers["Content-Type"] = value17;
|
|
33664
32497
|
}
|
|
33665
|
-
}
|
|
33666
|
-
|
|
33667
|
-
|
|
33668
|
-
|
|
33669
|
-
|
|
32498
|
+
}
|
|
32499
|
+
function getDefaultAdapter() {
|
|
32500
|
+
var adapter;
|
|
32501
|
+
if (typeof XMLHttpRequest !== "undefined") {
|
|
32502
|
+
adapter = xhr;
|
|
32503
|
+
} else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") {
|
|
32504
|
+
adapter = xhr;
|
|
33670
32505
|
}
|
|
33671
|
-
|
|
33672
|
-
|
|
33673
|
-
|
|
33674
|
-
|
|
33675
|
-
|
|
33676
|
-
|
|
32506
|
+
return adapter;
|
|
32507
|
+
}
|
|
32508
|
+
function stringifySafely(rawValue, parser, encoder) {
|
|
32509
|
+
if (utils$5.isString(rawValue)) {
|
|
32510
|
+
try {
|
|
32511
|
+
(parser || JSON.parse)(rawValue);
|
|
32512
|
+
return utils$5.trim(rawValue);
|
|
32513
|
+
} catch (e) {
|
|
32514
|
+
if (e.name !== "SyntaxError") {
|
|
32515
|
+
throw e;
|
|
33677
32516
|
}
|
|
33678
|
-
yield value17;
|
|
33679
32517
|
}
|
|
33680
|
-
} finally {
|
|
33681
|
-
await reader.cancel();
|
|
33682
32518
|
}
|
|
33683
|
-
|
|
33684
|
-
|
|
33685
|
-
|
|
33686
|
-
|
|
33687
|
-
|
|
33688
|
-
|
|
33689
|
-
|
|
33690
|
-
|
|
33691
|
-
|
|
32519
|
+
return (encoder || JSON.stringify)(rawValue);
|
|
32520
|
+
}
|
|
32521
|
+
var defaults$3 = {
|
|
32522
|
+
transitional: {
|
|
32523
|
+
silentJSONParsing: true,
|
|
32524
|
+
forcedJSONParsing: true,
|
|
32525
|
+
clarifyTimeoutError: false
|
|
32526
|
+
},
|
|
32527
|
+
adapter: getDefaultAdapter(),
|
|
32528
|
+
transformRequest: [function transformRequest(data49, headers) {
|
|
32529
|
+
normalizeHeaderName2(headers, "Accept");
|
|
32530
|
+
normalizeHeaderName2(headers, "Content-Type");
|
|
32531
|
+
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)) {
|
|
32532
|
+
return data49;
|
|
33692
32533
|
}
|
|
33693
|
-
|
|
33694
|
-
|
|
33695
|
-
|
|
33696
|
-
|
|
33697
|
-
|
|
33698
|
-
|
|
33699
|
-
|
|
33700
|
-
|
|
33701
|
-
|
|
33702
|
-
|
|
33703
|
-
|
|
33704
|
-
|
|
33705
|
-
|
|
33706
|
-
|
|
33707
|
-
|
|
32534
|
+
if (utils$5.isArrayBufferView(data49)) {
|
|
32535
|
+
return data49.buffer;
|
|
32536
|
+
}
|
|
32537
|
+
if (utils$5.isURLSearchParams(data49)) {
|
|
32538
|
+
setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
|
|
32539
|
+
return data49.toString();
|
|
32540
|
+
}
|
|
32541
|
+
if (utils$5.isObject(data49) || headers && headers["Content-Type"] === "application/json") {
|
|
32542
|
+
setContentTypeIfUnset(headers, "application/json");
|
|
32543
|
+
return stringifySafely(data49);
|
|
32544
|
+
}
|
|
32545
|
+
return data49;
|
|
32546
|
+
}],
|
|
32547
|
+
transformResponse: [function transformResponse(data49) {
|
|
32548
|
+
var transitional2 = this.transitional;
|
|
32549
|
+
var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
|
|
32550
|
+
var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
|
|
32551
|
+
var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
|
|
32552
|
+
if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data49) && data49.length) {
|
|
32553
|
+
try {
|
|
32554
|
+
return JSON.parse(data49);
|
|
32555
|
+
} catch (e) {
|
|
32556
|
+
if (strictJSONParsing) {
|
|
32557
|
+
if (e.name === "SyntaxError") {
|
|
32558
|
+
throw enhanceError2(e, this, "E_JSON_PARSE");
|
|
33708
32559
|
}
|
|
33709
|
-
|
|
33710
|
-
} catch (err) {
|
|
33711
|
-
_onFinish(err);
|
|
33712
|
-
throw err;
|
|
32560
|
+
throw e;
|
|
33713
32561
|
}
|
|
33714
|
-
},
|
|
33715
|
-
cancel(reason) {
|
|
33716
|
-
_onFinish(reason);
|
|
33717
|
-
return iterator2.return();
|
|
33718
32562
|
}
|
|
33719
|
-
},
|
|
33720
|
-
{
|
|
33721
|
-
highWaterMark: 2
|
|
33722
32563
|
}
|
|
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;
|
|
32564
|
+
return data49;
|
|
32565
|
+
}],
|
|
32566
|
+
timeout: 0,
|
|
32567
|
+
xsrfCookieName: "XSRF-TOKEN",
|
|
32568
|
+
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
32569
|
+
maxContentLength: -1,
|
|
32570
|
+
maxBodyLength: -1,
|
|
32571
|
+
validateStatus: function validateStatus(status2) {
|
|
32572
|
+
return status2 >= 200 && status2 < 300;
|
|
33737
32573
|
}
|
|
33738
32574
|
};
|
|
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;
|
|
32575
|
+
defaults$3.headers = {
|
|
32576
|
+
common: {
|
|
32577
|
+
"Accept": "application/json, text/plain, */*"
|
|
33753
32578
|
}
|
|
33754
|
-
|
|
33755
|
-
|
|
33756
|
-
|
|
33757
|
-
|
|
33758
|
-
|
|
33759
|
-
|
|
33760
|
-
|
|
33761
|
-
|
|
33762
|
-
|
|
33763
|
-
|
|
33764
|
-
|
|
33765
|
-
|
|
33766
|
-
|
|
32579
|
+
};
|
|
32580
|
+
utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
|
|
32581
|
+
defaults$3.headers[method] = {};
|
|
32582
|
+
});
|
|
32583
|
+
utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
|
|
32584
|
+
defaults$3.headers[method] = utils$5.merge(DEFAULT_CONTENT_TYPE);
|
|
32585
|
+
});
|
|
32586
|
+
var defaults_1 = defaults$3;
|
|
32587
|
+
var utils$4 = utils$d;
|
|
32588
|
+
var defaults$2 = defaults_1;
|
|
32589
|
+
var transformData$1 = function transformData(data49, headers, fns) {
|
|
32590
|
+
var context2 = this || defaults$2;
|
|
32591
|
+
utils$4.forEach(fns, function transform(fn2) {
|
|
32592
|
+
data49 = fn2.call(context2, data49, headers);
|
|
33767
32593
|
});
|
|
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;
|
|
32594
|
+
return data49;
|
|
32595
|
+
};
|
|
32596
|
+
var isCancel$1 = function isCancel(value17) {
|
|
32597
|
+
return !!(value17 && value17.__CANCEL__);
|
|
32598
|
+
};
|
|
32599
|
+
var utils$3 = utils$d;
|
|
32600
|
+
var transformData2 = transformData$1;
|
|
32601
|
+
var isCancel2 = isCancel$1;
|
|
32602
|
+
var defaults$1 = defaults_1;
|
|
32603
|
+
function throwIfCancellationRequested(config2) {
|
|
32604
|
+
if (config2.cancelToken) {
|
|
32605
|
+
config2.cancelToken.throwIfRequested();
|
|
32606
|
+
}
|
|
32607
|
+
}
|
|
32608
|
+
var dispatchRequest$1 = function dispatchRequest(config2) {
|
|
32609
|
+
throwIfCancellationRequested(config2);
|
|
32610
|
+
config2.headers = config2.headers || {};
|
|
32611
|
+
config2.data = transformData2.call(
|
|
32612
|
+
config2,
|
|
32613
|
+
config2.data,
|
|
32614
|
+
config2.headers,
|
|
32615
|
+
config2.transformRequest
|
|
32616
|
+
);
|
|
32617
|
+
config2.headers = utils$3.merge(
|
|
32618
|
+
config2.headers.common || {},
|
|
32619
|
+
config2.headers[config2.method] || {},
|
|
32620
|
+
config2.headers
|
|
32621
|
+
);
|
|
32622
|
+
utils$3.forEach(
|
|
32623
|
+
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
32624
|
+
function cleanHeaderConfig(method) {
|
|
32625
|
+
delete config2.headers[method];
|
|
33809
32626
|
}
|
|
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
|
|
32627
|
+
);
|
|
32628
|
+
var adapter = config2.adapter || defaults$1.adapter;
|
|
32629
|
+
return adapter(config2).then(function onAdapterResolution(response) {
|
|
32630
|
+
throwIfCancellationRequested(config2);
|
|
32631
|
+
response.data = transformData2.call(
|
|
32632
|
+
config2,
|
|
32633
|
+
response.data,
|
|
32634
|
+
response.headers,
|
|
32635
|
+
config2.transformResponse
|
|
33835
32636
|
);
|
|
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
|
-
}
|
|
32637
|
+
return response;
|
|
32638
|
+
}, function onAdapterRejection(reason) {
|
|
32639
|
+
if (!isCancel2(reason)) {
|
|
32640
|
+
throwIfCancellationRequested(config2);
|
|
32641
|
+
if (reason && reason.response) {
|
|
32642
|
+
reason.response.data = transformData2.call(
|
|
32643
|
+
config2,
|
|
32644
|
+
reason.response.data,
|
|
32645
|
+
reason.response.headers,
|
|
32646
|
+
config2.transformResponse
|
|
33924
32647
|
);
|
|
33925
32648
|
}
|
|
33926
|
-
throw AxiosError$1.from(err, err && err.code, config2, request, err && err.response);
|
|
33927
32649
|
}
|
|
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
|
-
}
|
|
32650
|
+
return Promise.reject(reason);
|
|
32651
|
+
});
|
|
33951
32652
|
};
|
|
33952
|
-
utils$
|
|
33953
|
-
|
|
33954
|
-
|
|
33955
|
-
|
|
33956
|
-
|
|
32653
|
+
var utils$2 = utils$d;
|
|
32654
|
+
var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
32655
|
+
config2 = config2 || {};
|
|
32656
|
+
var config3 = {};
|
|
32657
|
+
var valueFromConfig2Keys = ["url", "method", "data"];
|
|
32658
|
+
var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
|
|
32659
|
+
var defaultToConfig2Keys = [
|
|
32660
|
+
"baseURL",
|
|
32661
|
+
"transformRequest",
|
|
32662
|
+
"transformResponse",
|
|
32663
|
+
"paramsSerializer",
|
|
32664
|
+
"timeout",
|
|
32665
|
+
"timeoutMessage",
|
|
32666
|
+
"withCredentials",
|
|
32667
|
+
"adapter",
|
|
32668
|
+
"responseType",
|
|
32669
|
+
"xsrfCookieName",
|
|
32670
|
+
"xsrfHeaderName",
|
|
32671
|
+
"onUploadProgress",
|
|
32672
|
+
"onDownloadProgress",
|
|
32673
|
+
"decompress",
|
|
32674
|
+
"maxContentLength",
|
|
32675
|
+
"maxBodyLength",
|
|
32676
|
+
"maxRedirects",
|
|
32677
|
+
"transport",
|
|
32678
|
+
"httpAgent",
|
|
32679
|
+
"httpsAgent",
|
|
32680
|
+
"cancelToken",
|
|
32681
|
+
"socketPath",
|
|
32682
|
+
"responseEncoding"
|
|
32683
|
+
];
|
|
32684
|
+
var directMergeKeys = ["validateStatus"];
|
|
32685
|
+
function getMergedValue(target2, source2) {
|
|
32686
|
+
if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
|
|
32687
|
+
return utils$2.merge(target2, source2);
|
|
32688
|
+
} else if (utils$2.isPlainObject(source2)) {
|
|
32689
|
+
return utils$2.merge({}, source2);
|
|
32690
|
+
} else if (utils$2.isArray(source2)) {
|
|
32691
|
+
return source2.slice();
|
|
33957
32692
|
}
|
|
33958
|
-
|
|
32693
|
+
return source2;
|
|
33959
32694
|
}
|
|
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;
|
|
32695
|
+
function mergeDeepProperties(prop) {
|
|
32696
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
32697
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32698
|
+
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32699
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
33981
32700
|
}
|
|
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
32701
|
}
|
|
33994
|
-
|
|
33995
|
-
|
|
33996
|
-
|
|
33997
|
-
|
|
33998
|
-
|
|
32702
|
+
utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
|
|
32703
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
32704
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32705
|
+
}
|
|
32706
|
+
});
|
|
32707
|
+
utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
|
|
32708
|
+
utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
|
|
32709
|
+
if (!utils$2.isUndefined(config2[prop])) {
|
|
32710
|
+
config3[prop] = getMergedValue(void 0, config2[prop]);
|
|
32711
|
+
} else if (!utils$2.isUndefined(config1[prop])) {
|
|
32712
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32713
|
+
}
|
|
32714
|
+
});
|
|
32715
|
+
utils$2.forEach(directMergeKeys, function merge2(prop) {
|
|
32716
|
+
if (prop in config2) {
|
|
32717
|
+
config3[prop] = getMergedValue(config1[prop], config2[prop]);
|
|
32718
|
+
} else if (prop in config1) {
|
|
32719
|
+
config3[prop] = getMergedValue(void 0, config1[prop]);
|
|
32720
|
+
}
|
|
32721
|
+
});
|
|
32722
|
+
var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
|
|
32723
|
+
var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
|
|
32724
|
+
return axiosKeys.indexOf(key) === -1;
|
|
32725
|
+
});
|
|
32726
|
+
utils$2.forEach(otherKeys, mergeDeepProperties);
|
|
32727
|
+
return config3;
|
|
33999
32728
|
};
|
|
34000
|
-
|
|
34001
|
-
|
|
34002
|
-
|
|
34003
|
-
|
|
34004
|
-
|
|
34005
|
-
|
|
32729
|
+
const name = "axios";
|
|
32730
|
+
const version = "0.21.4";
|
|
32731
|
+
const description = "Promise based HTTP client for the browser and node.js";
|
|
32732
|
+
const main = "index.js";
|
|
32733
|
+
const scripts = {
|
|
32734
|
+
test: "grunt test",
|
|
32735
|
+
start: "node ./sandbox/server.js",
|
|
32736
|
+
build: "NODE_ENV=production grunt build",
|
|
32737
|
+
preversion: "npm test",
|
|
32738
|
+
version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
|
|
32739
|
+
postversion: "git push && git push --tags",
|
|
32740
|
+
examples: "node ./examples/server.js",
|
|
32741
|
+
coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
|
32742
|
+
fix: "eslint --fix lib/**/*.js"
|
|
32743
|
+
};
|
|
32744
|
+
const repository = {
|
|
32745
|
+
type: "git",
|
|
32746
|
+
url: "https://github.com/axios/axios.git"
|
|
32747
|
+
};
|
|
32748
|
+
const keywords = [
|
|
32749
|
+
"xhr",
|
|
32750
|
+
"http",
|
|
32751
|
+
"ajax",
|
|
32752
|
+
"promise",
|
|
32753
|
+
"node"
|
|
32754
|
+
];
|
|
32755
|
+
const author = "Matt Zabriskie";
|
|
32756
|
+
const license = "MIT";
|
|
32757
|
+
const bugs = {
|
|
32758
|
+
url: "https://github.com/axios/axios/issues"
|
|
32759
|
+
};
|
|
32760
|
+
const homepage = "https://axios-http.com";
|
|
32761
|
+
const devDependencies = {
|
|
32762
|
+
coveralls: "^3.0.0",
|
|
32763
|
+
"es6-promise": "^4.2.4",
|
|
32764
|
+
grunt: "^1.3.0",
|
|
32765
|
+
"grunt-banner": "^0.6.0",
|
|
32766
|
+
"grunt-cli": "^1.2.0",
|
|
32767
|
+
"grunt-contrib-clean": "^1.1.0",
|
|
32768
|
+
"grunt-contrib-watch": "^1.0.0",
|
|
32769
|
+
"grunt-eslint": "^23.0.0",
|
|
32770
|
+
"grunt-karma": "^4.0.0",
|
|
32771
|
+
"grunt-mocha-test": "^0.13.3",
|
|
32772
|
+
"grunt-ts": "^6.0.0-beta.19",
|
|
32773
|
+
"grunt-webpack": "^4.0.2",
|
|
32774
|
+
"istanbul-instrumenter-loader": "^1.0.0",
|
|
32775
|
+
"jasmine-core": "^2.4.1",
|
|
32776
|
+
karma: "^6.3.2",
|
|
32777
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
32778
|
+
"karma-firefox-launcher": "^2.1.0",
|
|
32779
|
+
"karma-jasmine": "^1.1.1",
|
|
32780
|
+
"karma-jasmine-ajax": "^0.1.13",
|
|
32781
|
+
"karma-safari-launcher": "^1.0.0",
|
|
32782
|
+
"karma-sauce-launcher": "^4.3.6",
|
|
32783
|
+
"karma-sinon": "^1.0.5",
|
|
32784
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
32785
|
+
"karma-webpack": "^4.0.2",
|
|
32786
|
+
"load-grunt-tasks": "^3.5.2",
|
|
32787
|
+
minimist: "^1.2.0",
|
|
32788
|
+
mocha: "^8.2.1",
|
|
32789
|
+
sinon: "^4.5.0",
|
|
32790
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
32791
|
+
typescript: "^4.0.5",
|
|
32792
|
+
"url-search-params": "^0.10.0",
|
|
32793
|
+
webpack: "^4.44.2",
|
|
32794
|
+
"webpack-dev-server": "^3.11.0"
|
|
32795
|
+
};
|
|
32796
|
+
const browser = {
|
|
32797
|
+
"./lib/adapters/http.js": "./lib/adapters/xhr.js"
|
|
32798
|
+
};
|
|
32799
|
+
const jsdelivr = "dist/axios.min.js";
|
|
32800
|
+
const unpkg = "dist/axios.min.js";
|
|
32801
|
+
const typings = "./index.d.ts";
|
|
32802
|
+
const dependencies = {
|
|
32803
|
+
"follow-redirects": "^1.14.0"
|
|
32804
|
+
};
|
|
32805
|
+
const bundlesize = [
|
|
32806
|
+
{
|
|
32807
|
+
path: "./dist/axios.min.js",
|
|
32808
|
+
threshold: "5kB"
|
|
34006
32809
|
}
|
|
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) => {
|
|
32810
|
+
];
|
|
32811
|
+
var require$$0 = {
|
|
32812
|
+
name,
|
|
32813
|
+
version,
|
|
32814
|
+
description,
|
|
32815
|
+
main,
|
|
32816
|
+
scripts,
|
|
32817
|
+
repository,
|
|
32818
|
+
keywords,
|
|
32819
|
+
author,
|
|
32820
|
+
license,
|
|
32821
|
+
bugs,
|
|
32822
|
+
homepage,
|
|
32823
|
+
devDependencies,
|
|
32824
|
+
browser,
|
|
32825
|
+
jsdelivr,
|
|
32826
|
+
unpkg,
|
|
32827
|
+
typings,
|
|
32828
|
+
dependencies,
|
|
32829
|
+
bundlesize
|
|
32830
|
+
};
|
|
32831
|
+
var pkg = require$$0;
|
|
32832
|
+
var validators$1 = {};
|
|
32833
|
+
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
|
|
34042
32834
|
validators$1[type2] = function validator4(thing) {
|
|
34043
32835
|
return typeof thing === type2 || "a" + (i < 1 ? "n " : " ") + type2;
|
|
34044
32836
|
};
|
|
34045
32837
|
});
|
|
34046
|
-
|
|
32838
|
+
var deprecatedWarnings = {};
|
|
32839
|
+
var currentVerArr = pkg.version.split(".");
|
|
32840
|
+
function isOlderVersion(version2, thanVersion) {
|
|
32841
|
+
var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
|
|
32842
|
+
var destVer = version2.split(".");
|
|
32843
|
+
for (var i = 0; i < 3; i++) {
|
|
32844
|
+
if (pkgVersionArr[i] > destVer[i]) {
|
|
32845
|
+
return true;
|
|
32846
|
+
} else if (pkgVersionArr[i] < destVer[i]) {
|
|
32847
|
+
return false;
|
|
32848
|
+
}
|
|
32849
|
+
}
|
|
32850
|
+
return false;
|
|
32851
|
+
}
|
|
34047
32852
|
validators$1.transitional = function transitional(validator4, version2, message) {
|
|
32853
|
+
var isDeprecated = version2 && isOlderVersion(version2);
|
|
34048
32854
|
function formatMessage(opt, desc) {
|
|
34049
|
-
return "[Axios v" +
|
|
32855
|
+
return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
|
|
34050
32856
|
}
|
|
34051
|
-
return (value17, opt, opts)
|
|
32857
|
+
return function(value17, opt, opts) {
|
|
34052
32858
|
if (validator4 === false) {
|
|
34053
|
-
throw new
|
|
34054
|
-
formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")),
|
|
34055
|
-
AxiosError$1.ERR_DEPRECATED
|
|
34056
|
-
);
|
|
32859
|
+
throw new Error(formatMessage(opt, " has been removed in " + version2));
|
|
34057
32860
|
}
|
|
34058
|
-
if (
|
|
32861
|
+
if (isDeprecated && !deprecatedWarnings[opt]) {
|
|
34059
32862
|
deprecatedWarnings[opt] = true;
|
|
34060
32863
|
console.warn(
|
|
34061
32864
|
formatMessage(
|
|
@@ -34067,419 +32870,216 @@ validators$1.transitional = function transitional(validator4, version2, message)
|
|
|
34067
32870
|
return validator4 ? validator4(value17, opt, opts) : true;
|
|
34068
32871
|
};
|
|
34069
32872
|
};
|
|
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
32873
|
function assertOptions(options, schema, allowUnknown) {
|
|
34077
32874
|
if (typeof options !== "object") {
|
|
34078
|
-
throw new
|
|
32875
|
+
throw new TypeError("options must be an object");
|
|
34079
32876
|
}
|
|
34080
|
-
|
|
34081
|
-
|
|
32877
|
+
var keys2 = Object.keys(options);
|
|
32878
|
+
var i = keys2.length;
|
|
34082
32879
|
while (i-- > 0) {
|
|
34083
|
-
|
|
34084
|
-
|
|
32880
|
+
var opt = keys2[i];
|
|
32881
|
+
var validator4 = schema[opt];
|
|
34085
32882
|
if (validator4) {
|
|
34086
|
-
|
|
34087
|
-
|
|
32883
|
+
var value17 = options[opt];
|
|
32884
|
+
var result = value17 === void 0 || validator4(value17, opt, options);
|
|
34088
32885
|
if (result !== true) {
|
|
34089
|
-
throw new
|
|
34090
|
-
"option " + opt + " must be " + result,
|
|
34091
|
-
AxiosError$1.ERR_BAD_OPTION_VALUE
|
|
34092
|
-
);
|
|
32886
|
+
throw new TypeError("option " + opt + " must be " + result);
|
|
34093
32887
|
}
|
|
34094
32888
|
continue;
|
|
34095
32889
|
}
|
|
34096
32890
|
if (allowUnknown !== true) {
|
|
34097
|
-
throw
|
|
32891
|
+
throw Error("Unknown option " + opt);
|
|
34098
32892
|
}
|
|
34099
32893
|
}
|
|
34100
32894
|
}
|
|
34101
|
-
var
|
|
32895
|
+
var validator$1 = {
|
|
32896
|
+
isOlderVersion,
|
|
34102
32897
|
assertOptions,
|
|
34103
32898
|
validators: validators$1
|
|
34104
32899
|
};
|
|
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
|
-
}
|
|
32900
|
+
var utils$1 = utils$d;
|
|
32901
|
+
var buildURL2 = buildURL$2;
|
|
32902
|
+
var InterceptorManager = InterceptorManager_1;
|
|
32903
|
+
var dispatchRequest2 = dispatchRequest$1;
|
|
32904
|
+
var mergeConfig$1 = mergeConfig$2;
|
|
32905
|
+
var validator3 = validator$1;
|
|
32906
|
+
var validators = validator3.validators;
|
|
32907
|
+
function Axios$1(instanceConfig) {
|
|
32908
|
+
this.defaults = instanceConfig;
|
|
32909
|
+
this.interceptors = {
|
|
32910
|
+
request: new InterceptorManager(),
|
|
32911
|
+
response: new InterceptorManager()
|
|
32912
|
+
};
|
|
32913
|
+
}
|
|
32914
|
+
Axios$1.prototype.request = function request(config2) {
|
|
32915
|
+
if (typeof config2 === "string") {
|
|
32916
|
+
config2 = arguments[1] || {};
|
|
32917
|
+
config2.url = arguments[0];
|
|
32918
|
+
} else {
|
|
32919
|
+
config2 = config2 || {};
|
|
34133
32920
|
}
|
|
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;
|
|
32921
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
32922
|
+
if (config2.method) {
|
|
32923
|
+
config2.method = config2.method.toLowerCase();
|
|
32924
|
+
} else if (this.defaults.method) {
|
|
32925
|
+
config2.method = this.defaults.method.toLowerCase();
|
|
32926
|
+
} else {
|
|
32927
|
+
config2.method = "get";
|
|
32928
|
+
}
|
|
32929
|
+
var transitional2 = config2.transitional;
|
|
32930
|
+
if (transitional2 !== void 0) {
|
|
32931
|
+
validator3.assertOptions(transitional2, {
|
|
32932
|
+
silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32933
|
+
forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
|
|
32934
|
+
clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
|
|
32935
|
+
}, false);
|
|
32936
|
+
}
|
|
32937
|
+
var requestInterceptorChain = [];
|
|
32938
|
+
var synchronousRequestInterceptors = true;
|
|
32939
|
+
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
|
32940
|
+
if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config2) === false) {
|
|
32941
|
+
return;
|
|
34177
32942
|
}
|
|
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
|
-
}
|
|
32943
|
+
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
|
32944
|
+
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
|
32945
|
+
});
|
|
32946
|
+
var responseInterceptorChain = [];
|
|
32947
|
+
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
|
32948
|
+
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
|
32949
|
+
});
|
|
32950
|
+
var promise;
|
|
32951
|
+
if (!synchronousRequestInterceptors) {
|
|
32952
|
+
var chain = [dispatchRequest2, void 0];
|
|
32953
|
+
Array.prototype.unshift.apply(chain, requestInterceptorChain);
|
|
32954
|
+
chain = chain.concat(responseInterceptorChain);
|
|
32955
|
+
promise = Promise.resolve(config2);
|
|
32956
|
+
while (chain.length) {
|
|
32957
|
+
promise = promise.then(chain.shift(), chain.shift());
|
|
34236
32958
|
}
|
|
32959
|
+
return promise;
|
|
32960
|
+
}
|
|
32961
|
+
var newConfig = config2;
|
|
32962
|
+
while (requestInterceptorChain.length) {
|
|
32963
|
+
var onFulfilled = requestInterceptorChain.shift();
|
|
32964
|
+
var onRejected = requestInterceptorChain.shift();
|
|
34237
32965
|
try {
|
|
34238
|
-
|
|
32966
|
+
newConfig = onFulfilled(newConfig);
|
|
34239
32967
|
} catch (error) {
|
|
34240
|
-
|
|
34241
|
-
|
|
34242
|
-
i = 0;
|
|
34243
|
-
len = responseInterceptorChain.length;
|
|
34244
|
-
while (i < len) {
|
|
34245
|
-
promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
|
|
32968
|
+
onRejected(error);
|
|
32969
|
+
break;
|
|
34246
32970
|
}
|
|
34247
|
-
return promise;
|
|
34248
32971
|
}
|
|
34249
|
-
|
|
34250
|
-
|
|
34251
|
-
|
|
34252
|
-
return
|
|
32972
|
+
try {
|
|
32973
|
+
promise = dispatchRequest2(newConfig);
|
|
32974
|
+
} catch (error) {
|
|
32975
|
+
return Promise.reject(error);
|
|
34253
32976
|
}
|
|
34254
|
-
|
|
34255
|
-
|
|
34256
|
-
|
|
34257
|
-
|
|
34258
|
-
|
|
34259
|
-
|
|
34260
|
-
|
|
34261
|
-
|
|
34262
|
-
|
|
34263
|
-
|
|
32977
|
+
while (responseInterceptorChain.length) {
|
|
32978
|
+
promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
|
|
32979
|
+
}
|
|
32980
|
+
return promise;
|
|
32981
|
+
};
|
|
32982
|
+
Axios$1.prototype.getUri = function getUri(config2) {
|
|
32983
|
+
config2 = mergeConfig$1(this.defaults, config2);
|
|
32984
|
+
return buildURL2(config2.url, config2.params, config2.paramsSerializer).replace(/^\?/, "");
|
|
32985
|
+
};
|
|
32986
|
+
utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
|
|
32987
|
+
Axios$1.prototype[method] = function(url, config2) {
|
|
32988
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
32989
|
+
method,
|
|
32990
|
+
url,
|
|
32991
|
+
data: (config2 || {}).data
|
|
32992
|
+
}));
|
|
34264
32993
|
};
|
|
34265
32994
|
});
|
|
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);
|
|
32995
|
+
utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
|
|
32996
|
+
Axios$1.prototype[method] = function(url, data49, config2) {
|
|
32997
|
+
return this.request(mergeConfig$1(config2 || {}, {
|
|
32998
|
+
method,
|
|
32999
|
+
url,
|
|
33000
|
+
data: data49
|
|
33001
|
+
}));
|
|
33002
|
+
};
|
|
34283
33003
|
});
|
|
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) {
|
|
33004
|
+
var Axios_1 = Axios$1;
|
|
33005
|
+
function Cancel$1(message) {
|
|
33006
|
+
this.message = message;
|
|
33007
|
+
}
|
|
33008
|
+
Cancel$1.prototype.toString = function toString2() {
|
|
33009
|
+
return "Cancel" + (this.message ? ": " + this.message : "");
|
|
33010
|
+
};
|
|
33011
|
+
Cancel$1.prototype.__CANCEL__ = true;
|
|
33012
|
+
var Cancel_1 = Cancel$1;
|
|
33013
|
+
var Cancel = Cancel_1;
|
|
33014
|
+
function CancelToken(executor) {
|
|
33015
|
+
if (typeof executor !== "function") {
|
|
33016
|
+
throw new TypeError("executor must be a function.");
|
|
33017
|
+
}
|
|
33018
|
+
var resolvePromise;
|
|
33019
|
+
this.promise = new Promise(function promiseExecutor(resolve) {
|
|
33020
|
+
resolvePromise = resolve;
|
|
33021
|
+
});
|
|
33022
|
+
var token = this;
|
|
33023
|
+
executor(function cancel2(message) {
|
|
33024
|
+
if (token.reason) {
|
|
34341
33025
|
return;
|
|
34342
33026
|
}
|
|
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
|
-
}
|
|
33027
|
+
token.reason = new Cancel(message);
|
|
33028
|
+
resolvePromise(token.reason);
|
|
33029
|
+
});
|
|
34367
33030
|
}
|
|
34368
|
-
|
|
34369
|
-
|
|
33031
|
+
CancelToken.prototype.throwIfRequested = function throwIfRequested() {
|
|
33032
|
+
if (this.reason) {
|
|
33033
|
+
throw this.reason;
|
|
33034
|
+
}
|
|
33035
|
+
};
|
|
33036
|
+
CancelToken.source = function source() {
|
|
33037
|
+
var cancel2;
|
|
33038
|
+
var token = new CancelToken(function executor(c) {
|
|
33039
|
+
cancel2 = c;
|
|
33040
|
+
});
|
|
33041
|
+
return {
|
|
33042
|
+
token,
|
|
33043
|
+
cancel: cancel2
|
|
33044
|
+
};
|
|
33045
|
+
};
|
|
33046
|
+
var CancelToken_1 = CancelToken;
|
|
33047
|
+
var spread = function spread2(callback2) {
|
|
34370
33048
|
return function wrap(arr) {
|
|
34371
33049
|
return callback2.apply(null, arr);
|
|
34372
33050
|
};
|
|
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;
|
|
33051
|
+
};
|
|
33052
|
+
var isAxiosError = function isAxiosError2(payload) {
|
|
33053
|
+
return typeof payload === "object" && payload.isAxiosError === true;
|
|
33054
|
+
};
|
|
33055
|
+
var utils = utils$d;
|
|
33056
|
+
var bind2 = bind$2;
|
|
33057
|
+
var Axios = Axios_1;
|
|
33058
|
+
var mergeConfig2 = mergeConfig$2;
|
|
33059
|
+
var defaults = defaults_1;
|
|
34452
33060
|
function createInstance(defaultConfig2) {
|
|
34453
|
-
|
|
34454
|
-
|
|
34455
|
-
utils
|
|
34456
|
-
utils
|
|
34457
|
-
instance2.create = function create(instanceConfig) {
|
|
34458
|
-
return createInstance(mergeConfig(defaultConfig2, instanceConfig));
|
|
34459
|
-
};
|
|
33061
|
+
var context2 = new Axios(defaultConfig2);
|
|
33062
|
+
var instance2 = bind2(Axios.prototype.request, context2);
|
|
33063
|
+
utils.extend(instance2, Axios.prototype, context2);
|
|
33064
|
+
utils.extend(instance2, context2);
|
|
34460
33065
|
return instance2;
|
|
34461
33066
|
}
|
|
34462
|
-
|
|
34463
|
-
axios.Axios = Axios
|
|
34464
|
-
axios.
|
|
34465
|
-
axios.
|
|
34466
|
-
|
|
34467
|
-
axios.
|
|
34468
|
-
axios.
|
|
34469
|
-
axios.
|
|
34470
|
-
axios.
|
|
34471
|
-
axios.all = function all(promises) {
|
|
33067
|
+
var axios$1 = createInstance(defaults);
|
|
33068
|
+
axios$1.Axios = Axios;
|
|
33069
|
+
axios$1.create = function create(instanceConfig) {
|
|
33070
|
+
return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
|
|
33071
|
+
};
|
|
33072
|
+
axios$1.Cancel = Cancel_1;
|
|
33073
|
+
axios$1.CancelToken = CancelToken_1;
|
|
33074
|
+
axios$1.isCancel = isCancel$1;
|
|
33075
|
+
axios$1.all = function all(promises) {
|
|
34472
33076
|
return Promise.all(promises);
|
|
34473
33077
|
};
|
|
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;
|
|
33078
|
+
axios$1.spread = spread;
|
|
33079
|
+
axios$1.isAxiosError = isAxiosError;
|
|
33080
|
+
axios$2.exports = axios$1;
|
|
33081
|
+
axios$2.exports.default = axios$1;
|
|
33082
|
+
var axios = axios$2.exports;
|
|
34483
33083
|
const isHb = location.pathname.includes("scyxweb");
|
|
34484
33084
|
const userAgent = navigator.userAgent.toLowerCase();
|
|
34485
33085
|
const isQywx = /wxwork/.test(userAgent) ? true : false;
|
|
@@ -34619,7 +33219,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34619
33219
|
}
|
|
34620
33220
|
}
|
|
34621
33221
|
console.log("typeof window.Code", typeof window.Code);
|
|
34622
|
-
async function _renderRoutes() {
|
|
33222
|
+
async function _renderRoutes(targetRouteFromPlugin) {
|
|
34623
33223
|
var _a, _b, _c;
|
|
34624
33224
|
if (!store2.state.user.userName) {
|
|
34625
33225
|
Spin.show();
|
|
@@ -34632,6 +33232,10 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34632
33232
|
routerOptionsBak
|
|
34633
33233
|
});
|
|
34634
33234
|
console.log("router1");
|
|
33235
|
+
if (targetRouteFromPlugin) {
|
|
33236
|
+
next2({ ...targetRouteFromPlugin, replace: true });
|
|
33237
|
+
return;
|
|
33238
|
+
}
|
|
34635
33239
|
const wxState = getQueryVariable("state");
|
|
34636
33240
|
let state = {};
|
|
34637
33241
|
if (!!wxState && wxState != "null") {
|
|
@@ -34666,9 +33270,12 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34666
33270
|
}
|
|
34667
33271
|
async function tryPluginLogin(to2) {
|
|
34668
33272
|
try {
|
|
34669
|
-
|
|
34670
|
-
|
|
34671
|
-
|
|
33273
|
+
const result = await pluginLogin(store2, router, to2);
|
|
33274
|
+
if (result && result.token) {
|
|
33275
|
+
store2.dispatch("loginSuccess", result.token);
|
|
33276
|
+
return result;
|
|
33277
|
+
}
|
|
33278
|
+
return false;
|
|
34672
33279
|
} catch (e) {
|
|
34673
33280
|
console.log("tryPluginLogin error", e);
|
|
34674
33281
|
return false;
|
|
@@ -34677,13 +33284,17 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34677
33284
|
const code2 = getQueryVariable("code");
|
|
34678
33285
|
if (typeof window.Code != "undefined" || code2 || isHb) {
|
|
34679
33286
|
if (!token) {
|
|
34680
|
-
|
|
34681
|
-
|
|
33287
|
+
const pluginLoginResult = await tryPluginLogin(to);
|
|
33288
|
+
if (pluginLoginResult) {
|
|
33289
|
+
await _renderRoutes(pluginLoginResult.targetRoute);
|
|
33290
|
+
} else {
|
|
33291
|
+
console.log("\u5355\u70B9\u767B\u5F55\u5F02\u5E38\u4E86\uFF1F\uFF01\uFF01");
|
|
34682
33292
|
}
|
|
34683
33293
|
} else {
|
|
34684
33294
|
if (!await checkLogin()) {
|
|
34685
|
-
|
|
34686
|
-
|
|
33295
|
+
const pluginLoginResult = await tryPluginLogin(to);
|
|
33296
|
+
if (pluginLoginResult) {
|
|
33297
|
+
await _renderRoutes(pluginLoginResult.targetRoute);
|
|
34687
33298
|
}
|
|
34688
33299
|
} else {
|
|
34689
33300
|
await _renderRoutes();
|
|
@@ -34699,8 +33310,9 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
|
|
|
34699
33310
|
} else {
|
|
34700
33311
|
console.log("router8");
|
|
34701
33312
|
if (!await checkLogin()) {
|
|
34702
|
-
|
|
34703
|
-
|
|
33313
|
+
const pluginLoginResult = await tryPluginLogin(to);
|
|
33314
|
+
if (pluginLoginResult) {
|
|
33315
|
+
await _renderRoutes(pluginLoginResult.targetRoute);
|
|
34704
33316
|
} else {
|
|
34705
33317
|
console.log("router9");
|
|
34706
33318
|
}
|
|
@@ -34723,7 +33335,7 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34723
33335
|
console.log("\u91CD\u590D\u4F7F\u7528\u4E86code\u521B\u5EFA\u4F1A\u8BDD\uFF01");
|
|
34724
33336
|
return singleLoginPromise;
|
|
34725
33337
|
}
|
|
34726
|
-
singleLoginPromise =
|
|
33338
|
+
singleLoginPromise = new Promise((resolve, reject) => {
|
|
34727
33339
|
sessionStorage.removeItem("lambo-token");
|
|
34728
33340
|
sessionStorage.removeItem("sso_token");
|
|
34729
33341
|
sessionStorage.removeItem("userInfo");
|
|
@@ -34736,19 +33348,14 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34736
33348
|
store2.commit("setToken", "");
|
|
34737
33349
|
if (isHb) {
|
|
34738
33350
|
let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
|
|
34739
|
-
axios$
|
|
33351
|
+
axios$3.get(url).then(async (resp) => {
|
|
34740
33352
|
setToken(resp.token);
|
|
34741
33353
|
localStorage.setItem("v8-token", resp.token);
|
|
34742
33354
|
sessionStorage.setItem("lambo-token", resp.token);
|
|
34743
33355
|
setTimeout(() => {
|
|
34744
33356
|
if (targetRoute && targetRoute.path && targetRoute.path !== "/") {
|
|
34745
33357
|
console.log("===targetRoute===", targetRoute.path, targetRoute.query);
|
|
34746
|
-
|
|
34747
|
-
path: targetRoute.path,
|
|
34748
|
-
query: targetRoute.query,
|
|
34749
|
-
replace: true
|
|
34750
|
-
});
|
|
34751
|
-
reject(0);
|
|
33358
|
+
resolve({ token: resp.token });
|
|
34752
33359
|
return;
|
|
34753
33360
|
}
|
|
34754
33361
|
console.log("before getUserDefaultUrl");
|
|
@@ -34756,17 +33363,10 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34756
33363
|
var _a;
|
|
34757
33364
|
console.log("getUserDefaultUrl data", resp1);
|
|
34758
33365
|
if ((_a = resp1.data) == null ? void 0 : _a.includes("home")) {
|
|
34759
|
-
|
|
34760
|
-
name: config.homeRouteName,
|
|
34761
|
-
replace: true
|
|
34762
|
-
});
|
|
33366
|
+
resolve({ token: resp.token, targetRoute: { name: config.homeRouteName } });
|
|
34763
33367
|
} else {
|
|
34764
|
-
|
|
34765
|
-
name: "workBench",
|
|
34766
|
-
replace: true
|
|
34767
|
-
});
|
|
33368
|
+
resolve({ token: resp.token, targetRoute: { name: "workBench" } });
|
|
34768
33369
|
}
|
|
34769
|
-
reject(0);
|
|
34770
33370
|
console.log("location.href", location.href);
|
|
34771
33371
|
return;
|
|
34772
33372
|
});
|
|
@@ -34778,9 +33378,9 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34778
33378
|
} else {
|
|
34779
33379
|
console.log("1111`111");
|
|
34780
33380
|
if (code2) {
|
|
34781
|
-
axios$
|
|
33381
|
+
axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
|
|
34782
33382
|
setToken(resp.token);
|
|
34783
|
-
resolve(resp.token);
|
|
33383
|
+
resolve({ token: resp.token });
|
|
34784
33384
|
}).catch((e) => {
|
|
34785
33385
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
34786
33386
|
Message.error({
|
|
@@ -34794,9 +33394,9 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34794
33394
|
Code.postMessage("");
|
|
34795
33395
|
window.getCode = function(res) {
|
|
34796
33396
|
console.log("getCode res", res);
|
|
34797
|
-
axios$
|
|
33397
|
+
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
34798
33398
|
setToken(resp.token);
|
|
34799
|
-
resolve(resp.token);
|
|
33399
|
+
resolve({ token: resp.token });
|
|
34800
33400
|
}).catch((e) => {
|
|
34801
33401
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
34802
33402
|
Message.error({
|
|
@@ -34810,6 +33410,9 @@ const pluginLogin = (store2, router, targetRoute) => {
|
|
|
34810
33410
|
}
|
|
34811
33411
|
}
|
|
34812
33412
|
});
|
|
33413
|
+
if (!!code2) {
|
|
33414
|
+
singleLoginPromiseMapping[code2] = singleLoginPromise;
|
|
33415
|
+
}
|
|
34813
33416
|
return singleLoginPromise;
|
|
34814
33417
|
};
|
|
34815
33418
|
window.getQueryVariable = function getQueryVariable2(variable) {
|
|
@@ -34843,7 +33446,7 @@ const checkLogin = async () => {
|
|
|
34843
33446
|
try {
|
|
34844
33447
|
let token = getToken();
|
|
34845
33448
|
console.log("checkLogin token", token);
|
|
34846
|
-
const resp = await
|
|
33449
|
+
const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
|
|
34847
33450
|
params: {},
|
|
34848
33451
|
headers: {
|
|
34849
33452
|
token
|
|
@@ -35238,11 +33841,11 @@ const install = function(Vue2, opts = { theme: "" }) {
|
|
|
35238
33841
|
doChangeTheme(theme);
|
|
35239
33842
|
if (location.pathname.includes("scyxweb")) {
|
|
35240
33843
|
let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
|
|
35241
|
-
axios$
|
|
33844
|
+
axios$3.get(url).then((data49) => {
|
|
35242
33845
|
Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
|
|
35243
33846
|
});
|
|
35244
33847
|
}
|
|
35245
|
-
Vue2.ready = axios$
|
|
33848
|
+
Vue2.ready = axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
|
|
35246
33849
|
var _a;
|
|
35247
33850
|
try {
|
|
35248
33851
|
const ret = JSON.parse(((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.settingInfo) || "{}");
|
|
@@ -35309,7 +33912,7 @@ if (typeof window !== "undefined" && window.Vue) {
|
|
|
35309
33912
|
install(window.Vue);
|
|
35310
33913
|
}
|
|
35311
33914
|
const API = {
|
|
35312
|
-
version: pkg.version,
|
|
33915
|
+
version: pkg$1.version,
|
|
35313
33916
|
install,
|
|
35314
33917
|
components,
|
|
35315
33918
|
plugins,
|