@indfnd/common-mobile 1.0.72 → 1.0.74

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.
@@ -1,14 +1,14 @@
1
1
  import _ from "lodash";
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";
2
+ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$1, 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$1 = "@indfnd/common-mobile";
6
- const version$2 = "1.0.71";
7
- const author$1 = "huxuetong";
5
+ const name = "@indfnd/common-mobile";
6
+ const version$1 = "1.0.73";
7
+ const author = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
10
10
  };
11
- const main$2 = "./dist/ind-common-mobile.umd.cjs";
11
+ const main$1 = "./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$1 = {
35
+ const scripts = {
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$1 = {
44
44
  "release-patch": "standard-version --release-as patch",
45
45
  "re-publish": "yarn publish --access public"
46
46
  };
47
- const dependencies$1 = {
47
+ const dependencies = {
48
48
  classnames: "^2.5.1",
49
49
  vuedraggable: "^2.24.3"
50
50
  };
51
- const devDependencies$1 = {
51
+ const devDependencies = {
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$1 = {
82
82
  const engines = {
83
83
  node: ">= 16"
84
84
  };
85
- var pkg$1 = {
86
- name: name$1,
87
- version: version$2,
88
- author: author$1,
85
+ var pkg = {
86
+ name,
87
+ version: version$1,
88
+ author,
89
89
  publishConfig,
90
- main: main$2,
90
+ main: main$1,
91
91
  module,
92
92
  style,
93
93
  types,
94
94
  exports,
95
95
  files,
96
- scripts: scripts$1,
97
- dependencies: dependencies$1,
98
- devDependencies: devDependencies$1,
96
+ scripts,
97
+ dependencies,
98
+ devDependencies,
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$3.post(this.dataUrl, params);
4170
+ resp = await axios$1.post(this.dataUrl, params);
4171
4171
  } else {
4172
- resp = await axios$3.get(this.dataUrl, { params });
4172
+ resp = await axios$1.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$3.post(this.dataUrl, params);
4286
+ resp = await axios$1.post(this.dataUrl, params);
4287
4287
  } else {
4288
- resp = await axios$3.get(this.dataUrl, { params });
4288
+ resp = await axios$1.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 source2 = arguments[i];
4723
- for (var key in source2) {
4724
- if (Object.prototype.hasOwnProperty.call(source2, key)) {
4725
- target2[key] = source2[key];
4722
+ var source = arguments[i];
4723
+ for (var key in source) {
4724
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
4725
+ target2[key] = source[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 = Object.prototype.hasOwnProperty;
4798
+ var hasOwnProperty$1 = 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.call(to, key) || !isObject$1(val)) {
4804
+ if (!hasOwnProperty$1.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$1(sfc)) {
4989
+ if (isFunction$2(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$1(message) ? message.apply(void 0, args) : message;
5009
+ return isFunction$2(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$1() {
5073
5073
  }
5074
5074
  function isDef(val) {
5075
5075
  return val !== void 0 && val !== null;
5076
5076
  }
5077
- function isFunction$1(val) {
5077
+ function isFunction$2(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$1(val.then) && isFunction$1(val.catch);
5084
+ return isObject$1(val) && isFunction$2(val.then) && isFunction$2(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$1
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 bind3() {
5461
+ function bind2() {
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: bind3,
5475
- activated: bind3,
5474
+ mounted: bind2,
5475
+ activated: bind2,
5476
5476
  deactivated: unbind,
5477
5477
  beforeDestroy: unbind
5478
5478
  };
5479
5479
  }
5480
5480
  var CloseOnPopstateMixin = {
5481
- mixins: [BindEventMixin(function(bind3, isBind) {
5481
+ mixins: [BindEventMixin(function(bind2, 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(bind3) {
5502
+ handlePopstate: function handlePopstate(bind2) {
5503
5503
  if (this.$isServer) {
5504
5504
  return;
5505
5505
  }
5506
- if (this.bindStatus !== bind3) {
5507
- this.bindStatus = bind3;
5508
- var action = bind3 ? on$1 : off$1;
5506
+ if (this.bindStatus !== bind2) {
5507
+ this.bindStatus = bind2;
5508
+ var action = bind2 ? 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 description2 = (slots2.description == null ? void 0 : slots2.description()) || props.description;
6002
- if (description2) {
6001
+ var description = (slots2.description == null ? void 0 : slots2.description()) || props.description;
6002
+ if (description) {
6003
6003
  return h("div", {
6004
6004
  "class": bem$1s("description")
6005
- }, [description2]);
6005
+ }, [description]);
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$1(message)) {
7343
+ if (isFunction$2(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$1,
8397
8397
  Escape: this.showCancelButton ? function() {
8398
8398
  return _this3.handleAction("cancel");
8399
- } : noop
8399
+ } : noop$1
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$1);
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(bind3, isBind) {
11092
+ mixins: [BindEventMixin(function(bind2, 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
- bind3(this.scroller, "scroll", this.onScroll, true);
11100
+ bind2(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(bind3) {
11276
+ mixins: [ParentMixin("vanTabs"), BindEventMixin(function(bind2) {
11277
11277
  if (!this.scroller) {
11278
11278
  this.scroller = getScroller(this.$el);
11279
11279
  }
11280
- bind3(window, "resize", this.resize, true);
11280
+ bind2(window, "resize", this.resize, true);
11281
11281
  if (this.scrollspy) {
11282
- bind3(this.scroller, "scroll", this.onScroll, true);
11282
+ bind2(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 description2 = disabled && coupon.reason || coupon.description;
12951
+ var description = 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
- })])]), description2 && h("p", {
12980
+ })])]), description && h("p", {
12981
12981
  "class": bem$Q("description")
12982
- }, [description2])]);
12982
+ }, [description])]);
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(bind3) {
13907
+ bindScroll: function bindScroll(bind2) {
13908
13908
  var scroller2 = this.parent.scroller;
13909
- var action = bind3 ? on$1 : off$1;
13909
+ var action = bind2 ? 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 description2 = this.slots("description") || this.description;
14369
- if (description2) {
14368
+ var description = this.slots("description") || this.description;
14369
+ if (description) {
14370
14370
  return h("p", {
14371
14371
  "class": bem$J("description")
14372
- }, [description2]);
14372
+ }, [description]);
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(bind3, isBind) {
14792
- bind3(window, "resize", this.resize, true);
14793
- bind3(window, "orientationchange", this.resize, true);
14794
- bind3(window, "visibilitychange", this.onVisibilityChange);
14791
+ mixins: [TouchMixin, ParentMixin("vanSwipe"), BindEventMixin(function(bind2, isBind) {
14792
+ bind2(window, "resize", this.resize, true);
14793
+ bind2(window, "orientationchange", this.resize, true);
14794
+ bind2(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(bind3) {
15418
- bind3(window, "resize", this.resize, true);
15419
- bind3(window, "orientationchange", this.resize, true);
15417
+ }), BindEventMixin(function(bind2) {
15418
+ bind2(window, "resize", this.resize, true);
15419
+ bind2(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(bind3) {
15784
+ mixins: [TouchMixin, ParentMixin("vanIndexBar"), BindEventMixin(function(bind2) {
15785
15785
  if (!this.scroller) {
15786
15786
  this.scroller = getScroller(this.$el);
15787
15787
  }
15788
- bind3(this.scroller, "scroll", this.onScroll);
15788
+ bind2(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(bind3) {
15963
+ mixins: [BindEventMixin(function(bind2) {
15964
15964
  if (!this.scroller) {
15965
15965
  this.scroller = getScroller(this.$el);
15966
15966
  }
15967
- bind3(this.scroller, "scroll", this.check);
15967
+ bind2(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(bind3) {
16219
- bind3(window, "pageshow", this.reset);
16218
+ mixins: [BindEventMixin(function(bind2) {
16219
+ bind2(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(bind3) {
16620
+ mixins: [PortalMixin(), BindEventMixin(function(bind2) {
16621
16621
  if (this.hideOnClickOutside) {
16622
- bind3(document.body, "touchstart", this.onBlur);
16622
+ bind2(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$1 = "main";
17351
+ var main = "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$1, afterMain, beforeWrite, write, afterWrite];
17356
+ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, 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(bind3) {
18208
- bind3(window, "resize", this.resize, true);
18209
- bind3(window, "orientationchange", this.resize, true);
18207
+ mixins: [BindEventMixin(function(bind2) {
18208
+ bind2(window, "resize", this.resize, true);
18209
+ bind2(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 description2 = this.slots("description") || this.description;
18880
- if (!title4 && !description2) {
18879
+ var description = this.slots("description") || this.description;
18880
+ if (!title4 && !description) {
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]), description2 && h("span", {
18887
+ }, [title4]), description && h("span", {
18888
18888
  "class": bem$k("description")
18889
- }, [description2])]);
18889
+ }, [description])]);
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(bind3) {
19402
+ mixins: [ParentMixin("vanSkuRows"), BindEventMixin(function(bind2) {
19403
19403
  if (this.scrollable && this.$refs.scroller) {
19404
- bind3(this.$refs.scroller, "scroll", this.onScroll);
19404
+ bind2(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(item2) {
20091
+ function toArray$1(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(files2).some(function(file) {
20115
+ return toArray$1(files2).some(function(file) {
20116
20116
  if (file) {
20117
- if (isFunction$1(maxSize)) {
20117
+ if (isFunction$2(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(validFiles)));
20327
+ this.$emit("input", [].concat(this.fileList, toArray$1(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$1);
20345
20345
  return;
20346
20346
  }
20347
20347
  }
@@ -22672,23 +22672,23 @@ function install$1(Vue2) {
22672
22672
  if (typeof window !== "undefined" && window.Vue) {
22673
22673
  install$1(window.Vue);
22674
22674
  }
22675
- const isHb$1 = location.pathname.includes("scyxweb");
22675
+ const isHb$2 = location.pathname.includes("scyxweb");
22676
22676
  function getIndexPreset(params) {
22677
- return axios$3.get(
22678
- `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
22677
+ return axios$1.get(
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$3.post(
22684
- `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
22683
+ return axios$1.post(
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$3.get(
22691
- `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
22690
+ return axios$1.get(
22691
+ `${location.protocol}//${location.host}${isHb$2 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
22692
22692
  );
22693
22693
  }
22694
22694
  var render$v = function() {
@@ -24078,8 +24078,16 @@ const __vue2_script$h = {
24078
24078
  },
24079
24079
  computed: {
24080
24080
  iconSize: function() {
24081
- var _a, _b, _c, _d;
24082
- return ((_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b.iconSize) ? `${(_d = (_c = this.$config) == null ? void 0 : _c.systemDefaultConfig) == null ? void 0 : _d.iconSize}px` : "2.5rem";
24081
+ var _a, _b;
24082
+ let value17 = localStorage.getItem("systemDefaultConfig");
24083
+ let systemDefaultConfig;
24084
+ try {
24085
+ systemDefaultConfig = JSON.parse(value17);
24086
+ } catch (e) {
24087
+ console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
24088
+ return "";
24089
+ }
24090
+ return ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.iconSize) ? `${(_b = value17 == null ? void 0 : value17.systemDefaultConfig) == null ? void 0 : _b.iconSize}px` : "2.5rem";
24083
24091
  }
24084
24092
  },
24085
24093
  methods: {
@@ -24157,10 +24165,10 @@ function _defineProperty(obj, key, value17) {
24157
24165
  function _extends() {
24158
24166
  _extends = Object.assign || function(target2) {
24159
24167
  for (var i = 1; i < arguments.length; i++) {
24160
- var source2 = arguments[i];
24161
- for (var key in source2) {
24162
- if (Object.prototype.hasOwnProperty.call(source2, key)) {
24163
- target2[key] = source2[key];
24168
+ var source = arguments[i];
24169
+ for (var key in source) {
24170
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
24171
+ target2[key] = source[key];
24164
24172
  }
24165
24173
  }
24166
24174
  }
@@ -24170,47 +24178,47 @@ function _extends() {
24170
24178
  }
24171
24179
  function _objectSpread(target2) {
24172
24180
  for (var i = 1; i < arguments.length; i++) {
24173
- var source2 = arguments[i] != null ? arguments[i] : {};
24174
- var ownKeys = Object.keys(source2);
24181
+ var source = arguments[i] != null ? arguments[i] : {};
24182
+ var ownKeys = Object.keys(source);
24175
24183
  if (typeof Object.getOwnPropertySymbols === "function") {
24176
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source2).filter(function(sym) {
24177
- return Object.getOwnPropertyDescriptor(source2, sym).enumerable;
24184
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
24185
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
24178
24186
  }));
24179
24187
  }
24180
24188
  ownKeys.forEach(function(key) {
24181
- _defineProperty(target2, key, source2[key]);
24189
+ _defineProperty(target2, key, source[key]);
24182
24190
  });
24183
24191
  }
24184
24192
  return target2;
24185
24193
  }
24186
- function _objectWithoutPropertiesLoose(source2, excluded) {
24187
- if (source2 == null)
24194
+ function _objectWithoutPropertiesLoose(source, excluded) {
24195
+ if (source == null)
24188
24196
  return {};
24189
24197
  var target2 = {};
24190
- var sourceKeys = Object.keys(source2);
24198
+ var sourceKeys = Object.keys(source);
24191
24199
  var key, i;
24192
24200
  for (i = 0; i < sourceKeys.length; i++) {
24193
24201
  key = sourceKeys[i];
24194
24202
  if (excluded.indexOf(key) >= 0)
24195
24203
  continue;
24196
- target2[key] = source2[key];
24204
+ target2[key] = source[key];
24197
24205
  }
24198
24206
  return target2;
24199
24207
  }
24200
- function _objectWithoutProperties(source2, excluded) {
24201
- if (source2 == null)
24208
+ function _objectWithoutProperties(source, excluded) {
24209
+ if (source == null)
24202
24210
  return {};
24203
- var target2 = _objectWithoutPropertiesLoose(source2, excluded);
24211
+ var target2 = _objectWithoutPropertiesLoose(source, excluded);
24204
24212
  var key, i;
24205
24213
  if (Object.getOwnPropertySymbols) {
24206
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
24214
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
24207
24215
  for (i = 0; i < sourceSymbolKeys.length; i++) {
24208
24216
  key = sourceSymbolKeys[i];
24209
24217
  if (excluded.indexOf(key) >= 0)
24210
24218
  continue;
24211
- if (!Object.prototype.propertyIsEnumerable.call(source2, key))
24219
+ if (!Object.prototype.propertyIsEnumerable.call(source, key))
24212
24220
  continue;
24213
- target2[key] = source2[key];
24221
+ target2[key] = source[key];
24214
24222
  }
24215
24223
  }
24216
24224
  return target2;
@@ -24232,7 +24240,7 @@ function _iterableToArray(iter) {
24232
24240
  function _nonIterableSpread() {
24233
24241
  throw new TypeError("Invalid attempt to spread non-iterable instance");
24234
24242
  }
24235
- var version$1 = "1.10.2";
24243
+ var version = "1.10.2";
24236
24244
  function userAgent$1(pattern) {
24237
24245
  if (typeof window !== "undefined" && window.navigator) {
24238
24246
  return !!/* @__PURE__ */ navigator.userAgent.match(pattern);
@@ -24333,12 +24341,12 @@ function matrix(el, selfOnly) {
24333
24341
  var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
24334
24342
  return matrixFn && new matrixFn(appliedTransforms);
24335
24343
  }
24336
- function find2(ctx, tagName, iterator) {
24344
+ function find2(ctx, tagName, iterator2) {
24337
24345
  if (ctx) {
24338
24346
  var list2 = ctx.getElementsByTagName(tagName), i = 0, n = list2.length;
24339
- if (iterator) {
24347
+ if (iterator2) {
24340
24348
  for (; i < n; i++) {
24341
- iterator(list2[i], i);
24349
+ iterator2(list2[i], i);
24342
24350
  }
24343
24351
  }
24344
24352
  return list2;
@@ -24512,7 +24520,7 @@ function isRectEqual(rect1, rect2) {
24512
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);
24513
24521
  }
24514
24522
  var _throttleTimeout;
24515
- function throttle(callback2, ms) {
24523
+ function throttle$1(callback2, ms) {
24516
24524
  return function() {
24517
24525
  if (!_throttleTimeout) {
24518
24526
  var args = arguments, _this = this;
@@ -24680,14 +24688,14 @@ function calculateRealTime(animatingRect, fromRect, toRect, options) {
24680
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;
24681
24689
  }
24682
24690
  var plugins$1 = [];
24683
- var defaults$4 = {
24691
+ var defaults$2 = {
24684
24692
  initializeByDefault: true
24685
24693
  };
24686
24694
  var PluginManager = {
24687
24695
  mount: function mount2(plugin) {
24688
- for (var option2 in defaults$4) {
24689
- if (defaults$4.hasOwnProperty(option2) && !(option2 in plugin)) {
24690
- plugin[option2] = defaults$4[option2];
24696
+ for (var option2 in defaults$2) {
24697
+ if (defaults$2.hasOwnProperty(option2) && !(option2 in plugin)) {
24698
+ plugin[option2] = defaults$2[option2];
24691
24699
  }
24692
24700
  }
24693
24701
  plugins$1.push(plugin);
@@ -25039,7 +25047,7 @@ Sortable.prototype = {
25039
25047
  _onTapStart: function _onTapStart(evt) {
25040
25048
  if (!evt.cancelable)
25041
25049
  return;
25042
- 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;
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, filter2 = options.filter;
25043
25051
  _saveInputCheckedState(el);
25044
25052
  if (dragEl) {
25045
25053
  return;
@@ -25059,8 +25067,8 @@ Sortable.prototype = {
25059
25067
  }
25060
25068
  oldIndex = index$2(target2);
25061
25069
  oldDraggableIndex = index$2(target2, options.draggable);
25062
- if (typeof filter === "function") {
25063
- if (filter.call(this, evt, target2, this)) {
25070
+ if (typeof filter2 === "function") {
25071
+ if (filter2.call(this, evt, target2, this)) {
25064
25072
  _dispatchEvent({
25065
25073
  sortable: _this,
25066
25074
  rootEl: originalTarget,
@@ -25075,8 +25083,8 @@ Sortable.prototype = {
25075
25083
  preventOnFilter && evt.cancelable && evt.preventDefault();
25076
25084
  return;
25077
25085
  }
25078
- } else if (filter) {
25079
- filter = filter.split(",").some(function(criteria) {
25086
+ } else if (filter2) {
25087
+ filter2 = filter2.split(",").some(function(criteria) {
25080
25088
  criteria = closest(originalTarget, criteria.trim(), el, false);
25081
25089
  if (criteria) {
25082
25090
  _dispatchEvent({
@@ -25093,7 +25101,7 @@ Sortable.prototype = {
25093
25101
  return true;
25094
25102
  }
25095
25103
  });
25096
- if (filter) {
25104
+ if (filter2) {
25097
25105
  preventOnFilter && evt.cancelable && evt.preventDefault();
25098
25106
  return;
25099
25107
  }
@@ -25760,7 +25768,7 @@ Sortable.prototype = {
25760
25768
  break;
25761
25769
  }
25762
25770
  },
25763
- toArray: function toArray2() {
25771
+ toArray: function toArray() {
25764
25772
  var order2 = [], el, children3 = this.el.children, i = 0, n = children3.length, options = this.options;
25765
25773
  for (; i < n; i++) {
25766
25774
  el = children3[i];
@@ -25978,7 +25986,7 @@ Sortable.utils = {
25978
25986
  return !!closest(el, selector, el, false);
25979
25987
  },
25980
25988
  extend: extend$1,
25981
- throttle,
25989
+ throttle: throttle$1,
25982
25990
  closest,
25983
25991
  toggleClass,
25984
25992
  clone,
@@ -26009,7 +26017,7 @@ Sortable.mount = function() {
26009
26017
  Sortable.create = function(el, options) {
26010
26018
  return new Sortable(el, options);
26011
26019
  };
26012
- Sortable.version = version$1;
26020
+ Sortable.version = version;
26013
26021
  var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
26014
26022
  function AutoScrollPlugin() {
26015
26023
  function AutoScroll() {
@@ -26108,7 +26116,7 @@ function clearAutoScrolls() {
26108
26116
  function clearPointerElemChangedInterval() {
26109
26117
  clearInterval(pointerElemChangedInterval);
26110
26118
  }
26111
- var autoScroll = throttle(function(evt, options, rootEl2, isFallback) {
26119
+ var autoScroll = throttle$1(function(evt, options, rootEl2, isFallback) {
26112
26120
  if (!options.scroll)
26113
26121
  return;
26114
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();
@@ -26796,10 +26804,10 @@ var sortable_esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
26796
26804
  Sortable,
26797
26805
  Swap: SwapPlugin
26798
26806
  }, Symbol.toStringTag, { value: "Module" }));
26799
- var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
26807
+ var require$$0 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
26800
26808
  (function(module2, exports2) {
26801
- (function webpackUniversalModuleDefinition(root2, factory) {
26802
- module2.exports = factory(require$$0$1);
26809
+ (function webpackUniversalModuleDefinition(root2, factory2) {
26810
+ module2.exports = factory2(require$$0);
26803
26811
  })(typeof self !== "undefined" ? self : commonjsGlobal, function(__WEBPACK_EXTERNAL_MODULE_a352__) {
26804
26812
  return function(modules) {
26805
26813
  var installedModules = {};
@@ -26869,7 +26877,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
26869
26877
  var Iterators = __webpack_require__("84f2");
26870
26878
  var $iterCreate = __webpack_require__("41a0");
26871
26879
  var setToStringTag = __webpack_require__("7f20");
26872
- var getPrototypeOf = __webpack_require__("38fd");
26880
+ var getPrototypeOf2 = __webpack_require__("38fd");
26873
26881
  var ITERATOR = __webpack_require__("2b4c")("iterator");
26874
26882
  var BUGGY = !([].keys && "next" in [].keys());
26875
26883
  var FF_ITERATOR = "@@iterator";
@@ -26907,7 +26915,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
26907
26915
  var $anyNative = NAME == "Array" ? proto2.entries || $native : $native;
26908
26916
  var methods, key, IteratorPrototype;
26909
26917
  if ($anyNative) {
26910
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
26918
+ IteratorPrototype = getPrototypeOf2($anyNative.call(new Base()));
26911
26919
  if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
26912
26920
  setToStringTag(IteratorPrototype, TAG, true);
26913
26921
  if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != "function")
@@ -27174,7 +27182,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27174
27182
  delete createDict[PROTOTYPE][enumBugKeys[i]];
27175
27183
  return createDict();
27176
27184
  };
27177
- module3.exports = Object.create || function create2(O, Properties) {
27185
+ module3.exports = Object.create || function create(O, Properties) {
27178
27186
  var result;
27179
27187
  if (O !== null) {
27180
27188
  Empty2[PROTOTYPE] = anObject(O);
@@ -27241,7 +27249,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27241
27249
  };
27242
27250
  },
27243
27251
  "41a0": function(module3, exports3, __webpack_require__) {
27244
- var create2 = __webpack_require__("2aeb");
27252
+ var create = __webpack_require__("2aeb");
27245
27253
  var descriptor = __webpack_require__("4630");
27246
27254
  var setToStringTag = __webpack_require__("7f20");
27247
27255
  var IteratorPrototype = {};
@@ -27249,7 +27257,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27249
27257
  return this;
27250
27258
  });
27251
27259
  module3.exports = function(Constructor, NAME, next2) {
27252
- Constructor.prototype = create2(IteratorPrototype, { next: descriptor(1, next2) });
27260
+ Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next2) });
27253
27261
  setToStringTag(Constructor, NAME + " Iterator");
27254
27262
  };
27255
27263
  },
@@ -27364,7 +27372,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27364
27372
  var redefine = __webpack_require__("2aba");
27365
27373
  var ctx = __webpack_require__("9b43");
27366
27374
  var PROTOTYPE = "prototype";
27367
- var $export = function(type2, name2, source2) {
27375
+ var $export = function(type2, name2, source) {
27368
27376
  var IS_FORCED = type2 & $export.F;
27369
27377
  var IS_GLOBAL = type2 & $export.G;
27370
27378
  var IS_STATIC = type2 & $export.S;
@@ -27375,10 +27383,10 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27375
27383
  var expProto = exports4[PROTOTYPE] || (exports4[PROTOTYPE] = {});
27376
27384
  var key, own, out, exp;
27377
27385
  if (IS_GLOBAL)
27378
- source2 = name2;
27379
- for (key in source2) {
27386
+ source = name2;
27387
+ for (key in source) {
27380
27388
  own = !IS_FORCED && target2 && target2[key] !== void 0;
27381
- out = (own ? target2 : source2)[key];
27389
+ out = (own ? target2 : source)[key];
27382
27390
  exp = IS_BIND && own ? ctx(out, global2) : IS_PROTO && typeof out == "function" ? ctx(Function.call, out) : out;
27383
27391
  if (target2)
27384
27392
  redefine(target2, key, out, type2 & $export.U);
@@ -27498,7 +27506,7 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27498
27506
  B[k] = k;
27499
27507
  });
27500
27508
  return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join("") != K;
27501
- }) ? function assign(target2, source2) {
27509
+ }) ? function assign(target2, source) {
27502
27510
  var T = toObject(target2);
27503
27511
  var aLen = arguments.length;
27504
27512
  var index2 = 1;
@@ -27749,8 +27757,8 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27749
27757
  var cof = __webpack_require__("2d95");
27750
27758
  var MATCH = __webpack_require__("2b4c")("match");
27751
27759
  module3.exports = function(it) {
27752
- var isRegExp;
27753
- return isObject2(it) && ((isRegExp = it[MATCH]) !== void 0 ? !!isRegExp : cof(it) == "RegExp");
27760
+ var isRegExp2;
27761
+ return isObject2(it) && ((isRegExp2 = it[MATCH]) !== void 0 ? !!isRegExp2 : cof(it) == "RegExp");
27754
27762
  };
27755
27763
  },
27756
27764
  "ac6a": function(module3, exports3, __webpack_require__) {
@@ -27990,10 +27998,10 @@ var require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(sortable_esm);
27990
27998
  };
27991
27999
  },
27992
28000
  "d2c8": function(module3, exports3, __webpack_require__) {
27993
- var isRegExp = __webpack_require__("aae3");
28001
+ var isRegExp2 = __webpack_require__("aae3");
27994
28002
  var defined = __webpack_require__("be13");
27995
28003
  module3.exports = function(that, searchString, NAME) {
27996
- if (isRegExp(searchString))
28004
+ if (isRegExp2(searchString))
27997
28005
  throw TypeError("String#" + NAME + " doesn't accept regex!");
27998
28006
  return String(defined(that));
27999
28007
  };
@@ -30144,8 +30152,16 @@ const __vue2_script$9 = {
30144
30152
  return count5 > 99 ? "99" : count5;
30145
30153
  },
30146
30154
  rowAppCount() {
30147
- var _a, _b;
30148
- return ((_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b.rowAppCount) || 5;
30155
+ var _a;
30156
+ let value17 = localStorage.getItem("systemDefaultConfig");
30157
+ let systemDefaultConfig;
30158
+ try {
30159
+ systemDefaultConfig = JSON.parse(value17);
30160
+ } catch (e) {
30161
+ console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
30162
+ return "";
30163
+ }
30164
+ return ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.rowAppCount) || 4;
30149
30165
  }
30150
30166
  },
30151
30167
  methods: {
@@ -30528,8 +30544,16 @@ const __vue2_script$8 = {
30528
30544
  return pages2;
30529
30545
  },
30530
30546
  rowAppCount() {
30531
- var _a, _b;
30532
- return ((_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b.rowAppCount) || 5;
30547
+ var _a;
30548
+ let value17 = localStorage.getItem("systemDefaultConfig");
30549
+ let systemDefaultConfig;
30550
+ try {
30551
+ systemDefaultConfig = JSON.parse(value17);
30552
+ } catch (e) {
30553
+ console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
30554
+ return "";
30555
+ }
30556
+ return ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.rowAppCount) || 4;
30533
30557
  }
30534
30558
  }
30535
30559
  };
@@ -31018,7 +31042,7 @@ const __vue2_script$3 = {
31018
31042
  for (let file of allFile) {
31019
31043
  formData.append("file", file);
31020
31044
  }
31021
- axios$3.post(self2.ossServerContext + self2.ossFilePutUrl, formData, { payload: true }).then((response) => {
31045
+ axios$1.post(self2.ossServerContext + self2.ossFilePutUrl, formData, { payload: true }).then((response) => {
31022
31046
  if (response.code === 1) {
31023
31047
  self2.loading = false;
31024
31048
  const result = response.data;
@@ -31129,7 +31153,7 @@ const __vue2_script$3 = {
31129
31153
  }
31130
31154
  if (location.pathname.includes("scyxweb")) {
31131
31155
  let watermarkTxt = "";
31132
- await axios$3.get(`/user-manage-server/manage/user/getCurrentInfo`).then((res) => {
31156
+ await axios$1.get(`/user-manage-server/manage/user/getCurrentInfo`).then((res) => {
31133
31157
  if (res.code === 1) {
31134
31158
  const isPicture = file.fileName.endsWith(".jpg") || file.fileName.endsWith(".jpeg") || file.fileName.endsWith(".png") || file.fileName.endsWith(".gif");
31135
31159
  let url = "";
@@ -31162,7 +31186,7 @@ const __vue2_script$3 = {
31162
31186
  var _a;
31163
31187
  const isWeb = location.protocol === "https:" ? "1" : "";
31164
31188
  const token = getToken() || sessionStorage.getItem("sso_token");
31165
- return axios$3.get(
31189
+ return axios$1.get(
31166
31190
  `${location.protocol}//${location.host}${"/ind-uc-ext-server"}/api/wps/getPreviewUrl/${fileId}?isWeb=${isWeb}&previewMode=high_definition`,
31167
31191
  {
31168
31192
  headers: {
@@ -31627,9 +31651,11 @@ var directives = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
31627
31651
  __proto__: null,
31628
31652
  permission
31629
31653
  }, Symbol.toStringTag, { value: "Module" }));
31654
+ let isHb$1 = location.pathname.includes("scyxweb");
31630
31655
  const rootRoute = {
31631
31656
  name: config.rootRouteName,
31632
31657
  path: "/",
31658
+ redirect: isHb$1 ? "/home" : void 0,
31633
31659
  component: EmptyLayout,
31634
31660
  meta: {
31635
31661
  hideInMenu: true,
@@ -31639,6 +31665,7 @@ const rootRoute = {
31639
31665
  {
31640
31666
  name: config.homeRouteName,
31641
31667
  path: "home",
31668
+ redirect: isHb$1 ? void 0 : `/apps?t=${new Date().getTime()}`,
31642
31669
  meta: {
31643
31670
  hideInMenu: true,
31644
31671
  title: "\u9996\u9875",
@@ -31926,139 +31953,384 @@ function generator(menuData = []) {
31926
31953
  }
31927
31954
  return menuData;
31928
31955
  }
31929
- var axios$2 = { exports: {} };
31930
- var bind$2 = function bind(fn2, thisArg) {
31956
+ function bind(fn2, thisArg) {
31931
31957
  return function wrap() {
31932
- var args = new Array(arguments.length);
31933
- for (var i = 0; i < args.length; i++) {
31934
- args[i] = arguments[i];
31935
- }
31936
- return fn2.apply(thisArg, args);
31958
+ return fn2.apply(thisArg, arguments);
31937
31959
  };
31938
- };
31939
- var bind$1 = bind$2;
31940
- var toString = Object.prototype.toString;
31941
- function isArray(val) {
31942
- return toString.call(val) === "[object Array]";
31943
- }
31944
- function isUndefined(val) {
31945
- return typeof val === "undefined";
31946
31960
  }
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");
31947
31975
  function isBuffer(val) {
31948
- return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && typeof val.constructor.isBuffer === "function" && val.constructor.isBuffer(val);
31949
- }
31950
- function isArrayBuffer(val) {
31951
- return toString.call(val) === "[object ArrayBuffer]";
31952
- }
31953
- function isFormData(val) {
31954
- return typeof FormData !== "undefined" && val instanceof FormData;
31976
+ return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction$1(val.constructor.isBuffer) && val.constructor.isBuffer(val);
31955
31977
  }
31978
+ const isArrayBuffer = kindOfTest("ArrayBuffer");
31956
31979
  function isArrayBufferView(val) {
31957
- var result;
31980
+ let result;
31958
31981
  if (typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView) {
31959
31982
  result = ArrayBuffer.isView(val);
31960
31983
  } else {
31961
- result = val && val.buffer && val.buffer instanceof ArrayBuffer;
31984
+ result = val && val.buffer && isArrayBuffer(val.buffer);
31962
31985
  }
31963
31986
  return result;
31964
31987
  }
31965
- function isString(val) {
31966
- return typeof val === "string";
31967
- }
31968
- function isNumber(val) {
31969
- return typeof val === "number";
31970
- }
31971
- function isObject(val) {
31972
- return val !== null && typeof val === "object";
31973
- }
31974
- function isPlainObject(val) {
31975
- if (toString.call(val) !== "[object Object]") {
31988
+ const isString = typeOfTest("string");
31989
+ const isFunction$1 = typeOfTest("function");
31990
+ const isNumber = typeOfTest("number");
31991
+ const isObject = (thing) => thing !== null && typeof thing === "object";
31992
+ const isBoolean = (thing) => thing === true || thing === false;
31993
+ const isPlainObject = (val) => {
31994
+ if (kindOf(val) !== "object") {
31976
31995
  return false;
31977
31996
  }
31978
- var prototype = Object.getPrototypeOf(val);
31979
- return prototype === null || prototype === Object.prototype;
31980
- }
31981
- function isDate(val) {
31982
- return toString.call(val) === "[object Date]";
31983
- }
31984
- function isFile(val) {
31985
- return toString.call(val) === "[object File]";
31986
- }
31987
- function isBlob(val) {
31988
- return toString.call(val) === "[object Blob]";
31989
- }
31990
- function isFunction(val) {
31991
- return toString.call(val) === "[object Function]";
31992
- }
31993
- function isStream(val) {
31994
- return isObject(val) && isFunction(val.pipe);
31995
- }
31996
- function isURLSearchParams(val) {
31997
- return typeof URLSearchParams !== "undefined" && val instanceof URLSearchParams;
31998
- }
31999
- function trim(str) {
32000
- return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, "");
32001
- }
32002
- function isStandardBrowserEnv() {
32003
- if (typeof navigator !== "undefined" && (navigator.product === "ReactNative" || navigator.product === "NativeScript" || navigator.product === "NS")) {
31997
+ const prototype2 = getPrototypeOf(val);
31998
+ return (prototype2 === null || prototype2 === Object.prototype || Object.getPrototypeOf(prototype2) === null) && !(toStringTag in val) && !(iterator in val);
31999
+ };
32000
+ const isEmptyObject = (val) => {
32001
+ if (!isObject(val) || isBuffer(val)) {
32004
32002
  return false;
32005
32003
  }
32006
- return typeof window !== "undefined" && typeof document !== "undefined";
32007
- }
32008
- function forEach(obj, fn2) {
32004
+ try {
32005
+ return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
32006
+ } catch (e) {
32007
+ return false;
32008
+ }
32009
+ };
32010
+ const isDate = kindOfTest("Date");
32011
+ const isFile = kindOfTest("File");
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 } = {}) {
32009
32047
  if (obj === null || typeof obj === "undefined") {
32010
32048
  return;
32011
32049
  }
32050
+ let i;
32051
+ let l;
32012
32052
  if (typeof obj !== "object") {
32013
32053
  obj = [obj];
32014
32054
  }
32015
32055
  if (isArray(obj)) {
32016
- for (var i = 0, l = obj.length; i < l; i++) {
32056
+ for (i = 0, l = obj.length; i < l; i++) {
32017
32057
  fn2.call(null, obj[i], i, obj);
32018
32058
  }
32019
32059
  } else {
32020
- for (var key in obj) {
32021
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
32022
- fn2.call(null, obj[key], key, obj);
32023
- }
32060
+ if (isBuffer(obj)) {
32061
+ return;
32062
+ }
32063
+ const keys2 = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
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;
32024
32084
  }
32025
32085
  }
32086
+ return null;
32026
32087
  }
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;
32027
32094
  function merge() {
32028
- var result = {};
32029
- function assignValue(val, key) {
32030
- if (isPlainObject(result[key]) && isPlainObject(val)) {
32031
- result[key] = merge(result[key], val);
32095
+ const { caseless, skipUndefined } = isContextDefined(this) && this || {};
32096
+ const result = {};
32097
+ const assignValue = (val, key) => {
32098
+ if (key === "__proto__" || key === "constructor" || key === "prototype") {
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);
32032
32104
  } else if (isPlainObject(val)) {
32033
- result[key] = merge({}, val);
32105
+ result[targetKey] = merge({}, val);
32034
32106
  } else if (isArray(val)) {
32035
- result[key] = val.slice();
32036
- } else {
32037
- result[key] = val;
32107
+ result[targetKey] = val.slice();
32108
+ } else if (!skipUndefined || !isUndefined(val)) {
32109
+ result[targetKey] = val;
32038
32110
  }
32039
- }
32040
- for (var i = 0, l = arguments.length; i < l; i++) {
32041
- forEach(arguments[i], assignValue);
32111
+ };
32112
+ for (let i = 0, l = arguments.length; i < l; i++) {
32113
+ arguments[i] && forEach(arguments[i], assignValue);
32042
32114
  }
32043
32115
  return result;
32044
32116
  }
32045
- function extend(a, b, thisArg) {
32046
- forEach(b, function assignValue(val, key) {
32047
- if (thisArg && typeof val === "function") {
32048
- a[key] = bind$1(val, thisArg);
32049
- } else {
32050
- a[key] = val;
32051
- }
32052
- });
32117
+ const extend = (a, b, thisArg, { allOwnKeys } = {}) => {
32118
+ forEach(
32119
+ b,
32120
+ (val, key) => {
32121
+ if (thisArg && isFunction$1(val)) {
32122
+ Object.defineProperty(a, key, {
32123
+ value: bind(val, thisArg),
32124
+ writable: true,
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
+ );
32053
32139
  return a;
32054
- }
32055
- function stripBOM(content) {
32140
+ };
32141
+ const stripBOM = (content) => {
32056
32142
  if (content.charCodeAt(0) === 65279) {
32057
32143
  content = content.slice(1);
32058
32144
  }
32059
32145
  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]);
32060
32283
  }
32061
- var utils$d = {
32284
+ const toJSONObject = (obj) => {
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 = {
32062
32334
  isArray,
32063
32335
  isArrayBuffer,
32064
32336
  isBuffer,
@@ -32066,200 +32338,532 @@ var utils$d = {
32066
32338
  isArrayBufferView,
32067
32339
  isString,
32068
32340
  isNumber,
32341
+ isBoolean,
32069
32342
  isObject,
32070
32343
  isPlainObject,
32344
+ isEmptyObject,
32345
+ isReadableStream,
32346
+ isRequest,
32347
+ isResponse,
32348
+ isHeaders,
32071
32349
  isUndefined,
32072
32350
  isDate,
32073
32351
  isFile,
32352
+ isReactNativeBlob,
32353
+ isReactNative,
32074
32354
  isBlob,
32075
- isFunction,
32355
+ isRegExp,
32356
+ isFunction: isFunction$1,
32076
32357
  isStream,
32077
32358
  isURLSearchParams,
32078
- isStandardBrowserEnv,
32359
+ isTypedArray,
32360
+ isFileList,
32079
32361
  forEach,
32080
32362
  merge,
32081
32363
  extend,
32082
32364
  trim,
32083
- stripBOM
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("&");
32084
32599
  };
32085
- var utils$c = utils$d;
32086
32600
  function encode(val) {
32087
- return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
32601
+ return encodeURIComponent(val).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
32088
32602
  }
32089
- var buildURL$2 = function buildURL(url, params, paramsSerializer) {
32603
+ function buildURL(url, params, options) {
32090
32604
  if (!params) {
32091
32605
  return url;
32092
32606
  }
32093
- var serializedParams;
32094
- if (paramsSerializer) {
32095
- serializedParams = paramsSerializer(params);
32096
- } else if (utils$c.isURLSearchParams(params)) {
32097
- serializedParams = params.toString();
32607
+ const _encode = options && options.encode || encode;
32608
+ const _options = utils$1.isFunction(options) ? {
32609
+ serialize: options
32610
+ } : options;
32611
+ const serializeFn = _options && _options.serialize;
32612
+ let serializedParams;
32613
+ if (serializeFn) {
32614
+ serializedParams = serializeFn(params, _options);
32098
32615
  } else {
32099
- var parts = [];
32100
- utils$c.forEach(params, function serialize(val, key) {
32101
- if (val === null || typeof val === "undefined") {
32102
- return;
32103
- }
32104
- if (utils$c.isArray(val)) {
32105
- key = key + "[]";
32106
- } else {
32107
- val = [val];
32108
- }
32109
- utils$c.forEach(val, function parseValue(v) {
32110
- if (utils$c.isDate(v)) {
32111
- v = v.toISOString();
32112
- } else if (utils$c.isObject(v)) {
32113
- v = JSON.stringify(v);
32114
- }
32115
- parts.push(encode(key) + "=" + encode(v));
32116
- });
32117
- });
32118
- serializedParams = parts.join("&");
32616
+ serializedParams = utils$1.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, _options).toString(_encode);
32119
32617
  }
32120
32618
  if (serializedParams) {
32121
- var hashmarkIndex = url.indexOf("#");
32619
+ const hashmarkIndex = url.indexOf("#");
32122
32620
  if (hashmarkIndex !== -1) {
32123
32621
  url = url.slice(0, hashmarkIndex);
32124
32622
  }
32125
32623
  url += (url.indexOf("?") === -1 ? "?" : "&") + serializedParams;
32126
32624
  }
32127
32625
  return url;
32128
- };
32129
- var utils$b = utils$d;
32130
- function InterceptorManager$1() {
32131
- this.handlers = [];
32132
32626
  }
32133
- InterceptorManager$1.prototype.use = function use2(fulfilled, rejected, options) {
32134
- this.handlers.push({
32135
- fulfilled,
32136
- rejected,
32137
- synchronous: options ? options.synchronous : false,
32138
- runWhen: options ? options.runWhen : null
32139
- });
32140
- return this.handlers.length - 1;
32141
- };
32142
- InterceptorManager$1.prototype.eject = function eject(id) {
32143
- if (this.handlers[id]) {
32144
- this.handlers[id] = null;
32627
+ class InterceptorManager {
32628
+ constructor() {
32629
+ this.handlers = [];
32145
32630
  }
32146
- };
32147
- InterceptorManager$1.prototype.forEach = function forEach2(fn2) {
32148
- utils$b.forEach(this.handlers, function forEachHandler(h) {
32149
- if (h !== null) {
32150
- fn2(h);
32631
+ use(fulfilled, rejected, options) {
32632
+ this.handlers.push({
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;
32151
32643
  }
32152
- });
32153
- };
32154
- var InterceptorManager_1 = InterceptorManager$1;
32155
- var utils$a = utils$d;
32156
- var normalizeHeaderName$1 = function normalizeHeaderName(headers, normalizedName) {
32157
- utils$a.forEach(headers, function processHeader(value17, name2) {
32158
- if (name2 !== normalizedName && name2.toUpperCase() === normalizedName.toUpperCase()) {
32159
- headers[normalizedName] = value17;
32160
- delete headers[name2];
32644
+ }
32645
+ clear() {
32646
+ if (this.handlers) {
32647
+ this.handlers = [];
32161
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
32162
32706
  });
32163
- };
32164
- var enhanceError$2 = function enhanceError(error, config2, code2, request2, response) {
32165
- error.config = config2;
32166
- if (code2) {
32167
- error.code = code2;
32707
+ }
32708
+ function parsePropPath(name2) {
32709
+ return utils$1.matchAll(/\w+|\[(\w*)]/g, name2).map((match) => {
32710
+ return match[0] === "[]" ? "" : match[1] || match[0];
32711
+ });
32712
+ }
32713
+ function arrayToObject(arr) {
32714
+ const obj = {};
32715
+ const keys2 = Object.keys(arr);
32716
+ let i;
32717
+ const len = keys2.length;
32718
+ let key;
32719
+ for (i = 0; i < len; i++) {
32720
+ key = keys2[i];
32721
+ obj[key] = arr[key];
32168
32722
  }
32169
- error.request = request2;
32170
- error.response = response;
32171
- error.isAxiosError = true;
32172
- error.toJSON = function toJSON() {
32173
- return {
32174
- message: this.message,
32175
- name: this.name,
32176
- description: this.description,
32177
- number: this.number,
32178
- fileName: this.fileName,
32179
- lineNumber: this.lineNumber,
32180
- columnNumber: this.columnNumber,
32181
- stack: this.stack,
32182
- config: this.config,
32183
- code: this.code
32184
- };
32185
- };
32186
- return error;
32187
- };
32188
- var enhanceError$1 = enhanceError$2;
32189
- var createError$2 = function createError(message, config2, code2, request2, response) {
32190
- var error = new Error(message);
32191
- return enhanceError$1(error, config2, code2, request2, response);
32192
- };
32193
- var createError$1 = createError$2;
32194
- var settle$1 = function settle(resolve, reject, response) {
32195
- var validateStatus2 = response.config.validateStatus;
32196
- if (!response.status || !validateStatus2 || validateStatus2(response.status)) {
32197
- resolve(response);
32198
- } else {
32199
- reject(createError$1(
32200
- "Request failed with status code " + response.status,
32201
- response.config,
32202
- null,
32203
- response.request,
32204
- response
32205
- ));
32723
+ return obj;
32724
+ }
32725
+ function formDataToJSON(formData) {
32726
+ function buildPath(path2, value17, target2, index2) {
32727
+ let name2 = path2[index2++];
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] = [];
32743
+ }
32744
+ const result = buildPath(path2, value17, target2[name2], index2);
32745
+ if (result && utils$1.isArray(target2[name2])) {
32746
+ target2[name2] = arrayToObject(target2[name2]);
32747
+ }
32748
+ return !isNumericKey;
32206
32749
  }
32207
- };
32208
- var utils$9 = utils$d;
32209
- var cookies$1 = utils$9.isStandardBrowserEnv() ? function standardBrowserEnv() {
32210
- return {
32211
- write: function write2(name2, value17, expires, path2, domain, secure) {
32212
- var cookie = [];
32213
- cookie.push(name2 + "=" + encodeURIComponent(value17));
32214
- if (utils$9.isNumber(expires)) {
32215
- cookie.push("expires=" + new Date(expires).toGMTString());
32750
+ if (utils$1.isFormData(formData) && utils$1.isFunction(formData.entries)) {
32751
+ const obj = {};
32752
+ utils$1.forEachEntry(formData, (name2, value17) => {
32753
+ buildPath(parsePropPath(name2), value17, obj, 0);
32754
+ });
32755
+ return obj;
32756
+ }
32757
+ return null;
32758
+ }
32759
+ function stringifySafely(rawValue, parser, encoder) {
32760
+ if (utils$1.isString(rawValue)) {
32761
+ try {
32762
+ (parser || JSON.parse)(rawValue);
32763
+ return utils$1.trim(rawValue);
32764
+ } catch (e) {
32765
+ if (e.name !== "SyntaxError") {
32766
+ throw e;
32216
32767
  }
32217
- if (utils$9.isString(path2)) {
32218
- cookie.push("path=" + path2);
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
+ }
32219
32810
  }
32220
- if (utils$9.isString(domain)) {
32221
- cookie.push("domain=" + domain);
32811
+ if (isObjectPayload || hasJSONContentType) {
32812
+ headers.setContentType("application/json", false);
32813
+ return stringifySafely(data49);
32222
32814
  }
32223
- if (secure === true) {
32224
- cookie.push("secure");
32815
+ return data49;
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
+ }
32225
32839
  }
32226
- document.cookie = cookie.join("; ");
32227
- },
32228
- read: function read2(name2) {
32229
- var match = document.cookie.match(new RegExp("(^|;\\s*)(" + name2 + ")=([^;]*)"));
32230
- return match ? decodeURIComponent(match[3]) : null;
32231
- },
32232
- remove: function remove2(name2) {
32233
- this.write(name2, "", Date.now() - 864e5);
32840
+ return data49;
32234
32841
  }
32235
- };
32236
- }() : function nonStandardBrowserEnv() {
32237
- return {
32238
- write: function write2() {
32239
- },
32240
- read: function read2() {
32241
- return null;
32242
- },
32243
- remove: function remove2() {
32842
+ ],
32843
+ timeout: 0,
32844
+ xsrfCookieName: "XSRF-TOKEN",
32845
+ xsrfHeaderName: "X-XSRF-TOKEN",
32846
+ maxContentLength: -1,
32847
+ maxBodyLength: -1,
32848
+ env: {
32849
+ FormData: platform.classes.FormData,
32850
+ Blob: platform.classes.Blob
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
32244
32859
  }
32245
- };
32246
- }();
32247
- var isAbsoluteURL$1 = function isAbsoluteURL(url) {
32248
- return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
32249
- };
32250
- var combineURLs$1 = function combineURLs(baseURL, relativeURL) {
32251
- return relativeURL ? baseURL.replace(/\/+$/, "") + "/" + relativeURL.replace(/^\/+/, "") : baseURL;
32252
- };
32253
- var isAbsoluteURL2 = isAbsoluteURL$1;
32254
- var combineURLs2 = combineURLs$1;
32255
- var buildFullPath$1 = function buildFullPath(baseURL, requestedURL) {
32256
- if (baseURL && !isAbsoluteURL2(requestedURL)) {
32257
- return combineURLs2(baseURL, requestedURL);
32258
32860
  }
32259
- return requestedURL;
32260
32861
  };
32261
- var utils$8 = utils$d;
32262
- var ignoreDuplicateOf = [
32862
+ utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
32863
+ defaults.headers[method] = {};
32864
+ });
32865
+ var defaults$1 = defaults;
32866
+ const ignoreDuplicateOf = utils$1.toObjectSet([
32263
32867
  "age",
32264
32868
  "authorization",
32265
32869
  "content-length",
@@ -32277,561 +32881,1181 @@ var ignoreDuplicateOf = [
32277
32881
  "referer",
32278
32882
  "retry-after",
32279
32883
  "user-agent"
32280
- ];
32281
- var parseHeaders$1 = function parseHeaders(headers) {
32282
- var parsed = {};
32283
- var key;
32284
- var val;
32285
- var i;
32286
- if (!headers) {
32287
- return parsed;
32288
- }
32289
- utils$8.forEach(headers.split("\n"), function parser(line) {
32884
+ ]);
32885
+ var parseHeaders = (rawHeaders) => {
32886
+ const parsed = {};
32887
+ let key;
32888
+ let val;
32889
+ let i;
32890
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
32290
32891
  i = line.indexOf(":");
32291
- key = utils$8.trim(line.substr(0, i)).toLowerCase();
32292
- val = utils$8.trim(line.substr(i + 1));
32293
- if (key) {
32294
- if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {
32295
- return;
32296
- }
32297
- if (key === "set-cookie") {
32298
- parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);
32892
+ key = line.substring(0, i).trim().toLowerCase();
32893
+ val = line.substring(i + 1).trim();
32894
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
32895
+ return;
32896
+ }
32897
+ if (key === "set-cookie") {
32898
+ if (parsed[key]) {
32899
+ parsed[key].push(val);
32299
32900
  } else {
32300
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
32901
+ parsed[key] = [val];
32301
32902
  }
32903
+ } else {
32904
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
32302
32905
  }
32303
32906
  });
32304
32907
  return parsed;
32305
32908
  };
32306
- var utils$7 = utils$d;
32307
- var isURLSameOrigin$1 = utils$7.isStandardBrowserEnv() ? function standardBrowserEnv2() {
32308
- var msie = /(msie|trident)/i.test(navigator.userAgent);
32309
- var urlParsingNode = document.createElement("a");
32310
- var originURL;
32311
- function resolveURL(url) {
32312
- var href = url;
32313
- if (msie) {
32314
- urlParsingNode.setAttribute("href", href);
32315
- href = urlParsingNode.href;
32316
- }
32317
- urlParsingNode.setAttribute("href", href);
32318
- return {
32319
- href: urlParsingNode.href,
32320
- protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, "") : "",
32321
- host: urlParsingNode.host,
32322
- search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, "") : "",
32323
- hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, "") : "",
32324
- hostname: urlParsingNode.hostname,
32325
- port: urlParsingNode.port,
32326
- pathname: urlParsingNode.pathname.charAt(0) === "/" ? urlParsingNode.pathname : "/" + urlParsingNode.pathname
32909
+ const $internals = Symbol("internals");
32910
+ function normalizeHeader(header) {
32911
+ return header && String(header).trim().toLowerCase();
32912
+ }
32913
+ function normalizeValue(value17) {
32914
+ if (value17 === false || value17 == null) {
32915
+ return value17;
32916
+ }
32917
+ return utils$1.isArray(value17) ? value17.map(normalizeValue) : String(value17);
32918
+ }
32919
+ function parseTokens(str) {
32920
+ const tokens = /* @__PURE__ */ Object.create(null);
32921
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
32922
+ let match;
32923
+ while (match = tokensRE.exec(str)) {
32924
+ tokens[match[1]] = match[2];
32925
+ }
32926
+ return tokens;
32927
+ }
32928
+ const isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
32929
+ function matchHeaderValue(context2, value17, header, filter2, isHeaderNameFilter) {
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: {}
32327
33111
  };
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;
32328
33163
  }
32329
- originURL = resolveURL(window.location.href);
32330
- return function isURLSameOrigin2(requestURL) {
32331
- var parsed = utils$7.isString(requestURL) ? resolveURL(requestURL) : requestURL;
32332
- return parsed.protocol === originURL.protocol && parsed.host === originURL.host;
33164
+ }
33165
+ var CanceledError$1 = CanceledError;
33166
+ function settle(resolve, reject, response) {
33167
+ const validateStatus2 = response.config.validateStatus;
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;
32333
33217
  };
32334
- }() : function nonStandardBrowserEnv2() {
32335
- return function isURLSameOrigin2() {
32336
- return true;
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);
32337
33232
  };
32338
- }();
32339
- var utils$6 = utils$d;
32340
- var settle2 = settle$1;
32341
- var cookies = cookies$1;
32342
- var buildURL$1 = buildURL$2;
32343
- var buildFullPath2 = buildFullPath$1;
32344
- var parseHeaders2 = parseHeaders$1;
32345
- var isURLSameOrigin = isURLSameOrigin$1;
32346
- var createError2 = createError$2;
32347
- var xhr = function xhrAdapter(config2) {
33233
+ const throttled = (...args) => {
33234
+ const now = Date.now();
33235
+ const passed = now - timestamp;
33236
+ if (passed >= threshold) {
33237
+ invoke(args, now);
33238
+ } else {
33239
+ lastArgs = args;
33240
+ if (!timer2) {
33241
+ timer2 = setTimeout(() => {
33242
+ timer2 = null;
33243
+ invoke(lastArgs);
33244
+ }, threshold - passed);
33245
+ }
33246
+ }
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)
33420
+ };
33421
+ utils$1.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
33422
+ if (prop === "__proto__" || prop === "constructor" || prop === "prototype")
33423
+ return;
33424
+ const merge2 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
33425
+ const configValue = merge2(config1[prop], config2[prop], prop);
33426
+ utils$1.isUndefined(configValue) && merge2 !== mergeDirectKeys || (config3[prop] = configValue);
33427
+ });
33428
+ return config3;
33429
+ }
33430
+ var resolveConfig = (config2) => {
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) {
32348
33473
  return new Promise(function dispatchXhrRequest(resolve, reject) {
32349
- var requestData = config2.data;
32350
- var requestHeaders = config2.headers;
32351
- var responseType = config2.responseType;
32352
- if (utils$6.isFormData(requestData)) {
32353
- delete requestHeaders["Content-Type"];
32354
- }
32355
- var request2 = new XMLHttpRequest();
32356
- if (config2.auth) {
32357
- var username = config2.auth.username || "";
32358
- var password = config2.auth.password ? unescape(encodeURIComponent(config2.auth.password)) : "";
32359
- requestHeaders.Authorization = "Basic " + btoa(username + ":" + password);
32360
- }
32361
- var fullPath = buildFullPath2(config2.baseURL, config2.url);
32362
- request2.open(config2.method.toUpperCase(), buildURL$1(fullPath, config2.params, config2.paramsSerializer), true);
32363
- request2.timeout = config2.timeout;
33474
+ const _config = resolveConfig(config2);
33475
+ let requestData = _config.data;
33476
+ const requestHeaders = AxiosHeaders$1.from(_config.headers).normalize();
33477
+ let { responseType, onUploadProgress, onDownloadProgress } = _config;
33478
+ let onCanceled;
33479
+ let uploadThrottled, downloadThrottled;
33480
+ let flushUpload, flushDownload;
33481
+ function done() {
33482
+ flushUpload && flushUpload();
33483
+ flushDownload && flushDownload();
33484
+ _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
33485
+ _config.signal && _config.signal.removeEventListener("abort", onCanceled);
33486
+ }
33487
+ let request = new XMLHttpRequest();
33488
+ request.open(_config.method.toUpperCase(), _config.url, true);
33489
+ request.timeout = _config.timeout;
32364
33490
  function onloadend() {
32365
- if (!request2) {
33491
+ if (!request) {
32366
33492
  return;
32367
33493
  }
32368
- var responseHeaders = "getAllResponseHeaders" in request2 ? parseHeaders2(request2.getAllResponseHeaders()) : null;
32369
- var responseData = !responseType || responseType === "text" || responseType === "json" ? request2.responseText : request2.response;
32370
- var response = {
33494
+ const responseHeaders = AxiosHeaders$1.from(
33495
+ "getAllResponseHeaders" in request && request.getAllResponseHeaders()
33496
+ );
33497
+ const responseData = !responseType || responseType === "text" || responseType === "json" ? request.responseText : request.response;
33498
+ const response = {
32371
33499
  data: responseData,
32372
- status: request2.status,
32373
- statusText: request2.statusText,
33500
+ status: request.status,
33501
+ statusText: request.statusText,
32374
33502
  headers: responseHeaders,
32375
33503
  config: config2,
32376
- request: request2
33504
+ request
32377
33505
  };
32378
- settle2(resolve, reject, response);
32379
- request2 = null;
33506
+ settle(
33507
+ function _resolve(value17) {
33508
+ resolve(value17);
33509
+ done();
33510
+ },
33511
+ function _reject(err) {
33512
+ reject(err);
33513
+ done();
33514
+ },
33515
+ response
33516
+ );
33517
+ request = null;
32380
33518
  }
32381
- if ("onloadend" in request2) {
32382
- request2.onloadend = onloadend;
33519
+ if ("onloadend" in request) {
33520
+ request.onloadend = onloadend;
32383
33521
  } else {
32384
- request2.onreadystatechange = function handleLoad() {
32385
- if (!request2 || request2.readyState !== 4) {
33522
+ request.onreadystatechange = function handleLoad() {
33523
+ if (!request || request.readyState !== 4) {
32386
33524
  return;
32387
33525
  }
32388
- if (request2.status === 0 && !(request2.responseURL && request2.responseURL.indexOf("file:") === 0)) {
33526
+ if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
32389
33527
  return;
32390
33528
  }
32391
33529
  setTimeout(onloadend);
32392
33530
  };
32393
33531
  }
32394
- request2.onabort = function handleAbort() {
32395
- if (!request2) {
33532
+ request.onabort = function handleAbort() {
33533
+ if (!request) {
32396
33534
  return;
32397
33535
  }
32398
- reject(createError2("Request aborted", config2, "ECONNABORTED", request2));
32399
- request2 = null;
33536
+ reject(new AxiosError$1("Request aborted", AxiosError$1.ECONNABORTED, config2, request));
33537
+ request = null;
32400
33538
  };
32401
- request2.onerror = function handleError() {
32402
- reject(createError2("Network Error", config2, null, request2));
32403
- request2 = null;
33539
+ request.onerror = function handleError(event) {
33540
+ const msg = event && event.message ? event.message : "Network Error";
33541
+ const err = new AxiosError$1(msg, AxiosError$1.ERR_NETWORK, config2, request);
33542
+ err.event = event || null;
33543
+ reject(err);
33544
+ request = null;
32404
33545
  };
32405
- request2.ontimeout = function handleTimeout() {
32406
- var timeoutErrorMessage = "timeout of " + config2.timeout + "ms exceeded";
32407
- if (config2.timeoutErrorMessage) {
32408
- timeoutErrorMessage = config2.timeoutErrorMessage;
32409
- }
32410
- reject(createError2(
32411
- timeoutErrorMessage,
32412
- config2,
32413
- config2.transitional && config2.transitional.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
32414
- request2
32415
- ));
32416
- request2 = null;
33546
+ request.ontimeout = function handleTimeout() {
33547
+ let timeoutErrorMessage = _config.timeout ? "timeout of " + _config.timeout + "ms exceeded" : "timeout exceeded";
33548
+ const transitional2 = _config.transitional || transitionalDefaults;
33549
+ if (_config.timeoutErrorMessage) {
33550
+ timeoutErrorMessage = _config.timeoutErrorMessage;
33551
+ }
33552
+ reject(
33553
+ new AxiosError$1(
33554
+ timeoutErrorMessage,
33555
+ transitional2.clarifyTimeoutError ? AxiosError$1.ETIMEDOUT : AxiosError$1.ECONNABORTED,
33556
+ config2,
33557
+ request
33558
+ )
33559
+ );
33560
+ request = null;
32417
33561
  };
32418
- if (utils$6.isStandardBrowserEnv()) {
32419
- var xsrfValue = (config2.withCredentials || isURLSameOrigin(fullPath)) && config2.xsrfCookieName ? cookies.read(config2.xsrfCookieName) : void 0;
32420
- if (xsrfValue) {
32421
- requestHeaders[config2.xsrfHeaderName] = xsrfValue;
32422
- }
32423
- }
32424
- if ("setRequestHeader" in request2) {
32425
- utils$6.forEach(requestHeaders, function setRequestHeader(val, key) {
32426
- if (typeof requestData === "undefined" && key.toLowerCase() === "content-type") {
32427
- delete requestHeaders[key];
32428
- } else {
32429
- request2.setRequestHeader(key, val);
32430
- }
33562
+ requestData === void 0 && requestHeaders.setContentType(null);
33563
+ if ("setRequestHeader" in request) {
33564
+ utils$1.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
33565
+ request.setRequestHeader(key, val);
32431
33566
  });
32432
33567
  }
32433
- if (!utils$6.isUndefined(config2.withCredentials)) {
32434
- request2.withCredentials = !!config2.withCredentials;
33568
+ if (!utils$1.isUndefined(_config.withCredentials)) {
33569
+ request.withCredentials = !!_config.withCredentials;
32435
33570
  }
32436
33571
  if (responseType && responseType !== "json") {
32437
- request2.responseType = config2.responseType;
33572
+ request.responseType = _config.responseType;
32438
33573
  }
32439
- if (typeof config2.onDownloadProgress === "function") {
32440
- request2.addEventListener("progress", config2.onDownloadProgress);
33574
+ if (onDownloadProgress) {
33575
+ [downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true);
33576
+ request.addEventListener("progress", downloadThrottled);
32441
33577
  }
32442
- if (typeof config2.onUploadProgress === "function" && request2.upload) {
32443
- request2.upload.addEventListener("progress", config2.onUploadProgress);
33578
+ if (onUploadProgress && request.upload) {
33579
+ [uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress);
33580
+ request.upload.addEventListener("progress", uploadThrottled);
33581
+ request.upload.addEventListener("loadend", flushUpload);
32444
33582
  }
32445
- if (config2.cancelToken) {
32446
- config2.cancelToken.promise.then(function onCanceled(cancel2) {
32447
- if (!request2) {
33583
+ if (_config.cancelToken || _config.signal) {
33584
+ onCanceled = (cancel2) => {
33585
+ if (!request) {
32448
33586
  return;
32449
33587
  }
32450
- request2.abort();
32451
- reject(cancel2);
32452
- request2 = null;
32453
- });
32454
- }
32455
- if (!requestData) {
32456
- requestData = null;
33588
+ reject(!cancel2 || cancel2.type ? new CanceledError$1(null, config2, request) : cancel2);
33589
+ request.abort();
33590
+ request = null;
33591
+ };
33592
+ _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
33593
+ if (_config.signal) {
33594
+ _config.signal.aborted ? onCanceled() : _config.signal.addEventListener("abort", onCanceled);
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;
32457
33607
  }
32458
- request2.send(requestData);
33608
+ request.send(requestData || null);
32459
33609
  });
32460
33610
  };
32461
- var utils$5 = utils$d;
32462
- var normalizeHeaderName2 = normalizeHeaderName$1;
32463
- var enhanceError2 = enhanceError$2;
32464
- var DEFAULT_CONTENT_TYPE = {
32465
- "Content-Type": "application/x-www-form-urlencoded"
33611
+ const composeSignals = (signals, timeout) => {
33612
+ const { length } = signals = signals ? signals.filter(Boolean) : [];
33613
+ if (timeout || length) {
33614
+ let controller = new AbortController();
33615
+ let aborted;
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
+ }
32466
33645
  };
32467
- function setContentTypeIfUnset(headers, value17) {
32468
- if (!utils$5.isUndefined(headers) && utils$5.isUndefined(headers["Content-Type"])) {
32469
- headers["Content-Type"] = value17;
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;
32470
33652
  }
32471
- }
32472
- function getDefaultAdapter() {
32473
- var adapter;
32474
- if (typeof XMLHttpRequest !== "undefined") {
32475
- adapter = xhr;
32476
- } else if (typeof process !== "undefined" && Object.prototype.toString.call(process) === "[object process]") {
32477
- adapter = xhr;
33653
+ let pos = 0;
33654
+ let end2;
33655
+ while (pos < len) {
33656
+ end2 = pos + chunkSize;
33657
+ yield chunk.slice(pos, end2);
33658
+ pos = end2;
32478
33659
  }
32479
- return adapter;
32480
- }
32481
- function stringifySafely(rawValue, parser, encoder) {
32482
- if (utils$5.isString(rawValue)) {
32483
- try {
32484
- (parser || JSON.parse)(rawValue);
32485
- return utils$5.trim(rawValue);
32486
- } catch (e) {
32487
- if (e.name !== "SyntaxError") {
32488
- throw e;
33660
+ };
33661
+ const readBytes = async function* (iterable, chunkSize) {
33662
+ for await (const chunk of readStream(iterable)) {
33663
+ yield* streamChunk(chunk, chunkSize);
33664
+ }
33665
+ };
33666
+ const readStream = async function* (stream) {
33667
+ if (stream[Symbol.asyncIterator]) {
33668
+ yield* stream;
33669
+ return;
33670
+ }
33671
+ const reader = stream.getReader();
33672
+ try {
33673
+ for (; ; ) {
33674
+ const { done, value: value17 } = await reader.read();
33675
+ if (done) {
33676
+ break;
32489
33677
  }
33678
+ yield value17;
32490
33679
  }
33680
+ } finally {
33681
+ await reader.cancel();
32491
33682
  }
32492
- return (encoder || JSON.stringify)(rawValue);
32493
- }
32494
- var defaults$3 = {
32495
- transitional: {
32496
- silentJSONParsing: true,
32497
- forcedJSONParsing: true,
32498
- clarifyTimeoutError: false
32499
- },
32500
- adapter: getDefaultAdapter(),
32501
- transformRequest: [function transformRequest(data49, headers) {
32502
- normalizeHeaderName2(headers, "Accept");
32503
- normalizeHeaderName2(headers, "Content-Type");
32504
- 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)) {
32505
- return data49;
33683
+ };
33684
+ const trackStream = (stream, chunkSize, onProgress, onFinish2) => {
33685
+ const iterator2 = readBytes(stream, chunkSize);
33686
+ let bytes = 0;
33687
+ let done;
33688
+ let _onFinish = (e) => {
33689
+ if (!done) {
33690
+ done = true;
33691
+ onFinish2 && onFinish2(e);
32506
33692
  }
32507
- if (utils$5.isArrayBufferView(data49)) {
32508
- return data49.buffer;
32509
- }
32510
- if (utils$5.isURLSearchParams(data49)) {
32511
- setContentTypeIfUnset(headers, "application/x-www-form-urlencoded;charset=utf-8");
32512
- return data49.toString();
32513
- }
32514
- if (utils$5.isObject(data49) || headers && headers["Content-Type"] === "application/json") {
32515
- setContentTypeIfUnset(headers, "application/json");
32516
- return stringifySafely(data49);
32517
- }
32518
- return data49;
32519
- }],
32520
- transformResponse: [function transformResponse(data49) {
32521
- var transitional2 = this.transitional;
32522
- var silentJSONParsing = transitional2 && transitional2.silentJSONParsing;
32523
- var forcedJSONParsing = transitional2 && transitional2.forcedJSONParsing;
32524
- var strictJSONParsing = !silentJSONParsing && this.responseType === "json";
32525
- if (strictJSONParsing || forcedJSONParsing && utils$5.isString(data49) && data49.length) {
32526
- try {
32527
- return JSON.parse(data49);
32528
- } catch (e) {
32529
- if (strictJSONParsing) {
32530
- if (e.name === "SyntaxError") {
32531
- throw enhanceError2(e, this, "E_JSON_PARSE");
33693
+ };
33694
+ return new ReadableStream(
33695
+ {
33696
+ async pull(controller) {
33697
+ try {
33698
+ const { done: done2, value: value17 } = await iterator2.next();
33699
+ if (done2) {
33700
+ _onFinish();
33701
+ controller.close();
33702
+ return;
32532
33703
  }
32533
- throw e;
33704
+ let len = value17.byteLength;
33705
+ if (onProgress) {
33706
+ let loadedBytes = bytes += len;
33707
+ onProgress(loadedBytes);
33708
+ }
33709
+ controller.enqueue(new Uint8Array(value17));
33710
+ } catch (err) {
33711
+ _onFinish(err);
33712
+ throw err;
32534
33713
  }
33714
+ },
33715
+ cancel(reason) {
33716
+ _onFinish(reason);
33717
+ return iterator2.return();
32535
33718
  }
33719
+ },
33720
+ {
33721
+ highWaterMark: 2
32536
33722
  }
32537
- return data49;
32538
- }],
32539
- timeout: 0,
32540
- xsrfCookieName: "XSRF-TOKEN",
32541
- xsrfHeaderName: "X-XSRF-TOKEN",
32542
- maxContentLength: -1,
32543
- maxBodyLength: -1,
32544
- validateStatus: function validateStatus(status2) {
32545
- return status2 >= 200 && status2 < 300;
32546
- }
33723
+ );
32547
33724
  };
32548
- defaults$3.headers = {
32549
- common: {
32550
- "Accept": "application/json, text/plain, */*"
33725
+ const DEFAULT_CHUNK_SIZE = 64 * 1024;
33726
+ const { isFunction } = utils$1;
33727
+ const globalFetchAPI = (({ Request, Response }) => ({
33728
+ Request,
33729
+ Response
33730
+ }))(utils$1.global);
33731
+ const { ReadableStream: ReadableStream$1, TextEncoder } = utils$1.global;
33732
+ const test = (fn2, ...args) => {
33733
+ try {
33734
+ return !!fn2(...args);
33735
+ } catch (e) {
33736
+ return false;
32551
33737
  }
32552
33738
  };
32553
- utils$5.forEach(["delete", "get", "head"], function forEachMethodNoData(method) {
32554
- defaults$3.headers[method] = {};
32555
- });
32556
- utils$5.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
32557
- defaults$3.headers[method] = utils$5.merge(DEFAULT_CONTENT_TYPE);
32558
- });
32559
- var defaults_1 = defaults$3;
32560
- var utils$4 = utils$d;
32561
- var defaults$2 = defaults_1;
32562
- var transformData$1 = function transformData(data49, headers, fns) {
32563
- var context2 = this || defaults$2;
32564
- utils$4.forEach(fns, function transform(fn2) {
32565
- data49 = fn2.call(context2, data49, headers);
32566
- });
32567
- return data49;
32568
- };
32569
- var isCancel$1 = function isCancel(value17) {
32570
- return !!(value17 && value17.__CANCEL__);
32571
- };
32572
- var utils$3 = utils$d;
32573
- var transformData2 = transformData$1;
32574
- var isCancel2 = isCancel$1;
32575
- var defaults$1 = defaults_1;
32576
- function throwIfCancellationRequested(config2) {
32577
- if (config2.cancelToken) {
32578
- config2.cancelToken.throwIfRequested();
32579
- }
32580
- }
32581
- var dispatchRequest$1 = function dispatchRequest(config2) {
32582
- throwIfCancellationRequested(config2);
32583
- config2.headers = config2.headers || {};
32584
- config2.data = transformData2.call(
32585
- config2,
32586
- config2.data,
32587
- config2.headers,
32588
- config2.transformRequest
32589
- );
32590
- config2.headers = utils$3.merge(
32591
- config2.headers.common || {},
32592
- config2.headers[config2.method] || {},
32593
- config2.headers
32594
- );
32595
- utils$3.forEach(
32596
- ["delete", "get", "head", "post", "put", "patch", "common"],
32597
- function cleanHeaderConfig(method) {
32598
- delete config2.headers[method];
32599
- }
33739
+ const factory = (env) => {
33740
+ env = utils$1.merge.call(
33741
+ {
33742
+ skipUndefined: true
33743
+ },
33744
+ globalFetchAPI,
33745
+ env
32600
33746
  );
32601
- var adapter = config2.adapter || defaults$1.adapter;
32602
- return adapter(config2).then(function onAdapterResolution(response) {
32603
- throwIfCancellationRequested(config2);
32604
- response.data = transformData2.call(
32605
- config2,
32606
- response.data,
32607
- response.headers,
32608
- config2.transformResponse
32609
- );
32610
- return response;
32611
- }, function onAdapterRejection(reason) {
32612
- if (!isCancel2(reason)) {
32613
- throwIfCancellationRequested(config2);
32614
- if (reason && reason.response) {
32615
- reason.response.data = transformData2.call(
32616
- config2,
32617
- reason.response.data,
32618
- reason.response.headers,
32619
- config2.transformResponse
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;
33753
+ }
33754
+ const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream$1);
33755
+ const encodeText = isFetchSupported && (typeof TextEncoder === "function" ? ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
33756
+ const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
33757
+ let duplexAccessed = false;
33758
+ const hasContentType = new Request(platform.origin, {
33759
+ body: new ReadableStream$1(),
33760
+ method: "POST",
33761
+ get duplex() {
33762
+ duplexAccessed = true;
33763
+ return "half";
33764
+ }
33765
+ }).headers.has("Content-Type");
33766
+ return duplexAccessed && !hasContentType;
33767
+ });
33768
+ const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
33769
+ const resolvers = {
33770
+ stream: supportsResponseStream && ((res) => res.body)
33771
+ };
33772
+ isFetchSupported && (() => {
33773
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((type2) => {
33774
+ !resolvers[type2] && (resolvers[type2] = (res, config2) => {
33775
+ let method = res && res[type2];
33776
+ if (method) {
33777
+ return method.call(res);
33778
+ }
33779
+ throw new AxiosError$1(
33780
+ `Response type '${type2}' is not supported`,
33781
+ AxiosError$1.ERR_NOT_SUPPORT,
33782
+ config2
32620
33783
  );
32621
- }
33784
+ });
33785
+ });
33786
+ })();
33787
+ const getBodyLength = async (body) => {
33788
+ if (body == null) {
33789
+ return 0;
32622
33790
  }
32623
- return Promise.reject(reason);
32624
- });
32625
- };
32626
- var utils$2 = utils$d;
32627
- var mergeConfig$2 = function mergeConfig(config1, config2) {
32628
- config2 = config2 || {};
32629
- var config3 = {};
32630
- var valueFromConfig2Keys = ["url", "method", "data"];
32631
- var mergeDeepPropertiesKeys = ["headers", "auth", "proxy", "params"];
32632
- var defaultToConfig2Keys = [
32633
- "baseURL",
32634
- "transformRequest",
32635
- "transformResponse",
32636
- "paramsSerializer",
32637
- "timeout",
32638
- "timeoutMessage",
32639
- "withCredentials",
32640
- "adapter",
32641
- "responseType",
32642
- "xsrfCookieName",
32643
- "xsrfHeaderName",
32644
- "onUploadProgress",
32645
- "onDownloadProgress",
32646
- "decompress",
32647
- "maxContentLength",
32648
- "maxBodyLength",
32649
- "maxRedirects",
32650
- "transport",
32651
- "httpAgent",
32652
- "httpsAgent",
32653
- "cancelToken",
32654
- "socketPath",
32655
- "responseEncoding"
32656
- ];
32657
- var directMergeKeys = ["validateStatus"];
32658
- function getMergedValue(target2, source2) {
32659
- if (utils$2.isPlainObject(target2) && utils$2.isPlainObject(source2)) {
32660
- return utils$2.merge(target2, source2);
32661
- } else if (utils$2.isPlainObject(source2)) {
32662
- return utils$2.merge({}, source2);
32663
- } else if (utils$2.isArray(source2)) {
32664
- return source2.slice();
33791
+ if (utils$1.isBlob(body)) {
33792
+ return body.size;
32665
33793
  }
32666
- return source2;
32667
- }
32668
- function mergeDeepProperties(prop) {
32669
- if (!utils$2.isUndefined(config2[prop])) {
32670
- config3[prop] = getMergedValue(config1[prop], config2[prop]);
32671
- } else if (!utils$2.isUndefined(config1[prop])) {
32672
- config3[prop] = getMergedValue(void 0, config1[prop]);
33794
+ if (utils$1.isSpecCompliantForm(body)) {
33795
+ const _request = new Request(platform.origin, {
33796
+ method: "POST",
33797
+ body
33798
+ });
33799
+ return (await _request.arrayBuffer()).byteLength;
32673
33800
  }
32674
- }
32675
- utils$2.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {
32676
- if (!utils$2.isUndefined(config2[prop])) {
32677
- config3[prop] = getMergedValue(void 0, config2[prop]);
33801
+ if (utils$1.isArrayBufferView(body) || utils$1.isArrayBuffer(body)) {
33802
+ return body.byteLength;
32678
33803
  }
32679
- });
32680
- utils$2.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);
32681
- utils$2.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {
32682
- if (!utils$2.isUndefined(config2[prop])) {
32683
- config3[prop] = getMergedValue(void 0, config2[prop]);
32684
- } else if (!utils$2.isUndefined(config1[prop])) {
32685
- config3[prop] = getMergedValue(void 0, config1[prop]);
33804
+ if (utils$1.isURLSearchParams(body)) {
33805
+ body = body + "";
32686
33806
  }
32687
- });
32688
- utils$2.forEach(directMergeKeys, function merge2(prop) {
32689
- if (prop in config2) {
32690
- config3[prop] = getMergedValue(config1[prop], config2[prop]);
32691
- } else if (prop in config1) {
32692
- config3[prop] = getMergedValue(void 0, config1[prop]);
33807
+ if (utils$1.isString(body)) {
33808
+ return (await encodeText(body)).byteLength;
32693
33809
  }
32694
- });
32695
- var axiosKeys = valueFromConfig2Keys.concat(mergeDeepPropertiesKeys).concat(defaultToConfig2Keys).concat(directMergeKeys);
32696
- var otherKeys = Object.keys(config1).concat(Object.keys(config2)).filter(function filterAxiosKeys(key) {
32697
- return axiosKeys.indexOf(key) === -1;
32698
- });
32699
- utils$2.forEach(otherKeys, mergeDeepProperties);
32700
- return config3;
33810
+ };
33811
+ const resolveBodyLength = async (headers, body) => {
33812
+ const length = utils$1.toFiniteNumber(headers.getContentLength());
33813
+ return length == null ? getBodyLength(body) : length;
33814
+ };
33815
+ return async (config2) => {
33816
+ let {
33817
+ url,
33818
+ method,
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
33835
+ );
33836
+ let request = null;
33837
+ const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
33838
+ composedSignal.unsubscribe();
33839
+ });
33840
+ let requestContentLength;
33841
+ try {
33842
+ if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data49)) !== 0) {
33843
+ let _request = new Request(url, {
33844
+ method: "POST",
33845
+ body: data49,
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
+ }
33924
+ );
33925
+ }
33926
+ throw AxiosError$1.from(err, err && err.code, config2, request, err && err.response);
33927
+ }
33928
+ };
32701
33929
  };
32702
- const name = "axios";
32703
- const version = "0.21.4";
32704
- const description = "Promise based HTTP client for the browser and node.js";
32705
- const main = "index.js";
32706
- const scripts = {
32707
- test: "grunt test",
32708
- start: "node ./sandbox/server.js",
32709
- build: "NODE_ENV=production grunt build",
32710
- preversion: "npm test",
32711
- version: "npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",
32712
- postversion: "git push && git push --tags",
32713
- examples: "node ./examples/server.js",
32714
- coveralls: "cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
32715
- fix: "eslint --fix lib/**/*.js"
32716
- };
32717
- const repository = {
32718
- type: "git",
32719
- url: "https://github.com/axios/axios.git"
32720
- };
32721
- const keywords = [
32722
- "xhr",
32723
- "http",
32724
- "ajax",
32725
- "promise",
32726
- "node"
32727
- ];
32728
- const author = "Matt Zabriskie";
32729
- const license = "MIT";
32730
- const bugs = {
32731
- url: "https://github.com/axios/axios/issues"
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;
32732
33943
  };
32733
- const homepage = "https://axios-http.com";
32734
- const devDependencies = {
32735
- coveralls: "^3.0.0",
32736
- "es6-promise": "^4.2.4",
32737
- grunt: "^1.3.0",
32738
- "grunt-banner": "^0.6.0",
32739
- "grunt-cli": "^1.2.0",
32740
- "grunt-contrib-clean": "^1.1.0",
32741
- "grunt-contrib-watch": "^1.0.0",
32742
- "grunt-eslint": "^23.0.0",
32743
- "grunt-karma": "^4.0.0",
32744
- "grunt-mocha-test": "^0.13.3",
32745
- "grunt-ts": "^6.0.0-beta.19",
32746
- "grunt-webpack": "^4.0.2",
32747
- "istanbul-instrumenter-loader": "^1.0.0",
32748
- "jasmine-core": "^2.4.1",
32749
- karma: "^6.3.2",
32750
- "karma-chrome-launcher": "^3.1.0",
32751
- "karma-firefox-launcher": "^2.1.0",
32752
- "karma-jasmine": "^1.1.1",
32753
- "karma-jasmine-ajax": "^0.1.13",
32754
- "karma-safari-launcher": "^1.0.0",
32755
- "karma-sauce-launcher": "^4.3.6",
32756
- "karma-sinon": "^1.0.5",
32757
- "karma-sourcemap-loader": "^0.3.8",
32758
- "karma-webpack": "^4.0.2",
32759
- "load-grunt-tasks": "^3.5.2",
32760
- minimist: "^1.2.0",
32761
- mocha: "^8.2.1",
32762
- sinon: "^4.5.0",
32763
- "terser-webpack-plugin": "^4.2.3",
32764
- typescript: "^4.0.5",
32765
- "url-search-params": "^0.10.0",
32766
- webpack: "^4.44.2",
32767
- "webpack-dev-server": "^3.11.0"
32768
- };
32769
- const browser = {
32770
- "./lib/adapters/http.js": "./lib/adapters/xhr.js"
32771
- };
32772
- const jsdelivr = "dist/axios.min.js";
32773
- const unpkg = "dist/axios.min.js";
32774
- const typings = "./index.d.ts";
32775
- const dependencies = {
32776
- "follow-redirects": "^1.14.0"
33944
+ getFetch();
33945
+ const knownAdapters = {
33946
+ http: httpAdapter,
33947
+ xhr: xhrAdapter,
33948
+ fetch: {
33949
+ get: getFetch
33950
+ }
32777
33951
  };
32778
- const bundlesize = [
32779
- {
32780
- path: "./dist/axios.min.js",
32781
- threshold: "5kB"
33952
+ utils$1.forEach(knownAdapters, (fn2, value17) => {
33953
+ if (fn2) {
33954
+ try {
33955
+ Object.defineProperty(fn2, "name", { value: value17 });
33956
+ } catch (e) {
33957
+ }
33958
+ Object.defineProperty(fn2, "adapterName", { value: value17 });
32782
33959
  }
32783
- ];
32784
- var require$$0 = {
32785
- name,
32786
- version,
32787
- description,
32788
- main,
32789
- scripts,
32790
- repository,
32791
- keywords,
32792
- author,
32793
- license,
32794
- bugs,
32795
- homepage,
32796
- devDependencies,
32797
- browser,
32798
- jsdelivr,
32799
- unpkg,
32800
- typings,
32801
- dependencies,
32802
- bundlesize
33960
+ });
33961
+ const renderReason = (reason) => `- ${reason}`;
33962
+ const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
33963
+ function getAdapter(adapters2, config2) {
33964
+ adapters2 = utils$1.isArray(adapters2) ? adapters2 : [adapters2];
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;
33981
+ }
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
+ }
33994
+ return adapter;
33995
+ }
33996
+ var adapters = {
33997
+ getAdapter,
33998
+ adapters: knownAdapters
32803
33999
  };
32804
- var pkg = require$$0;
32805
- var validators$1 = {};
32806
- ["object", "boolean", "number", "function", "string", "symbol"].forEach(function(type2, i) {
34000
+ function throwIfCancellationRequested(config2) {
34001
+ if (config2.cancelToken) {
34002
+ config2.cancelToken.throwIfRequested();
34003
+ }
34004
+ if (config2.signal && config2.signal.aborted) {
34005
+ throw new CanceledError$1(null, config2);
34006
+ }
34007
+ }
34008
+ function dispatchRequest(config2) {
34009
+ throwIfCancellationRequested(config2);
34010
+ config2.headers = AxiosHeaders$1.from(config2.headers);
34011
+ config2.data = transformData.call(config2, config2.transformRequest);
34012
+ if (["post", "put", "patch"].indexOf(config2.method) !== -1) {
34013
+ config2.headers.setContentType("application/x-www-form-urlencoded", false);
34014
+ }
34015
+ const adapter = adapters.getAdapter(config2.adapter || defaults$1.adapter, config2);
34016
+ return adapter(config2).then(
34017
+ function onAdapterResolution(response) {
34018
+ throwIfCancellationRequested(config2);
34019
+ response.data = transformData.call(config2, config2.transformResponse, response);
34020
+ response.headers = AxiosHeaders$1.from(response.headers);
34021
+ return response;
34022
+ },
34023
+ function onAdapterRejection(reason) {
34024
+ if (!isCancel(reason)) {
34025
+ throwIfCancellationRequested(config2);
34026
+ if (reason && reason.response) {
34027
+ reason.response.data = transformData.call(
34028
+ config2,
34029
+ config2.transformResponse,
34030
+ reason.response
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) => {
32807
34042
  validators$1[type2] = function validator4(thing) {
32808
34043
  return typeof thing === type2 || "a" + (i < 1 ? "n " : " ") + type2;
32809
34044
  };
32810
34045
  });
32811
- var deprecatedWarnings = {};
32812
- var currentVerArr = pkg.version.split(".");
32813
- function isOlderVersion(version2, thanVersion) {
32814
- var pkgVersionArr = thanVersion ? thanVersion.split(".") : currentVerArr;
32815
- var destVer = version2.split(".");
32816
- for (var i = 0; i < 3; i++) {
32817
- if (pkgVersionArr[i] > destVer[i]) {
32818
- return true;
32819
- } else if (pkgVersionArr[i] < destVer[i]) {
32820
- return false;
32821
- }
32822
- }
32823
- return false;
32824
- }
34046
+ const deprecatedWarnings = {};
32825
34047
  validators$1.transitional = function transitional(validator4, version2, message) {
32826
- var isDeprecated = version2 && isOlderVersion(version2);
32827
34048
  function formatMessage(opt, desc) {
32828
- return "[Axios v" + pkg.version + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
34049
+ return "[Axios v" + VERSION + "] Transitional option '" + opt + "'" + desc + (message ? ". " + message : "");
32829
34050
  }
32830
- return function(value17, opt, opts) {
34051
+ return (value17, opt, opts) => {
32831
34052
  if (validator4 === false) {
32832
- throw new Error(formatMessage(opt, " has been removed in " + version2));
34053
+ throw new AxiosError$1(
34054
+ formatMessage(opt, " has been removed" + (version2 ? " in " + version2 : "")),
34055
+ AxiosError$1.ERR_DEPRECATED
34056
+ );
32833
34057
  }
32834
- if (isDeprecated && !deprecatedWarnings[opt]) {
34058
+ if (version2 && !deprecatedWarnings[opt]) {
32835
34059
  deprecatedWarnings[opt] = true;
32836
34060
  console.warn(
32837
34061
  formatMessage(
@@ -32843,216 +34067,419 @@ validators$1.transitional = function transitional(validator4, version2, message)
32843
34067
  return validator4 ? validator4(value17, opt, opts) : true;
32844
34068
  };
32845
34069
  };
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
+ };
32846
34076
  function assertOptions(options, schema, allowUnknown) {
32847
34077
  if (typeof options !== "object") {
32848
- throw new TypeError("options must be an object");
34078
+ throw new AxiosError$1("options must be an object", AxiosError$1.ERR_BAD_OPTION_VALUE);
32849
34079
  }
32850
- var keys2 = Object.keys(options);
32851
- var i = keys2.length;
34080
+ const keys2 = Object.keys(options);
34081
+ let i = keys2.length;
32852
34082
  while (i-- > 0) {
32853
- var opt = keys2[i];
32854
- var validator4 = schema[opt];
34083
+ const opt = keys2[i];
34084
+ const validator4 = schema[opt];
32855
34085
  if (validator4) {
32856
- var value17 = options[opt];
32857
- var result = value17 === void 0 || validator4(value17, opt, options);
34086
+ const value17 = options[opt];
34087
+ const result = value17 === void 0 || validator4(value17, opt, options);
32858
34088
  if (result !== true) {
32859
- throw new TypeError("option " + opt + " must be " + result);
34089
+ throw new AxiosError$1(
34090
+ "option " + opt + " must be " + result,
34091
+ AxiosError$1.ERR_BAD_OPTION_VALUE
34092
+ );
32860
34093
  }
32861
34094
  continue;
32862
34095
  }
32863
34096
  if (allowUnknown !== true) {
32864
- throw Error("Unknown option " + opt);
34097
+ throw new AxiosError$1("Unknown option " + opt, AxiosError$1.ERR_BAD_OPTION);
32865
34098
  }
32866
34099
  }
32867
34100
  }
32868
- var validator$1 = {
32869
- isOlderVersion,
34101
+ var validator3 = {
32870
34102
  assertOptions,
32871
34103
  validators: validators$1
32872
34104
  };
32873
- var utils$1 = utils$d;
32874
- var buildURL2 = buildURL$2;
32875
- var InterceptorManager = InterceptorManager_1;
32876
- var dispatchRequest2 = dispatchRequest$1;
32877
- var mergeConfig$1 = mergeConfig$2;
32878
- var validator3 = validator$1;
32879
- var validators = validator3.validators;
32880
- function Axios$1(instanceConfig) {
32881
- this.defaults = instanceConfig;
32882
- this.interceptors = {
32883
- request: new InterceptorManager(),
32884
- response: new InterceptorManager()
32885
- };
32886
- }
32887
- Axios$1.prototype.request = function request(config2) {
32888
- if (typeof config2 === "string") {
32889
- config2 = arguments[1] || {};
32890
- config2.url = arguments[0];
32891
- } else {
32892
- config2 = config2 || {};
34105
+ const validators = validator3.validators;
34106
+ class Axios {
34107
+ constructor(instanceConfig) {
34108
+ this.defaults = instanceConfig || {};
34109
+ this.interceptors = {
34110
+ request: new InterceptorManager$1(),
34111
+ response: new InterceptorManager$1()
34112
+ };
32893
34113
  }
32894
- config2 = mergeConfig$1(this.defaults, config2);
32895
- if (config2.method) {
32896
- config2.method = config2.method.toLowerCase();
32897
- } else if (this.defaults.method) {
32898
- config2.method = this.defaults.method.toLowerCase();
32899
- } else {
32900
- config2.method = "get";
32901
- }
32902
- var transitional2 = config2.transitional;
32903
- if (transitional2 !== void 0) {
32904
- validator3.assertOptions(transitional2, {
32905
- silentJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
32906
- forcedJSONParsing: validators.transitional(validators.boolean, "1.0.0"),
32907
- clarifyTimeoutError: validators.transitional(validators.boolean, "1.0.0")
32908
- }, false);
32909
- }
32910
- var requestInterceptorChain = [];
32911
- var synchronousRequestInterceptors = true;
32912
- this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
32913
- if (typeof interceptor.runWhen === "function" && interceptor.runWhen(config2) === false) {
32914
- return;
32915
- }
32916
- synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
32917
- requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
32918
- });
32919
- var responseInterceptorChain = [];
32920
- this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
32921
- responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
32922
- });
32923
- var promise;
32924
- if (!synchronousRequestInterceptors) {
32925
- var chain = [dispatchRequest2, void 0];
32926
- Array.prototype.unshift.apply(chain, requestInterceptorChain);
32927
- chain = chain.concat(responseInterceptorChain);
32928
- promise = Promise.resolve(config2);
32929
- while (chain.length) {
32930
- promise = promise.then(chain.shift(), chain.shift());
34114
+ async request(configOrUrl, config2) {
34115
+ try {
34116
+ return await this._request(configOrUrl, config2);
34117
+ } catch (err) {
34118
+ if (err instanceof Error) {
34119
+ let dummy = {};
34120
+ Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
34121
+ const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, "") : "";
34122
+ try {
34123
+ if (!err.stack) {
34124
+ err.stack = stack;
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;
32931
34132
  }
32932
- return promise;
32933
34133
  }
32934
- var newConfig = config2;
32935
- while (requestInterceptorChain.length) {
32936
- var onFulfilled = requestInterceptorChain.shift();
32937
- var onRejected = requestInterceptorChain.shift();
34134
+ _request(configOrUrl, config2) {
34135
+ if (typeof configOrUrl === "string") {
34136
+ config2 = config2 || {};
34137
+ config2.url = configOrUrl;
34138
+ } else {
34139
+ config2 = configOrUrl || {};
34140
+ }
34141
+ config2 = mergeConfig(this.defaults, config2);
34142
+ const { transitional: transitional2, paramsSerializer, headers } = config2;
34143
+ if (transitional2 !== void 0) {
34144
+ validator3.assertOptions(
34145
+ transitional2,
34146
+ {
34147
+ silentJSONParsing: validators.transitional(validators.boolean),
34148
+ forcedJSONParsing: validators.transitional(validators.boolean),
34149
+ clarifyTimeoutError: validators.transitional(validators.boolean),
34150
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
34151
+ },
34152
+ false
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;
34177
+ }
34178
+ validator3.assertOptions(
34179
+ config2,
34180
+ {
34181
+ baseUrl: validators.spelling("baseURL"),
34182
+ withXsrfToken: validators.spelling("withXSRFToken")
34183
+ },
34184
+ true
34185
+ );
34186
+ config2.method = (config2.method || this.defaults.method || "get").toLowerCase();
34187
+ let contextHeaders = headers && utils$1.merge(headers.common, headers[config2.method]);
34188
+ headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
34189
+ delete headers[method];
34190
+ });
34191
+ config2.headers = AxiosHeaders$1.concat(contextHeaders, headers);
34192
+ const requestInterceptorChain = [];
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
+ }
34236
+ }
32938
34237
  try {
32939
- newConfig = onFulfilled(newConfig);
34238
+ promise = dispatchRequest.call(this, newConfig);
32940
34239
  } catch (error) {
32941
- onRejected(error);
32942
- break;
34240
+ return Promise.reject(error);
32943
34241
  }
34242
+ i = 0;
34243
+ len = responseInterceptorChain.length;
34244
+ while (i < len) {
34245
+ promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
34246
+ }
34247
+ return promise;
32944
34248
  }
32945
- try {
32946
- promise = dispatchRequest2(newConfig);
32947
- } catch (error) {
32948
- return Promise.reject(error);
32949
- }
32950
- while (responseInterceptorChain.length) {
32951
- promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());
34249
+ getUri(config2) {
34250
+ config2 = mergeConfig(this.defaults, config2);
34251
+ const fullPath = buildFullPath(config2.baseURL, config2.url, config2.allowAbsoluteUrls);
34252
+ return buildURL(fullPath, config2.params, config2.paramsSerializer);
32952
34253
  }
32953
- return promise;
32954
- };
32955
- Axios$1.prototype.getUri = function getUri(config2) {
32956
- config2 = mergeConfig$1(this.defaults, config2);
32957
- return buildURL2(config2.url, config2.params, config2.paramsSerializer).replace(/^\?/, "");
32958
- };
32959
- utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData2(method) {
32960
- Axios$1.prototype[method] = function(url, config2) {
32961
- return this.request(mergeConfig$1(config2 || {}, {
32962
- method,
32963
- url,
32964
- data: (config2 || {}).data
32965
- }));
34254
+ }
34255
+ utils$1.forEach(["delete", "get", "head", "options"], function forEachMethodNoData(method) {
34256
+ Axios.prototype[method] = function(url, config2) {
34257
+ return this.request(
34258
+ mergeConfig(config2 || {}, {
34259
+ method,
34260
+ url,
34261
+ data: (config2 || {}).data
34262
+ })
34263
+ );
32966
34264
  };
32967
34265
  });
32968
- utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData2(method) {
32969
- Axios$1.prototype[method] = function(url, data49, config2) {
32970
- return this.request(mergeConfig$1(config2 || {}, {
32971
- method,
32972
- url,
32973
- data: data49
32974
- }));
32975
- };
34266
+ utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
34267
+ function generateHTTPMethod(isForm) {
34268
+ return function httpMethod(url, data49, config2) {
34269
+ return this.request(
34270
+ mergeConfig(config2 || {}, {
34271
+ method,
34272
+ headers: isForm ? {
34273
+ "Content-Type": "multipart/form-data"
34274
+ } : {},
34275
+ url,
34276
+ data: data49
34277
+ })
34278
+ );
34279
+ };
34280
+ }
34281
+ Axios.prototype[method] = generateHTTPMethod();
34282
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
32976
34283
  });
32977
- var Axios_1 = Axios$1;
32978
- function Cancel$1(message) {
32979
- this.message = message;
32980
- }
32981
- Cancel$1.prototype.toString = function toString2() {
32982
- return "Cancel" + (this.message ? ": " + this.message : "");
32983
- };
32984
- Cancel$1.prototype.__CANCEL__ = true;
32985
- var Cancel_1 = Cancel$1;
32986
- var Cancel = Cancel_1;
32987
- function CancelToken(executor) {
32988
- if (typeof executor !== "function") {
32989
- throw new TypeError("executor must be a function.");
32990
- }
32991
- var resolvePromise;
32992
- this.promise = new Promise(function promiseExecutor(resolve) {
32993
- resolvePromise = resolve;
32994
- });
32995
- var token = this;
32996
- executor(function cancel2(message) {
32997
- if (token.reason) {
34284
+ var Axios$1 = Axios;
34285
+ class CancelToken {
34286
+ constructor(executor) {
34287
+ if (typeof executor !== "function") {
34288
+ throw new TypeError("executor must be a function.");
34289
+ }
34290
+ let resolvePromise;
34291
+ this.promise = new Promise(function promiseExecutor(resolve) {
34292
+ resolvePromise = resolve;
34293
+ });
34294
+ const token = this;
34295
+ this.promise.then((cancel2) => {
34296
+ if (!token._listeners)
34297
+ return;
34298
+ let i = token._listeners.length;
34299
+ while (i-- > 0) {
34300
+ token._listeners[i](cancel2);
34301
+ }
34302
+ token._listeners = null;
34303
+ });
34304
+ this.promise.then = (onfulfilled) => {
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);
32998
34331
  return;
32999
34332
  }
33000
- token.reason = new Cancel(message);
33001
- resolvePromise(token.reason);
33002
- });
33003
- }
33004
- CancelToken.prototype.throwIfRequested = function throwIfRequested() {
33005
- if (this.reason) {
33006
- throw this.reason;
34333
+ if (this._listeners) {
34334
+ this._listeners.push(listener);
34335
+ } else {
34336
+ this._listeners = [listener];
34337
+ }
33007
34338
  }
33008
- };
33009
- CancelToken.source = function source() {
33010
- var cancel2;
33011
- var token = new CancelToken(function executor(c) {
33012
- cancel2 = c;
33013
- });
33014
- return {
33015
- token,
33016
- cancel: cancel2
33017
- };
33018
- };
33019
- var CancelToken_1 = CancelToken;
33020
- var spread = function spread2(callback2) {
34339
+ unsubscribe(listener) {
34340
+ if (!this._listeners) {
34341
+ return;
34342
+ }
34343
+ const index2 = this._listeners.indexOf(listener);
34344
+ if (index2 !== -1) {
34345
+ this._listeners.splice(index2, 1);
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
+ }
34367
+ }
34368
+ var CancelToken$1 = CancelToken;
34369
+ function spread(callback2) {
33021
34370
  return function wrap(arr) {
33022
34371
  return callback2.apply(null, arr);
33023
34372
  };
33024
- };
33025
- var isAxiosError = function isAxiosError2(payload) {
33026
- return typeof payload === "object" && payload.isAxiosError === true;
33027
- };
33028
- var utils = utils$d;
33029
- var bind2 = bind$2;
33030
- var Axios = Axios_1;
33031
- var mergeConfig2 = mergeConfig$2;
33032
- var defaults = defaults_1;
34373
+ }
34374
+ function isAxiosError(payload) {
34375
+ return utils$1.isObject(payload) && payload.isAxiosError === true;
34376
+ }
34377
+ const HttpStatusCode = {
34378
+ Continue: 100,
34379
+ SwitchingProtocols: 101,
34380
+ Processing: 102,
34381
+ EarlyHints: 103,
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;
33033
34452
  function createInstance(defaultConfig2) {
33034
- var context2 = new Axios(defaultConfig2);
33035
- var instance2 = bind2(Axios.prototype.request, context2);
33036
- utils.extend(instance2, Axios.prototype, context2);
33037
- utils.extend(instance2, context2);
34453
+ const context2 = new Axios$1(defaultConfig2);
34454
+ const instance2 = bind(Axios$1.prototype.request, context2);
34455
+ utils$1.extend(instance2, Axios$1.prototype, context2, { allOwnKeys: true });
34456
+ utils$1.extend(instance2, context2, null, { allOwnKeys: true });
34457
+ instance2.create = function create(instanceConfig) {
34458
+ return createInstance(mergeConfig(defaultConfig2, instanceConfig));
34459
+ };
33038
34460
  return instance2;
33039
34461
  }
33040
- var axios$1 = createInstance(defaults);
33041
- axios$1.Axios = Axios;
33042
- axios$1.create = function create(instanceConfig) {
33043
- return createInstance(mergeConfig2(axios$1.defaults, instanceConfig));
33044
- };
33045
- axios$1.Cancel = Cancel_1;
33046
- axios$1.CancelToken = CancelToken_1;
33047
- axios$1.isCancel = isCancel$1;
33048
- axios$1.all = function all(promises) {
34462
+ const axios = createInstance(defaults$1);
34463
+ axios.Axios = Axios$1;
34464
+ axios.CanceledError = CanceledError$1;
34465
+ axios.CancelToken = CancelToken$1;
34466
+ axios.isCancel = isCancel;
34467
+ axios.VERSION = VERSION;
34468
+ axios.toFormData = toFormData;
34469
+ axios.AxiosError = AxiosError$1;
34470
+ axios.Cancel = axios.CanceledError;
34471
+ axios.all = function all(promises) {
33049
34472
  return Promise.all(promises);
33050
34473
  };
33051
- axios$1.spread = spread;
33052
- axios$1.isAxiosError = isAxiosError;
33053
- axios$2.exports = axios$1;
33054
- axios$2.exports.default = axios$1;
33055
- var axios = axios$2.exports;
34474
+ axios.spread = spread;
34475
+ axios.isAxiosError = isAxiosError;
34476
+ axios.mergeConfig = mergeConfig;
34477
+ axios.AxiosHeaders = AxiosHeaders$1;
34478
+ axios.formToJSON = (thing) => formDataToJSON(utils$1.isHTMLForm(thing) ? new FormData(thing) : thing);
34479
+ axios.getAdapter = adapters.getAdapter;
34480
+ axios.HttpStatusCode = HttpStatusCode$1;
34481
+ axios.default = axios;
34482
+ var axiosSrc = axios;
33056
34483
  const isHb = location.pathname.includes("scyxweb");
33057
34484
  const userAgent = navigator.userAgent.toLowerCase();
33058
34485
  const isQywx = /wxwork/.test(userAgent) ? true : false;
@@ -33237,9 +34664,9 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
33237
34664
  }
33238
34665
  }
33239
34666
  }
33240
- async function tryPluginLogin() {
34667
+ async function tryPluginLogin(to2) {
33241
34668
  try {
33242
- token = await pluginLogin(store2, router);
34669
+ token = await pluginLogin(store2, router, to2);
33243
34670
  store2.dispatch("loginSuccess", token);
33244
34671
  return token;
33245
34672
  } catch (e) {
@@ -33250,12 +34677,12 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
33250
34677
  const code2 = getQueryVariable("code");
33251
34678
  if (typeof window.Code != "undefined" || code2 || isHb) {
33252
34679
  if (!token) {
33253
- if (await tryPluginLogin()) {
34680
+ if (await tryPluginLogin(to)) {
33254
34681
  await _renderRoutes();
33255
34682
  }
33256
34683
  } else {
33257
34684
  if (!await checkLogin()) {
33258
- if (await tryPluginLogin()) {
34685
+ if (await tryPluginLogin(to)) {
33259
34686
  await _renderRoutes();
33260
34687
  }
33261
34688
  } else {
@@ -33272,7 +34699,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
33272
34699
  } else {
33273
34700
  console.log("router8");
33274
34701
  if (!await checkLogin()) {
33275
- if (await tryPluginLogin()) {
34702
+ if (await tryPluginLogin(to)) {
33276
34703
  await _renderRoutes();
33277
34704
  } else {
33278
34705
  console.log("router9");
@@ -33289,7 +34716,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
33289
34716
  });
33290
34717
  }
33291
34718
  let singleLoginPromiseMapping = {};
33292
- const pluginLogin = (store2, router) => {
34719
+ const pluginLogin = (store2, router, targetRoute) => {
33293
34720
  let code2 = getQueryVariable("code");
33294
34721
  let singleLoginPromise = singleLoginPromiseMapping[code2];
33295
34722
  if (singleLoginPromise) {
@@ -33309,11 +34736,21 @@ const pluginLogin = (store2, router) => {
33309
34736
  store2.commit("setToken", "");
33310
34737
  if (isHb) {
33311
34738
  let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
33312
- axios$3.get(url).then(async (resp) => {
34739
+ axios$1.get(url).then(async (resp) => {
33313
34740
  setToken(resp.token);
33314
34741
  localStorage.setItem("v8-token", resp.token);
33315
34742
  sessionStorage.setItem("lambo-token", resp.token);
33316
34743
  setTimeout(() => {
34744
+ if (targetRoute && targetRoute.path && targetRoute.path !== "/") {
34745
+ console.log("===targetRoute===", targetRoute.path, targetRoute.query);
34746
+ router.push({
34747
+ path: targetRoute.path,
34748
+ query: targetRoute.query,
34749
+ replace: true
34750
+ });
34751
+ reject(0);
34752
+ return;
34753
+ }
33317
34754
  console.log("before getUserDefaultUrl");
33318
34755
  getUserDefaultUrl().then((resp1) => {
33319
34756
  var _a;
@@ -33341,7 +34778,7 @@ const pluginLogin = (store2, router) => {
33341
34778
  } else {
33342
34779
  console.log("1111`111");
33343
34780
  if (code2) {
33344
- axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
34781
+ axios$1.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
33345
34782
  setToken(resp.token);
33346
34783
  resolve(resp.token);
33347
34784
  }).catch((e) => {
@@ -33357,7 +34794,7 @@ const pluginLogin = (store2, router) => {
33357
34794
  Code.postMessage("");
33358
34795
  window.getCode = function(res) {
33359
34796
  console.log("getCode res", res);
33360
- axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
34797
+ axios$1.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
33361
34798
  setToken(resp.token);
33362
34799
  resolve(resp.token);
33363
34800
  }).catch((e) => {
@@ -33406,7 +34843,7 @@ const checkLogin = async () => {
33406
34843
  try {
33407
34844
  let token = getToken();
33408
34845
  console.log("checkLogin token", token);
33409
- const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
34846
+ const resp = await axiosSrc.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
33410
34847
  params: {},
33411
34848
  headers: {
33412
34849
  token
@@ -33429,7 +34866,8 @@ var user = {
33429
34866
  userName: "",
33430
34867
  avatarImgPath: "",
33431
34868
  userManageUnitId: "",
33432
- token: getToken()
34869
+ token: getToken(),
34870
+ defaultHome: ""
33433
34871
  },
33434
34872
  mutations: {
33435
34873
  setAvatar(state, avatarPath) {
@@ -33444,6 +34882,9 @@ var user = {
33444
34882
  setToken(state, token) {
33445
34883
  state.token = token;
33446
34884
  setToken(token);
34885
+ },
34886
+ SET_DEFAULT_HOME(state, payload) {
34887
+ state.defaultHome = payload;
33447
34888
  }
33448
34889
  },
33449
34890
  actions: {
@@ -33797,11 +35238,11 @@ const install = function(Vue2, opts = { theme: "" }) {
33797
35238
  doChangeTheme(theme);
33798
35239
  if (location.pathname.includes("scyxweb")) {
33799
35240
  let url = location.protocol + "//" + location.host + "/hbwebchat/scyxweb/ind-mobile/manage/global?t=" + new Date().getTime();
33800
- axios$3.get(url).then((data49) => {
35241
+ axios$1.get(url).then((data49) => {
33801
35242
  Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, data49);
33802
35243
  });
33803
35244
  }
33804
- Vue2.ready = axios$3.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
35245
+ Vue2.ready = axios$1.get(`/user-manage-server/anon/system/qrySystemConfig`, { params: { deviceType: "11" } }).then((response) => {
33805
35246
  var _a;
33806
35247
  try {
33807
35248
  const ret = JSON.parse(((_a = response == null ? void 0 : response.data) == null ? void 0 : _a.settingInfo) || "{}");
@@ -33868,7 +35309,7 @@ if (typeof window !== "undefined" && window.Vue) {
33868
35309
  install(window.Vue);
33869
35310
  }
33870
35311
  const API = {
33871
- version: pkg$1.version,
35312
+ version: pkg.version,
33872
35313
  install,
33873
35314
  components,
33874
35315
  plugins,