@das-fed/upf-web 6.4.0-dev.217 → 6.4.0-dev.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- import { defineComponent as we, ref as M, onUnmounted as X0, openBlock as Y, createElementBlock as Se, createElementVNode as K, createVNode as Z, unref as F, createTextVNode as ze, toDisplayString as pe, createCommentVNode as oe, watch as ke, createBlock as se, computed as je, mergeProps as Q0, withCtx as X, renderSlot as Xe, getCurrentScope as Z0, onScopeDispose as J0, getCurrentInstance as Y0, onMounted as lt, nextTick as gt, reactive as ba, Fragment as _t, renderList as dn, withDirectives as wa, h as Ce, render as Tt, onBeforeUnmount as Nt, vShow as es, useCssVars as ts, normalizeClass as rs, withModifiers as ve, toRefs as ns, normalizeStyle as Xn, createSlots as os } from "vue";
1
+ import { defineComponent as we, ref as M, onUnmounted as X0, openBlock as J, createElementBlock as Se, createElementVNode as K, createVNode as Z, unref as F, createTextVNode as ze, toDisplayString as pe, createCommentVNode as oe, watch as ke, createBlock as se, computed as je, mergeProps as Q0, withCtx as X, renderSlot as Xe, getCurrentScope as Z0, onScopeDispose as Y0, getCurrentInstance as J0, onMounted as lt, nextTick as gt, reactive as ba, Fragment as _t, renderList as dn, withDirectives as wa, h as Ce, render as Tt, onBeforeUnmount as Nt, vShow as es, useCssVars as ts, normalizeClass as rs, withModifiers as ve, toRefs as ns, normalizeStyle as Xn, createSlots as os } from "vue";
2
2
  import { DasWebLayout as as, DasWebNav as ss, DasWebMenu as is, DasWebTabs as cs, layout as Q, layoutData as Ea } from "@das-fed/upf-web/packages/layout/index";
3
3
  import { useRoute as fn, useRouter as rr } from "vue-router";
4
4
  import { microFrontend as be } from "@das-fed/upf-web/packages/micro-frontend/index";
5
5
  import { i18n as V, t as ne, currentLang as Aa, setI18nRule as ls } from "@das-fed/upf-web/packages/i18n/index";
6
6
  import { DasIconWarning as us } from "@das-fed/upf-ui/packages/icons/warning/index";
7
7
  import { DasIconClose2 as ds } from "@das-fed/upf-ui/packages/icons/close-2/index";
8
- import { getSubApps as de, getTabInfo as De, getToken as Je, getTenantInfo as Ba, getProjectInfo as Ze, getPersonalInfo as pn, getUserInfo as ka, getMenus as Yr } from "@das-fed/upf-utils/common-info";
8
+ import { getSubApps as de, getTabInfo as De, getToken as Ye, getTenantInfo as Ba, getProjectInfo as Ze, getPersonalInfo as pn, getUserInfo as ka, getMenus as Jr } from "@das-fed/upf-utils/common-info";
9
9
  import { pureImageSrc as fs } from "@das-fed/upf-utils/pure-image-src";
10
10
  import { DasNotification as Qt } from "@das-fed/upf-ui/packages/components/notification/index";
11
11
  import { flatTree as Re, filterTreeArray as ps, setBrowseTitle as hs, updateFavIcon as xs, dateFormat as vs, objEqual as Qn, setShowWatermark as en, setShowLayout as tn, getUrlParams as gs, isEmpty as ms, withToken as _s } from "@das-fed/upf-utils/common-tools";
12
12
  import { setProcessEngineToken as Da, setProcessEngineProject as Cs } from "@das-fed/upf-utils/process-engine-info";
13
13
  import { oauthServer as Sa, justauth as hn, enterpriseright as xn, iotModules as ys, systemConfiguration as nr, portal as Fa } from "@das-fed/upf-utils/api-services/modules";
14
- import { createService as Ye } from "@das-fed/upf-utils/create-api-service";
14
+ import { createService as Je } from "@das-fed/upf-utils/create-api-service";
15
15
  import { getConfig as wt } from "@das-fed/upf-utils/config";
16
16
  import { login as Ia, getTokenParams as Ta, real_uri as Pa, tokenStorage as bs } from "@das-fed/upf-utils/create-api-service/sso";
17
17
  import { getAccessToken as ws, removeAccessToken as Es } from "@das-fed/upf-utils/token-tools";
@@ -24,7 +24,7 @@ import { DasChangePwdRef as ks } from "@das-fed/upf-ui/packages/business-compone
24
24
  import { systemConfiguration as Ds, enterpriseright as mn, createService as Et, spaceManage as Ra } from "@das-fed/upf-utils/api-services";
25
25
  import { setThemeRule as Ss } from "@das-fed/upf-web/packages/theme/index";
26
26
  import { bus as $a, reportRouter as Zn } from "@das-fed/mframe";
27
- import { vAuth as Jn } from "@das-fed/upf-utils/directive";
27
+ import { vAuth as Yn } from "@das-fed/upf-utils/directive";
28
28
  import rn from "dayjs";
29
29
  import { devicePanelShow as za, closeDevicePanel as Fs, alarmDevicePanelShow as Is, closeAlarmPanel as Ts } from "@das-fed/upf-ui/packages/business-components/device-panel/index";
30
30
  import { DasIconWarningFace as Ps } from "@das-fed/upf-ui/packages/icons/warning-face/index";
@@ -37,7 +37,7 @@ import { DasLivePlayer as $s } from "@das-fed/upf-ui/packages/components/live-pl
37
37
  import { DasWatermark as zs } from "@das-fed/upf-ui/packages/components/watermark/index";
38
38
  import { DasSelect as Os } from "@das-fed/upf-ui/packages/components/select/index";
39
39
  import { DasTreeSelect as Ms } from "@das-fed/upf-ui/packages/components/tree-select/index";
40
- import { DasInput as Yn } from "@das-fed/upf-ui/packages/components/input/index";
40
+ import { DasInput as Jn } from "@das-fed/upf-ui/packages/components/input/index";
41
41
  import { DasCheckbox as eo } from "@das-fed/upf-ui/packages/components/checkbox/index";
42
42
  import { DasForm as Ns } from "@das-fed/upf-ui/packages/components/form/index";
43
43
  import { DasFormItem as Ne } from "@das-fed/upf-ui/packages/components/form-item/index";
@@ -61,7 +61,7 @@ const Rt = "/home", qe = "/application", Ls = [
61
61
  });
62
62
  return X0(() => {
63
63
  u();
64
- }), (o, c) => n.value ? oe("v-if", !0) : (Y(), Se("div", Hs, [
64
+ }), (o, c) => n.value ? oe("v-if", !0) : (J(), Se("div", Hs, [
65
65
  K("div", Us, [
66
66
  Z(F(us), {
67
67
  class: "icons",
@@ -95,7 +95,7 @@ const Rt = "/home", qe = "/application", Ls = [
95
95
  t.value = n;
96
96
  },
97
97
  { immediate: !0 }
98
- ), (n, a) => t.value.startsWith("/iot/iot") ? (Y(), se(qs, { key: 0 })) : oe("v-if", !0);
98
+ ), (n, a) => t.value.startsWith("/iot/iot") ? (J(), se(qs, { key: 0 })) : oe("v-if", !0);
99
99
  }
100
100
  }), Vs = /* @__PURE__ */ we({
101
101
  __name: "base-layout",
@@ -123,7 +123,7 @@ const Rt = "/home", qe = "/application", Ls = [
123
123
  excludeRoutes: e.excludeRoutes,
124
124
  routeKeepAliveVisible: e.routeKeepAliveVisible
125
125
  }));
126
- return (a, s) => (Y(), se(F(as), Q0({
126
+ return (a, s) => (J(), se(F(as), Q0({
127
127
  pageKey: a.pageKey,
128
128
  "transition-config": t.value
129
129
  }, n.value), {
@@ -163,18 +163,18 @@ function Xs(r) {
163
163
  return r;
164
164
  }
165
165
  function La(r) {
166
- return Z0() ? (J0(r), !0) : !1;
166
+ return Z0() ? (Y0(r), !0) : !1;
167
167
  }
168
168
  function Qs(r, e = !0) {
169
- Y0() ? lt(r) : e ? r() : gt(r);
169
+ J0() ? lt(r) : e ? r() : gt(r);
170
170
  }
171
171
  function Ha(r) {
172
172
  var e;
173
173
  const t = Na(r);
174
174
  return (e = t == null ? void 0 : t.$el) != null ? e : t;
175
175
  }
176
- const Zs = Cn ? window : void 0, Js = Cn ? window.document : void 0;
177
- function Ys(...r) {
176
+ const Zs = Cn ? window : void 0, Ys = Cn ? window.document : void 0;
177
+ function Js(...r) {
178
178
  let e, t, n, a;
179
179
  if (Ks(r[0]) || Array.isArray(r[0]) ? ([t, n, a] = r, e = Zs) : [e, t, n, a] = r, !e)
180
180
  return Gs;
@@ -237,7 +237,7 @@ const oo = [
237
237
  ]
238
238
  ];
239
239
  function Lt(r, e = {}) {
240
- const { document: t = Js, autoExit: n = !1 } = e, a = r || (t == null ? void 0 : t.querySelector("html")), s = M(!1);
240
+ const { document: t = Ys, autoExit: n = !1 } = e, a = r || (t == null ? void 0 : t.querySelector("html")), s = M(!1);
241
241
  let i = oo[0];
242
242
  const l = ei(() => {
243
243
  if (t) {
@@ -261,7 +261,7 @@ function Lt(r, e = {}) {
261
261
  async function p() {
262
262
  s.value ? await d() : await h();
263
263
  }
264
- return t && Ys(t, _, () => {
264
+ return t && Js(t, _, () => {
265
265
  s.value = !!(t != null && t[c]);
266
266
  }, !1), n && La(d), {
267
267
  isSupported: l,
@@ -378,7 +378,7 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
378
378
  const g = !!((m = t.value) != null && m.pageSwith);
379
379
  let x = ((f = p.query) == null ? void 0 : f.showWatermark) ?? !0;
380
380
  x === "false" && (x = !1), _(!!(g && x));
381
- }), (g, x) => (Y(), se(F(zs), {
381
+ }), (g, x) => (J(), se(F(zs), {
382
382
  class: "watermark",
383
383
  font: l,
384
384
  zIndex: 2147483647,
@@ -407,7 +407,7 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
407
407
  },
408
408
  setup(r) {
409
409
  const e = M(!0);
410
- return (t, n) => (Y(), se(F(gn), {
410
+ return (t, n) => (J(), se(F(gn), {
411
411
  modelValue: e.value,
412
412
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
413
413
  type: "feedback",
@@ -442,7 +442,7 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
442
442
  class: "content",
443
443
  innerHTML: t.content
444
444
  }, null, 8, ui),
445
- t.desc && t.desc.length ? (Y(), Se(
445
+ t.desc && t.desc.length ? (J(), Se(
446
446
  _t,
447
447
  { key: 0 },
448
448
  [
@@ -453,10 +453,10 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
453
453
  -1
454
454
  /* CACHED */
455
455
  )),
456
- (Y(!0), Se(
456
+ (J(!0), Se(
457
457
  _t,
458
458
  null,
459
- dn(t.desc, (a, s) => wa((Y(), Se("div", {
459
+ dn(t.desc, (a, s) => wa((J(), Se("div", {
460
460
  key: s,
461
461
  class: "desc-item"
462
462
  }, [
@@ -480,7 +480,7 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
480
480
  /* STABLE */
481
481
  }, 8, ["modelValue", "width", "height", "title", "onClosed"]));
482
482
  }
483
- }), pi = /* @__PURE__ */ Le(fi, [["__scopeId", "data-v-75a4552b"]]), Jt = ({ title: r = "", content: e = "", desc: t = [] }) => new Promise((n) => {
483
+ }), pi = /* @__PURE__ */ Le(fi, [["__scopeId", "data-v-75a4552b"]]), Yt = ({ title: r = "", content: e = "", desc: t = [] }) => new Promise((n) => {
484
484
  const a = document.createElement("div");
485
485
  a.setAttribute("id", "entry-app-dialog"), document.body.appendChild(a);
486
486
  const i = Ce(pi, { title: r, content: e, desc: t, closeCallback: () => {
@@ -490,8 +490,6 @@ const si = Ds.get("watermark"), ii = /* @__PURE__ */ we({
490
490
  });
491
491
  Ss(li);
492
492
  const hi = (r = {}) => {
493
- sessionStorage.setItem("userInfo", JSON.stringify(r));
494
- }, xi = (r = {}) => {
495
493
  var t;
496
494
  sessionStorage.setItem("tenantInfo", JSON.stringify(r));
497
495
  const e = {
@@ -501,9 +499,9 @@ const hi = (r = {}) => {
501
499
  tenantId: ((t = r == null ? void 0 : r.tenant) == null ? void 0 : t.id) ?? ""
502
500
  };
503
501
  sessionStorage.setItem("hotentUserInfo", JSON.stringify(e));
504
- }, vi = (r = "") => {
502
+ }, xi = (r = "") => {
505
503
  localStorage.setItem("fav-icon", r);
506
- }, gi = () => {
504
+ }, vi = () => {
507
505
  sessionStorage.removeItem("projectInfo"), sessionStorage.removeItem("project");
508
506
  }, Ie = (r) => {
509
507
  let e = De();
@@ -548,7 +546,7 @@ const hi = (r = {}) => {
548
546
  for (const t in e.subAppList)
549
547
  e.subAppList[t].code === e.currentSubAppCode && (e.subAppList[t].currentMenuCode = r);
550
548
  sessionStorage.setItem("subApps", JSON.stringify(e));
551
- }, mi = (r, e) => {
549
+ }, gi = (r, e) => {
552
550
  const t = "permission-btn", n = JSON.parse(sessionStorage.getItem(t) || "{}") || {}, a = r != null && r.length ? r.filter((u) => u.routeUrl) : [], s = r != null && r.length ? r.filter((u) => !u.routeUrl && u.children).map((u) => u.children).flat() : [], i = [...a, ...s], l = {};
553
551
  return i.forEach((u) => {
554
552
  var d;
@@ -578,17 +576,17 @@ const hi = (r = {}) => {
578
576
  l[o].push(g), c && o !== c && (l["origin-auth"] || (l["origin-auth"] = {}), l["origin-auth"][c] || (l["origin-auth"][c] = []), l["origin-auth"][c].push(g));
579
577
  }));
580
578
  }), n[e] = l, sessionStorage.setItem(t, JSON.stringify(n)), n;
581
- }, _i = () => {
579
+ }, mi = () => {
582
580
  sessionStorage.removeItem("permission-btn");
583
- }, Ci = (r, e) => {
581
+ }, _i = (r, e) => {
584
582
  const t = "breadcrumb", n = r.filter((s) => s.routeUrl), a = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
585
583
  return n.forEach((s) => {
586
584
  const l = ((s == null ? void 0 : s.style) ?? 1) === 1, u = s.code;
587
585
  a[e] || (a[e] = {}), a[e][u] = l;
588
586
  }), sessionStorage.setItem(t, JSON.stringify(a)), a;
589
- }, yi = () => {
587
+ }, Ci = () => {
590
588
  sessionStorage.removeItem("breadcrumb");
591
- }, bi = (r, e) => {
589
+ }, yi = (r, e) => {
592
590
  const t = "tabStyle", n = r.filter((s) => s.routeUrl), a = JSON.parse(sessionStorage.getItem(t) || "{}") || {};
593
591
  return n.forEach((s) => {
594
592
  const i = s.code, l = {
@@ -597,13 +595,13 @@ const hi = (r = {}) => {
597
595
  };
598
596
  a[e] || (a[e] = {}), a[e][i] = l;
599
597
  }), sessionStorage.setItem(t, JSON.stringify(a)), a;
600
- }, wi = () => {
598
+ }, bi = () => {
601
599
  sessionStorage.removeItem("tabStyle");
602
- }, Ei = (r) => {
600
+ }, wi = (r) => {
603
601
  sessionStorage.setItem("instance", JSON.stringify(r));
604
- }, Ai = () => {
605
- _i(), yn(), Ua(), yi(), wi();
606
- }, Bi = (r) => {
602
+ }, Ei = () => {
603
+ mi(), yn(), Ua(), Ci(), bi();
604
+ }, Ai = (r) => {
607
605
  const e = JSON.parse(sessionStorage.getItem(r) || "{}");
608
606
  if (e && JSON.stringify(e) !== "{}" && e != null && e.exitConfirmPages && e.exitConfirmPages.length) {
609
607
  const t = (e == null ? void 0 : e.currentPage) ?? "";
@@ -622,10 +620,10 @@ const hi = (r = {}) => {
622
620
  }
623
621
  };
624
622
  var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
625
- function ki(r) {
623
+ function Bi(r) {
626
624
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
627
625
  }
628
- function Di(r) {
626
+ function ki(r) {
629
627
  if (r.__esModule) return r;
630
628
  var e = r.default;
631
629
  if (typeof e == "function") {
@@ -645,14 +643,14 @@ function Di(r) {
645
643
  }), t;
646
644
  }
647
645
  var qa = { exports: {} };
648
- function Si(r) {
646
+ function Di(r) {
649
647
  throw new Error('Could not dynamically require "' + r + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
650
648
  }
651
649
  var hr = { exports: {} };
652
- const Fi = {}, Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
650
+ const Si = {}, Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
653
651
  __proto__: null,
654
- default: Fi
655
- }, Symbol.toStringTag, { value: "Module" })), Ti = /* @__PURE__ */ Di(Ii);
652
+ default: Si
653
+ }, Symbol.toStringTag, { value: "Module" })), Ii = /* @__PURE__ */ ki(Fi);
656
654
  var co;
657
655
  function re() {
658
656
  return co || (co = 1, function(r, e) {
@@ -661,9 +659,9 @@ function re() {
661
659
  })(te, function() {
662
660
  var t = t || function(n, a) {
663
661
  var s;
664
- if (typeof window < "u" && window.crypto && (s = window.crypto), typeof self < "u" && self.crypto && (s = self.crypto), typeof globalThis < "u" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window < "u" && window.msCrypto && (s = window.msCrypto), !s && typeof te < "u" && te.crypto && (s = te.crypto), !s && typeof Si == "function")
662
+ if (typeof window < "u" && window.crypto && (s = window.crypto), typeof self < "u" && self.crypto && (s = self.crypto), typeof globalThis < "u" && globalThis.crypto && (s = globalThis.crypto), !s && typeof window < "u" && window.msCrypto && (s = window.msCrypto), !s && typeof te < "u" && te.crypto && (s = te.crypto), !s && typeof Di == "function")
665
663
  try {
666
- s = Ti;
664
+ s = Ii;
667
665
  } catch {
668
666
  }
669
667
  var i = function() {
@@ -1385,7 +1383,7 @@ function ar() {
1385
1383
  }(xr)), xr.exports;
1386
1384
  }
1387
1385
  var vr = { exports: {} }, uo;
1388
- function Pi() {
1386
+ function Ti() {
1389
1387
  return uo || (uo = 1, function(r, e) {
1390
1388
  (function(t, n) {
1391
1389
  r.exports = n(re());
@@ -1407,7 +1405,7 @@ function Pi() {
1407
1405
  }(vr)), vr.exports;
1408
1406
  }
1409
1407
  var gr = { exports: {} }, fo;
1410
- function Ri() {
1408
+ function Pi() {
1411
1409
  return fo || (fo = 1, function(r, e) {
1412
1410
  (function(t, n) {
1413
1411
  r.exports = n(re());
@@ -1576,7 +1574,7 @@ function ut() {
1576
1574
  }(mr)), mr.exports;
1577
1575
  }
1578
1576
  var _r = { exports: {} }, ho;
1579
- function $i() {
1577
+ function Ri() {
1580
1578
  return ho || (ho = 1, function(r, e) {
1581
1579
  (function(t, n) {
1582
1580
  r.exports = n(re());
@@ -1820,7 +1818,7 @@ function bn() {
1820
1818
  }(br)), br.exports;
1821
1819
  }
1822
1820
  var wr = { exports: {} }, mo;
1823
- function zi() {
1821
+ function $i() {
1824
1822
  return mo || (mo = 1, function(r, e) {
1825
1823
  (function(t, n, a) {
1826
1824
  r.exports = n(re(), bn());
@@ -1991,7 +1989,7 @@ function Va() {
1991
1989
  }(Er)), Er.exports;
1992
1990
  }
1993
1991
  var Ar = { exports: {} }, Co;
1994
- function Oi() {
1992
+ function zi() {
1995
1993
  return Co || (Co = 1, function(r, e) {
1996
1994
  (function(t, n, a) {
1997
1995
  r.exports = n(re(), ar(), Va());
@@ -2021,7 +2019,7 @@ function Oi() {
2021
2019
  }(Ar)), Ar.exports;
2022
2020
  }
2023
2021
  var Br = { exports: {} }, yo;
2024
- function Mi() {
2022
+ function Oi() {
2025
2023
  return yo || (yo = 1, function(r, e) {
2026
2024
  (function(t, n, a) {
2027
2025
  r.exports = n(re(), ar());
@@ -2131,7 +2129,7 @@ function Mi() {
2131
2129
  }(Br)), Br.exports;
2132
2130
  }
2133
2131
  var kr = { exports: {} }, bo;
2134
- function Ni() {
2132
+ function Mi() {
2135
2133
  return bo || (bo = 1, function(r, e) {
2136
2134
  (function(t, n) {
2137
2135
  r.exports = n(re());
@@ -2602,7 +2600,7 @@ function wn() {
2602
2600
  }(Dr)), Dr.exports;
2603
2601
  }
2604
2602
  var Sr = { exports: {} }, Eo;
2605
- function Li() {
2603
+ function Ni() {
2606
2604
  return Eo || (Eo = 1, function(r, e) {
2607
2605
  (function(t, n, a) {
2608
2606
  r.exports = n(re(), bn(), wn());
@@ -3270,7 +3268,7 @@ function ge() {
3270
3268
  }(Ir)), Ir.exports;
3271
3269
  }
3272
3270
  var Tr = { exports: {} }, ko;
3273
- function Hi() {
3271
+ function Li() {
3274
3272
  return ko || (ko = 1, function(r, e) {
3275
3273
  (function(t, n, a) {
3276
3274
  r.exports = n(re(), ge());
@@ -3300,7 +3298,7 @@ function Hi() {
3300
3298
  }(Tr)), Tr.exports;
3301
3299
  }
3302
3300
  var Pr = { exports: {} }, Do;
3303
- function Ui() {
3301
+ function Hi() {
3304
3302
  return Do || (Do = 1, function(r, e) {
3305
3303
  (function(t, n, a) {
3306
3304
  r.exports = n(re(), ge());
@@ -3322,7 +3320,7 @@ function Ui() {
3322
3320
  }(Pr)), Pr.exports;
3323
3321
  }
3324
3322
  var Rr = { exports: {} }, So;
3325
- function ji() {
3323
+ function Ui() {
3326
3324
  return So || (So = 1, function(r, e) {
3327
3325
  (function(t, n, a) {
3328
3326
  r.exports = n(re(), ge());
@@ -3361,7 +3359,7 @@ function ji() {
3361
3359
  }(Rr)), Rr.exports;
3362
3360
  }
3363
3361
  var $r = { exports: {} }, Fo;
3364
- function qi() {
3362
+ function ji() {
3365
3363
  return Fo || (Fo = 1, function(r, e) {
3366
3364
  (function(t, n, a) {
3367
3365
  r.exports = n(re(), ge());
@@ -3381,7 +3379,7 @@ function qi() {
3381
3379
  }($r)), $r.exports;
3382
3380
  }
3383
3381
  var zr = { exports: {} }, Io;
3384
- function Wi() {
3382
+ function qi() {
3385
3383
  return Io || (Io = 1, function(r, e) {
3386
3384
  (function(t, n, a) {
3387
3385
  r.exports = n(re(), ge());
@@ -3402,7 +3400,7 @@ function Wi() {
3402
3400
  }(zr)), zr.exports;
3403
3401
  }
3404
3402
  var Or = { exports: {} }, To;
3405
- function Vi() {
3403
+ function Wi() {
3406
3404
  return To || (To = 1, function(r, e) {
3407
3405
  (function(t, n, a) {
3408
3406
  r.exports = n(re(), ge());
@@ -3421,7 +3419,7 @@ function Vi() {
3421
3419
  }(Or)), Or.exports;
3422
3420
  }
3423
3421
  var Mr = { exports: {} }, Po;
3424
- function Ki() {
3422
+ function Vi() {
3425
3423
  return Po || (Po = 1, function(r, e) {
3426
3424
  (function(t, n, a) {
3427
3425
  r.exports = n(re(), ge());
@@ -3440,7 +3438,7 @@ function Ki() {
3440
3438
  }(Mr)), Mr.exports;
3441
3439
  }
3442
3440
  var Nr = { exports: {} }, Ro;
3443
- function Gi() {
3441
+ function Ki() {
3444
3442
  return Ro || (Ro = 1, function(r, e) {
3445
3443
  (function(t, n, a) {
3446
3444
  r.exports = n(re(), ge());
@@ -3457,7 +3455,7 @@ function Gi() {
3457
3455
  }(Nr)), Nr.exports;
3458
3456
  }
3459
3457
  var Lr = { exports: {} }, $o;
3460
- function Xi() {
3458
+ function Gi() {
3461
3459
  return $o || ($o = 1, function(r, e) {
3462
3460
  (function(t, n, a) {
3463
3461
  r.exports = n(re(), ge());
@@ -3479,7 +3477,7 @@ function Xi() {
3479
3477
  }(Lr)), Lr.exports;
3480
3478
  }
3481
3479
  var Hr = { exports: {} }, zo;
3482
- function Qi() {
3480
+ function Xi() {
3483
3481
  return zo || (zo = 1, function(r, e) {
3484
3482
  (function(t, n, a) {
3485
3483
  r.exports = n(re(), ge());
@@ -3494,7 +3492,7 @@ function Qi() {
3494
3492
  }(Hr)), Hr.exports;
3495
3493
  }
3496
3494
  var Ur = { exports: {} }, Oo;
3497
- function Zi() {
3495
+ function Qi() {
3498
3496
  return Oo || (Oo = 1, function(r, e) {
3499
3497
  (function(t, n, a) {
3500
3498
  r.exports = n(re(), ge());
@@ -3541,7 +3539,7 @@ function Zi() {
3541
3539
  }(Ur)), Ur.exports;
3542
3540
  }
3543
3541
  var jr = { exports: {} }, Mo;
3544
- function Ji() {
3542
+ function Zi() {
3545
3543
  return Mo || (Mo = 1, function(r, e) {
3546
3544
  (function(t, n, a) {
3547
3545
  r.exports = n(re(), ut(), dt(), et(), ge());
@@ -4321,7 +4319,7 @@ function Yi() {
4321
4319
  }(qr)), qr.exports;
4322
4320
  }
4323
4321
  var Wr = { exports: {} }, Lo;
4324
- function ec() {
4322
+ function Ji() {
4325
4323
  return Lo || (Lo = 1, function(r, e) {
4326
4324
  (function(t, n, a) {
4327
4325
  r.exports = n(re(), ut(), dt(), et(), ge());
@@ -4375,7 +4373,7 @@ function ec() {
4375
4373
  }(Wr)), Wr.exports;
4376
4374
  }
4377
4375
  var Vr = { exports: {} }, Ho;
4378
- function tc() {
4376
+ function ec() {
4379
4377
  return Ho || (Ho = 1, function(r, e) {
4380
4378
  (function(t, n, a) {
4381
4379
  r.exports = n(re(), ut(), dt(), et(), ge());
@@ -4441,7 +4439,7 @@ function tc() {
4441
4439
  }(Vr)), Vr.exports;
4442
4440
  }
4443
4441
  var Kr = { exports: {} }, Uo;
4444
- function rc() {
4442
+ function tc() {
4445
4443
  return Uo || (Uo = 1, function(r, e) {
4446
4444
  (function(t, n, a) {
4447
4445
  r.exports = n(re(), ut(), dt(), et(), ge());
@@ -4505,7 +4503,7 @@ function rc() {
4505
4503
  }(Kr)), Kr.exports;
4506
4504
  }
4507
4505
  var Gr = { exports: {} }, jo;
4508
- function nc() {
4506
+ function rc() {
4509
4507
  return jo || (jo = 1, function(r, e) {
4510
4508
  (function(t, n, a) {
4511
4509
  r.exports = n(re(), ut(), dt(), et(), ge());
@@ -5628,16 +5626,16 @@ function nc() {
5628
5626
  }
5629
5627
  (function(r, e) {
5630
5628
  (function(t, n, a) {
5631
- r.exports = n(re(), ar(), Pi(), Ri(), ut(), $i(), dt(), Wa(), bn(), zi(), Va(), Oi(), Mi(), Ni(), wn(), Li(), et(), ge(), Hi(), Ui(), ji(), qi(), Wi(), Vi(), Ki(), Gi(), Xi(), Qi(), Zi(), Ji(), Yi(), ec(), tc(), rc(), nc());
5629
+ r.exports = n(re(), ar(), Ti(), Pi(), ut(), Ri(), dt(), Wa(), bn(), $i(), Va(), zi(), Oi(), Mi(), wn(), Ni(), et(), ge(), Li(), Hi(), Ui(), ji(), qi(), Wi(), Vi(), Ki(), Gi(), Xi(), Qi(), Zi(), Yi(), Ji(), ec(), tc(), rc());
5632
5630
  })(te, function(t) {
5633
5631
  return t;
5634
5632
  });
5635
5633
  })(qa);
5636
- var oc = qa.exports;
5637
- const Be = /* @__PURE__ */ ki(oc);
5638
- function ac(r, e, t, n) {
5634
+ var nc = qa.exports;
5635
+ const Be = /* @__PURE__ */ Bi(nc);
5636
+ function oc(r, e, t, n) {
5639
5637
  Ka(r, e).then(({ input: a, key: s }) => Xa(a, s, t, !0, n)).then((a) => {
5640
- sc.apply(null, a);
5638
+ ac.apply(null, a);
5641
5639
  }).catch((a) => {
5642
5640
  n({
5643
5641
  value: null,
@@ -5645,16 +5643,16 @@ function ac(r, e, t, n) {
5645
5643
  });
5646
5644
  });
5647
5645
  }
5648
- function sc(r, e, t, n, a, s, i, l) {
5646
+ function ac(r, e, t, n, a, s, i, l) {
5649
5647
  let u = Ga(e, t, n, a, s), o = Be.AES.encrypt.apply(null, [r, u.key, u.options]), c = i === "base64" ? Be.enc.Base64 : Be.enc.Hex, _ = o.ciphertext.toString(c);
5650
5648
  l({
5651
5649
  value: _,
5652
5650
  error: null
5653
5651
  });
5654
5652
  }
5655
- function ic(r, e, t, n) {
5653
+ function sc(r, e, t, n) {
5656
5654
  Ka(r, e).then(({ input: a, key: s }) => Xa(a, s, t, !1, n)).then((a) => {
5657
- cc.apply(null, a);
5655
+ ic.apply(null, a);
5658
5656
  }).catch((a) => {
5659
5657
  n({
5660
5658
  value: null,
@@ -5662,7 +5660,7 @@ function ic(r, e, t, n) {
5662
5660
  });
5663
5661
  });
5664
5662
  }
5665
- function cc(r, e, t, n, a, s, i, l) {
5663
+ function ic(r, e, t, n, a, s, i, l) {
5666
5664
  let u = Ga(e, t, n, a, s), o = Be.DES.encrypt.apply(null, [r, u.key, u.options]), c = i === "base64" ? Be.enc.Base64 : Be.enc.Hex, _ = o.ciphertext.toString(c);
5667
5665
  l({
5668
5666
  value: _,
@@ -5691,7 +5689,7 @@ function Ga(r, e, t, n, a) {
5691
5689
  async function Xa(r, e, t, n = !1, a) {
5692
5690
  let s;
5693
5691
  try {
5694
- s = await lc(t);
5692
+ s = await cc(t);
5695
5693
  } catch (c) {
5696
5694
  return Promise.reject(c);
5697
5695
  }
@@ -5700,39 +5698,39 @@ async function Xa(r, e, t, n = !1, a) {
5700
5698
  return Promise.reject("非ECB模式iv不能为空");
5701
5699
  let l;
5702
5700
  try {
5703
- l = await uc(t, n);
5701
+ l = await lc(t, n);
5704
5702
  } catch (c) {
5705
5703
  return Promise.reject(c);
5706
5704
  }
5707
5705
  let u;
5708
5706
  try {
5709
- u = await dc(t);
5707
+ u = await uc(t);
5710
5708
  } catch (c) {
5711
5709
  return Promise.reject(c);
5712
5710
  }
5713
5711
  let o;
5714
5712
  try {
5715
- o = await fc(t);
5713
+ o = await dc(t);
5716
5714
  } catch (c) {
5717
5715
  return Promise.reject(c);
5718
5716
  }
5719
5717
  return [r, e, l, i, s, u, o, a];
5720
5718
  }
5721
- async function lc(r) {
5719
+ async function cc(r) {
5722
5720
  let { mode: e = "CBC" } = r || {};
5723
5721
  return e = e.trim().toUpperCase(), ["CBC", "CFB", "OFB", "ECB"].indexOf(e) === -1 ? Promise.reject("mode模式配置错误") : e;
5724
5722
  }
5725
- async function uc(r, e = !1) {
5723
+ async function lc(r, e = !1) {
5726
5724
  if (!e)
5727
5725
  return 8;
5728
5726
  let { keySize: t = 0 } = r || {};
5729
5727
  return [16, 24, 32].indexOf(t) !== -1 ? t : Promise.reject("keySize配置错误");
5730
5728
  }
5731
- async function dc(r) {
5729
+ async function uc(r) {
5732
5730
  let { padding: e = "pkcs7" } = r || {};
5733
5731
  return e = e.trim().toLowerCase(), ["pkcs7", "pkcs5", "zero", "iso10126", "ansix923"].indexOf(e) !== -1 ? e : Promise.reject("padding配置错误");
5734
5732
  }
5735
- async function fc(r) {
5733
+ async function dc(r) {
5736
5734
  let { encoding: e = "base64" } = r || {};
5737
5735
  return e = e.trim().toLowerCase(), ["base64", "hex"].indexOf(e) !== -1 ? e : Promise.reject("encoding配置错误");
5738
5736
  }
@@ -5747,10 +5745,10 @@ function qo(r, e) {
5747
5745
  }
5748
5746
  return Be.enc.Latin1.parse(t);
5749
5747
  }
5750
- const pc = {
5751
- aes: ac,
5752
- des: ic
5753
- }, hc = (r = {}, e) => {
5748
+ const fc = {
5749
+ aes: oc,
5750
+ des: sc
5751
+ }, pc = (r = {}, e) => {
5754
5752
  const t = { aes: "aes", des: "des" }, n = {
5755
5753
  pkcs5padding: "Pkcs5",
5756
5754
  pkcs7padding: "Pkcs7",
@@ -5760,7 +5758,7 @@ const pc = {
5760
5758
  }, a = { hex: "hex", base64: "base64" };
5761
5759
  let s = r.encryptType || "", i = t[s.toLowerCase()], l = r.encryptMode || "", u = r.encryptKey || "", o = r.encryptOffset || "", c = r.encryptPadding || "", _ = n[c.toLowerCase()], d = r.codingMode || "", h = a[d.toLowerCase()], g = (Number(r.encryptKeyLength) || 0) / 8;
5762
5760
  return new Promise((x) => {
5763
- i !== "aes" && i !== "des" ? x({ error: "加密类型出错==", value: null }) : pc[i](e, u, { mode: l, keySize: g, padding: _, encoding: h, iv: o }, (m) => {
5761
+ i !== "aes" && i !== "des" ? x({ error: "加密类型出错==", value: null }) : fc[i](e, u, { mode: l, keySize: g, padding: _, encoding: h, iv: o }, (m) => {
5764
5762
  x(m);
5765
5763
  });
5766
5764
  });
@@ -5776,18 +5774,18 @@ function Za(r) {
5776
5774
  nt.USER_NICKNAME
5777
5775
  ].findIndex((t) => r.trim() === t) >= 0 : !1;
5778
5776
  }
5779
- async function Ja(r) {
5777
+ async function Ya(r) {
5780
5778
  const { userName: e, name: t, nickName: n, phone: a } = Ba();
5781
5779
  return {
5782
5780
  USER_ACCOUNT: e,
5783
5781
  USER_NAME: t,
5784
5782
  USER_NICKNAME: n,
5785
5783
  USER_PHONE: a,
5786
- USER_TOKEN: Je(),
5784
+ USER_TOKEN: Ye(),
5787
5785
  CURRENT_PROJECT: Ze().id
5788
5786
  }[r];
5789
5787
  }
5790
- async function xc(r) {
5788
+ async function hc(r) {
5791
5789
  if (typeof r != "string") return "";
5792
5790
  let e = null;
5793
5791
  try {
@@ -5801,28 +5799,28 @@ async function xc(r) {
5801
5799
  if (i && l) {
5802
5800
  let u = l;
5803
5801
  if (Za(l)) {
5804
- if (!Je())
5802
+ if (!Ye())
5805
5803
  return Ia({ ...Ta, redirect_uri: Pa }), "goLogin";
5806
- u = await Ja(l);
5804
+ u = await Ya(l);
5807
5805
  }
5808
5806
  t[i] = u;
5809
5807
  }
5810
5808
  }
5811
5809
  return JSON.stringify(t);
5812
5810
  }
5813
- async function vc(r) {
5811
+ async function xc(r) {
5814
5812
  let e = {};
5815
5813
  for (let t = 0; t < r.length; t++) {
5816
5814
  let n = r[t] || {}, { attributeContentEnum: a, paramName: s, attributeContent: i, paramType: l, isEncrypted: u } = n, o = s, c = i;
5817
5815
  if (Za(a)) {
5818
- if (!Je())
5816
+ if (!Ye())
5819
5817
  return Ia({ ...Ta, redirect_uri: Pa }), "goLogin";
5820
- c = await Ja(a);
5821
- } else if (l === Qa.JSON && (c = await xc(i), c === "goLogin"))
5818
+ c = await Ya(a);
5819
+ } else if (l === Qa.JSON && (c = await hc(i), c === "goLogin"))
5822
5820
  return "goLogin";
5823
5821
  if (o && c) {
5824
5822
  if (u) {
5825
- let _ = await hc(n, c);
5823
+ let _ = await pc(n, c);
5826
5824
  _.error, c = _.value ?? "";
5827
5825
  }
5828
5826
  e[o] = c;
@@ -5830,7 +5828,7 @@ async function vc(r) {
5830
5828
  }
5831
5829
  return e;
5832
5830
  }
5833
- function gc(r) {
5831
+ function vc(r) {
5834
5832
  let e = {}, t = r.split("&");
5835
5833
  for (let n = 0; n < t.length; n++) {
5836
5834
  let s = t[n].split("=");
@@ -5841,35 +5839,35 @@ function gc(r) {
5841
5839
  }
5842
5840
  return e;
5843
5841
  }
5844
- function mc(r) {
5842
+ function gc(r) {
5845
5843
  return Object.keys(r).map((e) => `${e}=${r[e]}`).join("&");
5846
5844
  }
5847
- function _c(r, e) {
5845
+ function mc(r, e) {
5848
5846
  let t = r.split("?").filter((o) => o.length > 0), n = Object.keys(e).map((o) => {
5849
5847
  let c = e[o];
5850
5848
  return `${encodeURIComponent(o)}=${encodeURIComponent(c)}`;
5851
5849
  }).join("&");
5852
5850
  if (t.length !== 2)
5853
5851
  return n.length > 0 ? `${r}?${n}` : r;
5854
- let a = t[0], s = gc(t[1]), i = /* @__PURE__ */ new Set();
5852
+ let a = t[0], s = vc(t[1]), i = /* @__PURE__ */ new Set();
5855
5853
  Object.keys(s).forEach((o) => {
5856
5854
  e[o] && i.add(o);
5857
5855
  }), i.forEach((o) => {
5858
5856
  delete s[o];
5859
5857
  });
5860
- let l = n, u = mc(s);
5858
+ let l = n, u = gc(s);
5861
5859
  return u.length > 0 && (n.length > 0 ? l = `${u}&${n}` : l = u), l.length > 0 ? `${a}?${l}` : a;
5862
5860
  }
5863
- const Ya = async (r, e) => {
5864
- const t = await vc(e);
5865
- return t === "goLogin" ? "" : _c(r, t) ?? "";
5861
+ const Ja = async (r, e) => {
5862
+ const t = await xc(e);
5863
+ return t === "goLogin" ? "" : mc(r, t) ?? "";
5866
5864
  }, nn = (r) => {
5867
5865
  const e = new URL(r, location.origin);
5868
5866
  return ["true", "1"].includes(e.searchParams.get("autoSetToken")) && (e.searchParams.append("access_token", ws()), e.searchParams.delete("autoSetToken")), e.toString();
5869
- }, e0 = "v1", Cc = Ye(`/api/personal-center/personal-server/${e0}`), yc = Ye(`/api/enterpriseright/permission/${e0}`), bc = Cc.get("/info"), wc = Sa.get("/user-info");
5870
- yc.get("/user/tenant");
5867
+ }, e0 = "v1", _c = Je(`/api/personal-center/personal-server/${e0}`), Cc = Je(`/api/enterpriseright/permission/${e0}`), yc = _c.get("/info"), bc = Sa.get("/user-info");
5868
+ Cc.get("/user/tenant");
5871
5869
  hn.post("/tenant/page");
5872
- const Ec = "v1", Ac = Ye(`/api/user-portrait/user-data/${Ec}`), t0 = Ac.post("/data/actions", (r) => (r.ignoreErrorMessage = !0, r)), r0 = "pc", n0 = "pc", Bc = async (r) => {
5870
+ const wc = "v1", Ec = Je(`/api/user-portrait/user-data/${wc}`), t0 = Ec.post("/data/actions", (r) => (r.ignoreErrorMessage = !0, r)), r0 = "pc", n0 = "pc", Ac = async (r) => {
5873
5871
  const e = JSON.parse(sessionStorage.getItem("access-sys") || "{}");
5874
5872
  (e == null ? void 0 : e.projectId) !== r && (await t0().run({
5875
5873
  action: "access-sys",
@@ -5891,14 +5889,14 @@ const Ec = "v1", Ac = Ye(`/api/user-portrait/user-data/${Ec}`), t0 = Ac.post("/d
5891
5889
  displayMenuName: a
5892
5890
  }
5893
5891
  });
5892
+ }, Bc = async () => {
5893
+ const [r, e] = await yc().run({});
5894
+ return r ? { personalConfig: null } : (Ac(Ze().id), { personalConfig: e });
5894
5895
  }, kc = async () => {
5895
- const [r, e] = await bc().run({});
5896
- return r ? { personalConfig: null } : (Bc(Ze().id), hi(e), { personalConfig: e });
5897
- }, Dc = async () => {
5898
- const [r, e] = await wc().run();
5899
- return r ? { tenantConfig: null } : (xi(e), { tenantConfig: e });
5900
- }, Sc = xn.get("/permissionset/user-portal-menu"), Fc = ys.deviceManage.get("/instance/getLast");
5901
- function Ic() {
5896
+ const [r, e] = await bc().run();
5897
+ return r ? { tenantConfig: null } : (hi(e), { tenantConfig: e });
5898
+ }, Dc = xn.get("/permissionset/user-portal-menu"), Sc = ys.deviceManage.get("/instance/getLast");
5899
+ function Fc() {
5902
5900
  this.__data__ = [], this.size = 0;
5903
5901
  }
5904
5902
  function a0(r, e) {
@@ -5910,22 +5908,22 @@ function sr(r, e) {
5910
5908
  return t;
5911
5909
  return -1;
5912
5910
  }
5913
- var Tc = Array.prototype, Pc = Tc.splice;
5914
- function Rc(r) {
5911
+ var Ic = Array.prototype, Tc = Ic.splice;
5912
+ function Pc(r) {
5915
5913
  var e = this.__data__, t = sr(e, r);
5916
5914
  if (t < 0)
5917
5915
  return !1;
5918
5916
  var n = e.length - 1;
5919
- return t == n ? e.pop() : Pc.call(e, t, 1), --this.size, !0;
5917
+ return t == n ? e.pop() : Tc.call(e, t, 1), --this.size, !0;
5920
5918
  }
5921
- function $c(r) {
5919
+ function Rc(r) {
5922
5920
  var e = this.__data__, t = sr(e, r);
5923
5921
  return t < 0 ? void 0 : e[t][1];
5924
5922
  }
5925
- function zc(r) {
5923
+ function $c(r) {
5926
5924
  return sr(this.__data__, r) > -1;
5927
5925
  }
5928
- function Oc(r, e) {
5926
+ function zc(r, e) {
5929
5927
  var t = this.__data__, n = sr(t, r);
5930
5928
  return n < 0 ? (++this.size, t.push([r, e])) : t[n][1] = e, this;
5931
5929
  }
@@ -5936,66 +5934,66 @@ function We(r) {
5936
5934
  this.set(n[0], n[1]);
5937
5935
  }
5938
5936
  }
5939
- We.prototype.clear = Ic;
5940
- We.prototype.delete = Rc;
5941
- We.prototype.get = $c;
5942
- We.prototype.has = zc;
5943
- We.prototype.set = Oc;
5944
- function Mc() {
5937
+ We.prototype.clear = Fc;
5938
+ We.prototype.delete = Pc;
5939
+ We.prototype.get = Rc;
5940
+ We.prototype.has = $c;
5941
+ We.prototype.set = zc;
5942
+ function Oc() {
5945
5943
  this.__data__ = new We(), this.size = 0;
5946
5944
  }
5947
- function Nc(r) {
5945
+ function Mc(r) {
5948
5946
  var e = this.__data__, t = e.delete(r);
5949
5947
  return this.size = e.size, t;
5950
5948
  }
5951
- function Lc(r) {
5949
+ function Nc(r) {
5952
5950
  return this.__data__.get(r);
5953
5951
  }
5954
- function Hc(r) {
5952
+ function Lc(r) {
5955
5953
  return this.__data__.has(r);
5956
5954
  }
5957
- var s0 = typeof global == "object" && global && global.Object === Object && global, Uc = typeof self == "object" && self && self.Object === Object && self, He = s0 || Uc || Function("return this")(), Ct = He.Symbol, i0 = Object.prototype, jc = i0.hasOwnProperty, qc = i0.toString, It = Ct ? Ct.toStringTag : void 0;
5958
- function Wc(r) {
5959
- var e = jc.call(r, It), t = r[It];
5955
+ var s0 = typeof global == "object" && global && global.Object === Object && global, Hc = typeof self == "object" && self && self.Object === Object && self, He = s0 || Hc || Function("return this")(), Ct = He.Symbol, i0 = Object.prototype, Uc = i0.hasOwnProperty, jc = i0.toString, It = Ct ? Ct.toStringTag : void 0;
5956
+ function qc(r) {
5957
+ var e = Uc.call(r, It), t = r[It];
5960
5958
  try {
5961
5959
  r[It] = void 0;
5962
5960
  var n = !0;
5963
5961
  } catch {
5964
5962
  }
5965
- var a = qc.call(r);
5963
+ var a = jc.call(r);
5966
5964
  return n && (e ? r[It] = t : delete r[It]), a;
5967
5965
  }
5968
- var Vc = Object.prototype, Kc = Vc.toString;
5969
- function Gc(r) {
5970
- return Kc.call(r);
5966
+ var Wc = Object.prototype, Vc = Wc.toString;
5967
+ function Kc(r) {
5968
+ return Vc.call(r);
5971
5969
  }
5972
- var Xc = "[object Null]", Qc = "[object Undefined]", Wo = Ct ? Ct.toStringTag : void 0;
5970
+ var Gc = "[object Null]", Xc = "[object Undefined]", Wo = Ct ? Ct.toStringTag : void 0;
5973
5971
  function Ht(r) {
5974
- return r == null ? r === void 0 ? Qc : Xc : Wo && Wo in Object(r) ? Wc(r) : Gc(r);
5972
+ return r == null ? r === void 0 ? Xc : Gc : Wo && Wo in Object(r) ? qc(r) : Kc(r);
5975
5973
  }
5976
5974
  function Ut(r) {
5977
5975
  var e = typeof r;
5978
5976
  return r != null && (e == "object" || e == "function");
5979
5977
  }
5980
- var Zc = "[object AsyncFunction]", Jc = "[object Function]", Yc = "[object GeneratorFunction]", el = "[object Proxy]";
5978
+ var Qc = "[object AsyncFunction]", Zc = "[object Function]", Yc = "[object GeneratorFunction]", Jc = "[object Proxy]";
5981
5979
  function c0(r) {
5982
5980
  if (!Ut(r))
5983
5981
  return !1;
5984
5982
  var e = Ht(r);
5985
- return e == Jc || e == Yc || e == Zc || e == el;
5983
+ return e == Zc || e == Yc || e == Qc || e == Jc;
5986
5984
  }
5987
5985
  var Xr = He["__core-js_shared__"], Vo = function() {
5988
5986
  var r = /[^.]+$/.exec(Xr && Xr.keys && Xr.keys.IE_PROTO || "");
5989
5987
  return r ? "Symbol(src)_1." + r : "";
5990
5988
  }();
5991
- function tl(r) {
5989
+ function el(r) {
5992
5990
  return !!Vo && Vo in r;
5993
5991
  }
5994
- var rl = Function.prototype, nl = rl.toString;
5992
+ var tl = Function.prototype, rl = tl.toString;
5995
5993
  function ft(r) {
5996
5994
  if (r != null) {
5997
5995
  try {
5998
- return nl.call(r);
5996
+ return rl.call(r);
5999
5997
  } catch {
6000
5998
  }
6001
5999
  try {
@@ -6005,48 +6003,48 @@ function ft(r) {
6005
6003
  }
6006
6004
  return "";
6007
6005
  }
6008
- var ol = /[\\^$.*+?()[\]{}|]/g, al = /^\[object .+?Constructor\]$/, sl = Function.prototype, il = Object.prototype, cl = sl.toString, ll = il.hasOwnProperty, ul = RegExp(
6009
- "^" + cl.call(ll).replace(ol, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6006
+ var nl = /[\\^$.*+?()[\]{}|]/g, ol = /^\[object .+?Constructor\]$/, al = Function.prototype, sl = Object.prototype, il = al.toString, cl = sl.hasOwnProperty, ll = RegExp(
6007
+ "^" + il.call(cl).replace(nl, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
6010
6008
  );
6011
- function dl(r) {
6012
- if (!Ut(r) || tl(r))
6009
+ function ul(r) {
6010
+ if (!Ut(r) || el(r))
6013
6011
  return !1;
6014
- var e = c0(r) ? ul : al;
6012
+ var e = c0(r) ? ll : ol;
6015
6013
  return e.test(ft(r));
6016
6014
  }
6017
- function fl(r, e) {
6015
+ function dl(r, e) {
6018
6016
  return r == null ? void 0 : r[e];
6019
6017
  }
6020
6018
  function pt(r, e) {
6021
- var t = fl(r, e);
6022
- return dl(t) ? t : void 0;
6019
+ var t = dl(r, e);
6020
+ return ul(t) ? t : void 0;
6023
6021
  }
6024
6022
  var $t = pt(He, "Map"), zt = pt(Object, "create");
6025
- function pl() {
6023
+ function fl() {
6026
6024
  this.__data__ = zt ? zt(null) : {}, this.size = 0;
6027
6025
  }
6028
- function hl(r) {
6026
+ function pl(r) {
6029
6027
  var e = this.has(r) && delete this.__data__[r];
6030
6028
  return this.size -= e ? 1 : 0, e;
6031
6029
  }
6032
- var xl = "__lodash_hash_undefined__", vl = Object.prototype, gl = vl.hasOwnProperty;
6033
- function ml(r) {
6030
+ var hl = "__lodash_hash_undefined__", xl = Object.prototype, vl = xl.hasOwnProperty;
6031
+ function gl(r) {
6034
6032
  var e = this.__data__;
6035
6033
  if (zt) {
6036
6034
  var t = e[r];
6037
- return t === xl ? void 0 : t;
6035
+ return t === hl ? void 0 : t;
6038
6036
  }
6039
- return gl.call(e, r) ? e[r] : void 0;
6037
+ return vl.call(e, r) ? e[r] : void 0;
6040
6038
  }
6041
- var _l = Object.prototype, Cl = _l.hasOwnProperty;
6042
- function yl(r) {
6039
+ var ml = Object.prototype, _l = ml.hasOwnProperty;
6040
+ function Cl(r) {
6043
6041
  var e = this.__data__;
6044
- return zt ? e[r] !== void 0 : Cl.call(e, r);
6042
+ return zt ? e[r] !== void 0 : _l.call(e, r);
6045
6043
  }
6046
- var bl = "__lodash_hash_undefined__";
6047
- function wl(r, e) {
6044
+ var yl = "__lodash_hash_undefined__";
6045
+ function bl(r, e) {
6048
6046
  var t = this.__data__;
6049
- return this.size += this.has(r) ? 0 : 1, t[r] = zt && e === void 0 ? bl : e, this;
6047
+ return this.size += this.has(r) ? 0 : 1, t[r] = zt && e === void 0 ? yl : e, this;
6050
6048
  }
6051
6049
  function it(r) {
6052
6050
  var e = -1, t = r == null ? 0 : r.length;
@@ -6055,37 +6053,37 @@ function it(r) {
6055
6053
  this.set(n[0], n[1]);
6056
6054
  }
6057
6055
  }
6058
- it.prototype.clear = pl;
6059
- it.prototype.delete = hl;
6060
- it.prototype.get = ml;
6061
- it.prototype.has = yl;
6062
- it.prototype.set = wl;
6063
- function El() {
6056
+ it.prototype.clear = fl;
6057
+ it.prototype.delete = pl;
6058
+ it.prototype.get = gl;
6059
+ it.prototype.has = Cl;
6060
+ it.prototype.set = bl;
6061
+ function wl() {
6064
6062
  this.size = 0, this.__data__ = {
6065
6063
  hash: new it(),
6066
6064
  map: new ($t || We)(),
6067
6065
  string: new it()
6068
6066
  };
6069
6067
  }
6070
- function Al(r) {
6068
+ function El(r) {
6071
6069
  var e = typeof r;
6072
6070
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
6073
6071
  }
6074
6072
  function ir(r, e) {
6075
6073
  var t = r.__data__;
6076
- return Al(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
6074
+ return El(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
6077
6075
  }
6078
- function Bl(r) {
6076
+ function Al(r) {
6079
6077
  var e = ir(this, r).delete(r);
6080
6078
  return this.size -= e ? 1 : 0, e;
6081
6079
  }
6082
- function kl(r) {
6080
+ function Bl(r) {
6083
6081
  return ir(this, r).get(r);
6084
6082
  }
6085
- function Dl(r) {
6083
+ function kl(r) {
6086
6084
  return ir(this, r).has(r);
6087
6085
  }
6088
- function Sl(r, e) {
6086
+ function Dl(r, e) {
6089
6087
  var t = ir(this, r), n = t.size;
6090
6088
  return t.set(r, e), this.size += t.size == n ? 0 : 1, this;
6091
6089
  }
@@ -6096,17 +6094,17 @@ function At(r) {
6096
6094
  this.set(n[0], n[1]);
6097
6095
  }
6098
6096
  }
6099
- At.prototype.clear = El;
6100
- At.prototype.delete = Bl;
6101
- At.prototype.get = kl;
6102
- At.prototype.has = Dl;
6103
- At.prototype.set = Sl;
6104
- var Fl = 200;
6105
- function Il(r, e) {
6097
+ At.prototype.clear = wl;
6098
+ At.prototype.delete = Al;
6099
+ At.prototype.get = Bl;
6100
+ At.prototype.has = kl;
6101
+ At.prototype.set = Dl;
6102
+ var Sl = 200;
6103
+ function Fl(r, e) {
6106
6104
  var t = this.__data__;
6107
6105
  if (t instanceof We) {
6108
6106
  var n = t.__data__;
6109
- if (!$t || n.length < Fl - 1)
6107
+ if (!$t || n.length < Sl - 1)
6110
6108
  return n.push([r, e]), this.size = ++t.size, this;
6111
6109
  t = this.__data__ = new At(n);
6112
6110
  }
@@ -6116,12 +6114,12 @@ function Bt(r) {
6116
6114
  var e = this.__data__ = new We(r);
6117
6115
  this.size = e.size;
6118
6116
  }
6119
- Bt.prototype.clear = Mc;
6120
- Bt.prototype.delete = Nc;
6121
- Bt.prototype.get = Lc;
6122
- Bt.prototype.has = Hc;
6123
- Bt.prototype.set = Il;
6124
- function Tl(r, e) {
6117
+ Bt.prototype.clear = Oc;
6118
+ Bt.prototype.delete = Mc;
6119
+ Bt.prototype.get = Nc;
6120
+ Bt.prototype.has = Lc;
6121
+ Bt.prototype.set = Fl;
6122
+ function Il(r, e) {
6125
6123
  for (var t = -1, n = r == null ? 0 : r.length; ++t < n && e(r[t], t, r) !== !1; )
6126
6124
  ;
6127
6125
  return r;
@@ -6141,10 +6139,10 @@ function l0(r, e, t) {
6141
6139
  writable: !0
6142
6140
  }) : r[e] = t;
6143
6141
  }
6144
- var Pl = Object.prototype, Rl = Pl.hasOwnProperty;
6142
+ var Tl = Object.prototype, Pl = Tl.hasOwnProperty;
6145
6143
  function u0(r, e, t) {
6146
6144
  var n = r[e];
6147
- (!(Rl.call(r, e) && a0(n, t)) || t === void 0 && !(e in r)) && l0(r, e, t);
6145
+ (!(Pl.call(r, e) && a0(n, t)) || t === void 0 && !(e in r)) && l0(r, e, t);
6148
6146
  }
6149
6147
  function cr(r, e, t, n) {
6150
6148
  var a = !t;
@@ -6155,7 +6153,7 @@ function cr(r, e, t, n) {
6155
6153
  }
6156
6154
  return t;
6157
6155
  }
6158
- function $l(r, e) {
6156
+ function Rl(r, e) {
6159
6157
  for (var t = -1, n = Array(r); ++t < r; )
6160
6158
  n[t] = e(t);
6161
6159
  return n;
@@ -6163,31 +6161,31 @@ function $l(r, e) {
6163
6161
  function jt(r) {
6164
6162
  return r != null && typeof r == "object";
6165
6163
  }
6166
- var zl = "[object Arguments]";
6164
+ var $l = "[object Arguments]";
6167
6165
  function Go(r) {
6168
- return jt(r) && Ht(r) == zl;
6166
+ return jt(r) && Ht(r) == $l;
6169
6167
  }
6170
- var d0 = Object.prototype, Ol = d0.hasOwnProperty, Ml = d0.propertyIsEnumerable, Nl = Go(/* @__PURE__ */ function() {
6168
+ var d0 = Object.prototype, zl = d0.hasOwnProperty, Ol = d0.propertyIsEnumerable, Ml = Go(/* @__PURE__ */ function() {
6171
6169
  return arguments;
6172
6170
  }()) ? Go : function(r) {
6173
- return jt(r) && Ol.call(r, "callee") && !Ml.call(r, "callee");
6171
+ return jt(r) && zl.call(r, "callee") && !Ol.call(r, "callee");
6174
6172
  }, En = Array.isArray;
6175
- function Ll() {
6173
+ function Nl() {
6176
6174
  return !1;
6177
6175
  }
6178
- var f0 = typeof exports == "object" && exports && !exports.nodeType && exports, Xo = f0 && typeof module == "object" && module && !module.nodeType && module, Hl = Xo && Xo.exports === f0, Qo = Hl ? He.Buffer : void 0, Ul = Qo ? Qo.isBuffer : void 0, p0 = Ul || Ll, jl = 9007199254740991, ql = /^(?:0|[1-9]\d*)$/;
6179
- function Wl(r, e) {
6176
+ var f0 = typeof exports == "object" && exports && !exports.nodeType && exports, Xo = f0 && typeof module == "object" && module && !module.nodeType && module, Ll = Xo && Xo.exports === f0, Qo = Ll ? He.Buffer : void 0, Hl = Qo ? Qo.isBuffer : void 0, p0 = Hl || Nl, Ul = 9007199254740991, jl = /^(?:0|[1-9]\d*)$/;
6177
+ function ql(r, e) {
6180
6178
  var t = typeof r;
6181
- return e = e ?? jl, !!e && (t == "number" || t != "symbol" && ql.test(r)) && r > -1 && r % 1 == 0 && r < e;
6179
+ return e = e ?? Ul, !!e && (t == "number" || t != "symbol" && jl.test(r)) && r > -1 && r % 1 == 0 && r < e;
6182
6180
  }
6183
- var Vl = 9007199254740991;
6181
+ var Wl = 9007199254740991;
6184
6182
  function h0(r) {
6185
- return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Vl;
6183
+ return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Wl;
6186
6184
  }
6187
- var Kl = "[object Arguments]", Gl = "[object Array]", Xl = "[object Boolean]", Ql = "[object Date]", Zl = "[object Error]", Jl = "[object Function]", Yl = "[object Map]", eu = "[object Number]", tu = "[object Object]", ru = "[object RegExp]", nu = "[object Set]", ou = "[object String]", au = "[object WeakMap]", su = "[object ArrayBuffer]", iu = "[object DataView]", cu = "[object Float32Array]", lu = "[object Float64Array]", uu = "[object Int8Array]", du = "[object Int16Array]", fu = "[object Int32Array]", pu = "[object Uint8Array]", hu = "[object Uint8ClampedArray]", xu = "[object Uint16Array]", vu = "[object Uint32Array]", le = {};
6188
- le[cu] = le[lu] = le[uu] = le[du] = le[fu] = le[pu] = le[hu] = le[xu] = le[vu] = !0;
6189
- le[Kl] = le[Gl] = le[su] = le[Xl] = le[iu] = le[Ql] = le[Zl] = le[Jl] = le[Yl] = le[eu] = le[tu] = le[ru] = le[nu] = le[ou] = le[au] = !1;
6190
- function gu(r) {
6185
+ var Vl = "[object Arguments]", Kl = "[object Array]", Gl = "[object Boolean]", Xl = "[object Date]", Ql = "[object Error]", Zl = "[object Function]", Yl = "[object Map]", Jl = "[object Number]", eu = "[object Object]", tu = "[object RegExp]", ru = "[object Set]", nu = "[object String]", ou = "[object WeakMap]", au = "[object ArrayBuffer]", su = "[object DataView]", iu = "[object Float32Array]", cu = "[object Float64Array]", lu = "[object Int8Array]", uu = "[object Int16Array]", du = "[object Int32Array]", fu = "[object Uint8Array]", pu = "[object Uint8ClampedArray]", hu = "[object Uint16Array]", xu = "[object Uint32Array]", le = {};
6186
+ le[iu] = le[cu] = le[lu] = le[uu] = le[du] = le[fu] = le[pu] = le[hu] = le[xu] = !0;
6187
+ le[Vl] = le[Kl] = le[au] = le[Gl] = le[su] = le[Xl] = le[Ql] = le[Zl] = le[Yl] = le[Jl] = le[eu] = le[tu] = le[ru] = le[nu] = le[ou] = !1;
6188
+ function vu(r) {
6191
6189
  return jt(r) && h0(r.length) && !!le[Ht(r)];
6192
6190
  }
6193
6191
  function An(r) {
@@ -6195,26 +6193,26 @@ function An(r) {
6195
6193
  return r(e);
6196
6194
  };
6197
6195
  }
6198
- var x0 = typeof exports == "object" && exports && !exports.nodeType && exports, Pt = x0 && typeof module == "object" && module && !module.nodeType && module, mu = Pt && Pt.exports === x0, Qr = mu && s0.process, yt = function() {
6196
+ var x0 = typeof exports == "object" && exports && !exports.nodeType && exports, Pt = x0 && typeof module == "object" && module && !module.nodeType && module, gu = Pt && Pt.exports === x0, Qr = gu && s0.process, yt = function() {
6199
6197
  try {
6200
6198
  var r = Pt && Pt.require && Pt.require("util").types;
6201
6199
  return r || Qr && Qr.binding && Qr.binding("util");
6202
6200
  } catch {
6203
6201
  }
6204
- }(), Zo = yt && yt.isTypedArray, _u = Zo ? An(Zo) : gu, Cu = Object.prototype, yu = Cu.hasOwnProperty;
6202
+ }(), Zo = yt && yt.isTypedArray, mu = Zo ? An(Zo) : vu, _u = Object.prototype, Cu = _u.hasOwnProperty;
6205
6203
  function v0(r, e) {
6206
- var t = En(r), n = !t && Nl(r), a = !t && !n && p0(r), s = !t && !n && !a && _u(r), i = t || n || a || s, l = i ? $l(r.length, String) : [], u = l.length;
6204
+ var t = En(r), n = !t && Ml(r), a = !t && !n && p0(r), s = !t && !n && !a && mu(r), i = t || n || a || s, l = i ? Rl(r.length, String) : [], u = l.length;
6207
6205
  for (var o in r)
6208
- (e || yu.call(r, o)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
6206
+ (e || Cu.call(r, o)) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
6209
6207
  (o == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
6210
6208
  a && (o == "offset" || o == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
6211
6209
  s && (o == "buffer" || o == "byteLength" || o == "byteOffset") || // Skip index properties.
6212
- Wl(o, u))) && l.push(o);
6210
+ ql(o, u))) && l.push(o);
6213
6211
  return l;
6214
6212
  }
6215
- var bu = Object.prototype;
6213
+ var yu = Object.prototype;
6216
6214
  function Bn(r) {
6217
- var e = r && r.constructor, t = typeof e == "function" && e.prototype || bu;
6215
+ var e = r && r.constructor, t = typeof e == "function" && e.prototype || yu;
6218
6216
  return r === t;
6219
6217
  }
6220
6218
  function g0(r, e) {
@@ -6222,60 +6220,60 @@ function g0(r, e) {
6222
6220
  return r(e(t));
6223
6221
  };
6224
6222
  }
6225
- var wu = g0(Object.keys, Object), Eu = Object.prototype, Au = Eu.hasOwnProperty;
6226
- function Bu(r) {
6223
+ var bu = g0(Object.keys, Object), wu = Object.prototype, Eu = wu.hasOwnProperty;
6224
+ function Au(r) {
6227
6225
  if (!Bn(r))
6228
- return wu(r);
6226
+ return bu(r);
6229
6227
  var e = [];
6230
6228
  for (var t in Object(r))
6231
- Au.call(r, t) && t != "constructor" && e.push(t);
6229
+ Eu.call(r, t) && t != "constructor" && e.push(t);
6232
6230
  return e;
6233
6231
  }
6234
6232
  function m0(r) {
6235
6233
  return r != null && h0(r.length) && !c0(r);
6236
6234
  }
6237
6235
  function kn(r) {
6238
- return m0(r) ? v0(r) : Bu(r);
6236
+ return m0(r) ? v0(r) : Au(r);
6239
6237
  }
6240
- function ku(r, e) {
6238
+ function Bu(r, e) {
6241
6239
  return r && cr(e, kn(e), r);
6242
6240
  }
6243
- function Du(r) {
6241
+ function ku(r) {
6244
6242
  var e = [];
6245
6243
  if (r != null)
6246
6244
  for (var t in Object(r))
6247
6245
  e.push(t);
6248
6246
  return e;
6249
6247
  }
6250
- var Su = Object.prototype, Fu = Su.hasOwnProperty;
6251
- function Iu(r) {
6248
+ var Du = Object.prototype, Su = Du.hasOwnProperty;
6249
+ function Fu(r) {
6252
6250
  if (!Ut(r))
6253
- return Du(r);
6251
+ return ku(r);
6254
6252
  var e = Bn(r), t = [];
6255
6253
  for (var n in r)
6256
- n == "constructor" && (e || !Fu.call(r, n)) || t.push(n);
6254
+ n == "constructor" && (e || !Su.call(r, n)) || t.push(n);
6257
6255
  return t;
6258
6256
  }
6259
6257
  function Dn(r) {
6260
- return m0(r) ? v0(r, !0) : Iu(r);
6258
+ return m0(r) ? v0(r, !0) : Fu(r);
6261
6259
  }
6262
- function Tu(r, e) {
6260
+ function Iu(r, e) {
6263
6261
  return r && cr(e, Dn(e), r);
6264
6262
  }
6265
- var _0 = typeof exports == "object" && exports && !exports.nodeType && exports, Jo = _0 && typeof module == "object" && module && !module.nodeType && module, Pu = Jo && Jo.exports === _0, Yo = Pu ? He.Buffer : void 0, ea = Yo ? Yo.allocUnsafe : void 0;
6266
- function Ru(r, e) {
6263
+ var _0 = typeof exports == "object" && exports && !exports.nodeType && exports, Yo = _0 && typeof module == "object" && module && !module.nodeType && module, Tu = Yo && Yo.exports === _0, Jo = Tu ? He.Buffer : void 0, ea = Jo ? Jo.allocUnsafe : void 0;
6264
+ function Pu(r, e) {
6267
6265
  if (e)
6268
6266
  return r.slice();
6269
6267
  var t = r.length, n = ea ? ea(t) : new r.constructor(t);
6270
6268
  return r.copy(n), n;
6271
6269
  }
6272
- function $u(r, e) {
6270
+ function Ru(r, e) {
6273
6271
  var t = -1, n = r.length;
6274
6272
  for (e || (e = Array(n)); ++t < n; )
6275
6273
  e[t] = r[t];
6276
6274
  return e;
6277
6275
  }
6278
- function zu(r, e) {
6276
+ function $u(r, e) {
6279
6277
  for (var t = -1, n = r == null ? 0 : r.length, a = 0, s = []; ++t < n; ) {
6280
6278
  var i = r[t];
6281
6279
  e(i, t, r) && (s[a++] = i);
@@ -6285,12 +6283,12 @@ function zu(r, e) {
6285
6283
  function C0() {
6286
6284
  return [];
6287
6285
  }
6288
- var Ou = Object.prototype, Mu = Ou.propertyIsEnumerable, ta = Object.getOwnPropertySymbols, Sn = ta ? function(r) {
6289
- return r == null ? [] : (r = Object(r), zu(ta(r), function(e) {
6290
- return Mu.call(r, e);
6286
+ var zu = Object.prototype, Ou = zu.propertyIsEnumerable, ta = Object.getOwnPropertySymbols, Sn = ta ? function(r) {
6287
+ return r == null ? [] : (r = Object(r), $u(ta(r), function(e) {
6288
+ return Ou.call(r, e);
6291
6289
  }));
6292
6290
  } : C0;
6293
- function Nu(r, e) {
6291
+ function Mu(r, e) {
6294
6292
  return cr(r, Sn(r), e);
6295
6293
  }
6296
6294
  function y0(r, e) {
@@ -6298,46 +6296,46 @@ function y0(r, e) {
6298
6296
  r[a + t] = e[t];
6299
6297
  return r;
6300
6298
  }
6301
- var b0 = g0(Object.getPrototypeOf, Object), Lu = Object.getOwnPropertySymbols, w0 = Lu ? function(r) {
6299
+ var b0 = g0(Object.getPrototypeOf, Object), Nu = Object.getOwnPropertySymbols, w0 = Nu ? function(r) {
6302
6300
  for (var e = []; r; )
6303
6301
  y0(e, Sn(r)), r = b0(r);
6304
6302
  return e;
6305
6303
  } : C0;
6306
- function Hu(r, e) {
6304
+ function Lu(r, e) {
6307
6305
  return cr(r, w0(r), e);
6308
6306
  }
6309
6307
  function E0(r, e, t) {
6310
6308
  var n = e(r);
6311
6309
  return En(r) ? n : y0(n, t(r));
6312
6310
  }
6313
- function Uu(r) {
6311
+ function Hu(r) {
6314
6312
  return E0(r, kn, Sn);
6315
6313
  }
6316
- function ju(r) {
6314
+ function Uu(r) {
6317
6315
  return E0(r, Dn, w0);
6318
6316
  }
6319
- var on = pt(He, "DataView"), an = pt(He, "Promise"), sn = pt(He, "Set"), cn = pt(He, "WeakMap"), ra = "[object Map]", qu = "[object Object]", na = "[object Promise]", oa = "[object Set]", aa = "[object WeakMap]", sa = "[object DataView]", Wu = ft(on), Vu = ft($t), Ku = ft(an), Gu = ft(sn), Xu = ft(cn), Ue = Ht;
6317
+ var on = pt(He, "DataView"), an = pt(He, "Promise"), sn = pt(He, "Set"), cn = pt(He, "WeakMap"), ra = "[object Map]", ju = "[object Object]", na = "[object Promise]", oa = "[object Set]", aa = "[object WeakMap]", sa = "[object DataView]", qu = ft(on), Wu = ft($t), Vu = ft(an), Ku = ft(sn), Gu = ft(cn), Ue = Ht;
6320
6318
  (on && Ue(new on(new ArrayBuffer(1))) != sa || $t && Ue(new $t()) != ra || an && Ue(an.resolve()) != na || sn && Ue(new sn()) != oa || cn && Ue(new cn()) != aa) && (Ue = function(r) {
6321
- var e = Ht(r), t = e == qu ? r.constructor : void 0, n = t ? ft(t) : "";
6319
+ var e = Ht(r), t = e == ju ? r.constructor : void 0, n = t ? ft(t) : "";
6322
6320
  if (n)
6323
6321
  switch (n) {
6324
- case Wu:
6322
+ case qu:
6325
6323
  return sa;
6326
- case Vu:
6324
+ case Wu:
6327
6325
  return ra;
6328
- case Ku:
6326
+ case Vu:
6329
6327
  return na;
6330
- case Gu:
6328
+ case Ku:
6331
6329
  return oa;
6332
- case Xu:
6330
+ case Gu:
6333
6331
  return aa;
6334
6332
  }
6335
6333
  return e;
6336
6334
  });
6337
- var Qu = Object.prototype, Zu = Qu.hasOwnProperty;
6338
- function Ju(r) {
6335
+ var Xu = Object.prototype, Qu = Xu.hasOwnProperty;
6336
+ function Zu(r) {
6339
6337
  var e = r.length, t = new r.constructor(e);
6340
- return e && typeof r[0] == "string" && Zu.call(r, "index") && (t.index = r.index, t.input = r.input), t;
6338
+ return e && typeof r[0] == "string" && Qu.call(r, "index") && (t.index = r.index, t.input = r.input), t;
6341
6339
  }
6342
6340
  var ia = He.Uint8Array;
6343
6341
  function Fn(r) {
@@ -6348,30 +6346,31 @@ function Yu(r, e) {
6348
6346
  var t = e ? Fn(r.buffer) : r.buffer;
6349
6347
  return new r.constructor(t, r.byteOffset, r.byteLength);
6350
6348
  }
6351
- var ed = /\w*$/;
6352
- function td(r) {
6353
- var e = new r.constructor(r.source, ed.exec(r));
6349
+ var Ju = /\w*$/;
6350
+ function ed(r) {
6351
+ var e = new r.constructor(r.source, Ju.exec(r));
6354
6352
  return e.lastIndex = r.lastIndex, e;
6355
6353
  }
6356
6354
  var ca = Ct ? Ct.prototype : void 0, la = ca ? ca.valueOf : void 0;
6357
- function rd(r) {
6355
+ function td(r) {
6358
6356
  return la ? Object(la.call(r)) : {};
6359
6357
  }
6360
- function nd(r, e) {
6358
+ function rd(r, e) {
6361
6359
  var t = e ? Fn(r.buffer) : r.buffer;
6362
6360
  return new r.constructor(t, r.byteOffset, r.length);
6363
6361
  }
6364
- var od = "[object Boolean]", ad = "[object Date]", sd = "[object Map]", id = "[object Number]", cd = "[object RegExp]", ld = "[object Set]", ud = "[object String]", dd = "[object Symbol]", fd = "[object ArrayBuffer]", pd = "[object DataView]", hd = "[object Float32Array]", xd = "[object Float64Array]", vd = "[object Int8Array]", gd = "[object Int16Array]", md = "[object Int32Array]", _d = "[object Uint8Array]", Cd = "[object Uint8ClampedArray]", yd = "[object Uint16Array]", bd = "[object Uint32Array]";
6365
- function wd(r, e, t) {
6362
+ var nd = "[object Boolean]", od = "[object Date]", ad = "[object Map]", sd = "[object Number]", id = "[object RegExp]", cd = "[object Set]", ld = "[object String]", ud = "[object Symbol]", dd = "[object ArrayBuffer]", fd = "[object DataView]", pd = "[object Float32Array]", hd = "[object Float64Array]", xd = "[object Int8Array]", vd = "[object Int16Array]", gd = "[object Int32Array]", md = "[object Uint8Array]", _d = "[object Uint8ClampedArray]", Cd = "[object Uint16Array]", yd = "[object Uint32Array]";
6363
+ function bd(r, e, t) {
6366
6364
  var n = r.constructor;
6367
6365
  switch (e) {
6368
- case fd:
6366
+ case dd:
6369
6367
  return Fn(r);
6368
+ case nd:
6370
6369
  case od:
6371
- case ad:
6372
6370
  return new n(+r);
6373
- case pd:
6371
+ case fd:
6374
6372
  return Yu(r, t);
6373
+ case pd:
6375
6374
  case hd:
6376
6375
  case xd:
6377
6376
  case vd:
@@ -6380,22 +6379,21 @@ function wd(r, e, t) {
6380
6379
  case _d:
6381
6380
  case Cd:
6382
6381
  case yd:
6383
- case bd:
6384
- return nd(r, t);
6385
- case sd:
6382
+ return rd(r, t);
6383
+ case ad:
6386
6384
  return new n();
6387
- case id:
6388
- case ud:
6385
+ case sd:
6386
+ case ld:
6389
6387
  return new n(r);
6388
+ case id:
6389
+ return ed(r);
6390
6390
  case cd:
6391
- return td(r);
6392
- case ld:
6393
6391
  return new n();
6394
- case dd:
6395
- return rd(r);
6392
+ case ud:
6393
+ return td(r);
6396
6394
  }
6397
6395
  }
6398
- var ua = Object.create, Ed = /* @__PURE__ */ function() {
6396
+ var ua = Object.create, wd = /* @__PURE__ */ function() {
6399
6397
  function r() {
6400
6398
  }
6401
6399
  return function(e) {
@@ -6408,60 +6406,60 @@ var ua = Object.create, Ed = /* @__PURE__ */ function() {
6408
6406
  return r.prototype = void 0, t;
6409
6407
  };
6410
6408
  }();
6411
- function Ad(r) {
6412
- return typeof r.constructor == "function" && !Bn(r) ? Ed(b0(r)) : {};
6409
+ function Ed(r) {
6410
+ return typeof r.constructor == "function" && !Bn(r) ? wd(b0(r)) : {};
6413
6411
  }
6414
- var Bd = "[object Map]";
6415
- function kd(r) {
6416
- return jt(r) && Ue(r) == Bd;
6412
+ var Ad = "[object Map]";
6413
+ function Bd(r) {
6414
+ return jt(r) && Ue(r) == Ad;
6417
6415
  }
6418
- var da = yt && yt.isMap, Dd = da ? An(da) : kd, Sd = "[object Set]";
6419
- function Fd(r) {
6420
- return jt(r) && Ue(r) == Sd;
6416
+ var da = yt && yt.isMap, kd = da ? An(da) : Bd, Dd = "[object Set]";
6417
+ function Sd(r) {
6418
+ return jt(r) && Ue(r) == Dd;
6421
6419
  }
6422
- var fa = yt && yt.isSet, Id = fa ? An(fa) : Fd, Td = 1, Pd = 2, Rd = 4, A0 = "[object Arguments]", $d = "[object Array]", zd = "[object Boolean]", Od = "[object Date]", Md = "[object Error]", B0 = "[object Function]", Nd = "[object GeneratorFunction]", Ld = "[object Map]", Hd = "[object Number]", k0 = "[object Object]", Ud = "[object RegExp]", jd = "[object Set]", qd = "[object String]", Wd = "[object Symbol]", Vd = "[object WeakMap]", Kd = "[object ArrayBuffer]", Gd = "[object DataView]", Xd = "[object Float32Array]", Qd = "[object Float64Array]", Zd = "[object Int8Array]", Jd = "[object Int16Array]", Yd = "[object Int32Array]", ef = "[object Uint8Array]", tf = "[object Uint8ClampedArray]", rf = "[object Uint16Array]", nf = "[object Uint32Array]", ce = {};
6423
- ce[A0] = ce[$d] = ce[Kd] = ce[Gd] = ce[zd] = ce[Od] = ce[Xd] = ce[Qd] = ce[Zd] = ce[Jd] = ce[Yd] = ce[Ld] = ce[Hd] = ce[k0] = ce[Ud] = ce[jd] = ce[qd] = ce[Wd] = ce[ef] = ce[tf] = ce[rf] = ce[nf] = !0;
6424
- ce[Md] = ce[B0] = ce[Vd] = !1;
6420
+ var fa = yt && yt.isSet, Fd = fa ? An(fa) : Sd, Id = 1, Td = 2, Pd = 4, A0 = "[object Arguments]", Rd = "[object Array]", $d = "[object Boolean]", zd = "[object Date]", Od = "[object Error]", B0 = "[object Function]", Md = "[object GeneratorFunction]", Nd = "[object Map]", Ld = "[object Number]", k0 = "[object Object]", Hd = "[object RegExp]", Ud = "[object Set]", jd = "[object String]", qd = "[object Symbol]", Wd = "[object WeakMap]", Vd = "[object ArrayBuffer]", Kd = "[object DataView]", Gd = "[object Float32Array]", Xd = "[object Float64Array]", Qd = "[object Int8Array]", Zd = "[object Int16Array]", Yd = "[object Int32Array]", Jd = "[object Uint8Array]", ef = "[object Uint8ClampedArray]", tf = "[object Uint16Array]", rf = "[object Uint32Array]", ce = {};
6421
+ ce[A0] = ce[Rd] = ce[Vd] = ce[Kd] = ce[$d] = ce[zd] = ce[Gd] = ce[Xd] = ce[Qd] = ce[Zd] = ce[Yd] = ce[Nd] = ce[Ld] = ce[k0] = ce[Hd] = ce[Ud] = ce[jd] = ce[qd] = ce[Jd] = ce[ef] = ce[tf] = ce[rf] = !0;
6422
+ ce[Od] = ce[B0] = ce[Wd] = !1;
6425
6423
  function Xt(r, e, t, n, a, s) {
6426
- var i, l = e & Td, u = e & Pd, o = e & Rd;
6424
+ var i, l = e & Id, u = e & Td, o = e & Pd;
6427
6425
  if (i !== void 0)
6428
6426
  return i;
6429
6427
  if (!Ut(r))
6430
6428
  return r;
6431
6429
  var c = En(r);
6432
6430
  if (c) {
6433
- if (i = Ju(r), !l)
6434
- return $u(r, i);
6431
+ if (i = Zu(r), !l)
6432
+ return Ru(r, i);
6435
6433
  } else {
6436
- var _ = Ue(r), d = _ == B0 || _ == Nd;
6434
+ var _ = Ue(r), d = _ == B0 || _ == Md;
6437
6435
  if (p0(r))
6438
- return Ru(r, l);
6436
+ return Pu(r, l);
6439
6437
  if (_ == k0 || _ == A0 || d && !a) {
6440
- if (i = u || d ? {} : Ad(r), !l)
6441
- return u ? Hu(r, Tu(i, r)) : Nu(r, ku(i, r));
6438
+ if (i = u || d ? {} : Ed(r), !l)
6439
+ return u ? Lu(r, Iu(i, r)) : Mu(r, Bu(i, r));
6442
6440
  } else {
6443
6441
  if (!ce[_])
6444
6442
  return a ? r : {};
6445
- i = wd(r, _, l);
6443
+ i = bd(r, _, l);
6446
6444
  }
6447
6445
  }
6448
6446
  s || (s = new Bt());
6449
6447
  var h = s.get(r);
6450
6448
  if (h)
6451
6449
  return h;
6452
- s.set(r, i), Id(r) ? r.forEach(function(x) {
6450
+ s.set(r, i), Fd(r) ? r.forEach(function(x) {
6453
6451
  i.add(Xt(x, e, t, x, r, s));
6454
- }) : Dd(r) && r.forEach(function(x, m) {
6452
+ }) : kd(r) && r.forEach(function(x, m) {
6455
6453
  i.set(m, Xt(x, e, t, m, r, s));
6456
6454
  });
6457
- var p = o ? u ? ju : Uu : u ? Dn : kn, g = c ? void 0 : p(r);
6458
- return Tl(g || r, function(x, m) {
6455
+ var p = o ? u ? Uu : Hu : u ? Dn : kn, g = c ? void 0 : p(r);
6456
+ return Il(g || r, function(x, m) {
6459
6457
  g && (m = x, x = r[m]), u0(i, m, Xt(x, e, t, m, r, s));
6460
6458
  }), i;
6461
6459
  }
6462
- var of = 1, af = 4;
6463
- function Yt(r) {
6464
- return Xt(r, of | af);
6460
+ var nf = 1, of = 4;
6461
+ function Jt(r) {
6462
+ return Xt(r, nf | of);
6465
6463
  }
6466
6464
  const er = (r, e = "") => {
6467
6465
  for (let t of r)
@@ -6482,7 +6480,7 @@ const er = (r, e = "") => {
6482
6480
  }
6483
6481
  }
6484
6482
  return null;
6485
- }, sf = (r, e) => {
6483
+ }, af = (r, e) => {
6486
6484
  let t;
6487
6485
  const n = r.findIndex((i) => i.code === e);
6488
6486
  if (n === -1) return { index: n, target: t };
@@ -6490,19 +6488,19 @@ const er = (r, e = "") => {
6490
6488
  return s.length && (t = s[0]), t || a.length && (t = a[a.length - 1]), { index: n, target: t };
6491
6489
  }, pa = (r) => {
6492
6490
  const e = de().subAppList ?? [];
6493
- let { index: t, target: n } = sf(e, r);
6491
+ let { index: t, target: n } = af(e, r);
6494
6492
  return e.splice(t, 1), e.length ? Qe([{ key: "subAppList", value: e }]) : yn(), Ie([
6495
6493
  { key: "currentCode", value: "" },
6496
6494
  { key: "currentTab", value: {} },
6497
6495
  { key: `preTab:${r}`, value: {} },
6498
6496
  { key: `tabMap:${r}`, value: [] }
6499
6497
  ]), n || (n = { fixed: !0, path: qe }), { currentApp: n };
6500
- }, cf = (r, e) => {
6498
+ }, sf = (r, e) => {
6501
6499
  const t = r.findIndex((s) => s.code === e), n = r.slice(0, t), a = r.slice(t + 1);
6502
6500
  return { left: n, right: a };
6503
- }, lf = (r, e, t) => {
6501
+ }, cf = (r, e, t) => {
6504
6502
  var _;
6505
- const n = Re(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((_ = De()) == null ? void 0 : _.tabMap) ?? {})[r] ?? [], { left: i, right: l } = cf(s, t), u = s.filter((d) => n.find((h) => h.code === d.code)).map((d) => {
6503
+ const n = Re(e).filter((d) => d.routeUrl).filter((d) => !(d != null && d.disable) && !(d != null && d.expired)), s = (((_ = De()) == null ? void 0 : _.tabMap) ?? {})[r] ?? [], { left: i, right: l } = sf(s, t), u = s.filter((d) => n.find((h) => h.code === d.code)).map((d) => {
6506
6504
  var h;
6507
6505
  return {
6508
6506
  ...d,
@@ -6544,21 +6542,21 @@ const er = (r, e = "") => {
6544
6542
  { key: `tabMap:${r}`, value: [] }
6545
6543
  ]), pa(r));
6546
6544
  }, In = async (r) => {
6547
- const [e, t] = await Sc().run({
6545
+ const [e, t] = await Dc().run({
6548
6546
  code: r,
6549
6547
  showBtn: !0,
6550
6548
  userType: 1
6551
6549
  });
6552
6550
  if (e || !t || !t.length) return { menus: [], originalMenus: [], err: e };
6553
- mi(t, r);
6551
+ gi(t, r);
6554
6552
  const n = Re(t);
6555
- Ci(n, r), bi(n, r);
6553
+ _i(n, r), yi(n, r);
6556
6554
  let a = ps(t, (i) => i.isMenu);
6557
- const s = Yt(a);
6555
+ const s = Jt(a);
6558
6556
  return a.forEach((i) => {
6559
- i != null && i.children && i.children.length && (i.originalChildren = Yt(i.children)), (i != null && i.expired || i != null && i.disable) && (i.children = []);
6557
+ i != null && i.children && i.children.length && (i.originalChildren = Jt(i.children)), (i != null && i.expired || i != null && i.disable) && (i.children = []);
6560
6558
  }), { menus: a, originalMenus: s };
6561
- }, uf = async (r) => {
6559
+ }, lf = async (r) => {
6562
6560
  var d, h, p, g, x;
6563
6561
  let { microApp: e = null, menuCode: t = "", menuPath: n = "", route: a = {} } = r;
6564
6562
  const s = ((d = a.meta) == null ? void 0 : d.showLayout) ?? !0;
@@ -6613,7 +6611,7 @@ const er = (r, e = "") => {
6613
6611
  if (!_) {
6614
6612
  if (!s || !i)
6615
6613
  return { menuConfig: u, currentApp: null, currentMenu: null, query: { ...a.query, app: l } };
6616
- const m = lf(e.code, u, t);
6614
+ const m = cf(e.code, u, t);
6617
6615
  m != null && m.currentApp && (e = m.currentApp), m != null && m.currentMenu && (_ = m.currentMenu), m != null && m.currentTab && (a.query = ((x = m.currentTab) == null ? void 0 : x.query) ?? {});
6618
6616
  }
6619
6617
  if ((e == null ? void 0 : e.routeUrl) === qe)
@@ -6662,17 +6660,17 @@ const er = (r, e = "") => {
6662
6660
  return { menuConfig: u, currentApp: e, currentMenu: _, query: v, microPath: f };
6663
6661
  }
6664
6662
  return { menuConfig: u, currentApp: e, currentMenu: null, query: { ...a.query, app: l } };
6665
- }, df = "v1", ff = nr.get("/visitor/login/with-default", (r) => (r.public = !0, r)), pf = nr.get("/visitor/appearance/with-default", (r) => (r.public = !0, r)), hf = nr.get("platform/appearance/withdefault"), xf = Ye(`/api/portal/manager/${df}`);
6666
- xf.get("/basics/home/info");
6663
+ }, uf = "v1", df = nr.get("/visitor/login/with-default", (r) => (r.public = !0, r)), ff = nr.get("/visitor/appearance/with-default", (r) => (r.public = !0, r)), pf = nr.get("platform/appearance/withdefault"), hf = Je(`/api/portal/manager/${uf}`);
6664
+ hf.get("/basics/home/info");
6667
6665
  Fa.get("/language");
6668
6666
  Fa.get("/menu/personal-setting");
6669
- const vf = async () => {
6670
- const [r, e] = await ff().run();
6667
+ const xf = async () => {
6668
+ const [r, e] = await df().run();
6671
6669
  return r ? { loginConfig: null } : { loginConfig: e };
6672
- }, gf = async () => {
6673
- const r = Je() ? hf : pf, [e, t] = await r().run();
6670
+ }, vf = async () => {
6671
+ const r = Ye() ? pf : ff, [e, t] = await r().run();
6674
6672
  return e ? { platformConfig: null } : { platformConfig: t };
6675
- }, mf = M(null), D0 = M({ style: 1, skinStyle: "default" }), _f = () => M(null), Cf = { class: "iframe-container" }, yf = ["src"], bf = /* @__PURE__ */ we({
6673
+ }, gf = M(null), D0 = M({ style: 1, skinStyle: "default" }), mf = () => M(null), _f = { class: "iframe-container" }, Cf = ["src"], yf = /* @__PURE__ */ we({
6676
6674
  __name: "index",
6677
6675
  props: {
6678
6676
  src: { default: "" }
@@ -6682,7 +6680,7 @@ const vf = async () => {
6682
6680
  var i, l;
6683
6681
  n.value && (i = t.value) != null && i.contentWindow && ((l = t.value.contentWindow) == null || l.postMessage(
6684
6682
  {
6685
- token: Je(),
6683
+ token: Ye(),
6686
6684
  userInfo: pn(),
6687
6685
  projectInfo: Ze()
6688
6686
  },
@@ -6693,8 +6691,8 @@ const vf = async () => {
6693
6691
  };
6694
6692
  return Nt(() => {
6695
6693
  n.value = !1;
6696
- }), (i, l) => (Y(), Se("div", Cf, [
6697
- i.src ? (Y(), se(F(vn), {
6694
+ }), (i, l) => (J(), Se("div", _f, [
6695
+ i.src ? (J(), se(F(vn), {
6698
6696
  key: 0,
6699
6697
  spinning: !n.value
6700
6698
  }, {
@@ -6707,7 +6705,7 @@ const vf = async () => {
6707
6705
  height: "100%",
6708
6706
  src: i.src,
6709
6707
  onLoad: s
6710
- }, null, 40, yf), [
6708
+ }, null, 40, Cf), [
6711
6709
  [es, n.value]
6712
6710
  ])
6713
6711
  ]),
@@ -6716,12 +6714,12 @@ const vf = async () => {
6716
6714
  }, 8, ["spinning"])) : oe("v-if", !0)
6717
6715
  ]));
6718
6716
  }
6719
- }), ln = /* @__PURE__ */ Le(bf, [["__scopeId", "data-v-d0f25bba"]]), wf = hn.get("/login/history"), Ef = () => {
6717
+ }), ln = /* @__PURE__ */ Le(yf, [["__scopeId", "data-v-d0f25bba"]]), bf = hn.get("/login/history"), wf = () => {
6720
6718
  const r = () => ["/licenseActivate", "/licenseDataManage", "/sso-logout"].some((u) => new RegExp(`^${u}$`, "i").test(location.pathname)), e = (i) => {
6721
6719
  const { browserLogoImgHost: l = "", browserLogoImg: u = "" } = i || {}, o = u ? l + fs(u) : "./logo.svg";
6722
- vi(o), xs(o);
6720
+ xi(o), xs(o);
6723
6721
  }, t = async () => {
6724
- const [i, l] = await wf().run({ userId: ka().id });
6722
+ const [i, l] = await bf().run({ userId: ka().id });
6725
6723
  i || !l || JSON.stringify(l) === "{}" || (Qt.open({
6726
6724
  key: "loginTip",
6727
6725
  message: ne("上次登录信息"),
@@ -6736,7 +6734,7 @@ const vf = async () => {
6736
6734
  ])
6737
6735
  }), sessionStorage.setItem("loginInfoTip", "true"));
6738
6736
  }, n = async () => {
6739
- const [{ loginConfig: i }, { platformConfig: l }] = await Promise.all([vf(), gf()]);
6737
+ const [{ loginConfig: i }, { platformConfig: l }] = await Promise.all([xf(), vf()]);
6740
6738
  e(l), l != null && l.browserTitle && localStorage.setItem("browser-title", l.browserTitle || "AIoT智能物联网管控平台"), hs(), !r() && i != null && i.loginInfoTip && !sessionStorage.getItem("loginInfoTip") && t();
6741
6739
  }, a = M(!1), s = () => new Promise((i) => {
6742
6740
  const l = () => {
@@ -6747,15 +6745,15 @@ const vf = async () => {
6747
6745
  });
6748
6746
  return lt(async () => {
6749
6747
  if (await n(), r()) return;
6750
- await kc(), await Dc();
6751
- const i = Je();
6748
+ await Bc(), await kc();
6749
+ const i = Ye();
6752
6750
  Da({ accessToken: i }), a.value = !0;
6753
6751
  }), {
6754
6752
  platformInited: a,
6755
6753
  initNextTick: s
6756
6754
  };
6757
- }, Af = mn.get("/data/menu-expiration"), S0 = async (r) => {
6758
- const [e, t] = await Af().run();
6755
+ }, Ef = mn.get("/data/menu-expiration"), S0 = async (r) => {
6756
+ const [e, t] = await Ef().run();
6759
6757
  if (e) return { title: "", content: "", decs: [] };
6760
6758
  const n = (r == null ? void 0 : r.expired) ?? !1;
6761
6759
  return {
@@ -6763,16 +6761,16 @@ const vf = async () => {
6763
6761
  content: n ? t.menuExpirationExpiredContent : t.menuExpirationRetrieveContent,
6764
6762
  desc: t.menuExpirationExpiredInfo
6765
6763
  };
6766
- }, Bf = () => {
6764
+ }, Af = () => {
6767
6765
  const { entryMenu: r } = lr();
6768
6766
  Q.menu.addEventListener("onItemClick", async (e) => {
6769
6767
  var s;
6770
6768
  me.innerSet = !0;
6771
- const t = Re(Yr(e.applicationCode)).filter((i) => !i.disable && !i.expired).find((i) => i.code === e.code);
6769
+ const t = Re(Jr(e.applicationCode)).filter((i) => !i.disable && !i.expired).find((i) => i.code === e.code);
6772
6770
  if (t && !t.routeUrl) return;
6773
6771
  if (!t) {
6774
6772
  const { title: i, content: l, desc: u } = await S0(t);
6775
- await Jt({ title: i, content: l, desc: u });
6773
+ await Yt({ title: i, content: l, desc: u });
6776
6774
  return;
6777
6775
  }
6778
6776
  const a = (((s = De().tabMap) == null ? void 0 : s[e.applicationCode]) ?? []).find((i) => i.code === e.code);
@@ -6782,12 +6780,12 @@ const vf = async () => {
6782
6780
  let n = de().menuCollapses || [];
6783
6781
  e ? n = Array.from(/* @__PURE__ */ new Set([...n, t])) : n = n.filter((a) => a !== t), Qe([{ key: "menuCollapses", value: n }]);
6784
6782
  });
6785
- }, kf = () => {
6783
+ }, Bf = () => {
6786
6784
  const { changeApp: r, deleteApp: e, beforeEntryApp: t } = qt();
6787
6785
  Q.nav.addEventListener("onItemClick", async (a) => {
6788
6786
  const s = de().currentSubAppCode ?? "";
6789
6787
  if (s !== a.code) {
6790
- if (s && Bi(s), !a.fixed && !await t(a))
6788
+ if (s && Ai(s), !a.fixed && !await t(a))
6791
6789
  throw new Error(ne("取消切换"));
6792
6790
  r(a);
6793
6791
  }
@@ -6800,7 +6798,7 @@ const vf = async () => {
6800
6798
  });
6801
6799
  const { enter: n } = Lt();
6802
6800
  return Q.nav.addEventListener("fullScreenHandle", n), {};
6803
- }, Df = () => {
6801
+ }, kf = () => {
6804
6802
  const r = rr(), e = M(""), t = M(""), n = M("");
6805
6803
  let a = "", s = {};
6806
6804
  ke(
@@ -6810,7 +6808,7 @@ const vf = async () => {
6810
6808
  const g = ((C = p.meta) == null ? void 0 : C.showLayout) ?? !0;
6811
6809
  let x = ((w = p.query) == null ? void 0 : w.showLayout) ?? !0;
6812
6810
  if (x === "false" && (x = !1), !g || !x || p.path === a && Qn(p.query, s)) return;
6813
- a = Yt(p.path), s = Yt(p.query);
6811
+ a = Jt(p.path), s = Jt(p.query);
6814
6812
  const m = de().currentSubAppCode ?? "";
6815
6813
  if (!m) return;
6816
6814
  const f = ((A = p.query) == null ? void 0 : A.menu) ?? ((B = De()) == null ? void 0 : B.currentCode) ?? "";
@@ -6821,7 +6819,7 @@ const vf = async () => {
6821
6819
  );
6822
6820
  const { deleteApp: i } = qt(), { entryMenu: l } = lr(), { reloadRoute: u, unloadRoute: o } = Tn(), c = (p) => {
6823
6821
  var f;
6824
- const g = Re(Yr(p.applicationCode)).find((v) => v.code === p.code), m = (((f = De().tabMap) == null ? void 0 : f[p.applicationCode]) ?? []).find((v) => v.code === p.code);
6822
+ const g = Re(Jr(p.applicationCode)).find((v) => v.code === p.code), m = (((f = De().tabMap) == null ? void 0 : f[p.applicationCode]) ?? []).find((v) => v.code === p.code);
6825
6823
  l({ currentMenu: g, route: { path: m.path, query: m.query ?? {} } });
6826
6824
  }, _ = (p) => {
6827
6825
  if (!p || !p.length) return;
@@ -6891,7 +6889,7 @@ const vf = async () => {
6891
6889
  return;
6892
6890
  }
6893
6891
  Gt(p.applicationCode, [p.code]);
6894
- const g = Re(Yr(p.applicationCode)).find((f) => f.code === p.code);
6892
+ const g = Re(Jr(p.applicationCode)).find((f) => f.code === p.code);
6895
6893
  if (!g) return;
6896
6894
  if (g.routeUrl !== p.path) {
6897
6895
  u([p.path]), o([`/${p.applicationPath}${g.routeUrl}`]), await l({ currentMenu: g });
@@ -6917,10 +6915,10 @@ const vf = async () => {
6917
6915
  if (A) return !1;
6918
6916
  x = C ?? [], m = w ?? [];
6919
6917
  }
6920
- if (x.length ? er(x) || (await Jt({
6918
+ if (x.length ? er(x) || (await Yt({
6921
6919
  title: ne("提示"),
6922
6920
  content: ne("此应用菜单已过期/已收回/配置有误") + "<br/>" + ne("无法使用")
6923
- }), f = !0) : (await Jt({ title: ne("提示"), content: ne("此应用未配置菜单/无菜单权限") + "<br/>" + ne("无法使用") }), f = !0), f) return !1;
6921
+ }), f = !0) : (await Yt({ title: ne("提示"), content: ne("此应用未配置菜单/无菜单权限") + "<br/>" + ne("无法使用") }), f = !0), f) return !1;
6924
6922
  const v = { ...d, menus: x, originalMenus: m };
6925
6923
  return Qe([{ key: "subAppList", value: v }]), !0;
6926
6924
  }, o = async (d) => {
@@ -6954,7 +6952,7 @@ const vf = async () => {
6954
6952
  return;
6955
6953
  }
6956
6954
  if (C === 1 && w === 2) {
6957
- const j = await Ya(h.routeUrl, (h == null ? void 0 : h.param) ?? []), G = nn(en(tn(j))), T = `${ot}-${h.code}`;
6955
+ const j = await Ja(h.routeUrl, (h == null ? void 0 : h.param) ?? []), G = nn(en(tn(j))), T = `${ot}-${h.code}`;
6958
6956
  if (!r.options.routes.find((P) => P.path === T)) {
6959
6957
  const P = {
6960
6958
  path: T,
@@ -6981,7 +6979,7 @@ const vf = async () => {
6981
6979
  currentMenu: E = null,
6982
6980
  microPath: k = "",
6983
6981
  query: y = {}
6984
- } = await uf({ microApp: h, menuCode: p, menuPath: g, route: m });
6982
+ } = await lf({ microApp: h, menuCode: p, menuPath: g, route: m });
6985
6983
  if (E && (m = {
6986
6984
  path: k || `/${E.applicationPath}${E.routeUrl}`.replace(/\/\//g, "/"),
6987
6985
  query: { ...y, app: E.applicationCode, menu: E.code },
@@ -7098,7 +7096,7 @@ const vf = async () => {
7098
7096
  await r.push({ path: d, query: o });
7099
7097
  } else i.applicationPath && (d = u || i.routeUrl, d = `/${i.applicationPath}${d}`.replace(/\/\//g, "/"), await r.push({ path: d, query: o }));
7100
7098
  else {
7101
- const x = await Ya(i.routeUrl, (i == null ? void 0 : i.param) ?? []), m = nn(en(tn(x)));
7099
+ const x = await Ja(i.routeUrl, (i == null ? void 0 : i.param) ?? []), m = nn(en(tn(x)));
7102
7100
  if (d = `${ot}-${i.code}`, !r.options.routes.find((f) => f.path === d)) {
7103
7101
  const f = {
7104
7102
  path: d,
@@ -7170,8 +7168,8 @@ const vf = async () => {
7170
7168
  me.excludeRoutes = Array.from(/* @__PURE__ */ new Set([...me.excludeRoutes, ...t])), me.routeKeepAliveVisible = !1, setTimeout(() => {
7171
7169
  me.excludeRoutes = [], me.routeKeepAliveVisible = !0;
7172
7170
  }, 100);
7173
- } }), Sf = () => {
7174
- const r = ks(), e = _f(), t = wt(), n = async () => {
7171
+ } }), Df = () => {
7172
+ const r = ks(), e = mf(), t = wt(), n = async () => {
7175
7173
  const i = {
7176
7174
  logout: "/api/justauth/oauth-server/v1/visitor/logout"
7177
7175
  }, l = location.origin + Rt, u = {
@@ -7180,7 +7178,7 @@ const vf = async () => {
7180
7178
  client_id: "sys",
7181
7179
  state: +/* @__PURE__ */ new Date(),
7182
7180
  redirect_uri: l,
7183
- logout_token: Je(),
7181
+ logout_token: Ye(),
7184
7182
  // 写用户访问日志逻辑配合
7185
7183
  logout: "true"
7186
7184
  };
@@ -7191,7 +7189,7 @@ const vf = async () => {
7191
7189
  const i = "personCenter", u = (de().appcategorys || []).map((h) => h.apps).flat(), { originalMenus: o = [] } = await In(i), _ = Re(o).filter((h) => h.isMenu && h.routeUrl).find((h) => h.routeUrl === "/userInfo");
7192
7190
  if (_ != null && _.disable || _ != null && _.expired) {
7193
7191
  const { title: h, content: p, desc: g } = await S0(_);
7194
- await Jt({ title: h, content: p, desc: g });
7192
+ await Yt({ title: h, content: p, desc: g });
7195
7193
  return;
7196
7194
  }
7197
7195
  const d = u.find((h) => h.code === i);
@@ -7209,7 +7207,7 @@ const vf = async () => {
7209
7207
  $changePwd: r,
7210
7208
  $personSetDialog: e
7211
7209
  };
7212
- }, Ff = Sa.get("/convert/tenant"), If = hn.get("/platform/withdefault"), F0 = () => {
7210
+ }, Sf = Sa.get("/convert/tenant"), Ff = hn.get("/platform/withdefault"), F0 = () => {
7213
7211
  const r = wt(), e = M(!1), t = M(""), n = M(""), a = () => {
7214
7212
  t.value = pn().id, n.value = ka().tenantId, e.value = !0;
7215
7213
  };
@@ -7217,14 +7215,14 @@ const vf = async () => {
7217
7215
  a();
7218
7216
  });
7219
7217
  const s = () => {
7220
- Ai(), gi(), window.__isAutoCloseApp = !1, location.pathname !== qe && location.pathname !== Rt ? window.location.replace(location.origin + qe) : window.location.reload();
7218
+ Ei(), vi(), window.__isAutoCloseApp = !1, location.pathname !== qe && location.pathname !== Rt ? window.location.replace(location.origin + qe) : window.location.reload();
7221
7219
  };
7222
7220
  return {
7223
7221
  changeEnterprisesVisible: e,
7224
7222
  userId: t,
7225
7223
  tenantId: n,
7226
7224
  changeEnterprise: async (l) => {
7227
- const [u, o] = await Ff().run({ tenant: l });
7225
+ const [u, o] = await Sf().run({ tenant: l });
7228
7226
  if (u) return;
7229
7227
  e.value = !1;
7230
7228
  const { access_token: c = "", refresh_token: _ = "", expires_in: d = 0, sub: h = "", name: p = "", flag: g = "", tenant: x = "" } = o, m = {
@@ -7245,7 +7243,7 @@ const vf = async () => {
7245
7243
  if (r != null && r.ssoLocale)
7246
7244
  v = `http://127.0.0.1:5000/oauth/refreshOauthToken?tenantId=${l}`;
7247
7245
  else {
7248
- const [C, w] = await If().run();
7246
+ const [C, w] = await Ff().run();
7249
7247
  w != null && w.loginHost && (v = `${w.loginHost}/oauth/refreshOauthToken?tenantId=${l}`);
7250
7248
  }
7251
7249
  if (v) {
@@ -7255,7 +7253,7 @@ const vf = async () => {
7255
7253
  s();
7256
7254
  }
7257
7255
  };
7258
- }, Tf = () => {
7256
+ }, If = () => {
7259
7257
  const { changeEnterprise: r } = F0();
7260
7258
  Q.nav.addEventListener("onProjectChange", async (e) => {
7261
7259
  const t = Ba();
@@ -7265,7 +7263,7 @@ const vf = async () => {
7265
7263
  }
7266
7264
  Cs((e == null ? void 0 : e.id) || 0), (t == null ? void 0 : t.flag) !== 4 && (window.__isAutoCloseApp = !1, window.location.reload());
7267
7265
  });
7268
- }, Pf = () => {
7266
+ }, Tf = () => {
7269
7267
  const r = M(), { entryApp: e } = qt();
7270
7268
  return Q.nav.addEventListener("openAI", () => {
7271
7269
  var n;
@@ -7287,12 +7285,12 @@ const vf = async () => {
7287
7285
  innerSet: !1,
7288
7286
  excludeRoutes: [],
7289
7287
  routeKeepAliveVisible: !0
7290
- }), Rf = async () => {
7291
- const [r, e] = await Fc().run(), t = { instanceInfo: e ?? null };
7292
- return Ei(t), t;
7288
+ }), Pf = async () => {
7289
+ const [r, e] = await Sc().run(), t = { instanceInfo: e ?? null };
7290
+ return wi(t), t;
7293
7291
  };
7294
7292
  $a("container");
7295
- const $f = (r) => {
7293
+ const Rf = (r) => {
7296
7294
  const { microAppBus: e } = r, t = "/iot/iot/deviceInstance", n = "/iot/iot/statisticalReport", a = (i) => {
7297
7295
  const { menuName: l = "实例" } = i || {};
7298
7296
  e.cors.send("customEventFromMicro", {
@@ -7313,13 +7311,13 @@ const $f = (r) => {
7313
7311
  }, s = async (i) => {
7314
7312
  const { toPath: l = "", params: u = {} } = i || {};
7315
7313
  let o = "实例", c = !1;
7316
- const { instanceInfo: _ } = await Rf();
7314
+ const { instanceInfo: _ } = await Pf();
7317
7315
  if (_) {
7318
7316
  const g = ms(_.endTime) || _.endTime == 0 || _.endTime === 253370736e6 || _.endTime === "253370736000000" ? "-" : Number(_.endTime);
7319
7317
  c = rn().endOf("day") > rn(g).endOf("day"), c || (o = _.instanceName ?? "实例");
7320
7318
  }
7321
7319
  a({ menuName: o });
7322
- const { clickSource: d = "", isFirstEnter: h = !1 } = u, p = Jn(null, { menuCode: "iot.statisticalReport" });
7320
+ const { clickSource: d = "", isFirstEnter: h = !1 } = u, p = Yn(null, { menuCode: "iot.statisticalReport" });
7323
7321
  d === "nav" && h && l.toLowerCase() === t.toLowerCase() && _.id && !c && p && await Zn({
7324
7322
  manual: !0,
7325
7323
  path: n
@@ -7327,12 +7325,12 @@ const $f = (r) => {
7327
7325
  };
7328
7326
  return be.addEventListenerFromMicroApp("iot:change-instance", (i) => {
7329
7327
  const { instanceInfo: l } = i.data || {};
7330
- a({ menuName: l.instanceName }), Jn(null, { menuCode: "iot.statisticalReport" }) && Zn({
7328
+ a({ menuName: l.instanceName }), Yn(null, { menuCode: "iot.statisticalReport" }) && Zn({
7331
7329
  manual: !0,
7332
7330
  path: n
7333
7331
  });
7334
7332
  }), { routerBeforEnter: s };
7335
- }, un = $a("microApp"), { routerBeforEnter: zf } = $f({ microAppBus: un }), Of = () => {
7333
+ }, un = $a("microApp"), { routerBeforEnter: $f } = Rf({ microAppBus: un }), zf = () => {
7336
7334
  const { unloadRoute: r } = Tn();
7337
7335
  un.event.on("unmountPage", (e) => {
7338
7336
  var n;
@@ -7341,14 +7339,14 @@ const $f = (r) => {
7341
7339
  }), un.event.on("beforeEnter", async (e) => {
7342
7340
  const t = String((e == null ? void 0 : e.toPath) || "").trim().split("?")[0].split("#")[0];
7343
7341
  try {
7344
- t && t.startsWith("/iot/iot") && zf({ toPath: t, params: e });
7342
+ t && t.startsWith("/iot/iot") && $f({ toPath: t, params: e });
7345
7343
  } catch {
7346
7344
  }
7347
7345
  });
7348
- }, Mf = () => {
7346
+ }, Of = () => {
7349
7347
  be.addEventListenerFromMicroApp("iot:change-instance", (r) => {
7350
7348
  });
7351
- }, Nf = () => {
7349
+ }, Mf = () => {
7352
7350
  be.addEventListenerFromMicroApp("devicePanelShow", (r) => {
7353
7351
  const { deviceId: e = "", panelCode: t = "", deviceName: n = "", x: a = 0, y: s = 0, isCenter: i = !1 } = r.data;
7354
7352
  za(e, t, n, a, s, i);
@@ -7360,7 +7358,7 @@ const $f = (r) => {
7360
7358
  }), be.addEventListenerFromMicroApp("closeAlarmPanel", (r) => {
7361
7359
  Ts();
7362
7360
  });
7363
- }, Lf = nr.get("/platform/login/pwd-advance-notify-check"), Hf = () => {
7361
+ }, Nf = nr.get("/platform/login/pwd-advance-notify-check"), Lf = () => {
7364
7362
  const r = M([]), e = M(null), t = M([]), { entryApp: n } = Zt.hooks.useEntryApp(), a = () => {
7365
7363
  var u;
7366
7364
  const l = (((u = de().appcategorys) == null ? void 0 : u.map((o) => o.apps).flat()) ?? []).find((o) => o.code === "messagecenter");
@@ -7370,7 +7368,7 @@ const $f = (r) => {
7370
7368
  url: "/api/messagecenter/message/v1/innersend",
7371
7369
  reconnectWhenClose: !0,
7372
7370
  opened: async () => {
7373
- await Lf().run();
7371
+ await Nf().run();
7374
7372
  },
7375
7373
  message: async (i) => {
7376
7374
  if (be.sendMessageToMicroApp("enterpriseadmin/messagecenter", "message-notify:message", { msgList: i }), window.self !== window.top) return;
@@ -7413,8 +7411,8 @@ const $f = (r) => {
7413
7411
  }), Nt(() => {
7414
7412
  e.value && e.value.disconnect(), e.value = null;
7415
7413
  });
7416
- }, Uf = "v1", jf = Et(`/api/enterpriseright/permission/${Uf}`), I0 = Et("/api/device-relation/deviceproject/v1/project/device/video", Wf), qf = mn.get("/permissionset/user-portal-menu");
7417
- function Wf(r) {
7414
+ }, Hf = "v1", Uf = Et(`/api/enterpriseright/permission/${Hf}`), I0 = Et("/api/device-relation/deviceproject/v1/project/device/video", qf), jf = mn.get("/permissionset/user-portal-menu");
7415
+ function qf(r) {
7418
7416
  const e = Ze() ? Ze().id : 1;
7419
7417
  return r.params || (r.params = {}), r.params.project = e, r.params.projectId = e, r;
7420
7418
  }
@@ -7427,10 +7425,10 @@ function T0(r) {
7427
7425
  function ha(r) {
7428
7426
  return I0.post(`/ptz?${T0(r)}`)().run();
7429
7427
  }
7430
- function Vf(r) {
7428
+ function Wf(r) {
7431
7429
  return I0.post(`/url/preview?${T0(r)}`)().run();
7432
7430
  }
7433
- const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7431
+ const Vf = Uf.post("data/device-auth"), Kf = /* @__PURE__ */ we({
7434
7432
  __name: "GridItem",
7435
7433
  props: {
7436
7434
  active: { type: Boolean },
@@ -7448,7 +7446,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7448
7446
  }, u = () => {
7449
7447
  n("itemClick");
7450
7448
  }, o = je(() => `calc(100% / ${Math.sqrt(t.gridNum)})`);
7451
- return (c, _) => (Y(), Se(
7449
+ return (c, _) => (J(), Se(
7452
7450
  "div",
7453
7451
  {
7454
7452
  ref_key: "containerRef",
@@ -7464,7 +7462,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7464
7462
  /* CLASS, NEED_HYDRATION */
7465
7463
  ));
7466
7464
  }
7467
- }), Xf = /* @__PURE__ */ Le(Gf, [["__scopeId", "data-v-68946aef"]]), Qf = { class: "layout-wrapper" }, Zf = /* @__PURE__ */ we({
7465
+ }), Gf = /* @__PURE__ */ Le(Kf, [["__scopeId", "data-v-68946aef"]]), Xf = { class: "layout-wrapper" }, Qf = /* @__PURE__ */ we({
7468
7466
  __name: "GridLayout",
7469
7467
  props: {
7470
7468
  gridNum: {},
@@ -7476,12 +7474,12 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7476
7474
  const t = r, n = e, a = (s) => {
7477
7475
  n("update:activeIndex", s);
7478
7476
  };
7479
- return (s, i) => (Y(), Se("div", Qf, [
7477
+ return (s, i) => (J(), Se("div", Xf, [
7480
7478
  oe(' :active="index === activeIndex" '),
7481
- (Y(!0), Se(
7479
+ (J(!0), Se(
7482
7480
  _t,
7483
7481
  null,
7484
- dn(t.gridNum, (l, u) => (Y(), se(Xf, {
7482
+ dn(t.gridNum, (l, u) => (J(), se(Gf, {
7485
7483
  active: !1,
7486
7484
  "grid-num": t.gridNum,
7487
7485
  onItemClick: (o) => a(u)
@@ -7500,14 +7498,14 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7500
7498
  ))
7501
7499
  ]));
7502
7500
  }
7503
- }), Jf = /* @__PURE__ */ Le(Zf, [["__scopeId", "data-v-22baf4d8"]]), Yf = /* @__PURE__ */ we({
7501
+ }), Zf = /* @__PURE__ */ Le(Qf, [["__scopeId", "data-v-22baf4d8"]]), Yf = /* @__PURE__ */ we({
7504
7502
  __name: "DirectionControl",
7505
7503
  emits: ["change"],
7506
7504
  setup(r, { emit: e }) {
7507
7505
  const t = e, n = (a) => {
7508
7506
  t("change", a);
7509
7507
  };
7510
- return (a, s) => (Y(), Se(
7508
+ return (a, s) => (J(), Se(
7511
7509
  "div",
7512
7510
  {
7513
7511
  class: "direction-control",
@@ -7627,10 +7625,10 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7627
7625
  /* NEED_HYDRATION */
7628
7626
  ));
7629
7627
  }
7630
- }), ep = /* @__PURE__ */ Le(Yf, [["__scopeId", "data-v-83a64a40"]]), tp = { class: "video-wrapper" }, rp = { class: "video-top" }, np = { class: "video-top_l" }, op = { class: "video-title-wrapper" }, ap = { class: "video-title" }, sp = { class: "video-top_r" }, ip = {
7628
+ }), Jf = /* @__PURE__ */ Le(Yf, [["__scopeId", "data-v-83a64a40"]]), ep = { class: "video-wrapper" }, tp = { class: "video-top" }, rp = { class: "video-top_l" }, np = { class: "video-title-wrapper" }, op = { class: "video-title" }, ap = { class: "video-top_r" }, sp = {
7631
7629
  key: 0,
7632
7630
  class: "play-status"
7633
- }, cp = { class: "video-bottom" }, lp = { class: "video-bottom_r" }, up = /* @__PURE__ */ we({
7631
+ }, ip = { class: "video-bottom" }, cp = { class: "video-bottom_r" }, lp = /* @__PURE__ */ we({
7634
7632
  __name: "index",
7635
7633
  props: {
7636
7634
  videoUrl: {},
@@ -7720,29 +7718,29 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7720
7718
  c.value = !0;
7721
7719
  });
7722
7720
  }
7723
- ), (v, C) => (Y(), Se("div", tp, [
7721
+ ), (v, C) => (J(), Se("div", ep, [
7724
7722
  Z(F(vn), {
7725
7723
  spinning: t.loading,
7726
7724
  type: "component",
7727
7725
  tip: "加载中..."
7728
7726
  }, {
7729
7727
  default: X(() => [
7730
- K("div", rp, [
7731
- K("div", np, [
7732
- K("div", op, [
7728
+ K("div", tp, [
7729
+ K("div", rp, [
7730
+ K("div", np, [
7733
7731
  K(
7734
7732
  "div",
7735
- ap,
7733
+ op,
7736
7734
  pe(t.title.length > 20 ? t.title.slice(0, 19) + "..." : t.title),
7737
7735
  1
7738
7736
  /* TEXT */
7739
7737
  )
7740
7738
  ])
7741
7739
  ]),
7742
- K("div", sp, [
7743
- ["live"].includes(v.type) ? (Y(), Se(
7740
+ K("div", ap, [
7741
+ ["live"].includes(v.type) ? (J(), Se(
7744
7742
  "span",
7745
- ip,
7743
+ sp,
7746
7744
  pe(F(ne)("正在实时预览")),
7747
7745
  1
7748
7746
  /* TEXT */
@@ -7750,7 +7748,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7750
7748
  oe(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
7751
7749
  ])
7752
7750
  ]),
7753
- t.videoUrl && c.value ? (Y(), se(F($s), {
7751
+ t.videoUrl && c.value ? (J(), se(F($s), {
7754
7752
  key: 0,
7755
7753
  type: "flv",
7756
7754
  ref_key: "dasLivePlayerRef",
@@ -7759,7 +7757,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7759
7757
  onLoaded: _,
7760
7758
  src: t.videoUrl
7761
7759
  }, null, 8, ["muted", "src"])) : oe("v-if", !0),
7762
- K("div", cp, [
7760
+ K("div", ip, [
7763
7761
  C[3] || (C[3] = K(
7764
7762
  "div",
7765
7763
  { class: "video-bottom_l" },
@@ -7767,7 +7765,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7767
7765
  -1
7768
7766
  /* CACHED */
7769
7767
  )),
7770
- K("div", lp, [
7768
+ K("div", cp, [
7771
7769
  K(
7772
7770
  "div",
7773
7771
  {
@@ -7801,12 +7799,12 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7801
7799
  _: 1
7802
7800
  /* STABLE */
7803
7801
  }, 8, ["content"]),
7804
- f("control") ? (Y(), se(F(Ae), {
7802
+ f("control") ? (J(), se(F(Ae), {
7805
7803
  key: 0,
7806
7804
  content: F(ne)("聚焦-")
7807
7805
  }, {
7808
7806
  default: X(() => [
7809
- ["live", "polling"].includes(t.type) ? (Y(), se(F(vt), {
7807
+ ["live", "polling"].includes(t.type) ? (J(), se(F(vt), {
7810
7808
  key: 0,
7811
7809
  class: "icon icon-shrink",
7812
7810
  icon: "shrink",
@@ -7816,12 +7814,12 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7816
7814
  _: 1
7817
7815
  /* STABLE */
7818
7816
  }, 8, ["content"])) : oe("v-if", !0),
7819
- f("control") ? (Y(), se(F(Ae), {
7817
+ f("control") ? (J(), se(F(Ae), {
7820
7818
  key: 1,
7821
7819
  content: F(ne)("聚焦+")
7822
7820
  }, {
7823
7821
  default: X(() => [
7824
- ["live", "polling"].includes(t.type) ? (Y(), se(F(vt), {
7822
+ ["live", "polling"].includes(t.type) ? (J(), se(F(vt), {
7825
7823
  key: 0,
7826
7824
  class: "icon icon-enlarge",
7827
7825
  icon: "enlarge",
@@ -7831,12 +7829,12 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7831
7829
  _: 1
7832
7830
  /* STABLE */
7833
7831
  }, 8, ["content"])) : oe("v-if", !0),
7834
- f("control") ? (Y(), se(F(Ae), {
7832
+ f("control") ? (J(), se(F(Ae), {
7835
7833
  key: 2,
7836
7834
  content: F(ne)("方向控制")
7837
7835
  }, {
7838
7836
  default: X(() => [
7839
- ["live", "polling"].includes(t.type) ? (Y(), se(F(vt), {
7837
+ ["live", "polling"].includes(t.type) ? (J(), se(F(vt), {
7840
7838
  key: 0,
7841
7839
  class: "icon icon-direction-control",
7842
7840
  icon: "direction-control",
@@ -7852,7 +7850,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7852
7850
  )
7853
7851
  ])
7854
7852
  ]),
7855
- i.value ? (Y(), se(ep, {
7853
+ i.value ? (J(), se(Jf, {
7856
7854
  key: 1,
7857
7855
  onChange: x
7858
7856
  })) : oe("v-if", !0)
@@ -7862,7 +7860,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7862
7860
  }, 8, ["spinning"])
7863
7861
  ]));
7864
7862
  }
7865
- }), dp = /* @__PURE__ */ Le(up, [["__scopeId", "data-v-30f67b62"]]), fp = /* @__PURE__ */ we({
7863
+ }), up = /* @__PURE__ */ Le(lp, [["__scopeId", "data-v-30f67b62"]]), dp = /* @__PURE__ */ we({
7866
7864
  props: {
7867
7865
  deviceInfo: {
7868
7866
  type: Object,
@@ -7878,7 +7876,7 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7878
7876
  var c;
7879
7877
  if (!((c = t.value) != null && c.deviceId)) return;
7880
7878
  n.value = !0;
7881
- const [u, o] = await Vf({
7879
+ const [u, o] = await Wf({
7882
7880
  productId: t.value.productId,
7883
7881
  deviceId: t.value.deviceId,
7884
7882
  source: "strategy"
@@ -7915,13 +7913,13 @@ const Kf = jf.post("data/device-auth"), Gf = /* @__PURE__ */ we({
7915
7913
  })]);
7916
7914
  }
7917
7915
  });
7918
- function pp(r) {
7916
+ function fp(r) {
7919
7917
  const e = M(0), t = M(), {
7920
7918
  toggle: n,
7921
7919
  isFullscreen: a
7922
7920
  } = Lt(t);
7923
7921
  return {
7924
- render: () => Z(Jf, {
7922
+ render: () => Z(Zf, {
7925
7923
  ref: t,
7926
7924
  gridNum: r.gridNum,
7927
7925
  activeIndex: e.value,
@@ -7932,7 +7930,7 @@ function pp(r) {
7932
7930
  index: i
7933
7931
  }) => {
7934
7932
  const l = r.deviceList[i];
7935
- return Z(fp, {
7933
+ return Z(dp, {
7936
7934
  deviceInfo: l
7937
7935
  }, {
7938
7936
  default: ({
@@ -7940,7 +7938,7 @@ function pp(r) {
7940
7938
  onDirectionControl: o,
7941
7939
  onZoomControl: c,
7942
7940
  loading: _
7943
- }) => Z(dp, {
7941
+ }) => Z(up, {
7944
7942
  type: "live",
7945
7943
  loading: _,
7946
7944
  videoUrl: u,
@@ -7955,7 +7953,7 @@ function pp(r) {
7955
7953
  toggleFullscreen: n
7956
7954
  };
7957
7955
  }
7958
- const hp = /* @__PURE__ */ we({
7956
+ const pp = /* @__PURE__ */ we({
7959
7957
  __name: "index",
7960
7958
  props: {
7961
7959
  deviceList: { default: () => [] },
@@ -7966,7 +7964,7 @@ const hp = /* @__PURE__ */ we({
7966
7964
  Oa({
7967
7965
  fullscreen2: import("@das-fed/upf-ui/packages/icons/fullscreen-2")
7968
7966
  });
7969
- const e = r, t = M(!0), { render: n, toggleFullscreen: a } = pp(e), s = je(() => {
7967
+ const e = r, t = M(!0), { render: n, toggleFullscreen: a } = fp(e), s = je(() => {
7970
7968
  let i = {};
7971
7969
  switch (e.gridNum) {
7972
7970
  case 1:
@@ -7981,7 +7979,7 @@ const hp = /* @__PURE__ */ we({
7981
7979
  }
7982
7980
  return i;
7983
7981
  });
7984
- return (i, l) => (Y(), se(F(gn), {
7982
+ return (i, l) => (J(), se(F(gn), {
7985
7983
  size: "mini",
7986
7984
  title: F(ne)("视频监控"),
7987
7985
  "custom-class": `das-linakge-video-dialog ${s.value}`,
@@ -8018,29 +8016,29 @@ const hp = /* @__PURE__ */ we({
8018
8016
  }, 8, ["content"])
8019
8017
  ]),
8020
8018
  default: X(() => [
8021
- t.value ? (Y(), se(F(n), { key: 0 })) : oe("v-if", !0)
8019
+ t.value ? (J(), se(F(n), { key: 0 })) : oe("v-if", !0)
8022
8020
  ]),
8023
8021
  _: 1
8024
8022
  /* STABLE */
8025
8023
  }, 8, ["title", "custom-class", "modelValue", "onClosed"]));
8026
8024
  }
8027
- }), xp = (r) => {
8025
+ }), hp = (r) => {
8028
8026
  const { gridNum: e = 4, deviceList: t = [] } = r;
8029
8027
  return new Promise((n) => {
8030
8028
  let a = document.body.querySelector("#video-dialog-container");
8031
8029
  a && (Tt(null, a), document.body.removeChild(a)), a = document.createElement("div"), a.setAttribute("id", "video-dialog-container"), document.body.appendChild(a);
8032
- const i = Ce(hp, { gridNum: e, deviceList: t, closeCallback: () => {
8030
+ const i = Ce(pp, { gridNum: e, deviceList: t, closeCallback: () => {
8033
8031
  Tt(null, a), document.body.removeChild(a), n(null);
8034
8032
  } });
8035
8033
  Tt(i, a);
8036
8034
  });
8037
- }, vp = () => {
8035
+ }, xp = () => {
8038
8036
  const r = M(4), e = M([]), t = M(null), n = async (s) => {
8039
- const [i, l] = await Kf(s).run();
8037
+ const [i, l] = await Vf(s).run();
8040
8038
  if (!i)
8041
8039
  return l;
8042
8040
  }, a = async () => {
8043
- const s = Ze().id, [i, l] = await qf().run({
8041
+ const s = Ze().id, [i, l] = await jf().run({
8044
8042
  code: "strategy",
8045
8043
  showBtn: !1
8046
8044
  });
@@ -8066,7 +8064,7 @@ const hp = /* @__PURE__ */ we({
8066
8064
  show: !!g
8067
8065
  };
8068
8066
  });
8069
- e.value = h.filter((p) => !!p.show), (c = e.value) != null && c.length && xp({ gridNum: r.value, deviceList: e.value });
8067
+ e.value = h.filter((p) => !!p.show), (c = e.value) != null && c.length && hp({ gridNum: r.value, deviceList: e.value });
8070
8068
  }
8071
8069
  }
8072
8070
  }));
@@ -8113,7 +8111,7 @@ class Oe extends Error {
8113
8111
  super(e), this.__proto__ = t;
8114
8112
  }
8115
8113
  }
8116
- class gp extends Error {
8114
+ class vp extends Error {
8117
8115
  /** Constructs a new instance of {@link @microsoft/signalr.UnsupportedTransportError}.
8118
8116
  *
8119
8117
  * @param {string} message A descriptive error message.
@@ -8124,7 +8122,7 @@ class gp extends Error {
8124
8122
  super(e), this.transport = t, this.errorType = "UnsupportedTransportError", this.__proto__ = n;
8125
8123
  }
8126
8124
  }
8127
- class mp extends Error {
8125
+ class gp extends Error {
8128
8126
  /** Constructs a new instance of {@link @microsoft/signalr.DisabledTransportError}.
8129
8127
  *
8130
8128
  * @param {string} message A descriptive error message.
@@ -8135,7 +8133,7 @@ class mp extends Error {
8135
8133
  super(e), this.transport = t, this.errorType = "DisabledTransportError", this.__proto__ = n;
8136
8134
  }
8137
8135
  }
8138
- class _p extends Error {
8136
+ class mp extends Error {
8139
8137
  /** Constructs a new instance of {@link @microsoft/signalr.FailedToStartTransportError}.
8140
8138
  *
8141
8139
  * @param {string} message A descriptive error message.
@@ -8156,7 +8154,7 @@ class xa extends Error {
8156
8154
  super(e), this.errorType = "FailedToNegotiateWithServerError", this.__proto__ = t;
8157
8155
  }
8158
8156
  }
8159
- class Cp extends Error {
8157
+ class _p extends Error {
8160
8158
  /** Constructs a new instance of {@link @microsoft/signalr.AggregateErrors}.
8161
8159
  *
8162
8160
  * @param {string} message A descriptive error message.
@@ -8217,7 +8215,7 @@ class Ot {
8217
8215
  }
8218
8216
  }
8219
8217
  Ot.instance = new Ot();
8220
- const yp = "8.0.7";
8218
+ const Cp = "8.0.7";
8221
8219
  class xe {
8222
8220
  static isRequired(e, t) {
8223
8221
  if (e == null)
@@ -8253,9 +8251,9 @@ class fe {
8253
8251
  }
8254
8252
  function Mt(r, e) {
8255
8253
  let t = "";
8256
- return ct(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${bp(r)}'`)) : typeof r == "string" && (t = `String data of length ${r.length}`, e && (t += `. Content: '${r}'`)), t;
8254
+ return ct(r) ? (t = `Binary data of length ${r.byteLength}`, e && (t += `. Content: '${yp(r)}'`)) : typeof r == "string" && (t = `String data of length ${r.length}`, e && (t += `. Content: '${r}'`)), t;
8257
8255
  }
8258
- function bp(r) {
8256
+ function yp(r) {
8259
8257
  const e = new Uint8Array(r);
8260
8258
  let t = "";
8261
8259
  return e.forEach((n) => {
@@ -8279,10 +8277,10 @@ async function R0(r, e, t, n, a, s) {
8279
8277
  });
8280
8278
  r.log(I.Trace, `(${e} transport) request complete. Response status: ${c.statusCode}.`);
8281
8279
  }
8282
- function wp(r) {
8280
+ function bp(r) {
8283
8281
  return r === void 0 ? new tr(I.Information) : r === null ? Ot.instance : r.log !== void 0 ? r : new tr(r);
8284
8282
  }
8285
- class Ep {
8283
+ class wp {
8286
8284
  constructor(e, t) {
8287
8285
  this._subject = e, this._observer = t;
8288
8286
  }
@@ -8319,14 +8317,14 @@ class tr {
8319
8317
  }
8320
8318
  function bt() {
8321
8319
  let r = "X-SignalR-User-Agent";
8322
- return fe.isNode && (r = "User-Agent"), [r, Ap(yp, Bp(), Dp(), kp())];
8320
+ return fe.isNode && (r = "User-Agent"), [r, Ep(Cp, Ap(), kp(), Bp())];
8323
8321
  }
8324
- function Ap(r, e, t, n) {
8322
+ function Ep(r, e, t, n) {
8325
8323
  let a = "Microsoft SignalR/";
8326
8324
  const s = r.split(".");
8327
8325
  return a += `${s[0]}.${s[1]}`, a += ` (${r}; `, e && e !== "" ? a += `${e}; ` : a += "Unknown OS; ", a += `${t}`, n ? a += `; ${n}` : a += "; Unknown Runtime Version", a += ")", a;
8328
8326
  }
8329
- function Bp() {
8327
+ function Ap() {
8330
8328
  if (fe.isNode)
8331
8329
  switch (process.platform) {
8332
8330
  case "win32":
@@ -8341,17 +8339,17 @@ function Bp() {
8341
8339
  else
8342
8340
  return "";
8343
8341
  }
8344
- function kp() {
8342
+ function Bp() {
8345
8343
  if (fe.isNode)
8346
8344
  return process.versions.node;
8347
8345
  }
8348
- function Dp() {
8346
+ function kp() {
8349
8347
  return fe.isNode ? "NodeJS" : "Browser";
8350
8348
  }
8351
8349
  function Zr(r) {
8352
8350
  return r.stack ? r.stack : r.message ? r.message : `${r}`;
8353
8351
  }
8354
- function Sp() {
8352
+ function Dp() {
8355
8353
  if (typeof globalThis < "u")
8356
8354
  return globalThis;
8357
8355
  if (typeof self < "u")
@@ -8362,13 +8360,13 @@ function Sp() {
8362
8360
  return global;
8363
8361
  throw new Error("could not find global");
8364
8362
  }
8365
- class Fp extends ur {
8363
+ class Sp extends ur {
8366
8364
  constructor(e) {
8367
8365
  if (super(), this._logger = e, typeof fetch > "u" || fe.isNode) {
8368
8366
  const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
8369
8367
  this._jar = new (t("tough-cookie")).CookieJar(), typeof fetch > "u" ? this._fetchType = t("node-fetch") : this._fetchType = fetch, this._fetchType = t("fetch-cookie")(this._fetchType, this._jar);
8370
8368
  } else
8371
- this._fetchType = fetch.bind(Sp());
8369
+ this._fetchType = fetch.bind(Dp());
8372
8370
  if (typeof AbortController > "u") {
8373
8371
  const t = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
8374
8372
  this._abortControllerType = t("abort-controller");
@@ -8447,7 +8445,7 @@ function va(r, e) {
8447
8445
  }
8448
8446
  return t;
8449
8447
  }
8450
- class Ip extends ur {
8448
+ class Fp extends ur {
8451
8449
  constructor(e) {
8452
8450
  super(), this._logger = e;
8453
8451
  }
@@ -8471,13 +8469,13 @@ class Ip extends ur {
8471
8469
  }) : Promise.reject(new Error("No url defined.")) : Promise.reject(new Error("No method defined."));
8472
8470
  }
8473
8471
  }
8474
- class Tp extends ur {
8472
+ class Ip extends ur {
8475
8473
  /** Creates a new instance of the {@link @microsoft/signalr.DefaultHttpClient}, using the provided {@link @microsoft/signalr.ILogger} to log messages. */
8476
8474
  constructor(e) {
8477
8475
  if (super(), typeof fetch < "u" || fe.isNode)
8478
- this._httpClient = new Fp(e);
8476
+ this._httpClient = new Sp(e);
8479
8477
  else if (typeof XMLHttpRequest < "u")
8480
- this._httpClient = new Ip(e);
8478
+ this._httpClient = new Fp(e);
8481
8479
  else
8482
8480
  throw new Error("No usable HttpClient found.");
8483
8481
  }
@@ -8502,7 +8500,7 @@ class Te {
8502
8500
  }
8503
8501
  Te.RecordSeparatorCode = 30;
8504
8502
  Te.RecordSeparator = String.fromCharCode(Te.RecordSeparatorCode);
8505
- class Pp {
8503
+ class Tp {
8506
8504
  // Handshake request is always JSON
8507
8505
  writeHandshakeRequest(e) {
8508
8506
  return Te.write(JSON.stringify(e));
@@ -8528,11 +8526,11 @@ class Pp {
8528
8526
  return [n, s];
8529
8527
  }
8530
8528
  }
8531
- var J;
8529
+ var Y;
8532
8530
  (function(r) {
8533
8531
  r[r.Invocation = 1] = "Invocation", r[r.StreamItem = 2] = "StreamItem", r[r.Completion = 3] = "Completion", r[r.StreamInvocation = 4] = "StreamInvocation", r[r.CancelInvocation = 5] = "CancelInvocation", r[r.Ping = 6] = "Ping", r[r.Close = 7] = "Close", r[r.Ack = 8] = "Ack", r[r.Sequence = 9] = "Sequence";
8534
- })(J || (J = {}));
8535
- class Rp {
8532
+ })(Y || (Y = {}));
8533
+ class Pp {
8536
8534
  constructor() {
8537
8535
  this.observers = [];
8538
8536
  }
@@ -8549,10 +8547,10 @@ class Rp {
8549
8547
  e.complete && e.complete();
8550
8548
  }
8551
8549
  subscribe(e) {
8552
- return this.observers.push(e), new Ep(this, e);
8550
+ return this.observers.push(e), new wp(this, e);
8553
8551
  }
8554
8552
  }
8555
- class $p {
8553
+ class Rp {
8556
8554
  constructor(e, t, n) {
8557
8555
  this._bufferSize = 1e5, this._messages = [], this._totalMessageCount = 0, this._waitForSequenceMessage = !1, this._nextReceivingSequenceId = 1, this._latestReceivedSequenceId = 0, this._bufferedByteCount = 0, this._reconnectInProgress = !1, this._protocol = e, this._connection = t, this._bufferSize = n;
8558
8556
  }
@@ -8566,7 +8564,7 @@ class $p {
8566
8564
  };
8567
8565
  ct(t) ? this._bufferedByteCount += t.byteLength : this._bufferedByteCount += t.length, this._bufferedByteCount >= this._bufferSize && (n = new Promise((i, l) => {
8568
8566
  a = i, s = l;
8569
- })), this._messages.push(new zp(t, this._totalMessageCount, a, s));
8567
+ })), this._messages.push(new $p(t, this._totalMessageCount, a, s));
8570
8568
  }
8571
8569
  try {
8572
8570
  this._reconnectInProgress || await this._connection.send(t);
@@ -8590,7 +8588,7 @@ class $p {
8590
8588
  }
8591
8589
  _shouldProcessMessage(e) {
8592
8590
  if (this._waitForSequenceMessage)
8593
- return e.type !== J.Sequence ? !1 : (this._waitForSequenceMessage = !1, !0);
8591
+ return e.type !== Y.Sequence ? !1 : (this._waitForSequenceMessage = !1, !0);
8594
8592
  if (!this._isInvocationMessage(e))
8595
8593
  return !0;
8596
8594
  const t = this._nextReceivingSequenceId;
@@ -8608,7 +8606,7 @@ class $p {
8608
8606
  }
8609
8607
  async _resend() {
8610
8608
  const e = this._messages.length !== 0 ? this._messages[0]._id : this._totalMessageCount + 1;
8611
- await this._connection.send(this._protocol.writeMessage({ type: J.Sequence, sequenceId: e }));
8609
+ await this._connection.send(this._protocol.writeMessage({ type: Y.Sequence, sequenceId: e }));
8612
8610
  const t = this._messages;
8613
8611
  for (const n of t)
8614
8612
  await this._connection.send(n._message);
@@ -8621,35 +8619,35 @@ class $p {
8621
8619
  }
8622
8620
  _isInvocationMessage(e) {
8623
8621
  switch (e.type) {
8624
- case J.Invocation:
8625
- case J.StreamItem:
8626
- case J.Completion:
8627
- case J.StreamInvocation:
8628
- case J.CancelInvocation:
8622
+ case Y.Invocation:
8623
+ case Y.StreamItem:
8624
+ case Y.Completion:
8625
+ case Y.StreamInvocation:
8626
+ case Y.CancelInvocation:
8629
8627
  return !0;
8630
- case J.Close:
8631
- case J.Sequence:
8632
- case J.Ping:
8633
- case J.Ack:
8628
+ case Y.Close:
8629
+ case Y.Sequence:
8630
+ case Y.Ping:
8631
+ case Y.Ack:
8634
8632
  return !1;
8635
8633
  }
8636
8634
  }
8637
8635
  _ackTimer() {
8638
8636
  this._ackTimerHandle === void 0 && (this._ackTimerHandle = setTimeout(async () => {
8639
8637
  try {
8640
- this._reconnectInProgress || await this._connection.send(this._protocol.writeMessage({ type: J.Ack, sequenceId: this._latestReceivedSequenceId }));
8638
+ this._reconnectInProgress || await this._connection.send(this._protocol.writeMessage({ type: Y.Ack, sequenceId: this._latestReceivedSequenceId }));
8641
8639
  } catch {
8642
8640
  }
8643
8641
  clearTimeout(this._ackTimerHandle), this._ackTimerHandle = void 0;
8644
8642
  }, 1e3));
8645
8643
  }
8646
8644
  }
8647
- class zp {
8645
+ class $p {
8648
8646
  constructor(e, t, n, a) {
8649
8647
  this._message = e, this._id = t, this._resolver = n, this._rejector = a;
8650
8648
  }
8651
8649
  }
8652
- const Op = 30 * 1e3, Mp = 15 * 1e3, Np = 1e5;
8650
+ const zp = 30 * 1e3, Op = 15 * 1e3, Mp = 1e5;
8653
8651
  var ue;
8654
8652
  (function(r) {
8655
8653
  r.Disconnected = "Disconnected", r.Connecting = "Connecting", r.Connected = "Connected", r.Disconnecting = "Disconnecting", r.Reconnecting = "Reconnecting";
@@ -8666,7 +8664,7 @@ class Rn {
8666
8664
  constructor(e, t, n, a, s, i, l) {
8667
8665
  this._nextKeepAlive = 0, this._freezeEventListener = () => {
8668
8666
  this._logger.log(I.Warning, "The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://learn.microsoft.com/aspnet/core/signalr/javascript-client#bsleep");
8669
- }, xe.isRequired(e, "connection"), xe.isRequired(t, "logger"), xe.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = s ?? Op, this.keepAliveIntervalInMilliseconds = i ?? Mp, this._statefulReconnectBufferSize = l ?? Np, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = a, this._handshakeProtocol = new Pp(), this.connection.onreceive = (u) => this._processIncomingData(u), this.connection.onclose = (u) => this._connectionClosed(u), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = ue.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: J.Ping });
8667
+ }, xe.isRequired(e, "connection"), xe.isRequired(t, "logger"), xe.isRequired(n, "protocol"), this.serverTimeoutInMilliseconds = s ?? zp, this.keepAliveIntervalInMilliseconds = i ?? Op, this._statefulReconnectBufferSize = l ?? Mp, this._logger = t, this._protocol = n, this.connection = e, this._reconnectPolicy = a, this._handshakeProtocol = new Tp(), this.connection.onreceive = (u) => this._processIncomingData(u), this.connection.onclose = (u) => this._connectionClosed(u), this._callbacks = {}, this._methods = {}, this._closedCallbacks = [], this._reconnectingCallbacks = [], this._reconnectedCallbacks = [], this._invocationId = 0, this._receivedHandshakeResponse = !1, this._connectionState = ue.Disconnected, this._connectionStarted = !1, this._cachedPingMessage = this._protocol.writeMessage({ type: Y.Ping });
8670
8668
  }
8671
8669
  /** Indicates the state of the {@link HubConnection} to the server. */
8672
8670
  get state() {
@@ -8726,7 +8724,7 @@ class Rn {
8726
8724
  };
8727
8725
  if (this._logger.log(I.Debug, "Sending handshake request."), await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(n)), this._logger.log(I.Information, `Using HubProtocol '${this._protocol.name}'.`), this._cleanupTimeout(), this._resetTimeoutPeriod(), this._resetKeepAliveInterval(), await e, this._stopDuringStartError)
8728
8726
  throw this._stopDuringStartError;
8729
- (this.connection.features.reconnect || !1) && (this._messageBuffer = new $p(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
8727
+ (this.connection.features.reconnect || !1) && (this._messageBuffer = new Rp(this._protocol, this.connection, this._statefulReconnectBufferSize), this.connection.features.disconnected = this._messageBuffer._disconnected.bind(this._messageBuffer), this.connection.features.resend = () => {
8730
8728
  if (this._messageBuffer)
8731
8729
  return this._messageBuffer._resend();
8732
8730
  }), this.connection.features.inherentKeepAlive || await this._sendMessage(this._cachedPingMessage);
@@ -8770,7 +8768,7 @@ class Rn {
8770
8768
  stream(e, ...t) {
8771
8769
  const [n, a] = this._replaceStreamingParams(t), s = this._createStreamInvocation(e, t, a);
8772
8770
  let i;
8773
- const l = new Rp();
8771
+ const l = new Pp();
8774
8772
  return l.cancelCallback = () => {
8775
8773
  const u = this._createCancelInvocation(s.invocationId);
8776
8774
  return delete this._callbacks[s.invocationId], i.then(() => this._sendWithProtocol(u));
@@ -8778,7 +8776,7 @@ class Rn {
8778
8776
  if (o) {
8779
8777
  l.error(o);
8780
8778
  return;
8781
- } else u && (u.type === J.Completion ? u.error ? l.error(new Error(u.error)) : l.complete() : l.next(u.item));
8779
+ } else u && (u.type === Y.Completion ? u.error ? l.error(new Error(u.error)) : l.complete() : l.next(u.item));
8782
8780
  }, i = this._sendWithProtocol(s).catch((u) => {
8783
8781
  l.error(u), delete this._callbacks[s.invocationId];
8784
8782
  }), this._launchStreams(n, i), l;
@@ -8824,7 +8822,7 @@ class Rn {
8824
8822
  if (_) {
8825
8823
  u(_);
8826
8824
  return;
8827
- } else c && (c.type === J.Completion ? c.error ? u(new Error(c.error)) : l(c.result) : u(new Error(`Unexpected message type: ${c.type}`)));
8825
+ } else c && (c.type === Y.Completion ? c.error ? u(new Error(c.error)) : l(c.result) : u(new Error(`Unexpected message type: ${c.type}`)));
8828
8826
  };
8829
8827
  const o = this._sendWithProtocol(s).catch((c) => {
8830
8828
  u(c), delete this._callbacks[s.invocationId];
@@ -8874,16 +8872,16 @@ class Rn {
8874
8872
  for (const n of t)
8875
8873
  if (!(this._messageBuffer && !this._messageBuffer._shouldProcessMessage(n)))
8876
8874
  switch (n.type) {
8877
- case J.Invocation:
8875
+ case Y.Invocation:
8878
8876
  this._invokeClientMethod(n).catch((a) => {
8879
8877
  this._logger.log(I.Error, `Invoke client method threw error: ${Zr(a)}`);
8880
8878
  });
8881
8879
  break;
8882
- case J.StreamItem:
8883
- case J.Completion: {
8880
+ case Y.StreamItem:
8881
+ case Y.Completion: {
8884
8882
  const a = this._callbacks[n.invocationId];
8885
8883
  if (a) {
8886
- n.type === J.Completion && delete this._callbacks[n.invocationId];
8884
+ n.type === Y.Completion && delete this._callbacks[n.invocationId];
8887
8885
  try {
8888
8886
  a(n);
8889
8887
  } catch (s) {
@@ -8892,18 +8890,18 @@ class Rn {
8892
8890
  }
8893
8891
  break;
8894
8892
  }
8895
- case J.Ping:
8893
+ case Y.Ping:
8896
8894
  break;
8897
- case J.Close: {
8895
+ case Y.Close: {
8898
8896
  this._logger.log(I.Information, "Close message received from server.");
8899
8897
  const a = n.error ? new Error("Server returned an error on close: " + n.error) : void 0;
8900
8898
  n.allowReconnect === !0 ? this.connection.stop(a) : this._stopPromise = this._stopInternal(a);
8901
8899
  break;
8902
8900
  }
8903
- case J.Ack:
8901
+ case Y.Ack:
8904
8902
  this._messageBuffer && this._messageBuffer._ack(n);
8905
8903
  break;
8906
- case J.Sequence:
8904
+ case Y.Sequence:
8907
8905
  this._messageBuffer && this._messageBuffer._resetSequence(n);
8908
8906
  break;
8909
8907
  default:
@@ -9059,11 +9057,11 @@ class Rn {
9059
9057
  arguments: t,
9060
9058
  streamIds: a,
9061
9059
  target: e,
9062
- type: J.Invocation
9060
+ type: Y.Invocation
9063
9061
  } : {
9064
9062
  arguments: t,
9065
9063
  target: e,
9066
- type: J.Invocation
9064
+ type: Y.Invocation
9067
9065
  };
9068
9066
  {
9069
9067
  const s = this._invocationId;
@@ -9072,12 +9070,12 @@ class Rn {
9072
9070
  invocationId: s.toString(),
9073
9071
  streamIds: a,
9074
9072
  target: e,
9075
- type: J.Invocation
9073
+ type: Y.Invocation
9076
9074
  } : {
9077
9075
  arguments: t,
9078
9076
  invocationId: s.toString(),
9079
9077
  target: e,
9080
- type: J.Invocation
9078
+ type: Y.Invocation
9081
9079
  };
9082
9080
  }
9083
9081
  }
@@ -9120,46 +9118,46 @@ class Rn {
9120
9118
  invocationId: a.toString(),
9121
9119
  streamIds: n,
9122
9120
  target: e,
9123
- type: J.StreamInvocation
9121
+ type: Y.StreamInvocation
9124
9122
  } : {
9125
9123
  arguments: t,
9126
9124
  invocationId: a.toString(),
9127
9125
  target: e,
9128
- type: J.StreamInvocation
9126
+ type: Y.StreamInvocation
9129
9127
  };
9130
9128
  }
9131
9129
  _createCancelInvocation(e) {
9132
9130
  return {
9133
9131
  invocationId: e,
9134
- type: J.CancelInvocation
9132
+ type: Y.CancelInvocation
9135
9133
  };
9136
9134
  }
9137
9135
  _createStreamItemMessage(e, t) {
9138
9136
  return {
9139
9137
  invocationId: e,
9140
9138
  item: t,
9141
- type: J.StreamItem
9139
+ type: Y.StreamItem
9142
9140
  };
9143
9141
  }
9144
9142
  _createCompletionMessage(e, t, n) {
9145
9143
  return t ? {
9146
9144
  error: t,
9147
9145
  invocationId: e,
9148
- type: J.Completion
9146
+ type: Y.Completion
9149
9147
  } : {
9150
9148
  invocationId: e,
9151
9149
  result: n,
9152
- type: J.Completion
9150
+ type: Y.Completion
9153
9151
  };
9154
9152
  }
9155
9153
  _createCloseMessage() {
9156
- return { type: J.Close };
9154
+ return { type: Y.Close };
9157
9155
  }
9158
9156
  }
9159
- const Lp = [0, 2e3, 1e4, 3e4, null];
9157
+ const Np = [0, 2e3, 1e4, 3e4, null];
9160
9158
  class ga {
9161
9159
  constructor(e) {
9162
- this._retryDelays = e !== void 0 ? [...e, null] : Lp;
9160
+ this._retryDelays = e !== void 0 ? [...e, null] : Np;
9163
9161
  }
9164
9162
  nextRetryDelayInMilliseconds(e) {
9165
9163
  return this._retryDelays[e.previousRetryCount];
@@ -9169,7 +9167,7 @@ class st {
9169
9167
  }
9170
9168
  st.Authorization = "Authorization";
9171
9169
  st.Cookie = "Cookie";
9172
- class Hp extends ur {
9170
+ class Lp extends ur {
9173
9171
  constructor(e, t) {
9174
9172
  super(), this._innerClient = e, this._accessTokenFactory = t;
9175
9173
  }
@@ -9194,7 +9192,7 @@ var ye;
9194
9192
  (function(r) {
9195
9193
  r[r.Text = 1] = "Text", r[r.Binary = 2] = "Binary";
9196
9194
  })(ye || (ye = {}));
9197
- let Up = class {
9195
+ let Hp = class {
9198
9196
  constructor() {
9199
9197
  this._isAborted = !1, this.onabort = null;
9200
9198
  }
@@ -9214,7 +9212,7 @@ class ma {
9214
9212
  return this._pollAbort.aborted;
9215
9213
  }
9216
9214
  constructor(e, t, n) {
9217
- this._httpClient = e, this._logger = t, this._pollAbort = new Up(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
9215
+ this._httpClient = e, this._logger = t, this._pollAbort = new Hp(), this._options = n, this._running = !1, this.onreceive = null, this.onclose = null;
9218
9216
  }
9219
9217
  async connect(e, t) {
9220
9218
  if (xe.isRequired(e, "url"), xe.isRequired(t, "transferFormat"), xe.isIn(t, ye, "transferFormat"), this._url = e, this._logger.log(I.Trace, "(LongPolling transport) Connecting."), t === ye.Binary && typeof XMLHttpRequest < "u" && typeof new XMLHttpRequest().responseType != "string")
@@ -9278,7 +9276,7 @@ class ma {
9278
9276
  }
9279
9277
  }
9280
9278
  }
9281
- class jp {
9279
+ class Up {
9282
9280
  constructor(e, t, n, a) {
9283
9281
  this._httpClient = e, this._accessToken = t, this._logger = n, this._options = a, this.onreceive = null, this.onclose = null;
9284
9282
  }
@@ -9328,7 +9326,7 @@ class jp {
9328
9326
  this._eventSource && (this._eventSource.close(), this._eventSource = void 0, this.onclose && this.onclose(e));
9329
9327
  }
9330
9328
  }
9331
- class qp {
9329
+ class jp {
9332
9330
  constructor(e, t, n, a, s, i) {
9333
9331
  this._logger = n, this._accessTokenFactory = t, this._logMessageContent = a, this._webSocketConstructor = s, this._httpClient = e, this.onreceive = null, this.onclose = null, this._headers = i;
9334
9332
  }
@@ -9387,10 +9385,10 @@ class qp {
9387
9385
  }
9388
9386
  }
9389
9387
  const _a = 100;
9390
- class Wp {
9388
+ class qp {
9391
9389
  constructor(e, t = {}) {
9392
9390
  if (this._stopPromiseResolver = () => {
9393
- }, this.features = {}, this._negotiateVersion = 1, xe.isRequired(e, "url"), this._logger = wp(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
9391
+ }, this.features = {}, this._negotiateVersion = 1, xe.isRequired(e, "url"), this._logger = bp(t.logger), this.baseUrl = this._resolveUrl(e), t = t || {}, t.logMessageContent = t.logMessageContent === void 0 ? !1 : t.logMessageContent, typeof t.withCredentials == "boolean" || t.withCredentials === void 0)
9394
9392
  t.withCredentials = t.withCredentials === void 0 ? !0 : t.withCredentials;
9395
9393
  else
9396
9394
  throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");
@@ -9400,7 +9398,7 @@ class Wp {
9400
9398
  const s = typeof __webpack_require__ == "function" ? __non_webpack_require__ : require;
9401
9399
  n = s("ws"), a = s("eventsource");
9402
9400
  }
9403
- !fe.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : fe.isNode && !t.WebSocket && n && (t.WebSocket = n), !fe.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : fe.isNode && !t.EventSource && typeof a < "u" && (t.EventSource = a), this._httpClient = new Hp(t.httpClient || new Tp(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
9401
+ !fe.isNode && typeof WebSocket < "u" && !t.WebSocket ? t.WebSocket = WebSocket : fe.isNode && !t.WebSocket && n && (t.WebSocket = n), !fe.isNode && typeof EventSource < "u" && !t.EventSource ? t.EventSource = EventSource : fe.isNode && !t.EventSource && typeof a < "u" && (t.EventSource = a), this._httpClient = new Lp(t.httpClient || new Ip(this._logger), t.accessTokenFactory), this._connectionState = "Disconnected", this._connectionStarted = !1, this._options = t, this.onreceive = null, this.onclose = null;
9404
9402
  }
9405
9403
  async start(e) {
9406
9404
  if (e = e || ye.Binary, xe.isIn(e, ye, "transferFormat"), this._logger.log(I.Debug, `Starting connection with transfer format '${ye[e]}'.`), this._connectionState !== "Disconnected")
@@ -9524,25 +9522,25 @@ class Wp {
9524
9522
  await this._startTransport(s, a), this.connectionId = u.connectionId;
9525
9523
  return;
9526
9524
  } catch (_) {
9527
- if (this._logger.log(I.Error, `Failed to start the transport '${o.transport}': ${_}`), u = void 0, i.push(new _p(`${o.transport} failed: ${_}`, he[o.transport])), this._connectionState !== "Connecting") {
9525
+ if (this._logger.log(I.Error, `Failed to start the transport '${o.transport}': ${_}`), u = void 0, i.push(new mp(`${o.transport} failed: ${_}`, he[o.transport])), this._connectionState !== "Connecting") {
9528
9526
  const d = "Failed to select transport before stop() was called.";
9529
9527
  return this._logger.log(I.Debug, d), Promise.reject(new Oe(d));
9530
9528
  }
9531
9529
  }
9532
9530
  }
9533
9531
  }
9534
- return i.length > 0 ? Promise.reject(new Cp(`Unable to connect to the server with any of the available transports. ${i.join(" ")}`, i)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
9532
+ return i.length > 0 ? Promise.reject(new _p(`Unable to connect to the server with any of the available transports. ${i.join(" ")}`, i)) : Promise.reject(new Error("None of the transports supported by the client are supported by the server."));
9535
9533
  }
9536
9534
  _constructTransport(e) {
9537
9535
  switch (e) {
9538
9536
  case he.WebSockets:
9539
9537
  if (!this._options.WebSocket)
9540
9538
  throw new Error("'WebSocket' is not supported in your environment.");
9541
- return new qp(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
9539
+ return new jp(this._httpClient, this._accessTokenFactory, this._logger, this._options.logMessageContent, this._options.WebSocket, this._options.headers || {});
9542
9540
  case he.ServerSentEvents:
9543
9541
  if (!this._options.EventSource)
9544
9542
  throw new Error("'EventSource' is not supported in your environment.");
9545
- return new jp(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
9543
+ return new Up(this._httpClient, this._httpClient._accessToken, this._logger, this._options);
9546
9544
  case he.LongPolling:
9547
9545
  return new ma(this._httpClient, this._logger, this._options);
9548
9546
  default:
@@ -9569,10 +9567,10 @@ class Wp {
9569
9567
  const s = he[e.transport];
9570
9568
  if (s == null)
9571
9569
  return this._logger.log(I.Debug, `Skipping transport '${e.transport}' because it is not supported by this client.`), new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);
9572
- if (Vp(t, s))
9570
+ if (Wp(t, s))
9573
9571
  if (e.transferFormats.map((l) => ye[l]).indexOf(n) >= 0) {
9574
9572
  if (s === he.WebSockets && !this._options.WebSocket || s === he.ServerSentEvents && !this._options.EventSource)
9575
- return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it is not supported in your environment.'`), new gp(`'${he[s]}' is not supported in your environment.`, s);
9573
+ return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it is not supported in your environment.'`), new vp(`'${he[s]}' is not supported in your environment.`, s);
9576
9574
  this._logger.log(I.Debug, `Selecting transport '${he[s]}'.`);
9577
9575
  try {
9578
9576
  return this.features.reconnect = s === he.WebSockets ? a : void 0, this._constructTransport(s);
@@ -9582,7 +9580,7 @@ class Wp {
9582
9580
  } else
9583
9581
  return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it does not support the requested transfer format '${ye[n]}'.`), new Error(`'${he[s]}' does not support ${ye[n]}.`);
9584
9582
  else
9585
- return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it was disabled by the client.`), new mp(`'${he[s]}' is disabled by the client.`, s);
9583
+ return this._logger.log(I.Debug, `Skipping transport '${he[s]}' because it was disabled by the client.`), new gp(`'${he[s]}' is disabled by the client.`, s);
9586
9584
  }
9587
9585
  _isITransport(e) {
9588
9586
  return e && typeof e == "object" && "connect" in e;
@@ -9620,7 +9618,7 @@ class Wp {
9620
9618
  return n.has("negotiateVersion") || n.append("negotiateVersion", this._negotiateVersion.toString()), n.has("useStatefulReconnect") ? n.get("useStatefulReconnect") === "true" && (this._options._useStatefulReconnect = !0) : this._options._useStatefulReconnect === !0 && n.append("useStatefulReconnect", "true"), t.search = n.toString(), t.toString();
9621
9619
  }
9622
9620
  }
9623
- function Vp(r, e) {
9621
+ function Wp(r, e) {
9624
9622
  return !r || (e & r) !== 0;
9625
9623
  }
9626
9624
  class $n {
@@ -9675,10 +9673,10 @@ class Kt {
9675
9673
  this._rejecter(e);
9676
9674
  }
9677
9675
  }
9678
- const Kp = "json";
9679
- class Gp {
9676
+ const Vp = "json";
9677
+ class Kp {
9680
9678
  constructor() {
9681
- this.name = Kp, this.version = 2, this.transferFormat = ye.Text;
9679
+ this.name = Vp, this.version = 2, this.transferFormat = ye.Text;
9682
9680
  }
9683
9681
  /** Creates an array of {@link @microsoft/signalr.HubMessage} objects from the specified serialized representation.
9684
9682
  *
@@ -9697,23 +9695,23 @@ class Gp {
9697
9695
  if (typeof i.type != "number")
9698
9696
  throw new Error("Invalid payload.");
9699
9697
  switch (i.type) {
9700
- case J.Invocation:
9698
+ case Y.Invocation:
9701
9699
  this._isInvocationMessage(i);
9702
9700
  break;
9703
- case J.StreamItem:
9701
+ case Y.StreamItem:
9704
9702
  this._isStreamItemMessage(i);
9705
9703
  break;
9706
- case J.Completion:
9704
+ case Y.Completion:
9707
9705
  this._isCompletionMessage(i);
9708
9706
  break;
9709
- case J.Ping:
9707
+ case Y.Ping:
9710
9708
  break;
9711
- case J.Close:
9709
+ case Y.Close:
9712
9710
  break;
9713
- case J.Ack:
9711
+ case Y.Ack:
9714
9712
  this._isAckMessage(i);
9715
9713
  break;
9716
- case J.Sequence:
9714
+ case Y.Sequence:
9717
9715
  this._isSequenceMessage(i);
9718
9716
  break;
9719
9717
  default:
@@ -9757,7 +9755,7 @@ class Gp {
9757
9755
  throw new Error(t);
9758
9756
  }
9759
9757
  }
9760
- const Xp = {
9758
+ const Gp = {
9761
9759
  trace: I.Trace,
9762
9760
  debug: I.Debug,
9763
9761
  info: I.Information,
@@ -9768,18 +9766,18 @@ const Xp = {
9768
9766
  critical: I.Critical,
9769
9767
  none: I.None
9770
9768
  };
9771
- function Qp(r) {
9772
- const e = Xp[r.toLowerCase()];
9769
+ function Xp(r) {
9770
+ const e = Gp[r.toLowerCase()];
9773
9771
  if (typeof e < "u")
9774
9772
  return e;
9775
9773
  throw new Error(`Unknown log level: ${r}`);
9776
9774
  }
9777
- class Zp {
9775
+ class Qp {
9778
9776
  configureLogging(e) {
9779
- if (xe.isRequired(e, "logging"), Jp(e))
9777
+ if (xe.isRequired(e, "logging"), Zp(e))
9780
9778
  this.logger = e;
9781
9779
  else if (typeof e == "string") {
9782
- const t = Qp(e);
9780
+ const t = Xp(e);
9783
9781
  this.logger = new tr(t);
9784
9782
  } else
9785
9783
  this.logger = new tr(e);
@@ -9832,16 +9830,16 @@ class Zp {
9832
9830
  const e = this.httpConnectionOptions || {};
9833
9831
  if (e.logger === void 0 && (e.logger = this.logger), !this.url)
9834
9832
  throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");
9835
- const t = new Wp(this.url, e);
9836
- return Rn.create(t, this.logger || Ot.instance, this.protocol || new Gp(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
9833
+ const t = new qp(this.url, e);
9834
+ return Rn.create(t, this.logger || Ot.instance, this.protocol || new Kp(), this.reconnectPolicy, this._serverTimeoutInMilliseconds, this._keepAliveIntervalInMilliseconds, this._statefulReconnectBufferSize);
9837
9835
  }
9838
9836
  }
9839
- function Jp(r) {
9837
+ function Zp(r) {
9840
9838
  return r.log !== void 0;
9841
9839
  }
9842
9840
  let { baseURL: Yp } = wt();
9843
- const eh = () => {
9844
- const r = new Zp().withUrl(`${Yp}/api/tool/event-bus`, {
9841
+ const Jp = () => {
9842
+ const r = new Qp().withUrl(`${Yp}/api/tool/event-bus`, {
9845
9843
  skipNegotiation: !0,
9846
9844
  transport: he.WebSockets
9847
9845
  }).withAutomaticReconnect().build();
@@ -9850,10 +9848,10 @@ const eh = () => {
9850
9848
  }), r.onclose((e) => {
9851
9849
  }), r.onreconnected(() => {
9852
9850
  }), r;
9853
- }, dr = "v1", th = Ye(`/api/graphics-engine/component/${dr}`, (r) => (r.customErrorMessage = () => "", r)), rh = Ye(`/api/portal/manager/${dr}`, (r) => (r.customErrorMessage = () => "", r)), nh = Ye(`/api/speech-base/speech/${dr}`, (r) => (r.customErrorMessage = () => "", r)), Ca = th.get("/component/client/heartbeat"), oh = rh.get("/basics/by-alias");
9854
- nh.post("/control/callBack");
9855
- const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.get("/permissionset/application"), ih = xn.get("/permissionset/user-portal-menu"), ya = async (r, e) => {
9856
- const [t, n] = await ih().run({
9851
+ }, dr = "v1", eh = Je(`/api/graphics-engine/component/${dr}`, (r) => (r.customErrorMessage = () => "", r)), th = Je(`/api/portal/manager/${dr}`, (r) => (r.customErrorMessage = () => "", r)), rh = Je(`/api/speech-base/speech/${dr}`, (r) => (r.customErrorMessage = () => "", r)), Ca = eh.get("/component/client/heartbeat"), nh = th.get("/basics/by-alias");
9852
+ rh.post("/control/callBack");
9853
+ const oh = Je(`/api/tool/event-bus/${dr}/`), Yr = oh.post("/publish"), ah = xn.get("/permissionset/application"), sh = xn.get("/permissionset/user-portal-menu"), ya = async (r, e) => {
9854
+ const [t, n] = await sh().run({
9857
9855
  code: r,
9858
9856
  showBtn: !1,
9859
9857
  userType: 1
@@ -9861,7 +9859,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
9861
9859
  if (t || !n || !n.length) return null;
9862
9860
  const a = Re(n).find((s) => s.code === e);
9863
9861
  return a || null;
9864
- }, ch = () => {
9862
+ }, ih = () => {
9865
9863
  const r = fn(), { entryApp: e } = Zt.hooks.useEntryApp(), { entryMenu: t } = Zt.hooks.useEntryMenu();
9866
9864
  let n = null;
9867
9865
  return lt(async () => {
@@ -9921,7 +9919,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
9921
9919
  if (W)
9922
9920
  e({ microApp: W });
9923
9921
  else {
9924
- const [q, U] = await sh().run({ menuCode: H });
9922
+ const [q, U] = await ah().run({ menuCode: H });
9925
9923
  if (q) return;
9926
9924
  const j = C.find((G) => G.code === U);
9927
9925
  if (j) {
@@ -9948,16 +9946,16 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
9948
9946
  setTimeout(async () => {
9949
9947
  var v, C;
9950
9948
  if (u.value) {
9951
- const [w, A] = await oh().run({}, { params: { aliasName: f.actionValue } });
9952
- w ? await Jr().run({
9949
+ const [w, A] = await nh().run({}, { params: { aliasName: f.actionValue } });
9950
+ w ? await Yr().run({
9953
9951
  uniqueId: f.uniqueId,
9954
9952
  status: 0,
9955
9953
  errorMsg: "未找到" + f.actionValue
9956
- }) : A.length ? (A.length > 1 ? l(A) : l((v = A[0]) == null ? void 0 : v.code), await Jr().run({
9954
+ }) : A.length ? (A.length > 1 ? l(A) : l((v = A[0]) == null ? void 0 : v.code), await Yr().run({
9957
9955
  uniqueId: f.uniqueId,
9958
9956
  status: 1,
9959
9957
  targetName: (C = A[0]) == null ? void 0 : C.name
9960
- })) : await Jr().run({
9958
+ })) : await Yr().run({
9961
9959
  uniqueId: f.uniqueId,
9962
9960
  status: 0,
9963
9961
  errorMsg: "未找到" + f.actionValue
@@ -9966,8 +9964,8 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
9966
9964
  u.value = !0;
9967
9965
  }, 2e3);
9968
9966
  }, c = (f) => {
9969
- const v = Je(), C = JSON.parse(atob(v.split(".")[1])).sub;
9970
- eh().on(`${f}:${C}`, async function(A) {
9967
+ const v = Ye(), C = JSON.parse(atob(v.split(".")[1])).sub;
9968
+ Jp().on(`${f}:${C}`, async function(A) {
9971
9969
  let B = i(A);
9972
9970
  if (B)
9973
9971
  B.uniqueId && B.actionKey == "switch-menu" && o(B);
@@ -9994,10 +9992,10 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
9994
9992
  }), Nt(() => {
9995
9993
  n && clearInterval(n);
9996
9994
  }), {};
9997
- }, fr = "v1", lh = Et(`/api/fms/report/${fr}`), zn = Et(`/api/emergency/manage/${fr}`), uh = mn.get("/permissionset/user-portal-menu"), $0 = Et(`/api/alarm/config/${fr}`), dh = Et(`/api/alarm/run-time/${fr}`), fh = $0.get("/alarm-definition/status-option"), ph = dh.post("/record/handling"), hh = $0.get("/alarm-level/prompttone"), xh = lh.get("/alarm/rule/list"), vh = Ra.get("/controller/space-children-all-type"), gh = Ra.get("/controller/fuzzy-area-small"), mh = zn.get("/emergency-event/event/type"), _h = zn.get("/emergency-event/event/level"), Ch = zn.get("/emergency-plan/plan/handle-time"), yh = { class: "handle-alarm-container" }, bh = { class: "select-check" }, wh = { class: "form-box" }, Eh = { class: "select-check" }, Ah = { style: { "margin-left": "8px" } }, Bh = { class: "foot-btn-box" }, kh = {
9995
+ }, fr = "v1", ch = Et(`/api/fms/report/${fr}`), zn = Et(`/api/emergency/manage/${fr}`), lh = mn.get("/permissionset/user-portal-menu"), $0 = Et(`/api/alarm/config/${fr}`), uh = Et(`/api/alarm/run-time/${fr}`), dh = $0.get("/alarm-definition/status-option"), fh = uh.post("/record/handling"), ph = $0.get("/alarm-level/prompttone"), hh = ch.get("/alarm/rule/list"), xh = Ra.get("/controller/space-children-all-type"), vh = Ra.get("/controller/fuzzy-area-small"), gh = zn.get("/emergency-event/event/type"), mh = zn.get("/emergency-event/event/level"), _h = zn.get("/emergency-plan/plan/handle-time"), Ch = { class: "handle-alarm-container" }, yh = { class: "select-check" }, bh = { class: "form-box" }, wh = { class: "select-check" }, Eh = { style: { "margin-left": "8px" } }, Ah = { class: "foot-btn-box" }, Bh = {
9998
9996
  name: "handleAlarm"
9999
- }, Dh = /* @__PURE__ */ we({
10000
- ...kh,
9997
+ }, kh = /* @__PURE__ */ we({
9998
+ ...Bh,
10001
9999
  props: {
10002
10000
  projectId: { default: "" },
10003
10001
  handerIds: { default: [] }
@@ -10061,13 +10059,13 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10061
10059
  const w = M(!0), A = M(!0), B = async (N) => {
10062
10060
  const R = { name: "1" };
10063
10061
  N != null && N.id && (R.spaceId = N.id);
10064
- const [O, Ee] = await vh(R).run();
10062
+ const [O, Ee] = await xh(R).run();
10065
10063
  return O ? {} : Ee;
10066
10064
  }, E = async (N) => {
10067
- const R = { name: N || "" }, [O, Ee] = await gh(R).run();
10065
+ const R = { name: N || "" }, [O, Ee] = await vh(R).run();
10068
10066
  return O ? {} : Ee;
10069
10067
  }, k = M(!0), y = M(!0), b = M([]), D = async () => {
10070
- const [N, R] = await xh().run({ pageIndex: -1, pageSize: -1 });
10068
+ const [N, R] = await hh().run({ pageIndex: -1, pageSize: -1 });
10071
10069
  if (N) return {};
10072
10070
  b.value = R.data.filter((O) => O.status), b.value.length > 0 && (o.value.workOrderRules = b.value[0].id);
10073
10071
  };
@@ -10104,13 +10102,13 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10104
10102
  }, G = (N) => {
10105
10103
  N == "eventTypeId" && (o.value.eventLevelId = null, P()), N == "eventLevelId" && z(), N == "interval" && (c.value.timeLimit = "", o.value.interval == 3 ? (_.value = !0, o.value.timeLimit = "") : _.value = !1);
10106
10104
  }, T = async () => {
10107
- const [N, R] = await mh().run();
10105
+ const [N, R] = await gh().run();
10108
10106
  if (N) return {};
10109
10107
  d.value = R, o.value.eventTypeId || (o.value.eventTypeId = R[0] ? R[0].id : null), P();
10110
10108
  }, P = async () => {
10111
10109
  const N = {
10112
10110
  eventTypeId: o.value.eventTypeId
10113
- }, [R, O] = await _h(N).run();
10111
+ }, [R, O] = await mh(N).run();
10114
10112
  if (R) return {};
10115
10113
  const Ee = { 1: V("一级").value, 2: V("二级").value, 3: V("三级").value, 4: V("四级").value };
10116
10114
  h.value = O.map((Me) => ({
@@ -10121,7 +10119,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10121
10119
  const N = {
10122
10120
  eventTypeId: o.value.eventTypeId,
10123
10121
  eventLevel: o.value.eventLevelId
10124
- }, [R, O] = await Ch(N).run();
10122
+ }, [R, O] = await _h(N).run();
10125
10123
  if (R) return {};
10126
10124
  o.value.interval = O.handleTimeUnit, O.handleTimeUnit == 3 ? o.value.timeLimit = "" : o.value.timeLimit = O.handleTime;
10127
10125
  }, $ = (N) => {
@@ -10133,7 +10131,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10133
10131
  projectId: n.projectId
10134
10132
  };
10135
10133
  s.value = !0;
10136
- const [R, O] = await fh(N).run();
10134
+ const [R, O] = await dh(N).run();
10137
10135
  if (R) {
10138
10136
  s.value = !1;
10139
10137
  return;
@@ -10167,7 +10165,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10167
10165
  //处理类型id
10168
10166
  };
10169
10167
  o.value.processTypeId === "createorder" ? (N.path = A.value ? "" : o.value.customPath, N.topic = y.value ? "" : o.value.reportTheme, N.spaceId = A.value ? "" : o.value.reportPosition ?? "", N.orderId = o.value.workOrderRules) : o.value.processTypeId === "createcontingency" ? (N.eventTypeId = o.value.eventTypeId, N.eventLevelId = o.value.eventLevelId, N.timeLimit = o.value.interval == 3 ? null : Number(o.value.timeLimit), N.interval = o.value.interval) : (N.reason = o.value.reason, N.treatmentPlan = o.value.treatmentPlan, N.remarks = o.value.remarks), s.value = !0, a("emitFn", "startHandle");
10170
- const [R, O] = await ph(N, {
10168
+ const [R, O] = await fh(N, {
10171
10169
  params: {
10172
10170
  projectId: n.projectId
10173
10171
  }
@@ -10185,7 +10183,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10185
10183
  return e({
10186
10184
  open: Ve,
10187
10185
  close: rt
10188
- }), (N, R) => (Y(), Se("div", yh, [
10186
+ }), (N, R) => (J(), Se("div", Ch, [
10189
10187
  Z(F(gn), {
10190
10188
  modelValue: u.value,
10191
10189
  "onUpdate:modelValue": R[31] || (R[31] = (O) => u.value = O),
@@ -10206,7 +10204,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10206
10204
  )
10207
10205
  ]),
10208
10206
  footer: X(() => [
10209
- K("div", Bh, [
10207
+ K("div", Ah, [
10210
10208
  Z(F(mt), {
10211
10209
  size: "middle",
10212
10210
  onClick: _e
@@ -10286,7 +10284,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10286
10284
  marginRight: "0",
10287
10285
  onChange: $
10288
10286
  }, null, 8, ["label", "modelValue", "options"]),
10289
- o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (Y(), se(F(Ne), {
10287
+ o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (J(), se(F(Ne), {
10290
10288
  key: 0,
10291
10289
  label: F(V)("告警原因").value,
10292
10290
  required: o.value.processTypeId == "dealwith",
@@ -10301,7 +10299,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10301
10299
  marginBottom: "30px",
10302
10300
  marginRight: "0"
10303
10301
  }, null, 8, ["label", "required", "modelValue", "error"])) : oe("v-if", !0),
10304
- o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (Y(), se(F(Ne), {
10302
+ o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (J(), se(F(Ne), {
10305
10303
  key: 1,
10306
10304
  label: F(V)("处理方案").value,
10307
10305
  required: o.value.processTypeId == "dealwith",
@@ -10316,7 +10314,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10316
10314
  marginBottom: "30px",
10317
10315
  marginRight: "0"
10318
10316
  }, null, 8, ["label", "required", "modelValue", "error"])) : oe("v-if", !0),
10319
- o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (Y(), se(F(Ne), {
10317
+ o.value.processTypeId !== "createorder" && o.value.processTypeId !== "createcontingency" ? (J(), se(F(Ne), {
10320
10318
  key: 2,
10321
10319
  label: F(V)("备注").value,
10322
10320
  type: "textarea",
@@ -10329,7 +10327,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10329
10327
  marginBottom: "30px",
10330
10328
  marginRight: "0"
10331
10329
  }, null, 8, ["label", "modelValue"])) : oe("v-if", !0),
10332
- o.value.processTypeId == "createorder" ? (Y(), se(F(Ne), {
10330
+ o.value.processTypeId == "createorder" ? (J(), se(F(Ne), {
10333
10331
  key: 3,
10334
10332
  label: F(V)("报事位置").value,
10335
10333
  required: "",
@@ -10340,8 +10338,8 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10340
10338
  marginRight: "0"
10341
10339
  }, {
10342
10340
  default: X(() => [
10343
- K("div", bh, [
10344
- K("div", wh, [
10341
+ K("div", yh, [
10342
+ K("div", bh, [
10345
10343
  Z(F(Ms), {
10346
10344
  borderType: "underline",
10347
10345
  props: { disabled: "_disabled", label: "name" },
@@ -10361,7 +10359,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10361
10359
  filter: !0,
10362
10360
  allowClear: !0
10363
10361
  }, null, 8, ["modelValue", "path", "keyword", "data", "placeholder", "disabled"]),
10364
- Z(F(Yn), {
10362
+ Z(F(Jn), {
10365
10363
  ref: "testInput",
10366
10364
  modelValue: o.value.customPath,
10367
10365
  "onUpdate:modelValue": R[11] || (R[11] = (O) => o.value.customPath = O),
@@ -10392,7 +10390,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10392
10390
  _: 1
10393
10391
  /* STABLE */
10394
10392
  }, 8, ["label", "error"])) : oe("v-if", !0),
10395
- o.value.processTypeId == "createorder" ? (Y(), se(F(Ne), {
10393
+ o.value.processTypeId == "createorder" ? (J(), se(F(Ne), {
10396
10394
  key: 4,
10397
10395
  label: F(V)("报事主题").value,
10398
10396
  required: "",
@@ -10403,8 +10401,8 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10403
10401
  marginRight: "0"
10404
10402
  }, {
10405
10403
  default: X(() => [
10406
- K("div", Eh, [
10407
- Z(F(Yn), {
10404
+ K("div", wh, [
10405
+ Z(F(Jn), {
10408
10406
  maxlength: "20",
10409
10407
  disabled: k.value,
10410
10408
  modelValue: o.value.reportTheme,
@@ -10434,7 +10432,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10434
10432
  _: 1
10435
10433
  /* STABLE */
10436
10434
  }, 8, ["label", "error"])) : oe("v-if", !0),
10437
- o.value.processTypeId == "createorder" ? (Y(), se(F(Ne), {
10435
+ o.value.processTypeId == "createorder" ? (J(), se(F(Ne), {
10438
10436
  key: 5,
10439
10437
  label: F(V)("工单规则").value,
10440
10438
  required: "",
@@ -10452,7 +10450,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10452
10450
  marginRight: "0"
10453
10451
  }, null, 8, ["label", "modelValue", "error", "options"])) : oe("v-if", !0),
10454
10452
  oe(" createcontingency 生成应急事件 "),
10455
- o.value.processTypeId == "createcontingency" ? (Y(), se(F(Ne), {
10453
+ o.value.processTypeId == "createcontingency" ? (J(), se(F(Ne), {
10456
10454
  key: 6,
10457
10455
  label: F(V)("事件类型").value,
10458
10456
  required: "",
@@ -10470,7 +10468,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10470
10468
  marginRight: "0",
10471
10469
  onChange: R[21] || (R[21] = (O) => G("eventTypeId"))
10472
10470
  }, null, 8, ["label", "modelValue", "error", "options"])) : oe("v-if", !0),
10473
- o.value.processTypeId == "createcontingency" ? (Y(), se(F(Ne), {
10471
+ o.value.processTypeId == "createcontingency" ? (J(), se(F(Ne), {
10474
10472
  key: 7,
10475
10473
  label: F(V)("事件等级").value,
10476
10474
  required: "",
@@ -10488,7 +10486,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10488
10486
  marginRight: "0",
10489
10487
  onChange: R[24] || (R[24] = (O) => G("eventLevelId"))
10490
10488
  }, null, 8, ["label", "modelValue", "error", "options"])) : oe("v-if", !0),
10491
- o.value.processTypeId == "createcontingency" ? (Y(), se(F(Ne), {
10489
+ o.value.processTypeId == "createcontingency" ? (J(), se(F(Ne), {
10492
10490
  key: 8,
10493
10491
  label: F(V)("处置时限").value,
10494
10492
  required: "",
@@ -10504,7 +10502,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10504
10502
  marginRight: "0"
10505
10503
  }, {
10506
10504
  default: X(() => [
10507
- K("div", Ah, [
10505
+ K("div", Eh, [
10508
10506
  Z(F(Os), {
10509
10507
  class: "select",
10510
10508
  modelValue: o.value.interval,
@@ -10544,18 +10542,18 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10544
10542
  }, 8, ["modelValue"])
10545
10543
  ]));
10546
10544
  }
10547
- }), Sh = /* @__PURE__ */ Le(Dh, [["__scopeId", "data-v-f392391d"]]), Fh = (r, e, t) => ({
10548
- handleAlarmVue: () => Ce(Sh, {
10545
+ }), Dh = /* @__PURE__ */ Le(kh, [["__scopeId", "data-v-f392391d"]]), Sh = (r, e, t) => ({
10546
+ handleAlarmVue: () => Ce(Dh, {
10549
10547
  handerIds: e.value,
10550
10548
  projectId: pn().id,
10551
10549
  ref: r,
10552
10550
  onEmitFn: (a, s) => {
10553
10551
  }
10554
10552
  })
10555
- }), Ih = { class: "alarm-msg" }, Th = { style: { position: "relative" } }, Ph = { class: "title-left" }, Rh = { class: "title-box" }, $h = { class: "content-box" }, zh = { class: "alarm-msg-line" }, Oh = { class: "alarm-msg-line-left" }, Mh = { class: "alarm-msg-line" }, Nh = { class: "alarm-msg-line-left" }, Lh = { class: "alarm-msg-line-right alarm-content-object" }, Hh = { class: "alarm-msg-line" }, Uh = { class: "alarm-msg-line-left" }, jh = { class: "alarm-msg-line-right alarm-content" }, qh = { class: "btn-box" }, Wh = {
10553
+ }), Fh = { class: "alarm-msg" }, Ih = { style: { position: "relative" } }, Th = { class: "title-left" }, Ph = { class: "title-box" }, Rh = { class: "content-box" }, $h = { class: "alarm-msg-line" }, zh = { class: "alarm-msg-line-left" }, Oh = { class: "alarm-msg-line" }, Mh = { class: "alarm-msg-line-left" }, Nh = { class: "alarm-msg-line-right alarm-content-object" }, Lh = { class: "alarm-msg-line" }, Hh = { class: "alarm-msg-line-left" }, Uh = { class: "alarm-msg-line-right alarm-content" }, jh = { class: "btn-box" }, qh = {
10556
10554
  name: "alarm"
10557
- }, Vh = /* @__PURE__ */ we({
10558
- ...Wh,
10555
+ }, Wh = /* @__PURE__ */ we({
10556
+ ...qh,
10559
10557
  props: {
10560
10558
  alarmhandle: { type: Boolean, default: !1 },
10561
10559
  msgItem: { default: {} }
@@ -10567,13 +10565,13 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10567
10565
  }, s = () => {
10568
10566
  n("handerDetail", t.msgItem);
10569
10567
  };
10570
- return (i, l) => (Y(), Se(
10568
+ return (i, l) => (J(), Se(
10571
10569
  _t,
10572
10570
  null,
10573
10571
  [
10574
10572
  oe(` <div class="alarm-msg" :style="{ 'border-color': msgItem.color }"> `),
10575
- K("div", Ih, [
10576
- K("div", Th, [
10573
+ K("div", Fh, [
10574
+ K("div", Ih, [
10577
10575
  K(
10578
10576
  "div",
10579
10577
  {
@@ -10581,13 +10579,13 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10581
10579
  class: "title-detail"
10582
10580
  },
10583
10581
  [
10584
- K("div", Ph, [
10582
+ K("div", Th, [
10585
10583
  oe(` <div class="icon-box" :style="{ color: msgItem.color }">\r
10586
10584
  !\r
10587
10585
  </div> `),
10588
10586
  K(
10589
10587
  "div",
10590
- Rh,
10588
+ Ph,
10591
10589
  pe(F(V)("新告警").value),
10592
10590
  1
10593
10591
  /* TEXT */
@@ -10604,11 +10602,11 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10604
10602
  4
10605
10603
  /* STYLE */
10606
10604
  ),
10607
- K("div", $h, [
10608
- K("div", zh, [
10605
+ K("div", Rh, [
10606
+ K("div", $h, [
10609
10607
  K(
10610
10608
  "div",
10611
- Oh,
10609
+ zh,
10612
10610
  pe(F(V)("告警等级:").value),
10613
10611
  1
10614
10612
  /* TEXT */
@@ -10624,40 +10622,40 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10624
10622
  /* TEXT, STYLE */
10625
10623
  )
10626
10624
  ]),
10627
- K("div", Mh, [
10625
+ K("div", Oh, [
10628
10626
  K(
10629
10627
  "div",
10630
- Nh,
10628
+ Mh,
10631
10629
  pe(F(V)("告警对象:").value),
10632
10630
  1
10633
10631
  /* TEXT */
10634
10632
  ),
10635
10633
  K(
10636
10634
  "div",
10637
- Lh,
10635
+ Nh,
10638
10636
  pe(i.msgItem.equipmentName || ""),
10639
10637
  1
10640
10638
  /* TEXT */
10641
10639
  )
10642
10640
  ]),
10643
- K("div", Hh, [
10641
+ K("div", Lh, [
10644
10642
  K(
10645
10643
  "div",
10646
- Uh,
10644
+ Hh,
10647
10645
  pe(F(V)("告警内容:").value),
10648
10646
  1
10649
10647
  /* TEXT */
10650
10648
  ),
10651
10649
  K(
10652
10650
  "div",
10653
- jh,
10651
+ Uh,
10654
10652
  pe(i.msgItem.alarmContent || ""),
10655
10653
  1
10656
10654
  /* TEXT */
10657
10655
  )
10658
10656
  ]),
10659
- K("div", qh, [
10660
- i.msgItem.equipmentCode && i.msgItem.equipmentPanelCode ? (Y(), se(F(mt), {
10657
+ K("div", jh, [
10658
+ i.msgItem.equipmentCode && i.msgItem.equipmentPanelCode ? (J(), se(F(mt), {
10661
10659
  key: 0,
10662
10660
  block: "",
10663
10661
  onClick: ve(s, ["stop"]),
@@ -10674,7 +10672,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10674
10672
  _: 1
10675
10673
  /* STABLE */
10676
10674
  })) : oe("v-if", !0),
10677
- i.alarmhandle ? (Y(), se(F(mt), {
10675
+ i.alarmhandle ? (J(), se(F(mt), {
10678
10676
  key: 1,
10679
10677
  block: "",
10680
10678
  btnType: "primary-text",
@@ -10701,7 +10699,7 @@ const ah = Ye(`/api/tool/event-bus/${dr}/`), Jr = ah.post("/publish"), sh = xn.g
10701
10699
  ));
10702
10700
  }
10703
10701
  });
10704
- let Kh = (r = 21) => {
10702
+ let Vh = (r = 21) => {
10705
10703
  let e = "", t = crypto.getRandomValues(new Uint8Array(r));
10706
10704
  for (; r--; ) {
10707
10705
  let n = t[r] & 63;
@@ -10709,7 +10707,7 @@ let Kh = (r = 21) => {
10709
10707
  }
10710
10708
  return e;
10711
10709
  };
10712
- const Gh = () => {
10710
+ const Kh = () => {
10713
10711
  const r = M(null), e = M(0), t = M(null), n = M(null), a = M([]), s = M([]), i = M(!1), l = M(!1), u = M(!1), o = M({
10714
10712
  playId: "",
10715
10713
  // 播放的告警的recordId
@@ -10736,7 +10734,7 @@ const Gh = () => {
10736
10734
  k.push({ alarmId: E.recordId }), a.value = k, (y = t.value) == null || y.open();
10737
10735
  }, { entryApp: _ } = Zt.hooks.useEntryApp(), d = (E) => {
10738
10736
  za(E.equipmentCode, E.equipmentPanelCode);
10739
- }, { handleAlarmVue: h } = Fh(t, a), p = async () => {
10737
+ }, { handleAlarmVue: h } = Sh(t, a), p = async () => {
10740
10738
  var y;
10741
10739
  const k = (((y = de().appcategorys) == null ? void 0 : y.map((b) => b.apps).flat()) ?? []).find((b) => b.code === "alarm");
10742
10740
  k && _({ microApp: k, menuPath: `/${k.routeUrl}/realTimeAlarm` });
@@ -10747,13 +10745,13 @@ const Gh = () => {
10747
10745
  }
10748
10746
  }, m = (E) => {
10749
10747
  if (!E) return;
10750
- const k = Kh();
10748
+ const k = Vh();
10751
10749
  Qt.open({
10752
10750
  key: k,
10753
10751
  class: "alarm-notify",
10754
10752
  message: V("新告警").value,
10755
10753
  placement: "bottomRight",
10756
- description: Ce(Vh, {
10754
+ description: Ce(Wh, {
10757
10755
  msgItem: E,
10758
10756
  alarmhandle: i.value,
10759
10757
  onHanderDetail: d,
@@ -10797,7 +10795,7 @@ const Gh = () => {
10797
10795
  o.value.loopCount = o.value.loopCount + 1, o.value.loopTotalCount && o.value.loopTotalCount && (o.value.loopCount == o.value.loopTotalCount ? (o.value.playPath = "", o.value.isplay = !1, o.value.playId = "", o.value.loopTotalCount = 0, o.value.loopCount = 0, o.value.playLine = null) : n.value.play());
10798
10796
  };
10799
10797
  }, A = async () => {
10800
- const [E, k] = await hh().run();
10798
+ const [E, k] = await ph().run();
10801
10799
  E || (u.value = k.isEnable);
10802
10800
  };
10803
10801
  return {
@@ -10808,7 +10806,7 @@ const Gh = () => {
10808
10806
  handleAlarmVue: h,
10809
10807
  creatAlarmSocket: async () => {
10810
10808
  A();
10811
- const [E, k] = await uh().run({
10809
+ const [E, k] = await lh().run({
10812
10810
  code: "alarm",
10813
10811
  showBtn: !0
10814
10812
  });
@@ -10829,15 +10827,15 @@ const Gh = () => {
10829
10827
  }));
10830
10828
  }
10831
10829
  };
10832
- }, Xh = ["src", "muted", "loop"], Qh = /* @__PURE__ */ we({
10830
+ }, Gh = ["src", "muted", "loop"], Xh = /* @__PURE__ */ we({
10833
10831
  __name: "index",
10834
10832
  setup(r) {
10835
- const { alarmSocket: e, creatAlarmSocket: t, audioObj: n, audioAlarmRef: a, handleAlarmVue: s } = Gh();
10833
+ const { alarmSocket: e, creatAlarmSocket: t, audioObj: n, audioAlarmRef: a, handleAlarmVue: s } = Kh();
10836
10834
  return lt(async () => {
10837
10835
  await or(), t();
10838
10836
  }), Nt(() => {
10839
10837
  e.value && e.value.disconnect(), e.value = null;
10840
- }), (i, l) => (Y(), Se(
10838
+ }), (i, l) => (J(), Se(
10841
10839
  _t,
10842
10840
  null,
10843
10841
  [
@@ -10850,13 +10848,13 @@ const Gh = () => {
10850
10848
  muted: !F(n).isplay,
10851
10849
  loop: F(n).loop,
10852
10850
  autoplay: ""
10853
- }, null, 8, Xh)
10851
+ }, null, 8, Gh)
10854
10852
  ],
10855
10853
  64
10856
10854
  /* STABLE_FRAGMENT */
10857
10855
  ));
10858
10856
  }
10859
- }), Zh = { class: "das-main-app-container" }, Jh = /* @__PURE__ */ we({
10857
+ }), Qh = { class: "das-main-app-container" }, Zh = /* @__PURE__ */ we({
10860
10858
  __name: "index",
10861
10859
  props: {
10862
10860
  showLayout: { type: Boolean, default: !0 }
@@ -10874,10 +10872,10 @@ const Gh = () => {
10874
10872
  },
10875
10873
  { immediate: !0 }
10876
10874
  );
10877
- const { initNextTick: u } = Ef();
10878
- kf(), Tf(), Sf(), Pf(), F0(), Bf();
10879
- const { fontColor: o, backgroudColor: c, borderColor: _ } = Df();
10880
- return Of(), Mf(), Nf(), Hf(), vp(), ch(), (d, h) => (Y(), Se("div", Zh, [
10875
+ const { initNextTick: u } = wf();
10876
+ Bf(), If(), Df(), Tf(), F0(), Af();
10877
+ const { fontColor: o, backgroudColor: c, borderColor: _ } = kf();
10878
+ return zf(), Of(), Mf(), Lf(), xp(), ih(), (d, h) => (J(), Se("div", Qh, [
10881
10879
  oe(` <button @click="test(0)">test</button>\r
10882
10880
  <button style="margin-left: 5px" @click="test(1)">test2</button> `),
10883
10881
  Z(F(ci), { platformInitNextTick: F(u) }, {
@@ -10905,10 +10903,10 @@ const Gh = () => {
10905
10903
  /* FORWARDED */
10906
10904
  }, 8, ["platformInitNextTick"]),
10907
10905
  oe(" 告警 "),
10908
- Z(F(Qh))
10906
+ Z(F(Xh))
10909
10907
  ]));
10910
10908
  }
10911
- }), Yh = /* @__PURE__ */ Le(Jh, [["__scopeId", "data-v-7a63b5ce"]]), ex = {
10909
+ }), Yh = /* @__PURE__ */ Le(Zh, [["__scopeId", "data-v-7a63b5ce"]]), Jh = {
10912
10910
  正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework", "zh-MO": "正在實時預覽" },
10913
10911
  声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework", "zh-MO": "聲音" },
10914
10912
  截图: { "zh-CN": "截图", en: "Screenshot", _appCode: "framework", "zh-MO": "截圖" },
@@ -11087,22 +11085,22 @@ const Gh = () => {
11087
11085
  "zh-MO": "當前實例($0)$1天后過期(到期時間:$2),請儘快聯繫管理人員續費,過期失效後將會停用物聯網平臺所有功能服務~"
11088
11086
  }
11089
11087
  };
11090
- ls(ex);
11088
+ ls(Jh);
11091
11089
  M("@das-fed/upf-web");
11092
- const tx = [
11090
+ const ex = [
11093
11091
  {
11094
11092
  path: qe,
11095
- component: () => import("./index-DLOeR4lo.js")
11093
+ component: () => import("./index-CXgpHY21.js")
11096
11094
  },
11097
11095
  {
11098
11096
  path: Ma,
11099
- component: () => import("./index-D2I3UnWM.js")
11097
+ component: () => import("./index-3vSO62GO.js")
11100
11098
  }
11101
- ], Vx = {
11102
- routes: tx,
11099
+ ], Wx = {
11100
+ routes: ex,
11103
11101
  Layout: Yh,
11104
11102
  data: {
11105
- homeInfo: mf,
11103
+ homeInfo: gf,
11106
11104
  personalConfig: D0
11107
11105
  },
11108
11106
  hooks: {
@@ -11113,10 +11111,10 @@ const tx = [
11113
11111
  export {
11114
11112
  Le as _,
11115
11113
  nn as a,
11116
- Yt as c,
11117
- Ya as g,
11114
+ Jt as c,
11115
+ Ja as g,
11118
11116
  me as l,
11119
- Vx as m,
11117
+ Wx as m,
11120
11118
  D0 as p,
11121
11119
  qt as u
11122
11120
  };