@das-fed/upf-utils 6.4.0-hot.8 → 6.4.0-test.0

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.
Files changed (124) hide show
  1. package/api-services/es5.js +1576 -1470
  2. package/api-services/index.js +1067 -1032
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +1359 -1266
  5. package/api-services/modules/app-manage/index.js +1071 -1055
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +1316 -1223
  8. package/api-services/modules/authentication/index.js +1029 -1013
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +1819 -1738
  11. package/api-services/modules/bems/index.js +1422 -1424
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/contract/es5.js +1359 -1266
  14. package/api-services/modules/contract/index.js +1071 -1055
  15. package/api-services/modules/contract/index.js.gz +0 -0
  16. package/api-services/modules/duty-manage/es5.js +1859 -1754
  17. package/api-services/modules/duty-manage/index.js +1461 -1427
  18. package/api-services/modules/duty-manage/index.js.gz +0 -0
  19. package/api-services/modules/enterpriseright/es5.js +1359 -1266
  20. package/api-services/modules/enterpriseright/index.js +1071 -1055
  21. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  22. package/api-services/modules/es5.js +1880 -1795
  23. package/api-services/modules/file/es5.js +1460 -1354
  24. package/api-services/modules/file/index.js +996 -961
  25. package/api-services/modules/file/index.js.gz +0 -0
  26. package/api-services/modules/gateway-edge/es5.js +1819 -1738
  27. package/api-services/modules/gateway-edge/index.js +1423 -1425
  28. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  29. package/api-services/modules/index.js +1337 -1334
  30. package/api-services/modules/index.js.gz +0 -0
  31. package/api-services/modules/iot/es5.js +1875 -1770
  32. package/api-services/modules/iot/index.js +1475 -1441
  33. package/api-services/modules/iot/index.js.gz +0 -0
  34. package/api-services/modules/justauth/es5.js +1821 -1740
  35. package/api-services/modules/justauth/index.js +1424 -1426
  36. package/api-services/modules/justauth/index.js.gz +0 -0
  37. package/api-services/modules/knowledge/es5.js +1359 -1266
  38. package/api-services/modules/knowledge/index.js +1071 -1055
  39. package/api-services/modules/knowledge/index.js.gz +0 -0
  40. package/api-services/modules/link/es5.js +1359 -1266
  41. package/api-services/modules/link/index.js +1071 -1055
  42. package/api-services/modules/link/index.js.gz +0 -0
  43. package/api-services/modules/permission/es5.js +1850 -1745
  44. package/api-services/modules/permission/index.js +1456 -1422
  45. package/api-services/modules/permission/index.js.gz +0 -0
  46. package/api-services/modules/platformManage/es5.js +1369 -1276
  47. package/api-services/modules/platformManage/index.js +1074 -1058
  48. package/api-services/modules/platformManage/index.js.gz +0 -0
  49. package/api-services/modules/portal/es5.js +1359 -1266
  50. package/api-services/modules/portal/index.js +1071 -1055
  51. package/api-services/modules/portal/index.js.gz +0 -0
  52. package/api-services/modules/space-manage/es5.js +1359 -1266
  53. package/api-services/modules/space-manage/index.js +1071 -1055
  54. package/api-services/modules/space-manage/index.js.gz +0 -0
  55. package/api-services/modules/super-admin/es5.js +1390 -1297
  56. package/api-services/modules/super-admin/index.js +1088 -1072
  57. package/api-services/modules/super-admin/index.js.gz +0 -0
  58. package/api-services/modules/supplier/es5.js +1758 -1668
  59. package/api-services/modules/supplier/index.js +1354 -1342
  60. package/api-services/modules/supplier/index.js.gz +0 -0
  61. package/api-services/modules/supplychain-manage/es5.js +1679 -1584
  62. package/api-services/modules/supplychain-manage/index.js +1303 -1283
  63. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  64. package/api-services/modules/systemConfiguration/es5.js +1359 -1266
  65. package/api-services/modules/systemConfiguration/index.js +1071 -1055
  66. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  67. package/api-services/modules/tool/es5.js +1850 -1745
  68. package/api-services/modules/tool/index.js +1456 -1422
  69. package/api-services/modules/tool/index.js.gz +0 -0
  70. package/api-services/src/create-service/es5.js +1357 -1264
  71. package/api-services/src/create-service/index.js +1070 -1055
  72. package/api-services/src/create-service/index.js.gz +0 -0
  73. package/common-info/es5.js +4468 -220
  74. package/common-info/getInfoFromUrl/es5.js +40 -40
  75. package/common-info/getInfoFromUrl/index.js +36 -36
  76. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  77. package/common-info/getPermissionMethod/es5.js +4218 -0
  78. package/common-info/getPermissionMethod/index.d.ts +26 -0
  79. package/common-info/getPermissionMethod/index.js +3342 -0
  80. package/common-info/getPermissionMethod/index.js.gz +0 -0
  81. package/common-info/index.d.ts +11 -2
  82. package/common-info/index.js +3540 -187
  83. package/common-info/index.js.gz +0 -0
  84. package/common-info/set-personal-info/es5.js +22 -23
  85. package/common-info/set-personal-info/index.js +20 -26
  86. package/common-info/set-personal-info/index.js.gz +0 -0
  87. package/common-tools/extract-file-name/es5.js +2 -2
  88. package/common-tools/extract-file-name/index.js +2 -7
  89. package/common-tools/extract-file-name/index.js.gz +0 -0
  90. package/common-tools/handle-data/es5.js +111 -118
  91. package/common-tools/handle-data/index.js +86 -89
  92. package/common-tools/handle-data/index.js.gz +0 -0
  93. package/create-api-service/check-token/es5.js +125 -127
  94. package/create-api-service/check-token/index.js +118 -123
  95. package/create-api-service/check-token/index.js.gz +0 -0
  96. package/create-api-service/es5.js +1358 -1264
  97. package/create-api-service/index.d.ts +7 -7
  98. package/create-api-service/index.js +1072 -1056
  99. package/create-api-service/index.js.gz +0 -0
  100. package/create-api-service/sso/es5.js +317 -325
  101. package/create-api-service/sso/index.js +273 -279
  102. package/create-api-service/sso/index.js.gz +0 -0
  103. package/curring-http/es5.js +2 -2
  104. package/curring-http/index.js +2 -7
  105. package/curring-http/index.js.gz +0 -0
  106. package/directive/auth/es5.js +60 -68
  107. package/directive/auth/index.js +37 -45
  108. package/directive/auth/index.js.gz +0 -0
  109. package/esm-map.json +11 -1
  110. package/hooks/use-get-auth/es5.js +57 -191
  111. package/hooks/use-get-auth/index.d.ts +2 -7
  112. package/hooks/use-get-auth/index.js +16 -50
  113. package/i18n-bridge/es5.js +23 -0
  114. package/i18n-bridge/index.d.ts +10 -0
  115. package/i18n-bridge/index.js +16 -0
  116. package/package.json +3 -4
  117. package/pinyin-first-character/es5.js +1 -1
  118. package/pinyin-first-character/index.js +1 -1
  119. package/pinyin-first-character/index.js.gz +0 -0
  120. package/webSocket-service/es5.js +41 -53
  121. package/webSocket-service/index.js +40 -50
  122. package/webSocket-service/index.js.gz +0 -0
  123. package/hooks/use-get-auth/apis.d.ts +0 -4
  124. package/hooks/use-get-auth/index.js.gz +0 -0
@@ -1,263 +1,4511 @@
1
1
  'use strict';
2
2
 
3
+ var _Xt$sso, _Xt$i18n, _Xt$noRedireLogin;
4
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
5
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
6
+ function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
7
+ function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
8
+ function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
9
+ function _toArray(r) { return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest(); }
10
+ function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
11
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
13
+ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
14
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n4 = 0, F = function F() {}; return { s: F, n: function n() { return _n4 >= r.length ? { done: !0 } : { done: !1, value: r[_n4++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
15
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
17
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
18
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
19
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
20
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
21
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
22
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
23
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
24
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
25
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
26
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
27
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
28
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
29
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
30
+ function _wrapAsyncGenerator(e) { return function () { return new AsyncGenerator(e.apply(this, arguments)); }; }
31
+ function AsyncGenerator(e) { var r, t; function resume(r, t) { try { var n = e[r](t), o = n.value, u = o instanceof _OverloadYield; Promise.resolve(u ? o.v : o).then(function (t) { if (u) { var i = "return" === r ? "return" : "next"; if (!o.k || t.done) return resume(i, t); t = e[i](t).value; } settle(n.done ? "return" : "normal", t); }, function (e) { resume("throw", e); }); } catch (e) { settle("throw", e); } } function settle(e, n) { switch (e) { case "return": r.resolve({ value: n, done: !0 }); break; case "throw": r.reject(n); break; default: r.resolve({ value: n, done: !1 }); } (r = r.next) ? resume(r.key, r.arg) : t = null; } this._invoke = function (e, n) { return new Promise(function (o, u) { var i = { key: e, arg: n, resolve: o, reject: u, next: null }; t ? t = t.next = i : (r = t = i, resume(e, n)); }); }, "function" != typeof e["return"] && (this["return"] = void 0); }
32
+ AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { return this; }, AsyncGenerator.prototype.next = function (e) { return this._invoke("next", e); }, AsyncGenerator.prototype["throw"] = function (e) { return this._invoke("throw", e); }, AsyncGenerator.prototype["return"] = function (e) { return this._invoke("return", e); };
33
+ function _awaitAsyncGenerator(e) { return new _OverloadYield(e, 0); }
34
+ function _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) { return n = !0, r = new Promise(function (n) { n(t[e](r)); }), { done: !1, value: new _OverloadYield(r, 1) }; } return e["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { return this; }, e.next = function (t) { return n ? (n = !1, t) : pump("next", t); }, "function" == typeof t["throw"] && (e["throw"] = function (t) { if (n) throw n = !1, t; return pump("throw", t); }), "function" == typeof t["return"] && (e["return"] = function (t) { return n ? (n = !1, t) : pump("return", t); }), e; }
35
+ function _OverloadYield(e, d) { this.v = e, this.k = d; }
36
+ function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
37
+ function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, "return": function _return(r) { var n = this.s["return"]; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, "throw": function _throw(r) { var n = this.s["return"]; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
3
38
  var config = require('@das-fed/upf-utils/config/es5');
4
39
  var tokenTools = require('@das-fed/upf-utils/token-tools/es5');
5
40
  var getInfoFromUrl = require('@das-fed/upf-utils/common-info/getInfoFromUrl/es5');
6
- var T = function T(e) {
7
- var _t$rightFuncCodes, _t$routeUrl, _t$parentId, _t$id, _t$appId, _t$menuAppearance, _t$name, _t$showName, _ref;
8
- var t = e || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
41
+ var curringHttp = require('@das-fed/upf-utils/curring-http/es5');
42
+ var i18nBridge = require('@das-fed/upf-utils/i18n-bridge/es5');
43
+ var sso = require('@das-fed/upf-utils/create-api-service/sso/es5');
44
+ var kt = require('dayjs');
45
+ var so = require('dayjs/plugin/utc');
46
+ var co = require('dayjs/plugin/timezone');
47
+ var commonInfo = require('@das-fed/upf-utils/common-info/es5');
48
+ var checkToken = require('@das-fed/upf-utils/create-api-service/check-token/es5');
49
+ function Qr(t, e) {
50
+ return function () {
51
+ return t.apply(e, arguments);
52
+ };
53
+ }
54
+ var po = Object.prototype.toString,
55
+ jt = Object.getPrototypeOf,
56
+ qe = Symbol.iterator,
57
+ Xr = Symbol.toStringTag,
58
+ ze = /* @__PURE__ */function (t) {
59
+ return function (e) {
60
+ var n = po.call(e);
61
+ return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
62
+ };
63
+ }(/* @__PURE__ */Object.create(null)),
64
+ $ = function $(t) {
65
+ return t = t.toLowerCase(), function (e) {
66
+ return ze(e) === t;
67
+ };
68
+ },
69
+ He = function He(t) {
70
+ return function (e) {
71
+ return _typeof(e) === t;
72
+ };
73
+ },
74
+ ce = Array.isArray,
75
+ ve = He("undefined");
76
+ function yo(t) {
77
+ return t !== null && !ve(t) && t.constructor !== null && !ve(t.constructor) && _(t.constructor.isBuffer) && t.constructor.isBuffer(t);
78
+ }
79
+ var Zr = $("ArrayBuffer");
80
+ function ho(t) {
81
+ var e;
82
+ return (typeof ArrayBuffer === "undefined" ? "undefined" : _typeof(ArrayBuffer)) < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Zr(t.buffer), e;
83
+ }
84
+ var mo = He("string"),
85
+ _ = He("function"),
86
+ Yr = He("number"),
87
+ We = function We(t) {
88
+ return t !== null && _typeof(t) == "object";
89
+ },
90
+ go = function go(t) {
91
+ return t === true || t === false;
92
+ },
93
+ xe = function xe(t) {
94
+ if (ze(t) !== "object") return false;
95
+ var e = jt(t);
96
+ return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Xr in t) && !(qe in t);
97
+ },
98
+ vo = $("Date"),
99
+ So = $("File"),
100
+ wo = $("Blob"),
101
+ bo = $("FileList"),
102
+ Eo = function Eo(t) {
103
+ return We(t) && _(t.pipe);
104
+ },
105
+ Ao = function Ao(t) {
106
+ var e;
107
+ return t && (typeof FormData == "function" && t instanceof FormData || _(t.append) && ((e = ze(t)) === "formdata" ||
108
+ // detect form-data instance
109
+ e === "object" && _(t.toString) && t.toString() === "[object FormData]"));
110
+ },
111
+ Oo = $("URLSearchParams"),
112
+ _map = ["ReadableStream", "Request", "Response", "Headers"].map($),
113
+ _map2 = _slicedToArray(_map, 4),
114
+ Ro = _map2[0],
115
+ Po = _map2[1],
116
+ Co = _map2[2],
117
+ Io = _map2[3],
118
+ To = function To(t) {
119
+ return t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
120
+ };
121
+ function be(t, e) {
122
+ var _ref3 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},
123
+ _ref3$allOwnKeys = _ref3.allOwnKeys,
124
+ n = _ref3$allOwnKeys === void 0 ? false : _ref3$allOwnKeys;
125
+ if (t === null || _typeof(t) > "u") return;
126
+ var r, o;
127
+ if (_typeof(t) != "object" && (t = [t]), ce(t)) for (r = 0, o = t.length; r < o; r++) e.call(null, t[r], r, t);else {
128
+ var a = n ? Object.getOwnPropertyNames(t) : Object.keys(t),
129
+ i = a.length;
130
+ var s;
131
+ for (r = 0; r < i; r++) s = a[r], e.call(null, t[s], s, t);
132
+ }
133
+ }
134
+ function en(t, e) {
135
+ e = e.toLowerCase();
136
+ var n = Object.keys(t);
137
+ var r = n.length,
138
+ o;
139
+ for (; r-- > 0;) if (o = n[r], e === o.toLowerCase()) return o;
140
+ return null;
141
+ }
142
+ var K = (typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) < "u" ? globalThis : (typeof self === "undefined" ? "undefined" : _typeof(self)) < "u" ? self : (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" ? window : global,
143
+ tn = function tn(t) {
144
+ return !ve(t) && t !== K;
145
+ };
146
+ function Ct() {
147
+ var _ref4 = tn(this) && this || {},
148
+ t = _ref4.caseless,
149
+ e = {},
150
+ n = function n(r, o) {
151
+ var a = t && en(e, o) || o;
152
+ xe(e[a]) && xe(r) ? e[a] = Ct(e[a], r) : xe(r) ? e[a] = Ct({}, r) : ce(r) ? e[a] = r.slice() : e[a] = r;
153
+ };
154
+ for (var r = 0, o = arguments.length; r < o; r++) arguments[r] && be(arguments[r], n);
155
+ return e;
156
+ }
157
+ var xo = function xo(t, e, n) {
158
+ var _ref5 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},
159
+ r = _ref5.allOwnKeys;
160
+ return be(e, function (o, a) {
161
+ n && _(o) ? t[a] = Qr(o, n) : t[a] = o;
162
+ }, {
163
+ allOwnKeys: r
164
+ }), t;
165
+ },
166
+ No = function No(t) {
167
+ return t.charCodeAt(0) === 65279 && (t = t.slice(1)), t;
168
+ },
169
+ _o = function _o(t, e, n, r) {
170
+ t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
171
+ value: e.prototype
172
+ }), n && Object.assign(t.prototype, n);
173
+ },
174
+ Fo = function Fo(t, e, n, r) {
175
+ var o, a, i;
176
+ var s = {};
177
+ if (e = e || {}, t == null) return e;
178
+ do {
179
+ for (o = Object.getOwnPropertyNames(t), a = o.length; a-- > 0;) i = o[a], (!r || r(i, t, e)) && !s[i] && (e[i] = t[i], s[i] = true);
180
+ t = n !== false && jt(t);
181
+ } while (t && (!n || n(t, e)) && t !== Object.prototype);
182
+ return e;
183
+ },
184
+ Do = function Do(t, e, n) {
185
+ t = String(t), (n === undefined || n > t.length) && (n = t.length), n -= e.length;
186
+ var r = t.indexOf(e, n);
187
+ return r !== -1 && r === n;
188
+ },
189
+ $o = function $o(t) {
190
+ if (!t) return null;
191
+ if (ce(t)) return t;
192
+ var e = t.length;
193
+ if (!Yr(e)) return null;
194
+ var n = new Array(e);
195
+ for (; e-- > 0;) n[e] = t[e];
196
+ return n;
197
+ },
198
+ Lo = /* @__PURE__ */function (t) {
199
+ return function (e) {
200
+ return t && e instanceof t;
201
+ };
202
+ }((typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) < "u" && jt(Uint8Array)),
203
+ Uo = function Uo(t, e) {
204
+ var r = (t && t[qe]).call(t);
205
+ var o;
206
+ for (; (o = r.next()) && !o.done;) {
207
+ var a = o.value;
208
+ e.call(t, a[0], a[1]);
209
+ }
210
+ },
211
+ Mo = function Mo(t, e) {
212
+ var n;
213
+ var r = [];
214
+ for (; (n = t.exec(e)) !== null;) r.push(n);
215
+ return r;
216
+ },
217
+ Bo = $("HTMLFormElement"),
218
+ ko = function ko(t) {
219
+ return t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function (n, r, o) {
220
+ return r.toUpperCase() + o;
221
+ });
222
+ },
223
+ Yt = function (_ref6) {
224
+ var t = _ref6.hasOwnProperty;
225
+ return function (e, n) {
226
+ return t.call(e, n);
227
+ };
228
+ }(Object.prototype),
229
+ jo = $("RegExp"),
230
+ rn = function rn(t, e) {
231
+ var n = Object.getOwnPropertyDescriptors(t),
232
+ r = {};
233
+ be(n, function (o, a) {
234
+ var i;
235
+ (i = e(o, a, t)) !== false && (r[a] = i || o);
236
+ }), Object.defineProperties(t, r);
237
+ },
238
+ qo = function qo(t) {
239
+ rn(t, function (e, n) {
240
+ if (_(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1) return false;
241
+ var r = t[n];
242
+ if (_(r)) {
243
+ if (e.enumerable = false, "writable" in e) {
244
+ e.writable = false;
245
+ return;
246
+ }
247
+ e.set || (e.set = function () {
248
+ throw Error("Can not rewrite read-only method '" + n + "'");
249
+ });
250
+ }
251
+ });
252
+ },
253
+ zo = function zo(t, e) {
254
+ var n = {},
255
+ r = function r(o) {
256
+ o.forEach(function (a) {
257
+ n[a] = true;
258
+ });
259
+ };
260
+ return ce(t) ? r(t) : r(String(t).split(e)), n;
261
+ },
262
+ Ho = function Ho() {},
263
+ Wo = function Wo(t, e) {
264
+ return t != null && Number.isFinite(t = +t) ? t : e;
265
+ };
266
+ function Jo(t) {
267
+ return !!(t && _(t.append) && t[Xr] === "FormData" && t[qe]);
268
+ }
269
+ var Go = function Go(t) {
270
+ var e = new Array(10),
271
+ _n2 = function n(r, o) {
272
+ if (We(r)) {
273
+ if (e.indexOf(r) >= 0) return;
274
+ if (!("toJSON" in r)) {
275
+ e[o] = r;
276
+ var a = ce(r) ? [] : {};
277
+ return be(r, function (i, s) {
278
+ var l = _n2(i, o + 1);
279
+ !ve(l) && (a[s] = l);
280
+ }), e[o] = undefined, a;
281
+ }
282
+ }
283
+ return r;
284
+ };
285
+ return _n2(t, 0);
286
+ },
287
+ Vo = $("AsyncFunction"),
288
+ Ko = function Ko(t) {
289
+ return t && (We(t) || _(t)) && _(t.then) && _(t["catch"]);
290
+ },
291
+ nn = function (t, e) {
292
+ return t ? setImmediate : e ? function (n, r) {
293
+ return K.addEventListener("message", function (_ref7) {
294
+ var o = _ref7.source,
295
+ a = _ref7.data;
296
+ o === K && a === n && r.length && r.shift()();
297
+ }, false), function (o) {
298
+ r.push(o), K.postMessage(n, "*");
299
+ };
300
+ }("axios@".concat(Math.random()), []) : function (n) {
301
+ return setTimeout(n);
302
+ };
303
+ }(typeof setImmediate == "function", _(K.postMessage)),
304
+ Qo = (typeof queueMicrotask === "undefined" ? "undefined" : _typeof(queueMicrotask)) < "u" ? queueMicrotask.bind(K) : (typeof process === "undefined" ? "undefined" : _typeof(process)) < "u" && process.nextTick || nn,
305
+ Xo = function Xo(t) {
306
+ return t != null && _(t[qe]);
307
+ },
308
+ p = {
309
+ isArray: ce,
310
+ isArrayBuffer: Zr,
311
+ isBuffer: yo,
312
+ isFormData: Ao,
313
+ isArrayBufferView: ho,
314
+ isString: mo,
315
+ isNumber: Yr,
316
+ isBoolean: go,
317
+ isObject: We,
318
+ isPlainObject: xe,
319
+ isReadableStream: Ro,
320
+ isRequest: Po,
321
+ isResponse: Co,
322
+ isHeaders: Io,
323
+ isUndefined: ve,
324
+ isDate: vo,
325
+ isFile: So,
326
+ isBlob: wo,
327
+ isRegExp: jo,
328
+ isFunction: _,
329
+ isStream: Eo,
330
+ isURLSearchParams: Oo,
331
+ isTypedArray: Lo,
332
+ isFileList: bo,
333
+ forEach: be,
334
+ merge: Ct,
335
+ extend: xo,
336
+ trim: To,
337
+ stripBOM: No,
338
+ inherits: _o,
339
+ toFlatObject: Fo,
340
+ kindOf: ze,
341
+ kindOfTest: $,
342
+ endsWith: Do,
343
+ toArray: $o,
344
+ forEachEntry: Uo,
345
+ matchAll: Mo,
346
+ isHTMLForm: Bo,
347
+ hasOwnProperty: Yt,
348
+ hasOwnProp: Yt,
349
+ // an alias to avoid ESLint no-prototype-builtins detection
350
+ reduceDescriptors: rn,
351
+ freezeMethods: qo,
352
+ toObjectSet: zo,
353
+ toCamelCase: ko,
354
+ noop: Ho,
355
+ toFiniteNumber: Wo,
356
+ findKey: en,
357
+ global: K,
358
+ isContextDefined: tn,
359
+ isSpecCompliantForm: Jo,
360
+ toJSONObject: Go,
361
+ isAsyncFn: Vo,
362
+ isThenable: Ko,
363
+ setImmediate: nn,
364
+ asap: Qo,
365
+ isIterable: Xo
366
+ };
367
+ function S(t, e, n, r, o) {
368
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
369
+ }
370
+ p.inherits(S, Error, {
371
+ toJSON: function toJSON() {
9
372
  return {
10
- authCodes: (_t$rightFuncCodes = t.rightFuncCodes) !== null && _t$rightFuncCodes !== void 0 ? _t$rightFuncCodes : [],
11
- routeUrl: (_t$routeUrl = t.routeUrl) !== null && _t$routeUrl !== void 0 ? _t$routeUrl : "",
12
- parentId: (_t$parentId = t.parentId) !== null && _t$parentId !== void 0 ? _t$parentId : "",
13
- id: (_t$id = t.id) !== null && _t$id !== void 0 ? _t$id : "",
14
- appId: (_t$appId = t.appId) !== null && _t$appId !== void 0 ? _t$appId : "",
15
- menuAppearance: (_t$menuAppearance = t.menuAppearance) !== null && _t$menuAppearance !== void 0 ? _t$menuAppearance : "",
16
- name: (_t$name = t.name) !== null && _t$name !== void 0 ? _t$name : t.showName,
17
- showName: (_t$showName = t.showName) !== null && _t$showName !== void 0 ? _t$showName : "",
18
- type: (_ref = t == null ? undefined : t.type) !== null && _ref !== void 0 ? _ref : ""
373
+ // Standard
374
+ message: this.message,
375
+ name: this.name,
376
+ // Microsoft
377
+ description: this.description,
378
+ number: this.number,
379
+ // Mozilla
380
+ fileName: this.fileName,
381
+ lineNumber: this.lineNumber,
382
+ columnNumber: this.columnNumber,
383
+ stack: this.stack,
384
+ // Axios
385
+ config: p.toJSONObject(this.config),
386
+ code: this.code,
387
+ status: this.status
388
+ };
389
+ }
390
+ });
391
+ var on = S.prototype,
392
+ an = {};
393
+ ["ERR_BAD_OPTION_VALUE", "ERR_BAD_OPTION", "ECONNABORTED", "ETIMEDOUT", "ERR_NETWORK", "ERR_FR_TOO_MANY_REDIRECTS", "ERR_DEPRECATED", "ERR_BAD_RESPONSE", "ERR_BAD_REQUEST", "ERR_CANCELED", "ERR_NOT_SUPPORT", "ERR_INVALID_URL"
394
+ // eslint-disable-next-line func-names
395
+ ].forEach(function (t) {
396
+ an[t] = {
397
+ value: t
398
+ };
399
+ });
400
+ Object.defineProperties(S, an);
401
+ Object.defineProperty(on, "isAxiosError", {
402
+ value: true
403
+ });
404
+ S.from = function (t, e, n, r, o, a) {
405
+ var i = Object.create(on);
406
+ return p.toFlatObject(t, i, function (l) {
407
+ return l !== Error.prototype;
408
+ }, function (s) {
409
+ return s !== "isAxiosError";
410
+ }), S.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
411
+ };
412
+ var Zo = null;
413
+ function It(t) {
414
+ return p.isPlainObject(t) || p.isArray(t);
415
+ }
416
+ function sn(t) {
417
+ return p.endsWith(t, "[]") ? t.slice(0, -2) : t;
418
+ }
419
+ function er(t, e, n) {
420
+ return t ? t.concat(e).map(function (o, a) {
421
+ return o = sn(o), !n && a ? "[" + o + "]" : o;
422
+ }).join(n ? "." : "") : e;
423
+ }
424
+ function Yo(t) {
425
+ return p.isArray(t) && !t.some(It);
426
+ }
427
+ var ea = p.toFlatObject(p, {}, null, function (e) {
428
+ return /^is[A-Z]/.test(e);
429
+ });
430
+ function Je(t, e, n) {
431
+ if (!p.isObject(t)) throw new TypeError("target must be an object");
432
+ e = e || new FormData(), n = p.toFlatObject(n, {
433
+ metaTokens: true,
434
+ dots: false,
435
+ indexes: false
436
+ }, false, function (m, h) {
437
+ return !p.isUndefined(h[m]);
438
+ });
439
+ var r = n.metaTokens,
440
+ o = n.visitor || c,
441
+ a = n.dots,
442
+ i = n.indexes,
443
+ l = (n.Blob || (typeof Blob === "undefined" ? "undefined" : _typeof(Blob)) < "u" && Blob) && p.isSpecCompliantForm(e);
444
+ if (!p.isFunction(o)) throw new TypeError("visitor must be a function");
445
+ function u(y) {
446
+ if (y === null) return "";
447
+ if (p.isDate(y)) return y.toISOString();
448
+ if (p.isBoolean(y)) return y.toString();
449
+ if (!l && p.isBlob(y)) throw new S("Blob is not supported. Use a Buffer instead.");
450
+ return p.isArrayBuffer(y) || p.isTypedArray(y) ? l && typeof Blob == "function" ? new Blob([y]) : Buffer.from(y) : y;
451
+ }
452
+ function c(y, m, h) {
453
+ var w = y;
454
+ if (y && !h && _typeof(y) == "object") {
455
+ if (p.endsWith(m, "{}")) m = r ? m : m.slice(0, -2), y = JSON.stringify(y);else if (p.isArray(y) && Yo(y) || (p.isFileList(y) || p.endsWith(m, "[]")) && (w = p.toArray(y))) return m = sn(m), w.forEach(function (g, A) {
456
+ !(p.isUndefined(g) || g === null) && e.append(
457
+ // eslint-disable-next-line no-nested-ternary
458
+ i === true ? er([m], A, a) : i === null ? m : m + "[]", u(g));
459
+ }), false;
460
+ }
461
+ return It(y) ? true : (e.append(er(h, m, a), u(y)), false);
462
+ }
463
+ var f = [],
464
+ d = Object.assign(ea, {
465
+ defaultVisitor: c,
466
+ convertValue: u,
467
+ isVisitable: It
468
+ });
469
+ function v(y, m) {
470
+ if (!p.isUndefined(y)) {
471
+ if (f.indexOf(y) !== -1) throw Error("Circular reference detected in " + m.join("."));
472
+ f.push(y), p.forEach(y, function (w, E) {
473
+ (!(p.isUndefined(w) || w === null) && o.call(e, w, p.isString(E) ? E.trim() : E, m, d)) === true && v(w, m ? m.concat(E) : [E]);
474
+ }), f.pop();
475
+ }
476
+ }
477
+ if (!p.isObject(t)) throw new TypeError("data must be an object");
478
+ return v(t), e;
479
+ }
480
+ function tr(t) {
481
+ var e = {
482
+ "!": "%21",
483
+ "'": "%27",
484
+ "(": "%28",
485
+ ")": "%29",
486
+ "~": "%7E",
487
+ "%20": "+",
488
+ "%00": "\0"
489
+ };
490
+ return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g, function (r) {
491
+ return e[r];
492
+ });
493
+ }
494
+ function qt(t, e) {
495
+ this._pairs = [], t && Je(t, this, e);
496
+ }
497
+ var cn = qt.prototype;
498
+ cn.append = function (e, n) {
499
+ this._pairs.push([e, n]);
500
+ };
501
+ cn.toString = function (e) {
502
+ var n = e ? function (r) {
503
+ return e.call(this, r, tr);
504
+ } : tr;
505
+ return this._pairs.map(function (o) {
506
+ return n(o[0]) + "=" + n(o[1]);
507
+ }, "").join("&");
508
+ };
509
+ function ta(t) {
510
+ return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
511
+ }
512
+ function ln(t, e, n) {
513
+ if (!e) return t;
514
+ var r = n && n.encode || ta;
515
+ p.isFunction(n) && (n = {
516
+ serialize: n
517
+ });
518
+ var o = n && n.serialize;
519
+ var a;
520
+ if (o ? a = o(e, n) : a = p.isURLSearchParams(e) ? e.toString() : new qt(e, n).toString(r), a) {
521
+ var i = t.indexOf("#");
522
+ i !== -1 && (t = t.slice(0, i)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
523
+ }
524
+ return t;
525
+ }
526
+ var rr = /*#__PURE__*/function () {
527
+ function rr() {
528
+ _classCallCheck(this, rr);
529
+ this.handlers = [];
530
+ }
531
+ /**
532
+ * Add a new interceptor to the stack
533
+ *
534
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
535
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
536
+ *
537
+ * @return {Number} An ID used to remove interceptor later
538
+ */
539
+ return _createClass(rr, [{
540
+ key: "use",
541
+ value: function use(e, n, r) {
542
+ return this.handlers.push({
543
+ fulfilled: e,
544
+ rejected: n,
545
+ synchronous: r ? r.synchronous : false,
546
+ runWhen: r ? r.runWhen : null
547
+ }), this.handlers.length - 1;
548
+ }
549
+ /**
550
+ * Remove an interceptor from the stack
551
+ *
552
+ * @param {Number} id The ID that was returned by `use`
553
+ *
554
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
555
+ */
556
+ }, {
557
+ key: "eject",
558
+ value: function eject(e) {
559
+ this.handlers[e] && (this.handlers[e] = null);
560
+ }
561
+ /**
562
+ * Clear all interceptors from the stack
563
+ *
564
+ * @returns {void}
565
+ */
566
+ }, {
567
+ key: "clear",
568
+ value: function clear() {
569
+ this.handlers && (this.handlers = []);
570
+ }
571
+ /**
572
+ * Iterate over all the registered interceptors
573
+ *
574
+ * This method is particularly useful for skipping over any
575
+ * interceptors that may have become `null` calling `eject`.
576
+ *
577
+ * @param {Function} fn The function to call for each interceptor
578
+ *
579
+ * @returns {void}
580
+ */
581
+ }, {
582
+ key: "forEach",
583
+ value: function forEach(e) {
584
+ p.forEach(this.handlers, function (r) {
585
+ r !== null && e(r);
586
+ });
587
+ }
588
+ }]);
589
+ }();
590
+ var un = {
591
+ silentJSONParsing: true,
592
+ forcedJSONParsing: true,
593
+ clarifyTimeoutError: false
594
+ },
595
+ ra = (typeof URLSearchParams === "undefined" ? "undefined" : _typeof(URLSearchParams)) < "u" ? URLSearchParams : qt,
596
+ na = (typeof FormData === "undefined" ? "undefined" : _typeof(FormData)) < "u" ? FormData : null,
597
+ oa = (typeof Blob === "undefined" ? "undefined" : _typeof(Blob)) < "u" ? Blob : null,
598
+ aa = {
599
+ isBrowser: true,
600
+ classes: {
601
+ URLSearchParams: ra,
602
+ FormData: na,
603
+ Blob: oa
604
+ },
605
+ protocols: ["http", "https", "file", "blob", "url", "data"]
606
+ },
607
+ zt = (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" && (typeof document === "undefined" ? "undefined" : _typeof(document)) < "u",
608
+ Tt = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) == "object" && navigator || undefined,
609
+ ia = zt && (!Tt || ["ReactNative", "NativeScript", "NS"].indexOf(Tt.product) < 0),
610
+ sa = (typeof WorkerGlobalScope === "undefined" ? "undefined" : _typeof(WorkerGlobalScope)) < "u" &&
611
+ // eslint-disable-next-line no-undef
612
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
613
+ ca = zt && window.location.href || "http://localhost",
614
+ la = /* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({
615
+ __proto__: null,
616
+ hasBrowserEnv: zt,
617
+ hasStandardBrowserEnv: ia,
618
+ hasStandardBrowserWebWorkerEnv: sa,
619
+ navigator: Tt,
620
+ origin: ca
621
+ }, Symbol.toStringTag, {
622
+ value: "Module"
623
+ })),
624
+ T = _objectSpread(_objectSpread({}, la), aa);
625
+ function ua(t, e) {
626
+ return Je(t, new T.classes.URLSearchParams(), Object.assign({
627
+ visitor: function visitor(n, r, o, a) {
628
+ return T.isNode && p.isBuffer(n) ? (this.append(r, n.toString("base64")), false) : a.defaultVisitor.apply(this, arguments);
629
+ }
630
+ }, e));
631
+ }
632
+ function fa(t) {
633
+ return p.matchAll(/\w+|\[(\w*)]/g, t).map(function (e) {
634
+ return e[0] === "[]" ? "" : e[1] || e[0];
635
+ });
636
+ }
637
+ function pa(t) {
638
+ var e = {},
639
+ n = Object.keys(t);
640
+ var r;
641
+ var o = n.length;
642
+ var a;
643
+ for (r = 0; r < o; r++) a = n[r], e[a] = t[a];
644
+ return e;
645
+ }
646
+ function fn(t) {
647
+ function e(n, r, o, a) {
648
+ var i = n[a++];
649
+ if (i === "__proto__") return true;
650
+ var s = Number.isFinite(+i),
651
+ l = a >= n.length;
652
+ return i = !i && p.isArray(o) ? o.length : i, l ? (p.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !p.isObject(o[i])) && (o[i] = []), e(n, r, o[i], a) && p.isArray(o[i]) && (o[i] = pa(o[i])), !s);
653
+ }
654
+ if (p.isFormData(t) && p.isFunction(t.entries)) {
655
+ var n = {};
656
+ return p.forEachEntry(t, function (r, o) {
657
+ e(fa(r), o, n, 0);
658
+ }), n;
659
+ }
660
+ return null;
661
+ }
662
+ function da(t, e, n) {
663
+ if (p.isString(t)) try {
664
+ return (e || JSON.parse)(t), p.trim(t);
665
+ } catch (r) {
666
+ if (r.name !== "SyntaxError") throw r;
667
+ }
668
+ return (0, JSON.stringify)(t);
669
+ }
670
+ var Ee = {
671
+ transitional: un,
672
+ adapter: ["xhr", "http", "fetch"],
673
+ transformRequest: [function (e, n) {
674
+ var r = n.getContentType() || "",
675
+ o = r.indexOf("application/json") > -1,
676
+ a = p.isObject(e);
677
+ if (a && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e)) return o ? JSON.stringify(fn(e)) : e;
678
+ if (p.isArrayBuffer(e) || p.isBuffer(e) || p.isStream(e) || p.isFile(e) || p.isBlob(e) || p.isReadableStream(e)) return e;
679
+ if (p.isArrayBufferView(e)) return e.buffer;
680
+ if (p.isURLSearchParams(e)) return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", false), e.toString();
681
+ var s;
682
+ if (a) {
683
+ if (r.indexOf("application/x-www-form-urlencoded") > -1) return ua(e, this.formSerializer).toString();
684
+ if ((s = p.isFileList(e)) || r.indexOf("multipart/form-data") > -1) {
685
+ var l = this.env && this.env.FormData;
686
+ return Je(s ? {
687
+ "files[]": e
688
+ } : e, l && new l(), this.formSerializer);
689
+ }
690
+ }
691
+ return a || o ? (n.setContentType("application/json", false), da(e)) : e;
692
+ }],
693
+ transformResponse: [function (e) {
694
+ var n = this.transitional || Ee.transitional,
695
+ r = n && n.forcedJSONParsing,
696
+ o = this.responseType === "json";
697
+ if (p.isResponse(e) || p.isReadableStream(e)) return e;
698
+ if (e && p.isString(e) && (r && !this.responseType || o)) {
699
+ var i = !(n && n.silentJSONParsing) && o;
700
+ try {
701
+ return JSON.parse(e);
702
+ } catch (s) {
703
+ if (i) throw s.name === "SyntaxError" ? S.from(s, S.ERR_BAD_RESPONSE, this, null, this.response) : s;
704
+ }
705
+ }
706
+ return e;
707
+ }],
708
+ /**
709
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
710
+ * timeout is not created.
711
+ */
712
+ timeout: 0,
713
+ xsrfCookieName: "XSRF-TOKEN",
714
+ xsrfHeaderName: "X-XSRF-TOKEN",
715
+ maxContentLength: -1,
716
+ maxBodyLength: -1,
717
+ env: {
718
+ FormData: T.classes.FormData,
719
+ Blob: T.classes.Blob
720
+ },
721
+ validateStatus: function validateStatus(e) {
722
+ return e >= 200 && e < 300;
723
+ },
724
+ headers: {
725
+ common: {
726
+ Accept: "application/json, text/plain, */*",
727
+ "Content-Type": undefined
728
+ }
729
+ }
730
+ };
731
+ p.forEach(["delete", "get", "head", "post", "put", "patch"], function (t) {
732
+ Ee.headers[t] = {};
733
+ });
734
+ var ya = p.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]),
735
+ ha = function ha(t) {
736
+ var e = {};
737
+ var n, r, o;
738
+ return t && t.split("\n").forEach(function (i) {
739
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || e[n] && ya[n]) && (n === "set-cookie" ? e[n] ? e[n].push(r) : e[n] = [r] : e[n] = e[n] ? e[n] + ", " + r : r);
740
+ }), e;
741
+ },
742
+ nr = Symbol("internals");
743
+ function pe(t) {
744
+ return t && String(t).trim().toLowerCase();
745
+ }
746
+ function Ne(t) {
747
+ return t === false || t == null ? t : p.isArray(t) ? t.map(Ne) : String(t);
748
+ }
749
+ function ma(t) {
750
+ var e = /* @__PURE__ */Object.create(null),
751
+ n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
752
+ var r;
753
+ for (; r = n.exec(t);) e[r[1]] = r[2];
754
+ return e;
755
+ }
756
+ var ga = function ga(t) {
757
+ return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
758
+ };
759
+ function tt(t, e, n, r, o) {
760
+ if (p.isFunction(r)) return r.call(this, e, n);
761
+ if (o && (e = n), !!p.isString(e)) {
762
+ if (p.isString(r)) return e.indexOf(r) !== -1;
763
+ if (p.isRegExp(r)) return r.test(e);
764
+ }
765
+ }
766
+ function va(t) {
767
+ return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, function (e, n, r) {
768
+ return n.toUpperCase() + r;
769
+ });
770
+ }
771
+ function Sa(t, e) {
772
+ var n = p.toCamelCase(" " + e);
773
+ ["get", "set", "has"].forEach(function (r) {
774
+ Object.defineProperty(t, r + n, {
775
+ value: function value(o, a, i) {
776
+ return this[r].call(this, e, o, a, i);
777
+ },
778
+ configurable: true
779
+ });
780
+ });
781
+ }
782
+ var F = /*#__PURE__*/function () {
783
+ function F(e) {
784
+ _classCallCheck(this, F);
785
+ e && this.set(e);
786
+ }
787
+ return _createClass(F, [{
788
+ key: "set",
789
+ value: function set(e, n, r) {
790
+ var o = this;
791
+ function a(s, l, u) {
792
+ var c = pe(l);
793
+ if (!c) throw new Error("header name must be a non-empty string");
794
+ var f = p.findKey(o, c);
795
+ (!f || o[f] === undefined || u === true || u === undefined && o[f] !== false) && (o[f || l] = Ne(s));
796
+ }
797
+ var i = function i(s, l) {
798
+ return p.forEach(s, function (u, c) {
799
+ return a(u, c, l);
800
+ });
801
+ };
802
+ if (p.isPlainObject(e) || e instanceof this.constructor) i(e, n);else if (p.isString(e) && (e = e.trim()) && !ga(e)) i(ha(e), n);else if (p.isObject(e) && p.isIterable(e)) {
803
+ var s = {},
804
+ l,
805
+ u;
806
+ var _iterator2 = _createForOfIteratorHelper(e),
807
+ _step2;
808
+ try {
809
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
810
+ var c = _step2.value;
811
+ if (!p.isArray(c)) throw TypeError("Object iterator must return a key-value pair");
812
+ s[u = c[0]] = (l = s[u]) ? p.isArray(l) ? [].concat(_toConsumableArray(l), [c[1]]) : [l, c[1]] : c[1];
813
+ }
814
+ } catch (err) {
815
+ _iterator2.e(err);
816
+ } finally {
817
+ _iterator2.f();
818
+ }
819
+ i(s, n);
820
+ } else e != null && a(n, e, r);
821
+ return this;
822
+ }
823
+ }, {
824
+ key: "get",
825
+ value: function get(e, n) {
826
+ if (e = pe(e), e) {
827
+ var r = p.findKey(this, e);
828
+ if (r) {
829
+ var o = this[r];
830
+ if (!n) return o;
831
+ if (n === true) return ma(o);
832
+ if (p.isFunction(n)) return n.call(this, o, r);
833
+ if (p.isRegExp(n)) return n.exec(o);
834
+ throw new TypeError("parser must be boolean|regexp|function");
835
+ }
836
+ }
837
+ }
838
+ }, {
839
+ key: "has",
840
+ value: function has(e, n) {
841
+ if (e = pe(e), e) {
842
+ var r = p.findKey(this, e);
843
+ return !!(r && this[r] !== undefined && (!n || tt(this, this[r], r, n)));
844
+ }
845
+ return false;
846
+ }
847
+ }, {
848
+ key: "delete",
849
+ value: function _delete(e, n) {
850
+ var r = this;
851
+ var o = false;
852
+ function a(i) {
853
+ if (i = pe(i), i) {
854
+ var s = p.findKey(r, i);
855
+ s && (!n || tt(r, r[s], s, n)) && (delete r[s], o = true);
856
+ }
857
+ }
858
+ return p.isArray(e) ? e.forEach(a) : a(e), o;
859
+ }
860
+ }, {
861
+ key: "clear",
862
+ value: function clear(e) {
863
+ var n = Object.keys(this);
864
+ var r = n.length,
865
+ o = false;
866
+ for (; r--;) {
867
+ var a = n[r];
868
+ (!e || tt(this, this[a], a, e, true)) && (delete this[a], o = true);
869
+ }
870
+ return o;
871
+ }
872
+ }, {
873
+ key: "normalize",
874
+ value: function normalize(e) {
875
+ var n = this,
876
+ r = {};
877
+ return p.forEach(this, function (o, a) {
878
+ var i = p.findKey(r, a);
879
+ if (i) {
880
+ n[i] = Ne(o), delete n[a];
881
+ return;
882
+ }
883
+ var s = e ? va(a) : String(a).trim();
884
+ s !== a && delete n[a], n[s] = Ne(o), r[s] = true;
885
+ }), this;
886
+ }
887
+ }, {
888
+ key: "concat",
889
+ value: function concat() {
890
+ var _this$constructor;
891
+ for (var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++) {
892
+ e[_key] = arguments[_key];
893
+ }
894
+ return (_this$constructor = this.constructor).concat.apply(_this$constructor, [this].concat(e));
895
+ }
896
+ }, {
897
+ key: "toJSON",
898
+ value: function toJSON(e) {
899
+ var n = /* @__PURE__ */Object.create(null);
900
+ return p.forEach(this, function (r, o) {
901
+ r != null && r !== false && (n[o] = e && p.isArray(r) ? r.join(", ") : r);
902
+ }), n;
903
+ }
904
+ }, {
905
+ key: Symbol.iterator,
906
+ value: function value() {
907
+ return Object.entries(this.toJSON())[Symbol.iterator]();
908
+ }
909
+ }, {
910
+ key: "toString",
911
+ value: function toString() {
912
+ return Object.entries(this.toJSON()).map(function (_ref8) {
913
+ var _ref9 = _slicedToArray(_ref8, 2),
914
+ e = _ref9[0],
915
+ n = _ref9[1];
916
+ return e + ": " + n;
917
+ }).join("\n");
918
+ }
919
+ }, {
920
+ key: "getSetCookie",
921
+ value: function getSetCookie() {
922
+ return this.get("set-cookie") || [];
923
+ }
924
+ }, {
925
+ key: Symbol.toStringTag,
926
+ get: function get() {
927
+ return "AxiosHeaders";
928
+ }
929
+ }], [{
930
+ key: "from",
931
+ value: function from(e) {
932
+ return e instanceof this ? e : new this(e);
933
+ }
934
+ }, {
935
+ key: "concat",
936
+ value: function concat(e) {
937
+ var r = new this(e);
938
+ for (var _len2 = arguments.length, n = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
939
+ n[_key2 - 1] = arguments[_key2];
940
+ }
941
+ return n.forEach(function (o) {
942
+ return r.set(o);
943
+ }), r;
944
+ }
945
+ }, {
946
+ key: "accessor",
947
+ value: function accessor(e) {
948
+ var r = (this[nr] = this[nr] = {
949
+ accessors: {}
950
+ }).accessors,
951
+ o = this.prototype;
952
+ function a(i) {
953
+ var s = pe(i);
954
+ r[s] || (Sa(o, i), r[s] = true);
955
+ }
956
+ return p.isArray(e) ? e.forEach(a) : a(e), this;
957
+ }
958
+ }]);
959
+ }();
960
+ F.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
961
+ p.reduceDescriptors(F.prototype, function (_ref0, e) {
962
+ var t = _ref0.value;
963
+ var n = e[0].toUpperCase() + e.slice(1);
964
+ return {
965
+ get: function get() {
966
+ return t;
967
+ },
968
+ set: function set(r) {
969
+ this[n] = r;
970
+ }
971
+ };
972
+ });
973
+ p.freezeMethods(F);
974
+ function rt(t, e) {
975
+ var n = this || Ee,
976
+ r = e || n,
977
+ o = F.from(r.headers);
978
+ var a = r.data;
979
+ return p.forEach(t, function (s) {
980
+ a = s.call(n, a, o.normalize(), e ? e.status : undefined);
981
+ }), o.normalize(), a;
982
+ }
983
+ function pn(t) {
984
+ return !!(t && t.__CANCEL__);
985
+ }
986
+ function le(t, e, n) {
987
+ S.call(this, t !== null && t !== void 0 ? t : "canceled", S.ERR_CANCELED, e, n), this.name = "CanceledError";
988
+ }
989
+ p.inherits(le, S, {
990
+ __CANCEL__: true
991
+ });
992
+ function dn(t, e, n) {
993
+ var r = n.config.validateStatus;
994
+ !n.status || !r || r(n.status) ? t(n) : e(new S("Request failed with status code " + n.status, [S.ERR_BAD_REQUEST, S.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4], n.config, n.request, n));
995
+ }
996
+ function wa(t) {
997
+ var e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
998
+ return e && e[1] || "";
999
+ }
1000
+ function ba(t, e) {
1001
+ t = t || 10;
1002
+ var n = new Array(t),
1003
+ r = new Array(t);
1004
+ var o = 0,
1005
+ a = 0,
1006
+ i;
1007
+ return e = e !== undefined ? e : 1e3, function (l) {
1008
+ var u = Date.now(),
1009
+ c = r[a];
1010
+ i || (i = u), n[o] = l, r[o] = u;
1011
+ var f = a,
1012
+ d = 0;
1013
+ for (; f !== o;) d += n[f++], f = f % t;
1014
+ if (o = (o + 1) % t, o === a && (a = (a + 1) % t), u - i < e) return;
1015
+ var v = c && u - c;
1016
+ return v ? Math.round(d * 1e3 / v) : undefined;
1017
+ };
1018
+ }
1019
+ function Ea(t, e) {
1020
+ var n = 0,
1021
+ r = 1e3 / e,
1022
+ o,
1023
+ a;
1024
+ var i = function i(u) {
1025
+ var c = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Date.now();
1026
+ n = c, o = null, a && (clearTimeout(a), a = null), t.apply(null, u);
1027
+ };
1028
+ return [function () {
1029
+ var c = Date.now(),
1030
+ f = c - n;
1031
+ for (var _len3 = arguments.length, u = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1032
+ u[_key3] = arguments[_key3];
1033
+ }
1034
+ f >= r ? i(u, c) : (o = u, a || (a = setTimeout(function () {
1035
+ a = null, i(o);
1036
+ }, r - f)));
1037
+ }, function () {
1038
+ return o && i(o);
1039
+ }];
1040
+ }
1041
+ var Le = function Le(t, e) {
1042
+ var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
1043
+ var r = 0;
1044
+ var o = ba(50, 250);
1045
+ return Ea(function (a) {
1046
+ var i = a.loaded,
1047
+ s = a.lengthComputable ? a.total : undefined,
1048
+ l = i - r,
1049
+ u = o(l),
1050
+ c = i <= s;
1051
+ r = i;
1052
+ var f = _defineProperty({
1053
+ loaded: i,
1054
+ total: s,
1055
+ progress: s ? i / s : undefined,
1056
+ bytes: l,
1057
+ rate: u || undefined,
1058
+ estimated: u && s && c ? (s - i) / u : undefined,
1059
+ event: a,
1060
+ lengthComputable: s != null
1061
+ }, e ? "download" : "upload", true);
1062
+ t(f);
1063
+ }, n);
1064
+ },
1065
+ or = function or(t, e) {
1066
+ var n = t != null;
1067
+ return [function (r) {
1068
+ return e[0]({
1069
+ lengthComputable: n,
1070
+ total: t,
1071
+ loaded: r
1072
+ });
1073
+ }, e[1]];
1074
+ },
1075
+ ar = function ar(t) {
1076
+ return function () {
1077
+ for (var _len4 = arguments.length, e = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
1078
+ e[_key4] = arguments[_key4];
1079
+ }
1080
+ return p.asap(function () {
1081
+ return t.apply(void 0, e);
1082
+ });
1083
+ };
1084
+ },
1085
+ Aa = T.hasStandardBrowserEnv ? /* @__PURE__ */function (t, e) {
1086
+ return function (n) {
1087
+ return n = new URL(n, T.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port);
1088
+ };
1089
+ }(new URL(T.origin), T.navigator && /(msie|trident)/i.test(T.navigator.userAgent)) : function () {
1090
+ return true;
1091
+ },
1092
+ Oa = T.hasStandardBrowserEnv ?
1093
+ // Standard browser envs support document.cookie
1094
+ {
1095
+ write: function write(t, e, n, r, o, a) {
1096
+ var i = [t + "=" + encodeURIComponent(e)];
1097
+ p.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), p.isString(r) && i.push("path=" + r), p.isString(o) && i.push("domain=" + o), a === true && i.push("secure"), document.cookie = i.join("; ");
1098
+ },
1099
+ read: function read(t) {
1100
+ var e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
1101
+ return e ? decodeURIComponent(e[3]) : null;
1102
+ },
1103
+ remove: function remove(t) {
1104
+ this.write(t, "", Date.now() - 864e5);
1105
+ }
1106
+ } :
1107
+ // Non-standard browser env (web workers, react-native) lack needed support.
1108
+ {
1109
+ write: function write() {},
1110
+ read: function read() {
1111
+ return null;
1112
+ },
1113
+ remove: function remove() {}
1114
+ };
1115
+ function Ra(t) {
1116
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
1117
+ }
1118
+ function Pa(t, e) {
1119
+ return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
1120
+ }
1121
+ function yn(t, e, n) {
1122
+ var r = !Ra(e);
1123
+ return t && (r || n == false) ? Pa(t, e) : e;
1124
+ }
1125
+ var ir = function ir(t) {
1126
+ return t instanceof F ? _objectSpread({}, t) : t;
1127
+ };
1128
+ function Z(t, e) {
1129
+ e = e || {};
1130
+ var n = {};
1131
+ function r(u, c, f, d) {
1132
+ return p.isPlainObject(u) && p.isPlainObject(c) ? p.merge.call({
1133
+ caseless: d
1134
+ }, u, c) : p.isPlainObject(c) ? p.merge({}, c) : p.isArray(c) ? c.slice() : c;
1135
+ }
1136
+ function o(u, c, f, d) {
1137
+ if (p.isUndefined(c)) {
1138
+ if (!p.isUndefined(u)) return r(undefined, u, f, d);
1139
+ } else return r(u, c, f, d);
1140
+ }
1141
+ function a(u, c) {
1142
+ if (!p.isUndefined(c)) return r(undefined, c);
1143
+ }
1144
+ function i(u, c) {
1145
+ if (p.isUndefined(c)) {
1146
+ if (!p.isUndefined(u)) return r(undefined, u);
1147
+ } else return r(undefined, c);
1148
+ }
1149
+ function s(u, c, f) {
1150
+ if (f in e) return r(u, c);
1151
+ if (f in t) return r(undefined, u);
1152
+ }
1153
+ var l = {
1154
+ url: a,
1155
+ method: a,
1156
+ data: a,
1157
+ baseURL: i,
1158
+ transformRequest: i,
1159
+ transformResponse: i,
1160
+ paramsSerializer: i,
1161
+ timeout: i,
1162
+ timeoutMessage: i,
1163
+ withCredentials: i,
1164
+ withXSRFToken: i,
1165
+ adapter: i,
1166
+ responseType: i,
1167
+ xsrfCookieName: i,
1168
+ xsrfHeaderName: i,
1169
+ onUploadProgress: i,
1170
+ onDownloadProgress: i,
1171
+ decompress: i,
1172
+ maxContentLength: i,
1173
+ maxBodyLength: i,
1174
+ beforeRedirect: i,
1175
+ transport: i,
1176
+ httpAgent: i,
1177
+ httpsAgent: i,
1178
+ cancelToken: i,
1179
+ socketPath: i,
1180
+ responseEncoding: i,
1181
+ validateStatus: s,
1182
+ headers: function headers(u, c, f) {
1183
+ return o(ir(u), ir(c), f, true);
1184
+ }
1185
+ };
1186
+ return p.forEach(Object.keys(Object.assign({}, t, e)), function (c) {
1187
+ var f = l[c] || o,
1188
+ d = f(t[c], e[c], c);
1189
+ p.isUndefined(d) && f !== s || (n[c] = d);
1190
+ }), n;
1191
+ }
1192
+ var hn = function hn(t) {
1193
+ var e = Z({}, t);
1194
+ var n = e.data,
1195
+ r = e.withXSRFToken,
1196
+ o = e.xsrfHeaderName,
1197
+ a = e.xsrfCookieName,
1198
+ i = e.headers,
1199
+ s = e.auth;
1200
+ e.headers = i = F.from(i), e.url = ln(yn(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), s && i.set("Authorization", "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : "")));
1201
+ var l;
1202
+ if (p.isFormData(n)) {
1203
+ if (T.hasStandardBrowserEnv || T.hasStandardBrowserWebWorkerEnv) i.setContentType(undefined);else if ((l = i.getContentType()) !== false) {
1204
+ var _ref1 = l ? l.split(";").map(function (f) {
1205
+ return f.trim();
1206
+ }).filter(Boolean) : [],
1207
+ _ref10 = _toArray(_ref1),
1208
+ u = _ref10[0],
1209
+ c = _ref10.slice(1);
1210
+ i.setContentType([u || "multipart/form-data"].concat(_toConsumableArray(c)).join("; "));
1211
+ }
1212
+ }
1213
+ if (T.hasStandardBrowserEnv && (r && p.isFunction(r) && (r = r(e)), r || r !== false && Aa(e.url))) {
1214
+ var _u = o && a && Oa.read(a);
1215
+ _u && i.set(o, _u);
1216
+ }
1217
+ return e;
1218
+ },
1219
+ Ca = (typeof XMLHttpRequest === "undefined" ? "undefined" : _typeof(XMLHttpRequest)) < "u",
1220
+ Ia = Ca && function (t) {
1221
+ return new Promise(function (n, r) {
1222
+ var _Le, _Le2, _Le3, _Le4;
1223
+ var o = hn(t);
1224
+ var a = o.data;
1225
+ var i = F.from(o.headers).normalize();
1226
+ var s = o.responseType,
1227
+ l = o.onUploadProgress,
1228
+ u = o.onDownloadProgress,
1229
+ c,
1230
+ f,
1231
+ d,
1232
+ v,
1233
+ y;
1234
+ function m() {
1235
+ v && v(), y && y(), o.cancelToken && o.cancelToken.unsubscribe(c), o.signal && o.signal.removeEventListener("abort", c);
1236
+ }
1237
+ var h = new XMLHttpRequest();
1238
+ h.open(o.method.toUpperCase(), o.url, true), h.timeout = o.timeout;
1239
+ function w() {
1240
+ if (!h) return;
1241
+ var g = F.from("getAllResponseHeaders" in h && h.getAllResponseHeaders()),
1242
+ O = {
1243
+ data: !s || s === "text" || s === "json" ? h.responseText : h.response,
1244
+ status: h.status,
1245
+ statusText: h.statusText,
1246
+ headers: g,
1247
+ config: t,
1248
+ request: h
1249
+ };
1250
+ dn(function (N) {
1251
+ n(N), m();
1252
+ }, function (N) {
1253
+ r(N), m();
1254
+ }, O), h = null;
1255
+ }
1256
+ "onloadend" in h ? h.onloadend = w : h.onreadystatechange = function () {
1257
+ !h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(w);
1258
+ }, h.onabort = function () {
1259
+ h && (r(new S("Request aborted", S.ECONNABORTED, t, h)), h = null);
1260
+ }, h.onerror = function () {
1261
+ r(new S("Network Error", S.ERR_NETWORK, t, h)), h = null;
1262
+ }, h.ontimeout = function () {
1263
+ var A = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1264
+ var O = o.transitional || un;
1265
+ o.timeoutErrorMessage && (A = o.timeoutErrorMessage), r(new S(A, O.clarifyTimeoutError ? S.ETIMEDOUT : S.ECONNABORTED, t, h)), h = null;
1266
+ }, a === undefined && i.setContentType(null), "setRequestHeader" in h && p.forEach(i.toJSON(), function (A, O) {
1267
+ h.setRequestHeader(O, A);
1268
+ }), p.isUndefined(o.withCredentials) || (h.withCredentials = !!o.withCredentials), s && s !== "json" && (h.responseType = o.responseType), u && (_Le = Le(u, true), _Le2 = _slicedToArray(_Le, 2), d = _Le2[0], y = _Le2[1], h.addEventListener("progress", d)), l && h.upload && (_Le3 = Le(l), _Le4 = _slicedToArray(_Le3, 2), f = _Le4[0], v = _Le4[1], h.upload.addEventListener("progress", f), h.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = function c(g) {
1269
+ h && (r(!g || g.type ? new le(null, t, h) : g), h.abort(), h = null);
1270
+ }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1271
+ var E = wa(o.url);
1272
+ if (E && T.protocols.indexOf(E) === -1) {
1273
+ r(new S("Unsupported protocol " + E + ":", S.ERR_BAD_REQUEST, t));
1274
+ return;
1275
+ }
1276
+ h.send(a || null);
1277
+ });
1278
+ },
1279
+ Ta = function Ta(t, e) {
1280
+ var _t2 = t = t ? t.filter(Boolean) : [],
1281
+ n = _t2.length;
1282
+ if (e || n) {
1283
+ var r = new AbortController(),
1284
+ o;
1285
+ var a = function a(u) {
1286
+ if (!o) {
1287
+ o = true, s();
1288
+ var c = u instanceof Error ? u : this.reason;
1289
+ r.abort(c instanceof S ? c : new le(c instanceof Error ? c.message : c));
1290
+ }
1291
+ };
1292
+ var i = e && setTimeout(function () {
1293
+ i = null, a(new S("timeout ".concat(e, " of ms exceeded"), S.ETIMEDOUT));
1294
+ }, e);
1295
+ var s = function s() {
1296
+ t && (i && clearTimeout(i), i = null, t.forEach(function (u) {
1297
+ u.unsubscribe ? u.unsubscribe(a) : u.removeEventListener("abort", a);
1298
+ }), t = null);
1299
+ };
1300
+ t.forEach(function (u) {
1301
+ return u.addEventListener("abort", a);
1302
+ });
1303
+ var l = r.signal;
1304
+ return l.unsubscribe = function () {
1305
+ return p.asap(s);
1306
+ }, l;
1307
+ }
1308
+ },
1309
+ xa = /*#__PURE__*/_regenerator().m(function xa(t, e) {
1310
+ var n, r, o;
1311
+ return _regenerator().w(function (_context) {
1312
+ while (1) switch (_context.n) {
1313
+ case 0:
1314
+ n = t.byteLength;
1315
+ if (!(n < e)) {
1316
+ _context.n = 2;
1317
+ break;
1318
+ }
1319
+ _context.n = 1;
1320
+ return t;
1321
+ case 1:
1322
+ return _context.a(2);
1323
+ case 2:
1324
+ r = 0;
1325
+ case 3:
1326
+ if (!(r < n)) {
1327
+ _context.n = 6;
1328
+ break;
1329
+ }
1330
+ o = r + e;
1331
+ _context.n = 4;
1332
+ return t.slice(r, o);
1333
+ case 4:
1334
+ r = o;
1335
+ case 5:
1336
+ _context.n = 3;
1337
+ break;
1338
+ case 6:
1339
+ return _context.a(2);
1340
+ }
1341
+ }, xa);
1342
+ }),
1343
+ Na = /*#__PURE__*/function () {
1344
+ var _ref = _wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee(t, e) {
1345
+ var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, n, _t3;
1346
+ return _regenerator().w(function (_context2) {
1347
+ while (1) switch (_context2.p = _context2.n) {
1348
+ case 0:
1349
+ _iteratorAbruptCompletion = false;
1350
+ _didIteratorError = false;
1351
+ _context2.p = 1;
1352
+ _iterator = _asyncIterator(_a(t));
1353
+ case 2:
1354
+ _context2.n = 3;
1355
+ return _awaitAsyncGenerator(_iterator.next());
1356
+ case 3:
1357
+ if (!(_iteratorAbruptCompletion = !(_step = _context2.v).done)) {
1358
+ _context2.n = 5;
1359
+ break;
1360
+ }
1361
+ n = _step.value;
1362
+ return _context2.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(xa(n, e)), _awaitAsyncGenerator)), 4);
1363
+ case 4:
1364
+ _iteratorAbruptCompletion = false;
1365
+ _context2.n = 2;
1366
+ break;
1367
+ case 5:
1368
+ _context2.n = 7;
1369
+ break;
1370
+ case 6:
1371
+ _context2.p = 6;
1372
+ _t3 = _context2.v;
1373
+ _didIteratorError = true;
1374
+ _iteratorError = _t3;
1375
+ case 7:
1376
+ _context2.p = 7;
1377
+ _context2.p = 8;
1378
+ if (!(_iteratorAbruptCompletion && _iterator["return"] != null)) {
1379
+ _context2.n = 9;
1380
+ break;
1381
+ }
1382
+ _context2.n = 9;
1383
+ return _awaitAsyncGenerator(_iterator["return"]());
1384
+ case 9:
1385
+ _context2.p = 9;
1386
+ if (!_didIteratorError) {
1387
+ _context2.n = 10;
1388
+ break;
1389
+ }
1390
+ throw _iteratorError;
1391
+ case 10:
1392
+ return _context2.f(9);
1393
+ case 11:
1394
+ return _context2.f(7);
1395
+ case 12:
1396
+ return _context2.a(2);
1397
+ }
1398
+ }, _callee, null, [[8,, 9, 11], [1, 6, 7, 12]]);
1399
+ }));
1400
+ return function Na(_x, _x2) {
1401
+ return _ref.apply(this, arguments);
1402
+ };
1403
+ }(),
1404
+ _a = /*#__PURE__*/function () {
1405
+ var _ref2 = _wrapAsyncGenerator(/*#__PURE__*/_regenerator().m(function _callee2(t) {
1406
+ var e, _yield$_awaitAsyncGen, n, r;
1407
+ return _regenerator().w(function (_context3) {
1408
+ while (1) switch (_context3.p = _context3.n) {
1409
+ case 0:
1410
+ if (!t[Symbol.asyncIterator]) {
1411
+ _context3.n = 2;
1412
+ break;
1413
+ }
1414
+ return _context3.d(_regeneratorValues(_asyncGeneratorDelegate(_asyncIterator(t), _awaitAsyncGenerator)), 1);
1415
+ case 1:
1416
+ return _context3.a(2);
1417
+ case 2:
1418
+ e = t.getReader();
1419
+ _context3.p = 3;
1420
+ case 4:
1421
+ _context3.n = 5;
1422
+ return _awaitAsyncGenerator(e.read());
1423
+ case 5:
1424
+ _yield$_awaitAsyncGen = _context3.v;
1425
+ n = _yield$_awaitAsyncGen.done;
1426
+ r = _yield$_awaitAsyncGen.value;
1427
+ if (!n) {
1428
+ _context3.n = 6;
1429
+ break;
1430
+ }
1431
+ return _context3.a(3, 8);
1432
+ case 6:
1433
+ _context3.n = 7;
1434
+ return r;
1435
+ case 7:
1436
+ _context3.n = 4;
1437
+ break;
1438
+ case 8:
1439
+ _context3.p = 8;
1440
+ _context3.n = 9;
1441
+ return _awaitAsyncGenerator(e.cancel());
1442
+ case 9:
1443
+ return _context3.f(8);
1444
+ case 10:
1445
+ return _context3.a(2);
1446
+ }
1447
+ }, _callee2, null, [[3,, 8, 10]]);
1448
+ }));
1449
+ return function _a(_x3) {
1450
+ return _ref2.apply(this, arguments);
1451
+ };
1452
+ }(),
1453
+ sr = function sr(t, e, n, r) {
1454
+ var o = Na(t, e);
1455
+ var a = 0,
1456
+ i,
1457
+ s = function s(l) {
1458
+ i || (i = true, r && r(l));
1459
+ };
1460
+ return new ReadableStream({
1461
+ pull: function pull(l) {
1462
+ return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
1463
+ var _yield$o$next, u, c, f, d, _t4;
1464
+ return _regenerator().w(function (_context4) {
1465
+ while (1) switch (_context4.p = _context4.n) {
1466
+ case 0:
1467
+ _context4.p = 0;
1468
+ _context4.n = 1;
1469
+ return o.next();
1470
+ case 1:
1471
+ _yield$o$next = _context4.v;
1472
+ u = _yield$o$next.done;
1473
+ c = _yield$o$next.value;
1474
+ if (!u) {
1475
+ _context4.n = 2;
1476
+ break;
1477
+ }
1478
+ s(), l.close();
1479
+ return _context4.a(2);
1480
+ case 2:
1481
+ f = c.byteLength;
1482
+ if (n) {
1483
+ d = a += f;
1484
+ n(d);
1485
+ }
1486
+ l.enqueue(new Uint8Array(c));
1487
+ _context4.n = 4;
1488
+ break;
1489
+ case 3:
1490
+ _context4.p = 3;
1491
+ _t4 = _context4.v;
1492
+ throw s(_t4), _t4;
1493
+ case 4:
1494
+ return _context4.a(2);
1495
+ }
1496
+ }, _callee3, null, [[0, 3]]);
1497
+ }))();
1498
+ },
1499
+ cancel: function cancel(l) {
1500
+ return s(l), o["return"]();
1501
+ }
1502
+ }, {
1503
+ highWaterMark: 2
1504
+ });
1505
+ },
1506
+ Ge = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
1507
+ mn = Ge && typeof ReadableStream == "function",
1508
+ Fa = Ge && (typeof TextEncoder == "function" ? /* @__PURE__ */function (t) {
1509
+ return function (e) {
1510
+ return t.encode(e);
1511
+ };
1512
+ }(new TextEncoder()) : (/*#__PURE__*/function () {
1513
+ var _ref11 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(t) {
1514
+ var _t5, _t6;
1515
+ return _regenerator().w(function (_context5) {
1516
+ while (1) switch (_context5.n) {
1517
+ case 0:
1518
+ _t5 = Uint8Array;
1519
+ _context5.n = 1;
1520
+ return new Response(t).arrayBuffer();
1521
+ case 1:
1522
+ _t6 = _context5.v;
1523
+ return _context5.a(2, new _t5(_t6));
1524
+ }
1525
+ }, _callee4);
1526
+ }));
1527
+ return function (_x4) {
1528
+ return _ref11.apply(this, arguments);
1529
+ };
1530
+ }())),
1531
+ gn = function gn(t) {
1532
+ try {
1533
+ for (var _len5 = arguments.length, e = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
1534
+ e[_key5 - 1] = arguments[_key5];
1535
+ }
1536
+ return !!t.apply(void 0, e);
1537
+ } catch (_unused) {
1538
+ return false;
1539
+ }
1540
+ },
1541
+ Da = mn && gn(function () {
1542
+ var t = !1;
1543
+ var e = new Request(T.origin, {
1544
+ body: new ReadableStream(),
1545
+ method: "POST",
1546
+ get duplex() {
1547
+ return t = !0, "half";
1548
+ }
1549
+ }).headers.has("Content-Type");
1550
+ return t && !e;
1551
+ }),
1552
+ cr = 64 * 1024,
1553
+ xt = mn && gn(function () {
1554
+ return p.isReadableStream(new Response("").body);
1555
+ }),
1556
+ Ue = {
1557
+ stream: xt && function (t) {
1558
+ return t.body;
1559
+ }
1560
+ };
1561
+ Ge && function (t) {
1562
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach(function (e) {
1563
+ !Ue[e] && (Ue[e] = p.isFunction(t[e]) ? function (n) {
1564
+ return n[e]();
1565
+ } : function (n, r) {
1566
+ throw new S("Response type '".concat(e, "' is not supported"), S.ERR_NOT_SUPPORT, r);
1567
+ });
1568
+ });
1569
+ }(new Response());
1570
+ var $a = /*#__PURE__*/function () {
1571
+ var _ref12 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(t) {
1572
+ return _regenerator().w(function (_context6) {
1573
+ while (1) switch (_context6.n) {
1574
+ case 0:
1575
+ if (!(t == null)) {
1576
+ _context6.n = 1;
1577
+ break;
1578
+ }
1579
+ return _context6.a(2, 0);
1580
+ case 1:
1581
+ if (!p.isBlob(t)) {
1582
+ _context6.n = 2;
1583
+ break;
1584
+ }
1585
+ return _context6.a(2, t.size);
1586
+ case 2:
1587
+ if (!p.isSpecCompliantForm(t)) {
1588
+ _context6.n = 4;
1589
+ break;
1590
+ }
1591
+ _context6.n = 3;
1592
+ return new Request(T.origin, {
1593
+ method: "POST",
1594
+ body: t
1595
+ }).arrayBuffer();
1596
+ case 3:
1597
+ return _context6.a(2, _context6.v.byteLength);
1598
+ case 4:
1599
+ if (!(p.isArrayBufferView(t) || p.isArrayBuffer(t))) {
1600
+ _context6.n = 5;
1601
+ break;
1602
+ }
1603
+ return _context6.a(2, t.byteLength);
1604
+ case 5:
1605
+ if (!(p.isURLSearchParams(t) && (t = t + ""), p.isString(t))) {
1606
+ _context6.n = 7;
1607
+ break;
1608
+ }
1609
+ _context6.n = 6;
1610
+ return Fa(t);
1611
+ case 6:
1612
+ return _context6.a(2, _context6.v.byteLength);
1613
+ case 7:
1614
+ return _context6.a(2);
1615
+ }
1616
+ }, _callee5);
1617
+ }));
1618
+ return function $a(_x5) {
1619
+ return _ref12.apply(this, arguments);
1620
+ };
1621
+ }(),
1622
+ La = /*#__PURE__*/function () {
1623
+ var _ref13 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(t, e) {
1624
+ var n;
1625
+ return _regenerator().w(function (_context7) {
1626
+ while (1) switch (_context7.n) {
1627
+ case 0:
1628
+ n = p.toFiniteNumber(t.getContentLength());
1629
+ return _context7.a(2, n !== null && n !== void 0 ? n : $a(e));
1630
+ }
1631
+ }, _callee6);
1632
+ }));
1633
+ return function La(_x6, _x7) {
1634
+ return _ref13.apply(this, arguments);
1635
+ };
1636
+ }(),
1637
+ Ua = Ge && (/*#__PURE__*/function () {
1638
+ var _ref14 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(t) {
1639
+ var _hn, e, n, r, o, a, i, s, l, u, c, _hn$withCredentials, f, d, v, y, m, h, O, x, _or, _or2, N, j, w, E, g, _O, _x9, _ref15, _ref16, _N, _j, A, _t7, _t8, _t9;
1640
+ return _regenerator().w(function (_context8) {
1641
+ while (1) switch (_context8.p = _context8.n) {
1642
+ case 0:
1643
+ _hn = hn(t), e = _hn.url, n = _hn.method, r = _hn.data, o = _hn.signal, a = _hn.cancelToken, i = _hn.timeout, s = _hn.onDownloadProgress, l = _hn.onUploadProgress, u = _hn.responseType, c = _hn.headers, _hn$withCredentials = _hn.withCredentials, f = _hn$withCredentials === void 0 ? "same-origin" : _hn$withCredentials, d = _hn.fetchOptions;
1644
+ u = u ? (u + "").toLowerCase() : "text";
1645
+ v = Ta([o, a && a.toAbortSignal()], i);
1646
+ m = v && v.unsubscribe && function () {
1647
+ v.unsubscribe();
1648
+ };
1649
+ _context8.p = 1;
1650
+ _t7 = l && Da && n !== "get" && n !== "head";
1651
+ if (!_t7) {
1652
+ _context8.n = 3;
1653
+ break;
1654
+ }
1655
+ _context8.n = 2;
1656
+ return La(c, r);
1657
+ case 2:
1658
+ _t8 = h = _context8.v;
1659
+ _t7 = _t8 !== 0;
1660
+ case 3:
1661
+ if (!_t7) {
1662
+ _context8.n = 4;
1663
+ break;
1664
+ }
1665
+ O = new Request(e, {
1666
+ method: "POST",
1667
+ body: r,
1668
+ duplex: "half"
1669
+ });
1670
+ if (p.isFormData(r) && (x = O.headers.get("content-type")) && c.setContentType(x), O.body) {
1671
+ _or = or(h, Le(ar(l))), _or2 = _slicedToArray(_or, 2), N = _or2[0], j = _or2[1];
1672
+ r = sr(O.body, cr, N, j);
1673
+ }
1674
+ case 4:
1675
+ p.isString(f) || (f = f ? "include" : "omit");
1676
+ w = "credentials" in Request.prototype;
1677
+ y = new Request(e, _objectSpread(_objectSpread({}, d), {}, {
1678
+ signal: v,
1679
+ method: n.toUpperCase(),
1680
+ headers: c.normalize().toJSON(),
1681
+ body: r,
1682
+ duplex: "half",
1683
+ credentials: w ? f : void 0
1684
+ }));
1685
+ _context8.n = 5;
1686
+ return fetch(y, d);
1687
+ case 5:
1688
+ E = _context8.v;
1689
+ g = xt && (u === "stream" || u === "response");
1690
+ if (xt && (s || g && m)) {
1691
+ _O = {};
1692
+ ["status", "statusText", "headers"].forEach(function (L) {
1693
+ _O[L] = E[L];
1694
+ });
1695
+ _x9 = p.toFiniteNumber(E.headers.get("content-length")), _ref15 = s && or(_x9, Le(ar(s), !0)) || [], _ref16 = _slicedToArray(_ref15, 2), _N = _ref16[0], _j = _ref16[1];
1696
+ E = new Response(sr(E.body, cr, _N, function () {
1697
+ _j && _j(), m && m();
1698
+ }), _O);
1699
+ }
1700
+ u = u || "text";
1701
+ _context8.n = 6;
1702
+ return Ue[p.findKey(Ue, u) || "text"](E, t);
1703
+ case 6:
1704
+ A = _context8.v;
1705
+ !g && m && m();
1706
+ _context8.n = 7;
1707
+ return new Promise(function (O, x) {
1708
+ dn(O, x, {
1709
+ data: A,
1710
+ headers: F.from(E.headers),
1711
+ status: E.status,
1712
+ statusText: E.statusText,
1713
+ config: t,
1714
+ request: y
1715
+ });
1716
+ });
1717
+ case 7:
1718
+ return _context8.a(2, _context8.v);
1719
+ case 8:
1720
+ _context8.p = 8;
1721
+ _t9 = _context8.v;
1722
+ throw m && m(), _t9 && _t9.name === "TypeError" && /Load failed|fetch/i.test(_t9.message) ? Object.assign(new S("Network Error", S.ERR_NETWORK, t, y), {
1723
+ cause: _t9.cause || _t9
1724
+ }) : S.from(_t9, _t9 && _t9.code, t, y);
1725
+ case 9:
1726
+ return _context8.a(2);
1727
+ }
1728
+ }, _callee7, null, [[1, 8]]);
1729
+ }));
1730
+ return function (_x8) {
1731
+ return _ref14.apply(this, arguments);
1732
+ };
1733
+ }()),
1734
+ Nt = {
1735
+ http: Zo,
1736
+ xhr: Ia,
1737
+ fetch: Ua
1738
+ };
1739
+ p.forEach(Nt, function (t, e) {
1740
+ if (t) {
1741
+ try {
1742
+ Object.defineProperty(t, "name", {
1743
+ value: e
1744
+ });
1745
+ } catch (_unused2) {}
1746
+ Object.defineProperty(t, "adapterName", {
1747
+ value: e
1748
+ });
1749
+ }
1750
+ });
1751
+ var lr = function lr(t) {
1752
+ return "- ".concat(t);
1753
+ },
1754
+ Ma = function Ma(t) {
1755
+ return p.isFunction(t) || t === null || t === false;
1756
+ },
1757
+ vn = {
1758
+ getAdapter: function getAdapter(t) {
1759
+ t = p.isArray(t) ? t : [t];
1760
+ var _t0 = t,
1761
+ e = _t0.length;
1762
+ var n, r;
1763
+ var o = {};
1764
+ for (var a = 0; a < e; a++) {
1765
+ n = t[a];
1766
+ var i = void 0;
1767
+ if (r = n, !Ma(n) && (r = Nt[(i = String(n)).toLowerCase()], r === undefined)) throw new S("Unknown adapter '".concat(i, "'"));
1768
+ if (r) break;
1769
+ o[i || "#" + a] = r;
1770
+ }
1771
+ if (!r) {
1772
+ var _a2 = Object.entries(o).map(function (_ref17) {
1773
+ var _ref18 = _slicedToArray(_ref17, 2),
1774
+ s = _ref18[0],
1775
+ l = _ref18[1];
1776
+ return "adapter ".concat(s, " ") + (l === false ? "is not supported by the environment" : "is not available in the build");
1777
+ });
1778
+ var _i2 = e ? _a2.length > 1 ? "since :\n" + _a2.map(lr).join("\n") : " " + lr(_a2[0]) : "as no adapter specified";
1779
+ throw new S("There is no suitable adapter to dispatch the request " + _i2, "ERR_NOT_SUPPORT");
1780
+ }
1781
+ return r;
1782
+ },
1783
+ adapters: Nt
1784
+ };
1785
+ function nt(t) {
1786
+ if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted) throw new le(null, t);
1787
+ }
1788
+ function ur(t) {
1789
+ return nt(t), t.headers = F.from(t.headers), t.data = rt.call(t, t.transformRequest), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", false), vn.getAdapter(t.adapter || Ee.adapter)(t).then(function (r) {
1790
+ return nt(t), r.data = rt.call(t, t.transformResponse, r), r.headers = F.from(r.headers), r;
1791
+ }, function (r) {
1792
+ return pn(r) || (nt(t), r && r.response && (r.response.data = rt.call(t, t.transformResponse, r.response), r.response.headers = F.from(r.response.headers))), Promise.reject(r);
1793
+ });
1794
+ }
1795
+ var Sn = "1.10.0",
1796
+ Ve = {};
1797
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach(function (t, e) {
1798
+ Ve[t] = function (r) {
1799
+ return _typeof(r) === t || "a" + (e < 1 ? "n " : " ") + t;
1800
+ };
1801
+ });
1802
+ var fr = {};
1803
+ Ve.transitional = function (e, n, r) {
1804
+ function o(a, i) {
1805
+ return "[Axios v" + Sn + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
1806
+ }
1807
+ return function (a, i, s) {
1808
+ if (e === false) throw new S(o(i, " has been removed" + (n ? " in " + n : "")), S.ERR_DEPRECATED);
1809
+ return n && !fr[i] && (fr[i] = true), e ? e(a, i, s) : true;
1810
+ };
1811
+ };
1812
+ Ve.spelling = function (e) {
1813
+ return function (n, r) {
1814
+ return true;
1815
+ };
1816
+ };
1817
+ function Ba(t, e, n) {
1818
+ if (_typeof(t) != "object") throw new S("options must be an object", S.ERR_BAD_OPTION_VALUE);
1819
+ var r = Object.keys(t);
1820
+ var o = r.length;
1821
+ for (; o-- > 0;) {
1822
+ var a = r[o],
1823
+ i = e[a];
1824
+ if (i) {
1825
+ var s = t[a],
1826
+ l = s === undefined || i(s, a, t);
1827
+ if (l !== true) throw new S("option " + a + " must be " + l, S.ERR_BAD_OPTION_VALUE);
1828
+ continue;
1829
+ }
1830
+ if (n !== true) throw new S("Unknown option " + a, S.ERR_BAD_OPTION);
1831
+ }
1832
+ }
1833
+ var _e = {
1834
+ assertOptions: Ba,
1835
+ validators: Ve
1836
+ },
1837
+ U = _e.validators;
1838
+ var Q = /*#__PURE__*/function () {
1839
+ function Q(e) {
1840
+ _classCallCheck(this, Q);
1841
+ this.defaults = e || {}, this.interceptors = {
1842
+ request: new rr(),
1843
+ response: new rr()
1844
+ };
1845
+ }
1846
+ /**
1847
+ * Dispatch a request
1848
+ *
1849
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1850
+ * @param {?Object} config
1851
+ *
1852
+ * @returns {Promise} The Promise to be fulfilled
1853
+ */
1854
+ return _createClass(Q, [{
1855
+ key: "request",
1856
+ value: (function () {
1857
+ var _request2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(e, n) {
1858
+ var o, a, _t1;
1859
+ return _regenerator().w(function (_context9) {
1860
+ while (1) switch (_context9.p = _context9.n) {
1861
+ case 0:
1862
+ _context9.p = 0;
1863
+ _context9.n = 1;
1864
+ return this._request(e, n);
1865
+ case 1:
1866
+ return _context9.a(2, _context9.v);
1867
+ case 2:
1868
+ _context9.p = 2;
1869
+ _t1 = _context9.v;
1870
+ if (_t1 instanceof Error) {
1871
+ o = {};
1872
+ Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
1873
+ a = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1874
+ try {
1875
+ _t1.stack ? a && !String(_t1.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (_t1.stack += "\n" + a) : _t1.stack = a;
1876
+ } catch (_unused3) {}
1877
+ }
1878
+ throw _t1;
1879
+ case 3:
1880
+ return _context9.a(2);
1881
+ }
1882
+ }, _callee8, this, [[0, 2]]);
1883
+ }));
1884
+ function request(_x0, _x1) {
1885
+ return _request2.apply(this, arguments);
1886
+ }
1887
+ return request;
1888
+ }())
1889
+ }, {
1890
+ key: "_request",
1891
+ value: function _request(e, n) {
1892
+ typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = Z(this.defaults, n);
1893
+ var _n3 = n,
1894
+ r = _n3.transitional,
1895
+ o = _n3.paramsSerializer,
1896
+ a = _n3.headers;
1897
+ r !== undefined && _e.assertOptions(r, {
1898
+ silentJSONParsing: U.transitional(U["boolean"]),
1899
+ forcedJSONParsing: U.transitional(U["boolean"]),
1900
+ clarifyTimeoutError: U.transitional(U["boolean"])
1901
+ }, false), o != null && (p.isFunction(o) ? n.paramsSerializer = {
1902
+ serialize: o
1903
+ } : _e.assertOptions(o, {
1904
+ encode: U["function"],
1905
+ serialize: U["function"]
1906
+ }, true)), n.allowAbsoluteUrls !== undefined || (this.defaults.allowAbsoluteUrls !== undefined ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = true), _e.assertOptions(n, {
1907
+ baseUrl: U.spelling("baseURL"),
1908
+ withXsrfToken: U.spelling("withXSRFToken")
1909
+ }, true), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1910
+ var i = a && p.merge(a.common, a[n.method]);
1911
+ a && p.forEach(["delete", "get", "head", "post", "put", "patch", "common"], function (y) {
1912
+ delete a[y];
1913
+ }), n.headers = F.concat(i, a);
1914
+ var s = [];
1915
+ var l = true;
1916
+ this.interceptors.request.forEach(function (m) {
1917
+ typeof m.runWhen == "function" && m.runWhen(n) === false || (l = l && m.synchronous, s.unshift(m.fulfilled, m.rejected));
1918
+ });
1919
+ var u = [];
1920
+ this.interceptors.response.forEach(function (m) {
1921
+ u.push(m.fulfilled, m.rejected);
1922
+ });
1923
+ var c,
1924
+ f = 0,
1925
+ d;
1926
+ if (!l) {
1927
+ var y = [ur.bind(this), undefined];
1928
+ for (y.unshift.apply(y, s), y.push.apply(y, u), d = y.length, c = Promise.resolve(n); f < d;) c = c.then(y[f++], y[f++]);
1929
+ return c;
1930
+ }
1931
+ d = s.length;
1932
+ var v = n;
1933
+ for (f = 0; f < d;) {
1934
+ var _y = s[f++],
1935
+ m = s[f++];
1936
+ try {
1937
+ v = _y(v);
1938
+ } catch (h) {
1939
+ m.call(this, h);
1940
+ break;
1941
+ }
1942
+ }
1943
+ try {
1944
+ c = ur.call(this, v);
1945
+ } catch (y) {
1946
+ return Promise.reject(y);
1947
+ }
1948
+ for (f = 0, d = u.length; f < d;) c = c.then(u[f++], u[f++]);
1949
+ return c;
1950
+ }
1951
+ }, {
1952
+ key: "getUri",
1953
+ value: function getUri(e) {
1954
+ e = Z(this.defaults, e);
1955
+ var n = yn(e.baseURL, e.url, e.allowAbsoluteUrls);
1956
+ return ln(n, e.params, e.paramsSerializer);
1957
+ }
1958
+ }]);
1959
+ }();
1960
+ p.forEach(["delete", "get", "head", "options"], function (e) {
1961
+ Q.prototype[e] = function (n, r) {
1962
+ return this.request(Z(r || {}, {
1963
+ method: e,
1964
+ url: n,
1965
+ data: (r || {}).data
1966
+ }));
1967
+ };
1968
+ });
1969
+ p.forEach(["post", "put", "patch"], function (e) {
1970
+ function n(r) {
1971
+ return function (a, i, s) {
1972
+ return this.request(Z(s || {}, {
1973
+ method: e,
1974
+ headers: r ? {
1975
+ "Content-Type": "multipart/form-data"
1976
+ } : {},
1977
+ url: a,
1978
+ data: i
1979
+ }));
1980
+ };
1981
+ }
1982
+ Q.prototype[e] = n(), Q.prototype[e + "Form"] = n(true);
1983
+ });
1984
+ var Ht = /*#__PURE__*/function () {
1985
+ function Ht(e) {
1986
+ _classCallCheck(this, Ht);
1987
+ if (typeof e != "function") throw new TypeError("executor must be a function.");
1988
+ var n;
1989
+ this.promise = new Promise(function (a) {
1990
+ n = a;
1991
+ });
1992
+ var r = this;
1993
+ this.promise.then(function (o) {
1994
+ if (!r._listeners) return;
1995
+ var a = r._listeners.length;
1996
+ for (; a-- > 0;) r._listeners[a](o);
1997
+ r._listeners = null;
1998
+ }), this.promise.then = function (o) {
1999
+ var a;
2000
+ var i = new Promise(function (s) {
2001
+ r.subscribe(s), a = s;
2002
+ }).then(o);
2003
+ return i.cancel = function () {
2004
+ r.unsubscribe(a);
2005
+ }, i;
2006
+ }, e(function (a, i, s) {
2007
+ r.reason || (r.reason = new le(a, i, s), n(r.reason));
2008
+ });
2009
+ }
2010
+ /**
2011
+ * Throws a `CanceledError` if cancellation has been requested.
2012
+ */
2013
+ return _createClass(Ht, [{
2014
+ key: "throwIfRequested",
2015
+ value: function throwIfRequested() {
2016
+ if (this.reason) throw this.reason;
2017
+ }
2018
+ /**
2019
+ * Subscribe to the cancel signal
2020
+ */
2021
+ }, {
2022
+ key: "subscribe",
2023
+ value: function subscribe(e) {
2024
+ if (this.reason) {
2025
+ e(this.reason);
2026
+ return;
2027
+ }
2028
+ this._listeners ? this._listeners.push(e) : this._listeners = [e];
2029
+ }
2030
+ /**
2031
+ * Unsubscribe from the cancel signal
2032
+ */
2033
+ }, {
2034
+ key: "unsubscribe",
2035
+ value: function unsubscribe(e) {
2036
+ if (!this._listeners) return;
2037
+ var n = this._listeners.indexOf(e);
2038
+ n !== -1 && this._listeners.splice(n, 1);
2039
+ }
2040
+ }, {
2041
+ key: "toAbortSignal",
2042
+ value: function toAbortSignal() {
2043
+ var _this = this;
2044
+ var e = new AbortController(),
2045
+ n = function n(r) {
2046
+ e.abort(r);
2047
+ };
2048
+ return this.subscribe(n), e.signal.unsubscribe = function () {
2049
+ return _this.unsubscribe(n);
2050
+ }, e.signal;
2051
+ }
2052
+ /**
2053
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
2054
+ * cancels the `CancelToken`.
2055
+ */
2056
+ }], [{
2057
+ key: "source",
2058
+ value: function source() {
2059
+ var e;
2060
+ return {
2061
+ token: new Ht(function (o) {
2062
+ e = o;
2063
+ }),
2064
+ cancel: e
2065
+ };
2066
+ }
2067
+ }]);
2068
+ }();
2069
+ function ka(t) {
2070
+ return function (n) {
2071
+ return t.apply(null, n);
2072
+ };
2073
+ }
2074
+ function ja(t) {
2075
+ return p.isObject(t) && t.isAxiosError === true;
2076
+ }
2077
+ var _t = {
2078
+ Continue: 100,
2079
+ SwitchingProtocols: 101,
2080
+ Processing: 102,
2081
+ EarlyHints: 103,
2082
+ Ok: 200,
2083
+ Created: 201,
2084
+ Accepted: 202,
2085
+ NonAuthoritativeInformation: 203,
2086
+ NoContent: 204,
2087
+ ResetContent: 205,
2088
+ PartialContent: 206,
2089
+ MultiStatus: 207,
2090
+ AlreadyReported: 208,
2091
+ ImUsed: 226,
2092
+ MultipleChoices: 300,
2093
+ MovedPermanently: 301,
2094
+ Found: 302,
2095
+ SeeOther: 303,
2096
+ NotModified: 304,
2097
+ UseProxy: 305,
2098
+ Unused: 306,
2099
+ TemporaryRedirect: 307,
2100
+ PermanentRedirect: 308,
2101
+ BadRequest: 400,
2102
+ Unauthorized: 401,
2103
+ PaymentRequired: 402,
2104
+ Forbidden: 403,
2105
+ NotFound: 404,
2106
+ MethodNotAllowed: 405,
2107
+ NotAcceptable: 406,
2108
+ ProxyAuthenticationRequired: 407,
2109
+ RequestTimeout: 408,
2110
+ Conflict: 409,
2111
+ Gone: 410,
2112
+ LengthRequired: 411,
2113
+ PreconditionFailed: 412,
2114
+ PayloadTooLarge: 413,
2115
+ UriTooLong: 414,
2116
+ UnsupportedMediaType: 415,
2117
+ RangeNotSatisfiable: 416,
2118
+ ExpectationFailed: 417,
2119
+ ImATeapot: 418,
2120
+ MisdirectedRequest: 421,
2121
+ UnprocessableEntity: 422,
2122
+ Locked: 423,
2123
+ FailedDependency: 424,
2124
+ TooEarly: 425,
2125
+ UpgradeRequired: 426,
2126
+ PreconditionRequired: 428,
2127
+ TooManyRequests: 429,
2128
+ RequestHeaderFieldsTooLarge: 431,
2129
+ UnavailableForLegalReasons: 451,
2130
+ InternalServerError: 500,
2131
+ NotImplemented: 501,
2132
+ BadGateway: 502,
2133
+ ServiceUnavailable: 503,
2134
+ GatewayTimeout: 504,
2135
+ HttpVersionNotSupported: 505,
2136
+ VariantAlsoNegotiates: 506,
2137
+ InsufficientStorage: 507,
2138
+ LoopDetected: 508,
2139
+ NotExtended: 510,
2140
+ NetworkAuthenticationRequired: 511
2141
+ };
2142
+ Object.entries(_t).forEach(function (_ref19) {
2143
+ var _ref20 = _slicedToArray(_ref19, 2),
2144
+ t = _ref20[0],
2145
+ e = _ref20[1];
2146
+ _t[e] = t;
2147
+ });
2148
+ function wn(t) {
2149
+ var e = new Q(t),
2150
+ n = Qr(Q.prototype.request, e);
2151
+ return p.extend(n, Q.prototype, e, {
2152
+ allOwnKeys: true
2153
+ }), p.extend(n, e, null, {
2154
+ allOwnKeys: true
2155
+ }), n.create = function (o) {
2156
+ return wn(Z(t, o));
2157
+ }, n;
2158
+ }
2159
+ var P = wn(Ee);
2160
+ P.Axios = Q;
2161
+ P.CanceledError = le;
2162
+ P.CancelToken = Ht;
2163
+ P.isCancel = pn;
2164
+ P.VERSION = Sn;
2165
+ P.toFormData = Je;
2166
+ P.AxiosError = S;
2167
+ P.Cancel = P.CanceledError;
2168
+ P.all = function (e) {
2169
+ return Promise.all(e);
2170
+ };
2171
+ P.spread = ka;
2172
+ P.isAxiosError = ja;
2173
+ P.mergeConfig = Z;
2174
+ P.AxiosHeaders = F;
2175
+ P.formToJSON = function (t) {
2176
+ return fn(p.isHTMLForm(t) ? new FormData(t) : t);
2177
+ };
2178
+ P.getAdapter = vn.getAdapter;
2179
+ P.HttpStatusCode = _t;
2180
+ P["default"] = P;
2181
+ var pr = (typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) < "u" ? globalThis : (typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" ? window : (typeof global === "undefined" ? "undefined" : _typeof(global)) < "u" ? global : (typeof self === "undefined" ? "undefined" : _typeof(self)) < "u" ? self : {};
2182
+ function qa(t) {
2183
+ return t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t["default"] : t;
2184
+ }
2185
+ function za(t) {
2186
+ if (t.__esModule) return t;
2187
+ var e = t["default"];
2188
+ if (typeof e == "function") {
2189
+ var n = function r() {
2190
+ return this instanceof r ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
2191
+ };
2192
+ n.prototype = e.prototype;
2193
+ } else n = {};
2194
+ return Object.defineProperty(n, "__esModule", {
2195
+ value: true
2196
+ }), Object.keys(t).forEach(function (r) {
2197
+ var o = Object.getOwnPropertyDescriptor(t, r);
2198
+ Object.defineProperty(n, r, o.get ? o : {
2199
+ enumerable: true,
2200
+ get: function get() {
2201
+ return t[r];
2202
+ }
2203
+ });
2204
+ }), n;
2205
+ }
2206
+ var ue = TypeError;
2207
+ var Ha = {},
2208
+ Wa = /* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({
2209
+ __proto__: null,
2210
+ "default": Ha
2211
+ }, Symbol.toStringTag, {
2212
+ value: "Module"
2213
+ })),
2214
+ Ja = /* @__PURE__ */za(Wa);
2215
+ var Wt = typeof Map == "function" && Map.prototype,
2216
+ ot = Object.getOwnPropertyDescriptor && Wt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null,
2217
+ Me = Wt && ot && typeof ot.get == "function" ? ot.get : null,
2218
+ dr = Wt && Map.prototype.forEach,
2219
+ Jt = typeof Set == "function" && Set.prototype,
2220
+ at = Object.getOwnPropertyDescriptor && Jt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null,
2221
+ Be = Jt && at && typeof at.get == "function" ? at.get : null,
2222
+ yr = Jt && Set.prototype.forEach,
2223
+ Ga = typeof WeakMap == "function" && WeakMap.prototype,
2224
+ ye = Ga ? WeakMap.prototype.has : null,
2225
+ Va = typeof WeakSet == "function" && WeakSet.prototype,
2226
+ he = Va ? WeakSet.prototype.has : null,
2227
+ Ka = typeof WeakRef == "function" && WeakRef.prototype,
2228
+ hr = Ka ? WeakRef.prototype.deref : null,
2229
+ Qa = Boolean.prototype.valueOf,
2230
+ Xa = Object.prototype.toString,
2231
+ Za = Function.prototype.toString,
2232
+ Ya = String.prototype.match,
2233
+ Gt = String.prototype.slice,
2234
+ J = String.prototype.replace,
2235
+ ei = String.prototype.toUpperCase,
2236
+ mr = String.prototype.toLowerCase,
2237
+ bn = RegExp.prototype.test,
2238
+ gr = Array.prototype.concat,
2239
+ k = Array.prototype.join,
2240
+ ti = Array.prototype.slice,
2241
+ vr = Math.floor,
2242
+ Ft = typeof BigInt == "function" ? BigInt.prototype.valueOf : null,
2243
+ it = Object.getOwnPropertySymbols,
2244
+ Dt = typeof Symbol == "function" && _typeof(Symbol.iterator) == "symbol" ? Symbol.prototype.toString : null,
2245
+ ie = typeof Symbol == "function" && _typeof(Symbol.iterator) == "object",
2246
+ me = typeof Symbol == "function" && Symbol.toStringTag && (_typeof(Symbol.toStringTag) === ie || true) ? Symbol.toStringTag : null,
2247
+ En = Object.prototype.propertyIsEnumerable,
2248
+ Sr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function (t) {
2249
+ return t.__proto__;
2250
+ } : null);
2251
+ function wr(t, e) {
2252
+ if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || bn.call(/e/, e)) return e;
2253
+ var n = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
2254
+ if (typeof t == "number") {
2255
+ var r = t < 0 ? -vr(-t) : vr(t);
2256
+ if (r !== t) {
2257
+ var o = String(r),
2258
+ a = Gt.call(e, o.length + 1);
2259
+ return J.call(o, n, "$&_") + "." + J.call(J.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
2260
+ }
2261
+ }
2262
+ return J.call(e, n, "$&_");
2263
+ }
2264
+ var $t = Ja,
2265
+ br = $t.custom,
2266
+ Er = Rn(br) ? br : null,
2267
+ An = {
2268
+ __proto__: null,
2269
+ "double": '"',
2270
+ single: "'"
2271
+ },
2272
+ ri = {
2273
+ __proto__: null,
2274
+ "double": /(["\\])/g,
2275
+ single: /(['\\])/g
2276
+ },
2277
+ Ke = function t(e, n, r, o) {
2278
+ var a = n || {};
2279
+ if (z(a, "quoteStyle") && !z(An, a.quoteStyle)) throw new TypeError('option "quoteStyle" must be "single" or "double"');
2280
+ if (z(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null)) throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
2281
+ var i = z(a, "customInspect") ? a.customInspect : true;
2282
+ if (typeof i != "boolean" && i !== "symbol") throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
2283
+ if (z(a, "indent") && a.indent !== null && a.indent !== " " && !(parseInt(a.indent, 10) === a.indent && a.indent > 0)) throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
2284
+ if (z(a, "numericSeparator") && typeof a.numericSeparator != "boolean") throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
2285
+ var s = a.numericSeparator;
2286
+ if (_typeof(e) > "u") return "undefined";
2287
+ if (e === null) return "null";
2288
+ if (typeof e == "boolean") return e ? "true" : "false";
2289
+ if (typeof e == "string") return Cn(e, a);
2290
+ if (typeof e == "number") {
2291
+ if (e === 0) return 1 / 0 / e > 0 ? "0" : "-0";
2292
+ var l = String(e);
2293
+ return s ? wr(e, l) : l;
2294
+ }
2295
+ if (typeof e == "bigint") {
2296
+ var u = String(e) + "n";
2297
+ return s ? wr(e, u) : u;
2298
+ }
2299
+ var c = _typeof(a.depth) > "u" ? 5 : a.depth;
2300
+ if (_typeof(r) > "u" && (r = 0), r >= c && c > 0 && _typeof(e) == "object") return Lt(e) ? "[Array]" : "[Object]";
2301
+ var f = wi(a, r);
2302
+ if (_typeof(o) > "u") o = [];else if (Pn(o, e) >= 0) return "[Circular]";
2303
+ function d(D, W, q) {
2304
+ if (W && (o = ti.call(o), o.push(W)), q) {
2305
+ var fe = {
2306
+ depth: a.depth
2307
+ };
2308
+ return z(a, "quoteStyle") && (fe.quoteStyle = a.quoteStyle), t(D, fe, r + 1, o);
2309
+ }
2310
+ return t(D, a, r + 1, o);
2311
+ }
2312
+ if (typeof e == "function" && !Ar(e)) {
2313
+ var v = fi(e),
2314
+ y = Ce(e, d);
2315
+ return "[Function" + (v ? ": " + v : " (anonymous)") + "]" + (y.length > 0 ? " { " + k.call(y, ", ") + " }" : "");
2316
+ }
2317
+ if (Rn(e)) {
2318
+ var m = ie ? J.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Dt.call(e);
2319
+ return _typeof(e) == "object" && !ie ? de(m) : m;
2320
+ }
2321
+ if (gi(e)) {
2322
+ for (var h = "<" + mr.call(String(e.nodeName)), w = e.attributes || [], E = 0; E < w.length; E++) h += " " + w[E].name + "=" + On(ni(w[E].value), "double", a);
2323
+ return h += ">", e.childNodes && e.childNodes.length && (h += "..."), h += "</" + mr.call(String(e.nodeName)) + ">", h;
2324
+ }
2325
+ if (Lt(e)) {
2326
+ if (e.length === 0) return "[]";
2327
+ var g = Ce(e, d);
2328
+ return f && !Si(g) ? "[" + Ut(g, f) + "]" : "[ " + k.call(g, ", ") + " ]";
2329
+ }
2330
+ if (ai(e)) {
2331
+ var A = Ce(e, d);
2332
+ return !("cause" in Error.prototype) && "cause" in e && !En.call(e, "cause") ? "{ [" + String(e) + "] " + k.call(gr.call("[cause]: " + d(e.cause), A), ", ") + " }" : A.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + k.call(A, ", ") + " }";
2333
+ }
2334
+ if (_typeof(e) == "object" && i) {
2335
+ if (Er && typeof e[Er] == "function" && $t) return $t(e, {
2336
+ depth: c - r
2337
+ });
2338
+ if (i !== "symbol" && typeof e.inspect == "function") return e.inspect();
2339
+ }
2340
+ if (pi(e)) {
2341
+ var O = [];
2342
+ return dr && dr.call(e, function (D, W) {
2343
+ O.push(d(W, e, true) + " => " + d(D, e));
2344
+ }), Or("Map", Me.call(e), O, f);
2345
+ }
2346
+ if (hi(e)) {
2347
+ var x = [];
2348
+ return yr && yr.call(e, function (D) {
2349
+ x.push(d(D, e));
2350
+ }), Or("Set", Be.call(e), x, f);
2351
+ }
2352
+ if (di(e)) return st("WeakMap");
2353
+ if (mi(e)) return st("WeakSet");
2354
+ if (yi(e)) return st("WeakRef");
2355
+ if (si(e)) return de(d(Number(e)));
2356
+ if (li(e)) return de(d(Ft.call(e)));
2357
+ if (ci(e)) return de(Qa.call(e));
2358
+ if (ii(e)) return de(d(String(e)));
2359
+ if ((typeof window === "undefined" ? "undefined" : _typeof(window)) < "u" && e === window) return "{ [object Window] }";
2360
+ if ((typeof globalThis === "undefined" ? "undefined" : _typeof(globalThis)) < "u" && e === globalThis || _typeof(pr) < "u" && e === pr) return "{ [object globalThis] }";
2361
+ if (!oi(e) && !Ar(e)) {
2362
+ var N = Ce(e, d),
2363
+ j = Sr ? Sr(e) === Object.prototype : e instanceof Object || e.constructor === Object,
2364
+ L = e instanceof Object ? "" : "null prototype",
2365
+ H = !j && me && Object(e) === e && me in e ? Gt.call(G(e), 8, -1) : L ? "Object" : "",
2366
+ Pe = j || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "",
2367
+ te = Pe + (H || L ? "[" + k.call(gr.call([], H || [], L || []), ": ") + "] " : "");
2368
+ return N.length === 0 ? te + "{}" : f ? te + "{" + Ut(N, f) + "}" : te + "{ " + k.call(N, ", ") + " }";
2369
+ }
2370
+ return String(e);
2371
+ };
2372
+ function On(t, e, n) {
2373
+ var r = n.quoteStyle || e,
2374
+ o = An[r];
2375
+ return o + t + o;
2376
+ }
2377
+ function ni(t) {
2378
+ return J.call(String(t), /"/g, "&quot;");
2379
+ }
2380
+ function ee(t) {
2381
+ return !me || !(_typeof(t) == "object" && (me in t || _typeof(t[me]) < "u"));
2382
+ }
2383
+ function Lt(t) {
2384
+ return G(t) === "[object Array]" && ee(t);
2385
+ }
2386
+ function oi(t) {
2387
+ return G(t) === "[object Date]" && ee(t);
2388
+ }
2389
+ function Ar(t) {
2390
+ return G(t) === "[object RegExp]" && ee(t);
2391
+ }
2392
+ function ai(t) {
2393
+ return G(t) === "[object Error]" && ee(t);
2394
+ }
2395
+ function ii(t) {
2396
+ return G(t) === "[object String]" && ee(t);
2397
+ }
2398
+ function si(t) {
2399
+ return G(t) === "[object Number]" && ee(t);
2400
+ }
2401
+ function ci(t) {
2402
+ return G(t) === "[object Boolean]" && ee(t);
2403
+ }
2404
+ function Rn(t) {
2405
+ if (ie) return t && _typeof(t) == "object" && t instanceof Symbol;
2406
+ if (_typeof(t) == "symbol") return true;
2407
+ if (!t || _typeof(t) != "object" || !Dt) return false;
2408
+ try {
2409
+ return Dt.call(t), !0;
2410
+ } catch (_unused4) {}
2411
+ return false;
2412
+ }
2413
+ function li(t) {
2414
+ if (!t || _typeof(t) != "object" || !Ft) return false;
2415
+ try {
2416
+ return Ft.call(t), !0;
2417
+ } catch (_unused5) {}
2418
+ return false;
2419
+ }
2420
+ var ui = Object.prototype.hasOwnProperty || function (t) {
2421
+ return t in this;
2422
+ };
2423
+ function z(t, e) {
2424
+ return ui.call(t, e);
2425
+ }
2426
+ function G(t) {
2427
+ return Xa.call(t);
2428
+ }
2429
+ function fi(t) {
2430
+ if (t.name) return t.name;
2431
+ var e = Ya.call(Za.call(t), /^function\s*([\w$]+)/);
2432
+ return e ? e[1] : null;
2433
+ }
2434
+ function Pn(t, e) {
2435
+ if (t.indexOf) return t.indexOf(e);
2436
+ for (var n = 0, r = t.length; n < r; n++) if (t[n] === e) return n;
2437
+ return -1;
2438
+ }
2439
+ function pi(t) {
2440
+ if (!Me || !t || _typeof(t) != "object") return false;
2441
+ try {
2442
+ Me.call(t);
2443
+ try {
2444
+ Be.call(t);
2445
+ } catch (_unused6) {
2446
+ return !0;
2447
+ }
2448
+ return t instanceof Map;
2449
+ } catch (_unused7) {}
2450
+ return false;
2451
+ }
2452
+ function di(t) {
2453
+ if (!ye || !t || _typeof(t) != "object") return false;
2454
+ try {
2455
+ ye.call(t, ye);
2456
+ try {
2457
+ he.call(t, he);
2458
+ } catch (_unused8) {
2459
+ return !0;
2460
+ }
2461
+ return t instanceof WeakMap;
2462
+ } catch (_unused9) {}
2463
+ return false;
2464
+ }
2465
+ function yi(t) {
2466
+ if (!hr || !t || _typeof(t) != "object") return false;
2467
+ try {
2468
+ return hr.call(t), !0;
2469
+ } catch (_unused0) {}
2470
+ return false;
2471
+ }
2472
+ function hi(t) {
2473
+ if (!Be || !t || _typeof(t) != "object") return false;
2474
+ try {
2475
+ Be.call(t);
2476
+ try {
2477
+ Me.call(t);
2478
+ } catch (_unused1) {
2479
+ return !0;
2480
+ }
2481
+ return t instanceof Set;
2482
+ } catch (_unused10) {}
2483
+ return false;
2484
+ }
2485
+ function mi(t) {
2486
+ if (!he || !t || _typeof(t) != "object") return false;
2487
+ try {
2488
+ he.call(t, he);
2489
+ try {
2490
+ ye.call(t, ye);
2491
+ } catch (_unused11) {
2492
+ return !0;
2493
+ }
2494
+ return t instanceof WeakSet;
2495
+ } catch (_unused12) {}
2496
+ return false;
2497
+ }
2498
+ function gi(t) {
2499
+ return !t || _typeof(t) != "object" ? false : (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) < "u" && t instanceof HTMLElement ? true : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
2500
+ }
2501
+ function Cn(t, e) {
2502
+ if (t.length > e.maxStringLength) {
2503
+ var n = t.length - e.maxStringLength,
2504
+ r = "... " + n + " more character" + (n > 1 ? "s" : "");
2505
+ return Cn(Gt.call(t, 0, e.maxStringLength), e) + r;
2506
+ }
2507
+ var o = ri[e.quoteStyle || "single"];
2508
+ o.lastIndex = 0;
2509
+ var a = J.call(J.call(t, o, "\\$1"), /[\x00-\x1f]/g, vi);
2510
+ return On(a, "single", e);
2511
+ }
2512
+ function vi(t) {
2513
+ var e = t.charCodeAt(0),
2514
+ n = {
2515
+ 8: "b",
2516
+ 9: "t",
2517
+ 10: "n",
2518
+ 12: "f",
2519
+ 13: "r"
2520
+ }[e];
2521
+ return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + ei.call(e.toString(16));
2522
+ }
2523
+ function de(t) {
2524
+ return "Object(" + t + ")";
2525
+ }
2526
+ function st(t) {
2527
+ return t + " { ? }";
2528
+ }
2529
+ function Or(t, e, n, r) {
2530
+ var o = r ? Ut(n, r) : k.call(n, ", ");
2531
+ return t + " (" + e + ") {" + o + "}";
2532
+ }
2533
+ function Si(t) {
2534
+ for (var e = 0; e < t.length; e++) if (Pn(t[e], "\n") >= 0) return false;
2535
+ return true;
2536
+ }
2537
+ function wi(t, e) {
2538
+ var n;
2539
+ if (t.indent === " ") n = " ";else if (typeof t.indent == "number" && t.indent > 0) n = k.call(Array(t.indent + 1), " ");else return null;
2540
+ return {
2541
+ base: n,
2542
+ prev: k.call(Array(e + 1), n)
2543
+ };
2544
+ }
2545
+ function Ut(t, e) {
2546
+ if (t.length === 0) return "";
2547
+ var n = "\n" + e.prev + e.base;
2548
+ return n + k.call(t, "," + n) + "\n" + e.prev;
2549
+ }
2550
+ function Ce(t, e) {
2551
+ var n = Lt(t),
2552
+ r = [];
2553
+ if (n) {
2554
+ r.length = t.length;
2555
+ for (var o = 0; o < t.length; o++) r[o] = z(t, o) ? e(t[o], t) : "";
2556
+ }
2557
+ var a = typeof it == "function" ? it(t) : [],
2558
+ i;
2559
+ if (ie) {
2560
+ i = {};
2561
+ for (var s = 0; s < a.length; s++) i["$" + a[s]] = a[s];
2562
+ }
2563
+ for (var l in t) z(t, l) && (n && String(Number(l)) === l && l < t.length || ie && i["$" + l] instanceof Symbol || (bn.call(/[^\w$]/, l) ? r.push(e(l, t) + ": " + e(t[l], t)) : r.push(l + ": " + e(t[l], t))));
2564
+ if (typeof it == "function") for (var u = 0; u < a.length; u++) En.call(t, a[u]) && r.push("[" + e(a[u]) + "]: " + e(t[a[u]], t));
2565
+ return r;
2566
+ }
2567
+ var bi = Ke,
2568
+ Ei = ue,
2569
+ Qe = function Qe(t, e, n) {
2570
+ for (var r = t, o; (o = r.next) != null; r = o) if (o.key === e) return r.next = o.next, n || (o.next = /** @type {NonNullable<typeof list.next>} */
2571
+ t.next, t.next = o), o;
2572
+ },
2573
+ Ai = function Ai(t, e) {
2574
+ if (t) {
2575
+ var n = Qe(t, e);
2576
+ return n && n.value;
2577
+ }
2578
+ },
2579
+ Oi = function Oi(t, e, n) {
2580
+ var r = Qe(t, e);
2581
+ r ? r.value = n : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
2582
+ {
2583
+ // eslint-disable-line no-param-reassign, no-extra-parens
2584
+ key: e,
2585
+ next: t.next,
2586
+ value: n
2587
+ };
2588
+ },
2589
+ Ri = function Ri(t, e) {
2590
+ return t ? !!Qe(t, e) : false;
2591
+ },
2592
+ Pi = function Pi(t, e) {
2593
+ if (t) return Qe(t, e, true);
2594
+ },
2595
+ Ci = function Ci() {
2596
+ var e,
2597
+ n = {
2598
+ assert: function assert(r) {
2599
+ if (!n.has(r)) throw new Ei("Side channel does not contain " + bi(r));
2600
+ },
2601
+ "delete": function _delete(r) {
2602
+ var o = e && e.next,
2603
+ a = Pi(e, r);
2604
+ return a && o && o === a && (e = undefined), !!a;
2605
+ },
2606
+ get: function get(r) {
2607
+ return Ai(e, r);
2608
+ },
2609
+ has: function has(r) {
2610
+ return Ri(e, r);
2611
+ },
2612
+ set: function set(r, o) {
2613
+ e || (e = {
2614
+ next: undefined
2615
+ }), Oi(/** @type {NonNullable<typeof $o>} */
2616
+ e, r, o);
2617
+ }
2618
+ };
2619
+ return n;
2620
+ },
2621
+ In = Object,
2622
+ Ii = Error,
2623
+ Ti = EvalError,
2624
+ xi = RangeError,
2625
+ Ni = ReferenceError,
2626
+ _i = SyntaxError,
2627
+ Fi = URIError,
2628
+ Di = Math.abs,
2629
+ $i = Math.floor,
2630
+ Li = Math.max,
2631
+ Ui = Math.min,
2632
+ Mi = Math.pow,
2633
+ Bi = Math.round,
2634
+ ki = Number.isNaN || function (e) {
2635
+ return e !== e;
2636
+ },
2637
+ ji = ki,
2638
+ qi = function qi(e) {
2639
+ return ji(e) || e === 0 ? e : e < 0 ? -1 : 1;
2640
+ },
2641
+ zi = Object.getOwnPropertyDescriptor,
2642
+ Fe = zi;
2643
+ if (Fe) try {
2644
+ Fe([], "length");
2645
+ } catch (_unused13) {
2646
+ Fe = null;
2647
+ }
2648
+ var Tn = Fe,
2649
+ De = Object.defineProperty || false;
2650
+ if (De) try {
2651
+ De({}, "a", {
2652
+ value: 1
2653
+ });
2654
+ } catch (_unused14) {
2655
+ De = false;
2656
+ }
2657
+ var Hi = De,
2658
+ ct,
2659
+ Rr;
2660
+ function Wi() {
2661
+ return Rr || (Rr = 1, ct = function ct() {
2662
+ if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function") return false;
2663
+ if (_typeof(Symbol.iterator) == "symbol") return true;
2664
+ var e = {},
2665
+ n = Symbol("test"),
2666
+ r = Object(n);
2667
+ if (typeof n == "string" || Object.prototype.toString.call(n) !== "[object Symbol]" || Object.prototype.toString.call(r) !== "[object Symbol]") return false;
2668
+ var o = 42;
2669
+ e[n] = o;
2670
+ for (var a in e) return false;
2671
+ if (typeof Object.keys == "function" && Object.keys(e).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(e).length !== 0) return false;
2672
+ var i = Object.getOwnPropertySymbols(e);
2673
+ if (i.length !== 1 || i[0] !== n || !Object.prototype.propertyIsEnumerable.call(e, n)) return false;
2674
+ if (typeof Object.getOwnPropertyDescriptor == "function") {
2675
+ var s = /** @type {PropertyDescriptor} */
2676
+ Object.getOwnPropertyDescriptor(e, n);
2677
+ if (s.value !== o || s.enumerable !== true) return false;
2678
+ }
2679
+ return true;
2680
+ }), ct;
2681
+ }
2682
+ var lt, Pr;
2683
+ function Ji() {
2684
+ if (Pr) return lt;
2685
+ Pr = 1;
2686
+ var t = (typeof Symbol === "undefined" ? "undefined" : _typeof(Symbol)) < "u" && Symbol,
2687
+ e = Wi();
2688
+ return lt = function lt() {
2689
+ return typeof t != "function" || typeof Symbol != "function" || _typeof(t("foo")) != "symbol" || _typeof(Symbol("bar")) != "symbol" ? false : e();
2690
+ }, lt;
2691
+ }
2692
+ var ut, Cr;
2693
+ function xn() {
2694
+ return Cr || (Cr = 1, ut = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) < "u" && Reflect.getPrototypeOf || null), ut;
2695
+ }
2696
+ var ft, Ir;
2697
+ function Nn() {
2698
+ if (Ir) return ft;
2699
+ Ir = 1;
2700
+ var t = In;
2701
+ return ft = t.getPrototypeOf || null, ft;
2702
+ }
2703
+ var pt, Tr;
2704
+ function Gi() {
2705
+ if (Tr) return pt;
2706
+ Tr = 1;
2707
+ var t = "Function.prototype.bind called on incompatible ",
2708
+ e = Object.prototype.toString,
2709
+ n = Math.max,
2710
+ r = "[object Function]",
2711
+ o = function o(l, u) {
2712
+ for (var c = [], f = 0; f < l.length; f += 1) c[f] = l[f];
2713
+ for (var d = 0; d < u.length; d += 1) c[d + l.length] = u[d];
2714
+ return c;
2715
+ },
2716
+ a = function a(l, u) {
2717
+ for (var c = [], f = u, d = 0; f < l.length; f += 1, d += 1) c[d] = l[f];
2718
+ return c;
2719
+ },
2720
+ i = function i(s, l) {
2721
+ for (var u = "", c = 0; c < s.length; c += 1) u += s[c], c + 1 < s.length && (u += l);
2722
+ return u;
19
2723
  };
2724
+ return pt = function pt(l) {
2725
+ var u = this;
2726
+ if (typeof u != "function" || e.apply(u) !== r) throw new TypeError(t + u);
2727
+ for (var c = a(arguments, 1), f, d = function d() {
2728
+ if (this instanceof f) {
2729
+ var w = u.apply(this, o(c, arguments));
2730
+ return Object(w) === w ? w : this;
2731
+ }
2732
+ return u.apply(l, o(c, arguments));
2733
+ }, v = n(0, u.length - c.length), y = [], m = 0; m < v; m++) y[m] = "$" + m;
2734
+ if (f = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(d), u.prototype) {
2735
+ var h = function h() {};
2736
+ h.prototype = u.prototype, f.prototype = new h(), h.prototype = null;
2737
+ }
2738
+ return f;
2739
+ }, pt;
2740
+ }
2741
+ var dt, xr;
2742
+ function Xe() {
2743
+ if (xr) return dt;
2744
+ xr = 1;
2745
+ var t = Gi();
2746
+ return dt = Function.prototype.bind || t, dt;
2747
+ }
2748
+ var yt, Nr;
2749
+ function Vt() {
2750
+ return Nr || (Nr = 1, yt = Function.prototype.call), yt;
2751
+ }
2752
+ var ht, _r;
2753
+ function _n() {
2754
+ return _r || (_r = 1, ht = Function.prototype.apply), ht;
2755
+ }
2756
+ var Vi = (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) < "u" && Reflect && Reflect.apply,
2757
+ Ki = Xe(),
2758
+ Qi = _n(),
2759
+ Xi = Vt(),
2760
+ Zi = Vi,
2761
+ Yi = Zi || Ki.call(Xi, Qi),
2762
+ es = Xe(),
2763
+ ts = ue,
2764
+ rs = Vt(),
2765
+ ns = Yi,
2766
+ Fn = function Fn(e) {
2767
+ if (e.length < 1 || typeof e[0] != "function") throw new ts("a function is required");
2768
+ return ns(es, rs, e);
2769
+ },
2770
+ mt,
2771
+ Fr;
2772
+ function os() {
2773
+ if (Fr) return mt;
2774
+ Fr = 1;
2775
+ var t = Fn,
2776
+ e = Tn,
2777
+ n;
2778
+ try {
2779
+ n = /** @type {{ __proto__?: typeof Array.prototype }} */
2780
+ [].__proto__ === Array.prototype;
2781
+ } catch (i) {
2782
+ if (!i || _typeof(i) != "object" || !("code" in i) || i.code !== "ERR_PROTO_ACCESS") throw i;
2783
+ }
2784
+ var r = !!n && e && e(Object.prototype, /** @type {keyof typeof Object.prototype} */
2785
+ "__proto__"),
2786
+ o = Object,
2787
+ a = o.getPrototypeOf;
2788
+ return mt = r && typeof r.get == "function" ? t([r.get]) : typeof a == "function" ? (/** @type {import('./get')} */
2789
+ function (s) {
2790
+ return a(s == null ? s : o(s));
2791
+ }) : false, mt;
2792
+ }
2793
+ var gt, Dr;
2794
+ function as() {
2795
+ if (Dr) return gt;
2796
+ Dr = 1;
2797
+ var t = xn(),
2798
+ e = Nn(),
2799
+ n = os();
2800
+ return gt = t ? function (o) {
2801
+ return t(o);
2802
+ } : e ? function (o) {
2803
+ if (!o || _typeof(o) != "object" && typeof o != "function") throw new TypeError("getProto: not an object");
2804
+ return e(o);
2805
+ } : n ? function (o) {
2806
+ return n(o);
2807
+ } : null, gt;
2808
+ }
2809
+ var vt, $r;
2810
+ function is() {
2811
+ if ($r) return vt;
2812
+ $r = 1;
2813
+ var t = Function.prototype.call,
2814
+ e = Object.prototype.hasOwnProperty,
2815
+ n = Xe();
2816
+ return vt = n.call(t, e), vt;
2817
+ }
2818
+ var b,
2819
+ ss = In,
2820
+ cs = Ii,
2821
+ ls = Ti,
2822
+ us = xi,
2823
+ fs = Ni,
2824
+ se = _i,
2825
+ ae = ue,
2826
+ ps = Fi,
2827
+ ds = Di,
2828
+ ys = $i,
2829
+ hs = Li,
2830
+ ms = Ui,
2831
+ gs = Mi,
2832
+ vs = Bi,
2833
+ Ss = qi,
2834
+ Dn = Function,
2835
+ St = function St(t) {
2836
+ try {
2837
+ return Dn('"use strict"; return (' + t + ").constructor;")();
2838
+ } catch (_unused15) {}
2839
+ },
2840
+ Se = Tn,
2841
+ ws = Hi,
2842
+ wt = function wt() {
2843
+ throw new ae();
2844
+ },
2845
+ bs = Se ? function () {
2846
+ try {
2847
+ return arguments.callee, wt;
2848
+ } catch (_unused16) {
2849
+ try {
2850
+ return Se(arguments, "callee").get;
2851
+ } catch (_unused17) {
2852
+ return wt;
2853
+ }
2854
+ }
2855
+ }() : wt,
2856
+ re = Ji()(),
2857
+ I = as(),
2858
+ Es = Nn(),
2859
+ As = xn(),
2860
+ $n = _n(),
2861
+ Ae = Vt(),
2862
+ oe = {},
2863
+ Os = (typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) > "u" || !I ? b : I(Uint8Array),
2864
+ X = {
2865
+ __proto__: null,
2866
+ "%AggregateError%": (typeof AggregateError === "undefined" ? "undefined" : _typeof(AggregateError)) > "u" ? b : AggregateError,
2867
+ "%Array%": Array,
2868
+ "%ArrayBuffer%": (typeof ArrayBuffer === "undefined" ? "undefined" : _typeof(ArrayBuffer)) > "u" ? b : ArrayBuffer,
2869
+ "%ArrayIteratorPrototype%": re && I ? I([][Symbol.iterator]()) : b,
2870
+ "%AsyncFromSyncIteratorPrototype%": b,
2871
+ "%AsyncFunction%": oe,
2872
+ "%AsyncGenerator%": oe,
2873
+ "%AsyncGeneratorFunction%": oe,
2874
+ "%AsyncIteratorPrototype%": oe,
2875
+ "%Atomics%": (typeof Atomics === "undefined" ? "undefined" : _typeof(Atomics)) > "u" ? b : Atomics,
2876
+ "%BigInt%": (typeof BigInt === "undefined" ? "undefined" : _typeof(BigInt)) > "u" ? b : BigInt,
2877
+ "%BigInt64Array%": (typeof BigInt64Array === "undefined" ? "undefined" : _typeof(BigInt64Array)) > "u" ? b : BigInt64Array,
2878
+ "%BigUint64Array%": (typeof BigUint64Array === "undefined" ? "undefined" : _typeof(BigUint64Array)) > "u" ? b : BigUint64Array,
2879
+ "%Boolean%": Boolean,
2880
+ "%DataView%": (typeof DataView === "undefined" ? "undefined" : _typeof(DataView)) > "u" ? b : DataView,
2881
+ "%Date%": Date,
2882
+ "%decodeURI%": decodeURI,
2883
+ "%decodeURIComponent%": decodeURIComponent,
2884
+ "%encodeURI%": encodeURI,
2885
+ "%encodeURIComponent%": encodeURIComponent,
2886
+ "%Error%": cs,
2887
+ "%eval%": eval,
2888
+ // eslint-disable-line no-eval
2889
+ "%EvalError%": ls,
2890
+ "%Float16Array%": (typeof Float16Array === "undefined" ? "undefined" : _typeof(Float16Array)) > "u" ? b : Float16Array,
2891
+ "%Float32Array%": (typeof Float32Array === "undefined" ? "undefined" : _typeof(Float32Array)) > "u" ? b : Float32Array,
2892
+ "%Float64Array%": (typeof Float64Array === "undefined" ? "undefined" : _typeof(Float64Array)) > "u" ? b : Float64Array,
2893
+ "%FinalizationRegistry%": (typeof FinalizationRegistry === "undefined" ? "undefined" : _typeof(FinalizationRegistry)) > "u" ? b : FinalizationRegistry,
2894
+ "%Function%": Dn,
2895
+ "%GeneratorFunction%": oe,
2896
+ "%Int8Array%": (typeof Int8Array === "undefined" ? "undefined" : _typeof(Int8Array)) > "u" ? b : Int8Array,
2897
+ "%Int16Array%": (typeof Int16Array === "undefined" ? "undefined" : _typeof(Int16Array)) > "u" ? b : Int16Array,
2898
+ "%Int32Array%": (typeof Int32Array === "undefined" ? "undefined" : _typeof(Int32Array)) > "u" ? b : Int32Array,
2899
+ "%isFinite%": isFinite,
2900
+ "%isNaN%": isNaN,
2901
+ "%IteratorPrototype%": re && I ? I(I([][Symbol.iterator]())) : b,
2902
+ "%JSON%": (typeof JSON === "undefined" ? "undefined" : _typeof(JSON)) == "object" ? JSON : b,
2903
+ "%Map%": (typeof Map === "undefined" ? "undefined" : _typeof(Map)) > "u" ? b : Map,
2904
+ "%MapIteratorPrototype%": (typeof Map === "undefined" ? "undefined" : _typeof(Map)) > "u" || !re || !I ? b : I((/* @__PURE__ */new Map())[Symbol.iterator]()),
2905
+ "%Math%": Math,
2906
+ "%Number%": Number,
2907
+ "%Object%": ss,
2908
+ "%Object.getOwnPropertyDescriptor%": Se,
2909
+ "%parseFloat%": parseFloat,
2910
+ "%parseInt%": parseInt,
2911
+ "%Promise%": (typeof Promise === "undefined" ? "undefined" : _typeof(Promise)) > "u" ? b : Promise,
2912
+ "%Proxy%": (typeof Proxy === "undefined" ? "undefined" : _typeof(Proxy)) > "u" ? b : Proxy,
2913
+ "%RangeError%": us,
2914
+ "%ReferenceError%": fs,
2915
+ "%Reflect%": (typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) > "u" ? b : Reflect,
2916
+ "%RegExp%": RegExp,
2917
+ "%Set%": (typeof Set === "undefined" ? "undefined" : _typeof(Set)) > "u" ? b : Set,
2918
+ "%SetIteratorPrototype%": (typeof Set === "undefined" ? "undefined" : _typeof(Set)) > "u" || !re || !I ? b : I((/* @__PURE__ */new Set())[Symbol.iterator]()),
2919
+ "%SharedArrayBuffer%": (typeof SharedArrayBuffer === "undefined" ? "undefined" : _typeof(SharedArrayBuffer)) > "u" ? b : SharedArrayBuffer,
2920
+ "%String%": String,
2921
+ "%StringIteratorPrototype%": re && I ? I(""[Symbol.iterator]()) : b,
2922
+ "%Symbol%": re ? Symbol : b,
2923
+ "%SyntaxError%": se,
2924
+ "%ThrowTypeError%": bs,
2925
+ "%TypedArray%": Os,
2926
+ "%TypeError%": ae,
2927
+ "%Uint8Array%": (typeof Uint8Array === "undefined" ? "undefined" : _typeof(Uint8Array)) > "u" ? b : Uint8Array,
2928
+ "%Uint8ClampedArray%": (typeof Uint8ClampedArray === "undefined" ? "undefined" : _typeof(Uint8ClampedArray)) > "u" ? b : Uint8ClampedArray,
2929
+ "%Uint16Array%": (typeof Uint16Array === "undefined" ? "undefined" : _typeof(Uint16Array)) > "u" ? b : Uint16Array,
2930
+ "%Uint32Array%": (typeof Uint32Array === "undefined" ? "undefined" : _typeof(Uint32Array)) > "u" ? b : Uint32Array,
2931
+ "%URIError%": ps,
2932
+ "%WeakMap%": (typeof WeakMap === "undefined" ? "undefined" : _typeof(WeakMap)) > "u" ? b : WeakMap,
2933
+ "%WeakRef%": (typeof WeakRef === "undefined" ? "undefined" : _typeof(WeakRef)) > "u" ? b : WeakRef,
2934
+ "%WeakSet%": (typeof WeakSet === "undefined" ? "undefined" : _typeof(WeakSet)) > "u" ? b : WeakSet,
2935
+ "%Function.prototype.call%": Ae,
2936
+ "%Function.prototype.apply%": $n,
2937
+ "%Object.defineProperty%": ws,
2938
+ "%Object.getPrototypeOf%": Es,
2939
+ "%Math.abs%": ds,
2940
+ "%Math.floor%": ys,
2941
+ "%Math.max%": hs,
2942
+ "%Math.min%": ms,
2943
+ "%Math.pow%": gs,
2944
+ "%Math.round%": vs,
2945
+ "%Math.sign%": Ss,
2946
+ "%Reflect.getPrototypeOf%": As
2947
+ };
2948
+ if (I) try {
2949
+ null.error;
2950
+ } catch (t) {
2951
+ var Rs = I(I(t));
2952
+ X["%Error.prototype%"] = Rs;
2953
+ }
2954
+ var Ps = function t(e) {
2955
+ var n;
2956
+ if (e === "%AsyncFunction%") n = St("async function () {}");else if (e === "%GeneratorFunction%") n = St("function* () {}");else if (e === "%AsyncGeneratorFunction%") n = St("async function* () {}");else if (e === "%AsyncGenerator%") {
2957
+ var r = t("%AsyncGeneratorFunction%");
2958
+ r && (n = r.prototype);
2959
+ } else if (e === "%AsyncIteratorPrototype%") {
2960
+ var o = t("%AsyncGenerator%");
2961
+ o && I && (n = I(o.prototype));
2962
+ }
2963
+ return X[e] = n, n;
20
2964
  },
21
- F = function F() {
2965
+ Lr = {
2966
+ __proto__: null,
2967
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
2968
+ "%ArrayPrototype%": ["Array", "prototype"],
2969
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
2970
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
2971
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
2972
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
2973
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
2974
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
2975
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
2976
+ "%BooleanPrototype%": ["Boolean", "prototype"],
2977
+ "%DataViewPrototype%": ["DataView", "prototype"],
2978
+ "%DatePrototype%": ["Date", "prototype"],
2979
+ "%ErrorPrototype%": ["Error", "prototype"],
2980
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
2981
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
2982
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
2983
+ "%FunctionPrototype%": ["Function", "prototype"],
2984
+ "%Generator%": ["GeneratorFunction", "prototype"],
2985
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
2986
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
2987
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
2988
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
2989
+ "%JSONParse%": ["JSON", "parse"],
2990
+ "%JSONStringify%": ["JSON", "stringify"],
2991
+ "%MapPrototype%": ["Map", "prototype"],
2992
+ "%NumberPrototype%": ["Number", "prototype"],
2993
+ "%ObjectPrototype%": ["Object", "prototype"],
2994
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
2995
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
2996
+ "%PromisePrototype%": ["Promise", "prototype"],
2997
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
2998
+ "%Promise_all%": ["Promise", "all"],
2999
+ "%Promise_reject%": ["Promise", "reject"],
3000
+ "%Promise_resolve%": ["Promise", "resolve"],
3001
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
3002
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
3003
+ "%RegExpPrototype%": ["RegExp", "prototype"],
3004
+ "%SetPrototype%": ["Set", "prototype"],
3005
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
3006
+ "%StringPrototype%": ["String", "prototype"],
3007
+ "%SymbolPrototype%": ["Symbol", "prototype"],
3008
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
3009
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
3010
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
3011
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
3012
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
3013
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
3014
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
3015
+ "%URIErrorPrototype%": ["URIError", "prototype"],
3016
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
3017
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
3018
+ },
3019
+ Oe = Xe(),
3020
+ ke = is(),
3021
+ Cs = Oe.call(Ae, Array.prototype.concat),
3022
+ Is = Oe.call($n, Array.prototype.splice),
3023
+ Ur = Oe.call(Ae, String.prototype.replace),
3024
+ je = Oe.call(Ae, String.prototype.slice),
3025
+ Ts = Oe.call(Ae, RegExp.prototype.exec),
3026
+ xs = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
3027
+ Ns = /\\(\\)?/g,
3028
+ _s = function _s(e) {
3029
+ var n = je(e, 0, 1),
3030
+ r = je(e, -1);
3031
+ if (n === "%" && r !== "%") throw new se("invalid intrinsic syntax, expected closing `%`");
3032
+ if (r === "%" && n !== "%") throw new se("invalid intrinsic syntax, expected opening `%`");
3033
+ var o = [];
3034
+ return Ur(e, xs, function (a, i, s, l) {
3035
+ o[o.length] = s ? Ur(l, Ns, "$1") : i || a;
3036
+ }), o;
3037
+ },
3038
+ Fs = function Fs(e, n) {
3039
+ var r = e,
3040
+ o;
3041
+ if (ke(Lr, r) && (o = Lr[r], r = "%" + o[0] + "%"), ke(X, r)) {
3042
+ var a = X[r];
3043
+ if (a === oe && (a = Ps(r)), _typeof(a) > "u" && !n) throw new ae("intrinsic " + e + " exists, but is not available. Please file an issue!");
3044
+ return {
3045
+ alias: o,
3046
+ name: r,
3047
+ value: a
3048
+ };
3049
+ }
3050
+ throw new se("intrinsic " + e + " does not exist!");
3051
+ },
3052
+ Kt = function Kt(e, n) {
3053
+ if (typeof e != "string" || e.length === 0) throw new ae("intrinsic name must be a non-empty string");
3054
+ if (arguments.length > 1 && typeof n != "boolean") throw new ae('"allowMissing" argument must be a boolean');
3055
+ if (Ts(/^%?[^%]*%?$/, e) === null) throw new se("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
3056
+ var r = _s(e),
3057
+ o = r.length > 0 ? r[0] : "",
3058
+ a = Fs("%" + o + "%", n),
3059
+ i = a.name,
3060
+ s = a.value,
3061
+ l = false,
3062
+ u = a.alias;
3063
+ u && (o = u[0], Is(r, Cs([0, 1], u)));
3064
+ for (var c = 1, f = true; c < r.length; c += 1) {
3065
+ var d = r[c],
3066
+ v = je(d, 0, 1),
3067
+ y = je(d, -1);
3068
+ if ((v === '"' || v === "'" || v === "`" || y === '"' || y === "'" || y === "`") && v !== y) throw new se("property names with quotes must have matching quotes");
3069
+ if ((d === "constructor" || !f) && (l = true), o += "." + d, i = "%" + o + "%", ke(X, i)) s = X[i];else if (s != null) {
3070
+ if (!(d in s)) {
3071
+ if (!n) throw new ae("base intrinsic for " + e + " exists, but the property is not available.");
3072
+ return;
3073
+ }
3074
+ if (Se && c + 1 >= r.length) {
3075
+ var m = Se(s, d);
3076
+ f = !!m, f && "get" in m && !("originalValue" in m.get) ? s = m.get : s = s[d];
3077
+ } else f = ke(s, d), s = s[d];
3078
+ f && !l && (X[i] = s);
3079
+ }
3080
+ }
3081
+ return s;
3082
+ },
3083
+ Ln = Kt,
3084
+ Un = Fn,
3085
+ Ds = Un([Ln("%String.prototype.indexOf%")]),
3086
+ Mn = function Mn(e, n) {
3087
+ var r = /** @type {(this: unknown, ...args: unknown[]) => unknown} */
3088
+ Ln(e, !!n);
3089
+ return typeof r == "function" && Ds(e, ".prototype.") > -1 ? Un(/** @type {const} */
3090
+ [r]) : r;
3091
+ },
3092
+ $s = Kt,
3093
+ Re = Mn,
3094
+ Ls = Ke,
3095
+ Us = ue,
3096
+ Mr = $s("%Map%", true),
3097
+ Ms = Re("Map.prototype.get", true),
3098
+ Bs = Re("Map.prototype.set", true),
3099
+ ks = Re("Map.prototype.has", true),
3100
+ js = Re("Map.prototype.delete", true),
3101
+ qs = Re("Map.prototype.size", true),
3102
+ Bn = !!Mr && /** @type {Exclude<import('.'), false>} */
3103
+ function () {
3104
+ var e,
3105
+ n = {
3106
+ assert: function assert(r) {
3107
+ if (!n.has(r)) throw new Us("Side channel does not contain " + Ls(r));
3108
+ },
3109
+ "delete": function _delete(r) {
3110
+ if (e) {
3111
+ var o = js(e, r);
3112
+ return qs(e) === 0 && (e = undefined), o;
3113
+ }
3114
+ return false;
3115
+ },
3116
+ get: function get(r) {
3117
+ if (e) return Ms(e, r);
3118
+ },
3119
+ has: function has(r) {
3120
+ return e ? ks(e, r) : false;
3121
+ },
3122
+ set: function set(r, o) {
3123
+ e || (e = new Mr()), Bs(e, r, o);
3124
+ }
3125
+ };
3126
+ return n;
3127
+ },
3128
+ zs = Kt,
3129
+ Ze = Mn,
3130
+ Hs = Ke,
3131
+ Ie = Bn,
3132
+ Ws = ue,
3133
+ ne = zs("%WeakMap%", true),
3134
+ Js = Ze("WeakMap.prototype.get", true),
3135
+ Gs = Ze("WeakMap.prototype.set", true),
3136
+ Vs = Ze("WeakMap.prototype.has", true),
3137
+ Ks = Ze("WeakMap.prototype.delete", true),
3138
+ Qs = ne ? (/** @type {Exclude<import('.'), false>} */
3139
+ function () {
3140
+ var e,
3141
+ n,
3142
+ r = {
3143
+ assert: function assert(o) {
3144
+ if (!r.has(o)) throw new Ws("Side channel does not contain " + Hs(o));
3145
+ },
3146
+ "delete": function _delete(o) {
3147
+ if (ne && o && (_typeof(o) == "object" || typeof o == "function")) {
3148
+ if (e) return Ks(e, o);
3149
+ } else if (Ie && n) return n["delete"](o);
3150
+ return false;
3151
+ },
3152
+ get: function get(o) {
3153
+ return ne && o && (_typeof(o) == "object" || typeof o == "function") && e ? Js(e, o) : n && n.get(o);
3154
+ },
3155
+ has: function has(o) {
3156
+ return ne && o && (_typeof(o) == "object" || typeof o == "function") && e ? Vs(e, o) : !!n && n.has(o);
3157
+ },
3158
+ set: function set(o, a) {
3159
+ ne && o && (_typeof(o) == "object" || typeof o == "function") ? (e || (e = new ne()), Gs(e, o, a)) : Ie && (n || (n = Ie()), n.set(o, a));
3160
+ }
3161
+ };
3162
+ return r;
3163
+ }) : Ie,
3164
+ Xs = ue,
3165
+ Zs = Ke,
3166
+ Ys = Ci,
3167
+ ec = Bn,
3168
+ tc = Qs,
3169
+ rc = tc || ec || Ys,
3170
+ nc = function nc() {
3171
+ var e,
3172
+ n = {
3173
+ assert: function assert(r) {
3174
+ if (!n.has(r)) throw new Xs("Side channel does not contain " + Zs(r));
3175
+ },
3176
+ "delete": function _delete(r) {
3177
+ return !!e && e["delete"](r);
3178
+ },
3179
+ get: function get(r) {
3180
+ return e && e.get(r);
3181
+ },
3182
+ has: function has(r) {
3183
+ return !!e && e.has(r);
3184
+ },
3185
+ set: function set(r, o) {
3186
+ e || (e = rc()), e.set(r, o);
3187
+ }
3188
+ };
3189
+ return n;
3190
+ },
3191
+ oc = String.prototype.replace,
3192
+ ac = /%20/g,
3193
+ bt = {
3194
+ RFC1738: "RFC1738",
3195
+ RFC3986: "RFC3986"
3196
+ },
3197
+ Qt = {
3198
+ "default": bt.RFC3986,
3199
+ formatters: {
3200
+ RFC1738: function RFC1738(t) {
3201
+ return oc.call(t, ac, "+");
3202
+ },
3203
+ RFC3986: function RFC3986(t) {
3204
+ return String(t);
3205
+ }
3206
+ },
3207
+ RFC1738: bt.RFC1738,
3208
+ RFC3986: bt.RFC3986
3209
+ },
3210
+ ic = Qt,
3211
+ Et = Object.prototype.hasOwnProperty,
3212
+ V = Array.isArray,
3213
+ M = function () {
3214
+ for (var t = [], e = 0; e < 256; ++e) t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
3215
+ return t;
3216
+ }(),
3217
+ sc = function sc(e) {
3218
+ for (; e.length > 1;) {
3219
+ var n = e.pop(),
3220
+ r = n.obj[n.prop];
3221
+ if (V(r)) {
3222
+ for (var o = [], a = 0; a < r.length; ++a) _typeof(r[a]) < "u" && o.push(r[a]);
3223
+ n.obj[n.prop] = o;
3224
+ }
3225
+ }
3226
+ },
3227
+ kn = function kn(e, n) {
3228
+ for (var r = n && n.plainObjects ? {
3229
+ __proto__: null
3230
+ } : {}, o = 0; o < e.length; ++o) _typeof(e[o]) < "u" && (r[o] = e[o]);
3231
+ return r;
3232
+ },
3233
+ cc = function t(e, n, r) {
3234
+ if (!n) return e;
3235
+ if (_typeof(n) != "object" && typeof n != "function") {
3236
+ if (V(e)) e.push(n);else if (e && _typeof(e) == "object") (r && (r.plainObjects || r.allowPrototypes) || !Et.call(Object.prototype, n)) && (e[n] = true);else return [e, n];
3237
+ return e;
3238
+ }
3239
+ if (!e || _typeof(e) != "object") return [e].concat(n);
3240
+ var o = e;
3241
+ return V(e) && !V(n) && (o = kn(e, r)), V(e) && V(n) ? (n.forEach(function (a, i) {
3242
+ if (Et.call(e, i)) {
3243
+ var s = e[i];
3244
+ s && _typeof(s) == "object" && a && _typeof(a) == "object" ? e[i] = t(s, a, r) : e.push(a);
3245
+ } else e[i] = a;
3246
+ }), e) : Object.keys(n).reduce(function (a, i) {
3247
+ var s = n[i];
3248
+ return Et.call(a, i) ? a[i] = t(a[i], s, r) : a[i] = s, a;
3249
+ }, o);
3250
+ },
3251
+ lc = function lc(e, n) {
3252
+ return Object.keys(n).reduce(function (r, o) {
3253
+ return r[o] = n[o], r;
3254
+ }, e);
3255
+ },
3256
+ uc = function uc(t, e, n) {
3257
+ var r = t.replace(/\+/g, " ");
3258
+ if (n === "iso-8859-1") return r.replace(/%[0-9a-f]{2}/gi, unescape);
3259
+ try {
3260
+ return decodeURIComponent(r);
3261
+ } catch (_unused18) {
3262
+ return r;
3263
+ }
3264
+ },
3265
+ At = 1024,
3266
+ fc = function fc(e, n, r, o, a) {
3267
+ if (e.length === 0) return e;
3268
+ var i = e;
3269
+ if (_typeof(e) == "symbol" ? i = Symbol.prototype.toString.call(e) : typeof e != "string" && (i = String(e)), r === "iso-8859-1") return escape(i).replace(/%u[0-9a-f]{4}/gi, function (v) {
3270
+ return "%26%23" + parseInt(v.slice(2), 16) + "%3B";
3271
+ });
3272
+ for (var s = "", l = 0; l < i.length; l += At) {
3273
+ for (var u = i.length >= At ? i.slice(l, l + At) : i, c = [], f = 0; f < u.length; ++f) {
3274
+ var d = u.charCodeAt(f);
3275
+ if (d === 45 || d === 46 || d === 95 || d === 126 || d >= 48 && d <= 57 || d >= 65 && d <= 90 || d >= 97 && d <= 122 || a === ic.RFC1738 && (d === 40 || d === 41)) {
3276
+ c[c.length] = u.charAt(f);
3277
+ continue;
3278
+ }
3279
+ if (d < 128) {
3280
+ c[c.length] = M[d];
3281
+ continue;
3282
+ }
3283
+ if (d < 2048) {
3284
+ c[c.length] = M[192 | d >> 6] + M[128 | d & 63];
3285
+ continue;
3286
+ }
3287
+ if (d < 55296 || d >= 57344) {
3288
+ c[c.length] = M[224 | d >> 12] + M[128 | d >> 6 & 63] + M[128 | d & 63];
3289
+ continue;
3290
+ }
3291
+ f += 1, d = 65536 + ((d & 1023) << 10 | u.charCodeAt(f) & 1023), c[c.length] = M[240 | d >> 18] + M[128 | d >> 12 & 63] + M[128 | d >> 6 & 63] + M[128 | d & 63];
3292
+ }
3293
+ s += c.join("");
3294
+ }
3295
+ return s;
3296
+ },
3297
+ pc = function pc(e) {
3298
+ for (var n = [{
3299
+ obj: {
3300
+ o: e
3301
+ },
3302
+ prop: "o"
3303
+ }], r = [], o = 0; o < n.length; ++o) for (var a = n[o], i = a.obj[a.prop], s = Object.keys(i), l = 0; l < s.length; ++l) {
3304
+ var u = s[l],
3305
+ c = i[u];
3306
+ _typeof(c) == "object" && c !== null && r.indexOf(c) === -1 && (n.push({
3307
+ obj: i,
3308
+ prop: u
3309
+ }), r.push(c));
3310
+ }
3311
+ return sc(n), e;
3312
+ },
3313
+ dc = function dc(e) {
3314
+ return Object.prototype.toString.call(e) === "[object RegExp]";
3315
+ },
3316
+ yc = function yc(e) {
3317
+ return !e || _typeof(e) != "object" ? false : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
3318
+ },
3319
+ hc = function hc(e, n) {
3320
+ return [].concat(e, n);
3321
+ },
3322
+ mc = function mc(e, n) {
3323
+ if (V(e)) {
3324
+ for (var r = [], o = 0; o < e.length; o += 1) r.push(n(e[o]));
3325
+ return r;
3326
+ }
3327
+ return n(e);
3328
+ },
3329
+ jn = {
3330
+ arrayToObject: kn,
3331
+ assign: lc,
3332
+ combine: hc,
3333
+ compact: pc,
3334
+ decode: uc,
3335
+ encode: fc,
3336
+ isBuffer: yc,
3337
+ isRegExp: dc,
3338
+ maybeMap: mc,
3339
+ merge: cc
3340
+ },
3341
+ qn = nc,
3342
+ $e = jn,
3343
+ ge = Qt,
3344
+ gc = Object.prototype.hasOwnProperty,
3345
+ zn = {
3346
+ brackets: function brackets(e) {
3347
+ return e + "[]";
3348
+ },
3349
+ comma: "comma",
3350
+ indices: function indices(e, n) {
3351
+ return e + "[" + n + "]";
3352
+ },
3353
+ repeat: function repeat(e) {
3354
+ return e;
3355
+ }
3356
+ },
3357
+ B = Array.isArray,
3358
+ vc = Array.prototype.push,
3359
+ Hn = function Hn(t, e) {
3360
+ vc.apply(t, B(e) ? e : [e]);
3361
+ },
3362
+ Sc = Date.prototype.toISOString,
3363
+ Br = ge["default"],
3364
+ C = {
3365
+ addQueryPrefix: false,
3366
+ allowDots: false,
3367
+ allowEmptyArrays: false,
3368
+ arrayFormat: "indices",
3369
+ charset: "utf-8",
3370
+ charsetSentinel: false,
3371
+ commaRoundTrip: false,
3372
+ delimiter: "&",
3373
+ encode: true,
3374
+ encodeDotInKeys: false,
3375
+ encoder: $e.encode,
3376
+ encodeValuesOnly: false,
3377
+ filter: undefined,
3378
+ format: Br,
3379
+ formatter: ge.formatters[Br],
3380
+ // deprecated
3381
+ indices: false,
3382
+ serializeDate: function serializeDate(e) {
3383
+ return Sc.call(e);
3384
+ },
3385
+ skipNulls: false,
3386
+ strictNullHandling: false
3387
+ },
3388
+ wc = function wc(e) {
3389
+ return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || _typeof(e) == "symbol" || typeof e == "bigint";
3390
+ },
3391
+ Ot = {},
3392
+ bc = function t(e, n, r, o, a, i, s, l, u, c, f, d, v, y, m, h, w, E) {
3393
+ for (var g = e, A = E, O = 0, x = false; (A = A.get(Ot)) !== undefined && !x;) {
3394
+ var N = A.get(e);
3395
+ if (O += 1, _typeof(N) < "u") {
3396
+ if (N === O) throw new RangeError("Cyclic object value");
3397
+ x = true;
3398
+ }
3399
+ _typeof(A.get(Ot)) > "u" && (O = 0);
3400
+ }
3401
+ if (typeof c == "function" ? g = c(n, g) : g instanceof Date ? g = v(g) : r === "comma" && B(g) && (g = $e.maybeMap(g, function (et) {
3402
+ return et instanceof Date ? v(et) : et;
3403
+ })), g === null) {
3404
+ if (i) return u && !h ? u(n, C.encoder, w, "key", y) : n;
3405
+ g = "";
3406
+ }
3407
+ if (wc(g) || $e.isBuffer(g)) {
3408
+ if (u) {
3409
+ var j = h ? n : u(n, C.encoder, w, "key", y);
3410
+ return [m(j) + "=" + m(u(g, C.encoder, w, "value", y))];
3411
+ }
3412
+ return [m(n) + "=" + m(String(g))];
3413
+ }
3414
+ var L = [];
3415
+ if (_typeof(g) > "u") return L;
3416
+ var H;
3417
+ if (r === "comma" && B(g)) h && u && (g = $e.maybeMap(g, u)), H = [{
3418
+ value: g.length > 0 ? g.join(",") || null : undefined
3419
+ }];else if (B(c)) H = c;else {
3420
+ var Pe = Object.keys(g);
3421
+ H = f ? Pe.sort(f) : Pe;
3422
+ }
3423
+ var te = l ? String(n).replace(/\./g, "%2E") : String(n),
3424
+ D = o && B(g) && g.length === 1 ? te + "[]" : te;
3425
+ if (a && B(g) && g.length === 0) return D + "[]";
3426
+ for (var W = 0; W < H.length; ++W) {
3427
+ var q = H[W],
3428
+ fe = _typeof(q) == "object" && q && _typeof(q.value) < "u" ? q.value : g[q];
3429
+ if (!(s && fe === null)) {
3430
+ var Ye = d && l ? String(q).replace(/\./g, "%2E") : String(q),
3431
+ Zn = B(g) ? typeof r == "function" ? r(D, Ye) : D : D + (d ? "." + Ye : "[" + Ye + "]");
3432
+ E.set(e, O);
3433
+ var Zt = qn();
3434
+ Zt.set(Ot, E), Hn(L, t(fe, Zn, r, o, a, i, s, l, r === "comma" && h && B(g) ? null : u, c, f, d, v, y, m, h, w, Zt));
3435
+ }
3436
+ }
3437
+ return L;
3438
+ },
3439
+ Ec = function Ec(e) {
3440
+ if (!e) return C;
3441
+ if (_typeof(e.allowEmptyArrays) < "u" && typeof e.allowEmptyArrays != "boolean") throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3442
+ if (_typeof(e.encodeDotInKeys) < "u" && typeof e.encodeDotInKeys != "boolean") throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
3443
+ if (e.encoder !== null && _typeof(e.encoder) < "u" && typeof e.encoder != "function") throw new TypeError("Encoder has to be a function.");
3444
+ var n = e.charset || C.charset;
3445
+ if (_typeof(e.charset) < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3446
+ var r = ge["default"];
3447
+ if (_typeof(e.format) < "u") {
3448
+ if (!gc.call(ge.formatters, e.format)) throw new TypeError("Unknown format option provided.");
3449
+ r = e.format;
3450
+ }
3451
+ var o = ge.formatters[r],
3452
+ a = C.filter;
3453
+ (typeof e.filter == "function" || B(e.filter)) && (a = e.filter);
3454
+ var i;
3455
+ if (e.arrayFormat in zn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = C.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean") throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
3456
+ var s = _typeof(e.allowDots) > "u" ? e.encodeDotInKeys === true ? true : C.allowDots : !!e.allowDots;
3457
+ return {
3458
+ addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : C.addQueryPrefix,
3459
+ allowDots: s,
3460
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : C.allowEmptyArrays,
3461
+ arrayFormat: i,
3462
+ charset: n,
3463
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : C.charsetSentinel,
3464
+ commaRoundTrip: !!e.commaRoundTrip,
3465
+ delimiter: _typeof(e.delimiter) > "u" ? C.delimiter : e.delimiter,
3466
+ encode: typeof e.encode == "boolean" ? e.encode : C.encode,
3467
+ encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : C.encodeDotInKeys,
3468
+ encoder: typeof e.encoder == "function" ? e.encoder : C.encoder,
3469
+ encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : C.encodeValuesOnly,
3470
+ filter: a,
3471
+ format: r,
3472
+ formatter: o,
3473
+ serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : C.serializeDate,
3474
+ skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : C.skipNulls,
3475
+ sort: typeof e.sort == "function" ? e.sort : null,
3476
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : C.strictNullHandling
3477
+ };
3478
+ },
3479
+ Ac = function Ac(t, e) {
3480
+ var n = t,
3481
+ r = Ec(e),
3482
+ o,
3483
+ a;
3484
+ typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : B(r.filter) && (a = r.filter, o = a);
3485
+ var i = [];
3486
+ if (_typeof(n) != "object" || n === null) return "";
3487
+ var s = zn[r.arrayFormat],
3488
+ l = s === "comma" && r.commaRoundTrip;
3489
+ o || (o = Object.keys(n)), r.sort && o.sort(r.sort);
3490
+ for (var u = qn(), c = 0; c < o.length; ++c) {
3491
+ var f = o[c],
3492
+ d = n[f];
3493
+ r.skipNulls && d === null || Hn(i, bc(d, f, s, l, r.allowEmptyArrays, r.strictNullHandling, r.skipNulls, r.encodeDotInKeys, r.encode ? r.encoder : null, r.filter, r.sort, r.allowDots, r.serializeDate, r.format, r.formatter, r.encodeValuesOnly, r.charset, u));
3494
+ }
3495
+ var v = i.join(r.delimiter),
3496
+ y = r.addQueryPrefix === true ? "?" : "";
3497
+ return r.charsetSentinel && (r.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), v.length > 0 ? y + v : "";
3498
+ },
3499
+ Y = jn,
3500
+ Mt = Object.prototype.hasOwnProperty,
3501
+ kr = Array.isArray,
3502
+ R = {
3503
+ allowDots: false,
3504
+ allowEmptyArrays: false,
3505
+ allowPrototypes: false,
3506
+ allowSparse: false,
3507
+ arrayLimit: 20,
3508
+ charset: "utf-8",
3509
+ charsetSentinel: false,
3510
+ comma: false,
3511
+ decodeDotInKeys: false,
3512
+ decoder: Y.decode,
3513
+ delimiter: "&",
3514
+ depth: 5,
3515
+ duplicates: "combine",
3516
+ ignoreQueryPrefix: false,
3517
+ interpretNumericEntities: false,
3518
+ parameterLimit: 1e3,
3519
+ parseArrays: true,
3520
+ plainObjects: false,
3521
+ strictDepth: false,
3522
+ strictNullHandling: false,
3523
+ throwOnLimitExceeded: false
3524
+ },
3525
+ Oc = function Oc(t) {
3526
+ return t.replace(/&#(\d+);/g, function (e, n) {
3527
+ return String.fromCharCode(parseInt(n, 10));
3528
+ });
3529
+ },
3530
+ Wn = function Wn(t, e, n) {
3531
+ if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1) return t.split(",");
3532
+ if (e.throwOnLimitExceeded && n >= e.arrayLimit) throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
3533
+ return t;
3534
+ },
3535
+ Rc = "utf8=%26%2310003%3B",
3536
+ Pc = "utf8=%E2%9C%93",
3537
+ Cc = function Cc(e, n) {
3538
+ var r = {
3539
+ __proto__: null
3540
+ },
3541
+ o = n.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
3542
+ o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
3543
+ var a = n.parameterLimit === 1 / 0 ? undefined : n.parameterLimit,
3544
+ i = o.split(n.delimiter, n.throwOnLimitExceeded ? a + 1 : a);
3545
+ if (n.throwOnLimitExceeded && i.length > a) throw new RangeError("Parameter limit exceeded. Only " + a + " parameter" + (a === 1 ? "" : "s") + " allowed.");
3546
+ var s = -1,
3547
+ l,
3548
+ u = n.charset;
3549
+ if (n.charsetSentinel) for (l = 0; l < i.length; ++l) i[l].indexOf("utf8=") === 0 && (i[l] === Pc ? u = "utf-8" : i[l] === Rc && (u = "iso-8859-1"), s = l, l = i.length);
3550
+ for (l = 0; l < i.length; ++l) if (l !== s) {
3551
+ var c = i[l],
3552
+ f = c.indexOf("]="),
3553
+ d = f === -1 ? c.indexOf("=") : f + 1,
3554
+ v,
3555
+ y;
3556
+ d === -1 ? (v = n.decoder(c, R.decoder, u, "key"), y = n.strictNullHandling ? null : "") : (v = n.decoder(c.slice(0, d), R.decoder, u, "key"), y = Y.maybeMap(Wn(c.slice(d + 1), n, kr(r[v]) ? r[v].length : 0), function (h) {
3557
+ return n.decoder(h, R.decoder, u, "value");
3558
+ })), y && n.interpretNumericEntities && u === "iso-8859-1" && (y = Oc(String(y))), c.indexOf("[]=") > -1 && (y = kr(y) ? [y] : y);
3559
+ var m = Mt.call(r, v);
3560
+ m && n.duplicates === "combine" ? r[v] = Y.combine(r[v], y) : (!m || n.duplicates === "last") && (r[v] = y);
3561
+ }
3562
+ return r;
3563
+ },
3564
+ Ic = function Ic(t, e, n, r) {
3565
+ var o = 0;
3566
+ if (t.length > 0 && t[t.length - 1] === "[]") {
3567
+ var a = t.slice(0, -1).join("");
3568
+ o = Array.isArray(e) && e[a] ? e[a].length : 0;
3569
+ }
3570
+ for (var i = r ? e : Wn(e, n, o), s = t.length - 1; s >= 0; --s) {
3571
+ var l,
3572
+ u = t[s];
3573
+ if (u === "[]" && n.parseArrays) l = n.allowEmptyArrays && (i === "" || n.strictNullHandling && i === null) ? [] : Y.combine([], i);else {
3574
+ l = n.plainObjects ? {
3575
+ __proto__: null
3576
+ } : {};
3577
+ var c = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u,
3578
+ f = n.decodeDotInKeys ? c.replace(/%2E/g, ".") : c,
3579
+ d = parseInt(f, 10);
3580
+ !n.parseArrays && f === "" ? l = {
3581
+ 0: i
3582
+ } : !isNaN(d) && u !== f && String(d) === f && d >= 0 && n.parseArrays && d <= n.arrayLimit ? (l = [], l[d] = i) : f !== "__proto__" && (l[f] = i);
3583
+ }
3584
+ i = l;
3585
+ }
3586
+ return i;
3587
+ },
3588
+ Tc = function Tc(e, n, r, o) {
3589
+ if (e) {
3590
+ var a = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e,
3591
+ i = /(\[[^[\]]*])/,
3592
+ s = /(\[[^[\]]*])/g,
3593
+ l = r.depth > 0 && i.exec(a),
3594
+ u = l ? a.slice(0, l.index) : a,
3595
+ c = [];
3596
+ if (u) {
3597
+ if (!r.plainObjects && Mt.call(Object.prototype, u) && !r.allowPrototypes) return;
3598
+ c.push(u);
3599
+ }
3600
+ for (var f = 0; r.depth > 0 && (l = s.exec(a)) !== null && f < r.depth;) {
3601
+ if (f += 1, !r.plainObjects && Mt.call(Object.prototype, l[1].slice(1, -1)) && !r.allowPrototypes) return;
3602
+ c.push(l[1]);
3603
+ }
3604
+ if (l) {
3605
+ if (r.strictDepth === true) throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
3606
+ c.push("[" + a.slice(l.index) + "]");
3607
+ }
3608
+ return Ic(c, n, r, o);
3609
+ }
3610
+ },
3611
+ xc = function xc(e) {
3612
+ if (!e) return R;
3613
+ if (_typeof(e.allowEmptyArrays) < "u" && typeof e.allowEmptyArrays != "boolean") throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
3614
+ if (_typeof(e.decodeDotInKeys) < "u" && typeof e.decodeDotInKeys != "boolean") throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");
3615
+ if (e.decoder !== null && _typeof(e.decoder) < "u" && typeof e.decoder != "function") throw new TypeError("Decoder has to be a function.");
3616
+ if (_typeof(e.charset) < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1") throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
3617
+ if (_typeof(e.throwOnLimitExceeded) < "u" && typeof e.throwOnLimitExceeded != "boolean") throw new TypeError("`throwOnLimitExceeded` option must be a boolean");
3618
+ var n = _typeof(e.charset) > "u" ? R.charset : e.charset,
3619
+ r = _typeof(e.duplicates) > "u" ? R.duplicates : e.duplicates;
3620
+ if (r !== "combine" && r !== "first" && r !== "last") throw new TypeError("The duplicates option must be either combine, first, or last");
3621
+ var o = _typeof(e.allowDots) > "u" ? e.decodeDotInKeys === true ? true : R.allowDots : !!e.allowDots;
3622
+ return {
3623
+ allowDots: o,
3624
+ allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : R.allowEmptyArrays,
3625
+ allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : R.allowPrototypes,
3626
+ allowSparse: typeof e.allowSparse == "boolean" ? e.allowSparse : R.allowSparse,
3627
+ arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : R.arrayLimit,
3628
+ charset: n,
3629
+ charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : R.charsetSentinel,
3630
+ comma: typeof e.comma == "boolean" ? e.comma : R.comma,
3631
+ decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : R.decodeDotInKeys,
3632
+ decoder: typeof e.decoder == "function" ? e.decoder : R.decoder,
3633
+ delimiter: typeof e.delimiter == "string" || Y.isRegExp(e.delimiter) ? e.delimiter : R.delimiter,
3634
+ // eslint-disable-next-line no-implicit-coercion, no-extra-parens
3635
+ depth: typeof e.depth == "number" || e.depth === false ? +e.depth : R.depth,
3636
+ duplicates: r,
3637
+ ignoreQueryPrefix: e.ignoreQueryPrefix === true,
3638
+ interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : R.interpretNumericEntities,
3639
+ parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : R.parameterLimit,
3640
+ parseArrays: e.parseArrays !== false,
3641
+ plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : R.plainObjects,
3642
+ strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : R.strictDepth,
3643
+ strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : R.strictNullHandling,
3644
+ throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : false
3645
+ };
3646
+ },
3647
+ Nc = function Nc(t, e) {
3648
+ var n = xc(e);
3649
+ if (t === "" || t === null || _typeof(t) > "u") return n.plainObjects ? {
3650
+ __proto__: null
3651
+ } : {};
3652
+ for (var r = typeof t == "string" ? Cc(t, n) : t, o = n.plainObjects ? {
3653
+ __proto__: null
3654
+ } : {}, a = Object.keys(r), i = 0; i < a.length; ++i) {
3655
+ var s = a[i],
3656
+ l = Tc(s, r[s], n, typeof t == "string");
3657
+ o = Y.merge(o, l, n);
3658
+ }
3659
+ return n.allowSparse === true ? o : Y.compact(o);
3660
+ },
3661
+ _c = Ac,
3662
+ Fc = Nc,
3663
+ Dc = Qt,
3664
+ $c = {
3665
+ formats: Dc,
3666
+ parse: Fc,
3667
+ stringify: _c
3668
+ };
3669
+ var Lc = /* @__PURE__ */qa($c);
3670
+ /*! js-cookie v3.0.5 | MIT */
3671
+ function Te(t) {
3672
+ for (var e = 1; e < arguments.length; e++) {
3673
+ var n = arguments[e];
3674
+ for (var r in n) t[r] = n[r];
3675
+ }
3676
+ return t;
3677
+ }
3678
+ var Uc = {
3679
+ read: function read(t) {
3680
+ return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
3681
+ },
3682
+ write: function write(t) {
3683
+ return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
3684
+ }
3685
+ };
3686
+ function Bt(t, e) {
3687
+ function n(o, a, i) {
3688
+ if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u")) {
3689
+ i = Te({}, e, i), typeof i.expires == "number" && (i.expires = new Date(Date.now() + i.expires * 864e5)), i.expires && (i.expires = i.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
3690
+ var s = "";
3691
+ for (var l in i) i[l] && (s += "; " + l, i[l] !== true && (s += "=" + i[l].split(";")[0]));
3692
+ return document.cookie = o + "=" + t.write(a, o) + s;
3693
+ }
3694
+ }
3695
+ function r(o) {
3696
+ if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u" || arguments.length && !o)) {
3697
+ for (var a = document.cookie ? document.cookie.split("; ") : [], i = {}, s = 0; s < a.length; s++) {
3698
+ var l = a[s].split("="),
3699
+ u = l.slice(1).join("=");
3700
+ try {
3701
+ var c = decodeURIComponent(l[0]);
3702
+ if (i[c] = t.read(u, c), o === c) break;
3703
+ } catch (_unused19) {}
3704
+ }
3705
+ return o ? i[o] : i;
3706
+ }
3707
+ }
3708
+ return Object.create({
3709
+ set: n,
3710
+ get: r,
3711
+ remove: function remove(o, a) {
3712
+ n(o, "", Te({}, a, {
3713
+ expires: -1
3714
+ }));
3715
+ },
3716
+ withAttributes: function withAttributes(o) {
3717
+ return Bt(this.converter, Te({}, this.attributes, o));
3718
+ },
3719
+ withConverter: function withConverter(o) {
3720
+ return Bt(Te({}, this.converter, o), this.attributes);
3721
+ }
3722
+ }, {
3723
+ attributes: {
3724
+ value: Object.freeze(e)
3725
+ },
3726
+ converter: {
3727
+ value: Object.freeze(t)
3728
+ }
3729
+ });
3730
+ }
3731
+ var jr = Bt(Uc, {
3732
+ path: "/"
3733
+ });
3734
+ kt.extend(so);
3735
+ kt.extend(co);
3736
+ var Xt = config.getConfig(),
3737
+ Jn = (_Xt$sso = Xt.sso) !== null && _Xt$sso !== void 0 ? _Xt$sso : true,
3738
+ qr = (_Xt$i18n = Xt.i18n) !== null && _Xt$i18n !== void 0 ? _Xt$i18n : true,
3739
+ Gn = (_Xt$noRedireLogin = Xt.noRedireLogin) !== null && _Xt$noRedireLogin !== void 0 ? _Xt$noRedireLogin : false;
3740
+ var zr = "",
3741
+ Hr = 0;
3742
+ var Mc = 1e3,
3743
+ Wr = /*#__PURE__*/function () {
3744
+ var _ref21 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(t, e) {
3745
+ var n,
3746
+ r,
3747
+ o,
3748
+ a,
3749
+ i,
3750
+ _args0 = arguments;
3751
+ return _regenerator().w(function (_context0) {
3752
+ while (1) switch (_context0.n) {
3753
+ case 0:
3754
+ n = _args0.length > 2 && _args0[2] !== undefined ? _args0[2] : [];
3755
+ r = Date.now(), o = 1200, a = 60;
3756
+ case 1:
3757
+ if (!(Date.now() - r < o)) {
3758
+ _context0.n = 4;
3759
+ break;
3760
+ }
3761
+ i = t.apply(void 0, [e].concat(_toConsumableArray(n)));
3762
+ if (!(i && i !== e)) {
3763
+ _context0.n = 2;
3764
+ break;
3765
+ }
3766
+ return _context0.a(2, i);
3767
+ case 2:
3768
+ _context0.n = 3;
3769
+ return new Promise(function (s) {
3770
+ return setTimeout(s, a);
3771
+ });
3772
+ case 3:
3773
+ _context0.n = 1;
3774
+ break;
3775
+ case 4:
3776
+ return _context0.a(2, t.apply(void 0, [e].concat(_toConsumableArray(n))));
3777
+ }
3778
+ }, _callee9);
3779
+ }));
3780
+ return function Wr(_x10, _x11) {
3781
+ return _ref21.apply(this, arguments);
3782
+ };
3783
+ }();
3784
+ var Rt = false;
3785
+ var Bc = 5e3,
3786
+ Vn = function Vn() {
3787
+ return Rt ? false : (Rt = true, setTimeout(function () {
3788
+ Rt = false;
3789
+ }, Bc), true);
3790
+ },
3791
+ Kn = function Kn() {
3792
+ var e, n;
3793
+ if (Gn) return;
3794
+ var t = "/login";
3795
+ location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false, (e = window.top) != null && e.vueRouter ? (n = window.top) == null || n.vueRouter.replace(t) : window.location.replace("/#".concat(t)));
3796
+ },
3797
+ kc = function kc() {
3798
+ return sso.getQuery("code") || "" || Gn ? false : Vn() ? (Jn ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
3799
+ redirect_uri: sso.real_uri
3800
+ })) : Kn(), true) : false;
3801
+ },
3802
+ jc = /*#__PURE__*/function () {
3803
+ var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t) {
3804
+ var _t$data;
3805
+ var n;
3806
+ return _regenerator().w(function (_context1) {
3807
+ while (1) switch (_context1.n) {
3808
+ case 0:
3809
+ return _context1.a(2, ((n = t.config) == null ? undefined : n.responseType) === "blob" ? t : (_t$data = t.data) !== null && _t$data !== void 0 ? _t$data : t);
3810
+ }
3811
+ }, _callee0);
3812
+ }));
3813
+ return function jc(_x12) {
3814
+ return _ref22.apply(this, arguments);
3815
+ };
3816
+ }(),
3817
+ qc = /*#__PURE__*/function () {
3818
+ var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(t, e) {
3819
+ var y, m, h, w, _i18nBridge$getI18nBr, n, r, o, a, i, s, l, u, _ref24, E, g, A, _ref25, _ref26, _E, _g, _A, f, d, v, _t10, _t11, _t12;
3820
+ return _regenerator().w(function (_context10) {
3821
+ while (1) switch (_context10.n) {
3822
+ case 0:
3823
+ _i18nBridge$getI18nBr = i18nBridge.getI18nBridge(), n = _i18nBridge$getI18nBr.t;
3824
+ a = {};
3825
+ i = {
3826
+ 400: n("参数校验错误"),
3827
+ 404: n("接口地址未找到"),
3828
+ 500: n("服务器内部错误")
3829
+ };
3830
+ s = ((y = t == null ? undefined : t.response) == null ? undefined : y.data) || {};
3831
+ l = s == null ? undefined : s.code, u = (m = t.response) == null ? undefined : m.status;
3832
+ if (!(l === 401 || u === 401)) {
3833
+ _context10.n = 6;
3834
+ break;
3835
+ }
3836
+ kc(), r = l || u, a = s;
3837
+ E = (_ref24 = e == null ? undefined : e.i18n) !== null && _ref24 !== void 0 ? _ref24 : true;
3838
+ if (!(qr && E && s != null && s.status)) {
3839
+ _context10.n = 4;
3840
+ break;
3841
+ }
3842
+ g = !(s != null && s.data) || !s.data.length ? [] : s.data, A = n.apply(void 0, [s.status].concat(_toConsumableArray(g)));
3843
+ if (!(A === s.status)) {
3844
+ _context10.n = 2;
3845
+ break;
3846
+ }
3847
+ _context10.n = 1;
3848
+ return Wr(n, s.status, g);
3849
+ case 1:
3850
+ _t10 = _context10.v;
3851
+ _context10.n = 3;
3852
+ break;
3853
+ case 2:
3854
+ _t10 = A;
3855
+ case 3:
3856
+ o = _t10;
3857
+ _context10.n = 5;
3858
+ break;
3859
+ case 4:
3860
+ o = (s == null ? undefined : s.msg) || i[r] || (t == null ? undefined : t.message);
3861
+ case 5:
3862
+ _context10.n = 17;
3863
+ break;
3864
+ case 6:
3865
+ if (!t.response) {
3866
+ _context10.n = 16;
3867
+ break;
3868
+ }
3869
+ _t11 = s instanceof Blob;
3870
+ if (!_t11) {
3871
+ _context10.n = 8;
3872
+ break;
3873
+ }
3874
+ _context10.n = 7;
3875
+ return new Promise(function (E) {
3876
+ var g = new FileReader();
3877
+ g.readAsText(s, "utf-8"), g.onload = function () {
3878
+ try {
3879
+ E(JSON.parse(g.result || "{}"));
3880
+ } catch (_unused20) {
3881
+ E({
3882
+ code: 400,
3883
+ msg: n("解析错误")
3884
+ });
3885
+ }
3886
+ };
3887
+ });
3888
+ case 7:
3889
+ s = _context10.v;
3890
+ case 8:
3891
+ if (!(s.code !== undefined && s.code !== null)) {
3892
+ _context10.n = 14;
3893
+ break;
3894
+ }
3895
+ r = s.code, a = s;
3896
+ _E = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
3897
+ if (!(qr && _E && s != null && s.status)) {
3898
+ _context10.n = 12;
3899
+ break;
3900
+ }
3901
+ _g = !(s != null && s.data) || !s.data.length ? [] : s.data, _A = n.apply(void 0, [s.status].concat(_toConsumableArray(_g)));
3902
+ if (!(_A === s.status)) {
3903
+ _context10.n = 10;
3904
+ break;
3905
+ }
3906
+ _context10.n = 9;
3907
+ return Wr(n, s.status, _g);
3908
+ case 9:
3909
+ _t12 = _context10.v;
3910
+ _context10.n = 11;
3911
+ break;
3912
+ case 10:
3913
+ _t12 = _A;
3914
+ case 11:
3915
+ o = _t12;
3916
+ _context10.n = 13;
3917
+ break;
3918
+ case 12:
3919
+ o = (_ref26 = s == null ? undefined : s.msg) !== null && _ref26 !== void 0 ? _ref26 : "";
3920
+ case 13:
3921
+ _context10.n = 15;
3922
+ break;
3923
+ case 14:
3924
+ r = t.response.status, o = i[r] || t.message;
3925
+ case 15:
3926
+ o || (o = i[t.response.status] || t.message);
3927
+ _context10.n = 17;
3928
+ break;
3929
+ case 16:
3930
+ t.request ? (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("网络异常,请检查您的网络情况")) : (r = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = n("请求配置异常"));
3931
+ case 17:
3932
+ e != null && e.customErrorMessage && (o = e == null ? undefined : e.customErrorMessage(o, t));
3933
+ f = Date.now(), d = o === zr, v = f - Hr < Mc;
3934
+ return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!d || !v) && ((w = (h = window.DasMessage) == null ? undefined : h.error) == null || w.call(h, {
3935
+ message: o,
3936
+ showClose: true
3937
+ }), zr = o, Hr = f), _objectSpread(_objectSpread({}, a), {}, {
3938
+ code: r,
3939
+ msg: o,
3940
+ error: t
3941
+ })));
3942
+ }
3943
+ }, _callee1);
3944
+ }));
3945
+ return function qc(_x13, _x14) {
3946
+ return _ref23.apply(this, arguments);
3947
+ };
3948
+ }();
3949
+ function zc(t, e) {
3950
+ var n = P.create();
3951
+ return curringHttp.curringHttp(n, /*#__PURE__*/function () {
3952
+ var _ref27 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee10(r) {
3953
+ var _r$csrf, _ref28;
3954
+ var _i18nBridge$getI18nBr2, o, a, f, d, _d, l, _commonInfo$getProjec, _f2, _d2, _commonInfo$getInstan, _f3, c, _t13;
3955
+ return _regenerator().w(function (_context11) {
3956
+ while (1) switch (_context11.n) {
3957
+ case 0:
3958
+ _i18nBridge$getI18nBr2 = i18nBridge.getI18nBridge(), o = _i18nBridge$getI18nBr2.currentLang, a = config.getConfig();
3959
+ if (!(r.headers || (r.headers = {}), !(r != null && r["public"]))) {
3960
+ _context11.n = 7;
3961
+ break;
3962
+ }
3963
+ f = "";
3964
+ if (a.token && (f = a.token), !f) {
3965
+ d = new URL(location.href).searchParams;
3966
+ f = d.get("token") || d.get("accessToken") || d.get("accesstoken") || "";
3967
+ }
3968
+ if (!Jn) {
3969
+ _context11.n = 3;
3970
+ break;
3971
+ }
3972
+ _t13 = f;
3973
+ if (_t13) {
3974
+ _context11.n = 2;
3975
+ break;
3976
+ }
3977
+ _context11.n = 1;
3978
+ return sso.getToken(r);
3979
+ case 1:
3980
+ f = _context11.v;
3981
+ case 2:
3982
+ _context11.n = 6;
3983
+ break;
3984
+ case 3:
3985
+ f || (f = tokenTools.getAccessToken());
3986
+ _d = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
3987
+ if (!f) {
3988
+ _context11.n = 5;
3989
+ break;
3990
+ }
3991
+ _context11.n = 4;
3992
+ return checkToken.getValidAccessToken(_d, function (y) {
3993
+ window.localStorage.setItem("tokenInfo", JSON.stringify(y));
3994
+ });
3995
+ case 4:
3996
+ f = _context11.v;
3997
+ _context11.n = 6;
3998
+ break;
3999
+ case 5:
4000
+ Vn() && Kn();
4001
+ case 6:
4002
+ f && !r.headers.Authorization && (r.headers.Authorization = "Bearer ".concat(f));
4003
+ case 7:
4004
+ r.baseURL || (r.baseURL = a.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = {
4005
+ serialize: function serialize(f) {
4006
+ return Lc.stringify(f, {
4007
+ indices: false
4008
+ });
4009
+ }
4010
+ }), r.onSuccess || (r.onSuccess = jc), r.onError || (r.onError = qc), ((_r$csrf = r.csrf) !== null && _r$csrf !== void 0 ? _r$csrf : false) && (r.headers["csrf-token"] = jr.get("csrf-token"));
4011
+ l = r.params || {};
4012
+ if (l.project === undefined) {
4013
+ _f2 = 0;
4014
+ _d2 = new URL(location.href).searchParams;
4015
+ _f2 = _d2.get("project") || _d2.get("projectId") || 0, _f2 || (_f2 = (_commonInfo$getProjec = commonInfo.getProjectInfo().id) !== null && _commonInfo$getProjec !== void 0 ? _commonInfo$getProjec : 0), (_f2 || _f2 === 0) && (l.project = _f2);
4016
+ }
4017
+ if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
4018
+ _commonInfo$getInstan = commonInfo.getInstanceInfo(), _f3 = _commonInfo$getInstan.instanceInfo;
4019
+ _f3 != null && _f3.instanceId && (l.instance = _f3.instanceId);
4020
+ }
4021
+ r.params = l, r.headers.Timezone = kt.tz.guess(), r.headers["X-Origin"] = location.origin;
4022
+ c = (_ref28 = o == null ? undefined : o.value) !== null && _ref28 !== void 0 ? _ref28 : "";
4023
+ return _context11.a(2, (c && (r.headers["Accept-Language"] = c), c && jr.set("locale", c), r));
4024
+ }
4025
+ }, _callee10);
4026
+ }));
4027
+ return function (_x15) {
4028
+ return _ref27.apply(this, arguments);
4029
+ };
4030
+ }());
4031
+ }
4032
+ var Hc = "v1",
4033
+ Qn = zc("/api/admin/basic-application/user-rights/".concat(Hc)),
4034
+ Wc = Qn.get("/menu-module-func"),
4035
+ Jc = Qn.post("/right-func"),
4036
+ Jr = function Jr(t) {
4037
+ return Array.isArray(t) ? t : t == null || t === "" ? [] : [t];
4038
+ },
4039
+ Gc = function Gc(t) {
4040
+ var e = Jr(t == null ? undefined : t.appIds).map(function (o) {
4041
+ return typeof o == "number" ? o : String(o !== null && o !== void 0 ? o : "").trim();
4042
+ }).filter(function (o) {
4043
+ return typeof o == "number" ? !Number.isNaN(o) : !!o;
4044
+ }),
4045
+ n = Jr(t == null ? undefined : t.moduleIds).map(function (o) {
4046
+ return typeof o == "number" ? o : String(o !== null && o !== void 0 ? o : "").trim();
4047
+ }).filter(function (o) {
4048
+ return typeof o == "number" ? !Number.isNaN(o) : !!o;
4049
+ });
4050
+ if (!e.length) return null;
4051
+ var r = {
4052
+ appIds: e
4053
+ };
4054
+ return n.length && (r.moduleIds = n), r;
4055
+ },
4056
+ Pt = function Pt(t) {
4057
+ var e = {
4058
+ id: {
4059
+ id: []
4060
+ },
4061
+ code: {}
4062
+ },
4063
+ n = Array.isArray(t) ? t : [],
4064
+ r = function r(a) {
4065
+ var i = String(a !== null && a !== void 0 ? a : "").trim();
4066
+ if (!i) return {
4067
+ groupCode: "",
4068
+ actionCode: ""
4069
+ };
4070
+ if (i.includes(".")) {
4071
+ var c = i.split(".").filter(Boolean),
4072
+ f = c.length > 1 ? String(c[c.length - 1] || "") : "";
4073
+ return {
4074
+ groupCode: c.length > 1 ? c.slice(0, -1).join(".") : i,
4075
+ actionCode: f
4076
+ };
4077
+ }
4078
+ var s = i.split("_").filter(Boolean),
4079
+ l = s.length > 1 ? String(s[s.length - 1] || "") : "";
4080
+ return {
4081
+ groupCode: s.length > 1 ? s.slice(0, -1).join("_") : i,
4082
+ actionCode: l
4083
+ };
4084
+ },
4085
+ o = /* @__PURE__ */new Set();
4086
+ var _iterator3 = _createForOfIteratorHelper(n),
4087
+ _step3;
4088
+ try {
4089
+ var _loop = function _loop() {
4090
+ var a = _step3.value;
4091
+ if (!a || _typeof(a) != "object") return 0; // continue
4092
+ var i = Number(a == null ? undefined : a.id);
4093
+ !Number.isNaN(i) && !e.id.id.includes(i) && e.id.id.push(i);
4094
+ var _r2 = r(a == null ? undefined : a.code),
4095
+ s = _r2.groupCode,
4096
+ l = _r2.actionCode;
4097
+ if (!s || !l) return 0; // continue
4098
+ var u = e.code[s] || [];
4099
+ u.some(function (d) {
4100
+ return String(d == null ? undefined : d.code) === String(l);
4101
+ }) || (u.push({
4102
+ code: l
4103
+ }), e.code[s] = u);
4104
+ var f = a == null ? undefined : a.code;
4105
+ if (f != null) {
4106
+ var d = String(f).trim();
4107
+ d && o.add(d);
4108
+ }
4109
+ },
4110
+ _ret;
4111
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
4112
+ _ret = _loop();
4113
+ if (_ret === 0) continue;
4114
+ }
4115
+ } catch (err) {
4116
+ _iterator3.e(err);
4117
+ } finally {
4118
+ _iterator3.f();
4119
+ }
4120
+ return e.code.sourceCode = Array.from(o), e;
4121
+ },
4122
+ Vc = function Vc() {
4123
+ var t = window.sessionStorage.getItem("currentUserMenuPermissionsList") || "";
4124
+ try {
4125
+ var _ref29;
4126
+ var e = JSON.parse(window.sessionStorage.getItem("menuItem") || "{}"),
4127
+ n = String((_ref29 = e == null ? void 0 : e.id) !== null && _ref29 !== void 0 ? _ref29 : "").trim(),
4128
+ r = String(window.sessionStorage.getItem("currentUserMenuPermissionsMenuId") || "").trim();
4129
+ if (n && r && n !== r) return Pt([]);
4130
+ var o = t ? JSON.parse(t) : [];
4131
+ return Pt(o);
4132
+ } catch (_unused21) {
4133
+ return Pt([]);
4134
+ }
4135
+ },
4136
+ Xn = function Xn() {
4137
+ var t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "id";
4138
+ var i, s;
4139
+ var e = Vc();
4140
+ if (!e || _typeof(e) != "object") return t === "all" ? {
4141
+ idList: [],
4142
+ codeList: []
4143
+ } : [];
4144
+ var n = (i = e == null ? undefined : e.id) == null ? undefined : i.id,
4145
+ r = Array.isArray(n) ? n : [],
4146
+ o = (s = e == null ? undefined : e.code) == null ? undefined : s.sourceCode,
4147
+ a = Array.isArray(o) ? o : [];
4148
+ return t === "all" ? {
4149
+ idList: r,
4150
+ codeList: a
4151
+ } : t === "code" ? a : r;
4152
+ },
4153
+ pl = function pl(t, e) {
4154
+ var n = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee11() {
4155
+ var r, o, _o2, a, i;
4156
+ return _regenerator().w(function (_context12) {
4157
+ while (1) switch (_context12.n) {
4158
+ case 0:
4159
+ r = Gc(t);
4160
+ if (r) {
4161
+ _context12.n = 1;
4162
+ break;
4163
+ }
4164
+ return _context12.a(2, []);
4165
+ case 1:
4166
+ _context12.n = 2;
4167
+ return Jc().run(r);
4168
+ case 2:
4169
+ o = _context12.v;
4170
+ _o2 = _slicedToArray(o, 2);
4171
+ a = _o2[0];
4172
+ i = _o2[1];
4173
+ return _context12.a(2, a ? [] : i);
4174
+ }
4175
+ }, _callee11);
4176
+ }))();
4177
+ return typeof e == "function" && n.then(function (r) {
4178
+ return e(r);
4179
+ })["catch"](function () {
4180
+ return e([]);
4181
+ }), n;
4182
+ },
4183
+ dl = function dl(t, e) {
4184
+ var n = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee12() {
4185
+ var r, o, _o3, a, i;
4186
+ return _regenerator().w(function (_context13) {
4187
+ while (1) switch (_context13.n) {
4188
+ case 0:
4189
+ r = String(t !== null && t !== void 0 ? t : "").trim();
4190
+ if (r) {
4191
+ _context13.n = 1;
4192
+ break;
4193
+ }
4194
+ return _context13.a(2, []);
4195
+ case 1:
4196
+ _context13.n = 2;
4197
+ return Wc().run({
4198
+ menuId: r
4199
+ });
4200
+ case 2:
4201
+ o = _context13.v;
4202
+ _o3 = _slicedToArray(o, 2);
4203
+ a = _o3[0];
4204
+ i = _o3[1];
4205
+ return _context13.a(2, a ? [] : i);
4206
+ }
4207
+ }, _callee12);
4208
+ }))();
4209
+ return typeof e == "function" && n.then(function (r) {
4210
+ return e(r);
4211
+ })["catch"](function () {
4212
+ return e([]);
4213
+ }), n;
4214
+ },
4215
+ yl = function yl(t) {
4216
+ var _e$routeUrl, _e$parentId, _e$id, _e$appId, _e$menuAppearance, _e$name, _e$showName, _ref32;
4217
+ var e = t || JSON.parse(sessionStorage.getItem("menuItem") || "{}");
4218
+ return {
4219
+ authCodes: Xn(),
4220
+ routeUrl: (_e$routeUrl = e.routeUrl) !== null && _e$routeUrl !== void 0 ? _e$routeUrl : "",
4221
+ parentId: (_e$parentId = e.parentId) !== null && _e$parentId !== void 0 ? _e$parentId : "",
4222
+ id: (_e$id = e.id) !== null && _e$id !== void 0 ? _e$id : "",
4223
+ appId: (_e$appId = e.appId) !== null && _e$appId !== void 0 ? _e$appId : "",
4224
+ menuAppearance: (_e$menuAppearance = e.menuAppearance) !== null && _e$menuAppearance !== void 0 ? _e$menuAppearance : "",
4225
+ name: (_e$name = e.name) !== null && _e$name !== void 0 ? _e$name : e.showName,
4226
+ showName: (_e$showName = e.showName) !== null && _e$showName !== void 0 ? _e$showName : "",
4227
+ type: (_ref32 = e == null ? undefined : e.type) !== null && _ref32 !== void 0 ? _ref32 : ""
4228
+ };
4229
+ },
4230
+ hl = function hl() {
22
4231
  return JSON.parse(sessionStorage.getItem("menuList") || "[]");
23
4232
  },
24
- S = function S() {
25
- var e = JSON.parse(sessionStorage.getItem("menuList") || "[]"),
26
- t = {};
27
- return e.forEach(function (s) {
28
- s.appId && (s.rightFuncCodes && s.rightFuncCodes.forEach(function (n) {
29
- return t[n] = [];
30
- }), s.children && s.children.forEach(function (n) {
31
- var p, o;
32
- if (n.routeCode && (t[n.routeCode] = []), n.rightFuncCodes && n.rightFuncCodes[0] && !n.children) {
33
- var r = (p = n.rightFuncCodes[0]) == null ? undefined : p.lastIndexOf("."),
34
- g = (o = n.rightFuncCodes[0]) == null ? undefined : o.slice(0, r);
35
- t[g] = [], n.rightFuncCodes.forEach(function (a) {
36
- var l = a == null ? undefined : a.lastIndexOf(".");
37
- t[g].push({
38
- code: a == null ? undefined : a.slice(l + 1)
4233
+ ml = function ml() {
4234
+ var t = JSON.parse(sessionStorage.getItem("menuList") || "[]"),
4235
+ e = {};
4236
+ return t.forEach(function (n) {
4237
+ n.appId && (n.rightFuncCodes && n.rightFuncCodes.forEach(function (r) {
4238
+ return e[r] = [];
4239
+ }), n.children && n.children.forEach(function (r) {
4240
+ var o, a;
4241
+ if (r.routeCode && (e[r.routeCode] = []), r.rightFuncCodes && r.rightFuncCodes[0] && !r.children) {
4242
+ var i = (o = r.rightFuncCodes[0]) == null ? undefined : o.lastIndexOf("."),
4243
+ s = (a = r.rightFuncCodes[0]) == null ? undefined : a.slice(0, i);
4244
+ e[s] = [], r.rightFuncCodes.forEach(function (l) {
4245
+ var u = l == null ? undefined : l.lastIndexOf(".");
4246
+ e[s].push({
4247
+ code: l == null ? undefined : l.slice(u + 1)
39
4248
  });
40
4249
  });
41
4250
  }
42
- n.children && n.children.forEach(function (r) {
43
- var g, a;
44
- if (r.routeCode && (t[r.routeCode] = []), r.rightFuncCodes) {
45
- var l = (g = r.rightFuncCodes[0]) == null ? undefined : g.lastIndexOf("."),
46
- d = (a = r.rightFuncCodes[0]) == null ? undefined : a.slice(0, l);
47
- t[d] = [], r.rightFuncCodes.forEach(function (c) {
48
- var m = c == null ? undefined : c.lastIndexOf(".");
49
- t[d].push({
50
- code: c == null ? undefined : c.slice(m + 1)
4251
+ r.children && r.children.forEach(function (i) {
4252
+ var s, l;
4253
+ if (i.routeCode && (e[i.routeCode] = []), i.rightFuncCodes) {
4254
+ var u = (s = i.rightFuncCodes[0]) == null ? undefined : s.lastIndexOf("."),
4255
+ c = (l = i.rightFuncCodes[0]) == null ? undefined : l.slice(0, u);
4256
+ e[c] = [], i.rightFuncCodes.forEach(function (f) {
4257
+ var d = f == null ? undefined : f.lastIndexOf(".");
4258
+ e[c].push({
4259
+ code: f == null ? undefined : f.slice(d + 1)
51
4260
  });
52
4261
  });
53
4262
  }
54
4263
  });
55
4264
  }));
56
- }), console.log("authobj", t), t;
4265
+ }), e;
57
4266
  },
58
- h = tokenTools.getAccessToken,
59
- J = function J() {
60
- var _e$id, _e$userName, _e$flag, _ref2;
61
- var s;
62
- var e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
4267
+ Kc = tokenTools.getAccessToken,
4268
+ gl = function gl() {
4269
+ var _t$id, _t$userName, _t$flag, _ref33;
4270
+ var n;
4271
+ var t = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
63
4272
  return {
64
- id: (_e$id = e.id) !== null && _e$id !== void 0 ? _e$id : "",
65
- name: (_e$userName = e.userName) !== null && _e$userName !== void 0 ? _e$userName : "",
66
- flag: (_e$flag = e.flag) !== null && _e$flag !== void 0 ? _e$flag : null,
67
- tenantId: (_ref2 = (s = e == null ? undefined : e.tenant) == null ? undefined : s.id) !== null && _ref2 !== void 0 ? _ref2 : ""
68
- };
69
- },
70
- A = function A() {
71
- var _e$id2, _e$name, _e$userName2, _e$phone, _e$email, _e$headPicture;
72
- var e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
73
- var t = config.getConfig();
74
- return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
75
- id: (_e$id2 = e.id) !== null && _e$id2 !== void 0 ? _e$id2 : "",
76
- name: (_e$name = e.name) !== null && _e$name !== void 0 ? _e$name : "",
77
- userName: (_e$userName2 = e.userName) !== null && _e$userName2 !== void 0 ? _e$userName2 : "",
78
- phone: (_e$phone = e.phone) !== null && _e$phone !== void 0 ? _e$phone : "",
79
- email: (_e$email = e.email) !== null && _e$email !== void 0 ? _e$email : "",
80
- headPicture: (_e$headPicture = e.headPicture) !== null && _e$headPicture !== void 0 ? _e$headPicture : ""
81
- };
82
- },
83
- x = function x() {
84
- var _e$id3, _e$userName3, _e$name2, _e$areaCode, _e$region, _e$phone2, _e$email2, _e$flag2, _e$tenant, _e$headPicture2, _e$nickName, _e$gender, _e$status, _e$statusName, _e$tags, _e$type, _e$address, _e$description;
85
- var e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
4273
+ id: (_t$id = t.id) !== null && _t$id !== void 0 ? _t$id : "",
4274
+ name: (_t$userName = t.userName) !== null && _t$userName !== void 0 ? _t$userName : "",
4275
+ flag: (_t$flag = t.flag) !== null && _t$flag !== void 0 ? _t$flag : null,
4276
+ tenantId: (_ref33 = (n = t == null ? undefined : t.tenant) == null ? undefined : n.id) !== null && _ref33 !== void 0 ? _ref33 : ""
4277
+ };
4278
+ },
4279
+ vl = function vl() {
4280
+ var _t$id2, _t$name, _t$userName2, _t$phone, _t$email, _t$headPicture;
4281
+ var t = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
4282
+ var e = config.getConfig();
4283
+ return JSON.stringify(t) === "{}" && e.personalInfo && (t = e.personalInfo), {
4284
+ id: (_t$id2 = t.id) !== null && _t$id2 !== void 0 ? _t$id2 : "",
4285
+ name: (_t$name = t.name) !== null && _t$name !== void 0 ? _t$name : "",
4286
+ userName: (_t$userName2 = t.userName) !== null && _t$userName2 !== void 0 ? _t$userName2 : "",
4287
+ phone: (_t$phone = t.phone) !== null && _t$phone !== void 0 ? _t$phone : "",
4288
+ email: (_t$email = t.email) !== null && _t$email !== void 0 ? _t$email : "",
4289
+ headPicture: (_t$headPicture = t.headPicture) !== null && _t$headPicture !== void 0 ? _t$headPicture : ""
4290
+ };
4291
+ },
4292
+ Sl = function Sl() {
4293
+ var _t$id3, _t$userName3, _t$name2, _t$areaCode, _t$region, _t$phone2, _t$email2, _t$flag2, _t$tenant, _t$headPicture2, _t$nickName, _t$gender, _t$status, _t$statusName, _t$tags, _t$type, _t$address, _t$description;
4294
+ var t = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
86
4295
  return {
87
- userId: (_e$id3 = e.id) !== null && _e$id3 !== void 0 ? _e$id3 : "",
88
- userName: (_e$userName3 = e.userName) !== null && _e$userName3 !== void 0 ? _e$userName3 : "",
89
- name: (_e$name2 = e.name) !== null && _e$name2 !== void 0 ? _e$name2 : "",
90
- areaCode: (_e$areaCode = e.areaCode) !== null && _e$areaCode !== void 0 ? _e$areaCode : "",
91
- region: (_e$region = e.region) !== null && _e$region !== void 0 ? _e$region : "",
92
- phone: (_e$phone2 = e.phone) !== null && _e$phone2 !== void 0 ? _e$phone2 : "",
93
- email: (_e$email2 = e.email) !== null && _e$email2 !== void 0 ? _e$email2 : "",
94
- flag: (_e$flag2 = e.flag) !== null && _e$flag2 !== void 0 ? _e$flag2 : null,
95
- tenant: (_e$tenant = e.tenant) !== null && _e$tenant !== void 0 ? _e$tenant : {},
96
- headPicture: (_e$headPicture2 = e.headPicture) !== null && _e$headPicture2 !== void 0 ? _e$headPicture2 : "",
97
- nickName: (_e$nickName = e.nickName) !== null && _e$nickName !== void 0 ? _e$nickName : "",
98
- gender: (_e$gender = e.gender) !== null && _e$gender !== void 0 ? _e$gender : null,
99
- status: (_e$status = e.status) !== null && _e$status !== void 0 ? _e$status : null,
100
- statusName: (_e$statusName = e.statusName) !== null && _e$statusName !== void 0 ? _e$statusName : null,
101
- tags: (_e$tags = e.tags) !== null && _e$tags !== void 0 ? _e$tags : [],
102
- type: (_e$type = e.type) !== null && _e$type !== void 0 ? _e$type : null,
103
- address: (_e$address = e.address) !== null && _e$address !== void 0 ? _e$address : "",
104
- description: (_e$description = e.description) !== null && _e$description !== void 0 ? _e$description : ""
105
- };
106
- },
107
- M = function M() {
4296
+ userId: (_t$id3 = t.id) !== null && _t$id3 !== void 0 ? _t$id3 : "",
4297
+ userName: (_t$userName3 = t.userName) !== null && _t$userName3 !== void 0 ? _t$userName3 : "",
4298
+ name: (_t$name2 = t.name) !== null && _t$name2 !== void 0 ? _t$name2 : "",
4299
+ areaCode: (_t$areaCode = t.areaCode) !== null && _t$areaCode !== void 0 ? _t$areaCode : "",
4300
+ region: (_t$region = t.region) !== null && _t$region !== void 0 ? _t$region : "",
4301
+ phone: (_t$phone2 = t.phone) !== null && _t$phone2 !== void 0 ? _t$phone2 : "",
4302
+ email: (_t$email2 = t.email) !== null && _t$email2 !== void 0 ? _t$email2 : "",
4303
+ flag: (_t$flag2 = t.flag) !== null && _t$flag2 !== void 0 ? _t$flag2 : null,
4304
+ tenant: (_t$tenant = t.tenant) !== null && _t$tenant !== void 0 ? _t$tenant : {},
4305
+ headPicture: (_t$headPicture2 = t.headPicture) !== null && _t$headPicture2 !== void 0 ? _t$headPicture2 : "",
4306
+ nickName: (_t$nickName = t.nickName) !== null && _t$nickName !== void 0 ? _t$nickName : "",
4307
+ gender: (_t$gender = t.gender) !== null && _t$gender !== void 0 ? _t$gender : null,
4308
+ status: (_t$status = t.status) !== null && _t$status !== void 0 ? _t$status : null,
4309
+ statusName: (_t$statusName = t.statusName) !== null && _t$statusName !== void 0 ? _t$statusName : null,
4310
+ tags: (_t$tags = t.tags) !== null && _t$tags !== void 0 ? _t$tags : [],
4311
+ type: (_t$type = t.type) !== null && _t$type !== void 0 ? _t$type : null,
4312
+ address: (_t$address = t.address) !== null && _t$address !== void 0 ? _t$address : "",
4313
+ description: (_t$description = t.description) !== null && _t$description !== void 0 ? _t$description : ""
4314
+ };
4315
+ },
4316
+ wl = function wl() {
108
4317
  return sessionStorage.getItem("languages");
109
4318
  },
110
- N = function N() {
111
- var _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11;
112
- var e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
113
- var t = config.getConfig();
114
- return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
115
- id: (_ref3 = e == null ? undefined : e.id) !== null && _ref3 !== void 0 ? _ref3 : 0,
116
- code: (_ref4 = e == null ? undefined : e.code) !== null && _ref4 !== void 0 ? _ref4 : 0,
117
- name: (_ref5 = e == null ? undefined : e.name) !== null && _ref5 !== void 0 ? _ref5 : "",
118
- type: (_ref6 = e == null ? undefined : e.type) !== null && _ref6 !== void 0 ? _ref6 : null,
119
- parentId: (_ref7 = e == null ? undefined : e.parentId) !== null && _ref7 !== void 0 ? _ref7 : "",
120
- parentName: (_ref8 = e == null ? undefined : e.parentName) !== null && _ref8 !== void 0 ? _ref8 : "",
121
- parentType: (_ref9 = e == null ? undefined : e.parentType) !== null && _ref9 !== void 0 ? _ref9 : null,
122
- tenantId: (_ref0 = e == null ? undefined : e.tenant) !== null && _ref0 !== void 0 ? _ref0 : "",
123
- isParent: (_ref1 = e == null ? undefined : e.isParent) !== null && _ref1 !== void 0 ? _ref1 : false,
124
- leaf: (_ref10 = e == null ? undefined : e.leaf) !== null && _ref10 !== void 0 ? _ref10 : false,
125
- optional: (_ref11 = e == null ? undefined : e.leaf) !== null && _ref11 !== void 0 ? _ref11 : true
126
- };
127
- },
128
- E = function E() {
129
- var _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31, _ref32;
130
- var e = JSON.parse(sessionStorage.getItem("project-message") || "{}");
4319
+ Qc = function Qc() {
4320
+ var _ref34, _ref35, _ref36, _ref37, _ref38, _ref39, _ref40, _ref41, _ref42, _ref43, _ref44;
4321
+ var t = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
4322
+ var e = config.getConfig();
4323
+ return JSON.stringify(t) === "{}" && e.projectInfo && (t = e.projectInfo), {
4324
+ id: (_ref34 = t == null ? undefined : t.id) !== null && _ref34 !== void 0 ? _ref34 : 0,
4325
+ code: (_ref35 = t == null ? undefined : t.code) !== null && _ref35 !== void 0 ? _ref35 : 0,
4326
+ name: (_ref36 = t == null ? undefined : t.name) !== null && _ref36 !== void 0 ? _ref36 : "",
4327
+ type: (_ref37 = t == null ? undefined : t.type) !== null && _ref37 !== void 0 ? _ref37 : null,
4328
+ parentId: (_ref38 = t == null ? undefined : t.parentId) !== null && _ref38 !== void 0 ? _ref38 : "",
4329
+ parentName: (_ref39 = t == null ? undefined : t.parentName) !== null && _ref39 !== void 0 ? _ref39 : "",
4330
+ parentType: (_ref40 = t == null ? undefined : t.parentType) !== null && _ref40 !== void 0 ? _ref40 : null,
4331
+ tenantId: (_ref41 = t == null ? undefined : t.tenant) !== null && _ref41 !== void 0 ? _ref41 : "",
4332
+ isParent: (_ref42 = t == null ? undefined : t.isParent) !== null && _ref42 !== void 0 ? _ref42 : false,
4333
+ leaf: (_ref43 = t == null ? undefined : t.leaf) !== null && _ref43 !== void 0 ? _ref43 : false,
4334
+ optional: (_ref44 = t == null ? undefined : t.leaf) !== null && _ref44 !== void 0 ? _ref44 : true
4335
+ };
4336
+ },
4337
+ bl = function bl() {
4338
+ var _ref45, _ref46, _ref47, _ref48, _ref49, _ref50, _ref51, _ref52, _ref53, _ref54, _ref55, _ref56, _ref57, _ref58, _ref59, _ref60, _ref61, _ref62, _ref63, _ref64, _ref65;
4339
+ var t = JSON.parse(sessionStorage.getItem("project-message") || "{}");
131
4340
  return {
132
- id: (_ref12 = e == null ? undefined : e.id) !== null && _ref12 !== void 0 ? _ref12 : 0,
133
- projectName: (_ref13 = e == null ? undefined : e.projectName) !== null && _ref13 !== void 0 ? _ref13 : "",
134
- provinceCode: (_ref14 = e == null ? undefined : e.provinceCode) !== null && _ref14 !== void 0 ? _ref14 : "",
135
- cityCode: (_ref15 = e == null ? undefined : e.cityCode) !== null && _ref15 !== void 0 ? _ref15 : "",
136
- areaCode: (_ref16 = e == null ? undefined : e.areaCode) !== null && _ref16 !== void 0 ? _ref16 : "",
137
- address: (_ref17 = e == null ? undefined : e.address) !== null && _ref17 !== void 0 ? _ref17 : "",
138
- projectDesc: (_ref18 = e == null ? undefined : e.projectDesc) !== null && _ref18 !== void 0 ? _ref18 : "",
139
- logoPath: (_ref19 = e == null ? undefined : e.logoPath) !== null && _ref19 !== void 0 ? _ref19 : "",
140
- projectType: (_ref20 = e == null ? undefined : e.projectType) !== null && _ref20 !== void 0 ? _ref20 : "",
141
- projectTypeCode: (_ref21 = e == null ? undefined : e.projectTypeCode) !== null && _ref21 !== void 0 ? _ref21 : "",
142
- longitude: (_ref22 = e == null ? undefined : e.longitude) !== null && _ref22 !== void 0 ? _ref22 : "",
143
- latitude: (_ref23 = e == null ? undefined : e.latitude) !== null && _ref23 !== void 0 ? _ref23 : "",
144
- projectStartDate: (_ref24 = e == null ? undefined : e.projectStartDate) !== null && _ref24 !== void 0 ? _ref24 : "",
145
- projectExpiryDate: (_ref25 = e == null ? undefined : e.projectExpiryDate) !== null && _ref25 !== void 0 ? _ref25 : "",
146
- projectCode: (_ref26 = e == null ? undefined : e.projectCode) !== null && _ref26 !== void 0 ? _ref26 : "",
147
- mapConfiguration: (_ref27 = e == null ? undefined : e.mapConfiguration) !== null && _ref27 !== void 0 ? _ref27 : false,
148
- cityName: (_ref28 = e == null ? undefined : e.cityName) !== null && _ref28 !== void 0 ? _ref28 : "",
149
- cityNamePinyin: (_ref29 = e == null ? undefined : e.cityNamePinyin) !== null && _ref29 !== void 0 ? _ref29 : "",
150
- timezone: (_ref30 = e == null ? undefined : e.timezone) !== null && _ref30 !== void 0 ? _ref30 : "",
151
- autoTimezone: (_ref31 = e == null ? undefined : e.autoTimezone) !== null && _ref31 !== void 0 ? _ref31 : false,
152
- currency: (_ref32 = e == null ? undefined : e.currency) !== null && _ref32 !== void 0 ? _ref32 : {}
153
- };
154
- },
155
- k = function k() {
156
- var _ref33, _ref34, _ref35, _ref36, _ref37, _ref38, _ref39;
157
- var e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
4341
+ id: (_ref45 = t == null ? undefined : t.id) !== null && _ref45 !== void 0 ? _ref45 : 0,
4342
+ projectName: (_ref46 = t == null ? undefined : t.projectName) !== null && _ref46 !== void 0 ? _ref46 : "",
4343
+ provinceCode: (_ref47 = t == null ? undefined : t.provinceCode) !== null && _ref47 !== void 0 ? _ref47 : "",
4344
+ cityCode: (_ref48 = t == null ? undefined : t.cityCode) !== null && _ref48 !== void 0 ? _ref48 : "",
4345
+ areaCode: (_ref49 = t == null ? undefined : t.areaCode) !== null && _ref49 !== void 0 ? _ref49 : "",
4346
+ address: (_ref50 = t == null ? undefined : t.address) !== null && _ref50 !== void 0 ? _ref50 : "",
4347
+ projectDesc: (_ref51 = t == null ? undefined : t.projectDesc) !== null && _ref51 !== void 0 ? _ref51 : "",
4348
+ logoPath: (_ref52 = t == null ? undefined : t.logoPath) !== null && _ref52 !== void 0 ? _ref52 : "",
4349
+ projectType: (_ref53 = t == null ? undefined : t.projectType) !== null && _ref53 !== void 0 ? _ref53 : "",
4350
+ projectTypeCode: (_ref54 = t == null ? undefined : t.projectTypeCode) !== null && _ref54 !== void 0 ? _ref54 : "",
4351
+ longitude: (_ref55 = t == null ? undefined : t.longitude) !== null && _ref55 !== void 0 ? _ref55 : "",
4352
+ latitude: (_ref56 = t == null ? undefined : t.latitude) !== null && _ref56 !== void 0 ? _ref56 : "",
4353
+ projectStartDate: (_ref57 = t == null ? undefined : t.projectStartDate) !== null && _ref57 !== void 0 ? _ref57 : "",
4354
+ projectExpiryDate: (_ref58 = t == null ? undefined : t.projectExpiryDate) !== null && _ref58 !== void 0 ? _ref58 : "",
4355
+ projectCode: (_ref59 = t == null ? undefined : t.projectCode) !== null && _ref59 !== void 0 ? _ref59 : "",
4356
+ mapConfiguration: (_ref60 = t == null ? undefined : t.mapConfiguration) !== null && _ref60 !== void 0 ? _ref60 : false,
4357
+ cityName: (_ref61 = t == null ? undefined : t.cityName) !== null && _ref61 !== void 0 ? _ref61 : "",
4358
+ cityNamePinyin: (_ref62 = t == null ? undefined : t.cityNamePinyin) !== null && _ref62 !== void 0 ? _ref62 : "",
4359
+ timezone: (_ref63 = t == null ? undefined : t.timezone) !== null && _ref63 !== void 0 ? _ref63 : "",
4360
+ autoTimezone: (_ref64 = t == null ? undefined : t.autoTimezone) !== null && _ref64 !== void 0 ? _ref64 : false,
4361
+ currency: (_ref65 = t == null ? undefined : t.currency) !== null && _ref65 !== void 0 ? _ref65 : {}
4362
+ };
4363
+ },
4364
+ El = function El() {
4365
+ var _ref66, _ref67, _ref68, _ref69, _ref70, _ref71, _ref72;
4366
+ var t = JSON.parse(sessionStorage.getItem("home-config") || "{}");
158
4367
  return {
159
- applicationCode: (_ref33 = e == null ? undefined : e.applicationCode) !== null && _ref33 !== void 0 ? _ref33 : "",
160
- applicationPath: (_ref34 = e == null ? undefined : e.applicationPath) !== null && _ref34 !== void 0 ? _ref34 : "",
161
- enable: (_ref35 = e == null ? undefined : e.enable) !== null && _ref35 !== void 0 ? _ref35 : false,
162
- originalCode: (_ref36 = e == null ? undefined : e.originalCode) !== null && _ref36 !== void 0 ? _ref36 : "",
163
- routeUrl: (_ref37 = e == null ? undefined : e.routeUrl) !== null && _ref37 !== void 0 ? _ref37 : "",
164
- displayPosition: (_ref38 = e == null ? undefined : e.displayPosition) !== null && _ref38 !== void 0 ? _ref38 : 1,
165
- type: (_ref39 = e == null ? undefined : e.type) !== null && _ref39 !== void 0 ? _ref39 : null
166
- };
167
- },
168
- U = function U() {
169
- var _ref40, _ref41;
170
- var e = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
4368
+ applicationCode: (_ref66 = t == null ? undefined : t.applicationCode) !== null && _ref66 !== void 0 ? _ref66 : "",
4369
+ applicationPath: (_ref67 = t == null ? undefined : t.applicationPath) !== null && _ref67 !== void 0 ? _ref67 : "",
4370
+ enable: (_ref68 = t == null ? undefined : t.enable) !== null && _ref68 !== void 0 ? _ref68 : false,
4371
+ originalCode: (_ref69 = t == null ? undefined : t.originalCode) !== null && _ref69 !== void 0 ? _ref69 : "",
4372
+ routeUrl: (_ref70 = t == null ? undefined : t.routeUrl) !== null && _ref70 !== void 0 ? _ref70 : "",
4373
+ displayPosition: (_ref71 = t == null ? undefined : t.displayPosition) !== null && _ref71 !== void 0 ? _ref71 : 1,
4374
+ type: (_ref72 = t == null ? undefined : t.type) !== null && _ref72 !== void 0 ? _ref72 : null
4375
+ };
4376
+ },
4377
+ Al = function Al() {
4378
+ var _ref73, _ref74;
4379
+ var t = JSON.parse(sessionStorage.getItem("personal-config") || "{}");
171
4380
  return {
172
- style: (_ref40 = e == null ? undefined : e.style) !== null && _ref40 !== void 0 ? _ref40 : "",
173
- skinStyle: (_ref41 = e == null ? undefined : e.skinStyle) !== null && _ref41 !== void 0 ? _ref41 : ""
4381
+ style: (_ref73 = t == null ? undefined : t.style) !== null && _ref73 !== void 0 ? _ref73 : "",
4382
+ skinStyle: (_ref74 = t == null ? undefined : t.skinStyle) !== null && _ref74 !== void 0 ? _ref74 : ""
174
4383
  };
175
4384
  },
176
- j = function j(e, t) {
177
- if (!e) return;
178
- var s = S()[e];
179
- return console.log("getPageAuth", s), s;
4385
+ Xc = function Xc() {
4386
+ try {
4387
+ var _ref75;
4388
+ var t = window.sessionStorage.getItem("menuItem") || "",
4389
+ e = t ? JSON.parse(t) : {};
4390
+ return String((_ref75 = e == null ? void 0 : e.routeCode) !== null && _ref75 !== void 0 ? _ref75 : "").trim();
4391
+ } catch (_unused22) {
4392
+ return "";
4393
+ }
4394
+ },
4395
+ Zc = function Zc(t, e) {
4396
+ var _ref76, _ref77;
4397
+ var n = (_ref76 = e == null ? undefined : e.returnType) !== null && _ref76 !== void 0 ? _ref76 : "set",
4398
+ r = String((_ref77 = e == null ? undefined : e.routeCode) !== null && _ref77 !== void 0 ? _ref77 : Xc()).trim(),
4399
+ o = Array.isArray(t) ? t : t instanceof Set ? Array.from(t) : [],
4400
+ a = /* @__PURE__ */new Set(),
4401
+ i = r ? "".concat(r, ".") : "";
4402
+ return i && o.forEach(function (s) {
4403
+ var _ref78;
4404
+ var l = (_ref78 = s && _typeof(s) == "object" ? s == null ? undefined : s.code : s) !== null && _ref78 !== void 0 ? _ref78 : "",
4405
+ u = String(l).trim();
4406
+ if (!u || !u.startsWith(i)) return;
4407
+ var c = u.slice(i.length);
4408
+ c && a.add(c.replace(/\./g, "-"));
4409
+ }), n === "list" ? Array.from(a).map(function (s) {
4410
+ return {
4411
+ code: s
4412
+ };
4413
+ }) : a;
4414
+ },
4415
+ Yc = function Yc(t, e) {
4416
+ var n = Xn("code"),
4417
+ r = Array.isArray(n) ? n : [];
4418
+ return Zc(r, {
4419
+ returnType: "list"
4420
+ });
180
4421
  },
181
- v = function v(e, t) {
182
- var _j;
183
- return (_j = j(e)) !== null && _j !== void 0 ? _j : [];
4422
+ Ol = function Ol(t, e) {
4423
+ var _Yc;
4424
+ return (_Yc = Yc()) !== null && _Yc !== void 0 ? _Yc : [];
184
4425
  },
185
- f = function f() {
186
- var _e$appcategorys, _e$currentSubApp, _e$currentSubAppCode, _e$subAppList, _e$menuCollapses;
187
- var e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
4426
+ el = function el() {
4427
+ var _t$appcategorys, _t$currentSubApp, _t$currentSubAppCode, _t$subAppList, _t$menuCollapses;
4428
+ var t = JSON.parse(sessionStorage.getItem("subApps") || "{}");
188
4429
  return {
189
- appcategorys: (_e$appcategorys = e.appcategorys) !== null && _e$appcategorys !== void 0 ? _e$appcategorys : [],
190
- currentSubApp: (_e$currentSubApp = e.currentSubApp) !== null && _e$currentSubApp !== void 0 ? _e$currentSubApp : {},
191
- currentSubAppCode: (_e$currentSubAppCode = e.currentSubAppCode) !== null && _e$currentSubAppCode !== void 0 ? _e$currentSubAppCode : "",
192
- subAppList: (_e$subAppList = e.subAppList) !== null && _e$subAppList !== void 0 ? _e$subAppList : [],
193
- menuCollapses: (_e$menuCollapses = e.menuCollapses) !== null && _e$menuCollapses !== void 0 ? _e$menuCollapses : []
194
- };
195
- },
196
- D = function D(e) {
197
- var _ref42, _ref43;
198
- var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
199
- var n, p;
200
- var s = f().subAppList;
201
- if (e) return t ? (_ref42 = (n = s == null ? undefined : s.find(function (o) {
202
- return o.code === e;
203
- })) == null ? undefined : n.originalMenus) !== null && _ref42 !== void 0 ? _ref42 : [] : (_ref43 = (p = s == null ? undefined : s.find(function (o) {
204
- return o.code === e;
205
- })) == null ? undefined : p.menus) !== null && _ref43 !== void 0 ? _ref43 : [];
4430
+ appcategorys: (_t$appcategorys = t.appcategorys) !== null && _t$appcategorys !== void 0 ? _t$appcategorys : [],
4431
+ currentSubApp: (_t$currentSubApp = t.currentSubApp) !== null && _t$currentSubApp !== void 0 ? _t$currentSubApp : {},
4432
+ currentSubAppCode: (_t$currentSubAppCode = t.currentSubAppCode) !== null && _t$currentSubAppCode !== void 0 ? _t$currentSubAppCode : "",
4433
+ subAppList: (_t$subAppList = t.subAppList) !== null && _t$subAppList !== void 0 ? _t$subAppList : [],
4434
+ menuCollapses: (_t$menuCollapses = t.menuCollapses) !== null && _t$menuCollapses !== void 0 ? _t$menuCollapses : []
4435
+ };
4436
+ },
4437
+ Rl = function Rl(t) {
4438
+ var _ref79, _ref80;
4439
+ var e = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
4440
+ var r, o;
4441
+ var n = el().subAppList;
4442
+ if (t) return e ? (_ref79 = (r = n == null ? undefined : n.find(function (a) {
4443
+ return a.code === t;
4444
+ })) == null ? undefined : r.originalMenus) !== null && _ref79 !== void 0 ? _ref79 : [] : (_ref80 = (o = n == null ? undefined : n.find(function (a) {
4445
+ return a.code === t;
4446
+ })) == null ? undefined : o.menus) !== null && _ref80 !== void 0 ? _ref80 : [];
206
4447
  {
207
- var o = {};
208
- return t ? s == null || s.forEach(function (r) {
209
- var _r$originalMenus;
210
- o[r.code] = (_r$originalMenus = r.originalMenus) !== null && _r$originalMenus !== void 0 ? _r$originalMenus : [];
211
- }) : s == null || s.forEach(function (r) {
212
- var _r$menus;
213
- o[r.code] = (_r$menus = r.menus) !== null && _r$menus !== void 0 ? _r$menus : [];
214
- }), o;
215
- }
216
- },
217
- z = function z() {
218
- var _e$currentCode, _e$currentTab, _e$tabMap, _e$preTab;
219
- var e = JSON.parse(sessionStorage.getItem("tabs") || "{}");
4448
+ var a = {};
4449
+ return e ? n == null || n.forEach(function (i) {
4450
+ var _i$originalMenus;
4451
+ a[i.code] = (_i$originalMenus = i.originalMenus) !== null && _i$originalMenus !== void 0 ? _i$originalMenus : [];
4452
+ }) : n == null || n.forEach(function (i) {
4453
+ var _i$menus;
4454
+ a[i.code] = (_i$menus = i.menus) !== null && _i$menus !== void 0 ? _i$menus : [];
4455
+ }), a;
4456
+ }
4457
+ },
4458
+ Pl = function Pl() {
4459
+ var _t$currentCode, _t$currentTab, _t$tabMap, _t$preTab;
4460
+ var t = JSON.parse(sessionStorage.getItem("tabs") || "{}");
220
4461
  return {
221
- currentCode: (_e$currentCode = e.currentCode) !== null && _e$currentCode !== void 0 ? _e$currentCode : "",
222
- currentTab: (_e$currentTab = e.currentTab) !== null && _e$currentTab !== void 0 ? _e$currentTab : {},
223
- tabMap: (_e$tabMap = e.tabMap) !== null && _e$tabMap !== void 0 ? _e$tabMap : {},
224
- preTab: (_e$preTab = e.preTab) !== null && _e$preTab !== void 0 ? _e$preTab : {}
4462
+ currentCode: (_t$currentCode = t.currentCode) !== null && _t$currentCode !== void 0 ? _t$currentCode : "",
4463
+ currentTab: (_t$currentTab = t.currentTab) !== null && _t$currentTab !== void 0 ? _t$currentTab : {},
4464
+ tabMap: (_t$tabMap = t.tabMap) !== null && _t$tabMap !== void 0 ? _t$tabMap : {},
4465
+ preTab: (_t$preTab = t.preTab) !== null && _t$preTab !== void 0 ? _t$preTab : {}
225
4466
  };
226
4467
  },
227
- w = function w() {
228
- var e = config.getConfig(),
229
- t = sessionStorage.getItem("minioAddress");
230
- return t || (e.baseURL ? e.baseURL : location.origin);
4468
+ Cl = function Cl() {
4469
+ var t = config.getConfig(),
4470
+ e = sessionStorage.getItem("minioAddress");
4471
+ return e || (t.baseURL ? t.baseURL : location.origin);
231
4472
  },
232
- L = function L() {
4473
+ Il = function Il() {
233
4474
  var _JSON$parse$instanceI;
234
4475
  return {
235
4476
  instanceInfo: (_JSON$parse$instanceI = JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo) !== null && _JSON$parse$instanceI !== void 0 ? _JSON$parse$instanceI : {}
236
4477
  };
237
4478
  },
238
- Q = function Q() {
4479
+ Tl = function Tl() {
239
4480
  return localStorage.getItem("fav-icon") || "./logo.svg";
240
4481
  };
241
- h() || getInfoFromUrl.getTokenFromQuery();
242
- var i;
243
- (i = N()) != null && i.id || getInfoFromUrl.getProjectInfoFromQuery();
244
- exports.getAuthobj = S;
245
- exports.getFavIcon = Q;
246
- exports.getHomeInfo = k;
247
- exports.getInstanceInfo = L;
248
- exports.getLanguages = M;
249
- exports.getMenuItemInfo = T;
250
- exports.getMenuListnfo = F;
251
- exports.getMenus = D;
252
- exports.getMinioAddress = w;
253
- exports.getPageAuth = j;
254
- exports.getPageAuthBtn = v;
255
- exports.getPersonalConfig = U;
256
- exports.getPersonalInfo = A;
257
- exports.getProjectInfo = N;
258
- exports.getProjectMessage = E;
259
- exports.getSubApps = f;
260
- exports.getTabInfo = z;
261
- exports.getTenantInfo = x;
262
- exports.getToken = h;
263
- exports.getUserInfo = J;
4482
+ Kc() || getInfoFromUrl.getTokenFromQuery();
4483
+ var Gr;
4484
+ (Gr = Qc()) != null && Gr.id || getInfoFromUrl.getProjectInfoFromQuery();
4485
+ exports.buildActionSuffixSet = Zc;
4486
+ exports.getAuthobj = ml;
4487
+ exports.getCurrentModulePermissionData = Xn;
4488
+ exports.getCurrentRouteCode = Xc;
4489
+ exports.getCurrentUserMenuPermissionsList = dl;
4490
+ exports.getCurrentUserPermissionsList = pl;
4491
+ exports.getFavIcon = Tl;
4492
+ exports.getGroupedCurrentUserPermissionList = Vc;
4493
+ exports.getHomeInfo = El;
4494
+ exports.getInstanceInfo = Il;
4495
+ exports.getLanguages = wl;
4496
+ exports.getMenuItemInfo = yl;
4497
+ exports.getMenuListnfo = hl;
4498
+ exports.getMenus = Rl;
4499
+ exports.getMinioAddress = Cl;
4500
+ exports.getPageAuth = Yc;
4501
+ exports.getPageAuthBtn = Ol;
4502
+ exports.getPersonalConfig = Al;
4503
+ exports.getPersonalInfo = vl;
4504
+ exports.getProjectInfo = Qc;
4505
+ exports.getProjectMessage = bl;
4506
+ exports.getSubApps = el;
4507
+ exports.getTabInfo = Pl;
4508
+ exports.getTenantInfo = Sl;
4509
+ exports.getToken = Kc;
4510
+ exports.getUserInfo = gl;
4511
+ exports.groupPermissionListByModuleAndCode = Pt;