iking-web-ui-pro 1.2.3 → 1.2.5

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 (86) hide show
  1. package/dist/IkApprovalProcess/ik.index.es.js +378 -374
  2. package/dist/IkApprovalProcess/iking-web-ui-pro.css +1 -1
  3. package/dist/IkApprovalProcessDetail/ik.index.es.js +126 -123
  4. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBaseDialog/ik.index.es.js +4 -4
  6. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  7. package/dist/IkBtnSetting/ik.index.es.js +3 -3
  8. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  9. package/dist/IkCalendar/ik.index.es.js +1043 -1039
  10. package/dist/IkCalendar/iking-web-ui-pro.css +1 -1
  11. package/dist/IkCollapseCard/ik.index.es.js +2 -2
  12. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  13. package/dist/IkDescription/ik.index.es.js +122 -119
  14. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  15. package/dist/IkDetailPreviewFiles/ik.index.es.js +121 -118
  16. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  17. package/dist/IkDragList/ik.index.es.js +1 -1
  18. package/dist/IkDragList/iking-web-ui-pro.css +1 -1
  19. package/dist/IkEmpty/ik.index.es.js +6 -6
  20. package/dist/IkEmpty/iking-web-ui-pro.css +1 -1
  21. package/dist/IkExpandCollapse/ik.index.es.js +11 -11
  22. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  23. package/dist/IkHorizontalStepBar/ik.index.es.js +1 -1
  24. package/dist/IkHorizontalStepBar/iking-web-ui-pro.css +1 -1
  25. package/dist/IkIconPicker/ik.index.es.js +1 -1
  26. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  27. package/dist/IkImageUploadEditor/ik.index.es.js +127 -124
  28. package/dist/IkImageUploadEditor/iking-web-ui-pro.css +1 -1
  29. package/dist/IkMonacoEditor/ik.index.es.js +1 -1
  30. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  31. package/dist/IkPageFull/ik.index.es.js +441 -437
  32. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  33. package/dist/IkPageTabs/ik.index.es.js +1 -1
  34. package/dist/IkPageTabs/iking-web-ui-pro.css +1 -1
  35. package/dist/IkPickerUser/ik.index.es.js +416 -412
  36. package/dist/IkPickerUser/iking-web-ui-pro.css +1 -1
  37. package/dist/IkPlayer/ik.index.es.js +103 -100
  38. package/dist/IkPreviewFile/ik.index.es.js +110 -107
  39. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  40. package/dist/IkPreviewFileDialog/ik.index.es.js +90 -87
  41. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  42. package/dist/IkPrint/ik.index.es.js +1 -1
  43. package/dist/IkPrint/iking-web-ui-pro.css +1 -1
  44. package/dist/IkRadioGroup/ik.index.es.js +2 -2
  45. package/dist/IkRadioGroup/iking-web-ui-pro.css +1 -1
  46. package/dist/IkSearch/ik.index.es.js +397 -393
  47. package/dist/IkSearch/iking-web-ui-pro.css +1 -1
  48. package/dist/IkSearchHead/ik.index.es.js +1 -1
  49. package/dist/IkSearchHead/iking-web-ui-pro.css +1 -1
  50. package/dist/IkSelectTag/ik.index.es.js +22 -22
  51. package/dist/IkSelectTag/iking-web-ui-pro.css +1 -1
  52. package/dist/IkSideText/ik.index.es.js +42 -39
  53. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  54. package/dist/IkStatu/ik.index.es.js +4 -4
  55. package/dist/IkStatu/iking-web-ui-pro.css +1 -1
  56. package/dist/IkStatuOver/ik.index.es.js +2 -2
  57. package/dist/IkStatuOver/iking-web-ui-pro.css +1 -1
  58. package/dist/IkSvgIcon/ik.index.es.js +16 -16
  59. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  60. package/dist/IkTinymce/ik.index.es.js +9005 -9004
  61. package/dist/IkTinymce/iking-web-ui-pro.css +1 -1
  62. package/dist/IkTree/ik.index.es.js +13 -13
  63. package/dist/IkTree/iking-web-ui-pro.css +1 -1
  64. package/dist/IkUploadFile/ik.index.es.js +1419 -1416
  65. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  66. package/dist/IkUploadImage/ik.index.es.js +423 -421
  67. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  68. package/dist/IkVerticalStepBar/ik.index.es.js +2 -2
  69. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  70. package/dist/Provider/ik.index.es.js +14 -10
  71. package/dist/iking-web-ui-pro.css +2 -2
  72. package/dist/{index-DzZt3b9I.mjs → index-DTIv4saG.mjs} +16667 -16662
  73. package/dist/{index.es-BGemUek4.mjs → index.es-DJTszikI.mjs} +2 -2
  74. package/dist/index.es.js +1 -1
  75. package/dist/index.umd.js +169 -169
  76. package/dist/{jspdf.es.min-BVrfmj8U.mjs → jspdf.es.min-CB6UoKKF.mjs} +1 -1
  77. package/dist/src/components/IkTinymce/index.d.ts +2 -2
  78. package/dist/src/components/IkTinymce/src/index.vue.d.ts +2 -2
  79. package/dist/src/components/IkUploadFile/index.d.ts +3 -3
  80. package/dist/src/components/IkUploadFile/src/index.vue.d.ts +2 -2
  81. package/dist/src/components/IkUploadImage/index.d.ts +3 -3
  82. package/dist/src/components/IkUploadImage/src/index.vue.d.ts +2 -2
  83. package/dist/src/components/Provider/ProviderConfig.vue.d.ts +9 -0
  84. package/dist/src/components/Provider/index.d.ts +15 -0
  85. package/dist/src/utils/use-provider.d.ts +1 -0
  86. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as re, computed as te, createElementBlock as P, openBlock as E, createElementVNode as S, inject as kt, ref as le, Fragment as ge, createCommentVNode as X, createVNode as W, renderList as pt, normalizeStyle as pe, toDisplayString as me, unref as I, normalizeClass as Q, createBlock as ye, renderSlot as We, withModifiers as Qe, mergeModels as It, useModel as Wr, reactive as Sl, watch as mt, nextTick as Kr, withCtx as se, resolveComponent as Pt, mergeProps as gu, createTextVNode as Nr, h as El, createSlots as xl, getCurrentScope as Il, onScopeDispose as Pl, markRaw as wa, effectScope as Al, shallowRef as Ll, onMounted as Dl, Teleport as vu, Transition as pu, resolveDynamicComponent as Rl, withDirectives as Ol, vShow as Ml } from "vue";
1
+ import { defineComponent as re, computed as ee, createElementBlock as P, openBlock as E, createElementVNode as S, inject as ut, ref as le, Fragment as ge, createCommentVNode as X, createVNode as W, renderList as mt, normalizeStyle as pe, toDisplayString as me, unref as I, normalizeClass as Q, createBlock as ye, renderSlot as We, withModifiers as Qe, mergeModels as It, useModel as Wr, reactive as Sl, watch as yt, nextTick as Kr, withCtx as se, resolveComponent as Pt, mergeProps as gu, createTextVNode as Nr, h as El, createSlots as xl, getCurrentScope as Il, onScopeDispose as Pl, markRaw as wa, effectScope as Al, shallowRef as Ll, onMounted as Dl, Teleport as vu, Transition as pu, resolveDynamicComponent as Rl, withDirectives as Ol, vShow as Ml } from "vue";
2
2
  import { paramType as Br, ikFile as Fl, buildUUID as mu, ikColor as Nl, _ as Ci, ikUrl as Bl } from "iking-utils-pro";
3
- import { useLocale as Hl, useNamespace as yu, useZIndex as Ul, ElIcon as je, EVENT_CODE as ut } from "element-plus";
3
+ import { useLocale as Hl, useNamespace as yu, useZIndex as Ul, ElIcon as je, EVENT_CODE as lt } from "element-plus";
4
4
  const Ne = (a, s) => (a.install = (n) => {
5
5
  for (const t of [a, ...Object.values({})])
6
6
  n.component(t.name, t);
@@ -258,7 +258,7 @@ const Ne = (a, s) => (a.install = (n) => {
258
258
  }
259
259
  },
260
260
  setup(a) {
261
- const s = a, n = te(() => s.file ? Zt(s.file, s.fields) : s.type);
261
+ const s = a, n = ee(() => s.file ? Zt(s.file, s.fields) : s.type);
262
262
  return (t, e) => n.value === "image" ? (E(), P("svg", Vl, [...e[0] || (e[0] = [
263
263
  S(
264
264
  "path",
@@ -817,14 +817,17 @@ const li = (a, s) => {
817
817
  "flv",
818
818
  "tls"
819
819
  ], bu = (a) => {
820
- const s = kt("loadUrl"), n = te(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = kt("uploadUrl"), e = te(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = kt("token"), r = te(() => a.token || (i == null ? void 0 : i.value)), o = kt("onlyofficeConfig"), u = te(() => a.onlyofficeConfig || (o == null ? void 0 : o.value)), l = kt("userInfo"), c = te(() => a.userInfo || (l == null ? void 0 : l.value)), f = [...Ea, ...Ea.map((d) => d.toLocaleUpperCase())];
820
+ const s = ut("loadUrl"), n = ee(() => a.loadUrl || a.fileUrl || (s == null ? void 0 : s.value)), t = ut("uploadUrl"), e = ee(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ut("token"), r = ee(() => a.token || (i == null ? void 0 : i.value)), o = ut("header"), u = ee(() => a.header || (o == null ? void 0 : o.value) || {
821
+ Authorization: r.value
822
+ }), l = ut("onlyofficeConfig"), c = ee(() => a.onlyofficeConfig || (l == null ? void 0 : l.value)), f = ut("userInfo"), d = ee(() => a.userInfo || (f == null ? void 0 : f.value)), v = [...Ea, ...Ea.map((g) => g.toLocaleUpperCase())];
821
823
  return {
822
824
  cLoadUrl: n,
823
825
  cUploadUrl: e,
824
826
  cToken: r,
825
- cOnlyofficeConfig: u,
826
- cUserInfo: c,
827
- cOnlyofficePreviewType: f
827
+ cHeader: u,
828
+ cOnlyofficeConfig: c,
829
+ cUserInfo: d,
830
+ cOnlyofficePreviewType: v
828
831
  };
829
832
  }, _c = ["onClick"], bc = {
830
833
  class: "flex align-center",
@@ -938,7 +941,7 @@ const li = (a, s) => {
938
941
  },
939
942
  emits: ["handPreview", "download", "close"],
940
943
  setup(a, { emit: s }) {
941
- const n = a, t = te(() => n.simple ? "simple" : n.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: r } = bu(n), o = s, u = te(() => ({
944
+ const n = a, t = ee(() => n.simple ? "simple" : n.showType), { cLoadUrl: e, cOnlyofficeConfig: i, cOnlyofficePreviewType: r } = bu(n), o = s, u = ee(() => ({
942
945
  name: "name",
943
946
  url: "url",
944
947
  suffix: "suffix",
@@ -964,7 +967,7 @@ const li = (a, s) => {
964
967
  );
965
968
  }, v = (p) => {
966
969
  o("close", p);
967
- }, g = te(() => Br.isNumber(n.width) ? `${n.width}px` : n.width), m = te(() => n.list.map((p) => {
970
+ }, g = ee(() => Br.isNumber(n.width) ? `${n.width}px` : n.width), m = ee(() => n.list.map((p) => {
968
971
  var b;
969
972
  const k = p[u.value.name] || p.attachmentName;
970
973
  return {
@@ -988,7 +991,7 @@ const li = (a, s) => {
988
991
  t.value === "simple" ? (E(!0), P(
989
992
  ge,
990
993
  { key: 0 },
991
- pt(m.value, (T, x) => (E(), P("div", {
994
+ mt(m.value, (T, x) => (E(), P("div", {
992
995
  class: "iking-privew-annex simple",
993
996
  key: x,
994
997
  onClick: (R) => f(T),
@@ -1046,7 +1049,7 @@ const li = (a, s) => {
1046
1049
  (E(!0), P(
1047
1050
  ge,
1048
1051
  null,
1049
- pt(m.value, (T, x) => (E(), P("div", {
1052
+ mt(m.value, (T, x) => (E(), P("div", {
1050
1053
  class: "iking-privew-annex simple-icon",
1051
1054
  key: x,
1052
1055
  onClick: (R) => f(T),
@@ -1118,7 +1121,7 @@ const li = (a, s) => {
1118
1121
  (E(!0), P(
1119
1122
  ge,
1120
1123
  null,
1121
- pt(m.value, (T, x) => {
1124
+ mt(m.value, (T, x) => {
1122
1125
  var R;
1123
1126
  return E(), P(
1124
1127
  "div",
@@ -1256,7 +1259,7 @@ const li = (a, s) => {
1256
1259
  }),
1257
1260
  emits: /* @__PURE__ */ It(["close"], ["update:show"]),
1258
1261
  setup(a, { emit: s }) {
1259
- const n = a, t = s, e = Wr(a, "show"), i = te(() => ({
1262
+ const n = a, t = s, e = Wr(a, "show"), i = ee(() => ({
1260
1263
  name: "name",
1261
1264
  url: "url",
1262
1265
  suffix: "suffix",
@@ -1312,7 +1315,7 @@ const li = (a, s) => {
1312
1315
  console.info("预览错误: ", x);
1313
1316
  }
1314
1317
  };
1315
- mt([e, n.file], ([g, m]) => {
1318
+ yt([e, n.file], ([g, m]) => {
1316
1319
  g && Kr(() => {
1317
1320
  c(n.file);
1318
1321
  });
@@ -1478,10 +1481,10 @@ const jc = {
1478
1481
  },
1479
1482
  emits: ["click", "mouseenter", "mouseleave", "dblclick"],
1480
1483
  setup(a, { emit: s }) {
1481
- const n = a, t = te(() => n), e = te(() => {
1484
+ const n = a, t = ee(() => n), e = ee(() => {
1482
1485
  const { name: f } = t.value;
1483
1486
  return /^http?:\/\//.test(f) ? "img" : /i-[^:]+:[^:]+/.test(f) ? "unocss" : f != null && f.startsWith("iksig") ? "iksig" : f != null && f.includes(":") ? "iconify" : f != null && f.startsWith("iksvg") ? "svg" : "i";
1484
- }), i = te(() => {
1487
+ }), i = ee(() => {
1485
1488
  const f = [];
1486
1489
  if (t.value.flip)
1487
1490
  switch (t.value.flip) {
@@ -1641,7 +1644,7 @@ const jc = {
1641
1644
  );
1642
1645
  };
1643
1646
  }
1644
- }), $c = /* @__PURE__ */ li(Kc, [["__scopeId", "data-v-d5c74053"]]), De = Ne($c), Yc = /* @__PURE__ */ re({
1647
+ }), $c = /* @__PURE__ */ li(Kc, [["__scopeId", "data-v-9ebb0a94"]]), De = Ne($c), Yc = /* @__PURE__ */ re({
1645
1648
  __name: "CloseIcon",
1646
1649
  props: {
1647
1650
  showBg: {
@@ -1671,7 +1674,7 @@ const jc = {
1671
1674
  /* CLASS */
1672
1675
  ));
1673
1676
  }
1674
- }), Xc = /* @__PURE__ */ li(Yc, [["__scopeId", "data-v-22f2afe8"]]), Zc = { class: "base-header" }, Jc = /* @__PURE__ */ re({
1677
+ }), Xc = /* @__PURE__ */ li(Yc, [["__scopeId", "data-v-da9210e2"]]), Zc = { class: "base-header" }, Jc = /* @__PURE__ */ re({
1675
1678
  __name: "IkBaseDialog",
1676
1679
  props: /* @__PURE__ */ It({
1677
1680
  title: { default: "" },
@@ -1733,8 +1736,8 @@ const jc = {
1733
1736
  )
1734
1737
  ])
1735
1738
  ]),
1736
- X(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"\r
1737
- :name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"\r
1739
+ X(` <IkSvgIcon v-if="$attrs.showClose" @click="handFullSize"
1740
+ :name="isFull ? 'iksvg_tuichuquanping' : 'iksvg_quanping-daohang'"
1738
1741
  class="absolute! top-[18px] right-[50px] icon-dialog-full" :title="isFull ? '退出全屏' : '全屏'" /> `)
1739
1742
  ]),
1740
1743
  default: se(() => [
@@ -3074,8 +3077,8 @@ var _r, Io;
3074
3077
  function _h() {
3075
3078
  if (Io) return _r;
3076
3079
  Io = 1;
3077
- var a = Rf(), s = Of(), n = Eu(), t = Gf(), e = $f(), i = Yf(), r = Xf(), o = Jf(), u = Qf(), l = eh(), c = th(), f = ra(), d = sh(), v = hh(), g = gh(), m = Zr(), p = xu(), k = ph(), b = Dt(), C = yh(), A = ta(), T = ia(), x = 1, R = 2, q = 4, j = "[object Arguments]", B = "[object Array]", O = "[object Boolean]", ie = "[object Date]", ae = "[object Error]", ke = "[object Function]", Ft = "[object GeneratorFunction]", Nt = "[object Map]", _t = "[object Number]", bt = "[object Object]", Bt = "[object RegExp]", Le = "[object Set]", H = "[object String]", K = "[object Symbol]", ee = "[object WeakMap]", ve = "[object ArrayBuffer]", we = "[object DataView]", Te = "[object Float32Array]", Ee = "[object Float64Array]", Xe = "[object Int8Array]", Ht = "[object Int16Array]", Ut = "[object Int32Array]", Ct = "[object Uint8Array]", _l = "[object Uint8ClampedArray]", bl = "[object Uint16Array]", Cl = "[object Uint32Array]", Z = {};
3078
- Z[j] = Z[B] = Z[ve] = Z[we] = Z[O] = Z[ie] = Z[Te] = Z[Ee] = Z[Xe] = Z[Ht] = Z[Ut] = Z[Nt] = Z[_t] = Z[bt] = Z[Bt] = Z[Le] = Z[H] = Z[K] = Z[Ct] = Z[_l] = Z[bl] = Z[Cl] = !0, Z[ae] = Z[ke] = Z[ee] = !1;
3080
+ var a = Rf(), s = Of(), n = Eu(), t = Gf(), e = $f(), i = Yf(), r = Xf(), o = Jf(), u = Qf(), l = eh(), c = th(), f = ra(), d = sh(), v = hh(), g = gh(), m = Zr(), p = xu(), k = ph(), b = Dt(), C = yh(), A = ta(), T = ia(), x = 1, R = 2, q = 4, j = "[object Arguments]", B = "[object Array]", O = "[object Boolean]", ie = "[object Date]", ae = "[object Error]", ke = "[object Function]", Ft = "[object GeneratorFunction]", Nt = "[object Map]", bt = "[object Number]", Ct = "[object Object]", Bt = "[object RegExp]", Le = "[object Set]", H = "[object String]", K = "[object Symbol]", te = "[object WeakMap]", ve = "[object ArrayBuffer]", we = "[object DataView]", Te = "[object Float32Array]", Ee = "[object Float64Array]", Xe = "[object Int8Array]", Ht = "[object Int16Array]", Ut = "[object Int32Array]", kt = "[object Uint8Array]", _l = "[object Uint8ClampedArray]", bl = "[object Uint16Array]", Cl = "[object Uint32Array]", Z = {};
3081
+ Z[j] = Z[B] = Z[ve] = Z[we] = Z[O] = Z[ie] = Z[Te] = Z[Ee] = Z[Xe] = Z[Ht] = Z[Ut] = Z[Nt] = Z[bt] = Z[Ct] = Z[Bt] = Z[Le] = Z[H] = Z[K] = Z[kt] = Z[_l] = Z[bl] = Z[Cl] = !0, Z[ae] = Z[ke] = Z[te] = !1;
3079
3082
  function jt(Y, at, st, kl, zt, He) {
3080
3083
  var he, Vt = at & x, qt = at & R, wl = at & q;
3081
3084
  if (st && (he = zt ? st(Y, kl, zt, He) : st(Y)), he !== void 0)
@@ -3090,7 +3093,7 @@ function _h() {
3090
3093
  var ot = f(Y), ba = ot == ke || ot == Ft;
3091
3094
  if (p(Y))
3092
3095
  return i(Y, Vt);
3093
- if (ot == bt || ot == j || ba && !zt) {
3096
+ if (ot == Ct || ot == j || ba && !zt) {
3094
3097
  if (he = qt || ba ? {} : g(Y), !Vt)
3095
3098
  return qt ? u(Y, e(he, Y)) : o(Y, t(he, Y));
3096
3099
  } else {
@@ -3383,7 +3386,7 @@ function Wt(...a) {
3383
3386
  Array.isArray(n) || (n = [n]), Array.isArray(t) || (t = [t]);
3384
3387
  const i = [], r = () => {
3385
3388
  i.forEach((c) => c()), i.length = 0;
3386
- }, o = (c, f, d, v) => (c.addEventListener(f, d, v), () => c.removeEventListener(f, d, v)), u = mt(() => [Lh(s), Bu(e)], ([c, f]) => {
3389
+ }, o = (c, f, d, v) => (c.addEventListener(f, d, v), () => c.removeEventListener(f, d, v)), u = yt(() => [Lh(s), Bu(e)], ([c, f]) => {
3387
3390
  r(), c && i.push(...n.flatMap((d) => t.map((v) => o(c, d, v, f))));
3388
3391
  }, { immediate: !0, flush: "post" }), l = () => {
3389
3392
  u(), r();
@@ -3528,61 +3531,61 @@ const Bh = {
3528
3531
  offsetX: 0,
3529
3532
  offsetY: 0,
3530
3533
  enableTransition: !1
3531
- }), k = le(i.zIndex ?? l()), b = te(() => {
3534
+ }), k = le(i.zIndex ?? l()), b = ee(() => {
3532
3535
  const { urlList: H } = i;
3533
3536
  return H.length <= 1;
3534
- }), C = te(() => g.value === 0), A = te(() => g.value === i.urlList.length - 1), T = te(() => i.urlList[g.value]), x = te(() => [
3537
+ }), C = ee(() => g.value === 0), A = ee(() => g.value === i.urlList.length - 1), T = ee(() => i.urlList[g.value]), x = ee(() => [
3535
3538
  u.e("btn"),
3536
3539
  u.e("prev"),
3537
3540
  u.is("disabled", !i.infinite && C.value)
3538
- ]), R = te(() => [
3541
+ ]), R = ee(() => [
3539
3542
  u.e("btn"),
3540
3543
  u.e("next"),
3541
3544
  u.is("disabled", !i.infinite && A.value)
3542
- ]), q = te(() => {
3543
- const { scale: H, deg: K, offsetX: ee, offsetY: ve, enableTransition: we } = p.value;
3544
- let Te = ee / H, Ee = ve / H;
3545
+ ]), q = ee(() => {
3546
+ const { scale: H, deg: K, offsetX: te, offsetY: ve, enableTransition: we } = p.value;
3547
+ let Te = te / H, Ee = ve / H;
3545
3548
  const Xe = K * Math.PI / 180, Ht = Math.cos(Xe), Ut = Math.sin(Xe);
3546
- Te = Te * Ht + Ee * Ut, Ee = Ee * Ht - ee / H * Ut;
3547
- const Ct = {
3549
+ Te = Te * Ht + Ee * Ut, Ee = Ee * Ht - te / H * Ut;
3550
+ const kt = {
3548
3551
  transform: `scale(${H}) rotate(${K}deg) translate(${Te}px, ${Ee}px)`,
3549
3552
  transition: we ? "transform .3s" : ""
3550
3553
  };
3551
- return m.value.name === e.CONTAIN.name && (Ct.maxWidth = Ct.maxHeight = "100%"), Ct;
3554
+ return m.value.name === e.CONTAIN.name && (kt.maxWidth = kt.maxHeight = "100%"), kt;
3552
3555
  });
3553
3556
  function j() {
3554
3557
  O(), r("close");
3555
3558
  }
3556
3559
  function B() {
3557
- const H = Ci.throttle((ee) => {
3558
- switch (ee.code) {
3560
+ const H = Ci.throttle((te) => {
3561
+ switch (te.code) {
3559
3562
  // ESC
3560
- case ut.esc:
3563
+ case lt.esc:
3561
3564
  i.closeOnPressEscape && j();
3562
3565
  break;
3563
3566
  // SPACE
3564
- case ut.space:
3567
+ case lt.space:
3565
3568
  Nt();
3566
3569
  break;
3567
3570
  // LEFT_ARROW
3568
- case ut.left:
3569
- bt();
3571
+ case lt.left:
3572
+ Ct();
3570
3573
  break;
3571
3574
  // UP_ARROW
3572
- case ut.up:
3575
+ case lt.up:
3573
3576
  Le("zoomIn");
3574
3577
  break;
3575
3578
  // RIGHT_ARROW
3576
- case ut.right:
3579
+ case lt.right:
3577
3580
  Bt();
3578
3581
  break;
3579
3582
  // DOWN_ARROW
3580
- case ut.down:
3583
+ case lt.down:
3581
3584
  Le("zoomOut");
3582
3585
  break;
3583
3586
  }
3584
- }), K = Ci.throttle((ee) => {
3585
- const ve = ee.deltaY || ee.deltaX;
3587
+ }), K = Ci.throttle((te) => {
3588
+ const ve = te.deltaY || te.deltaX;
3586
3589
  Le(ve < 0 ? "zoomIn" : "zoomOut", {
3587
3590
  zoomRate: i.zoomRate,
3588
3591
  enableTransition: !1
@@ -3604,11 +3607,11 @@ const Bh = {
3604
3607
  function ke(H) {
3605
3608
  if (v.value || H.button !== 0 || !c.value) return;
3606
3609
  p.value.enableTransition = !1;
3607
- const { offsetX: K, offsetY: ee } = p.value, ve = H.pageX, we = H.pageY, Te = Ci.throttle((Xe) => {
3610
+ const { offsetX: K, offsetY: te } = p.value, ve = H.pageX, we = H.pageY, Te = Ci.throttle((Xe) => {
3608
3611
  p.value = {
3609
3612
  ...p.value,
3610
3613
  offsetX: K + Xe.pageX - ve,
3611
- offsetY: ee + Xe.pageY - we
3614
+ offsetY: te + Xe.pageY - we
3612
3615
  };
3613
3616
  }), Ee = Wt(document, "mousemove", Te);
3614
3617
  Wt(document, "mouseup", () => {
@@ -3626,22 +3629,22 @@ const Bh = {
3626
3629
  }
3627
3630
  function Nt() {
3628
3631
  if (v.value) return;
3629
- const H = t(e), K = Object.values(e), ee = m.value.name, we = ((K == null ? void 0 : K.findIndex((Te) => Te.name === ee)) + 1) % H.length;
3632
+ const H = t(e), K = Object.values(e), te = m.value.name, we = ((K == null ? void 0 : K.findIndex((Te) => Te.name === te)) + 1) % H.length;
3630
3633
  m.value = e[H[we]], Ft();
3631
3634
  }
3632
- function _t(H) {
3635
+ function bt(H) {
3633
3636
  const K = i.urlList.length;
3634
3637
  g.value = (H + K) % K;
3635
3638
  }
3636
- function bt() {
3637
- C.value && !i.infinite || _t(g.value - 1);
3639
+ function Ct() {
3640
+ C.value && !i.infinite || bt(g.value - 1);
3638
3641
  }
3639
3642
  function Bt() {
3640
- A.value && !i.infinite || _t(g.value + 1);
3643
+ A.value && !i.infinite || bt(g.value + 1);
3641
3644
  }
3642
3645
  function Le(H, K = {}) {
3643
3646
  if (v.value) return;
3644
- const { minScale: ee, maxScale: ve } = i, { zoomRate: we, rotateDeg: Te, enableTransition: Ee } = {
3647
+ const { minScale: te, maxScale: ve } = i, { zoomRate: we, rotateDeg: Te, enableTransition: Ee } = {
3645
3648
  zoomRate: i.zoomRate,
3646
3649
  rotateDeg: 90,
3647
3650
  enableTransition: !0,
@@ -3649,7 +3652,7 @@ const Bh = {
3649
3652
  };
3650
3653
  switch (H) {
3651
3654
  case "zoomOut":
3652
- p.value.scale > ee && (p.value.scale = Number.parseFloat(
3655
+ p.value.scale > te && (p.value.scale = Number.parseFloat(
3653
3656
  (p.value.scale / we).toFixed(3)
3654
3657
  ));
3655
3658
  break;
@@ -3667,12 +3670,12 @@ const Bh = {
3667
3670
  }
3668
3671
  p.value.enableTransition = Ee;
3669
3672
  }
3670
- return mt(T, () => {
3673
+ return yt(T, () => {
3671
3674
  Kr(() => {
3672
3675
  const H = f.value[0];
3673
3676
  H != null && H.complete || (v.value = !0);
3674
3677
  });
3675
- }), mt(g, (H) => {
3678
+ }), yt(g, (H) => {
3676
3679
  Ft(), r("switch", H);
3677
3680
  }), Dl(() => {
3678
3681
  var H, K;
@@ -3681,7 +3684,7 @@ const Bh = {
3681
3684
  /**
3682
3685
  * @description manually switch image
3683
3686
  */
3684
- setActiveItem: _t
3687
+ setActiveItem: bt
3685
3688
  }), (H, K) => (E(), ye(vu, { to: "body" }, [
3686
3689
  W(pu, {
3687
3690
  name: "viewer-fade",
@@ -3702,7 +3705,7 @@ const Bh = {
3702
3705
  "div",
3703
3706
  {
3704
3707
  class: Q(I(u).e("mask")),
3705
- onClick: K[0] || (K[0] = Qe((ee) => H.hideOnClickModal && j(), ["self"]))
3708
+ onClick: K[0] || (K[0] = Qe((te) => H.hideOnClickModal && j(), ["self"]))
3706
3709
  },
3707
3710
  null,
3708
3711
  2
@@ -3736,7 +3739,7 @@ const Bh = {
3736
3739
  "span",
3737
3740
  {
3738
3741
  class: Q(x.value),
3739
- onClick: bt
3742
+ onClick: Ct
3740
3743
  },
3741
3744
  [
3742
3745
  W(I(je), null, {
@@ -3786,7 +3789,7 @@ const Bh = {
3786
3789
  },
3787
3790
  [
3788
3791
  W(I(je), {
3789
- onClick: K[1] || (K[1] = (ee) => Le("zoomOut"))
3792
+ onClick: K[1] || (K[1] = (te) => Le("zoomOut"))
3790
3793
  }, {
3791
3794
  default: se(() => [
3792
3795
  W(I(yc))
@@ -3795,7 +3798,7 @@ const Bh = {
3795
3798
  /* STABLE */
3796
3799
  }),
3797
3800
  W(I(je), {
3798
- onClick: K[2] || (K[2] = (ee) => Le("zoomIn"))
3801
+ onClick: K[2] || (K[2] = (te) => Le("zoomIn"))
3799
3802
  }, {
3800
3803
  default: se(() => [
3801
3804
  W(I(pc))
@@ -3829,7 +3832,7 @@ const Bh = {
3829
3832
  /* CLASS */
3830
3833
  ),
3831
3834
  W(I(je), {
3832
- onClick: K[3] || (K[3] = (ee) => Le("anticlockwise"))
3835
+ onClick: K[3] || (K[3] = (te) => Le("anticlockwise"))
3833
3836
  }, {
3834
3837
  default: se(() => [
3835
3838
  W(I(cc))
@@ -3838,7 +3841,7 @@ const Bh = {
3838
3841
  /* STABLE */
3839
3842
  }),
3840
3843
  W(I(je), {
3841
- onClick: K[4] || (K[4] = (ee) => Le("clockwise"))
3844
+ onClick: K[4] || (K[4] = (te) => Le("clockwise"))
3842
3845
  }, {
3843
3846
  default: se(() => [
3844
3847
  W(I(hc))
@@ -3864,11 +3867,11 @@ const Bh = {
3864
3867
  (E(!0), P(
3865
3868
  ge,
3866
3869
  null,
3867
- pt(H.urlList, (ee, ve) => Ol((E(), P("img", {
3870
+ mt(H.urlList, (te, ve) => Ol((E(), P("img", {
3868
3871
  ref_for: !0,
3869
3872
  ref: (we) => f.value[ve] = we,
3870
- key: ee,
3871
- src: ee,
3873
+ key: te,
3874
+ src: te,
3872
3875
  style: pe(q.value),
3873
3876
  class: Q(I(u).e("img")),
3874
3877
  crossorigin: H.crossorigin,
@@ -4899,7 +4902,7 @@ var Ho = {
4899
4902
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
4900
4903
  }
4901
4904
  }
4902
- ), Ce = "play", ua = "playing", it = "ended", yt = "pause", Ot = "error", pi = "seeking", Me = "seeked", be = "timeupdate", Mt = "waiting", Oe = "canplay", sd = "canplaythrough", Be = "durationchange", Vu = "volumechange", Fe = "loadeddata", od = "loadedmetadata", qu = "ratechange", Gu = "progress", la = "loadstart", nt = "emptied", ud = "stalled", ld = "suspend", cd = "abort", fd = "bufferedChange", ca = "focus", Wu = "blur", fa = "ready", Ku = "urlNull", et = "autoplay_started", ha = "autoplay_was_prevented", mi = "complete", ei = "replay", da = "destroy", yi = "urlchange", zr = "download_speed_change", $u = "leaveplayer", Yu = "enterplayer", Xu = "loading", Re = "fullscreen_change", ti = "cssFullscreen_change", ii = "mini_state_change", ga = "definition_change", hd = "before_definition_change", Vr = "after_definition_change", dd = "SEI_PARSED", gd = "retry", Ke = "video_resize", qr = "pip_change", Zu = "rotate", Ju = "screenShot", ni = "playnext", Qu = "shortcut", el = "xglog", ri = "user_action", _i = "reset", tl = "source_error", il = "source_success", vd = "switch_subtitle", nl = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], rl = {
4905
+ ), Ce = "play", ua = "playing", it = "ended", _t = "pause", Ot = "error", pi = "seeking", Me = "seeked", be = "timeupdate", Mt = "waiting", Oe = "canplay", sd = "canplaythrough", Be = "durationchange", Vu = "volumechange", Fe = "loadeddata", od = "loadedmetadata", qu = "ratechange", Gu = "progress", la = "loadstart", nt = "emptied", ud = "stalled", ld = "suspend", cd = "abort", fd = "bufferedChange", ca = "focus", Wu = "blur", fa = "ready", Ku = "urlNull", et = "autoplay_started", ha = "autoplay_was_prevented", mi = "complete", ei = "replay", da = "destroy", yi = "urlchange", zr = "download_speed_change", $u = "leaveplayer", Yu = "enterplayer", Xu = "loading", Re = "fullscreen_change", ti = "cssFullscreen_change", ii = "mini_state_change", ga = "definition_change", hd = "before_definition_change", Vr = "after_definition_change", dd = "SEI_PARSED", gd = "retry", Ke = "video_resize", qr = "pip_change", Zu = "rotate", Ju = "screenShot", ni = "playnext", Qu = "shortcut", el = "xglog", ri = "user_action", _i = "reset", tl = "source_error", il = "source_success", vd = "switch_subtitle", nl = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], rl = {
4903
4906
  STATS_INFO: "stats_info",
4904
4907
  STATS_DOWNLOAD: "stats_download",
4905
4908
  STATS_RESET: "stats_reset"
@@ -4932,7 +4935,7 @@ const pd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4932
4935
  LOADING: Xu,
4933
4936
  LOAD_START: la,
4934
4937
  MINI_STATE_CHANGE: ii,
4935
- PAUSE: yt,
4938
+ PAUSE: _t,
4936
4939
  PIP_CHANGE: qr,
4937
4940
  PLAY: Ce,
4938
4941
  PLAYER_BLUR: Wu,
@@ -6900,7 +6903,7 @@ function Md(a) {
6900
6903
  return Lt(n.lang, _e.lang), (s = n.langKeys).push.apply(s, Se(_e.langKeys)), Lt(n.textKeys, _e.textKeys), n;
6901
6904
  }
6902
6905
  va(Rd);
6903
- var vt = {
6906
+ var pt = {
6904
6907
  get textKeys() {
6905
6908
  return _e.textKeys;
6906
6909
  },
@@ -7097,7 +7100,7 @@ var Nd = ["play", "pause", "replay", "retry"], eu = 0, tu = 0, ze = null, bi = /
7097
7100
  }, e._offsetInfo = {
7098
7101
  currentTime: -1,
7099
7102
  duration: 0
7100
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = vt.init(e._pluginInfoId), z.os.isAndroid && z.osVersion > 0 && z.osVersion < 6 && (e.config.autoplay = !1), e.database = new _d(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
7103
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = pt.init(e._pluginInfoId), z.os.isAndroid && z.osVersion > 0 && z.osVersion < 6 && (e.config.autoplay = !1), e.database = new _d(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
7101
7104
  isActiveLocked: !1
7102
7105
  }, e.instManager = ze;
7103
7106
  var u = e._initDOM();
@@ -7210,7 +7213,7 @@ var Nd = ["play", "pause", "replay", "retry"], eu = 0, tu = 0, ze = null, bi = /
7210
7213
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
7211
7214
  this._loadingPlugins = [];
7212
7215
  var r = this.config.ignores || [], o = this.config.plugins || [], u = this.config.i18n || [];
7213
- i && vt.extend(u, this.__i18n);
7216
+ i && pt.extend(u, this.__i18n);
7214
7217
  var l = r.join("||").toLowerCase().split("||"), c = this.plugins;
7215
7218
  o.forEach(function(f) {
7216
7219
  try {
@@ -8016,11 +8019,11 @@ var Nd = ["play", "pause", "replay", "retry"], eu = 0, tu = 0, ze = null, bi = /
8016
8019
  return this.config.lang;
8017
8020
  },
8018
8021
  set: function(e) {
8019
- var i = vt.langKeys.filter(function(r) {
8022
+ var i = pt.langKeys.filter(function(r) {
8020
8023
  return r === e;
8021
8024
  });
8022
8025
  if (i.length === 0 && e !== "zh") {
8023
- console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(vt.langKeys.join(), "] "));
8026
+ console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(pt.langKeys.join(), "] "));
8024
8027
  return;
8025
8028
  }
8026
8029
  this.config.lang = e, ue.setLang(e, this);
@@ -8629,7 +8632,7 @@ var hl = /* @__PURE__ */ (function(a) {
8629
8632
  key: "listenEvents",
8630
8633
  value: function() {
8631
8634
  var e = this, i = this.player;
8632
- this.on([Ce, yt, Ot, nt], function() {
8635
+ this.on([Ce, _t, Ot, nt], function() {
8633
8636
  e.animate(i.paused);
8634
8637
  });
8635
8638
  }
@@ -10107,7 +10110,7 @@ var eg = /* @__PURE__ */ (function(a) {
10107
10110
  e.setAttr("data-state", "play"), h.removeClass(e.root, o), e.show();
10108
10111
  }), this.on(Ce, function() {
10109
10112
  e.toggleTo("play");
10110
- }), this.on(yt, function() {
10113
+ }), this.on(_t, function() {
10111
10114
  e.toggleTo("pause");
10112
10115
  }), this.on(_i, function() {
10113
10116
  e.onPlayerReset();
@@ -10650,7 +10653,7 @@ var Lr = {
10650
10653
  key: "afterCreate",
10651
10654
  value: function() {
10652
10655
  var e = this;
10653
- this.initIcons(), this.on(yt, function() {
10656
+ this.initIcons(), this.on(_t, function() {
10654
10657
  e.setAttr("data-state", "pause");
10655
10658
  }), this.on(Ce, function() {
10656
10659
  e.setAttr("data-state", "play");
@@ -11026,7 +11029,7 @@ function cg() {
11026
11029
  <path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
11027
11030
  </svg>`, "image/svg+xml").firstChild;
11028
11031
  }
11029
- var lt = {
11032
+ var ct = {
11030
11033
  AUTO: "auto",
11031
11034
  SEEKING: "seeking",
11032
11035
  PLAYBACK: "playbackrate"
@@ -11064,7 +11067,7 @@ var lt = {
11064
11067
  }, 10), !!u.isStart) {
11065
11068
  u.scope > -1 && i.cancelable && i.preventDefault();
11066
11069
  var c = e.config, f = c.disableGesture, d = c.gestureX;
11067
- !f && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), h.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(lt.AUTO);
11070
+ !f && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), h.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(ct.AUTO);
11068
11071
  }
11069
11072
  }), _(y(e), "onRootTouchMove", function(i) {
11070
11073
  e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
@@ -11150,7 +11153,7 @@ var lt = {
11150
11153
  e.activeSeekNote(d.currentTime, d.forward);
11151
11154
  }), ["dragend", "click"].forEach(function(d) {
11152
11155
  f.addCallBack(d, function() {
11153
- e.changeAction(lt.AUTO);
11156
+ e.changeAction(ct.AUTO);
11154
11157
  });
11155
11158
  }));
11156
11159
  }
@@ -11256,7 +11259,7 @@ var lt = {
11256
11259
  }, 500);
11257
11260
  break;
11258
11261
  }
11259
- this.changeAction(lt.AUTO);
11262
+ this.changeAction(ct.AUTO);
11260
11263
  }
11261
11264
  }, {
11262
11265
  key: "checkIsRootTarget",
@@ -11320,7 +11323,7 @@ var lt = {
11320
11323
  prop: "playbackRate",
11321
11324
  from: o.playbackRate,
11322
11325
  to: r.pressRate
11323
- }), o.playbackRate = r.pressRate, this.changeAction(lt.PLAYBACK));
11326
+ }), o.playbackRate = r.pressRate, this.changeAction(ct.PLAYBACK));
11324
11327
  }
11325
11328
  }, {
11326
11329
  key: "onPressEnd",
@@ -11330,7 +11333,7 @@ var lt = {
11330
11333
  prop: "playbackRate",
11331
11334
  from: o.playbackRate,
11332
11335
  to: i.rate
11333
- }), o.playbackRate = i.rate, i.rate = 1, this.changeAction(lt.AUTO));
11336
+ }), o.playbackRate = i.rate, i.rate = 1, this.changeAction(ct.AUTO));
11334
11337
  }
11335
11338
  }, {
11336
11339
  key: "updateTime",
@@ -11365,7 +11368,7 @@ var lt = {
11365
11368
  value: function(e) {
11366
11369
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, r = this.player, o = this.config, u = !(this.duration !== 1 / 0 && this.duration > 0);
11367
11370
  if (!(!e || typeof e != "number" || u || o.disableActive)) {
11368
- e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(lt.SEEKING);
11371
+ e < 0 ? e = 0 : e > r.duration && (e = r.duration - 0.2), this.changeAction(ct.SEEKING);
11369
11372
  var l = r.plugins.start;
11370
11373
  l && l.focusHide(), this.find(".xg-dur").innerHTML = h.format(this.duration), this.find(".xg-cur").innerHTML = h.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? h.removeClass(this.find(".xg-seek-show"), "xg-back") : h.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
11371
11374
  }
@@ -12063,7 +12066,7 @@ function _g() {
12063
12066
  fill="white" />
12064
12067
  </svg>`, "image/svg+xml").firstChild;
12065
12068
  }
12066
- var ct = {
12069
+ var ft = {
12067
12070
  PIP: "picture-in-picture",
12068
12071
  INLINE: "inline",
12069
12072
  FULLSCREEN: "fullscreen"
@@ -12098,7 +12101,7 @@ var ct = {
12098
12101
  key: "afterCreate",
12099
12102
  value: function() {
12100
12103
  var e = this;
12101
- this.isPIPAvailable() && (U(N(n.prototype), "afterCreate", this).call(this), this.pMode = ct.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(mi, function() {
12104
+ this.isPIPAvailable() && (U(N(n.prototype), "afterCreate", this).call(this), this.pMode = ft.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(mi, function() {
12102
12105
  e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
12103
12106
  }));
12104
12107
  }
@@ -12135,7 +12138,7 @@ var ct = {
12135
12138
  i.emit(qr, !0), r != null && r.pictureInPictureWindow && (e.pipWindow = r.pictureInPictureWindow), e.setAttr("data-state", "pip");
12136
12139
  }, this.onWebkitpresentationmodechanged = function(r) {
12137
12140
  var o = i.media.webkitPresentationMode;
12138
- e.pMode === ct.FULLSCREEN && o !== ct.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = o, o === ct.PIP ? e.enterPIPCallback(r) : o === ct.INLINE && e.leavePIPCallback(r);
12141
+ e.pMode === ft.FULLSCREEN && o !== ft.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = o, o === ft.PIP ? e.enterPIPCallback(r) : o === ft.INLINE && e.leavePIPCallback(r);
12139
12142
  }, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), n.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
12140
12143
  }
12141
12144
  }, {
@@ -12212,7 +12215,7 @@ var ct = {
12212
12215
  key: "isPip",
12213
12216
  get: function() {
12214
12217
  var e, i = this.player;
12215
- return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === ct.PIP;
12218
+ return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === ft.PIP;
12216
12219
  }
12217
12220
  }, {
12218
12221
  key: "isPIPAvailable",
@@ -12708,7 +12711,7 @@ var Ig = /* @__PURE__ */ (function(a) {
12708
12711
  SIDE: "side",
12709
12712
  MIDDLE: "middle",
12710
12713
  DEFAULT: "default"
12711
- }, ft = {
12714
+ }, ht = {
12712
12715
  CLICK: "click",
12713
12716
  HOVER: "hover"
12714
12717
  };
@@ -12727,7 +12730,7 @@ var Je = z.device === "mobile", ui = /* @__PURE__ */ (function(a) {
12727
12730
  }), _(y(e), "switchActiveState", function(i) {
12728
12731
  i.stopPropagation();
12729
12732
  var r = e.config.toggleMode;
12730
- r === ft.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
12733
+ r === ht.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
12731
12734
  }), _(y(e), "onLeave", function(i) {
12732
12735
  i.stopPropagation(), e.emit("icon_mouseleave", {
12733
12736
  pluginName: e.pluginName
@@ -12753,7 +12756,7 @@ var Je = z.device === "mobile", ui = /* @__PURE__ */ (function(a) {
12753
12756
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
12754
12757
  }), Je && this.on(ca, function() {
12755
12758
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
12756
- }), Je ? (i.toggleMode = ft.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === ft.CLICK ? "click" : "mouseenter", i.toggleMode === ft.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
12759
+ }), Je ? (i.toggleMode = ht.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === ht.CLICK ? "click" : "mouseenter", i.toggleMode === ht.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
12757
12760
  }
12758
12761
  }, {
12759
12762
  key: "initIcons",
@@ -12854,7 +12857,7 @@ var Je = z.device === "mobile", ui = /* @__PURE__ */ (function(a) {
12854
12857
  key: "destroy",
12855
12858
  value: function() {
12856
12859
  var e = this.config;
12857
- e.toggleMode === ft.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
12860
+ e.toggleMode === ht.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
12858
12861
  }
12859
12862
  }, {
12860
12863
  key: "render",
@@ -12882,7 +12885,7 @@ var Je = z.device === "mobile", ui = /* @__PURE__ */ (function(a) {
12882
12885
  hidePortrait: !0,
12883
12886
  isShowIcon: !1,
12884
12887
  isItemClickHide: !0,
12885
- toggleMode: ft.HOVER,
12888
+ toggleMode: ht.HOVER,
12886
12889
  heightLimit: !0
12887
12890
  };
12888
12891
  }
@@ -13388,7 +13391,7 @@ function Fg(a) {
13388
13391
  a.positionDots();
13389
13392
  });
13390
13393
  }
13391
- var ht = {
13394
+ var dt = {
13392
13395
  dragmove: "onProgressMove",
13393
13396
  dragstart: "onProgressDragStart",
13394
13397
  dragend: "onProgressDragEnd",
@@ -13468,8 +13471,8 @@ var ht = {
13468
13471
  key: "bindEvents",
13469
13472
  value: function() {
13470
13473
  var e = this, i = this.player.plugins.progress;
13471
- if (i && (Object.keys(ht).map(function(o) {
13472
- e[ht[o]] = e[ht[o]].bind(e), i.addCallBack(o, e[ht[o]]);
13474
+ if (i && (Object.keys(dt).map(function(o) {
13475
+ e[dt[o]] = e[dt[o]].bind(e), i.addCallBack(o, e[dt[o]]);
13473
13476
  }), z.device !== "mobile")) {
13474
13477
  this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
13475
13478
  var r = this.hook("previewClick", function() {
@@ -13627,8 +13630,8 @@ var ht = {
13627
13630
  key: "destroy",
13628
13631
  value: function() {
13629
13632
  var e = this, i = this.player.plugins.progress;
13630
- i && Object.keys(ht).map(function(r) {
13631
- i.removeCallBack(r, e[ht[r]]);
13633
+ i && Object.keys(dt).map(function(r) {
13634
+ i.removeCallBack(r, e[dt[r]]);
13632
13635
  }), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
13633
13636
  }
13634
13637
  }, {
@@ -13889,7 +13892,7 @@ var Hg = /* @__PURE__ */ (function(a) {
13889
13892
  };
13890
13893
  }
13891
13894
  }]), n;
13892
- })($), dt = {
13895
+ })($), gt = {
13893
13896
  REAL_TIME: "realtime",
13894
13897
  FIRST_FRAME: "firstframe",
13895
13898
  POSTER: "poster"
@@ -13931,7 +13934,7 @@ var Yt = null, zg = /* @__PURE__ */ (function(a) {
13931
13934
  }
13932
13935
  }), _(y(t), "start", function(o, u) {
13933
13936
  var l = t.player.video, c = Ug(), f = t.checkVideoIsSupport(l);
13934
- !f || !t.canvasCtx || (u || (u = t.interval), t.stop(), l.videoWidth && l.videoHeight && (t.videoPI = l.videoHeight > 0 ? parseInt(l.videoWidth / l.videoHeight * 100, 10) : 0, (t.config.mode === dt.REAL_TIME || c - t.preTime >= u) && (l && l.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(y(t), t.start, u) : h.requestAnimationFrame(t.start));
13937
+ !f || !t.canvasCtx || (u || (u = t.interval), t.stop(), l.videoWidth && l.videoHeight && (t.videoPI = l.videoHeight > 0 ? parseInt(l.videoWidth / l.videoHeight * 100, 10) : 0, (t.config.mode === gt.REAL_TIME || c - t.preTime >= u) && (l && l.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(y(t), t.start, u) : h.requestAnimationFrame(t.start));
13935
13938
  }), _(y(t), "stop", function() {
13936
13939
  t.frameId && (t._loopType === "timer" ? h.clearTimeout(y(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
13937
13940
  }), t;
@@ -13950,14 +13953,14 @@ var Yt = null, zg = /* @__PURE__ */ (function(a) {
13950
13953
  x: 0,
13951
13954
  y: 0,
13952
13955
  pi: 0
13953
- }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / u, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== dt.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(mi, function() {
13956
+ }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / u, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== gt.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(mi, function() {
13954
13957
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
13955
- }), o !== dt.POSTER && (o !== dt.FIRST_FRAME && (this.on(nt, function() {
13958
+ }), o !== gt.POSTER && (o !== gt.FIRST_FRAME && (this.on(nt, function() {
13956
13959
  e.stop();
13957
13960
  }), this.on(Ce, function() {
13958
13961
  var l = e.config.startInterval;
13959
13962
  e._checkIfCanStart() && e.start(0, l);
13960
- }), this.on(yt, function() {
13963
+ }), this.on(_t, function() {
13961
13964
  e.stop();
13962
13965
  })), this.on(Fe, this.onLoadedData), this.on(la, function() {
13963
13966
  e._isLoaded = !1, e.stop();
@@ -14024,7 +14027,7 @@ var Yt = null, zg = /* @__PURE__ */ (function(a) {
14024
14027
  key: "_checkIfCanStart",
14025
14028
  value: function() {
14026
14029
  var e = this.config.mode;
14027
- return this._isLoaded && !this.player.paused && e !== dt.FIRST_FRAME && e !== dt.POSTER;
14030
+ return this._isLoaded && !this.player.paused && e !== gt.FIRST_FRAME && e !== gt.POSTER;
14028
14031
  }
14029
14032
  }, {
14030
14033
  key: "renderOnce",
@@ -14466,7 +14469,7 @@ var Gg = /* @__PURE__ */ (function(a) {
14466
14469
  };
14467
14470
  }
14468
14471
  }]), n;
14469
- })($), gt = "cdn", Xt = ["cdn"], Wg = /* @__PURE__ */ (function(a) {
14472
+ })($), vt = "cdn", Xt = ["cdn"], Wg = /* @__PURE__ */ (function(a) {
14470
14473
  M(n, a);
14471
14474
  var s = F(n);
14472
14475
  function n() {
@@ -14475,7 +14478,7 @@ var Gg = /* @__PURE__ */ (function(a) {
14475
14478
  for (var e = arguments.length, i = new Array(e), r = 0; r < e; r++)
14476
14479
  i[r] = arguments[r];
14477
14480
  return t = s.call.apply(s, [this].concat(i)), _(y(t), "getSpeed", function() {
14478
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gt;
14481
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vt;
14479
14482
  if (!t.speedListCache || !t.speedListCache[o] || t.speedListCache[o].length <= 0)
14480
14483
  return 0;
14481
14484
  var u = 0;
@@ -14489,7 +14492,7 @@ var Gg = /* @__PURE__ */ (function(a) {
14489
14492
  t.speedListCache[o] = [];
14490
14493
  });
14491
14494
  }), _(y(t), "_onRealSpeedChange", function(o) {
14492
- o.speed && t.appendList(o.speed, o.type || gt);
14495
+ o.speed && t.appendList(o.speed, o.type || vt);
14493
14496
  }), _(y(t), "testSpeed", function() {
14494
14497
  if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
14495
14498
  var o = t.config, u = o.url, l = o.loadSize, c = o.testCnt, f = o.testTimeStep, d = u + (u.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
@@ -14514,17 +14517,17 @@ var Gg = /* @__PURE__ */ (function(a) {
14514
14517
  }
14515
14518
  }
14516
14519
  }), _(y(t), "appendList", function(o) {
14517
- var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : gt;
14520
+ var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : vt;
14518
14521
  if (!(!t.speedListCache || !t.speedListCache[u])) {
14519
14522
  var l = t.config.saveSpeedMax;
14520
14523
  t.speedListCache[u].length >= l && t.speedListCache[u].shift(), t.speedListCache[u].push(o);
14521
14524
  var c = y(t), f = c.player;
14522
- f && (u === gt ? f.realTimeSpeed = o : f[t.getSpeedName("realTime", u)] = o), t.updateSpeed(u);
14525
+ f && (u === vt ? f.realTimeSpeed = o : f[t.getSpeedName("realTime", u)] = o), t.updateSpeed(u);
14523
14526
  }
14524
14527
  }), _(y(t), "updateSpeed", function() {
14525
- var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gt, u = t.getSpeed(o), l = y(t), c = l.player;
14528
+ var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : vt, u = t.getSpeed(o), l = y(t), c = l.player;
14526
14529
  if (c)
14527
- if (o === gt)
14530
+ if (o === vt)
14528
14531
  (!c.avgSpeed || u !== c.avgSpeed) && (c.avgSpeed = u, c.emit(zr, {
14529
14532
  speed: u,
14530
14533
  realTimeSpeed: c.realTimeSpeed
@@ -14606,7 +14609,7 @@ var Gg = /* @__PURE__ */ (function(a) {
14606
14609
  var u = o.getVideoPlaybackQuality;
14607
14610
  u && (this.on(Ce, function() {
14608
14611
  e._startTick();
14609
- }), this.on(yt, function() {
14612
+ }), this.on(_t, function() {
14610
14613
  e._stopTick();
14611
14614
  }), this.on(it, function() {
14612
14615
  e._stopTick();
@@ -14702,7 +14705,7 @@ var Gg = /* @__PURE__ */ (function(a) {
14702
14705
  }
14703
14706
  }]), n;
14704
14707
  })($);
14705
- vt.use(Vg);
14708
+ pt.use(Vg);
14706
14709
  var $g = /* @__PURE__ */ D(function a(s, n) {
14707
14710
  var t, e, i;
14708
14711
  L(this, a);
@@ -14735,7 +14738,7 @@ _(oe, "Errors", Qt);
14735
14738
  _(oe, "Events", pd);
14736
14739
  _(oe, "Plugin", $);
14737
14740
  _(oe, "BasePlugin", $e);
14738
- _(oe, "I18N", vt);
14741
+ _(oe, "I18N", pt);
14739
14742
  _(oe, "STATE_CLASS", w);
14740
14743
  _(oe, "InstManager", cl);
14741
14744
  _(oe, "PlayIcon", hl);
@@ -14773,7 +14776,7 @@ const Yg = ["id"], Xg = /* @__PURE__ */ re({
14773
14776
  }, ["update:modelValue"]),
14774
14777
  setup(a, { emit: s }) {
14775
14778
  let n = null;
14776
- const t = a, { cLoadUrl: e } = bu(t), i = te(() => At(e.value, t.url)), r = {
14779
+ const t = a, { cLoadUrl: e } = bu(t), i = ee(() => At(e.value, t.url)), r = {
14777
14780
  width: "100%",
14778
14781
  height: "100%",
14779
14782
  // 是否自动播放
@@ -14791,14 +14794,14 @@ const Yg = ["id"], Xg = /* @__PURE__ */ re({
14791
14794
  poster: "",
14792
14795
  lang: "zh-CN",
14793
14796
  screenShot: !0
14794
- }, o = te(() => ({
14797
+ }, o = ee(() => ({
14795
14798
  ...r,
14796
14799
  ...t.config
14797
14800
  })), u = s, l = Wr(a, "modelValue"), c = mu(), f = yu("image-viewer");
14798
14801
  function d() {
14799
14802
  u("close"), l.value = !1, n.destroy();
14800
14803
  }
14801
- return mt(() => l.value, (v) => {
14804
+ return yt(() => l.value, (v) => {
14802
14805
  v && Kr(() => {
14803
14806
  n = new oe({
14804
14807
  id: c,
@@ -14918,7 +14921,7 @@ const Yg = ["id"], Xg = /* @__PURE__ */ re({
14918
14921
  },
14919
14922
  setup(a) {
14920
14923
  const s = a, n = le(s.fileList);
14921
- mt(
14924
+ yt(
14922
14925
  () => s.fileList,
14923
14926
  (l) => {
14924
14927
  l && (n.value = l);
@@ -14949,7 +14952,7 @@ const Yg = ["id"], Xg = /* @__PURE__ */ re({
14949
14952
  (E(!0), P(
14950
14953
  ge,
14951
14954
  null,
14952
- pt(n.value, (g, m) => (E(), P(
14955
+ mt(n.value, (g, m) => (E(), P(
14953
14956
  "div",
14954
14957
  {
14955
14958
  key: m,
@@ -15007,7 +15010,7 @@ const Yg = ["id"], Xg = /* @__PURE__ */ re({
15007
15010
  (E(!0), P(
15008
15011
  ge,
15009
15012
  null,
15010
- pt(n.value, (g, m) => (E(), P("div", {
15013
+ mt(n.value, (g, m) => (E(), P("div", {
15011
15014
  key: m,
15012
15015
  class: "preview-img"
15013
15016
  }, [