ik-next-ui 0.0.14 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/IkDescription/ik.index.es.js +122 -122
  2. package/dist/IkDetailPreviewFiles/ik.index.es.js +144 -144
  3. package/dist/IkImageUploadEditor/ik.index.es.js +1084 -1084
  4. package/dist/IkUploadFile/ik.index.es.js +124 -123
  5. package/dist/Provider/ik.index.es.js +13 -19
  6. package/dist/build/version.json.d.ts +1 -1
  7. package/dist/index.es.js +8177 -8182
  8. package/dist/index.umd.js +100 -100
  9. package/dist/src/components/IkDragList/index.d.ts +3 -3
  10. package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +1 -1
  11. package/dist/src/components/IkImage/index.d.ts +15 -15
  12. package/dist/src/components/IkImage/src/index.vue.d.ts +1 -1
  13. package/dist/src/components/IkPickerUser/index.d.ts +1 -1
  14. package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +1 -1
  15. package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +1 -1
  16. package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +1 -1
  17. package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
  18. package/dist/src/components/IkSideText/IkSideText.vue.d.ts +1 -1
  19. package/dist/src/components/IkSideText/index.d.ts +1 -1
  20. package/dist/src/components/IkTooltip/index.d.ts +3 -3
  21. package/dist/src/components/IkTooltip/src/index.vue.d.ts +1 -1
  22. package/dist/src/components/IkTree/IkTree.vue.d.ts +2532 -788
  23. package/dist/src/components/IkUploadImage/index.d.ts +3 -3
  24. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
  25. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +12 -17
  26. package/dist/src/components/Provider/index.d.ts +30 -77
  27. package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
  28. package/package.json +1 -1
  29. package/dist/src/components/IkBtnContent/index.d.ts +0 -34
  30. package/dist/src/components/IkBtnContent/src/index.d.ts +0 -36
  31. package/dist/src/components/IkTree/index.d.ts +0 -12403
@@ -3,8 +3,8 @@ import { useLocale as Nu, useNamespace as pl, useZIndex as Bu, ElIcon as Ve, EVE
3
3
  import { paramType as Gr, ikFile as Uu, buildUUID as ml, _ as Pi } from "iking-utils-pro";
4
4
  import { Icon as Pa } from "@iconify/vue";
5
5
  import { UseImage as Aa } from "@vueuse/components";
6
- import { useEventListener as $t } from "@vueuse/core";
7
- import { ScaleToOriginal as ju, FullScreen as zu, Close as yl, ArrowLeft as Vu, ArrowRight as qu, ZoomOut as Wu, ZoomIn as Gu, RefreshLeft as Ku, RefreshRight as $u } from "@element-plus/icons-vue";
6
+ import { useEventListener as Kt } from "@vueuse/core";
7
+ import { ScaleToOriginal as ju, FullScreen as zu, Close as yl, ArrowLeft as Vu, ArrowRight as qu, ZoomOut as Wu, ZoomIn as Gu, RefreshLeft as $u, RefreshRight as Ku } from "@element-plus/icons-vue";
8
8
  const Re = (a, s) => (a.install = (r) => {
9
9
  for (const t of [a, ...Object.values({})])
10
10
  r.component(t.name, t);
@@ -1027,7 +1027,7 @@ const ti = (a, s) => {
1027
1027
  [
1028
1028
  S("div", {
1029
1029
  class: "file-card",
1030
- onClick: (K) => f(T)
1030
+ onClick: ($) => f(T)
1031
1031
  }, [
1032
1032
  Y(E(La), {
1033
1033
  file: T,
@@ -1060,7 +1060,7 @@ const ti = (a, s) => {
1060
1060
  a.showDownloadBtn ? (x(), re(E(tt), {
1061
1061
  key: 0,
1062
1062
  name: "iksvg_daochu",
1063
- onClick: et((K) => d(T), ["stop"]),
1063
+ onClick: et(($) => d(T), ["stop"]),
1064
1064
  bg: a.showBg,
1065
1065
  size: a.showBg ? "default" : 20,
1066
1066
  title: "下载"
@@ -1071,7 +1071,7 @@ const ti = (a, s) => {
1071
1071
  bg: a.showBg,
1072
1072
  size: a.showBg ? "default" : 20,
1073
1073
  title: "预览",
1074
- onClick: et((K) => f(T), ["stop"])
1074
+ onClick: et(($) => f(T), ["stop"])
1075
1075
  }, null, 8, ["bg", "size", "onClick"])) : X("v-if", !0),
1076
1076
  Ee(p.$slots, "operation", {
1077
1077
  data: { ...T, findex: I }
@@ -1164,7 +1164,7 @@ const ti = (a, s) => {
1164
1164
  }), c = (v) => {
1165
1165
  var m, p, k, b, C, R, T;
1166
1166
  try {
1167
- const I = ((m = v == null ? void 0 : v.response) == null ? void 0 : m.data) || v, j = I[i.value.url] || (I == null ? void 0 : I.id) || I.attachmentId, K = (p = I[i.value.suffix] || I.attachmentSuffix) == null ? void 0 : p.toLowerCase(), z = I[i.value.name] || (I == null ? void 0 : I.attachmentName) || (I == null ? void 0 : I.originName);
1167
+ const I = ((m = v == null ? void 0 : v.response) == null ? void 0 : m.data) || v, j = I[i.value.url] || (I == null ? void 0 : I.id) || I.attachmentId, $ = (p = I[i.value.suffix] || I.attachmentSuffix) == null ? void 0 : p.toLowerCase(), z = I[i.value.name] || (I == null ? void 0 : I.attachmentName) || (I == null ? void 0 : I.originName);
1168
1168
  if (o.value = {
1169
1169
  ...v,
1170
1170
  name: v[i.value.name],
@@ -1178,7 +1178,7 @@ const ti = (a, s) => {
1178
1178
  } else if (v && ti(v, i.value) === "txt") {
1179
1179
  u.text = !0, f(o.value.url);
1180
1180
  return;
1181
- } else if ((((k = r.onlyOfficeConfig) == null ? void 0 : k.accept) || r.onlyOfficeAccept).includes(K)) {
1181
+ } else if ((((k = r.onlyOfficeConfig) == null ? void 0 : k.accept) || r.onlyOfficeAccept).includes($)) {
1182
1182
  u.office = !0, n.value = {
1183
1183
  ...r.onlyOfficeConfig,
1184
1184
  editorConfig: {
@@ -1194,10 +1194,10 @@ const ti = (a, s) => {
1194
1194
  key: (v == null ? void 0 : v.key) || ml(),
1195
1195
  title: z,
1196
1196
  url: Dt(r.loadUrl, j),
1197
- fileType: K,
1197
+ fileType: $,
1198
1198
  ...((T = r.onlyOfficeConfig) == null ? void 0 : T.document) || {}
1199
1199
  },
1200
- documentType: Xu(K)
1200
+ documentType: Xu($)
1201
1201
  // document_fileType: getFileTypes(suffix),
1202
1202
  }, console.log("config", n.value);
1203
1203
  return;
@@ -1755,7 +1755,7 @@ function Gc(a, s, r, t) {
1755
1755
  u((t = t.apply(a, [])).next());
1756
1756
  });
1757
1757
  }
1758
- function Kc(a, s) {
1758
+ function $c(a, s) {
1759
1759
  var r = { label: 0, sent: function() {
1760
1760
  if (i[0] & 1) throw i[1];
1761
1761
  return i[1];
@@ -1815,9 +1815,9 @@ function Kc(a, s) {
1815
1815
  return { value: u[0] ? u[1] : void 0, done: !0 };
1816
1816
  }
1817
1817
  }
1818
- var $c = function(a, s) {
1818
+ var Kc = function(a, s) {
1819
1819
  return Gc(void 0, void 0, void 0, function() {
1820
- return Kc(this, function(r) {
1820
+ return $c(this, function(r) {
1821
1821
  return [2, new Promise(function(t, e) {
1822
1822
  try {
1823
1823
  if (window.DocsAPI)
@@ -1974,19 +1974,19 @@ function rf() {
1974
1974
  }
1975
1975
  return ji = a, ji;
1976
1976
  }
1977
- var zi, Ka;
1977
+ var zi, $a;
1978
1978
  function af() {
1979
- if (Ka) return zi;
1980
- Ka = 1;
1979
+ if ($a) return zi;
1980
+ $a = 1;
1981
1981
  function a(s) {
1982
1982
  return this.__data__.has(s);
1983
1983
  }
1984
1984
  return zi = a, zi;
1985
1985
  }
1986
- var Vi, $a;
1986
+ var Vi, Ka;
1987
1987
  function wl() {
1988
- if ($a) return Vi;
1989
- $a = 1;
1988
+ if (Ka) return Vi;
1989
+ Ka = 1;
1990
1990
  var a = typeof Yt == "object" && Yt && Yt.Object === Object && Yt;
1991
1991
  return Vi = a, Vi;
1992
1992
  }
@@ -2021,25 +2021,25 @@ function sf() {
2021
2021
  }
2022
2022
  return Gi = i, Gi;
2023
2023
  }
2024
- var Ki, Ja;
2024
+ var $i, Ja;
2025
2025
  function of() {
2026
- if (Ja) return Ki;
2026
+ if (Ja) return $i;
2027
2027
  Ja = 1;
2028
2028
  var a = Object.prototype, s = a.toString;
2029
2029
  function r(t) {
2030
2030
  return s.call(t);
2031
2031
  }
2032
- return Ki = r, Ki;
2032
+ return $i = r, $i;
2033
2033
  }
2034
- var $i, Qa;
2034
+ var Ki, Qa;
2035
2035
  function _i() {
2036
- if (Qa) return $i;
2036
+ if (Qa) return Ki;
2037
2037
  Qa = 1;
2038
2038
  var a = ta(), s = sf(), r = of(), t = "[object Null]", e = "[object Undefined]", i = a ? a.toStringTag : void 0;
2039
2039
  function n(o) {
2040
2040
  return o == null ? o === void 0 ? e : t : i && i in Object(o) ? s(o) : r(o);
2041
2041
  }
2042
- return $i = n, $i;
2042
+ return Ki = n, Ki;
2043
2043
  }
2044
2044
  var Yi, es;
2045
2045
  function Mt() {
@@ -2499,8 +2499,8 @@ var Mn, Us;
2499
2499
  function Of() {
2500
2500
  if (Us) return Mn;
2501
2501
  Us = 1;
2502
- var a = _i(), s = Pl(), r = Ft(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", n = "[object Date]", o = "[object Error]", l = "[object Function]", u = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object RegExp]", g = "[object Set]", v = "[object String]", m = "[object WeakMap]", p = "[object ArrayBuffer]", k = "[object DataView]", b = "[object Float32Array]", C = "[object Float64Array]", R = "[object Int8Array]", T = "[object Int16Array]", I = "[object Int32Array]", j = "[object Uint8Array]", K = "[object Uint8ClampedArray]", z = "[object Uint16Array]", B = "[object Uint32Array]", M = {};
2503
- M[b] = M[C] = M[R] = M[T] = M[I] = M[j] = M[K] = M[z] = M[B] = !0, M[t] = M[e] = M[p] = M[i] = M[k] = M[n] = M[o] = M[l] = M[u] = M[c] = M[f] = M[d] = M[g] = M[v] = M[m] = !1;
2502
+ var a = _i(), s = Pl(), r = Ft(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", n = "[object Date]", o = "[object Error]", l = "[object Function]", u = "[object Map]", c = "[object Number]", f = "[object Object]", d = "[object RegExp]", g = "[object Set]", v = "[object String]", m = "[object WeakMap]", p = "[object ArrayBuffer]", k = "[object DataView]", b = "[object Float32Array]", C = "[object Float64Array]", R = "[object Int8Array]", T = "[object Int16Array]", I = "[object Int32Array]", j = "[object Uint8Array]", $ = "[object Uint8ClampedArray]", z = "[object Uint16Array]", B = "[object Uint32Array]", M = {};
2503
+ M[b] = M[C] = M[R] = M[T] = M[I] = M[j] = M[$] = M[z] = M[B] = !0, M[t] = M[e] = M[p] = M[i] = M[k] = M[n] = M[o] = M[l] = M[u] = M[c] = M[f] = M[d] = M[g] = M[v] = M[m] = !1;
2504
2504
  function ae(ge) {
2505
2505
  return r(ge) && s(ge.length) && !!M[a(ge)];
2506
2506
  }
@@ -2578,17 +2578,17 @@ function Rl() {
2578
2578
  }
2579
2579
  return Un = a, Un;
2580
2580
  }
2581
- var jn, Ks;
2581
+ var jn, $s;
2582
2582
  function Ff() {
2583
- if (Ks) return jn;
2584
- Ks = 1;
2583
+ if ($s) return jn;
2584
+ $s = 1;
2585
2585
  var a = Rl(), s = a(Object.keys, Object);
2586
2586
  return jn = s, jn;
2587
2587
  }
2588
- var zn, $s;
2588
+ var zn, Ks;
2589
2589
  function Nf() {
2590
- if ($s) return zn;
2591
- $s = 1;
2590
+ if (Ks) return zn;
2591
+ Ks = 1;
2592
2592
  var a = sa(), s = Ff(), r = Object.prototype, t = r.hasOwnProperty;
2593
2593
  function e(i) {
2594
2594
  if (!a(i))
@@ -2643,9 +2643,9 @@ function Hf() {
2643
2643
  }
2644
2644
  return Gn = a, Gn;
2645
2645
  }
2646
- var Kn, Qs;
2646
+ var $n, Qs;
2647
2647
  function Uf() {
2648
- if (Qs) return Kn;
2648
+ if (Qs) return $n;
2649
2649
  Qs = 1;
2650
2650
  var a = Mt(), s = sa(), r = Hf(), t = Object.prototype, e = t.hasOwnProperty;
2651
2651
  function i(n) {
@@ -2656,17 +2656,17 @@ function Uf() {
2656
2656
  u == "constructor" && (o || !e.call(n, u)) || l.push(u);
2657
2657
  return l;
2658
2658
  }
2659
- return Kn = i, Kn;
2659
+ return $n = i, $n;
2660
2660
  }
2661
- var $n, eo;
2661
+ var Kn, eo;
2662
2662
  function la() {
2663
- if (eo) return $n;
2663
+ if (eo) return Kn;
2664
2664
  eo = 1;
2665
2665
  var a = Al(), s = Uf(), r = Ll();
2666
2666
  function t(e) {
2667
2667
  return r(e) ? a(e, !0) : s(e);
2668
2668
  }
2669
- return $n = t, $n;
2669
+ return Kn = t, Kn;
2670
2670
  }
2671
2671
  var Yn, to;
2672
2672
  function jf() {
@@ -2799,7 +2799,7 @@ function Nl() {
2799
2799
  return ar = r, ar;
2800
2800
  }
2801
2801
  var sr, go;
2802
- function Kf() {
2802
+ function $f() {
2803
2803
  if (go) return sr;
2804
2804
  go = 1;
2805
2805
  var a = Nl(), s = ua(), r = oa();
@@ -2809,7 +2809,7 @@ function Kf() {
2809
2809
  return sr = t, sr;
2810
2810
  }
2811
2811
  var or, vo;
2812
- function $f() {
2812
+ function Kf() {
2813
2813
  if (vo) return or;
2814
2814
  vo = 1;
2815
2815
  var a = Nl(), s = Fl(), r = la();
@@ -2946,7 +2946,7 @@ function ah() {
2946
2946
  if (Io) return br;
2947
2947
  Io = 1;
2948
2948
  var a = fa(), s = th(), r = ih(), t = nh(), e = rh(), i = "[object Boolean]", n = "[object Date]", o = "[object Map]", l = "[object Number]", u = "[object RegExp]", c = "[object Set]", f = "[object String]", d = "[object Symbol]", g = "[object ArrayBuffer]", v = "[object DataView]", m = "[object Float32Array]", p = "[object Float64Array]", k = "[object Int8Array]", b = "[object Int16Array]", C = "[object Int32Array]", R = "[object Uint8Array]", T = "[object Uint8ClampedArray]", I = "[object Uint16Array]", j = "[object Uint32Array]";
2949
- function K(z, B, M) {
2949
+ function $(z, B, M) {
2950
2950
  var ae = z.constructor;
2951
2951
  switch (B) {
2952
2952
  case g:
@@ -2979,7 +2979,7 @@ function ah() {
2979
2979
  return t(z);
2980
2980
  }
2981
2981
  }
2982
- return br = K, br;
2982
+ return br = $, br;
2983
2983
  }
2984
2984
  var Cr, Po;
2985
2985
  function sh() {
@@ -3048,43 +3048,43 @@ var xr, Mo;
3048
3048
  function hh() {
3049
3049
  if (Mo) return xr;
3050
3050
  Mo = 1;
3051
- var a = Ef(), s = xf(), r = xl(), t = Bf(), e = jf(), i = zf(), n = Vf(), o = Wf(), l = Gf(), u = Kf(), c = $f(), f = ca(), d = Qf(), g = ah(), v = oh(), m = na(), p = Il(), k = uh(), b = Mt(), C = fh(), R = oa(), T = la(), I = 1, j = 2, K = 4, z = "[object Arguments]", B = "[object Array]", M = "[object Boolean]", ae = "[object Date]", ge = "[object Error]", De = "[object Function]", Ht = "[object GeneratorFunction]", Ut = "[object Map]", bt = "[object Number]", Ct = "[object Object]", jt = "[object RegExp]", Oe = "[object Set]", F = "[object String]", W = "[object Symbol]", ie = "[object WeakMap]", ve = "[object ArrayBuffer]", ke = "[object DataView]", we = "[object Float32Array]", Ie = "[object Float64Array]", Ze = "[object Int8Array]", zt = "[object Int16Array]", Vt = "[object Int32Array]", kt = "[object Uint8Array]", bu = "[object Uint8ClampedArray]", Cu = "[object Uint16Array]", ku = "[object Uint32Array]", Q = {};
3051
+ var a = Ef(), s = xf(), r = xl(), t = Bf(), e = jf(), i = zf(), n = Vf(), o = Wf(), l = Gf(), u = $f(), c = Kf(), f = ca(), d = Qf(), g = ah(), v = oh(), m = na(), p = Il(), k = uh(), b = Mt(), C = fh(), R = oa(), T = la(), I = 1, j = 2, $ = 4, z = "[object Arguments]", B = "[object Array]", M = "[object Boolean]", ae = "[object Date]", ge = "[object Error]", De = "[object Function]", Ht = "[object GeneratorFunction]", Ut = "[object Map]", bt = "[object Number]", Ct = "[object Object]", jt = "[object RegExp]", Oe = "[object Set]", F = "[object String]", W = "[object Symbol]", ie = "[object WeakMap]", ve = "[object ArrayBuffer]", ke = "[object DataView]", we = "[object Float32Array]", Ie = "[object Float64Array]", Ze = "[object Int8Array]", zt = "[object Int16Array]", Vt = "[object Int32Array]", kt = "[object Uint8Array]", bu = "[object Uint8ClampedArray]", Cu = "[object Uint16Array]", ku = "[object Uint32Array]", Q = {};
3052
3052
  Q[z] = Q[B] = Q[ve] = Q[ke] = Q[M] = Q[ae] = Q[we] = Q[Ie] = Q[Ze] = Q[zt] = Q[Vt] = Q[Ut] = Q[bt] = Q[Ct] = Q[jt] = Q[Oe] = Q[F] = Q[W] = Q[kt] = Q[bu] = Q[Cu] = Q[ku] = !0, Q[ge] = Q[De] = Q[ie] = !1;
3053
- function qt($, lt, ut, wu, Wt, je) {
3054
- var fe, Gt = lt & I, Kt = lt & j, Tu = lt & K;
3055
- if (ut && (fe = Wt ? ut($, wu, Wt, je) : ut($)), fe !== void 0)
3053
+ function qt(K, lt, ut, wu, Wt, je) {
3054
+ var fe, Gt = lt & I, $t = lt & j, Tu = lt & $;
3055
+ if (ut && (fe = Wt ? ut(K, wu, Wt, je) : ut(K)), fe !== void 0)
3056
3056
  return fe;
3057
- if (!b($))
3058
- return $;
3059
- var Ta = m($);
3057
+ if (!b(K))
3058
+ return K;
3059
+ var Ta = m(K);
3060
3060
  if (Ta) {
3061
- if (fe = d($), !Gt)
3062
- return n($, fe);
3061
+ if (fe = d(K), !Gt)
3062
+ return n(K, fe);
3063
3063
  } else {
3064
- var ct = f($), Sa = ct == De || ct == Ht;
3065
- if (p($))
3066
- return i($, Gt);
3064
+ var ct = f(K), Sa = ct == De || ct == Ht;
3065
+ if (p(K))
3066
+ return i(K, Gt);
3067
3067
  if (ct == Ct || ct == z || Sa && !Wt) {
3068
- if (fe = Kt || Sa ? {} : v($), !Gt)
3069
- return Kt ? l($, e(fe, $)) : o($, t(fe, $));
3068
+ if (fe = $t || Sa ? {} : v(K), !Gt)
3069
+ return $t ? l(K, e(fe, K)) : o(K, t(fe, K));
3070
3070
  } else {
3071
3071
  if (!Q[ct])
3072
- return Wt ? $ : {};
3073
- fe = g($, ct, Gt);
3072
+ return Wt ? K : {};
3073
+ fe = g(K, ct, Gt);
3074
3074
  }
3075
3075
  }
3076
3076
  je || (je = new a());
3077
- var Ea = je.get($);
3077
+ var Ea = je.get(K);
3078
3078
  if (Ea)
3079
3079
  return Ea;
3080
- je.set($, fe), C($) ? $.forEach(function(ze) {
3081
- fe.add(qt(ze, lt, ut, ze, $, je));
3082
- }) : k($) && $.forEach(function(ze, Je) {
3083
- fe.set(Je, qt(ze, lt, ut, Je, $, je));
3080
+ je.set(K, fe), C(K) ? K.forEach(function(ze) {
3081
+ fe.add(qt(ze, lt, ut, ze, K, je));
3082
+ }) : k(K) && K.forEach(function(ze, Je) {
3083
+ fe.set(Je, qt(ze, lt, ut, Je, K, je));
3084
3084
  });
3085
- var Su = Tu ? Kt ? c : u : Kt ? T : R, xa = Ta ? void 0 : Su($);
3086
- return s(xa || $, function(ze, Je) {
3087
- xa && (Je = ze, ze = $[Je]), r(fe, Je, qt(ze, lt, ut, Je, $, je));
3085
+ var Su = Tu ? $t ? c : u : $t ? T : R, xa = Ta ? void 0 : Su(K);
3086
+ return s(xa || K, function(ze, Je) {
3087
+ xa && (Je = ze, ze = K[Je]), r(fe, Je, qt(ze, lt, ut, Je, K, je));
3088
3088
  }), fe;
3089
3089
  }
3090
3090
  return xr = qt, xr;
@@ -3159,7 +3159,7 @@ var gh = dh(), vh = /* @__PURE__ */ Yc(gh), ha = be({
3159
3159
  var a = this, s, r = this.documentServerUrl;
3160
3160
  r.endsWith("/") || (r += "/");
3161
3161
  var t = "".concat(r, "web-apps/apps/api/documents/api.js");
3162
- this.shardkey && (typeof this.shardkey == "boolean" ? t += "?shardkey=".concat((s = this.config.document) === null || s === void 0 ? void 0 : s.key) : t += "?shardkey=".concat(this.shardkey)), $c(t, "onlyoffice-api-script").then(function() {
3162
+ this.shardkey && (typeof this.shardkey == "boolean" ? t += "?shardkey=".concat((s = this.config.document) === null || s === void 0 ? void 0 : s.key) : t += "?shardkey=".concat(this.shardkey)), Kc(t, "onlyoffice-api-script").then(function() {
3163
3163
  return a.onLoad();
3164
3164
  }).catch(function() {
3165
3165
  a.onError(-2);
@@ -3436,7 +3436,7 @@ const yh = /* @__PURE__ */ be({
3436
3436
  l.e("btn"),
3437
3437
  l.e("next"),
3438
3438
  l.is("disabled", !i.infinite && R.value)
3439
- ]), K = J(() => {
3439
+ ]), $ = J(() => {
3440
3440
  const { scale: F, deg: W, offsetX: ie, offsetY: ve, enableTransition: ke } = p.value;
3441
3441
  let we = ie / F, Ie = ve / F;
3442
3442
  const Ze = W * Math.PI / 180, zt = Math.cos(Ze), Vt = Math.sin(Ze);
@@ -3486,7 +3486,7 @@ const yh = /* @__PURE__ */ be({
3486
3486
  });
3487
3487
  });
3488
3488
  d.run(() => {
3489
- $t(document, "keydown", F), $t(document, "wheel", W);
3489
+ Kt(document, "keydown", F), Kt(document, "wheel", W);
3490
3490
  });
3491
3491
  }
3492
3492
  function M() {
@@ -3507,8 +3507,8 @@ const yh = /* @__PURE__ */ be({
3507
3507
  offsetX: W + Ze.pageX - ve,
3508
3508
  offsetY: ie + Ze.pageY - ke
3509
3509
  };
3510
- }), Ie = $t(document, "mousemove", we);
3511
- $t(document, "mouseup", () => {
3510
+ }), Ie = Kt(document, "mousemove", we);
3511
+ Kt(document, "mouseup", () => {
3512
3512
  Ie();
3513
3513
  }), F.preventDefault();
3514
3514
  }
@@ -3729,7 +3729,7 @@ const yh = /* @__PURE__ */ be({
3729
3729
  onClick: W[3] || (W[3] = (ie) => Oe("anticlockwise"))
3730
3730
  }, {
3731
3731
  default: Z(() => [
3732
- Y(E(Ku))
3732
+ Y(E($u))
3733
3733
  ]),
3734
3734
  _: 1
3735
3735
  /* STABLE */
@@ -3738,7 +3738,7 @@ const yh = /* @__PURE__ */ be({
3738
3738
  onClick: W[4] || (W[4] = (ie) => Oe("clockwise"))
3739
3739
  }, {
3740
3740
  default: Z(() => [
3741
- Y(E($u))
3741
+ Y(E(Ku))
3742
3742
  ]),
3743
3743
  _: 1
3744
3744
  /* STABLE */
@@ -3766,7 +3766,7 @@ const yh = /* @__PURE__ */ be({
3766
3766
  ref: (ke) => f.value[ve] = ke,
3767
3767
  key: ie,
3768
3768
  src: ie,
3769
- style: ce(K.value),
3769
+ style: ce($.value),
3770
3770
  class: ne(E(l).e("img")),
3771
3771
  crossorigin: F.crossorigin,
3772
3772
  onLoad: ae,
@@ -3878,17 +3878,17 @@ function L(a, s) {
3878
3878
  }
3879
3879
  }), Object.defineProperty(a, "prototype", {
3880
3880
  writable: !1
3881
- }), s && Kr(a, s);
3881
+ }), s && $r(a, s);
3882
3882
  }
3883
3883
  function O(a) {
3884
3884
  return O = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
3885
3885
  return r.__proto__ || Object.getPrototypeOf(r);
3886
3886
  }, O(a);
3887
3887
  }
3888
- function Kr(a, s) {
3889
- return Kr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
3888
+ function $r(a, s) {
3889
+ return $r = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
3890
3890
  return t.__proto__ = e, t;
3891
- }, Kr(a, s);
3891
+ }, $r(a, s);
3892
3892
  }
3893
3893
  function Eh() {
3894
3894
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
@@ -3948,7 +3948,7 @@ function xe(a) {
3948
3948
  }
3949
3949
  function Ph(a) {
3950
3950
  if (Array.isArray(a))
3951
- return $r(a);
3951
+ return Kr(a);
3952
3952
  }
3953
3953
  function Ah(a) {
3954
3954
  if (Array.isArray(a))
@@ -3961,15 +3961,15 @@ function Rh(a) {
3961
3961
  function Bl(a, s) {
3962
3962
  if (a) {
3963
3963
  if (typeof a == "string")
3964
- return $r(a, s);
3964
+ return Kr(a, s);
3965
3965
  var r = Object.prototype.toString.call(a).slice(8, -1);
3966
3966
  if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
3967
3967
  return Array.from(a);
3968
3968
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
3969
- return $r(a, s);
3969
+ return Kr(a, s);
3970
3970
  }
3971
3971
  }
3972
- function $r(a, s) {
3972
+ function Kr(a, s) {
3973
3973
  (s == null || s > a.length) && (s = a.length);
3974
3974
  for (var r = 0, t = new Array(s); r < s; r++)
3975
3975
  t[r] = a[r];
@@ -4629,7 +4629,7 @@ function Uh(a, s, r) {
4629
4629
  function j() {
4630
4630
  return o === void 0 ? n : T(Date.now());
4631
4631
  }
4632
- function K() {
4632
+ function $() {
4633
4633
  return o !== void 0;
4634
4634
  }
4635
4635
  function z() {
@@ -4643,7 +4643,7 @@ function Uh(a, s, r) {
4643
4643
  }
4644
4644
  return o === void 0 && (o = m(R, s)), n;
4645
4645
  }
4646
- return z.cancel = I, z.flush = j, z.pending = K, z;
4646
+ return z.cancel = I, z.flush = j, z.pending = $, z;
4647
4647
  }
4648
4648
  function jh(a, s, r) {
4649
4649
  var t = !0, e = !0;
@@ -4830,7 +4830,7 @@ var Lr = {
4830
4830
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
4831
4831
  }
4832
4832
  }
4833
- ), Ce = "play", wi = "playing", at = "ended", _t = "pause", Nt = "error", Ti = "seeking", Be = "seeked", _e = "timeupdate", Bt = "waiting", Ne = "canplay", Wh = "canplaythrough", Ue = "durationchange", Vl = "volumechange", He = "loadeddata", Gh = "loadedmetadata", ql = "ratechange", Wl = "progress", ga = "loadstart", st = "emptied", Kh = "stalled", $h = "suspend", Yh = "abort", Xh = "bufferedChange", va = "focus", Gl = "blur", pa = "ready", Kl = "urlNull", nt = "autoplay_started", ma = "autoplay_was_prevented", Si = "complete", ai = "replay", ya = "destroy", Ei = "urlchange", Xr = "download_speed_change", $l = "leaveplayer", Yl = "enterplayer", Xl = "loading", Fe = "fullscreen_change", si = "cssFullscreen_change", oi = "mini_state_change", _a = "definition_change", Zh = "before_definition_change", Zr = "after_definition_change", Jh = "SEI_PARSED", Qh = "retry", $e = "video_resize", Jr = "pip_change", Zl = "rotate", Jl = "screenShot", li = "playnext", Ql = "shortcut", eu = "xglog", ui = "user_action", xi = "reset", tu = "source_error", iu = "source_success", ed = "switch_subtitle", nu = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], ru = {
4833
+ ), Ce = "play", wi = "playing", at = "ended", _t = "pause", Nt = "error", Ti = "seeking", Be = "seeked", _e = "timeupdate", Bt = "waiting", Ne = "canplay", Wh = "canplaythrough", Ue = "durationchange", Vl = "volumechange", He = "loadeddata", Gh = "loadedmetadata", ql = "ratechange", Wl = "progress", ga = "loadstart", st = "emptied", $h = "stalled", Kh = "suspend", Yh = "abort", Xh = "bufferedChange", va = "focus", Gl = "blur", pa = "ready", $l = "urlNull", nt = "autoplay_started", ma = "autoplay_was_prevented", Si = "complete", ai = "replay", ya = "destroy", Ei = "urlchange", Xr = "download_speed_change", Kl = "leaveplayer", Yl = "enterplayer", Xl = "loading", Fe = "fullscreen_change", si = "cssFullscreen_change", oi = "mini_state_change", _a = "definition_change", Zh = "before_definition_change", Zr = "after_definition_change", Jh = "SEI_PARSED", Qh = "retry", Ke = "video_resize", Jr = "pip_change", Zl = "rotate", Jl = "screenShot", li = "playnext", Ql = "shortcut", eu = "xglog", ui = "user_action", xi = "reset", tu = "source_error", iu = "source_success", ed = "switch_subtitle", nu = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], ru = {
4834
4834
  STATS_INFO: "stats_info",
4835
4835
  STATS_DOWNLOAD: "stats_download",
4836
4836
  STATS_RESET: "stats_reset"
@@ -4857,7 +4857,7 @@ const td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4857
4857
  ERROR: Nt,
4858
4858
  FPS_STUCK: au,
4859
4859
  FULLSCREEN_CHANGE: Fe,
4860
- LEAVE_PLAYER: $l,
4860
+ LEAVE_PLAYER: Kl,
4861
4861
  LOADED_DATA: He,
4862
4862
  LOADED_METADATA: Gh,
4863
4863
  LOADING: Xl,
@@ -4884,16 +4884,16 @@ const td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4884
4884
  SHORTCUT: Ql,
4885
4885
  SOURCE_ERROR: tu,
4886
4886
  SOURCE_SUCCESS: iu,
4887
- STALLED: Kh,
4887
+ STALLED: $h,
4888
4888
  STATS_EVENTS: ru,
4889
- SUSPEND: $h,
4889
+ SUSPEND: Kh,
4890
4890
  SWITCH_SUBTITLE: ed,
4891
4891
  TIME_UPDATE: _e,
4892
4892
  URL_CHANGE: Ei,
4893
- URL_NULL: Kl,
4893
+ URL_NULL: $l,
4894
4894
  USER_ACTION: ui,
4895
4895
  VIDEO_EVENTS: nu,
4896
- VIDEO_RESIZE: $e,
4896
+ VIDEO_RESIZE: Ke,
4897
4897
  VOLUME_CHANGE: Vl,
4898
4898
  WAITING: Bt,
4899
4899
  XGLOG: eu
@@ -5432,7 +5432,7 @@ var nd = /* @__PURE__ */ (function(a) {
5432
5432
  t.clear();
5433
5433
  }
5434
5434
  }]), a;
5435
- })(), zo = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Vo = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qo = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Ke = "data-xgplayerid";
5435
+ })(), zo = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Vo = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qo = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], $e = "data-xgplayerid";
5436
5436
  function Xt(a, s, r) {
5437
5437
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
5438
5438
  e[i - 3] = arguments[i];
@@ -5749,10 +5749,10 @@ var Ye = /* @__PURE__ */ (function() {
5749
5749
  return "pluginName";
5750
5750
  }
5751
5751
  }]), a;
5752
- })(), Mr, Ko;
5752
+ })(), Mr, $o;
5753
5753
  function ad() {
5754
- if (Ko) return Mr;
5755
- Ko = 1;
5754
+ if ($o) return Mr;
5755
+ $o = 1;
5756
5756
  var a = 9;
5757
5757
  if (typeof Element < "u" && !Element.prototype.matches) {
5758
5758
  var s = Element.prototype;
@@ -5767,10 +5767,10 @@ function ad() {
5767
5767
  }
5768
5768
  return Mr = r, Mr;
5769
5769
  }
5770
- var Fr, $o;
5770
+ var Fr, Ko;
5771
5771
  function sd() {
5772
- if ($o) return Fr;
5773
- $o = 1;
5772
+ if (Ko) return Fr;
5773
+ Ko = 1;
5774
5774
  var a = ad();
5775
5775
  function s(e, i, n, o, l) {
5776
5776
  var u = t.apply(this, arguments);
@@ -6170,7 +6170,7 @@ var G = /* @__PURE__ */ (function(a) {
6170
6170
  value: function(r, t) {
6171
6171
  if (this.observer) {
6172
6172
  this.observer.observe(r);
6173
- for (var e = r.getAttribute(Ke), i = this.__handlers, n = -1, o = 0; o < i.length; o++)
6173
+ for (var e = r.getAttribute($e), i = this.__handlers, n = -1, o = 0; o < i.length; o++)
6174
6174
  i[o] && r === i[o].target && (n = o);
6175
6175
  n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
6176
6176
  target: r,
@@ -6981,7 +6981,7 @@ var kd = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, Ii = /
6981
6981
  to: !1
6982
6982
  }]
6983
6983
  });
6984
- var R = Vh(C, n.playerId, Ke);
6984
+ var R = Vh(C, n.playerId, $e);
6985
6985
  if (k || C && (C === n._fullscreenEl || R))
6986
6986
  b(), !n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !0, n.changeFullStyle(n.root, C, w.FULLSCREEN), n.emit(Fe, !0, n._fullScreenOffset), n.cssfullscreen && n.exitCssFullscreen();
6987
6987
  else if (n.fullscreen) {
@@ -6992,8 +6992,8 @@ var kd = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, Ii = /
6992
6992
  }, 100)) : (!n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !1, n._fullScreenOffset = null), n.cssfullscreen)
6993
6993
  n.removeClass(w.FULLSCREEN);
6994
6994
  else {
6995
- var K = n._fullscreenEl;
6996
- !K && (n.root.contains(p.target) || p.target === n.root) && (K = p.target), n.recoverFullStyle(n.root, K, w.FULLSCREEN);
6995
+ var $ = n._fullscreenEl;
6996
+ !$ && (n.root.contains(p.target) || p.target === n.root) && ($ = p.target), n.recoverFullStyle(n.root, $, w.FULLSCREEN);
6997
6997
  }
6998
6998
  n._fullscreenEl = null, n.emit(Fe, !1);
6999
6999
  }
@@ -7062,7 +7062,7 @@ var kd = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, Ii = /
7062
7062
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
7063
7063
  }
7064
7064
  var o = Cd(this.root);
7065
- if (o && (V.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), o.destroy()), this.root.setAttribute(Ke, this.playerId), this.media.setAttribute(Ke, this.playerId), (e = qe) === null || e === void 0 || e.add(this), oe.init(this), this._initBaseDoms(), this.config.controls) {
7065
+ if (o && (V.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), o.destroy()), this.root.setAttribute($e, this.playerId), this.media.setAttribute($e, this.playerId), (e = qe) === null || e === void 0 || e.add(this), oe.init(this), this._initBaseDoms(), this.config.controls) {
7066
7066
  var l = this.config.controls.root || null, u = oe.register(this, md, {
7067
7067
  root: l
7068
7068
  });
@@ -7124,7 +7124,7 @@ var kd = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, Ii = /
7124
7124
  key: "_startInit",
7125
7125
  value: function(e) {
7126
7126
  var i = this, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
7127
- if (this.media && !((!e || e === "" || h.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Kl), V.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
7127
+ if (this.media && !((!e || e === "" || h.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit($l), V.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
7128
7128
  h.isNotNull(n.playSessionId) && (this._playSessionId = n.playSessionId), this.handleSource && (this._detachSourceEvents(this.media), h.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), h.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
7129
7129
  var o = this.innerContainer ? this.innerContainer : this.root;
7130
7130
  this.media instanceof window.Element && !o.contains(this.media) && o.insertBefore(this.media, o.firstChild);
@@ -7455,7 +7455,7 @@ var kd = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, Ii = /
7455
7455
  value: function() {
7456
7456
  var e, i = this, n = this.innerContainer, o = this.root, l = this.media;
7457
7457
  if (!(!o || !l)) {
7458
- if (this.hasStart = !1, this._useAutoplay = !1, o.removeAttribute(Ke), l.removeAttribute(Ke), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(ya), (e = qe) === null || e === void 0 || e.remove(this), oe.destroy(this), lu(this), N(O(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
7458
+ if (this.hasStart = !1, this._useAutoplay = !1, o.removeAttribute($e), l.removeAttribute($e), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(ya), (e = qe) === null || e === void 0 || e.remove(this), oe.destroy(this), lu(this), N(O(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
7459
7459
  for (var u = n.children, c = 0; c < u.length; c++)
7460
7460
  n.removeChild(u[c]);
7461
7461
  !n && l instanceof window.Node && o.contains(l) && !this.config.remainMediaAfterDestroy && o.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -7498,12 +7498,12 @@ var kd = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, Ii = /
7498
7498
  }, {
7499
7499
  key: "changeFullStyle",
7500
7500
  value: function(e, i, n, o) {
7501
- e && (o || (o = w.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, o), i.setAttribute(Ke, this.playerId)));
7501
+ e && (o || (o = w.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, o), i.setAttribute($e, this.playerId)));
7502
7502
  }
7503
7503
  }, {
7504
7504
  key: "recoverFullStyle",
7505
7505
  value: function(e, i, n, o) {
7506
- o || (o = w.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, o), i.removeAttribute(Ke));
7506
+ o || (o = w.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, o), i.removeAttribute($e));
7507
7507
  }
7508
7508
  }, {
7509
7509
  key: "getFullscreen",
@@ -7793,8 +7793,8 @@ var kd = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, Ii = /
7793
7793
  m = l > 0 ? 100 / l : u > 0 ? 100 / u : 1, d.scale = m, g = n > 0 ? (100 - l) / 2 - n : 0, d.y = p === 2 ? 0 - g : g, v = o > 0 ? (100 - u) / 2 - o : 0, d.x = p === 2 ? 0 - v : v, T.width = "".concat(j, "px"), T.height = "".concat(I, "px"), T.maxWidth = "", T.maxHeight = "";
7794
7794
  else if (p % 2 === 1) {
7795
7795
  j = R, I = C;
7796
- var K = R - C;
7797
- v = -K / 2 / j * 100, d.x = p === 3 ? v + n / 2 : v - n / 2, g = K / 2 / I * 100, d.y = p === 3 ? g + o / 2 : g - o / 2, d.scale = m, T.width = "".concat(j, "px"), T.maxWidth = "".concat(j, "px"), T.height = "".concat(I, "px"), T.maxHeight = "".concat(I, "px");
7796
+ var $ = R - C;
7797
+ v = -$ / 2 / j * 100, d.x = p === 3 ? v + n / 2 : v - n / 2, g = $ / 2 / I * 100, d.y = p === 3 ? g + o / 2 : g - o / 2, d.scale = m, T.width = "".concat(j, "px"), T.maxWidth = "".concat(j, "px"), T.height = "".concat(I, "px"), T.maxHeight = "".concat(I, "px");
7798
7798
  }
7799
7799
  var z = h.getTransformStyle(d, this.media.style.transform || this.media.style.webkitTransform);
7800
7800
  T.transform = z, T.webkitTransform = z, Object.keys(T).map(function(B) {
@@ -7858,7 +7858,7 @@ var kd = ["play", "pause", "replay", "retry"], el = 0, tl = 0, qe = null, Ii = /
7858
7858
  cWidth: k,
7859
7859
  cHeight: b + d
7860
7860
  };
7861
- this.resizePosition(), this.emit($e, R);
7861
+ this.resizePosition(), this.emit(Ke, R);
7862
7862
  }
7863
7863
  }
7864
7864
  }
@@ -9025,7 +9025,7 @@ var hu = /* @__PURE__ */ (function(a) {
9025
9025
  e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
9026
9026
  }), this.on(st, function() {
9027
9027
  e.onReset();
9028
- }), this.on($e, function() {
9028
+ }), this.on(Ke, function() {
9029
9029
  e.onVideoResize();
9030
9030
  });
9031
9031
  }
@@ -10763,7 +10763,7 @@ var Ur = {
10763
10763
  delay: c
10764
10764
  }) : t.player.blur({
10765
10765
  ignorePaused: !0
10766
- })), t.emit($l);
10766
+ })), t.emit(Kl);
10767
10767
  }), _(y(t), "onVideoClick", function(o) {
10768
10768
  var l = y(t), u = l.player, c = l.playerConfig;
10769
10769
  o.target && c.closeVideoClick || (o.target === u.root || o.target === u.media || o.target === u.innerContainer || o.target === u.media.__canvas) && (o.preventDefault(), c.closeVideoStopPropagation || o.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
@@ -10874,7 +10874,7 @@ var Ur = {
10874
10874
  function ll(a) {
10875
10875
  return a && a.length > 0 ? a[a.length - 1] : null;
10876
10876
  }
10877
- function Kd() {
10877
+ function $d() {
10878
10878
  return {
10879
10879
  pressDelay: 600,
10880
10880
  dbClickDelay: 200,
@@ -10884,7 +10884,7 @@ function Kd() {
10884
10884
  needPreventDefault: !0
10885
10885
  };
10886
10886
  }
10887
- var $d = /* @__PURE__ */ (function() {
10887
+ var Kd = /* @__PURE__ */ (function() {
10888
10888
  function a(s) {
10889
10889
  var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
10890
10890
  eventType: "touch"
@@ -10905,7 +10905,7 @@ var $d = /* @__PURE__ */ (function() {
10905
10905
  start: !1,
10906
10906
  x: 0,
10907
10907
  y: 0
10908
- }, this.config = Kd(), Object.keys(t).map(function(e) {
10908
+ }, this.config = $d(), Object.keys(t).map(function(e) {
10909
10909
  r.config[e] = t[e];
10910
10910
  }), this.root = s, this.events = t.eventType === "mouse" ? Gd : Wd, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
10911
10911
  }
@@ -11088,7 +11088,7 @@ var ht = {
11088
11088
  var i = this.playerConfig, n = this.config, o = this.player;
11089
11089
  i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), h.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = h.createDom("xg-mask", "", {}, "xgmask"), o.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
11090
11090
  var l = this.domEventType === "mouse" ? "mouse" : "touch";
11091
- this.touch = new $d(this.root, {
11091
+ this.touch = new Kd(this.root, {
11092
11092
  eventType: l,
11093
11093
  needPreventDefault: !this.config.disableGesture
11094
11094
  }), this.root.addEventListener("contextmenu", function(d) {
@@ -11933,7 +11933,7 @@ var ig = /* @__PURE__ */ (function(a) {
11933
11933
  value: function() {
11934
11934
  var e = this;
11935
11935
  if (!this.config.disable) {
11936
- N(O(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on($e, function() {
11936
+ N(O(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(Ke, function() {
11937
11937
  e.rotateDeg && e.config.innerRotate && h.setTimeout(e, function() {
11938
11938
  e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
11939
11939
  }, 100);
@@ -12598,7 +12598,7 @@ var cg = /* @__PURE__ */ (function(a) {
12598
12598
  var e = this.config;
12599
12599
  this.initSize = function(i) {
12600
12600
  e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
12601
- }, this.once($e, this.initSize);
12601
+ }, this.once(Ke, this.initSize);
12602
12602
  }
12603
12603
  }, {
12604
12604
  key: "onPluginsReady",
@@ -12651,8 +12651,8 @@ var cg = /* @__PURE__ */ (function(a) {
12651
12651
  v = u.media.canvas;
12652
12652
  else {
12653
12653
  n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), v = n.canvas, m = n.canvasCtx;
12654
- var p = u.media.videoWidth / u.media.videoHeight, k = v.width / v.height, b = 0, C = 0, R = u.media.videoWidth, T = u.media.videoHeight, I, j, K, z;
12655
- p > k ? (K = v.width, z = v.width / p, I = 0, j = Math.round((v.height - z) / 2)) : p === k ? (K = v.width, z = v.height, I = 0, j = 0) : p < k && (K = v.height * p, z = v.height, I = Math.round((v.width - K) / 2), j = 0), m.drawImage(u.media, b, C, R, T, I, j, K, z);
12654
+ var p = u.media.videoWidth / u.media.videoHeight, k = v.width / v.height, b = 0, C = 0, R = u.media.videoWidth, T = u.media.videoHeight, I, j, $, z;
12655
+ p > k ? ($ = v.width, z = v.width / p, I = 0, j = Math.round((v.height - z) / 2)) : p === k ? ($ = v.width, z = v.height, I = 0, j = 0) : p < k && ($ = v.height * p, z = v.height, I = Math.round((v.width - $) / 2), j = 0), m.drawImage(u.media, b, C, R, T, I, j, $, z);
12656
12656
  }
12657
12657
  var B = v.toDataURL(f, c).replace(f, "image/octet-stream");
12658
12658
  B = B.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(B);
@@ -12668,7 +12668,7 @@ var cg = /* @__PURE__ */ (function(a) {
12668
12668
  }, {
12669
12669
  key: "destroy",
12670
12670
  value: function() {
12671
- N(O(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off($e, this.initSize);
12671
+ N(O(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(Ke, this.initSize);
12672
12672
  }
12673
12673
  }, {
12674
12674
  key: "render",
@@ -12821,7 +12821,7 @@ var Qe = U.device === "mobile", gi = /* @__PURE__ */ (function(a) {
12821
12821
  key: "afterCreate",
12822
12822
  value: function() {
12823
12823
  var e = this, i = this.config;
12824
- this.initIcons(), Qe = Qe || this.domEventType === "touch", Qe && U.device === "mobile" && i.listType === Pe.DEFAULT && (i.listType = Pe.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([$e, Fe], function() {
12824
+ this.initIcons(), Qe = Qe || this.domEventType === "touch", Qe && U.device === "mobile" && i.listType === Pe.DEFAULT && (i.listType = Pe.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([Ke, Fe], function() {
12825
12825
  e._resizeList();
12826
12826
  }), this.once(Ne, function() {
12827
12827
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
@@ -13458,7 +13458,7 @@ function yg(a) {
13458
13458
  width: r.sizeInfo.width
13459
13459
  }, a.on(Ue, function() {
13460
13460
  a.ispotsInit ? a.updateDuration() : a.initDots();
13461
- }), a.on($e, function() {
13461
+ }), a.on(Ke, function() {
13462
13462
  a.positionDots();
13463
13463
  });
13464
13464
  }