iking-web-ui-pro 0.2.21 → 0.2.22

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 (60) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +79 -73
  2. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  3. package/dist/IKExpandCollapse/style.css +1 -1
  4. package/dist/IKPreviewFile/ik.index.es.js +302 -296
  5. package/dist/IKPreviewFile/ik.index.umd.js +16 -16
  6. package/dist/IKPreviewFile/style.css +1 -1
  7. package/dist/IKVerticalStepBar/ik.index.es.js +130 -124
  8. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  9. package/dist/IKVerticalStepBar/style.css +1 -1
  10. package/dist/IkApprovalProcessDetail/ik.index.es.js +306 -300
  11. package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
  12. package/dist/IkApprovalProcessDetail/style.css +1 -1
  13. package/dist/IkBaseDialog/ik.index.es.js +117 -111
  14. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  15. package/dist/IkBaseDialog/style.css +1 -1
  16. package/dist/IkBtnSetting/ik.index.es.js +242 -236
  17. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  18. package/dist/IkBtnSetting/style.css +1 -1
  19. package/dist/IkCollapseCard/ik.index.es.js +83 -77
  20. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  21. package/dist/IkCollapseCard/style.css +1 -1
  22. package/dist/IkDescription/ik.index.es.js +434 -428
  23. package/dist/IkDescription/ik.index.umd.js +1 -1
  24. package/dist/IkDescription/style.css +1 -1
  25. package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -302
  26. package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
  27. package/dist/IkDetailPreviewFiles/style.css +1 -1
  28. package/dist/IkIconPicker/ik.index.es.js +140 -134
  29. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  30. package/dist/IkIconPicker/style.css +1 -1
  31. package/dist/IkMonacoEditor/ik.index.es.js +383 -377
  32. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  33. package/dist/IkMonacoEditor/style.css +1 -1
  34. package/dist/IkPageFull/ik.index.es.js +1135 -1129
  35. package/dist/IkPageFull/ik.index.umd.js +2 -2
  36. package/dist/IkPageFull/style.css +1 -1
  37. package/dist/IkPreviewFileDialog/ik.index.es.js +588 -582
  38. package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
  39. package/dist/IkPreviewFileDialog/style.css +1 -1
  40. package/dist/IkSchedule/ik.index.es.js +2960 -2954
  41. package/dist/IkSchedule/ik.index.umd.js +1 -1
  42. package/dist/IkSchedule/style.css +1 -1
  43. package/dist/IkSideText/ik.index.es.js +111 -105
  44. package/dist/IkSideText/ik.index.umd.js +1 -1
  45. package/dist/IkSideText/style.css +1 -1
  46. package/dist/IkSvgIcon/ik.index.es.js +74 -68
  47. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  48. package/dist/IkSvgIcon/style.css +1 -1
  49. package/dist/IkUploadFile/ik.index.es.js +720 -714
  50. package/dist/IkUploadFile/ik.index.umd.js +1 -1
  51. package/dist/IkUploadFile/style.css +1 -1
  52. package/dist/IkUploadImage/ik.index.es.js +223 -217
  53. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  54. package/dist/IkUploadImage/style.css +1 -1
  55. package/dist/index.es.js +5502 -5496
  56. package/dist/index.umd.js +78 -78
  57. package/dist/src/components/IkSvgIcon/index.d.ts +6 -2
  58. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +6 -2
  59. package/dist/style.css +1 -1
  60. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as oe, computed as X, openBlock as x, createElementBlock as D, createElementVNode as S, inject as qe, ref as ye, resolveComponent as Ne, Fragment as Oe, renderList as lt, normalizeStyle as ee, toDisplayString as Te, normalizeClass as te, createVNode as G, unref as z, withModifiers as ui, renderSlot as Fe, createBlock as Ee, withCtx as de, createCommentVNode as se, mergeModels as ut, useModel as Kt, reactive as Cn, watch as Yt, nextTick as zi, createTextVNode as Ht, h as wn, mergeProps as bn, createSlots as Tn, Teleport as En, Transition as Sn, pushScopeId as xn, popScopeId as In } from "vue";
1
+ import { defineComponent as oe, computed as X, openBlock as x, createElementBlock as D, createElementVNode as S, inject as qe, ref as ye, resolveComponent as Ne, Fragment as Oe, renderList as ut, normalizeStyle as ee, toDisplayString as Te, normalizeClass as te, createVNode as G, unref as z, withModifiers as Qe, renderSlot as Fe, createBlock as Ee, withCtx as de, createCommentVNode as se, mergeModels as ct, useModel as Yt, reactive as Cn, watch as Xt, nextTick as zi, createTextVNode as Ut, h as wn, mergeProps as bn, createSlots as Tn, Teleport as En, Transition as Sn, pushScopeId as xn, popScopeId as In } from "vue";
2
2
  import { paramType as Pn, ikFile as An, buildUUID as Vi, ikColor as Ln, ikUrl as Dn } from "iking-utils-pro";
3
3
  import { useNamespace as Rn } from "element-plus";
4
4
  const Ie = (a, o) => {
@@ -9,7 +9,7 @@ const Ie = (a, o) => {
9
9
  for (const [r, t] of Object.entries(o))
10
10
  a[r] = t;
11
11
  return a;
12
- }, Ut = (a, o) => {
12
+ }, zt = (a, o) => {
13
13
  var i, n, s, l;
14
14
  const r = (i = a == null ? void 0 : a.response) != null && i.data ? ci((s = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = a.raw) == null ? void 0 : l.type) || ci(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
15
15
  sheet: "excel",
@@ -619,7 +619,7 @@ const Ie = (a, o) => {
619
619
  }
620
620
  },
621
621
  setup(a) {
622
- const o = a, r = X(() => o.file ? Ut(o.file, o.fields) : o.type);
622
+ const o = a, r = X(() => o.file ? zt(o.file, o.fields) : o.type);
623
623
  return (t, e) => r.value === "image" ? (x(), D("svg", Mn, zn)) : r.value === "zip" ? (x(), D("svg", Vn, Gn)) : r.value === "ppt" ? (x(), D("svg", $n, Xn)) : r.value === "word" ? (x(), D("svg", qn, Qn)) : r.value === "pdf" ? (x(), D("svg", er, nr)) : r.value === "txt" ? (x(), D("svg", rr, ar)) : r.value === "audio" ? (x(), D("svg", lr, fr)) : r.value === "video" ? (x(), D("svg", hr, pr)) : r.value === "excel" ? (x(), D("svg", vr, kr)) : r.value === "exe" ? (x(), D("svg", Cr, Sr)) : r.value === "json" ? (x(), D("svg", xr, Lr)) : (x(), D("svg", Dr, Mr));
624
624
  }
625
625
  }), Br = Ie(Nr);
@@ -639,7 +639,7 @@ var Hr = /* @__PURE__ */ oe({
639
639
  ]));
640
640
  }
641
641
  }), Ur = Hr;
642
- const tt = (a, o) => {
642
+ const it = (a, o) => {
643
643
  const r = a.__vccOpts || a;
644
644
  for (const [t, e] of o)
645
645
  r[t] = e;
@@ -652,7 +652,7 @@ const tt = (a, o) => {
652
652
  const r = ["B", "KB", "MB", "GB", "TB"], t = Math.floor(Math.log(a) / Math.log(1024));
653
653
  let e = a / Math.pow(1024, t);
654
654
  return (e % 1 === 0 ? e.toFixed(o || 0) : e.toFixed(o)) + " " + r[t];
655
- }, Qe = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "";
655
+ }, et = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "";
656
656
  const Vr = (a) => {
657
657
  const o = qe("loadUrl"), r = X(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = qe("uploadUrl"), e = X(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = qe("token"), n = X(() => a.token || (i == null ? void 0 : i.value)), s = qe("onlyofficeConfig"), l = X(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = qe("userInfo"), c = X(() => a.userInfo || (u == null ? void 0 : u.value));
658
658
  return {
@@ -748,14 +748,14 @@ const Vr = (a) => {
748
748
  i.value = {
749
749
  ...f,
750
750
  name: f.name,
751
- url: Qe(
751
+ url: et(
752
752
  r.value,
753
753
  f.url || ((g = (d = f == null ? void 0 : f.response) == null ? void 0 : d.data) == null ? void 0 : g.id) || (f == null ? void 0 : f.id)
754
754
  )
755
755
  }, n.value = !0;
756
756
  }, l = (f) => {
757
757
  An.downloadFile(
758
- Qe(
758
+ et(
759
759
  r.value,
760
760
  f[e.value.url] || f.attachmentId || f.id
761
761
  ),
@@ -781,7 +781,7 @@ const Vr = (a) => {
781
781
  a.simple ? (x(!0), D(
782
782
  Oe,
783
783
  { key: 0 },
784
- lt(c.value, (k, b) => (x(), D("div", {
784
+ ut(c.value, (k, b) => (x(), D("div", {
785
785
  class: "iking-privew-annex simple",
786
786
  onClick: (w) => s(k),
787
787
  style: ee({ width: u.value })
@@ -801,7 +801,7 @@ const Vr = (a) => {
801
801
  [
802
802
  G(z(ve), {
803
803
  name: "iksvg_daochu",
804
- onClick: ui((w) => l(k), ["stop"]),
804
+ onClick: Qe((w) => l(k), ["stop"]),
805
805
  size: 20,
806
806
  active: ""
807
807
  }, null, 8, ["onClick"]),
@@ -825,7 +825,7 @@ const Vr = (a) => {
825
825
  (x(!0), D(
826
826
  Oe,
827
827
  null,
828
- lt(c.value, (k, b) => {
828
+ ut(c.value, (k, b) => {
829
829
  var w;
830
830
  return x(), D(
831
831
  "div",
@@ -872,7 +872,7 @@ const Vr = (a) => {
872
872
  [
873
873
  G(z(ve), {
874
874
  name: "iksvg_daochu",
875
- onClick: ui((B) => l(k), ["stop"]),
875
+ onClick: Qe((B) => l(k), ["stop"]),
876
876
  bg: a.showBg,
877
877
  size: a.showBg ? "default" : 20,
878
878
  title: "下载"
@@ -925,7 +925,7 @@ const Vr = (a) => {
925
925
  });
926
926
  const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
927
927
  __name: "IkPreviewFileDialog",
928
- props: /* @__PURE__ */ ut({
928
+ props: /* @__PURE__ */ ct({
929
929
  file: {
930
930
  type: Object,
931
931
  default: () => []
@@ -960,7 +960,7 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
960
960
  }),
961
961
  emits: ["update:show"],
962
962
  setup(a) {
963
- const o = a, r = Kt(a, "show"), t = X(() => ({
963
+ const o = a, r = Yt(a, "show"), t = X(() => ({
964
964
  name: "name",
965
965
  url: "url",
966
966
  suffix: "suffix",
@@ -977,11 +977,11 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
977
977
  if (i.value = {
978
978
  ...u,
979
979
  name: u[t.value.name],
980
- url: Qe(o.loadUrl, b)
981
- }, u && Ut(u, t.value) === "image") {
980
+ url: et(o.loadUrl, b)
981
+ }, u && zt(u, t.value) === "image") {
982
982
  n.image = !0;
983
983
  return;
984
- } else if (u && Ut(u, t.value) === "video") {
984
+ } else if (u && zt(u, t.value) === "video") {
985
985
  n.video = !0;
986
986
  return;
987
987
  } else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(w)) {
@@ -999,7 +999,7 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
999
999
  document: {
1000
1000
  key: Vi(),
1001
1001
  title: B,
1002
- url: Qe(o.loadUrl, b),
1002
+ url: et(o.loadUrl, b),
1003
1003
  fileType: w,
1004
1004
  ...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
1005
1005
  },
@@ -1011,7 +1011,7 @@ const qr = Ie(Xr), Zr = /* @__PURE__ */ oe({
1011
1011
  console.info("预览错误: ", k);
1012
1012
  }
1013
1013
  };
1014
- Yt([r, o.file], ([u, c]) => {
1014
+ Xt([r, o.file], ([u, c]) => {
1015
1015
  u && zi(() => {
1016
1016
  s(o.file);
1017
1017
  });
@@ -1111,85 +1111,89 @@ const Jr = Ie(Zr), Qr = {
1111
1111
  warning: { type: Boolean },
1112
1112
  width: {}
1113
1113
  },
1114
- setup(a) {
1115
- const o = a, r = X(() => o), t = X(() => {
1116
- const { name: i } = r.value;
1117
- return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
1118
- }), e = X(() => {
1119
- const i = [];
1120
- if (r.value.flip)
1121
- switch (r.value.flip) {
1114
+ emits: ["click"],
1115
+ setup(a, { emit: o }) {
1116
+ const r = a, t = X(() => r), e = X(() => {
1117
+ const { name: l } = t.value;
1118
+ return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
1119
+ }), i = X(() => {
1120
+ const l = [];
1121
+ if (t.value.flip)
1122
+ switch (t.value.flip) {
1122
1123
  case "horizontal":
1123
- i.push("rotateY(180deg)");
1124
+ l.push("rotateY(180deg)");
1124
1125
  break;
1125
1126
  case "vertical":
1126
- i.push("rotateX(180deg)");
1127
+ l.push("rotateX(180deg)");
1127
1128
  break;
1128
1129
  case "both":
1129
- i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
1130
+ l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
1130
1131
  break;
1131
1132
  }
1132
- r.value.rotate && i.push(`rotate(${r.value.rotate % 360}deg)`);
1133
- const n = {
1134
- ...r.value.color && { color: r.value.color },
1135
- ...r.value.size && { fontSize: typeof r.value.size == "number" ? `${r.value.size}px` : r.value.size },
1136
- ...i.length && { transform: i.join(" ") },
1137
- padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
1138
- ...r.value.color && t.value !== "iksig" ? {
1139
- "--ik-color-icon-dark": r.value.color,
1140
- "--ik-color-icon-light": r.value.colorLight || Ln.setOpacity(r.value.color, r.value.opacity)
1133
+ t.value.rotate && l.push(`rotate(${t.value.rotate % 360}deg)`);
1134
+ const u = {
1135
+ ...t.value.color && { color: t.value.color },
1136
+ ...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
1137
+ ...l.length && { transform: l.join(" ") },
1138
+ padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
1139
+ ...t.value.color && e.value !== "iksig" ? {
1140
+ "--ik-color-icon-dark": t.value.color,
1141
+ "--ik-color-icon-light": t.value.colorLight || Ln.setOpacity(t.value.color, t.value.opacity)
1141
1142
  } : {}
1142
1143
  };
1143
- return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
1144
- });
1145
- return (i, n) => {
1146
- const s = Ne("el-tooltip"), l = Ne("el-button");
1147
- return r.value.tableIconType === "icon" || !r.value.tableIconType ? (x(), D("span", Qr, [
1148
- r.value.notip || !r.value.title ? (x(), D(
1144
+ return t.value.width && (u.width = u.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), u;
1145
+ }), n = o, s = (l) => {
1146
+ t.value.disabled || n("click", l);
1147
+ };
1148
+ return (l, u) => {
1149
+ const c = Ne("el-tooltip"), f = Ne("el-button");
1150
+ return t.value.tableIconType === "icon" || !t.value.tableIconType ? (x(), D("span", Qr, [
1151
+ t.value.notip || !t.value.title ? (x(), D(
1149
1152
  "i",
1150
1153
  {
1151
1154
  key: 0,
1155
+ onClick: Qe(s, ["stop"]),
1152
1156
  class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1153
- [i.name]: t.value === "unocss",
1154
- "show-bg": r.value.showBg || r.value.bg,
1155
- default: r.value.size === "default",
1156
- small: r.value.size === "small",
1157
- big: r.value.size === "big",
1158
- warning: r.value.warning || r.value.type === "warning",
1159
- primary: r.value.primary || r.value.type === "primary",
1160
- success: i.success || r.value.type === "success",
1161
- error: r.value.error || r.value.type === "error",
1162
- active: r.value.active,
1163
- disabled: r.value.disabled
1157
+ [l.name]: e.value === "unocss",
1158
+ "show-bg": t.value.showBg || t.value.bg,
1159
+ default: t.value.size === "default",
1160
+ small: t.value.size === "small",
1161
+ big: t.value.size === "big",
1162
+ warning: t.value.warning || t.value.type === "warning",
1163
+ primary: t.value.primary || t.value.type === "primary",
1164
+ success: l.success || t.value.type === "success",
1165
+ error: t.value.error || t.value.type === "error",
1166
+ active: t.value.active,
1167
+ disabled: t.value.disabled
1164
1168
  }]),
1165
- style: ee(e.value)
1169
+ style: ee(i.value)
1166
1170
  },
1167
1171
  [
1168
1172
  se(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1169
- t.value === "iksig" ? (x(), D(
1173
+ e.value === "iksig" ? (x(), D(
1170
1174
  "i",
1171
1175
  {
1172
1176
  key: 0,
1173
- class: te(`iksig ${r.value.name}`),
1174
- style: ee(e.value)
1177
+ class: te(`iksig ${t.value.name}`),
1178
+ style: ee(i.value)
1175
1179
  },
1176
1180
  null,
1177
1181
  6
1178
1182
  /* CLASS, STYLE */
1179
- )) : t.value === "svg" ? (x(), D("svg", es, [
1183
+ )) : e.value === "svg" ? (x(), D("svg", es, [
1180
1184
  S("use", {
1181
- "xlink:href": `#${r.value.name}`
1185
+ "xlink:href": `#${t.value.name}`
1182
1186
  }, null, 8, ts)
1183
- ])) : t.value === "img" ? (x(), D("img", {
1187
+ ])) : e.value === "img" ? (x(), D("img", {
1184
1188
  key: 2,
1185
- src: r.value.name,
1189
+ src: t.value.name,
1186
1190
  class: "h-[1em] w-[1em]"
1187
1191
  }, null, 8, is)) : (x(), D(
1188
1192
  "i",
1189
1193
  {
1190
1194
  key: 3,
1191
- class: te(r.value.name),
1192
- style: ee(e.value)
1195
+ class: te(t.value.name),
1196
+ style: ee(i.value)
1193
1197
  },
1194
1198
  null,
1195
1199
  6
@@ -1198,9 +1202,9 @@ const Jr = Ie(Zr), Qr = {
1198
1202
  ],
1199
1203
  6
1200
1204
  /* CLASS, STYLE */
1201
- )) : (x(), Ee(s, {
1205
+ )) : (x(), Ee(c, {
1202
1206
  key: 1,
1203
- content: r.value.title,
1207
+ content: t.value.title,
1204
1208
  placement: "top"
1205
1209
  }, {
1206
1210
  default: de(() => [
@@ -1208,44 +1212,45 @@ const Jr = Ie(Zr), Qr = {
1208
1212
  "i",
1209
1213
  {
1210
1214
  class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1211
- [i.name]: t.value === "unocss",
1212
- "show-bg": r.value.showBg || r.value.bg,
1213
- default: r.value.size === "default",
1214
- small: r.value.size === "small",
1215
- big: r.value.size === "big",
1216
- warning: r.value.warning || r.value.type === "warning",
1217
- primary: i.primary || r.value.type === "primary",
1218
- success: i.success || r.value.type === "success",
1219
- error: r.value.error || r.value.type === "error",
1220
- active: r.value.active
1215
+ [l.name]: e.value === "unocss",
1216
+ "show-bg": t.value.showBg || t.value.bg,
1217
+ default: t.value.size === "default",
1218
+ small: t.value.size === "small",
1219
+ big: t.value.size === "big",
1220
+ warning: t.value.warning || t.value.type === "warning",
1221
+ primary: l.primary || t.value.type === "primary",
1222
+ success: l.success || t.value.type === "success",
1223
+ error: t.value.error || t.value.type === "error",
1224
+ active: t.value.active
1221
1225
  }]),
1222
- style: ee(e.value)
1226
+ onClick: Qe(s, ["stop"]),
1227
+ style: ee(i.value)
1223
1228
  },
1224
1229
  [
1225
- t.value === "iksig" ? (x(), D(
1230
+ e.value === "iksig" ? (x(), D(
1226
1231
  "i",
1227
1232
  {
1228
1233
  key: 0,
1229
- class: te(`iksig ${r.value.name}`),
1230
- style: ee(e.value)
1234
+ class: te(`iksig ${t.value.name}`),
1235
+ style: ee(i.value)
1231
1236
  },
1232
1237
  null,
1233
1238
  6
1234
1239
  /* CLASS, STYLE */
1235
- )) : t.value === "svg" ? (x(), D("svg", ns, [
1240
+ )) : e.value === "svg" ? (x(), D("svg", ns, [
1236
1241
  S("use", {
1237
- "xlink:href": `#${r.value.name}`
1242
+ "xlink:href": `#${t.value.name}`
1238
1243
  }, null, 8, rs)
1239
- ])) : t.value === "img" ? (x(), D("img", {
1244
+ ])) : e.value === "img" ? (x(), D("img", {
1240
1245
  key: 2,
1241
- src: r.value.name,
1246
+ src: t.value.name,
1242
1247
  class: "h-[1em] w-[1em]"
1243
1248
  }, null, 8, ss)) : (x(), D(
1244
1249
  "i",
1245
1250
  {
1246
1251
  key: 3,
1247
- class: te(r.value.name),
1248
- style: ee(e.value)
1252
+ class: te(t.value.name),
1253
+ style: ee(i.value)
1249
1254
  },
1250
1255
  null,
1251
1256
  6
@@ -1259,13 +1264,14 @@ const Jr = Ie(Zr), Qr = {
1259
1264
  _: 1
1260
1265
  /* STABLE */
1261
1266
  }, 8, ["content"]))
1262
- ])) : (x(), Ee(l, {
1267
+ ])) : (x(), Ee(f, {
1263
1268
  key: 1,
1264
- type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
1269
+ type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
1270
+ onClick: Qe(s, ["stop"])
1265
1271
  }, {
1266
1272
  default: de(() => [
1267
- Ht(
1268
- Te(r.value.title),
1273
+ Ut(
1274
+ Te(t.value.title),
1269
1275
  1
1270
1276
  /* TEXT */
1271
1277
  )
@@ -1276,7 +1282,7 @@ const Jr = Ie(Zr), Qr = {
1276
1282
  };
1277
1283
  }
1278
1284
  });
1279
- const as = /* @__PURE__ */ tt(os, [["__scopeId", "data-v-a7ec508a"]]), ve = Ie(as), ls = {
1285
+ const as = /* @__PURE__ */ it(os, [["__scopeId", "data-v-4a1004b9"]]), ve = Ie(as), ls = {
1280
1286
  key: 0,
1281
1287
  class: "exit-main-page-maximize"
1282
1288
  }, us = /* @__PURE__ */ oe({
@@ -1310,9 +1316,9 @@ const as = /* @__PURE__ */ tt(os, [["__scopeId", "data-v-a7ec508a"]]), ve = Ie(a
1310
1316
  ]));
1311
1317
  }
1312
1318
  });
1313
- const cs = /* @__PURE__ */ tt(us, [["__scopeId", "data-v-79f49df8"]]), fs = { class: "base-header" }, hs = /* @__PURE__ */ oe({
1319
+ const cs = /* @__PURE__ */ it(us, [["__scopeId", "data-v-79f49df8"]]), fs = { class: "base-header" }, hs = /* @__PURE__ */ oe({
1314
1320
  __name: "IkBaseDialog",
1315
- props: /* @__PURE__ */ ut({
1321
+ props: /* @__PURE__ */ ct({
1316
1322
  title: { default: "" },
1317
1323
  cancelText: { default: "取消" },
1318
1324
  confirmText: { default: "确认" },
@@ -1331,7 +1337,7 @@ const cs = /* @__PURE__ */ tt(us, [["__scopeId", "data-v-79f49df8"]]), fs = { cl
1331
1337
  }),
1332
1338
  emits: ["update:modelValue"],
1333
1339
  setup(a) {
1334
- const o = a, r = Kt(a, "modelValue"), t = ye(o.fullscreen), e = () => {
1340
+ const o = a, r = Yt(a, "modelValue"), t = ye(o.fullscreen), e = () => {
1335
1341
  t.value = !t.value;
1336
1342
  }, i = oe({
1337
1343
  setup() {
@@ -1354,7 +1360,7 @@ const cs = /* @__PURE__ */ tt(us, [["__scopeId", "data-v-79f49df8"]]), fs = { cl
1354
1360
  }), Tn({
1355
1361
  icon: de(() => [
1356
1362
  Fe(n.$slots, "title", {}, () => [
1357
- Ht(
1363
+ Ut(
1358
1364
  Te(n.title),
1359
1365
  1
1360
1366
  /* TEXT */
@@ -1364,7 +1370,7 @@ const cs = /* @__PURE__ */ tt(us, [["__scopeId", "data-v-79f49df8"]]), fs = { cl
1364
1370
  header: de(() => [
1365
1371
  S("div", fs, [
1366
1372
  Fe(n.$slots, "header", {}, () => [
1367
- Ht(
1373
+ Ut(
1368
1374
  Te(n.title),
1369
1375
  1
1370
1376
  /* TEXT */
@@ -1398,7 +1404,7 @@ const cs = /* @__PURE__ */ tt(us, [["__scopeId", "data-v-79f49df8"]]), fs = { cl
1398
1404
  });
1399
1405
  const ds = Ie(hs);
1400
1406
  var gs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1401
- function Xt(a) {
1407
+ function qt(a) {
1402
1408
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
1403
1409
  }
1404
1410
  function ps(a, o, r, t) {
@@ -1528,7 +1534,7 @@ var ms = function(a, o) {
1528
1534
  }, e.onerror = function(i) {
1529
1535
  e.removeAttribute("loading"), t(i);
1530
1536
  }, e.setAttribute("loading", ""), e;
1531
- }, qt = oe({
1537
+ }, Zt = oe({
1532
1538
  name: "DocumentEditor",
1533
1539
  props: {
1534
1540
  id: {
@@ -1701,8 +1707,8 @@ const ys = ["id"];
1701
1707
  function _s(a, o, r, t, e, i) {
1702
1708
  return x(), D("div", { id: a.id }, null, 8, ys);
1703
1709
  }
1704
- qt.render = _s;
1705
- qt.__file = "src/components/DocumentEditor.vue";
1710
+ Zt.render = _s;
1711
+ Zt.__file = "src/components/DocumentEditor.vue";
1706
1712
  const ks = /* @__PURE__ */ oe({
1707
1713
  __name: "IkOnlyOffice",
1708
1714
  props: {
@@ -1738,7 +1744,7 @@ const ks = /* @__PURE__ */ oe({
1738
1744
  style: ee({ height: o.officeHeight })
1739
1745
  },
1740
1746
  [
1741
- G(z(qt), {
1747
+ G(z(Zt), {
1742
1748
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1743
1749
  ref: "editorRef",
1744
1750
  "document-server-url": a.documentServerUrl,
@@ -1751,7 +1757,7 @@ const ks = /* @__PURE__ */ oe({
1751
1757
  ));
1752
1758
  }
1753
1759
  });
1754
- const Cs = /* @__PURE__ */ tt(ks, [["__scopeId", "data-v-98d51ef9"]]), ws = Ie(Cs);
1760
+ const Cs = /* @__PURE__ */ it(ks, [["__scopeId", "data-v-98d51ef9"]]), ws = Ie(Cs);
1755
1761
  function hi(a, o) {
1756
1762
  var r = Object.keys(a);
1757
1763
  if (Object.getOwnPropertySymbols) {
@@ -1815,17 +1821,17 @@ function I(a, o) {
1815
1821
  }
1816
1822
  }), Object.defineProperty(a, "prototype", {
1817
1823
  writable: !1
1818
- }), o && zt(a, o);
1824
+ }), o && Vt(a, o);
1819
1825
  }
1820
1826
  function A(a) {
1821
1827
  return A = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
1822
1828
  return r.__proto__ || Object.getPrototypeOf(r);
1823
1829
  }, A(a);
1824
1830
  }
1825
- function zt(a, o) {
1826
- return zt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
1831
+ function Vt(a, o) {
1832
+ return Vt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
1827
1833
  return t.__proto__ = e, t;
1828
- }, zt(a, o);
1834
+ }, Vt(a, o);
1829
1835
  }
1830
1836
  function bs() {
1831
1837
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
@@ -1844,7 +1850,7 @@ function v(a) {
1844
1850
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1845
1851
  return a;
1846
1852
  }
1847
- function Zt(a, o) {
1853
+ function Jt(a, o) {
1848
1854
  if (o && (typeof o == "object" || typeof o == "function"))
1849
1855
  return o;
1850
1856
  if (o !== void 0)
@@ -1860,7 +1866,7 @@ function P(a) {
1860
1866
  e = Reflect.construct(t, arguments, i);
1861
1867
  } else
1862
1868
  e = t.apply(this, arguments);
1863
- return Zt(this, e);
1869
+ return Jt(this, e);
1864
1870
  };
1865
1871
  }
1866
1872
  function Ts(a, o) {
@@ -1882,7 +1888,7 @@ function ue(a) {
1882
1888
  }
1883
1889
  function Es(a) {
1884
1890
  if (Array.isArray(a))
1885
- return Vt(a);
1891
+ return jt(a);
1886
1892
  }
1887
1893
  function Ss(a) {
1888
1894
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
@@ -1891,15 +1897,15 @@ function Ss(a) {
1891
1897
  function xs(a, o) {
1892
1898
  if (a) {
1893
1899
  if (typeof a == "string")
1894
- return Vt(a, o);
1900
+ return jt(a, o);
1895
1901
  var r = Object.prototype.toString.call(a).slice(8, -1);
1896
1902
  if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
1897
1903
  return Array.from(a);
1898
1904
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
1899
- return Vt(a, o);
1905
+ return jt(a, o);
1900
1906
  }
1901
1907
  }
1902
- function Vt(a, o) {
1908
+ function jt(a, o) {
1903
1909
  (o == null || o > a.length) && (o = a.length);
1904
1910
  for (var r = 0, t = new Array(o); r < o; r++)
1905
1911
  t[r] = a[r];
@@ -2037,31 +2043,31 @@ var Gi = { exports: {} };
2037
2043
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
2038
2044
  })(Gi);
2039
2045
  var $i = Gi.exports;
2040
- const Ki = /* @__PURE__ */ Xt($i);
2041
- var As = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Et = {
2046
+ const Ki = /* @__PURE__ */ qt($i);
2047
+ var As = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, St = {
2042
2048
  info: "color: #525252; background-color: #90ee90;",
2043
2049
  error: "color: #525252; background-color: red;",
2044
2050
  warn: "color: #525252; background-color: yellow; "
2045
- }, St = "%c[xgplayer]", F = {
2051
+ }, xt = "%c[xgplayer]", F = {
2046
2052
  config: {
2047
2053
  debug: As ? 3 : 0
2048
2054
  },
2049
2055
  logInfo: function(o) {
2050
2056
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
2051
2057
  e[i - 1] = arguments[i];
2052
- this.config.debug >= 3 && (r = console).log.apply(r, [St, Et.info, o].concat(e));
2058
+ this.config.debug >= 3 && (r = console).log.apply(r, [xt, St.info, o].concat(e));
2053
2059
  },
2054
2060
  logWarn: function(o) {
2055
2061
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
2056
2062
  e[i - 1] = arguments[i];
2057
- this.config.debug >= 1 && (r = console).warn.apply(r, [St, Et.warn, o].concat(e));
2063
+ this.config.debug >= 1 && (r = console).warn.apply(r, [xt, St.warn, o].concat(e));
2058
2064
  },
2059
2065
  logError: function(o) {
2060
2066
  var r;
2061
2067
  if (!(this.config.debug < 1)) {
2062
2068
  for (var t = this.config.debug >= 2 ? "trace" : "error", e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
2063
2069
  i[n - 1] = arguments[n];
2064
- (r = console)[t].apply(r, [St, Et.error, o].concat(i));
2070
+ (r = console)[t].apply(r, [xt, St.error, o].concat(i));
2065
2071
  }
2066
2072
  }
2067
2073
  };
@@ -2701,7 +2707,7 @@ var gi = {
2701
2707
  return Promise.resolve(r);
2702
2708
  }
2703
2709
  }
2704
- }, jt = "3.0.18", pi = {
2710
+ }, Wt = "3.0.18", pi = {
2705
2711
  1: "media",
2706
2712
  2: "media",
2707
2713
  3: "media",
@@ -2715,7 +2721,7 @@ var gi = {
2715
2721
  4: 5104,
2716
2722
  5: 5105,
2717
2723
  6: 5106
2718
- }, ct = /* @__PURE__ */ E(
2724
+ }, ft = /* @__PURE__ */ E(
2719
2725
  function a(o) {
2720
2726
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2721
2727
  errorType: "",
@@ -2731,7 +2737,7 @@ var gi = {
2731
2737
  var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, f = c.readyState, d = c.networkState, g = r.errorCode || e.code;
2732
2738
  vi[g] && (g = vi[g]);
2733
2739
  var p = {
2734
- playerVersion: jt,
2740
+ playerVersion: Wt,
2735
2741
  currentTime: n,
2736
2742
  duration: i,
2737
2743
  ended: s,
@@ -2750,14 +2756,14 @@ var gi = {
2750
2756
  }), p;
2751
2757
  } else if (arguments.length > 1) {
2752
2758
  for (var m = {
2753
- playerVersion: jt,
2759
+ playerVersion: Wt,
2754
2760
  domain: document.domain
2755
2761
  }, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
2756
2762
  m[y[k]] = arguments[k];
2757
2763
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
2758
2764
  }
2759
2765
  }
2760
- ), re = "play", Jt = "playing", Be = "ended", Xe = "pause", it = "error", kt = "seeking", _e = "seeked", ne = "timeupdate", nt = "waiting", me = "canplay", Hs = "canplaythrough", Pe = "durationchange", Xi = "volumechange", ke = "loadeddata", Us = "loadedmetadata", qi = "ratechange", Zi = "progress", Qt = "loadstart", He = "emptied", zs = "stalled", Vs = "suspend", js = "abort", Ws = "bufferedChange", ei = "focus", Ji = "blur", ti = "ready", Qi = "urlNull", Me = "autoplay_started", ii = "autoplay_was_prevented", Ct = "complete", ft = "replay", ni = "destroy", wt = "urlchange", Wt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ht = "cssFullscreen_change", dt = "mini_state_change", ri = "definition_change", Gs = "before_definition_change", Gt = "after_definition_change", $s = "SEI_PARSED", Ks = "retry", Se = "video_resize", $t = "pip_change", rn = "rotate", sn = "screenShot", gt = "playnext", on = "shortcut", an = "xglog", pt = "user_action", bt = "reset", ln = "source_error", un = "source_success", Ys = "switch_subtitle", cn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], fn = {
2766
+ ), re = "play", Qt = "playing", Be = "ended", Xe = "pause", nt = "error", Ct = "seeking", _e = "seeked", ne = "timeupdate", rt = "waiting", me = "canplay", Hs = "canplaythrough", Pe = "durationchange", Xi = "volumechange", ke = "loadeddata", Us = "loadedmetadata", qi = "ratechange", Zi = "progress", ei = "loadstart", He = "emptied", zs = "stalled", Vs = "suspend", js = "abort", Ws = "bufferedChange", ti = "focus", Ji = "blur", ii = "ready", Qi = "urlNull", Me = "autoplay_started", ni = "autoplay_was_prevented", wt = "complete", ht = "replay", ri = "destroy", bt = "urlchange", Gt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", dt = "cssFullscreen_change", gt = "mini_state_change", si = "definition_change", Gs = "before_definition_change", $t = "after_definition_change", $s = "SEI_PARSED", Ks = "retry", Se = "video_resize", Kt = "pip_change", rn = "rotate", sn = "screenShot", pt = "playnext", on = "shortcut", an = "xglog", vt = "user_action", Tt = "reset", ln = "source_error", un = "source_success", Ys = "switch_subtitle", cn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], fn = {
2761
2767
  STATS_INFO: "stats_info",
2762
2768
  STATS_DOWNLOAD: "stats_download",
2763
2769
  STATS_RESET: "stats_reset"
@@ -2765,48 +2771,48 @@ var gi = {
2765
2771
  const Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2766
2772
  __proto__: null,
2767
2773
  ABORT: js,
2768
- AFTER_DEFINITION_CHANGE: Gt,
2769
- AUTOPLAY_PREVENTED: ii,
2774
+ AFTER_DEFINITION_CHANGE: $t,
2775
+ AUTOPLAY_PREVENTED: ni,
2770
2776
  AUTOPLAY_STARTED: Me,
2771
2777
  BEFORE_DEFINITION_CHANGE: Gs,
2772
2778
  BUFFER_CHANGE: Ws,
2773
2779
  CANPLAY: me,
2774
2780
  CANPLAY_THROUGH: Hs,
2775
- COMPLETE: Ct,
2776
- CSS_FULLSCREEN_CHANGE: ht,
2777
- DEFINITION_CHANGE: ri,
2778
- DESTROY: ni,
2779
- DOWNLOAD_SPEED_CHANGE: Wt,
2781
+ COMPLETE: wt,
2782
+ CSS_FULLSCREEN_CHANGE: dt,
2783
+ DEFINITION_CHANGE: si,
2784
+ DESTROY: ri,
2785
+ DOWNLOAD_SPEED_CHANGE: Gt,
2780
2786
  DURATION_CHANGE: Pe,
2781
2787
  EMPTIED: He,
2782
2788
  ENDED: Be,
2783
2789
  ENTER_PLAYER: tn,
2784
- ERROR: it,
2790
+ ERROR: nt,
2785
2791
  FPS_STUCK: hn,
2786
2792
  FULLSCREEN_CHANGE: ge,
2787
2793
  LEAVE_PLAYER: en,
2788
2794
  LOADED_DATA: ke,
2789
2795
  LOADED_METADATA: Us,
2790
2796
  LOADING: nn,
2791
- LOAD_START: Qt,
2792
- MINI_STATE_CHANGE: dt,
2797
+ LOAD_START: ei,
2798
+ MINI_STATE_CHANGE: gt,
2793
2799
  PAUSE: Xe,
2794
- PIP_CHANGE: $t,
2800
+ PIP_CHANGE: Kt,
2795
2801
  PLAY: re,
2796
2802
  PLAYER_BLUR: Ji,
2797
- PLAYER_FOCUS: ei,
2798
- PLAYING: Jt,
2799
- PLAYNEXT: gt,
2803
+ PLAYER_FOCUS: ti,
2804
+ PLAYING: Qt,
2805
+ PLAYNEXT: pt,
2800
2806
  PROGRESS: Zi,
2801
2807
  RATE_CHANGE: qi,
2802
- READY: ti,
2803
- REPLAY: ft,
2804
- RESET: bt,
2808
+ READY: ii,
2809
+ REPLAY: ht,
2810
+ RESET: Tt,
2805
2811
  RETRY: Ks,
2806
2812
  ROTATE: rn,
2807
2813
  SCREEN_SHOT: sn,
2808
2814
  SEEKED: _e,
2809
- SEEKING: kt,
2815
+ SEEKING: Ct,
2810
2816
  SEI_PARSED: $s,
2811
2817
  SHORTCUT: on,
2812
2818
  SOURCE_ERROR: ln,
@@ -2816,16 +2822,16 @@ const Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2816
2822
  SUSPEND: Vs,
2817
2823
  SWITCH_SUBTITLE: Ys,
2818
2824
  TIME_UPDATE: ne,
2819
- URL_CHANGE: wt,
2825
+ URL_CHANGE: bt,
2820
2826
  URL_NULL: Qi,
2821
- USER_ACTION: pt,
2827
+ USER_ACTION: vt,
2822
2828
  VIDEO_EVENTS: cn,
2823
2829
  VIDEO_RESIZE: Se,
2824
2830
  VOLUME_CHANGE: Xi,
2825
- WAITING: nt,
2831
+ WAITING: rt,
2826
2832
  XGLOG: an
2827
2833
  }, Symbol.toStringTag, { value: "Module" }));
2828
- function xt(a, o) {
2834
+ function It(a, o) {
2829
2835
  !this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
2830
2836
  }
2831
2837
  function qs(a, o) {
@@ -2853,14 +2859,14 @@ function qs(a, o) {
2853
2859
  o._rate = o.media && o.media.playbackRate;
2854
2860
  }
2855
2861
  if (a === "durationchange" && (o._duration = o.media.duration), a === "volumechange" && (e.isMutedChange = o._lastMuted !== o.muted, o._lastMuted = o.muted), a === "error" && (e.error = t || o.video.error), o.mediaEventMiddleware[a]) {
2856
- var n = xt.bind(o, a, e);
2862
+ var n = It.bind(o, a, e);
2857
2863
  try {
2858
2864
  o.mediaEventMiddleware[a].call(o, e, n);
2859
2865
  } catch (s) {
2860
- throw xt.call(o, a, e), s;
2866
+ throw It.call(o, a, e), s;
2861
2867
  }
2862
2868
  } else
2863
- xt.call(o, a, e);
2869
+ It.call(o, a, e);
2864
2870
  };
2865
2871
  }
2866
2872
  var Zs = /* @__PURE__ */ function(a) {
@@ -2959,7 +2965,7 @@ var Zs = /* @__PURE__ */ function(a) {
2959
2965
  l ? l.error(f, g) : n.errorHandler("error", g);
2960
2966
  }
2961
2967
  var p = pi[4];
2962
- n.emit(ln, new ct(n, {
2968
+ n.emit(ln, new ft(n, {
2963
2969
  errorType: p,
2964
2970
  errorCode: 4,
2965
2971
  errorMessage: "sources_load_error",
@@ -2996,7 +3002,7 @@ var Zs = /* @__PURE__ */ function(a) {
2996
3002
  this.media.currentSrc || (l = "empty_src", n = {
2997
3003
  code: 6,
2998
3004
  message: l
2999
- }), this.emit(e, new ct(this, {
3005
+ }), this.emit(e, new ft(this, {
3000
3006
  errorType: s,
3001
3007
  errorCode: n.code,
3002
3008
  errorMessage: n.message || "",
@@ -3217,7 +3223,7 @@ var Zs = /* @__PURE__ */ function(a) {
3217
3223
  },
3218
3224
  set: function(e) {
3219
3225
  if (this.media) {
3220
- if (this.emit(wt, e), this.emit(nt), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
3226
+ if (this.emit(bt, e), this.emit(rt), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
3221
3227
  this.onWaiting();
3222
3228
  return;
3223
3229
  }
@@ -3360,7 +3366,7 @@ var Zs = /* @__PURE__ */ function(a) {
3360
3366
  }
3361
3367
  }]), a;
3362
3368
  }(), mi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], yi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], _i = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Re = "data-xgplayerid";
3363
- function rt(a, o, r) {
3369
+ function st(a, o, r) {
3364
3370
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
3365
3371
  e[i - 3] = arguments[i];
3366
3372
  var n = o.call.apply(o, [a].concat(e));
@@ -3370,7 +3376,7 @@ function rt(a, o, r) {
3370
3376
  r.call.apply(r, [a].concat(l));
3371
3377
  }) : r.call.apply(r, [a].concat(e)));
3372
3378
  }
3373
- function vt(a, o) {
3379
+ function mt(a, o) {
3374
3380
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
3375
3381
  pre: null,
3376
3382
  next: null
@@ -3388,23 +3394,23 @@ function vt(a, o) {
3388
3394
  try {
3389
3395
  var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
3390
3396
  s ? s.then ? s.then(function(l) {
3391
- l !== !1 && rt.apply(void 0, [e, o, r.next].concat(ue(t)));
3397
+ l !== !1 && st.apply(void 0, [e, o, r.next].concat(ue(t)));
3392
3398
  }).catch(function(l) {
3393
3399
  throw l;
3394
- }) : rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3400
+ }) : st.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && st.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3395
3401
  } catch (l) {
3396
3402
  throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
3397
3403
  }
3398
3404
  else
3399
- rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3405
+ st.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3400
3406
  }).bind(this);
3401
3407
  }
3402
- function mt(a, o) {
3408
+ function yt(a, o) {
3403
3409
  var r = this.__hooks;
3404
3410
  if (r)
3405
3411
  return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
3406
3412
  }
3407
- function yt(a, o) {
3413
+ function _t(a, o) {
3408
3414
  var r = this.__hooks;
3409
3415
  r && delete r[a];
3410
3416
  }
@@ -3457,7 +3463,7 @@ function pe(a, o, r) {
3457
3463
  } else
3458
3464
  return r.call.apply(r, [a, a].concat(e));
3459
3465
  }
3460
- function It(a, o) {
3466
+ function Pt(a, o) {
3461
3467
  F.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
3462
3468
  }
3463
3469
  var xe = /* @__PURE__ */ function() {
@@ -3524,7 +3530,7 @@ var xe = /* @__PURE__ */ function() {
3524
3530
  value: function(r, t) {
3525
3531
  var e = this;
3526
3532
  if (!r || !t || !this.player) {
3527
- It(this.pluginName, "plugin.on(event, callback)");
3533
+ Pt(this.pluginName, "plugin.on(event, callback)");
3528
3534
  return;
3529
3535
  }
3530
3536
  typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3536,7 +3542,7 @@ var xe = /* @__PURE__ */ function() {
3536
3542
  value: function(r, t) {
3537
3543
  var e = this;
3538
3544
  if (!r || !t || !this.player) {
3539
- It(this.pluginName, "plugin.once(event, callback)");
3545
+ Pt(this.pluginName, "plugin.once(event, callback)");
3540
3546
  return;
3541
3547
  }
3542
3548
  typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3548,7 +3554,7 @@ var xe = /* @__PURE__ */ function() {
3548
3554
  value: function(r, t) {
3549
3555
  var e = this;
3550
3556
  if (!r || !t || !this.player) {
3551
- It(this.pluginName, "plugin.off(event, callback)");
3557
+ Pt(this.pluginName, "plugin.off(event, callback)");
3552
3558
  return;
3553
3559
  }
3554
3560
  typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3589,21 +3595,21 @@ var xe = /* @__PURE__ */ function() {
3589
3595
  }, {
3590
3596
  key: "hook",
3591
3597
  value: function(r, t) {
3592
- return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
3598
+ return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
3593
3599
  }
3594
3600
  }, {
3595
3601
  key: "useHooks",
3596
3602
  value: function(r, t) {
3597
3603
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
3598
3604
  i[n - 2] = arguments[n];
3599
- return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
3605
+ return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
3600
3606
  }
3601
3607
  }, {
3602
3608
  key: "removeHooks",
3603
3609
  value: function(r, t) {
3604
3610
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
3605
3611
  i[n - 2] = arguments[n];
3606
- return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
3612
+ return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
3607
3613
  }
3608
3614
  }, {
3609
3615
  key: "registerPlugin",
@@ -3658,7 +3664,7 @@ function eo(a, o) {
3658
3664
  }
3659
3665
  }
3660
3666
  var to = eo, io = to;
3661
- function Pt(a, o, r, t, e) {
3667
+ function At(a, o, r, t, e) {
3662
3668
  var i = ro.apply(this, arguments);
3663
3669
  return a.addEventListener(r, i, e), {
3664
3670
  destroy: function() {
@@ -3667,8 +3673,8 @@ function Pt(a, o, r, t, e) {
3667
3673
  };
3668
3674
  }
3669
3675
  function no(a, o, r, t, e) {
3670
- return typeof a.addEventListener == "function" ? Pt.apply(null, arguments) : typeof r == "function" ? Pt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
3671
- return Pt(i, o, r, t, e);
3676
+ return typeof a.addEventListener == "function" ? At.apply(null, arguments) : typeof r == "function" ? At.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
3677
+ return At(i, o, r, t, e);
3672
3678
  }));
3673
3679
  }
3674
3680
  function ro(a, o, r, t) {
@@ -3677,7 +3683,7 @@ function ro(a, o, r, t) {
3677
3683
  };
3678
3684
  }
3679
3685
  var so = no;
3680
- const wi = /* @__PURE__ */ Xt(so);
3686
+ const wi = /* @__PURE__ */ qt(so);
3681
3687
  var oo = {
3682
3688
  CONTROLS: "controls",
3683
3689
  ROOT: "root"
@@ -3695,7 +3701,7 @@ var oo = {
3695
3701
  ICON_DISABLE: "xg-icon-disable",
3696
3702
  ICON_HIDE: "xg-icon-hide"
3697
3703
  };
3698
- function At(a) {
3704
+ function Lt(a) {
3699
3705
  return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
3700
3706
  }
3701
3707
  function ao(a, o) {
@@ -3712,8 +3718,8 @@ function Ti(a, o) {
3712
3718
  return h.addClass(a, r), Object.keys(t).map(function(n) {
3713
3719
  a.setAttribute(n, t[n]);
3714
3720
  }), a;
3715
- if (At(a) || At(a.url))
3716
- return t.src = At(a) ? a : a.url || "", i = h.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
3721
+ if (Lt(a) || Lt(a.url))
3722
+ return t.src = Lt(a) ? a : a.url || "", i = h.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
3717
3723
  if (typeof a == "function")
3718
3724
  try {
3719
3725
  return i = a(), i instanceof window.Element ? (h.addClass(i, r), Object.keys(t).map(function(n) {
@@ -4460,7 +4466,7 @@ var po = function(o, r) {
4460
4466
  };
4461
4467
  Object.keys(u).map(function(f) {
4462
4468
  e.root.style[f] = u[f];
4463
- }), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(dt, function(f) {
4469
+ }), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(gt, function(f) {
4464
4470
  f ? h.addClass(e.root, "mini-controls") : h.removeClass(e.root, "mini-controls");
4465
4471
  });
4466
4472
  var c = this.playerConfig.isMobileSimulateMode;
@@ -4667,14 +4673,14 @@ var po = function(o, r) {
4667
4673
  langKeys: [],
4668
4674
  textKeys: []
4669
4675
  };
4670
- function et(a, o) {
4676
+ function tt(a, o) {
4671
4677
  return Object.keys(o).forEach(function(r) {
4672
4678
  var t = h.typeOf(o[r]), e = h.typeOf(a[r]);
4673
4679
  if (t === "Array") {
4674
4680
  var i;
4675
4681
  e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, ue(o[r]));
4676
4682
  } else
4677
- t === "Object" ? (e !== "Object" && (a[r] = {}), et(a[r], o[r])) : a[r] = o[r];
4683
+ t === "Object" ? (e !== "Object" && (a[r] = {}), tt(a[r], o[r])) : a[r] = o[r];
4678
4684
  }), a;
4679
4685
  }
4680
4686
  function pn() {
@@ -4694,15 +4700,15 @@ function yo(a, o) {
4694
4700
  }) : r = a;
4695
4701
  var t = o, e = t.lang;
4696
4702
  r.map(function(i) {
4697
- i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? et(e[i.LANG] || {}, i.TEXT || {}) : si(i, o);
4703
+ i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? tt(e[i.LANG] || {}, i.TEXT || {}) : oi(i, o);
4698
4704
  }), pn();
4699
4705
  }
4700
4706
  }
4701
- function si(a, o) {
4707
+ function oi(a, o) {
4702
4708
  var r = a.LANG;
4703
4709
  if (o || (o = ie), !!o.lang) {
4704
4710
  var t = a.TEXT || {};
4705
- r === "zh" && (r = "zh-cn"), o.lang[r] ? et(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), pn();
4711
+ r === "zh" && (r = "zh-cn"), o.lang[r] ? tt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), pn();
4706
4712
  }
4707
4713
  }
4708
4714
  function _o(a) {
@@ -4712,9 +4718,9 @@ function _o(a) {
4712
4718
  textKeys: {},
4713
4719
  pId: a
4714
4720
  };
4715
- return et(r.lang, ie.lang), (o = r.langKeys).push.apply(o, ue(ie.langKeys)), et(r.textKeys, ie.textKeys), r;
4721
+ return tt(r.lang, ie.lang), (o = r.langKeys).push.apply(o, ue(ie.langKeys)), tt(r.textKeys, ie.textKeys), r;
4716
4722
  }
4717
- si(mo);
4723
+ oi(mo);
4718
4724
  var Ye = {
4719
4725
  get textKeys() {
4720
4726
  return ie.textKeys;
@@ -4729,7 +4735,7 @@ var Ye = {
4729
4735
  }), ie.lang["zh-cn"] && (a.zh = ie.lang["zh-cn"] || {}), a;
4730
4736
  },
4731
4737
  extend: yo,
4732
- use: si,
4738
+ use: oi,
4733
4739
  init: _o
4734
4740
  }, N = {
4735
4741
  INITIAL: 1,
@@ -4740,7 +4746,7 @@ var Ye = {
4740
4746
  RUNNING: 6,
4741
4747
  ENDED: 7,
4742
4748
  DESTROYED: 8
4743
- }, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], J = {}, Lt = null, vn = /* @__PURE__ */ function(a) {
4749
+ }, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], J = {}, Dt = null, vn = /* @__PURE__ */ function(a) {
4744
4750
  I(r, a);
4745
4751
  var o = P(r);
4746
4752
  function r() {
@@ -4823,7 +4829,7 @@ var Ye = {
4823
4829
  }], [{
4824
4830
  key: "getInstance",
4825
4831
  value: function() {
4826
- return Lt || (Lt = new r()), Lt;
4832
+ return Dt || (Dt = new r()), Dt;
4827
4833
  }
4828
4834
  }]), r;
4829
4835
  }($i.EventEmitter);
@@ -4835,7 +4841,7 @@ function ko(a) {
4835
4841
  }
4836
4842
  return null;
4837
4843
  }
4838
- var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /* @__PURE__ */ function(a) {
4844
+ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Et = /* @__PURE__ */ function(a) {
4839
4845
  I(r, a);
4840
4846
  var o = P(r);
4841
4847
  function r(t) {
@@ -4853,7 +4859,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
4853
4859
  e.resize();
4854
4860
  }, 100);
4855
4861
  }, k = h.getFullScreenEl();
4856
- e._fullActionFrom ? e._fullActionFrom = "" : e.emit(pt, {
4862
+ e._fullActionFrom ? e._fullActionFrom = "" : e.emit(vt, {
4857
4863
  eventType: "system",
4858
4864
  action: "switch_fullscreen",
4859
4865
  pluginName: "player",
@@ -4919,7 +4925,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
4919
4925
  }, e.instManager = Ce;
4920
4926
  var l = e._initDOM();
4921
4927
  if (!l)
4922
- return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), Zt(e);
4928
+ return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), Jt(e);
4923
4929
  var u = e.config, c = u.definition, f = c === void 0 ? {} : c, d = u.url;
4924
4930
  if (!d && f.list && f.list.length > 0) {
4925
4931
  var g = f.list.find(function(p) {
@@ -4928,7 +4934,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
4928
4934
  g || (f.defaultDefinition = f.list[0].definition, g = f.list[0]), e.config.url = g.url, e.curDefinition = g;
4929
4935
  }
4930
4936
  return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(N.READY), h.setTimeout(v(e), function() {
4931
- e.emit(ti);
4937
+ e.emit(ii);
4932
4938
  }, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < N.ATTACHED) && e.start(), e;
4933
4939
  }
4934
4940
  return E(r, [{
@@ -4940,7 +4946,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
4940
4946
  if (n && n.nodeType === 1)
4941
4947
  this.root = n;
4942
4948
  else
4943
- return this.emit(it, new ct("use", this.config.vid, {
4949
+ return this.emit(nt, new ft("use", this.config.vid, {
4944
4950
  line: 32,
4945
4951
  handle: "Constructor",
4946
4952
  msg: "container id can't be empty"
@@ -5025,7 +5031,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5025
5031
  F.logInfo("_startInit readyState", s), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (O.os.isIpad || O.os.isPhone) && this.mediaPlay());
5026
5032
  var l = this.config.startTime;
5027
5033
  this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(me, this.canPlayFunc), (!this.hasStart || this.state < N.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(N.ATTACHED), h.setTimeout(this, function() {
5028
- i.emit(Ct);
5034
+ i.emit(wt);
5029
5035
  }, 0);
5030
5036
  }
5031
5037
  }
@@ -5220,7 +5226,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5220
5226
  return;
5221
5227
  }
5222
5228
  n.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
5223
- e._errorTimer = null, e.emit(ii), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(N.NOTALLOW);
5229
+ e._errorTimer = null, e.emit(ni), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(N.NOTALLOW);
5224
5230
  }, 0));
5225
5231
  }) : (F.logWarn("video.play not return promise"), this.state < N.RUNNING && (this.setState(N.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(Me))), i;
5226
5232
  }
@@ -5285,7 +5291,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5285
5291
  var n = this, s = this.config.definition;
5286
5292
  if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
5287
5293
  (e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
5288
- }), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(ri, {
5294
+ }), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(si, {
5289
5295
  from: i,
5290
5296
  to: e
5291
5297
  }), !this.hasStart) {
@@ -5296,11 +5302,11 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5296
5302
  seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
5297
5303
  }, e));
5298
5304
  l && l.then ? l.then(function() {
5299
- n.emit(Gt, {
5305
+ n.emit($t, {
5300
5306
  from: i,
5301
5307
  to: e
5302
5308
  });
5303
- }) : this.emit(Gt, {
5309
+ }) : this.emit($t, {
5304
5310
  from: i,
5305
5311
  to: e
5306
5312
  });
@@ -5318,7 +5324,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5318
5324
  var e = this, i = C.NOT_ALLOW_AUTOPLAY, n = C.PLAYING, s = C.NO_START, l = C.PAUSED, u = C.REPLAY, c = C.ENTER, f = C.ENDED, d = C.ERROR, g = C.LOADING, p = [i, n, s, l, u, c, f, d, g];
5319
5325
  this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(m) {
5320
5326
  e.removeClass(m);
5321
- }), this.addClass(C.NO_START), this.emit(bt);
5327
+ }), this.addClass(C.NO_START), this.emit(Tt);
5322
5328
  }
5323
5329
  }, {
5324
5330
  key: "reset",
@@ -5340,7 +5346,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5340
5346
  value: function() {
5341
5347
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
5342
5348
  if (!(!s || !l)) {
5343
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Re), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(ni), (e = Ce) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), L(A(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5349
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Re), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(ri), (e = Ce) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), L(A(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5344
5350
  for (var u = n.children, c = 0; c < u.length; c++)
5345
5351
  n.removeChild(u[c]);
5346
5352
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -5364,7 +5370,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5364
5370
  i && i.catch && i.catch(function(n) {
5365
5371
  console.log(n);
5366
5372
  });
5367
- }), e.emit(ft), e.onPlay();
5373
+ }), e.emit(ht), e.onPlay();
5368
5374
  });
5369
5375
  }
5370
5376
  }, {
@@ -5443,7 +5449,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5443
5449
  var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
5444
5450
  this.changeFullStyle(this.root, e, i);
5445
5451
  var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
5446
- l && (this.fullscreen = !0, this.emit(ge, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(ht, !0);
5452
+ l && (this.fullscreen = !0, this.emit(ge, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(dt, !0);
5447
5453
  }
5448
5454
  }, {
5449
5455
  key: "exitCssFullscreen",
@@ -5455,7 +5461,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5455
5461
  var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
5456
5462
  s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(ge, !1)) : this.removeClass(e);
5457
5463
  }
5458
- this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(ht, !1);
5464
+ this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(dt, !1);
5459
5465
  }
5460
5466
  }, {
5461
5467
  key: "getRotateFullscreen",
@@ -5487,7 +5493,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5487
5493
  this.onFocus(e);
5488
5494
  return;
5489
5495
  }
5490
- this.emit(ei, W({
5496
+ this.emit(ti, W({
5491
5497
  paused: this.paused,
5492
5498
  ended: this.ended
5493
5499
  }, e));
@@ -5620,7 +5626,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5620
5626
  value: function(e, i, n) {
5621
5627
  if (!(!this.media || !i || !e)) {
5622
5628
  var s = h.typeOf(e) === "String" ? e : e.type || "";
5623
- n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(pt, W({
5629
+ n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(vt, W({
5624
5630
  eventType: s,
5625
5631
  action: i,
5626
5632
  currentTime: this.currentTime,
@@ -5706,7 +5712,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5706
5712
  value: function(e) {
5707
5713
  var i = this;
5708
5714
  this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, pe(this, "playnext", function() {
5709
- i.start(), i.emit(gt, e);
5715
+ i.start(), i.emit(pt, e);
5710
5716
  });
5711
5717
  }
5712
5718
  }, {
@@ -5844,7 +5850,7 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5844
5850
  }, {
5845
5851
  key: "version",
5846
5852
  get: function() {
5847
- return jt;
5853
+ return Wt;
5848
5854
  }
5849
5855
  }, {
5850
5856
  key: "playerId",
@@ -5945,17 +5951,17 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
5945
5951
  }, {
5946
5952
  key: "hook",
5947
5953
  value: function(e, i) {
5948
- return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
5954
+ return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
5949
5955
  }
5950
5956
  }, {
5951
5957
  key: "useHooks",
5952
5958
  value: function(e, i) {
5953
- return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
5959
+ return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
5954
5960
  }
5955
5961
  }, {
5956
5962
  key: "removeHooks",
5957
5963
  value: function(e, i) {
5958
- return yt.call.apply(yt, [this].concat(Array.prototype.slice.call(arguments)));
5964
+ return _t.call.apply(_t, [this].concat(Array.prototype.slice.call(arguments)));
5959
5965
  }
5960
5966
  }, {
5961
5967
  key: "usePluginHooks",
@@ -6027,9 +6033,9 @@ var Co = ["play", "pause", "replay", "retry"], xi = 0, Ii = 0, Ce = null, Tt = /
6027
6033
  }
6028
6034
  }]), r;
6029
6035
  }(Zs);
6030
- _(Tt, "defaultPreset", null);
6031
- _(Tt, "XgVideoProxy", null);
6032
- Tt.instManager = vn.getInstance();
6036
+ _(Et, "defaultPreset", null);
6037
+ _(Et, "XgVideoProxy", null);
6038
+ Et.instManager = vn.getInstance();
6033
6039
  function Y() {
6034
6040
  return (/* @__PURE__ */ new Date()).getTime();
6035
6041
  }
@@ -6093,18 +6099,18 @@ var we = {
6093
6099
  key: "afterCreate",
6094
6100
  value: function() {
6095
6101
  var e = this;
6096
- this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Y(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Qt, function() {
6102
+ this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Y(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(ei, function() {
6097
6103
  var i = e._state, n = i.autoplayStart, s = i.isFFSend;
6098
6104
  e.startCostTime = Y() - e.newPointTime, F.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(we.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = Y(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
6099
6105
  }), this.on(ke, function() {
6100
6106
  e.vt = Y(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
6101
6107
  var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
6102
6108
  F.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(we.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
6103
- }), this.on(kt, this._onSeeking), this.on(_e, this._onSeeked), this.on(ni, function() {
6109
+ }), this.on(Ct, this._onSeeking), this.on(_e, this._onSeeked), this.on(ri, function() {
6104
6110
  e.endState("destroy");
6105
- }), this.on(wt, function() {
6111
+ }), this.on(bt, function() {
6106
6112
  e.endState("urlChange"), F.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
6107
- }), this.on([Jt, me], this._onPlaying), this.on(nt, this._onWaiting), this.on(it, this._onError), this.on(bt, function() {
6113
+ }), this.on([Qt, me], this._onPlaying), this.on(rt, this._onWaiting), this.on(nt, this._onError), this.on(Tt, function() {
6108
6114
  F.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
6109
6115
  });
6110
6116
  }
@@ -6318,7 +6324,7 @@ var To = /* @__PURE__ */ function(a) {
6318
6324
  e.isEndedShow && h.removeClass(e.root, "hide");
6319
6325
  }), this.config.hideCanplay ? (this.once(ne, function() {
6320
6326
  e.onTimeUpdate();
6321
- }), this.on(wt, function() {
6327
+ }), this.on(bt, function() {
6322
6328
  h.removeClass(e.root, "hide"), h.addClass(e.root, "xg-showplay"), e.once(ne, function() {
6323
6329
  e.onTimeUpdate();
6324
6330
  });
@@ -6393,13 +6399,13 @@ var To = /* @__PURE__ */ function(a) {
6393
6399
  }
6394
6400
  }]), r;
6395
6401
  }(U);
6396
- function oi() {
6402
+ function ai() {
6397
6403
  return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
6398
6404
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
6399
6405
  </svg>
6400
6406
  `, "image/svg+xml").firstChild;
6401
6407
  }
6402
- function ai() {
6408
+ function li() {
6403
6409
  return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
6404
6410
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
6405
6411
  </svg>
@@ -6444,16 +6450,16 @@ var xo = /* @__PURE__ */ function(a) {
6444
6450
  key: "afterCreate",
6445
6451
  value: function() {
6446
6452
  var e = this, i = this.player, n = this.playerConfig;
6447
- this.initIcons(), this.once(ti, function() {
6453
+ this.initIcons(), this.once(ii, function() {
6448
6454
  n && (n.lang && n.lang === "en" ? h.addClass(i.root, "lang-is-en") : n.lang === "jp" && h.addClass(i.root, "lang-is-jp"));
6449
- }), this.on(Me, this.onAutoplayStart), n.autoplay || this.show(), this.on(ii, function() {
6455
+ }), this.on(Me, this.onAutoplayStart), n.autoplay || this.show(), this.on(ni, function() {
6450
6456
  var s = e.config.mode === "auto" ? "auto-hide" : "hide";
6451
6457
  e.setAttr("data-state", "play"), h.removeClass(e.root, s), e.show();
6452
6458
  }), this.on(re, function() {
6453
6459
  e.onPlayPause("play");
6454
6460
  }), this.on(Xe, function() {
6455
6461
  e.onPlayPause("pause");
6456
- }), this.on(bt, function() {
6462
+ }), this.on(Tt, function() {
6457
6463
  e.onPlayerReset();
6458
6464
  }), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
6459
6465
  pre: function(l) {
@@ -6472,11 +6478,11 @@ var xo = /* @__PURE__ */ function(a) {
6472
6478
  value: function() {
6473
6479
  return {
6474
6480
  startPlay: {
6475
- icon: oi,
6481
+ icon: ai,
6476
6482
  class: "xg-icon-play"
6477
6483
  },
6478
6484
  startPause: {
6479
- icon: ai,
6485
+ icon: li,
6480
6486
  class: "xg-icon-pause"
6481
6487
  }
6482
6488
  };
@@ -6698,7 +6704,7 @@ function Li(a) {
6698
6704
  var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
6699
6705
  return r && o;
6700
6706
  }
6701
- var li = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mn = li.length;
6707
+ var ui = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mn = ui.length;
6702
6708
  function Po() {
6703
6709
  for (var a = {
6704
6710
  width: 0,
@@ -6708,7 +6714,7 @@ function Po() {
6708
6714
  outerWidth: 0,
6709
6715
  outerHeight: 0
6710
6716
  }, o = 0; o < mn; o++) {
6711
- var r = li[o];
6717
+ var r = ui[o];
6712
6718
  a[r] = 0;
6713
6719
  }
6714
6720
  return a;
@@ -6725,7 +6731,7 @@ function Di(a) {
6725
6731
  var r = {};
6726
6732
  r.width = a.offsetWidth, r.height = a.offsetHeight;
6727
6733
  for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < mn; e++) {
6728
- var i = li[e], n = o[i], s = parseFloat(n);
6734
+ var i = ui[e], n = o[i], s = parseFloat(n);
6729
6735
  r[i] = Number.isNaN(s) ? 0 : s;
6730
6736
  }
6731
6737
  var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, f = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = Li(o.width);
@@ -6734,14 +6740,14 @@ function Di(a) {
6734
6740
  return y !== !1 && (r.height = y + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + f, r;
6735
6741
  }
6736
6742
  }
6737
- function Dt(a, o) {
6743
+ function Rt(a, o) {
6738
6744
  for (var r = 0; r < a.length; r++) {
6739
6745
  var t = a[r];
6740
6746
  if (t.identifier === o)
6741
6747
  return t;
6742
6748
  }
6743
6749
  }
6744
- var Rt = {
6750
+ var Ot = {
6745
6751
  START: "dragStart",
6746
6752
  MOVE: "dragMove",
6747
6753
  ENDED: "dragEnded"
@@ -6760,7 +6766,7 @@ var Rt = {
6760
6766
  }, e.startPos = {
6761
6767
  x: 0,
6762
6768
  y: 0
6763
- }, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? Zt(e) : (e._bindStartEvent(), e);
6769
+ }, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? Jt(e) : (e._bindStartEvent(), e);
6764
6770
  }
6765
6771
  return E(r, [{
6766
6772
  key: "_bindStartEvent",
@@ -6852,19 +6858,19 @@ var Rt = {
6852
6858
  }, {
6853
6859
  key: "ontouchmove",
6854
6860
  value: function(e) {
6855
- var i = Dt(e.changedTouches, this.touchIdentifier);
6861
+ var i = Rt(e.changedTouches, this.touchIdentifier);
6856
6862
  i && this.dragMove(e, i);
6857
6863
  }
6858
6864
  }, {
6859
6865
  key: "ontouchend",
6860
6866
  value: function(e) {
6861
- var i = Dt(e.changedTouches, this.touchIdentifier);
6867
+ var i = Rt(e.changedTouches, this.touchIdentifier);
6862
6868
  i && this.dragEnd(e, i), e.preventDefault();
6863
6869
  }
6864
6870
  }, {
6865
6871
  key: "ontouchcancel",
6866
6872
  value: function(e) {
6867
- var i = Dt(e.changedTouches, this.touchIdentifier);
6873
+ var i = Rt(e.changedTouches, this.touchIdentifier);
6868
6874
  i && this.dragCancel(e, i);
6869
6875
  }
6870
6876
  }, {
@@ -6879,12 +6885,12 @@ var Rt = {
6879
6885
  }, {
6880
6886
  key: "dragRealStart",
6881
6887
  value: function(e, i) {
6882
- this.isDragging = !0, this.animate(), this.emit(Rt.START, this.startPos);
6888
+ this.isDragging = !0, this.animate(), this.emit(Ot.START, this.startPos);
6883
6889
  }
6884
6890
  }, {
6885
6891
  key: "dragEnd",
6886
6892
  value: function(e, i) {
6887
- this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Rt.ENDED)), this.presetInfo());
6893
+ this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Ot.ENDED)), this.presetInfo());
6888
6894
  }
6889
6895
  }, {
6890
6896
  key: "_dragPointerMove",
@@ -6900,7 +6906,7 @@ var Rt = {
6900
6906
  value: function(e, i) {
6901
6907
  if (e = e || window.event, !!this.isDown) {
6902
6908
  var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, f = u.y;
6903
- c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(Rt.MOVE, this.position);
6909
+ c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(Ot.MOVE, this.position);
6904
6910
  }
6905
6911
  }
6906
6912
  }, {
@@ -7025,11 +7031,11 @@ var Rt = {
7025
7031
  value: function() {
7026
7032
  return {
7027
7033
  play: {
7028
- icon: oi,
7034
+ icon: ai,
7029
7035
  class: "xg-icon-play"
7030
7036
  },
7031
7037
  pause: {
7032
- icon: ai,
7038
+ icon: li,
7033
7039
  class: "xg-icon-pause"
7034
7040
  }
7035
7041
  };
@@ -7048,7 +7054,7 @@ var Rt = {
7048
7054
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
7049
7055
  this.lastStyle = {}, h.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
7050
7056
  e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
7051
- }), n.fluid && (s.style["padding-top"] = ""), this.emit(dt, !0), i.isMini = this.isMini = !0;
7057
+ }), n.fluid && (s.style["padding-top"] = ""), this.emit(gt, !0), i.isMini = this.isMini = !0;
7052
7058
  }
7053
7059
  }
7054
7060
  }, {
@@ -7060,7 +7066,7 @@ var Rt = {
7060
7066
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
7061
7067
  h.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
7062
7068
  s.style[l] = e.lastStyle[l];
7063
- }), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(dt, !1), this.isMini = i.isMini = !1;
7069
+ }), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(gt, !1), this.isMini = i.isMini = !1;
7064
7070
  }
7065
7071
  }, {
7066
7072
  key: "destroy",
@@ -7109,11 +7115,11 @@ var Rt = {
7109
7115
  };
7110
7116
  }
7111
7117
  }]), r;
7112
- }(U), st = {
7118
+ }(U), ot = {
7113
7119
  mouseenter: "onMouseEnter",
7114
7120
  mouseleave: "onMouseLeave",
7115
7121
  mousemove: "onMouseMove"
7116
- }, Ot = ["videoClick", "videoDbClick"], Ft = /* @__PURE__ */ function(a) {
7122
+ }, Ft = ["videoClick", "videoDbClick"], Mt = /* @__PURE__ */ function(a) {
7117
7123
  I(r, a);
7118
7124
  var o = P(r);
7119
7125
  function r() {
@@ -7142,7 +7148,7 @@ var Rt = {
7142
7148
  }), _(v(t), "onVideoClick", function(s) {
7143
7149
  var l = v(t), u = l.player, c = l.playerConfig;
7144
7150
  s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
7145
- t._clickCount && (t._clickCount--, pe(v(t), Ot[0], function(f, d) {
7151
+ t._clickCount && (t._clickCount--, pe(v(t), Ft[0], function(f, d) {
7146
7152
  t.switchPlayPause(d.e);
7147
7153
  }, {
7148
7154
  e: s,
@@ -7156,7 +7162,7 @@ var Rt = {
7156
7162
  t._clickCount = 0;
7157
7163
  return;
7158
7164
  }
7159
- t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), pe(v(t), Ot[1], function(f, d) {
7165
+ t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), pe(v(t), Ft[1], function(f, d) {
7160
7166
  t.emitUserAction(d.e, "switch_fullscreen", {
7161
7167
  props: "fullscreen",
7162
7168
  from: u.fullscreen,
@@ -7173,7 +7179,7 @@ var Rt = {
7173
7179
  key: "afterCreate",
7174
7180
  value: function() {
7175
7181
  var e = this;
7176
- this._clickCount = 0, Ot.map(function(n) {
7182
+ this._clickCount = 0, Ft.map(function(n) {
7177
7183
  e.__hooks[n] = null;
7178
7184
  });
7179
7185
  var i = this.playerConfig.isMobileSimulateMode;
@@ -7183,8 +7189,8 @@ var Rt = {
7183
7189
  key: "initEvents",
7184
7190
  value: function() {
7185
7191
  var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
7186
- s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(st).map(function(u) {
7187
- s.addEventListener(u, e[st[u]], !1);
7192
+ s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(ot).map(function(u) {
7193
+ s.addEventListener(u, e[ot[u]], !1);
7188
7194
  }), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
7189
7195
  }
7190
7196
  }, {
@@ -7206,8 +7212,8 @@ var Rt = {
7206
7212
  key: "destroy",
7207
7213
  value: function() {
7208
7214
  var e = this, i = this.player, n = i.video, s = i.root;
7209
- this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(st).map(function(l) {
7210
- s.removeEventListener(l, e[st[l]], !1);
7215
+ this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(ot).map(function(l) {
7216
+ s.removeEventListener(l, e[ot[l]], !1);
7211
7217
  });
7212
7218
  }
7213
7219
  }], [{
@@ -7369,7 +7375,7 @@ var Ve = {
7369
7375
  SEEKING: "seeking",
7370
7376
  PLAYBACK: "playbackrate",
7371
7377
  LIGHT: ""
7372
- }, Mt = ["videoClick", "videoDbClick"], Bo = /* @__PURE__ */ function(a) {
7378
+ }, Nt = ["videoClick", "videoDbClick"], Bo = /* @__PURE__ */ function(a) {
7373
7379
  I(r, a);
7374
7380
  var o = P(r);
7375
7381
  function r(t) {
@@ -7450,7 +7456,7 @@ var Ve = {
7450
7456
  key: "afterCreate",
7451
7457
  value: function() {
7452
7458
  var e = this;
7453
- Mt.map(function(d) {
7459
+ Nt.map(function(d) {
7454
7460
  e.__hooks[d] = null;
7455
7461
  });
7456
7462
  var i = this.playerConfig, n = this.config, s = this.player;
@@ -7633,7 +7639,7 @@ var Ve = {
7633
7639
  key: "onClick",
7634
7640
  value: function(e) {
7635
7641
  var i = this, n = this.player;
7636
- pe(this, Mt[0], function(s, l) {
7642
+ pe(this, Nt[0], function(s, l) {
7637
7643
  i.clickHandler(l.e);
7638
7644
  }, {
7639
7645
  e,
@@ -7644,7 +7650,7 @@ var Ve = {
7644
7650
  key: "onDbClick",
7645
7651
  value: function(e) {
7646
7652
  var i = this, n = this.player;
7647
- pe(this, Mt[1], function(s, l) {
7653
+ pe(this, Nt[1], function(s, l) {
7648
7654
  i.dbClickHandler(l.e);
7649
7655
  }, {
7650
7656
  e,
@@ -8797,7 +8803,7 @@ var zo = /* @__PURE__ */ function(a) {
8797
8803
  var e = this;
8798
8804
  L(A(r.prototype), "afterCreate", this).call(this);
8799
8805
  var i = this.player, n = this.config;
8800
- n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Xe, it, He], function() {
8806
+ n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Xe, nt, He], function() {
8801
8807
  e.animate(i.paused);
8802
8808
  }), this.on(re, function() {
8803
8809
  e.animate(i.paused);
@@ -8808,11 +8814,11 @@ var zo = /* @__PURE__ */ function(a) {
8808
8814
  value: function() {
8809
8815
  return {
8810
8816
  play: {
8811
- icon: oi,
8817
+ icon: ai,
8812
8818
  class: "xg-icon-play"
8813
8819
  },
8814
8820
  pause: {
8815
- icon: ai,
8821
+ icon: li,
8816
8822
  class: "xg-icon-pause"
8817
8823
  }
8818
8824
  };
@@ -9295,7 +9301,7 @@ var qo = /* @__PURE__ */ function(a) {
9295
9301
  return E(r, [{
9296
9302
  key: "afterCreate",
9297
9303
  value: function() {
9298
- this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Pe, this._onDurationChange), this.on(ke, this._onLoadedData), this.on(ne, this._onTimeupdate), this.on(kt, this._onSeeking), this.on(re, this._onPlay);
9304
+ this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Pe, this._onDurationChange), this.on(ke, this._onLoadedData), this.on(ne, this._onTimeupdate), this.on(Ct, this._onSeeking), this.on(re, this._onPlay);
9299
9305
  }
9300
9306
  }, {
9301
9307
  key: "setConfig",
@@ -9755,7 +9761,7 @@ var je = {
9755
9761
  key: "afterCreate",
9756
9762
  value: function() {
9757
9763
  var e = this;
9758
- this.isPIPAvailable() && (L(A(r.prototype), "afterCreate", this).call(this), this.pMode = je.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Ct, function() {
9764
+ this.isPIPAvailable() && (L(A(r.prototype), "afterCreate", this).call(this), this.pMode = je.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(wt, function() {
9759
9765
  e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
9760
9766
  }));
9761
9767
  }
@@ -9787,9 +9793,9 @@ var je = {
9787
9793
  var n = i.paused;
9788
9794
  h.setTimeout(e, function() {
9789
9795
  !n && i.mediaPlay();
9790
- }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit($t, !1);
9796
+ }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Kt, !1);
9791
9797
  }, this.enterPIPCallback = function(n) {
9792
- i.emit($t, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
9798
+ i.emit(Kt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
9793
9799
  }, this.onWebkitpresentationmodechanged = function(n) {
9794
9800
  var s = i.media.webkitPresentationMode;
9795
9801
  e.pMode === je.FULLSCREEN && s !== je.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === je.PIP ? e.enterPIPCallback(n) : s === je.INLINE && e.leavePIPCallback(n);
@@ -9940,7 +9946,7 @@ var ua = /* @__PURE__ */ function(a) {
9940
9946
  var e;
9941
9947
  return T(this, r), e = o.call(this, t), _(v(e), "playNext", function(i) {
9942
9948
  var n = v(e), s = n.player;
9943
- i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(gt, e.idx + 1)) : (e.nextHandler(), s.emit(gt));
9949
+ i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(pt, e.idx + 1)) : (e.nextHandler(), s.emit(pt));
9944
9950
  }), e.idx = -1, e;
9945
9951
  }
9946
9952
  return E(r, [{
@@ -10075,7 +10081,7 @@ Use Save As... to download, then click back to return to this page.`) && (locati
10075
10081
  });
10076
10082
  })(yn);
10077
10083
  var ca = yn.exports;
10078
- const fa = /* @__PURE__ */ Xt(ca);
10084
+ const fa = /* @__PURE__ */ qt(ca);
10079
10085
  function ha() {
10080
10086
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
10081
10087
  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
@@ -10374,7 +10380,7 @@ var da = /* @__PURE__ */ function(a) {
10374
10380
  function va(a, o) {
10375
10381
  return a === fe.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10376
10382
  }
10377
- var De = O.device === "mobile", _t = /* @__PURE__ */ function(a) {
10383
+ var De = O.device === "mobile", kt = /* @__PURE__ */ function(a) {
10378
10384
  I(r, a);
10379
10385
  var o = P(r);
10380
10386
  function r(t) {
@@ -10410,7 +10416,7 @@ var De = O.device === "mobile", _t = /* @__PURE__ */ function(a) {
10410
10416
  e._resizeList();
10411
10417
  }), this.once(me, function() {
10412
10418
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
10413
- }), De && this.on(ei, function() {
10419
+ }), De && this.on(ti, function() {
10414
10420
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
10415
10421
  }), De ? (i.toggleMode = We.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === We.CLICK ? "click" : "mouseenter", i.toggleMode === We.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);
10416
10422
  }
@@ -10567,7 +10573,7 @@ var De = O.device === "mobile", _t = /* @__PURE__ */ function(a) {
10567
10573
  var e = this;
10568
10574
  L(A(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
10569
10575
  e.changeDefinitionList(i);
10570
- }), this.on(ri, function(i) {
10576
+ }), this.on(si, function(i) {
10571
10577
  e.renderItemList(e.config.list, i.to);
10572
10578
  }), this.player.definitionList.length < 2 && this.hide();
10573
10579
  }
@@ -10635,7 +10641,7 @@ var De = O.device === "mobile", _t = /* @__PURE__ */ function(a) {
10635
10641
  }, {
10636
10642
  key: "defaultConfig",
10637
10643
  get: function() {
10638
- return W(W({}, _t.defaultConfig), {}, {
10644
+ return W(W({}, kt.defaultConfig), {}, {
10639
10645
  position: j.CONTROLS_RIGHT,
10640
10646
  index: 3,
10641
10647
  list: [],
@@ -10647,7 +10653,7 @@ var De = O.device === "mobile", _t = /* @__PURE__ */ function(a) {
10647
10653
  });
10648
10654
  }
10649
10655
  }]), r;
10650
- }(_t), ya = /* @__PURE__ */ function(a) {
10656
+ }(kt), ya = /* @__PURE__ */ function(a) {
10651
10657
  I(r, a);
10652
10658
  var o = P(r);
10653
10659
  function r(t) {
@@ -10729,7 +10735,7 @@ var De = O.device === "mobile", _t = /* @__PURE__ */ function(a) {
10729
10735
  }, {
10730
10736
  key: "defaultConfig",
10731
10737
  get: function() {
10732
- return W(W({}, _t.defaultConfig), {}, {
10738
+ return W(W({}, kt.defaultConfig), {}, {
10733
10739
  position: j.CONTROLS_RIGHT,
10734
10740
  index: 4,
10735
10741
  list: [2, 1.5, 1, 0.75, 0.5],
@@ -10739,7 +10745,7 @@ var De = O.device === "mobile", _t = /* @__PURE__ */ function(a) {
10739
10745
  });
10740
10746
  }
10741
10747
  }]), r;
10742
- }(_t);
10748
+ }(kt);
10743
10749
  function _a() {
10744
10750
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
10745
10751
  <path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
@@ -10767,7 +10773,7 @@ var Bi = /* @__PURE__ */ function(a) {
10767
10773
  key: "afterCreate",
10768
10774
  value: function() {
10769
10775
  var e = this;
10770
- L(A(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(ht, function(i) {
10776
+ L(A(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(dt, function(i) {
10771
10777
  e.animate(i);
10772
10778
  }), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
10773
10779
  pre: function(n) {
@@ -10860,7 +10866,7 @@ var Bi = /* @__PURE__ */ function(a) {
10860
10866
  pre: function(n) {
10861
10867
  n.preventDefault(), n.stopPropagation();
10862
10868
  }
10863
- }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(it, function(i) {
10869
+ }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(nt, function(i) {
10864
10870
  e.onError(i);
10865
10871
  });
10866
10872
  }
@@ -11571,7 +11577,7 @@ var Ge = {
11571
11577
  }
11572
11578
  }]), r;
11573
11579
  }(U);
11574
- function Nt(a) {
11580
+ function Bt(a) {
11575
11581
  return a ? "background:".concat(a, ";") : "";
11576
11582
  }
11577
11583
  var Sa = /* @__PURE__ */ function(a) {
@@ -11631,9 +11637,9 @@ var Sa = /* @__PURE__ */ function(a) {
11631
11637
  var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
11632
11638
  if (n) {
11633
11639
  var s = this.config, l = s.mode, u = s.height, c = {
11634
- cached: Nt(i.cachedColor),
11635
- played: Nt(i.playedColor),
11636
- progress: Nt(i.progressColor),
11640
+ cached: Bt(i.cachedColor),
11641
+ played: Bt(i.playedColor),
11642
+ progress: Bt(i.progressColor),
11637
11643
  height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
11638
11644
  }, f = l === "show" ? "xg-mini-progress-show" : "";
11639
11645
  return '<xg-mini-progress class="xg-mini-progress '.concat(f, '" style="').concat(c.progress, " ").concat(c.height, `">
@@ -11677,7 +11683,7 @@ function Ia() {
11677
11683
  return !1;
11678
11684
  }
11679
11685
  }
11680
- var ot = null, Pa = /* @__PURE__ */ function(a) {
11686
+ var at = null, Pa = /* @__PURE__ */ function(a) {
11681
11687
  I(r, a);
11682
11688
  var o = P(r);
11683
11689
  function r() {
@@ -11718,7 +11724,7 @@ var ot = null, Pa = /* @__PURE__ */ function(a) {
11718
11724
  x: 0,
11719
11725
  y: 0,
11720
11726
  pi: 0
11721
- }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== $e.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Ct, function() {
11727
+ }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== $e.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(wt, function() {
11722
11728
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
11723
11729
  }), s !== $e.POSTER && (s !== $e.FIRST_FRAME && (this.on(He, function() {
11724
11730
  e.stop();
@@ -11727,7 +11733,7 @@ var ot = null, Pa = /* @__PURE__ */ function(a) {
11727
11733
  e._checkIfCanStart() && e.start(0, u);
11728
11734
  }), this.on(Xe, function() {
11729
11735
  e.stop();
11730
- })), this.on(ke, this.onLoadedData), this.on(Qt, function() {
11736
+ })), this.on(ke, this.onLoadedData), this.on(ei, function() {
11731
11737
  e._isLoaded = !1, e.stop();
11732
11738
  }), document.addEventListener("visibilitychange", this.onVisibilitychange)));
11733
11739
  }
@@ -11871,7 +11877,7 @@ var ot = null, Pa = /* @__PURE__ */ function(a) {
11871
11877
  }, {
11872
11878
  key: "isSupport",
11873
11879
  get: function() {
11874
- return typeof ot == "boolean" || (ot = Ia()), ot;
11880
+ return typeof at == "boolean" || (at = Ia()), at;
11875
11881
  }
11876
11882
  }, {
11877
11883
  key: "supportCanvasFilter",
@@ -11954,7 +11960,7 @@ var ot = null, Pa = /* @__PURE__ */ function(a) {
11954
11960
  FORWARD: "快进中",
11955
11961
  LIVE_TIP: "直播"
11956
11962
  }
11957
- }, Ze = "info", Bt = fn, La = /* @__PURE__ */ function(a) {
11963
+ }, Ze = "info", Ht = fn, La = /* @__PURE__ */ function(a) {
11958
11964
  I(r, a);
11959
11965
  var o = P(r);
11960
11966
  function r() {
@@ -11993,7 +11999,7 @@ var ot = null, Pa = /* @__PURE__ */ function(a) {
11993
11999
  }, {
11994
12000
  key: "afterCreate",
11995
12001
  value: function() {
11996
- this.reset(), this.on(pt, this._recordUserActions), this.on(Bt.STATS_INFO, this._recordInfo), this.on(Bt.STATS_DOWNLOAD, this._downloadStats), this.on(Bt.STATS_RESET, this._onReset);
12002
+ this.reset(), this.on(vt, this._recordUserActions), this.on(Ht.STATS_INFO, this._recordInfo), this.on(Ht.STATS_DOWNLOAD, this._downloadStats), this.on(Ht.STATS_RESET, this._onReset);
11997
12003
  }
11998
12004
  }, {
11999
12005
  key: "destroy",
@@ -12139,9 +12145,9 @@ var ot = null, Pa = /* @__PURE__ */ function(a) {
12139
12145
  key: "afterCreate",
12140
12146
  value: function() {
12141
12147
  var e = this, i = this.config.useGapJump;
12142
- i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(nt, this.onGapJump), this.on(re, function() {
12148
+ i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(rt, this.onGapJump), this.on(re, function() {
12143
12149
  e.hasPlayed = !0;
12144
- }), this.on(kt, function() {
12150
+ }), this.on(Ct, function() {
12145
12151
  e.seekingEventReceived = !0;
12146
12152
  }));
12147
12153
  }
@@ -12212,7 +12218,7 @@ var Da = /* @__PURE__ */ function(a) {
12212
12218
  key: "afterCreate",
12213
12219
  value: function() {
12214
12220
  var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
12215
- n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(nt, this.onWaiting), this.on([Jt, me], function() {
12221
+ n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(rt, this.onWaiting), this.on([Qt, me], function() {
12216
12222
  clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
12217
12223
  }), this.on(re, function() {
12218
12224
  e.hasPlayed = !0;
@@ -12234,7 +12240,7 @@ var Da = /* @__PURE__ */ function(a) {
12234
12240
  };
12235
12241
  }
12236
12242
  }]), r;
12237
- }(U), Ke = "cdn", at = ["cdn"], Ra = /* @__PURE__ */ function(a) {
12243
+ }(U), Ke = "cdn", lt = ["cdn"], Ra = /* @__PURE__ */ function(a) {
12238
12244
  I(r, a);
12239
12245
  var o = P(r);
12240
12246
  function r() {
@@ -12253,7 +12259,7 @@ var Da = /* @__PURE__ */ function(a) {
12253
12259
  }), _(v(t), "startTimer", function() {
12254
12260
  h.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
12255
12261
  }), _(v(t), "initSpeedList", function() {
12256
- t.speedListCache = {}, at.forEach(function(s) {
12262
+ t.speedListCache = {}, lt.forEach(function(s) {
12257
12263
  t.speedListCache[s] = [];
12258
12264
  });
12259
12265
  }), _(v(t), "_onRealSpeedChange", function(s) {
@@ -12293,13 +12299,13 @@ var Da = /* @__PURE__ */ function(a) {
12293
12299
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ke, l = t.getSpeed(s), u = v(t), c = u.player;
12294
12300
  if (c)
12295
12301
  if (s === Ke)
12296
- (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Wt, {
12302
+ (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Gt, {
12297
12303
  speed: l,
12298
12304
  realTimeSpeed: c.realTimeSpeed
12299
12305
  }));
12300
12306
  else {
12301
12307
  var f = t.getSpeedName("avg", s);
12302
- (!c[f] || l !== c[f]) && (c[f] = l, c.emit(Wt, {
12308
+ (!c[f] || l !== c[f]) && (c[f] = l, c.emit(Gt, {
12303
12309
  speed: l,
12304
12310
  realTimeSpeed: c.realTimeSpeed
12305
12311
  }));
@@ -12310,7 +12316,7 @@ var Da = /* @__PURE__ */ function(a) {
12310
12316
  key: "afterCreate",
12311
12317
  value: function() {
12312
12318
  var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
12313
- (n == null ? void 0 : n.length) > 0 && at.push.apply(at, ue(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ke, ft], this.startTimer);
12319
+ (n == null ? void 0 : n.length) > 0 && lt.push.apply(lt, ue(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ke, ht], this.startTimer);
12314
12320
  }
12315
12321
  }, {
12316
12322
  key: "getSpeedName",
@@ -12337,7 +12343,7 @@ var Da = /* @__PURE__ */ function(a) {
12337
12343
  key: "destroy",
12338
12344
  value: function() {
12339
12345
  var e = this;
12340
- this.off("real_time_speed", this._onRealSpeedChange), this.off([ke, ft], this.startTimer), at.forEach(function(i) {
12346
+ this.off("real_time_speed", this._onRealSpeedChange), this.off([ke, ht], this.startTimer), lt.forEach(function(i) {
12341
12347
  e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
12342
12348
  }), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
12343
12349
  }
@@ -12479,15 +12485,15 @@ var Fa = /* @__PURE__ */ E(function a(o, r) {
12479
12485
  var f = n ? "mobile" : O.device;
12480
12486
  switch (f) {
12481
12487
  case "pc":
12482
- (t = this.plugins).push.apply(t, [Mi, Ft, Bi, Ra, Oa]);
12488
+ (t = this.plugins).push.apply(t, [Mi, Mt, Bi, Ra, Oa]);
12483
12489
  break;
12484
12490
  case "mobile":
12485
12491
  (e = this.plugins).push.apply(e, [Bo]);
12486
12492
  break;
12487
12493
  default:
12488
- (i = this.plugins).push.apply(i, [Mi, Ft, Bi]);
12494
+ (i = this.plugins).push.apply(i, [Mi, Mt, Bi]);
12489
12495
  }
12490
- (O.os.isIpad || f === "pc") && this.plugins.push(Pa), O.os.isIpad && this.plugins.push(Ft), this.ignores = [], this.i18n = [];
12496
+ (O.os.isIpad || f === "pc") && this.plugins.push(Pa), O.os.isIpad && this.plugins.push(Mt), this.ignores = [], this.i18n = [];
12491
12497
  }), ce = /* @__PURE__ */ function(a) {
12492
12498
  I(r, a);
12493
12499
  var o = P(r);
@@ -12495,11 +12501,11 @@ var Fa = /* @__PURE__ */ E(function a(o, r) {
12495
12501
  return T(this, r), o.apply(this, arguments);
12496
12502
  }
12497
12503
  return E(r);
12498
- }(Tt);
12504
+ }(Et);
12499
12505
  _(ce, "defaultPreset", Fa);
12500
12506
  _(ce, "Util", h);
12501
12507
  _(ce, "Sniffer", O);
12502
- _(ce, "Errors", ct);
12508
+ _(ce, "Errors", ft);
12503
12509
  _(ce, "Events", Xs);
12504
12510
  _(ce, "Plugin", U);
12505
12511
  _(ce, "BasePlugin", xe);
@@ -12509,7 +12515,7 @@ _(ce, "InstManager", vn);
12509
12515
  const Ma = ["id"], Na = /* @__PURE__ */ oe({
12510
12516
  name: "ElImageViewer",
12511
12517
  __name: "Player",
12512
- props: /* @__PURE__ */ ut({
12518
+ props: /* @__PURE__ */ ct({
12513
12519
  url: {
12514
12520
  type: String,
12515
12521
  default: ""
@@ -12530,12 +12536,12 @@ const Ma = ["id"], Na = /* @__PURE__ */ oe({
12530
12536
  },
12531
12537
  modelModifiers: {}
12532
12538
  }),
12533
- emits: /* @__PURE__ */ ut({
12539
+ emits: /* @__PURE__ */ ct({
12534
12540
  close: () => !0
12535
12541
  }, ["update:modelValue"]),
12536
12542
  setup(a, { emit: o }) {
12537
12543
  let r = null;
12538
- const t = a, { cLoadUrl: e } = ji(t), i = X(() => Qe(e.value, t.url)), n = {
12544
+ const t = a, { cLoadUrl: e } = ji(t), i = X(() => et(e.value, t.url)), n = {
12539
12545
  width: "100%",
12540
12546
  height: "100%",
12541
12547
  // 是否自动播放
@@ -12556,11 +12562,11 @@ const Ma = ["id"], Na = /* @__PURE__ */ oe({
12556
12562
  }, s = X(() => ({
12557
12563
  ...n,
12558
12564
  ...t.config
12559
- })), l = o, u = Kt(a, "modelValue"), c = Vi(), f = Rn("image-viewer");
12565
+ })), l = o, u = Yt(a, "modelValue"), c = Vi(), f = Rn("image-viewer");
12560
12566
  function d() {
12561
12567
  l("close"), u.value = !1, r.destroy();
12562
12568
  }
12563
- return Yt(() => u.value, (g) => {
12569
+ return Xt(() => u.value, (g) => {
12564
12570
  g && zi(() => {
12565
12571
  r = new ce({
12566
12572
  id: c,
@@ -12641,7 +12647,7 @@ const Ma = ["id"], Na = /* @__PURE__ */ oe({
12641
12647
  };
12642
12648
  }
12643
12649
  });
12644
- const Ba = /* @__PURE__ */ tt(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(Ba), Ua = (a) => (xn("data-v-6a92bbab"), a = a(), In(), a), za = {
12650
+ const Ba = /* @__PURE__ */ it(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(Ba), Ua = (a) => (xn("data-v-6a92bbab"), a = a(), In(), a), za = {
12645
12651
  key: 0,
12646
12652
  class: "preview-files"
12647
12653
  }, Va = {
@@ -12687,7 +12693,7 @@ const Ba = /* @__PURE__ */ tt(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12687
12693
  },
12688
12694
  setup(a) {
12689
12695
  const o = a, r = ye(o.fileList);
12690
- Yt(
12696
+ Xt(
12691
12697
  () => o.fileList,
12692
12698
  (u) => {
12693
12699
  u && (r.value = u);
@@ -12718,7 +12724,7 @@ const Ba = /* @__PURE__ */ tt(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12718
12724
  (x(!0), D(
12719
12725
  Oe,
12720
12726
  null,
12721
- lt(r.value, (p, m) => (x(), D(
12727
+ ut(r.value, (p, m) => (x(), D(
12722
12728
  "div",
12723
12729
  {
12724
12730
  key: m,
@@ -12770,7 +12776,7 @@ const Ba = /* @__PURE__ */ tt(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12770
12776
  (x(!0), D(
12771
12777
  Oe,
12772
12778
  null,
12773
- lt(r.value, (p, m) => (x(), D("div", {
12779
+ ut(r.value, (p, m) => (x(), D("div", {
12774
12780
  key: m,
12775
12781
  class: "preview-img"
12776
12782
  }, [
@@ -12797,7 +12803,7 @@ const Ba = /* @__PURE__ */ tt(Na, [["__scopeId", "data-v-b301aa7d"]]), Ha = Ie(B
12797
12803
  };
12798
12804
  }
12799
12805
  });
12800
- const qa = /* @__PURE__ */ tt(Xa, [["__scopeId", "data-v-6a92bbab"]]), el = Ie(qa);
12806
+ const qa = /* @__PURE__ */ it(Xa, [["__scopeId", "data-v-6a92bbab"]]), el = Ie(qa);
12801
12807
  export {
12802
12808
  el as IKDetailPreviewFiles,
12803
12809
  el as default