@10yun/open-sdk 0.3.114 → 0.3.115

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,5 +1,5 @@
1
1
  import { defineStore as Ie, mapState as ke } from "pinia";
2
- import { effectScope as Uo, ref as xo, shallowRef as Vo, computed as pt, watch as Pn, isRef as Bo, defineComponent as ta, getCurrentInstance as Nt, h as Or, Fragment as ce, inject as Go, onMounted as $o, onUnmounted as Wo, createVNode as S, Text as Yo, resolveComponent as w, createBlock as H, openBlock as F, withCtx as C, createElementVNode as D, createElementBlock as W, renderList as Oe, createTextVNode as B, toDisplayString as Z, createCommentVNode as te, Transition as Ho, normalizeClass as Ht, resolveDynamicComponent as Ko, withDirectives as Rt, withModifiers as jo, normalizeStyle as Fn, vShow as Ir, mergeProps as qo, renderSlot as Xo, createSlots as Qo, resolveDirective as na } from "vue";
2
+ import { effectScope as Uo, ref as xo, shallowRef as Vo, computed as pt, watch as Pn, isRef as Bo, defineComponent as ta, getCurrentInstance as Nt, h as Or, Fragment as ce, inject as Go, onMounted as $o, onUnmounted as Wo, createVNode as S, Text as Yo, resolveComponent as w, createBlock as H, openBlock as F, withCtx as C, createElementVNode as D, createElementBlock as W, renderList as Oe, createTextVNode as B, toDisplayString as Z, createCommentVNode as te, Transition as Ho, normalizeClass as Kt, resolveDynamicComponent as Ko, withDirectives as Rt, withModifiers as jo, normalizeStyle as Fn, vShow as Ir, mergeProps as qo, renderSlot as Xo, createSlots as Qo, resolveDirective as na } from "vue";
3
3
  import Jo, { ElMessage as Na, ElMessageBox as zo, ElNotification as Zo } from "element-plus";
4
4
  import * as es from "@element-plus/icons-vue";
5
5
  import "element-plus/dist/index.css";
@@ -12,7 +12,7 @@ let Lr = {};
12
12
  function rs(e = {}) {
13
13
  Lr = e;
14
14
  }
15
- function Qt() {
15
+ function Jt() {
16
16
  return Lr;
17
17
  }
18
18
  const os = 60 * 60 * 24 * 7;
@@ -201,8 +201,8 @@ function ra() {
201
201
  return arguments[arguments.length - 1];
202
202
  }
203
203
  const Mn = "local-forage-detect-blob-support";
204
- let xt;
205
- const ve = {}, cs = Object.prototype.toString, Pt = "readonly", Jt = "readwrite";
204
+ let Vt;
205
+ const ve = {}, cs = Object.prototype.toString, Pt = "readonly", zt = "readwrite";
206
206
  function us(e) {
207
207
  for (var t = e.length, n = new ArrayBuffer(t), r = new Uint8Array(n), a = 0; a < t; a++)
208
208
  r[a] = e.charCodeAt(a);
@@ -210,7 +210,7 @@ function us(e) {
210
210
  }
211
211
  function fs(e) {
212
212
  return new U(function(t) {
213
- var n = e.transaction(Mn, Jt), r = aa([""]);
213
+ var n = e.transaction(Mn, zt), r = aa([""]);
214
214
  n.objectStore(Mn).put(r, "key"), n.onabort = function(a) {
215
215
  a.preventDefault(), a.stopPropagation(), t(!1);
216
216
  }, n.oncomplete = function() {
@@ -224,11 +224,11 @@ function fs(e) {
224
224
  });
225
225
  }
226
226
  function ds(e) {
227
- return typeof xt == "boolean" ? U.resolve(xt) : fs(e).then(function(t) {
228
- return xt = t, xt;
227
+ return typeof Vt == "boolean" ? U.resolve(Vt) : fs(e).then(function(t) {
228
+ return Vt = t, Vt;
229
229
  });
230
230
  }
231
- function Kt(e) {
231
+ function jt(e) {
232
232
  var t = ve[e.name], n = {};
233
233
  n.promise = new U(function(r, a) {
234
234
  n.resolve = r, n.reject = a;
@@ -250,7 +250,7 @@ function wr(e, t) {
250
250
  return new U(function(n, r) {
251
251
  if (ve[e.name] = ve[e.name] || Pr(), e.db)
252
252
  if (t)
253
- Kt(e), e.db.close();
253
+ jt(e), e.db.close();
254
254
  else
255
255
  return n(e.db);
256
256
  var a = [e.name];
@@ -322,7 +322,7 @@ function ms(e) {
322
322
  return ot(n, e, e), n;
323
323
  }
324
324
  function hs(e) {
325
- Kt(e);
325
+ jt(e);
326
326
  for (var t = ve[e.name], n = t.forages, r = 0; r < n.length; r++) {
327
327
  const a = n[r];
328
328
  a._dbInfo.db && (a._dbInfo.db.close(), a._dbInfo.db = null);
@@ -465,7 +465,7 @@ function Ss(e, t, n) {
465
465
  return i ? t : _s(t);
466
466
  }) : t;
467
467
  }).then(function(i) {
468
- Me(r._dbInfo, Jt, function(c, f) {
468
+ Me(r._dbInfo, zt, function(c, f) {
469
469
  if (c)
470
470
  return s(c);
471
471
  try {
@@ -493,7 +493,7 @@ function bs(e, t) {
493
493
  e = Fe(e);
494
494
  var r = new U(function(a, o) {
495
495
  n.ready().then(function() {
496
- Me(n._dbInfo, Jt, function(s, l) {
496
+ Me(n._dbInfo, zt, function(s, l) {
497
497
  if (s)
498
498
  return o(s);
499
499
  try {
@@ -519,7 +519,7 @@ function bs(e, t) {
519
519
  function vs(e) {
520
520
  var t = this, n = new U(function(r, a) {
521
521
  t.ready().then(function() {
522
- Me(t._dbInfo, Jt, function(o, s) {
522
+ Me(t._dbInfo, zt, function(o, s) {
523
523
  if (o)
524
524
  return a(o);
525
525
  try {
@@ -642,7 +642,7 @@ function Ns(e, t) {
642
642
  if (!l.objectStoreNames.contains(e.storeName))
643
643
  return;
644
644
  const i = l.version + 1;
645
- Kt(e);
645
+ jt(e);
646
646
  const c = ve[e.name], f = c.forages;
647
647
  l.close();
648
648
  for (let _ = 0; _ < f.length; _++) {
@@ -671,7 +671,7 @@ function Ns(e, t) {
671
671
  }), _;
672
672
  });
673
673
  }) : a = s.then((l) => {
674
- Kt(e);
674
+ jt(e);
675
675
  const i = ve[e.name], c = i.forages;
676
676
  l.close();
677
677
  for (var f = 0; f < c.length; f++) {
@@ -719,7 +719,7 @@ var Cs = {
719
719
  function Os() {
720
720
  return typeof openDatabase == "function";
721
721
  }
722
- var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Is = "~~local_forage_type~", Ca = /^~~local_forage_type~([^~]+)~/, jt = "__lfsc__:", Vn = jt.length, ia = "arbf", Bn = "blob", Fr = "si08", Mr = "ui08", Ur = "uic8", xr = "si16", Vr = "si32", Br = "ur16", Gr = "ui32", $r = "fl32", Wr = "fl64", Oa = Vn + ia.length, Ia = Object.prototype.toString;
722
+ var Be = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", Is = "~~local_forage_type~", Ca = /^~~local_forage_type~([^~]+)~/, qt = "__lfsc__:", Vn = qt.length, ia = "arbf", Bn = "blob", Fr = "si08", Mr = "ui08", Ur = "uic8", xr = "si16", Vr = "si32", Br = "ur16", Gr = "ui32", $r = "fl32", Wr = "fl64", Oa = Vn + ia.length, Ia = Object.prototype.toString;
723
723
  function Yr(e) {
724
724
  var t = e.length * 0.75, n = e.length, r, a = 0, o, s, l, i;
725
725
  e[e.length - 1] === "=" && (t--, e[e.length - 2] === "=" && t--);
@@ -737,13 +737,13 @@ function Gn(e) {
737
737
  function Ls(e, t) {
738
738
  var n = "";
739
739
  if (e && (n = Ia.call(e)), e && (n === "[object ArrayBuffer]" || e.buffer && Ia.call(e.buffer) === "[object ArrayBuffer]")) {
740
- var r, a = jt;
740
+ var r, a = qt;
741
741
  e instanceof ArrayBuffer ? (r = e, a += ia) : (r = e.buffer, n === "[object Int8Array]" ? a += Fr : n === "[object Uint8Array]" ? a += Mr : n === "[object Uint8ClampedArray]" ? a += Ur : n === "[object Int16Array]" ? a += xr : n === "[object Uint16Array]" ? a += Br : n === "[object Int32Array]" ? a += Vr : n === "[object Uint32Array]" ? a += Gr : n === "[object Float32Array]" ? a += $r : n === "[object Float64Array]" ? a += Wr : t(new Error("Failed to get type for BinaryArray"))), t(a + Gn(r));
742
742
  } else if (n === "[object Blob]") {
743
743
  var o = new FileReader();
744
744
  o.onload = function() {
745
745
  var s = Is + e.type + "~" + Gn(this.result);
746
- t(jt + Bn + s);
746
+ t(qt + Bn + s);
747
747
  }, o.readAsArrayBuffer(e);
748
748
  } else
749
749
  try {
@@ -753,7 +753,7 @@ function Ls(e, t) {
753
753
  }
754
754
  }
755
755
  function ws(e) {
756
- if (e.substring(0, Vn) !== jt)
756
+ if (e.substring(0, Vn) !== qt)
757
757
  return JSON.parse(e);
758
758
  var t = e.substring(Oa), n = e.substring(
759
759
  Vn,
@@ -1346,7 +1346,7 @@ const ai = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
1346
1346
  it.INDEXEDDB._driver,
1347
1347
  it.WEBSQL._driver,
1348
1348
  it.LOCALSTORAGE._driver
1349
- ], Wt = ["dropInstance"], yn = [
1349
+ ], Yt = ["dropInstance"], yn = [
1350
1350
  "clear",
1351
1351
  "getItem",
1352
1352
  "iterate",
@@ -1355,7 +1355,7 @@ const ai = (e, t) => e === t || typeof e == "number" && typeof t == "number" &&
1355
1355
  "length",
1356
1356
  "removeItem",
1357
1357
  "setItem"
1358
- ].concat(Wt), si = {
1358
+ ].concat(Yt), si = {
1359
1359
  description: "",
1360
1360
  driver: oi.slice(),
1361
1361
  name: "localforage",
@@ -1429,7 +1429,7 @@ class ca {
1429
1429
  for (let _ = 0, p = c.length; _ < p; _++) {
1430
1430
  const v = c[_];
1431
1431
  if ((!ri(
1432
- Wt,
1432
+ Yt,
1433
1433
  v
1434
1434
  ) || t[v]) && typeof t[v] != "function") {
1435
1435
  s(i);
@@ -1448,8 +1448,8 @@ class ca {
1448
1448
  ), g;
1449
1449
  };
1450
1450
  };
1451
- for (let p = 0, v = Wt.length; p < v; p++) {
1452
- const g = Wt[p];
1451
+ for (let p = 0, v = Yt.length; p < v; p++) {
1452
+ const g = Yt[p];
1453
1453
  t[g] || (t[g] = _(
1454
1454
  g
1455
1455
  ));
@@ -1703,7 +1703,7 @@ function St(e) {
1703
1703
  });
1704
1704
  }
1705
1705
  function mi(e) {
1706
- let t = Ne();
1706
+ let t = Te();
1707
1707
  e && e.onGlobalStateChange && e.onGlobalStateChange((n, r) => {
1708
1708
  if (n && n.msg)
1709
1709
  switch ((n.msg || {}).COMM_TYPE || "") {
@@ -1825,10 +1825,10 @@ const wa = {};
1825
1825
  function ua(e) {
1826
1826
  wa[e] || (wa[e] = !0, void 0);
1827
1827
  }
1828
- const Ae = typeof window < "u";
1828
+ const Ne = typeof window < "u";
1829
1829
  let Ee, Je;
1830
1830
  if (process.env.NODE_ENV !== "production") {
1831
- const e = Ae && window.performance;
1831
+ const e = Ne && window.performance;
1832
1832
  e && e.mark && e.measure && e.clearMarks && // @ts-ignore browser compat
1833
1833
  e.clearMeasures && (Ee = (t) => {
1834
1834
  e.mark(t);
@@ -1837,10 +1837,10 @@ if (process.env.NODE_ENV !== "production") {
1837
1837
  });
1838
1838
  }
1839
1839
  const pi = /\{([0-9a-zA-Z]+)\}/g;
1840
- function zt(e, ...t) {
1840
+ function Zt(e, ...t) {
1841
1841
  return t.length === 1 && Y(t[0]) && (t = t[0]), (!t || !t.hasOwnProperty) && (t = {}), e.replace(pi, (n, r) => t.hasOwnProperty(r) ? t[r] : "");
1842
1842
  }
1843
- const Le = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ei = (e, t, n) => Si({ l: e, k: t, s: n }), Si = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ie = (e) => typeof e == "number" && isFinite(e), bi = (e) => fa(e) === "[object Date]", ct = (e) => fa(e) === "[object RegExp]", Zt = (e) => G(e) && Object.keys(e).length === 0, le = Object.assign, vi = Object.create, X = (e = null) => vi(e);
1843
+ const Le = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), Ei = (e, t, n) => Si({ l: e, k: t, s: n }), Si = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), ie = (e) => typeof e == "number" && isFinite(e), bi = (e) => fa(e) === "[object Date]", ct = (e) => fa(e) === "[object RegExp]", en = (e) => G(e) && Object.keys(e).length === 0, le = Object.assign, vi = Object.create, X = (e = null) => vi(e);
1844
1844
  let Da;
1845
1845
  const Qe = () => Da || (Da = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : X());
1846
1846
  function ka(e) {
@@ -1860,7 +1860,7 @@ function yi(e) {
1860
1860
  }), e;
1861
1861
  }
1862
1862
  const Ti = Object.prototype.hasOwnProperty;
1863
- function Te(e, t) {
1863
+ function Ae(e, t) {
1864
1864
  return Ti.call(e, t);
1865
1865
  }
1866
1866
  const ne = Array.isArray, J = (e) => typeof e == "function", P = (e) => typeof e == "string", K = (e) => typeof e == "boolean", Y = (e) => e !== null && typeof e == "object", Ai = (e) => Y(e) && J(e.then) && J(e.catch), Xr = Object.prototype.toString, fa = (e) => Xr.call(e), G = (e) => fa(e) === "[object Object]", Ni = (e) => e == null ? "" : ne(e) || G(e) && e.toString === Xr ? JSON.stringify(e, null, 2) : String(e);
@@ -1913,15 +1913,15 @@ function _a() {
1913
1913
  }
1914
1914
  };
1915
1915
  }
1916
- const Vt = (e) => !Y(e) || ne(e);
1917
- function Yt(e, t) {
1918
- if (Vt(e) || Vt(t))
1916
+ const Bt = (e) => !Y(e) || ne(e);
1917
+ function Ht(e, t) {
1918
+ if (Bt(e) || Bt(t))
1919
1919
  throw new Error("Invalid value");
1920
1920
  const n = [{ src: e, des: t }];
1921
1921
  for (; n.length; ) {
1922
1922
  const { src: r, des: a } = n.pop();
1923
1923
  Object.keys(r).forEach((o) => {
1924
- o !== "__proto__" && (Y(r[o]) && !Y(a[o]) && (a[o] = Array.isArray(r[o]) ? [] : X()), Vt(a[o]) || Vt(r[o]) ? a[o] = r[o] : n.push({ src: r[o], des: a[o] }));
1924
+ o !== "__proto__" && (Y(r[o]) && !Y(a[o]) && (a[o] = Array.isArray(r[o]) ? [] : X()), Bt(a[o]) || Bt(r[o]) ? a[o] = r[o] : n.push({ src: r[o], des: a[o] }));
1925
1925
  });
1926
1926
  }
1927
1927
  }
@@ -1980,7 +1980,7 @@ const x = {
1980
1980
  [x.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
1981
1981
  };
1982
1982
  function dt(e, t, n = {}) {
1983
- const { domain: r, messages: a, args: o } = n, s = process.env.NODE_ENV !== "production" ? zt((a || Li)[e] || "", ...o || []) : e, l = new SyntaxError(String(s));
1983
+ const { domain: r, messages: a, args: o } = n, s = process.env.NODE_ENV !== "production" ? Zt((a || Li)[e] || "", ...o || []) : e, l = new SyntaxError(String(s));
1984
1984
  return l.code = e, t && (l.location = t), l.domain = r, l;
1985
1985
  }
1986
1986
  function wi(e) {
@@ -2255,14 +2255,14 @@ function Vi(e, t = {}) {
2255
2255
  case "'":
2256
2256
  return d.next(), `\\${m}`;
2257
2257
  case "u":
2258
- return Mt(d, m, 4);
2258
+ return Ut(d, m, 4);
2259
2259
  case "U":
2260
- return Mt(d, m, 6);
2260
+ return Ut(d, m, 6);
2261
2261
  default:
2262
2262
  return u(x.UNKNOWN_ESCAPE_SEQUENCE, o(), 0, m), "";
2263
2263
  }
2264
2264
  }
2265
- function Mt(d, m, N) {
2265
+ function Ut(d, m, N) {
2266
2266
  v(d, m);
2267
2267
  let M = "";
2268
2268
  for (let re = 0; re < N; re++) {
@@ -2873,7 +2873,7 @@ function nl() {
2873
2873
  typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (Qe().__INTLIFY_PROD_DEVTOOLS__ = !1), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Qe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
2874
2874
  }
2875
2875
  function ye(e) {
2876
- return Y(e) && ha(e) === 0 && (Te(e, "b") || Te(e, "body"));
2876
+ return Y(e) && ha(e) === 0 && (Ae(e, "b") || Ae(e, "body"));
2877
2877
  }
2878
2878
  const Qr = ["b", "body"];
2879
2879
  function al(e) {
@@ -2896,7 +2896,7 @@ function ha(e) {
2896
2896
  return We(e, eo);
2897
2897
  }
2898
2898
  const to = ["v", "value"];
2899
- function Bt(e, t) {
2899
+ function Gt(e, t) {
2900
2900
  const n = We(e, to);
2901
2901
  if (n != null)
2902
2902
  return n;
@@ -2919,7 +2919,7 @@ function ll(e) {
2919
2919
  function We(e, t, n) {
2920
2920
  for (let r = 0; r < t.length; r++) {
2921
2921
  const a = t[r];
2922
- if (Te(e, a) && e[a] != null)
2922
+ if (Ae(e, a) && e[a] != null)
2923
2923
  return e[a];
2924
2924
  }
2925
2925
  return n;
@@ -2969,22 +2969,22 @@ function Wn(e, t) {
2969
2969
  const n = ha(t);
2970
2970
  switch (n) {
2971
2971
  case 3:
2972
- return Bt(t, n);
2972
+ return Gt(t, n);
2973
2973
  case 9:
2974
- return Bt(t, n);
2974
+ return Gt(t, n);
2975
2975
  case 4: {
2976
2976
  const r = t;
2977
- if (Te(r, "k") && r.k)
2977
+ if (Ae(r, "k") && r.k)
2978
2978
  return e.interpolate(e.named(r.k));
2979
- if (Te(r, "key") && r.key)
2979
+ if (Ae(r, "key") && r.key)
2980
2980
  return e.interpolate(e.named(r.key));
2981
2981
  throw Ot(n);
2982
2982
  }
2983
2983
  case 5: {
2984
2984
  const r = t;
2985
- if (Te(r, "i") && ie(r.i))
2985
+ if (Ae(r, "i") && ie(r.i))
2986
2986
  return e.interpolate(e.list(r.i));
2987
- if (Te(r, "index") && ie(r.index))
2987
+ if (Ae(r, "index") && ie(r.index))
2988
2988
  return e.interpolate(e.list(r.index));
2989
2989
  throw Ot(n);
2990
2990
  }
@@ -2993,19 +2993,19 @@ function Wn(e, t) {
2993
2993
  return e.linked(Wn(e, o), a ? Wn(e, a) : void 0, e.type);
2994
2994
  }
2995
2995
  case 7:
2996
- return Bt(t, n);
2996
+ return Gt(t, n);
2997
2997
  case 8:
2998
- return Bt(t, n);
2998
+ return Gt(t, n);
2999
2999
  default:
3000
3000
  throw new Error(`unhandled node on format message part: ${n}`);
3001
3001
  }
3002
3002
  }
3003
3003
  const ul = "Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";
3004
3004
  function fl(e, t) {
3005
- t && ki(e) && (zt(ul, { source: e }), void 0);
3005
+ t && ki(e) && (Zt(ul, { source: e }), void 0);
3006
3006
  }
3007
3007
  const dl = (e) => e;
3008
- let Gt = X();
3008
+ let $t = X();
3009
3009
  function _l(e, t = {}) {
3010
3010
  let n = !1;
3011
3011
  const r = t.onError || wi;
@@ -3018,7 +3018,7 @@ function ml(e, t) {
3018
3018
  if (!__INTLIFY_DROP_MESSAGE_COMPILER__ && P(e)) {
3019
3019
  const n = K(t.warnHtmlMessage) ? t.warnHtmlMessage : !0;
3020
3020
  process.env.NODE_ENV !== "production" && fl(e, n);
3021
- const a = (t.onCacheKey || dl)(e), o = Gt[a];
3021
+ const a = (t.onCacheKey || dl)(e), o = $t[a];
3022
3022
  if (o)
3023
3023
  return o;
3024
3024
  const { ast: s, detectError: l } = _l(e, {
@@ -3026,14 +3026,14 @@ function ml(e, t) {
3026
3026
  location: process.env.NODE_ENV !== "production",
3027
3027
  jit: !0
3028
3028
  }), i = An(s);
3029
- return l ? i : Gt[a] = i;
3029
+ return l ? i : $t[a] = i;
3030
3030
  } else {
3031
3031
  if (process.env.NODE_ENV !== "production" && !ye(e))
3032
3032
  return `${t.key}`, () => e;
3033
3033
  const n = e.cacheKey;
3034
3034
  if (n) {
3035
- const r = Gt[n];
3036
- return r || (Gt[n] = An(e));
3035
+ const r = $t[n];
3036
+ return r || ($t[n] = An(e));
3037
3037
  } else
3038
3038
  return An(e);
3039
3039
  }
@@ -3449,9 +3449,9 @@ const me = {
3449
3449
  [me.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]: "This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."
3450
3450
  };
3451
3451
  function ze(e, ...t) {
3452
- return zt(Rl[e], ...t);
3452
+ return Zt(Rl[e], ...t);
3453
3453
  }
3454
- const Pl = "11.1.11", en = -1, Lt = "en-US", qt = "", $a = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
3454
+ const Pl = "11.1.11", tn = -1, Lt = "en-US", Xt = "", $a = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
3455
3455
  function Fl() {
3456
3456
  return {
3457
3457
  upper: (e, t) => t === "text" && P(e) ? e.toUpperCase() : t === "vnode" && Y(e) && "__v_isVNode" in e ? e.children.toUpperCase() : e,
@@ -3512,7 +3512,7 @@ function $l(e = {}) {
3512
3512
  return ee.datetimeFormats = l, ee.numberFormats = i, ee.__datetimeFormatters = $, ee.__numberFormatters = ae, process.env.NODE_ENV !== "production" && (ee.__v_emitter = V.__v_emitter != null ? V.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && gl(ee, n, _e), ee;
3513
3513
  }
3514
3514
  const Cn = (e) => ({ [e]: X() });
3515
- function tn(e, t) {
3515
+ function nn(e, t) {
3516
3516
  return e instanceof RegExp ? e.test(t) : e;
3517
3517
  }
3518
3518
  function fo(e, t) {
@@ -3558,7 +3558,7 @@ const Ha = typeof Intl < "u", mo = {
3558
3558
  function Ka(e, ...t) {
3559
3559
  const { datetimeFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __datetimeFormatters: l } = e;
3560
3560
  if (process.env.NODE_ENV !== "production" && !mo.dateTimeFormat)
3561
- return o(ze(me.CANNOT_FORMAT_DATE)), qt;
3561
+ return o(ze(me.CANNOT_FORMAT_DATE)), Xt;
3562
3562
  const [i, c, f, u] = Yn(...t), _ = K(f.missingWarn) ? f.missingWarn : e.missingWarn, p = K(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, v = !!f.part, g = ga(e, f), L = s(
3563
3563
  e,
3564
3564
  // eslint-disable-line @typescript-eslint/no-explicit-any
@@ -3570,7 +3570,7 @@ function Ka(e, ...t) {
3570
3570
  let h = {}, E, T = null, y = g, k = null;
3571
3571
  const R = "datetime format";
3572
3572
  for (let $ = 0; $ < L.length; $++) {
3573
- if (E = k = L[$], process.env.NODE_ENV !== "production" && g !== E && tn(p, i) && o(ze(me.FALLBACK_TO_DATE_FORMAT, {
3573
+ if (E = k = L[$], process.env.NODE_ENV !== "production" && g !== E && nn(p, i) && o(ze(me.FALLBACK_TO_DATE_FORMAT, {
3574
3574
  key: i,
3575
3575
  target: E
3576
3576
  })), process.env.NODE_ENV !== "production" && g !== E) {
@@ -3588,9 +3588,9 @@ function Ka(e, ...t) {
3588
3588
  pa(e, i, E, _, R), y = k;
3589
3589
  }
3590
3590
  if (!G(T) || !P(E))
3591
- return r ? en : i;
3591
+ return r ? tn : i;
3592
3592
  let A = `${E}__${i}`;
3593
- Zt(u) || (A = `${A}__${JSON.stringify(u)}`);
3593
+ en(u) || (A = `${A}__${JSON.stringify(u)}`);
3594
3594
  let V = l.get(A);
3595
3595
  return V || (V = new Intl.DateTimeFormat(E, le({}, T, u)), l.set(A, V)), v ? V.formatToParts(c) : V.format(c);
3596
3596
  }
@@ -3652,7 +3652,7 @@ function ja(e, t, n) {
3652
3652
  function qa(e, ...t) {
3653
3653
  const { numberFormats: n, unresolving: r, fallbackLocale: a, onWarn: o, localeFallbacker: s } = e, { __numberFormatters: l } = e;
3654
3654
  if (process.env.NODE_ENV !== "production" && !mo.numberFormat)
3655
- return o(ze(me.CANNOT_FORMAT_NUMBER)), qt;
3655
+ return o(ze(me.CANNOT_FORMAT_NUMBER)), Xt;
3656
3656
  const [i, c, f, u] = Hn(...t), _ = K(f.missingWarn) ? f.missingWarn : e.missingWarn, p = K(f.fallbackWarn) ? f.fallbackWarn : e.fallbackWarn, v = !!f.part, g = ga(e, f), L = s(
3657
3657
  e,
3658
3658
  // eslint-disable-line @typescript-eslint/no-explicit-any
@@ -3664,7 +3664,7 @@ function qa(e, ...t) {
3664
3664
  let h = {}, E, T = null, y = g, k = null;
3665
3665
  const R = "number format";
3666
3666
  for (let $ = 0; $ < L.length; $++) {
3667
- if (E = k = L[$], process.env.NODE_ENV !== "production" && g !== E && tn(p, i) && o(ze(me.FALLBACK_TO_NUMBER_FORMAT, {
3667
+ if (E = k = L[$], process.env.NODE_ENV !== "production" && g !== E && nn(p, i) && o(ze(me.FALLBACK_TO_NUMBER_FORMAT, {
3668
3668
  key: i,
3669
3669
  target: E
3670
3670
  })), process.env.NODE_ENV !== "production" && g !== E) {
@@ -3682,9 +3682,9 @@ function qa(e, ...t) {
3682
3682
  pa(e, i, E, _, R), y = k;
3683
3683
  }
3684
3684
  if (!G(T) || !P(E))
3685
- return r ? en : i;
3685
+ return r ? tn : i;
3686
3686
  let A = `${E}__${i}`;
3687
- Zt(u) || (A = `${A}__${JSON.stringify(u)}`);
3687
+ en(u) || (A = `${A}__${JSON.stringify(u)}`);
3688
3688
  let V = l.get(A);
3689
3689
  return V || (V = new Intl.NumberFormat(E, le({}, T, u)), l.set(A, V)), v ? V.formatToParts(c) : V.format(c);
3690
3690
  }
@@ -3778,7 +3778,7 @@ function za(e, ...t) {
3778
3778
  l[L] || X()
3779
3779
  ] : po(e, i, L, s, u, f), y = h, k = i;
3780
3780
  if (!p && !(P(y) || ye(y) || Se(y)) && g && (y = v, k = y), !p && (!(P(y) || ye(y) || Se(y)) || !P(E)))
3781
- return a ? en : i;
3781
+ return a ? tn : i;
3782
3782
  if (process.env.NODE_ENV !== "production" && P(y) && e.messageCompiler == null)
3783
3783
  return `${i}`, i;
3784
3784
  let R = !1;
@@ -3811,7 +3811,7 @@ function po(e, t, n, r, a, o) {
3811
3811
  let u = X(), _, p = null, v = n, g = null;
3812
3812
  const L = "translate";
3813
3813
  for (let h = 0; h < f.length; h++) {
3814
- if (_ = g = f[h], process.env.NODE_ENV !== "production" && n !== _ && !_o(n, _) && tn(a, t) && l(ze(me.FALLBACK_TO_TRANSLATE, {
3814
+ if (_ = g = f[h], process.env.NODE_ENV !== "production" && n !== _ && !_o(n, _) && nn(a, t) && l(ze(me.FALLBACK_TO_TRANSLATE, {
3815
3815
  key: t,
3816
3816
  target: _
3817
3817
  })), process.env.NODE_ENV !== "production" && n !== _) {
@@ -3826,7 +3826,7 @@ function po(e, t, n, r, a, o) {
3826
3826
  }
3827
3827
  u = s[_] || X();
3828
3828
  let E = null, T, y;
3829
- if (process.env.NODE_ENV !== "production" && Ae && (E = window.performance.now(), T = "intlify-message-resolve-start", y = "intlify-message-resolve-end", Ee && Ee(T)), (p = i(u, t)) === null && (p = u[t]), process.env.NODE_ENV !== "production" && Ae) {
3829
+ if (process.env.NODE_ENV !== "production" && Ne && (E = window.performance.now(), T = "intlify-message-resolve-start", y = "intlify-message-resolve-end", Ee && Ee(T)), (p = i(u, t)) === null && (p = u[t]), process.env.NODE_ENV !== "production" && Ne) {
3830
3830
  const k = window.performance.now(), R = e.__v_emitter;
3831
3831
  R && E && p && R.emit("message-resolve", {
3832
3832
  type: "message-resolve",
@@ -3864,9 +3864,9 @@ function Eo(e, t, n, r, a, o) {
3864
3864
  return _.locale = n, _.key = t, _;
3865
3865
  }
3866
3866
  let i = null, c, f;
3867
- process.env.NODE_ENV !== "production" && Ae && (i = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", Ee && Ee(c));
3867
+ process.env.NODE_ENV !== "production" && Ne && (i = window.performance.now(), c = "intlify-message-compilation-start", f = "intlify-message-compilation-end", Ee && Ee(c));
3868
3868
  const u = s(r, ec(e, n, a, r, l, o));
3869
- if (process.env.NODE_ENV !== "production" && Ae) {
3869
+ if (process.env.NODE_ENV !== "production" && Ne) {
3870
3870
  const _ = window.performance.now(), p = e.__v_emitter;
3871
3871
  p && i && p.emit("message-compilation", {
3872
3872
  type: "message-compilation",
@@ -3879,9 +3879,9 @@ function Eo(e, t, n, r, a, o) {
3879
3879
  }
3880
3880
  function Zl(e, t, n) {
3881
3881
  let r = null, a, o;
3882
- process.env.NODE_ENV !== "production" && Ae && (r = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", Ee && Ee(a));
3882
+ process.env.NODE_ENV !== "production" && Ne && (r = window.performance.now(), a = "intlify-message-evaluation-start", o = "intlify-message-evaluation-end", Ee && Ee(a));
3883
3883
  const s = t(n);
3884
- if (process.env.NODE_ENV !== "production" && Ae) {
3884
+ if (process.env.NODE_ENV !== "production" && Ne) {
3885
3885
  const l = window.performance.now(), i = e.__v_emitter;
3886
3886
  i && r && i.emit("message-evaluation", {
3887
3887
  type: "message-evaluation",
@@ -3897,7 +3897,7 @@ function Kn(...e) {
3897
3897
  if (!P(t) && !ie(t) && !Se(t) && !ye(t))
3898
3898
  throw Pe(fe.INVALID_ARGUMENT);
3899
3899
  const o = ie(t) ? String(t) : (Se(t), t);
3900
- return ie(n) ? a.plural = n : P(n) ? a.default = n : G(n) && !Zt(n) ? a.named = n : ne(n) && (a.list = n), ie(r) ? a.plural = r : P(r) ? a.default = r : G(r) && le(a, r), [o, a];
3900
+ return ie(n) ? a.plural = n : P(n) ? a.default = n : G(n) && !en(n) ? a.named = n : ne(n) && (a.list = n), ie(r) ? a.plural = r : P(r) ? a.default = r : G(r) && le(a, r), [o, a];
3901
3901
  }
3902
3902
  function ec(e, t, n, r, a, o) {
3903
3903
  return {
@@ -4124,13 +4124,13 @@ About how to use the Composition API mode, see https://vue-i18n.intlify.dev/guid
4124
4124
  [be.DUPLICATE_USE_I18N_CALLING]: "Duplicate `useI18n` calling by local scope. Please don't call it on local scope, due to it does not work properly in component."
4125
4125
  };
4126
4126
  function ft(e, ...t) {
4127
- return zt(mc[e], ...t);
4127
+ return Zt(mc[e], ...t);
4128
4128
  }
4129
4129
  function Dt(e) {
4130
4130
  if (!Y(e) || ye(e))
4131
4131
  return e;
4132
4132
  for (const t in e)
4133
- if (Te(e, t))
4133
+ if (Ae(e, t))
4134
4134
  if (!t.includes("."))
4135
4135
  Y(e[t]) && Dt(e[t]);
4136
4136
  else {
@@ -4159,12 +4159,12 @@ function Ea(e, t) {
4159
4159
  if (ne(r) && r.forEach((l) => {
4160
4160
  if ("locale" in l && "resource" in l) {
4161
4161
  const { locale: i, resource: c } = l;
4162
- i ? (s[i] = s[i] || X(), Yt(c, s[i])) : Yt(c, s);
4162
+ i ? (s[i] = s[i] || X(), Ht(c, s[i])) : Ht(c, s);
4163
4163
  } else
4164
- P(l) && Yt(JSON.parse(l), s);
4164
+ P(l) && Ht(JSON.parse(l), s);
4165
4165
  }), a == null && o)
4166
4166
  for (const l in s)
4167
- Te(s, l) && Dt(s[l]);
4167
+ Ae(s, l) && Dt(s[l]);
4168
4168
  return s;
4169
4169
  }
4170
4170
  function yo(e) {
@@ -4209,7 +4209,7 @@ const gc = /* @__NO_SIDE_EFFECTS__ */ () => {
4209
4209
  return e && (t = yo(e)[er]) ? { [er]: t } : null;
4210
4210
  };
4211
4211
  function Sa(e = {}) {
4212
- const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o = Ae ? xo : Vo;
4212
+ const { __root: t, __injectWithOption: n } = e, r = t === void 0, a = e.flatJson, o = Ne ? xo : Vo;
4213
4213
  let s = K(e.inheritLocale) ? e.inheritLocale : !0;
4214
4214
  const l = o(
4215
4215
  // prettier-ignore
@@ -4281,7 +4281,7 @@ function Sa(e = {}) {
4281
4281
  function fn(b, O) {
4282
4282
  return b !== "translate" || !O.resolvedMessage;
4283
4283
  }
4284
- const we = (b, O, q, se, Ke, Ut) => {
4284
+ const we = (b, O, q, se, Ke, xt) => {
4285
4285
  $();
4286
4286
  let tt;
4287
4287
  try {
@@ -4290,9 +4290,9 @@ function Sa(e = {}) {
4290
4290
  process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__, r || (A.fallbackContext = void 0);
4291
4291
  }
4292
4292
  if (q !== "translate exists" && // for not `te` (e.g `t`)
4293
- ie(tt) && tt === en || q === "translate exists" && !tt) {
4293
+ ie(tt) && tt === tn || q === "translate exists" && !tt) {
4294
4294
  const [je, Mo] = O();
4295
- if (process.env.NODE_ENV !== "production" && t && P(je) && fn(q, Mo) && (v && (tn(p, je) || fo(_, je)) && (ft(be.FALLBACK_TO_ROOT, {
4295
+ if (process.env.NODE_ENV !== "production" && t && P(je) && fn(q, Mo) && (v && (nn(p, je) || fo(_, je)) && (ft(be.FALLBACK_TO_ROOT, {
4296
4296
  key: je,
4297
4297
  type: q
4298
4298
  }), void 0), process.env.NODE_ENV !== "production")) {
@@ -4306,7 +4306,7 @@ function Sa(e = {}) {
4306
4306
  }
4307
4307
  return t && v ? se(t) : Ke(je);
4308
4308
  } else {
4309
- if (Ut(tt))
4309
+ if (xt(tt))
4310
4310
  return tt;
4311
4311
  throw he(z.UNEXPECTED_RETURN_TYPE);
4312
4312
  }
@@ -4321,10 +4321,10 @@ function Sa(e = {}) {
4321
4321
  return _t(O, q, le({ resolvedMessage: !0 }, se || {}));
4322
4322
  }
4323
4323
  function _n(...b) {
4324
- return we((O) => Reflect.apply(Ka, null, [O, ...b]), () => Yn(...b), "datetime format", (O) => Reflect.apply(O.d, O, [...b]), () => qt, (O) => P(O) || ne(O));
4324
+ return we((O) => Reflect.apply(Ka, null, [O, ...b]), () => Yn(...b), "datetime format", (O) => Reflect.apply(O.d, O, [...b]), () => Xt, (O) => P(O) || ne(O));
4325
4325
  }
4326
4326
  function mn(...b) {
4327
- return we((O) => Reflect.apply(qa, null, [O, ...b]), () => Hn(...b), "number format", (O) => Reflect.apply(O.n, O, [...b]), () => qt, (O) => P(O) || ne(O));
4327
+ return we((O) => Reflect.apply(qa, null, [O, ...b]), () => Hn(...b), "number format", (O) => Reflect.apply(O.n, O, [...b]), () => Xt, (O) => P(O) || ne(O));
4328
4328
  }
4329
4329
  function hn(b) {
4330
4330
  return b.map((O) => P(O) || ie(O) || K(O) ? Za(String(O)) : O);
@@ -4334,7 +4334,7 @@ function Sa(e = {}) {
4334
4334
  interpolate: (b) => b,
4335
4335
  type: "vnode"
4336
4336
  };
4337
- function Mt(...b) {
4337
+ function Ut(...b) {
4338
4338
  return we((O) => {
4339
4339
  let q;
4340
4340
  const se = O;
@@ -4367,9 +4367,9 @@ function Sa(e = {}) {
4367
4367
  let O = null;
4368
4368
  const q = oo(A, i.value, l.value);
4369
4369
  for (let se = 0; se < q.length; se++) {
4370
- const Ke = c.value[q[se]] || {}, Ut = A.messageResolver(Ke, b);
4371
- if (Ut != null) {
4372
- O = Ut;
4370
+ const Ke = c.value[q[se]] || {}, xt = A.messageResolver(Ke, b);
4371
+ if (xt != null) {
4372
+ O = xt;
4373
4373
  break;
4374
4374
  }
4375
4375
  }
@@ -4386,7 +4386,7 @@ function Sa(e = {}) {
4386
4386
  if (a) {
4387
4387
  const q = { [b]: O };
4388
4388
  for (const se in q)
4389
- Te(q, se) && Dt(q[se]);
4389
+ Ae(q, se) && Dt(q[se]);
4390
4390
  O = q[b];
4391
4391
  }
4392
4392
  c.value[b] = O, A.messages = c.value;
@@ -4396,8 +4396,8 @@ function Sa(e = {}) {
4396
4396
  const q = { [b]: O };
4397
4397
  if (a)
4398
4398
  for (const se in q)
4399
- Te(q, se) && Dt(q[se]);
4400
- O = q[b], Yt(O, c.value[b]), A.messages = c.value;
4399
+ Ae(q, se) && Dt(q[se]);
4400
+ O = q[b], Ht(O, c.value[b]), A.messages = c.value;
4401
4401
  }
4402
4402
  function d(b) {
4403
4403
  return f.value[b] || {};
@@ -4417,7 +4417,7 @@ function Sa(e = {}) {
4417
4417
  function oe(b, O) {
4418
4418
  u.value[b] = le(u.value[b] || {}, O), A.numberFormats = u.value, Xa(A, b, O);
4419
4419
  }
4420
- nr++, t && Ae && (Pn(t.locale, (b) => {
4420
+ nr++, t && Ne && (Pn(t.locale, (b) => {
4421
4421
  s && (l.value = b, A.locale = b, bt(A, l.value, i.value));
4422
4422
  }), Pn(t.fallbackLocale, (b) => {
4423
4423
  s && (i.value = b, A.fallbackLocale = b, bt(A, l.value, i.value));
@@ -4491,7 +4491,7 @@ function Sa(e = {}) {
4491
4491
  setMissingHandler: un,
4492
4492
  [bo]: Sn
4493
4493
  };
4494
- return j.datetimeFormats = et, j.numberFormats = on, j.rt = dn, j.te = bn, j.tm = ht, j.d = _n, j.n = mn, j.getDateTimeFormat = d, j.setDateTimeFormat = m, j.mergeDateTimeFormat = N, j.getNumberFormat = M, j.setNumberFormat = re, j.mergeNumberFormat = oe, j[vo] = n, j[qn] = Mt, j[Xn] = En, j[Qn] = pn, process.env.NODE_ENV !== "production" && (j[Ze] = (b) => {
4494
+ return j.datetimeFormats = et, j.numberFormats = on, j.rt = dn, j.te = bn, j.tm = ht, j.d = _n, j.n = mn, j.getDateTimeFormat = d, j.setDateTimeFormat = m, j.mergeDateTimeFormat = N, j.getNumberFormat = M, j.setNumberFormat = re, j.mergeNumberFormat = oe, j[vo] = n, j[qn] = Ut, j[Xn] = En, j[Qn] = pn, process.env.NODE_ENV !== "production" && (j[Ze] = (b) => {
4495
4495
  A.__v_emitter = b;
4496
4496
  }, j[wt] = () => {
4497
4497
  A.__v_emitter = void 0;
@@ -5146,12 +5146,12 @@ function Uc(e) {
5146
5146
  return {
5147
5147
  created: (s, l) => {
5148
5148
  const [i, c] = t(l);
5149
- Ae && e.global === c && (s.__i18nWatcher = Pn(c.locale, () => {
5149
+ Ne && e.global === c && (s.__i18nWatcher = Pn(c.locale, () => {
5150
5150
  l.instance && l.instance.$forceUpdate();
5151
5151
  })), s.__composer = c, s.textContent = i;
5152
5152
  },
5153
5153
  unmounted: (s) => {
5154
- Ae && s.__i18nWatcher && (s.__i18nWatcher(), s.__i18nWatcher = void 0, delete s.__i18nWatcher), s.__composer && (s.__composer = void 0, delete s.__composer);
5154
+ Ne && s.__i18nWatcher && (s.__i18nWatcher(), s.__i18nWatcher = void 0, delete s.__i18nWatcher), s.__composer && (s.__composer = void 0, delete s.__composer);
5155
5155
  },
5156
5156
  beforeUpdate: (s, { value: l }) => {
5157
5157
  if (s.__composer) {
@@ -5282,7 +5282,7 @@ function $c(e) {
5282
5282
  return t;
5283
5283
  }
5284
5284
  function Wc(e, t) {
5285
- return Zt(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
5285
+ return en(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
5286
5286
  }
5287
5287
  function Yc(e) {
5288
5288
  return e.mode === "composition" ? e.global : e.global.__composer;
@@ -5598,7 +5598,7 @@ function Do() {
5598
5598
  function ou() {
5599
5599
  return wo() - Do() > 50 ? "landscape" : "portrait";
5600
5600
  }
5601
- const $t = wo(), su = Do(), Ln = ou(), ko = Ie("cloudSdkWindowStore", {
5601
+ const Wt = wo(), su = Do(), Ln = ou(), ko = Ie("cloudSdkWindowStore", {
5602
5602
  state: () => ({
5603
5603
  // 窗口是否激活
5604
5604
  windowActive: !0,
@@ -5607,7 +5607,7 @@ const $t = wo(), su = Do(), Ln = ou(), ko = Ie("cloudSdkWindowStore", {
5607
5607
  // 浏览器支持触摸事件
5608
5608
  windowTouch: "ontouchend" in document,
5609
5609
  // 浏览器尺寸信息
5610
- windowWidth: $t,
5610
+ windowWidth: Wt,
5611
5611
  // 窗口宽度
5612
5612
  windowHeight: su,
5613
5613
  // 浏览器窗口方向
@@ -5617,10 +5617,10 @@ const $t = wo(), su = Do(), Ln = ou(), ko = Ie("cloudSdkWindowStore", {
5617
5617
  windowPortrait: Ln === "portrait",
5618
5618
  // 竖屏
5619
5619
  // 表单布局
5620
- formLabelPosition: $t > 576 ? "right" : "top",
5621
- formLabelWidth: $t > 576 ? "auto" : "",
5620
+ formLabelPosition: Wt > 576 ? "right" : "top",
5621
+ formLabelWidth: Wt > 576 ? "auto" : "",
5622
5622
  //浏览器宽度≤768返回true
5623
- windowMax768: $t <= 768,
5623
+ windowMax768: Wt <= 768,
5624
5624
  winSizeName: ""
5625
5625
  }),
5626
5626
  getters: {
@@ -5655,146 +5655,6 @@ const $t = wo(), su = Do(), Ln = ou(), ko = Ie("cloudSdkWindowStore", {
5655
5655
  return this.winSizeName = this.SA_GET_SIZE_TYPE(), this.winSizeName;
5656
5656
  }
5657
5657
  }
5658
- }), vt = "__system:keyboardConf__", wn = "__syCacheApiFlag__", Dn = "__syCacheApiAuth__", hr = "__syCacheApiCode__", gr = "__syCacheApiKey__", kn = "__syCacheSdkConfig__", Rn = "__syCacheSystemConfig__", pr = "cacheClientId", Er = "cacheClientVersion", nn = Ie("cloudSdkSystemStore", {
5659
- state: () => ({
5660
- // ServerUrl
5661
- cacheServerUrl: "",
5662
- // 客户端信息
5663
- cacheClientInfo: {},
5664
- // 客户端ID(希望不变的,除非清除浏览器缓存或者卸载应用)
5665
- cacheClientId: "",
5666
- // 缓存版本号(如果想升级后清除客户端缓存则修改此参数值)
5667
- cacheClientVersion: "v7",
5668
- // 客户端新版本号
5669
- clientNewVersion: null,
5670
- // 键盘状态(仅iOS)
5671
- keyboardType: null,
5672
- // show|hide
5673
- keyboardHeight: 0,
5674
- // 键盘高度
5675
- safeAreaBottom: 0,
5676
- // 安全区域底部高度
5677
- // App通知权限
5678
- appNotificationPermission: !0,
5679
- //
5680
- useSSOLogin: !1,
5681
- sysIsElectron: !1,
5682
- sysIsEEUiApp: !1,
5683
- sysIsSoftware: !1,
5684
- // keyboard
5685
- cacheKeyboard: {},
5686
- // 系统设置
5687
- systemConfig: {},
5688
- // sdk配置
5689
- sdkConfig: {},
5690
- // 加密相关
5691
- apiKeyData: {},
5692
- //当前是否有网络连接
5693
- networkConnected: !0
5694
- }),
5695
- getters: {
5696
- // 系统信息
5697
- systemInfo: (e) => ({
5698
- title: "",
5699
- version: ""
5700
- })
5701
- },
5702
- actions: {
5703
- async init() {
5704
- await I.idbGetString("clearCache");
5705
- const e = await I.idbGetString("cacheServerUrl");
5706
- await I.idbSetItem("cacheServerUrl", e);
5707
- const t = await I.idbGetString(Er);
5708
- await I.idbSetItem(Er, this.cacheClientVersion), t !== this.cacheClientVersion ? await this.clear_cache() : await this.cache_read(), await this.__load_api_flag(), await this.__load_api_auth(), await this.__load_api_code(), await this.__load_api_key(), await this.__load_system_config(), await this.__load_sdk_config(), this.SA_KEYBOARD_SET(), await ue.setHeaders({
5709
- "Sy-Client-Platform": "pc-web",
5710
- "Sy-Client-Id": this.cacheClientId
5711
- });
5712
- },
5713
- async clear_cache() {
5714
- const e = I.localGet(vt);
5715
- I.localSet(vt, e), await I.idbDelItem("clearCache"), await I.idbDelItem(wn), await I.idbDelItem(Dn), await I.idbDelItem(kn), await I.idbDelItem(Rn);
5716
- },
5717
- async cache_read() {
5718
- this.cacheServerUrl = await I.idbGetString("cacheServerUrl"), this.cacheServerUrl && (window.systemConfig.apiUrl = this.cacheServerUrl);
5719
- },
5720
- async __load_api_flag() {
5721
- let e = await I.idbGetItem(wn);
5722
- e || await ue.flagGet("BASE_LOAD_COMMON_API_FLAG", {}).then((t) => {
5723
- e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), I.idbSetItem(wn, e);
5724
- }), await ue.appendApiFlag(e);
5725
- },
5726
- async __load_api_auth() {
5727
- let e = await I.idbGetItem(Dn);
5728
- e || await ue.flagGet("BASE_LOAD_COMMON_API_AUTH", {}).then((t) => {
5729
- e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), I.idbSetItem(Dn, e);
5730
- }), await ue.appendApiAuth(e);
5731
- },
5732
- async __load_api_code() {
5733
- let e = await I.idbGetItem(hr);
5734
- e || await ue.flagGet("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
5735
- e = t.data || {}, I.idbSetItem(hr, e);
5736
- });
5737
- },
5738
- async __load_api_key() {
5739
- let e = await I.idbGetString(pr);
5740
- e || (e = cvUtils.randomString(6), await I.idbSetItem(pr, e)), this.cacheClientId = e, this.apiKeyData = await I.idbGetItem(gr), this.apiKeyData || await ue.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
5741
- client_id: e
5742
- }).then(({ data: t }) => {
5743
- this.apiKeyData = t, I.idbSetItem(gr, this.apiKeyData);
5744
- });
5745
- },
5746
- /**
5747
- * 获取系统设置
5748
- * @returns {Promise<unknown>}
5749
- */
5750
- async __load_system_config() {
5751
- let e = await I.idbGetItem(Rn);
5752
- e ? this.systemConfig = e : await ue.flagGet("BASE_SYS_COMMON_PLAT_SETTING", {}).then(({ data: t }) => {
5753
- this.systemConfig = Object.assign({}, this.systemConfig, t), I.idbSetItem(Rn, this.systemConfig);
5754
- });
5755
- },
5756
- async __load_sdk_config() {
5757
- let e = await I.idbGetItem(kn);
5758
- e ? this.sdkConfig = e : await ue.flagGet("SDK_MAP_ORG_SETT_KEY", { type: "qq" }).then(({ data: t }) => {
5759
- this.sdkConfig = Object.assign({}, this.sdkConfig, t), I.idbSetItem(kn, this.sdkConfig);
5760
- });
5761
- },
5762
- /**
5763
- * 处理快捷键配置
5764
- * @param newData
5765
- * @returns {Promise<unknown>}
5766
- */
5767
- SA_KEYBOARD_SET(e) {
5768
- return new Promise((t) => {
5769
- let n = I.localGet(vt);
5770
- n || (I.localSet(vt, I.localGet("__keyboard:data__")), I.localDel("__keyboard:data__"));
5771
- const r = e || n || {};
5772
- r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter", I.localSet(vt, r), this.cacheKeyboard = r, cvUtils.__cc_isElectron, t(r);
5773
- });
5774
- },
5775
- /**
5776
- * 获取IP地址详情
5777
- * @param ip
5778
- * @param callback
5779
- */
5780
- SA_SYS_IP_INFO(e, t) {
5781
- if (!cvUtils.strExists(e, "."))
5782
- return;
5783
- let n = "__ip" + e.substring(0, 1) + "__";
5784
- const r = I.localSet(n);
5785
- let a = cvUtils.strGetMiddle(e, "", "."), o = r[a] || e;
5786
- if (typeof o == "object") {
5787
- typeof t == "function" && t(o);
5788
- return;
5789
- }
5790
- const s = {
5791
- keyId: o || e
5792
- };
5793
- ue.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
5794
- I.localSet(n, s), typeof t == "function" && t(o);
5795
- });
5796
- }
5797
- }
5798
5658
  });
5799
5659
  function iu(e) {
5800
5660
  return new Promise((t, n) => {
@@ -5823,11 +5683,11 @@ function lu(e) {
5823
5683
  function cu(e, t, n = !1) {
5824
5684
  return n ? !!t.find((r) => r && r.indexOf("*") && new RegExp("^" + r.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&").replace(/\*/g, ".*") + "$", "g").test(e) ? !0 : r == e) : t.includes(e);
5825
5685
  }
5826
- function Sr(e, t) {
5686
+ function hr(e, t) {
5827
5687
  let n = "";
5828
5688
  return e.includes("http://") || e.includes("https://") ? n = e : n = t + e, n = n.replace(/([^:]\/)\/+/g, "$1"), n;
5829
5689
  }
5830
- const br = {
5690
+ const gr = {
5831
5691
  400: "请求错误",
5832
5692
  400: "无效请求",
5833
5693
  401: "未经授权",
@@ -5842,7 +5702,7 @@ const br = {
5842
5702
  503: "服务不可用",
5843
5703
  504: "网络超时",
5844
5704
  505: "HTTP版本不受支持"
5845
- }, vr = {
5705
+ }, pr = {
5846
5706
  400: "参数错误",
5847
5707
  401: "没有权限,请变更请求",
5848
5708
  402: "支付错误",
@@ -5859,7 +5719,7 @@ const br = {
5859
5719
  function uu(e, t) {
5860
5720
  e = parseInt(e);
5861
5721
  let n = "提示", r = "程序异常,请检查网络或联系管理员";
5862
- return br[e] && (n = br[e]), vr[e] && (r = vr[e]), {
5722
+ return gr[e] && (n = gr[e]), pr[e] && (r = pr[e]), {
5863
5723
  title: n,
5864
5724
  status: e,
5865
5725
  message: r
@@ -6025,7 +5885,7 @@ class fu {
6025
5885
  *
6026
5886
  */
6027
5887
  async apiAll(t, n, r) {
6028
- let a = Sr(n, this.baseURL);
5888
+ let a = hr(n, this.baseURL);
6029
5889
  this.__encryp_parse(n);
6030
5890
  let o = this.__parse_method_type(t), s = this.flagAuth[this.flagCurr] || null, l = {};
6031
5891
  s && (l = s.split(",").reduce((_, p) => {
@@ -6051,7 +5911,7 @@ class fu {
6051
5911
  });
6052
5912
  if (o != "DOWNLOAD") if (o == "MOCK")
6053
5913
  try {
6054
- let _ = n.includes(".json") ? `${n}` : `${n}.json`, p = Sr(_, this.baseMock + "/");
5914
+ let _ = n.includes(".json") ? `${n}` : `${n}.json`, p = hr(_, this.baseMock + "/");
6055
5915
  const v = await fetch(p);
6056
5916
  responseInfo.statusCode = v.status, responseInfo.errMsg = "request:ok";
6057
5917
  const g = await v.json();
@@ -6236,7 +6096,8 @@ const du = Ie("cloudSdkCommonStore", {
6236
6096
  BASE_LOAD_COMMON_API_CODE: "app:true;auth:false;",
6237
6097
  BASE_ACCSYS_COMMON_KEYCLIENT: "app:true;auth:false;",
6238
6098
  BASE_SYS_COMMON_PLAT_SETTING: "app:true;auth:false;",
6239
- SDK_FILE_COMMON_UPLOAD_SIGNATURE: "app=true,token=true"
6099
+ SDK_FILE_COMMON_UPLOAD_SIGNATURE: "app=true,token=true",
6100
+ SDK_MAP_ORG_SETT_KEY: "app=true,token=true"
6240
6101
  }, hu = {
6241
6102
  100101: "未经授权,请登录"
6242
6103
  };
@@ -6247,7 +6108,7 @@ function gu(e) {
6247
6108
  if (e.code == 100206)
6248
6109
  window.syCacheDialog401 = "none";
6249
6110
  else
6250
- return window.syCacheDialog401 = "show", Ne().SA_ACCOUNT_LOGOUT(), iu({
6111
+ return window.syCacheDialog401 = "show", Te().SA_ACCOUNT_LOGOUT(), iu({
6251
6112
  title: "友情提示",
6252
6113
  message: hu[100101],
6253
6114
  confirmButtonText: "确定",
@@ -6266,7 +6127,7 @@ function gu(e) {
6266
6127
  }
6267
6128
  let Re = null;
6268
6129
  function Ro(e = {}) {
6269
- const t = Qt();
6130
+ const t = Jt();
6270
6131
  Re = new fu({
6271
6132
  // timeout: 60 * 1000, // 请求超时时间毫秒
6272
6133
  // withCredentials: true, // true|false 异步请求携带cookie(Check cross-site Access-Control)
@@ -6304,7 +6165,7 @@ function Ro(e = {}) {
6304
6165
  e && (n = e.ApiFlagSet || {}, r = e.ApiAuthSet || {});
6305
6166
  let a = Object.assign({}, _u, n, t.syOpenApiFlag), o = Object.assign({}, mu, r, t.syOpenApiAuth);
6306
6167
  Re.setApiFlag(a), Re.setApiAuth(o);
6307
- const s = du(), l = Ne();
6168
+ const s = du(), l = Te();
6308
6169
  return Re.interceptors.request.use(
6309
6170
  (i) => {
6310
6171
  const c = i.customs || {};
@@ -6359,7 +6220,7 @@ const ue = new Proxy(
6359
6220
  function ea(e) {
6360
6221
  return typeof e == "string" && e.trim() !== "" && e !== "undefined";
6361
6222
  }
6362
- const xe = "syCacheAppInfo", Ve = "syCacheAppToken", yt = "syCacheAppJwt", Tt = "syCacheAppRbac", yr = {
6223
+ const xe = "syCacheAppInfo", Ve = "syCacheAppToken", vt = "syCacheAppJwt", yt = "syCacheAppRbac", Er = {
6363
6224
  nickname: "",
6364
6225
  staff_nickname: "",
6365
6226
  id: 0,
@@ -6383,7 +6244,7 @@ const xe = "syCacheAppInfo", Ve = "syCacheAppToken", yt = "syCacheAppJwt", Tt =
6383
6244
  function Eu(e) {
6384
6245
  return Math.floor(Date.now() / 1e3) >= e;
6385
6246
  }
6386
- const Ne = Ie("cloudSdkAccountStore", {
6247
+ const Te = Ie("cloudSdkAccountStore", {
6387
6248
  state: () => ({
6388
6249
  // staffId: 0,
6389
6250
  account_nick: "",
@@ -6392,7 +6253,7 @@ const Ne = Ie("cloudSdkAccountStore", {
6392
6253
  // 账号信息
6393
6254
  accountInfo: I.localGet(xe) || {},
6394
6255
  accountToken: I.localGet(Ve) || "",
6395
- accountJwt: I.localGet(yt) || ""
6256
+ accountJwt: I.localGet(vt) || ""
6396
6257
  }),
6397
6258
  getters: {
6398
6259
  cacheBizsId: (e) => {
@@ -6473,7 +6334,7 @@ const Ne = Ie("cloudSdkAccountStore", {
6473
6334
  * @returns {Promise<unknown>}
6474
6335
  */
6475
6336
  SA_ACCOUNT_INFO_PARSE(e) {
6476
- return e = e || yr, cvUtils.isEmpty(e.acc_pre_name) && (e.acc_pre_name = e.acc_pre_nick), e.account_id = cvUtils.parseNumber(e.account_id), e.token_access = e.account_id > 0 ? e.token_access || this.accountToken : "", e.account_avatar_cdn = e.account_avatar_cdn || e.per_avatar_cdn, e.account_mobile_hide = e.account_mobile_hide || e.ucenter_mobile_hide || e.ucenter_mobile, this.accountInfo = e, e;
6337
+ return e = e || Er, cvUtils.isEmpty(e.acc_pre_name) && (e.acc_pre_name = e.acc_pre_nick), e.account_id = cvUtils.parseNumber(e.account_id), e.token_access = e.account_id > 0 ? e.token_access || this.accountToken : "", e.account_avatar_cdn = e.account_avatar_cdn || e.per_avatar_cdn, e.account_mobile_hide = e.account_mobile_hide || e.ucenter_mobile_hide || e.ucenter_mobile, this.accountInfo = e, e;
6477
6338
  },
6478
6339
  SA_ACCOUNT_INFO_SET(e) {
6479
6340
  return new Promise(async (t) => {
@@ -6485,21 +6346,21 @@ const Ne = Ie("cloudSdkAccountStore", {
6485
6346
  return this.account_nick;
6486
6347
  },
6487
6348
  SA_ACCOUNT_REFRESH() {
6488
- this.accountInfo = I.localGet(xe) || yr, this.accountToken = I.localGet(Ve) || "", this.accountJwt = I.localGet(yt) || "", ue.setDefHeaders({
6349
+ this.accountInfo = I.localGet(xe) || Er, this.accountToken = I.localGet(Ve) || "", this.accountJwt = I.localGet(vt) || "", ue.setDefHeaders({
6489
6350
  syOpenAppToken: this.accountToken || "",
6490
6351
  Authorization: "Bearer " + this.accountJwt || ""
6491
6352
  });
6492
6353
  },
6493
6354
  // 登录
6494
6355
  async SA_ACCOUNT_SIGNIN(e) {
6495
- e = this.SA_ACCOUNT_INFO_PARSE(e), I.localSet(xe, e), I.localSet(Ve, e.token_access || ""), I.localSet(yt, e.token_jwt || ""), I.localSet(Tt, ""), I.idbSave(Ve, e.token_access || ""), await this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), Ct().QK_SEND_LOGIN_MSG();
6356
+ e = this.SA_ACCOUNT_INFO_PARSE(e), I.localSet(xe, e), I.localSet(Ve, e.token_access || ""), I.localSet(vt, e.token_jwt || ""), I.localSet(yt, ""), I.idbSave(Ve, e.token_access || ""), await this.SA_ACCOUNT_REFRESH(), await this.SA_ACCOUNT_RBAC_REFRESH(!0), Ct().QK_SEND_LOGIN_MSG();
6496
6357
  },
6497
6358
  /**
6498
6359
  * 退出登录(打开登录页面)
6499
6360
  * @param appendFrom
6500
6361
  */
6501
6362
  async SA_ACCOUNT_LOGOUT(e) {
6502
- this.ACCOUNT_SET_PREV(), I.sessionClear(), I.localSet(xe, ""), I.localSet(Ve, ""), I.localSet(yt, ""), I.localSet(Tt, ""), I.localDel(xe), I.localDel(Ve), I.localDel(yt), I.localDel(Tt), this.SA_ACCOUNT_REFRESH(), Ct().QK_SEND_LOGOUT_MSG();
6363
+ this.ACCOUNT_SET_PREV(), I.sessionClear(), I.localSet(xe, ""), I.localSet(Ve, ""), I.localSet(vt, ""), I.localSet(yt, ""), I.localDel(xe), I.localDel(Ve), I.localDel(vt), I.localDel(yt), this.SA_ACCOUNT_REFRESH(), Ct().QK_SEND_LOGOUT_MSG();
6503
6364
  },
6504
6365
  /**
6505
6366
  * @param {Boolean} isForce 是否强制刷新
@@ -6507,9 +6368,9 @@ const Ne = Ie("cloudSdkAccountStore", {
6507
6368
  async SA_ACCOUNT_RBAC_REFRESH(e) {
6508
6369
  return e = e || !1, new Promise(async (t) => {
6509
6370
  if (this.accountToken) {
6510
- let n = I.localGet(Tt) || "";
6371
+ let n = I.localGet(yt) || "";
6511
6372
  e && n == "" ? await ue.flagGet("ORG_SYS_BASE_MYRBAC", {}).then((r) => {
6512
- r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (I.localSet(Tt, r.data || ""), t(r.data || ""));
6373
+ r.status == 100600 ? this.SA_ACCOUNT_LOGOUT() : r.status == 200 && (I.localSet(yt, r.data || ""), t(r.data || ""));
6513
6374
  }).catch(() => {
6514
6375
  t("");
6515
6376
  }) : t(n);
@@ -6520,6 +6381,146 @@ const Ne = Ie("cloudSdkAccountStore", {
6520
6381
  ACCOUNT_SET_PREV() {
6521
6382
  }
6522
6383
  }
6384
+ }), Tt = "__system:keyboardConf__", wn = "__syCacheApiFlag__", Dn = "__syCacheApiAuth__", Sr = "__syCacheApiCode__", br = "__syCacheApiKey__", kn = "__syCacheSdkConfig__", Rn = "__syCacheSystemConfig__", vr = "cacheClientId", yr = "cacheClientVersion", Mt = Ie("cloudSdkSystemStore", {
6385
+ state: () => ({
6386
+ // ServerUrl
6387
+ cacheServerUrl: "",
6388
+ // 客户端信息
6389
+ cacheClientInfo: {},
6390
+ // 客户端ID(希望不变的,除非清除浏览器缓存或者卸载应用)
6391
+ cacheClientId: "",
6392
+ // 缓存版本号(如果想升级后清除客户端缓存则修改此参数值)
6393
+ cacheClientVersion: "v7",
6394
+ // 客户端新版本号
6395
+ clientNewVersion: null,
6396
+ // 键盘状态(仅iOS)
6397
+ keyboardType: null,
6398
+ // show|hide
6399
+ keyboardHeight: 0,
6400
+ // 键盘高度
6401
+ safeAreaBottom: 0,
6402
+ // 安全区域底部高度
6403
+ // App通知权限
6404
+ appNotificationPermission: !0,
6405
+ //
6406
+ useSSOLogin: !1,
6407
+ sysIsElectron: !1,
6408
+ sysIsEEUiApp: !1,
6409
+ sysIsSoftware: !1,
6410
+ // keyboard
6411
+ cacheKeyboard: {},
6412
+ // 系统设置
6413
+ systemConfig: {},
6414
+ // sdk配置
6415
+ sdkConfig: {},
6416
+ // 加密相关
6417
+ apiKeyData: {},
6418
+ //当前是否有网络连接
6419
+ networkConnected: !0
6420
+ }),
6421
+ getters: {
6422
+ // 系统信息
6423
+ systemInfo: (e) => ({
6424
+ title: "",
6425
+ version: ""
6426
+ })
6427
+ },
6428
+ actions: {
6429
+ async init() {
6430
+ await I.idbGetString("clearCache");
6431
+ const e = await I.idbGetString("cacheServerUrl");
6432
+ await I.idbSetItem("cacheServerUrl", e);
6433
+ const t = await I.idbGetString(yr);
6434
+ await I.idbSetItem(yr, this.cacheClientVersion), t !== this.cacheClientVersion ? await this.clear_cache() : await this.cache_read(), await this.__load_api_flag(), await this.__load_api_auth(), await this.__load_api_code(), await this.__load_api_key(), await this.__load_system_config(), await this.__load_sdk_config(), this.SA_KEYBOARD_SET(), await ue.setHeaders({
6435
+ "Sy-Client-Platform": "pc-web",
6436
+ "Sy-Client-Id": this.cacheClientId
6437
+ });
6438
+ },
6439
+ async clear_cache() {
6440
+ const e = I.localGet(Tt);
6441
+ I.localSet(Tt, e), await I.idbDelItem("clearCache"), await I.idbDelItem(wn), await I.idbDelItem(Dn), await I.idbDelItem(kn), await I.idbDelItem(Rn);
6442
+ },
6443
+ async cache_read() {
6444
+ this.cacheServerUrl = await I.idbGetString("cacheServerUrl"), this.cacheServerUrl && (window.systemConfig.apiUrl = this.cacheServerUrl);
6445
+ },
6446
+ async __load_api_flag() {
6447
+ let e = await I.idbGetItem(wn);
6448
+ e || await ue.flagGet("BASE_LOAD_COMMON_API_FLAG", {}).then((t) => {
6449
+ e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), I.idbSetItem(wn, e);
6450
+ }), await ue.appendApiFlag(e);
6451
+ },
6452
+ async __load_api_auth() {
6453
+ let e = await I.idbGetItem(Dn);
6454
+ e || await ue.flagGet("BASE_LOAD_COMMON_API_AUTH", {}).then((t) => {
6455
+ e = t.data || {}, window._SY_OPEN_API_FLAG_ || (window._SY_OPEN_API_FLAG_ = {}), window._SY_OPEN_API_FLAG_ = Object.assign(window._SY_OPEN_API_FLAG_, e), I.idbSetItem(Dn, e);
6456
+ }), await ue.appendApiAuth(e);
6457
+ },
6458
+ async __load_api_code() {
6459
+ let e = await I.idbGetItem(Sr);
6460
+ e || await ue.flagGet("BASE_LOAD_COMMON_API_CODE", {}).then((t) => {
6461
+ e = t.data || {}, I.idbSetItem(Sr, e);
6462
+ });
6463
+ },
6464
+ async __load_api_key() {
6465
+ let e = await I.idbGetString(vr);
6466
+ e || (e = cvUtils.randomString(6), await I.idbSetItem(vr, e)), this.cacheClientId = e, this.apiKeyData = await I.idbGetItem(br), this.apiKeyData || await ue.setOptions({ encrypt: !1 }).flagGet("BASE_ACCSYS_COMMON_KEYCLIENT", {
6467
+ client_id: e
6468
+ }).then(({ data: t }) => {
6469
+ this.apiKeyData = t, I.idbSetItem(br, this.apiKeyData);
6470
+ });
6471
+ },
6472
+ /**
6473
+ * 获取系统设置
6474
+ * @returns {Promise<unknown>}
6475
+ */
6476
+ async __load_system_config() {
6477
+ let e = await I.idbGetItem(Rn);
6478
+ e ? this.systemConfig = e : await ue.flagGet("BASE_SYS_COMMON_PLAT_SETTING", {}).then(({ data: t }) => {
6479
+ this.systemConfig = Object.assign({}, this.systemConfig, t), I.idbSetItem(Rn, this.systemConfig);
6480
+ });
6481
+ },
6482
+ async __load_sdk_config() {
6483
+ let e = await I.idbGetItem(kn);
6484
+ e ? this.sdkConfig = e : (this.sdkConfig = {}, Te().accountIsLogin && await ue.flagGet("SDK_MAP_ORG_SETT_KEY", { type: "qq" }).then(({ data: t }) => {
6485
+ this.sdkConfig = Object.assign({}, this.sdkConfig, t), I.idbSetItem(kn, this.sdkConfig);
6486
+ }));
6487
+ },
6488
+ /**
6489
+ * 处理快捷键配置
6490
+ * @param newData
6491
+ * @returns {Promise<unknown>}
6492
+ */
6493
+ SA_KEYBOARD_SET(e) {
6494
+ return new Promise((t) => {
6495
+ let n = I.localGet(Tt);
6496
+ n || (I.localSet(Tt, I.localGet("__keyboard:data__")), I.localDel("__keyboard:data__"));
6497
+ const r = e || n || {};
6498
+ r.screenshot_key = (r.screenshot_key || "").trim().toLowerCase(), r.send_button_app = r.send_button_app || "button", r.send_button_desktop = r.send_button_desktop || "enter", I.localSet(Tt, r), this.cacheKeyboard = r, cvUtils.__cc_isElectron, t(r);
6499
+ });
6500
+ },
6501
+ /**
6502
+ * 获取IP地址详情
6503
+ * @param ip
6504
+ * @param callback
6505
+ */
6506
+ SA_SYS_IP_INFO(e, t) {
6507
+ if (!cvUtils.strExists(e, "."))
6508
+ return;
6509
+ let n = "__ip" + e.substring(0, 1) + "__";
6510
+ const r = I.localSet(n);
6511
+ let a = cvUtils.strGetMiddle(e, "", "."), o = r[a] || e;
6512
+ if (typeof o == "object") {
6513
+ typeof t == "function" && t(o);
6514
+ return;
6515
+ }
6516
+ const s = {
6517
+ keyId: o || e
6518
+ };
6519
+ ue.setTimeout(8e3).flagGet("BASE_SYS_COMMON_SYS_INFO", { ip: e }).then(() => {
6520
+ I.localSet(n, s), typeof t == "function" && t(o);
6521
+ });
6522
+ }
6523
+ }
6523
6524
  });
6524
6525
  function Tr(e) {
6525
6526
  return e = e.replace(/^\//, ""), e = e.replace(/\//g, "_"), e;
@@ -6548,16 +6549,16 @@ function Fo(e) {
6548
6549
  return !1;
6549
6550
  let n = I.localGet("syCacheAppRbac") || "";
6550
6551
  if (t == "[object String]")
6551
- return Xt(e, n);
6552
+ return Qt(e, n);
6552
6553
  if (t === "[object Array]") {
6553
6554
  for (const r of e)
6554
- if (!Xt(r, n))
6555
+ if (!Qt(r, n))
6555
6556
  return !1;
6556
6557
  return !0;
6557
6558
  }
6558
6559
  return !1;
6559
6560
  }
6560
- function Xt(e, t) {
6561
+ function Qt(e, t) {
6561
6562
  if (e = e || "", e = e.trim(), e == "")
6562
6563
  return !1;
6563
6564
  e.includes("@") || (e = `${vu}@${e}`);
@@ -6604,7 +6605,7 @@ const an = Ie("cloudSdkProductStore", {
6604
6605
  let l = [];
6605
6606
  for (let i in o) {
6606
6607
  let c = o[i];
6607
- c = Po(c, i), c.isMenu === !0 && (c.isRbac && !c.path || (c.children && c.children.length > 0 && (c.children = t(c.children, s)), c.collapsable === !1 && e.push(c.name), Xt(c.name, s) && l.push(c)));
6608
+ c = Po(c, i), c.isMenu === !0 && (c.isRbac && !c.path || (c.children && c.children.length > 0 && (c.children = t(c.children, s)), c.collapsable === !1 && e.push(c.name), Qt(c.name, s) && l.push(c)));
6608
6609
  }
6609
6610
  return l;
6610
6611
  }
@@ -6622,7 +6623,7 @@ const an = Ie("cloudSdkProductStore", {
6622
6623
  isAlone: !0,
6623
6624
  name: "login",
6624
6625
  path: "/login",
6625
- component: () => import("./login-CyC5Sw3L.js")
6626
+ component: () => import("./login-rAR1-kV2.js")
6626
6627
  }
6627
6628
  ], Tu = [
6628
6629
  {
@@ -6630,14 +6631,14 @@ const an = Ie("cloudSdkProductStore", {
6630
6631
  isAlone: !0,
6631
6632
  name: "alone_run",
6632
6633
  path: "/alone_run",
6633
- component: () => import("./alone_run-FYjsSUIo.js")
6634
+ component: () => import("./alone_run-DwmETUUB.js")
6634
6635
  },
6635
6636
  {
6636
6637
  meta: { title: "错误", isAlone: !0 },
6637
6638
  isAlone: !0,
6638
6639
  name: "404",
6639
6640
  path: "/:catchAll(.*)",
6640
- component: () => import("./404-BTk3Yt4o.js")
6641
+ component: () => import("./404-BC8EGJIq.js")
6641
6642
  }
6642
6643
  ], Au = [
6643
6644
  {
@@ -6645,7 +6646,7 @@ const an = Ie("cloudSdkProductStore", {
6645
6646
  isAlone: !1,
6646
6647
  name: "none",
6647
6648
  path: "/none",
6648
- component: () => import("./none-DToicq7t.js")
6649
+ component: () => import("./none-DZ6wSjZB.js")
6649
6650
  }
6650
6651
  ], rn = Ie("cloudSdkPermissionStore", {
6651
6652
  state: () => ({
@@ -6683,7 +6684,7 @@ const an = Ie("cloudSdkProductStore", {
6683
6684
  */
6684
6685
  SA_PERMS_ROUTER_CHECK(e) {
6685
6686
  let n = Po(e).name;
6686
- return !!(this.whiteList.includes(n) || Xt(n, this.rbacLastStr));
6687
+ return !!(this.whiteList.includes(n) || Qt(n, this.rbacLastStr));
6687
6688
  },
6688
6689
  SA_PERMS_ROUTER_SET(e) {
6689
6690
  },
@@ -6727,7 +6728,7 @@ const Cu = Ie("cloudSdkApplicationStore", {
6727
6728
  }),
6728
6729
  getters: {
6729
6730
  openCaseInfo: (e) => {
6730
- let t = window.shiyunProductInfo || {}, n = Qt(), r = nn().systemConfig || {}, a = n.syAppConnectRole, o = Object.assign({}, e.defaultCaseInfo, t), s = n.syProductTitle || "ShiyunProduct", l = Ar[a] ? Ar[a] : "管理系统", i = s;
6731
+ let t = window.shiyunProductInfo || {}, n = Jt(), r = Mt().systemConfig || {}, a = n.syAppConnectRole, o = Object.assign({}, e.defaultCaseInfo, t), s = n.syProductTitle || "ShiyunProduct", l = Ar[a] ? Ar[a] : "管理系统", i = s;
6731
6732
  const c = r.PLAT_BRAND || (o == null ? void 0 : o.PLAT_BRAND), f = r.PLAT_LOGO_CDN || o.PLAT_LOGO_CDN;
6732
6733
  f && Nu(f);
6733
6734
  const u = l || "十云";
@@ -6750,7 +6751,7 @@ const Cu = Ie("cloudSdkApplicationStore", {
6750
6751
  });
6751
6752
  function Ou() {
6752
6753
  return new Promise(async (e) => {
6753
- Ft().clear_cache(), Ge().clear_cache(), nn().clear_cache(), Ne().clear_cache(), an().clear_cache(), I.idbSetItem("cacheClearHandle", "handle").then((t) => {
6754
+ Ft().clear_cache(), Ge().clear_cache(), Mt().clear_cache(), Te().clear_cache(), an().clear_cache(), I.idbSetItem("cacheClearHandle", "handle").then((t) => {
6754
6755
  e();
6755
6756
  });
6756
6757
  });
@@ -6771,8 +6772,8 @@ function Iu() {
6771
6772
  "windowPortrait",
6772
6773
  "formLabelPosition"
6773
6774
  ]),
6774
- ...ke(nn, ["cacheServerUrl", "systemConfig", "sysIsElectron", "sysIsEEUiApp", "sysIsSoftware"]),
6775
- ...ke(Ne, [
6775
+ ...ke(Mt, ["cacheServerUrl", "systemConfig", "sysIsElectron", "sysIsEEUiApp", "sysIsSoftware"]),
6776
+ ...ke(Te, [
6776
6777
  "accountIsLogin",
6777
6778
  "accountInfo",
6778
6779
  "accountToken",
@@ -7043,7 +7044,7 @@ function Fu(e, t, n, r, a, o) {
7043
7044
  }, {
7044
7045
  default: C(() => [
7045
7046
  (F(), W("div", {
7046
- class: Ht(n.className),
7047
+ class: Kt(n.className),
7047
7048
  key: i.path
7048
7049
  }, [
7049
7050
  (F(), H(Ko(l)))
@@ -7197,7 +7198,7 @@ function Wu(e, t, n, r, a, o) {
7197
7198
  D("div", $u, [
7198
7199
  (F(!0), W(ce, null, Oe(a.sett_tags, (u, _) => (F(), H(i, {
7199
7200
  id: a.activeTag == u.name ? "tagId" : "",
7200
- class: Ht(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
7201
+ class: Kt(["tag xxxxxx-tag", a.activeTag == u.name ? "active" : ""]),
7201
7202
  key: u.name,
7202
7203
  closable: u.path !== "/index",
7203
7204
  onClose: (p) => o.removeTag(u, _),
@@ -7514,7 +7515,7 @@ const af = /* @__PURE__ */ ge(zu, [["render", nf]]), rf = {
7514
7515
  this.changeValue(!1), this.formData = {};
7515
7516
  },
7516
7517
  handleLogout() {
7517
- const e = Ne();
7518
+ const e = Te();
7518
7519
  this.$request.flagPost("BASE_PASSPORT_LOGOUT", {}).finally(() => {
7519
7520
  e.SA_ACCOUNT_LOGOUT(), this.$router.push({
7520
7521
  path: "/login"
@@ -7856,7 +7857,7 @@ const Cf = /* @__PURE__ */ ge(cf, [["render", Nf]]), Of = {
7856
7857
  e(), this.frameHeadSysSettDia = !1;
7857
7858
  },
7858
7859
  frameHandleCommand(e) {
7859
- const t = Ne();
7860
+ const t = Te();
7860
7861
  switch (e) {
7861
7862
  case "msg":
7862
7863
  this.$message.info("应用暂未开通,敬请期待");
@@ -7921,7 +7922,7 @@ const Cf = /* @__PURE__ */ ge(cf, [["render", Nf]]), Of = {
7921
7922
  handleType: t,
7922
7923
  business_id: e.business_id || 0
7923
7924
  }).then(async (n) => {
7924
- n.status == 200 && (await Ne().SA_ACCOUNT_SIGNIN(n.data || {}), this.$message({
7925
+ n.status == 200 && (await Te().SA_ACCOUNT_SIGNIN(n.data || {}), this.$message({
7925
7926
  type: "success",
7926
7927
  message: "登入成功...",
7927
7928
  duration: 1e3
@@ -8157,7 +8158,7 @@ function Yf(e, t, n, r, a, o) {
8157
8158
  }, null, 8, ["modelValue", "onRefreshFunc", "onReselectFunc", "onSelectFunc"])) : te("", !0)
8158
8159
  ]);
8159
8160
  }
8160
- const Xd = /* @__PURE__ */ ge(Of, [["render", Yf]]), Hf = {
8161
+ const qd = /* @__PURE__ */ ge(Of, [["render", Yf]]), Hf = {
8161
8162
  data() {
8162
8163
  return {
8163
8164
  watemarkText: "shiyun"
@@ -8165,7 +8166,7 @@ const Xd = /* @__PURE__ */ ge(Of, [["render", Yf]]), Hf = {
8165
8166
  },
8166
8167
  computed: {
8167
8168
  watemarkConf() {
8168
- let e = this.openCaseInfo.LAST_IP_BRAND || "", n = Ne().accountInfo || null;
8169
+ let e = this.openCaseInfo.LAST_IP_BRAND || "", n = Te().accountInfo || null;
8169
8170
  return n && n.account_mobile_hide && (e = n.business_name + n.account_mobile_hide), {
8170
8171
  content: e,
8171
8172
  zIndex: -1,
@@ -8192,7 +8193,7 @@ function Kf(e, t, n, r, a, o) {
8192
8193
  _: 3
8193
8194
  }, 16);
8194
8195
  }
8195
- const Qd = /* @__PURE__ */ ge(Hf, [["render", Kf]]), jf = {
8196
+ const Xd = /* @__PURE__ */ ge(Hf, [["render", Kf]]), jf = {
8196
8197
  name: "SdkFormEdit",
8197
8198
  props: {
8198
8199
  modelValue: {
@@ -8579,12 +8580,12 @@ function fd(e, t, n, r, a, o) {
8579
8580
  key: L
8580
8581
  }, [
8581
8582
  S(u, {
8582
- class: Ht(o.badgeValue(g.filelog_id) == 0 && "isshowBadge"),
8583
+ class: Kt(o.badgeValue(g.filelog_id) == 0 && "isshowBadge"),
8583
8584
  value: o.badgeValue(g.filelog_id)
8584
8585
  }, {
8585
8586
  default: C(() => [
8586
8587
  D("img", {
8587
- class: Ht(a.activeImageState[L] && "active"),
8588
+ class: Kt(a.activeImageState[L] && "active"),
8588
8589
  src: g.cdn_full_path,
8589
8590
  alt: "",
8590
8591
  onClick: (h) => o.handleClickImage(h, g, L)
@@ -8943,7 +8944,7 @@ function Ad(e, t, n, r, a, o) {
8943
8944
  [E, a.isLoading]
8944
8945
  ]);
8945
8946
  }
8946
- const Jd = /* @__PURE__ */ ge(pd, [["render", Ad]]), Nd = {
8947
+ const Qd = /* @__PURE__ */ ge(pd, [["render", Ad]]), Nd = {
8947
8948
  emits: ["handleCallback", "close"],
8948
8949
  props: {
8949
8950
  // 选一个就关闭
@@ -9161,7 +9162,7 @@ function kd(e, t, n, r, a, o) {
9161
9162
  [E, a.isLoading]
9162
9163
  ]);
9163
9164
  }
9164
- const zd = /* @__PURE__ */ ge(Nd, [["render", kd]]);
9165
+ const Jd = /* @__PURE__ */ ge(Nd, [["render", kd]]);
9165
9166
  (function() {
9166
9167
  if (typeof EventTarget < "u") {
9167
9168
  let e = EventTarget.prototype.addEventListener;
@@ -9174,7 +9175,7 @@ var Rd = {
9174
9175
  methods: {
9175
9176
  // 打开协议
9176
9177
  jumpsXieyi(e) {
9177
- let t = Qt(), n = "";
9178
+ let t = Jt(), n = "";
9178
9179
  n = t.syApiBaseUrl + "base.base_sys/show_agreement/" + e + ".html", n = n + "?syOpenAppProject=" + t.syAppProjectSign, n = n + "&syOpenAppId=" + t.syAppConnectId, window.open(n);
9179
9180
  },
9180
9181
  // 返回上级
@@ -9427,9 +9428,8 @@ function Ud(e) {
9427
9428
  for (const [t, n] of Object.entries(es))
9428
9429
  e.component("ElIcon" + t, n);
9429
9430
  }
9430
- const xd = "__syCacheSdkConfig__";
9431
- async function Vd(e) {
9432
- const t = await I.idbGetItem(xd), n = {
9431
+ async function xd(e) {
9432
+ const t = Mt.sdkConfig, n = {
9433
9433
  // upAction: lastConfig.VITE_SY_API_URL + 'sdks.sdk_file/common/upload_image',
9434
9434
  signatureFn: ue.flagPost("SDK_FILE_COMMON_UPLOAD_SIGNATURE"),
9435
9435
  upHeaders: {
@@ -9497,22 +9497,22 @@ async function Vd(e) {
9497
9497
  for (const [r, a] of Object.entries(ns))
9498
9498
  e.component("cvSvg" + r, a);
9499
9499
  }
9500
- async function Zd(e, t) {
9501
- rs(t), Ro(e), Ft().init(), Ge().init(), await nn().init(), await Ne().init();
9500
+ async function zd(e, t) {
9501
+ rs(t), Ro(e), Ft().init(), Ge().init(), await Mt().init(), await Te().init();
9502
9502
  }
9503
- async function e_(e, t, n, r, a = "", o = null) {
9503
+ async function Zd(e, t, n, r, a = "", o = null) {
9504
9504
  an().init(r), rn().init(n);
9505
9505
  let s = e.config.globalProperties;
9506
9506
  s.$onLaunched = new Promise((i) => {
9507
9507
  s.$isResolve = i;
9508
- }), s.$request = ue, s.$cache = I, Ud(e), await Vd(e), Fd(e, s), e.mixin(Iu()), e.component("SdkFormEdit", zf), e.component("SdkManageImage", gd), Pd(e), await Bd(t, r, a), e.use(Lo);
9508
+ }), s.$request = ue, s.$cache = I, Ud(e), await xd(e), Fd(e, s), e.mixin(Iu()), e.component("SdkFormEdit", zf), e.component("SdkManageImage", gd), Pd(e), await Vd(t, r, a), e.use(Lo);
9509
9509
  let l = Ft().SA_LANGUAGE_GET();
9510
9510
  Jc(l, o), window.$t = Xe.t;
9511
9511
  }
9512
- async function Bd(e, t, n) {
9513
- const r = Ct(), a = Ne(), o = an(), s = rn();
9512
+ async function Vd(e, t, n) {
9513
+ const r = Ct(), a = Te(), o = an(), s = rn();
9514
9514
  r.QK_SEND_MSG_REG_SUBMENU(t);
9515
- let l = Qt().syProductSign || "";
9515
+ let l = Jt().syProductSign || "";
9516
9516
  s.SA_PERMS_ROUTER_ADD(e, l), o.SA_MENU_PARSE(), r.QK_SEND_MSG_ROUTER_BEFORE(n);
9517
9517
  let i = !1, c = !1, f = !1;
9518
9518
  e.beforeEach((u, _, p) => {
@@ -9541,7 +9541,7 @@ async function Bd(e, t, n) {
9541
9541
  }
9542
9542
  });
9543
9543
  }
9544
- async function t_(e, t, n) {
9544
+ async function e_(e, t, n) {
9545
9545
  pe.__POWERED_BY_QIANKUN__ ? hi(e, t, n) : t();
9546
9546
  }
9547
9547
  export {
@@ -9550,14 +9550,14 @@ export {
9550
9550
  ge as _,
9551
9551
  I as a,
9552
9552
  Ge as b,
9553
- Ne as c,
9554
- nn as d,
9555
- Qt as e,
9556
- Xd as f,
9553
+ Te as c,
9554
+ Mt as d,
9555
+ Jt as e,
9556
+ qd as f,
9557
9557
  Mu as g,
9558
- Qd as h,
9559
- Jd as i,
9560
- zd as j,
9558
+ Xd as h,
9559
+ Qd as i,
9560
+ Jd as j,
9561
9561
  dd as k,
9562
9562
  Ct as l,
9563
9563
  ko as m,
@@ -9565,9 +9565,9 @@ export {
9565
9565
  rn as o,
9566
9566
  Ro as p,
9567
9567
  pe as q,
9568
- Zd as r,
9568
+ zd as r,
9569
9569
  rs as s,
9570
- e_ as t,
9570
+ Zd as t,
9571
9571
  Ft as u,
9572
- t_ as v
9572
+ e_ as v
9573
9573
  };