iking-web-ui-pro 0.2.22 → 0.2.25

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 (72) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +77 -82
  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 +727 -745
  5. package/dist/IKPreviewFile/ik.index.umd.js +46 -46
  6. package/dist/IKPreviewFile/style.css +1 -1
  7. package/dist/IKSearch/ik.index.es.js +41 -33
  8. package/dist/IKSearch/ik.index.umd.js +1 -1
  9. package/dist/IKSearch/style.css +1 -1
  10. package/dist/IKVerticalStepBar/ik.index.es.js +125 -130
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcess/ik.index.es.js +167 -159
  14. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcess/style.css +1 -1
  16. package/dist/IkApprovalProcessDetail/ik.index.es.js +659 -677
  17. package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
  18. package/dist/IkApprovalProcessDetail/style.css +1 -1
  19. package/dist/IkBaseDialog/ik.index.es.js +112 -130
  20. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  21. package/dist/IkBaseDialog/style.css +1 -1
  22. package/dist/IkBtnSetting/ik.index.es.js +237 -242
  23. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  24. package/dist/IkBtnSetting/style.css +1 -1
  25. package/dist/IkCalendar/ik.index.es.js +73 -65
  26. package/dist/IkCalendar/ik.index.umd.js +1 -1
  27. package/dist/IkCalendar/style.css +1 -1
  28. package/dist/IkCollapseCard/ik.index.es.js +78 -83
  29. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  30. package/dist/IkCollapseCard/style.css +1 -1
  31. package/dist/IkDescription/ik.index.es.js +902 -920
  32. package/dist/IkDescription/ik.index.umd.js +45 -45
  33. package/dist/IkDescription/style.css +1 -1
  34. package/dist/IkDetailPreviewFiles/ik.index.es.js +613 -631
  35. package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
  36. package/dist/IkDetailPreviewFiles/style.css +1 -1
  37. package/dist/IkIconPicker/ik.index.es.js +135 -140
  38. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  39. package/dist/IkIconPicker/style.css +1 -1
  40. package/dist/IkMonacoEditor/ik.index.es.js +378 -383
  41. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  42. package/dist/IkMonacoEditor/style.css +1 -1
  43. package/dist/IkPageFull/ik.index.es.js +1305 -1302
  44. package/dist/IkPageFull/ik.index.umd.js +2 -2
  45. package/dist/IkPageFull/style.css +1 -1
  46. package/dist/IkPickerUser/ik.index.es.js +41 -33
  47. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  48. package/dist/IkPickerUser/style.css +1 -1
  49. package/dist/IkPreviewFileDialog/ik.index.es.js +687 -705
  50. package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
  51. package/dist/IkPreviewFileDialog/style.css +1 -1
  52. package/dist/IkSchedule/ik.index.es.js +2955 -2960
  53. package/dist/IkSchedule/ik.index.umd.js +1 -1
  54. package/dist/IkSchedule/style.css +1 -1
  55. package/dist/IkSideText/ik.index.es.js +106 -111
  56. package/dist/IkSideText/ik.index.umd.js +1 -1
  57. package/dist/IkSideText/style.css +1 -1
  58. package/dist/IkSvgIcon/ik.index.es.js +69 -74
  59. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  60. package/dist/IkSvgIcon/style.css +1 -1
  61. package/dist/IkUploadFile/ik.index.es.js +761 -779
  62. package/dist/IkUploadFile/ik.index.umd.js +45 -45
  63. package/dist/IkUploadFile/style.css +1 -1
  64. package/dist/IkUploadImage/ik.index.es.js +218 -223
  65. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  66. package/dist/IkUploadImage/style.css +1 -1
  67. package/dist/index.es.js +7089 -7099
  68. package/dist/index.umd.js +89 -89
  69. package/dist/src/components/IkSvgIcon/index.d.ts +2 -6
  70. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -6
  71. package/dist/style.css +1 -1
  72. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as le, computed as Y, openBlock as A, createElementBlock as F, createElementVNode as S, inject as Xe, mergeModels as lt, useModel as $t, ref as Ke, reactive as kn, watch as Ui, nextTick as zi, resolveComponent as $e, Fragment as Ze, createBlock as we, createCommentVNode as he, createVNode as J, unref as V, withCtx as de, withModifiers as Qe, normalizeClass as ee, normalizeStyle as oe, createTextVNode as Ht, toDisplayString as Ge, h as wn, mergeProps as bn, createSlots as Tn, renderSlot as Ae, Teleport as En, Transition as Sn, renderList as li } from "vue";
1
+ import { defineComponent as le, computed as Y, openBlock as L, createElementBlock as N, createElementVNode as S, inject as Xe, mergeModels as at, useModel as Kt, ref as Ke, reactive as kn, watch as Ui, nextTick as zi, resolveComponent as $e, Fragment as Ze, createBlock as we, createCommentVNode as he, createVNode as Q, unref as j, withCtx as de, normalizeClass as ee, normalizeStyle as oe, createTextVNode as Bt, toDisplayString as Ge, h as wn, mergeProps as bn, createSlots as Tn, renderSlot as Ae, Teleport as En, Transition as Sn, renderList as ai, withModifiers as li } from "vue";
2
2
  import { buildUUID as Vi, ikColor as xn, paramType as Pn, ikFile as In } from "iking-utils-pro";
3
3
  import { useNamespace as An } from "element-plus";
4
- const Re = (a, o) => {
4
+ const De = (a, o) => {
5
5
  if (a.install = (r) => {
6
6
  for (const t of [a, ...Object.values(o ?? {})])
7
7
  r.component(t.name, t);
@@ -9,7 +9,7 @@ const Re = (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
+ }, Ht = (a, o) => {
13
13
  var i, n, s, l;
14
14
  const r = (i = a == null ? void 0 : a.response) != null && i.data ? ui((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) || ui(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
15
15
  sheet: "excel",
@@ -619,16 +619,16 @@ const Re = (a, o) => {
619
619
  }
620
620
  },
621
621
  setup(a) {
622
- const o = a, r = Y(() => o.file ? Ut(o.file, o.fields) : o.type);
623
- return (t, e) => r.value === "image" ? (A(), F("svg", Rn, Bn)) : r.value === "zip" ? (A(), F("svg", Hn, Vn)) : r.value === "ppt" ? (A(), F("svg", jn, Kn)) : r.value === "word" ? (A(), F("svg", $n, qn)) : r.value === "pdf" ? (A(), F("svg", Zn, er)) : r.value === "txt" ? (A(), F("svg", tr, rr)) : r.value === "audio" ? (A(), F("svg", sr, lr)) : r.value === "video" ? (A(), F("svg", ur, hr)) : r.value === "excel" ? (A(), F("svg", dr, mr)) : r.value === "exe" ? (A(), F("svg", yr, br)) : r.value === "json" ? (A(), F("svg", Tr, Pr)) : (A(), F("svg", Ir, Rr));
622
+ const o = a, r = Y(() => o.file ? Ht(o.file, o.fields) : o.type);
623
+ return (t, e) => r.value === "image" ? (L(), N("svg", Rn, Bn)) : r.value === "zip" ? (L(), N("svg", Hn, Vn)) : r.value === "ppt" ? (L(), N("svg", jn, Kn)) : r.value === "word" ? (L(), N("svg", $n, qn)) : r.value === "pdf" ? (L(), N("svg", Zn, er)) : r.value === "txt" ? (L(), N("svg", tr, rr)) : r.value === "audio" ? (L(), N("svg", sr, lr)) : r.value === "video" ? (L(), N("svg", ur, hr)) : r.value === "excel" ? (L(), N("svg", dr, mr)) : r.value === "exe" ? (L(), N("svg", yr, br)) : r.value === "json" ? (L(), N("svg", Tr, Pr)) : (L(), N("svg", Ir, Rr));
624
624
  }
625
- }), Fr = Re(Or);
625
+ }), Fr = De(Or);
626
626
  /*! Element Plus Icons Vue v2.3.1 */
627
627
  var Mr = /* @__PURE__ */ le({
628
628
  name: "Close",
629
629
  __name: "close",
630
630
  setup(a) {
631
- return (o, r) => (A(), F("svg", {
631
+ return (o, r) => (L(), N("svg", {
632
632
  xmlns: "http://www.w3.org/2000/svg",
633
633
  viewBox: "0 0 1024 1024"
634
634
  }, [
@@ -639,7 +639,7 @@ var Mr = /* @__PURE__ */ le({
639
639
  ]));
640
640
  }
641
641
  }), Nr = Mr;
642
- const _t = (a, o) => {
642
+ const yt = (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 _t = (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
- }, et = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Hr = (a) => {
655
+ }, Qe = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Hr = (a) => {
656
656
  const o = Xe("loadUrl"), r = Y(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = Xe("uploadUrl"), e = Y(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = Xe("token"), n = Y(() => a.token || (i == null ? void 0 : i.value)), s = Xe("onlyofficeConfig"), l = Y(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = Xe("userInfo"), c = Y(() => a.userInfo || (u == null ? void 0 : u.value));
657
657
  return {
658
658
  cLoadUrl: r,
@@ -663,7 +663,7 @@ const _t = (a, o) => {
663
663
  };
664
664
  }, ji = Hr, Ur = /* @__PURE__ */ le({
665
665
  __name: "IkPreviewFileDialog",
666
- props: /* @__PURE__ */ lt({
666
+ props: /* @__PURE__ */ at({
667
667
  file: {
668
668
  type: Object,
669
669
  default: () => []
@@ -698,7 +698,7 @@ const _t = (a, o) => {
698
698
  }),
699
699
  emits: ["update:show"],
700
700
  setup(a) {
701
- const o = a, r = $t(a, "show"), t = Y(() => ({
701
+ const o = a, r = Kt(a, "show"), t = Y(() => ({
702
702
  name: "name",
703
703
  url: "url",
704
704
  suffix: "suffix",
@@ -715,11 +715,11 @@ const _t = (a, o) => {
715
715
  if (i.value = {
716
716
  ...u,
717
717
  name: u[t.value.name],
718
- url: et(o.loadUrl, b)
719
- }, u && Ut(u, t.value) === "image") {
718
+ url: Qe(o.loadUrl, b)
719
+ }, u && Ht(u, t.value) === "image") {
720
720
  n.image = !0;
721
721
  return;
722
- } else if (u && Ut(u, t.value) === "video") {
722
+ } else if (u && Ht(u, t.value) === "video") {
723
723
  n.video = !0;
724
724
  return;
725
725
  } else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(w)) {
@@ -737,7 +737,7 @@ const _t = (a, o) => {
737
737
  document: {
738
738
  key: Vi(),
739
739
  title: B,
740
- url: et(o.loadUrl, b),
740
+ url: Qe(o.loadUrl, b),
741
741
  fileType: w,
742
742
  ...((_ = o.onlyOfficeConfig) == null ? void 0 : _.document) || {}
743
743
  },
@@ -760,11 +760,11 @@ const _t = (a, o) => {
760
760
  return (u, c) => {
761
761
  var d, g, p;
762
762
  const h = $e("el-image-viewer");
763
- return r.value ? (A(), F(
763
+ return r.value ? (L(), N(
764
764
  Ze,
765
765
  { key: 0 },
766
766
  [
767
- (d = i.value) != null && d.url && n.image ? (A(), we(h, {
767
+ (d = i.value) != null && d.url && n.image ? (L(), we(h, {
768
768
  key: 0,
769
769
  onClose: c[0] || (c[0] = (m) => l()),
770
770
  ref: "previewImgRef",
@@ -773,12 +773,12 @@ const _t = (a, o) => {
773
773
  }, null, 8, ["url-list"])) : he("v-if", !0),
774
774
  he(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
775
775
  he(" 文档类 "),
776
- J(V(Pa), {
776
+ Q(j(xa), {
777
777
  modelValue: n.video,
778
778
  "onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
779
779
  url: (p = i.value) == null ? void 0 : p.url
780
780
  }, null, 8, ["modelValue", "url"]),
781
- J(V(is), {
781
+ Q(j(ts), {
782
782
  modelValue: n.office,
783
783
  "onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
784
784
  draggable: "",
@@ -796,7 +796,7 @@ const _t = (a, o) => {
796
796
  default: de(() => {
797
797
  var m;
798
798
  return [
799
- J(V(fs), {
799
+ Q(j(cs), {
800
800
  "config-options": e.value,
801
801
  "document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
802
802
  }, null, 8, ["config-options", "document-server-url"])
@@ -812,7 +812,7 @@ const _t = (a, o) => {
812
812
  };
813
813
  }
814
814
  });
815
- const zr = Re(Ur), Vr = {
815
+ const zr = De(Ur), Vr = {
816
816
  key: 0,
817
817
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
818
818
  }, jr = {
@@ -849,89 +849,86 @@ const zr = Re(Ur), Vr = {
849
849
  warning: { type: Boolean },
850
850
  width: {}
851
851
  },
852
- emits: ["click"],
853
- setup(a, { emit: o }) {
854
- const r = a, t = Y(() => r), e = Y(() => {
855
- const { name: l } = t.value;
856
- 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";
857
- }), i = Y(() => {
858
- const l = [];
859
- if (t.value.flip)
860
- switch (t.value.flip) {
852
+ setup(a) {
853
+ const o = a, r = Y(() => o), t = Y(() => {
854
+ const { name: i } = r.value;
855
+ 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";
856
+ }), e = Y(() => {
857
+ const i = [];
858
+ if (r.value.flip)
859
+ switch (r.value.flip) {
861
860
  case "horizontal":
862
- l.push("rotateY(180deg)");
861
+ i.push("rotateY(180deg)");
863
862
  break;
864
863
  case "vertical":
865
- l.push("rotateX(180deg)");
864
+ i.push("rotateX(180deg)");
866
865
  break;
867
866
  case "both":
868
- l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
867
+ i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
869
868
  break;
870
869
  }
871
- t.value.rotate && l.push(`rotate(${t.value.rotate % 360}deg)`);
872
- const u = {
873
- ...t.value.color && { color: t.value.color },
874
- ...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
875
- ...l.length && { transform: l.join(" ") },
876
- padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
877
- ...t.value.color && e.value !== "iksig" ? {
878
- "--ik-color-icon-dark": t.value.color,
879
- "--ik-color-icon-light": t.value.colorLight || xn.setOpacity(t.value.color, t.value.opacity)
870
+ r.value.rotate && i.push(`rotate(${r.value.rotate % 360}deg)`);
871
+ const n = {
872
+ pointerEvents: r.value.disabled ? "none" : "auto",
873
+ ...r.value.color && { color: r.value.color },
874
+ ...r.value.size && { fontSize: typeof r.value.size == "number" ? `${r.value.size}px` : r.value.size },
875
+ ...i.length && { transform: i.join(" ") },
876
+ padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
877
+ ...r.value.color && t.value !== "iksig" ? {
878
+ "--ik-color-icon-dark": r.value.color,
879
+ "--ik-color-icon-light": r.value.colorLight || xn.setOpacity(r.value.color, r.value.opacity)
880
880
  } : {}
881
881
  };
882
- return t.value.width && (u.width = u.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), u;
883
- }), n = o, s = (l) => {
884
- t.value.disabled || n("click", l);
885
- };
886
- return (l, u) => {
887
- const c = $e("el-tooltip"), h = $e("el-button");
888
- return t.value.tableIconType === "icon" || !t.value.tableIconType ? (A(), F("span", Vr, [
889
- t.value.notip || !t.value.title ? (A(), F(
882
+ return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
883
+ });
884
+ return (i, n) => {
885
+ const s = $e("el-tooltip"), l = $e("el-button");
886
+ return r.value.tableIconType === "icon" || !r.value.tableIconType ? (L(), N("span", Vr, [
887
+ r.value.notip || !r.value.title ? (L(), N(
890
888
  "i",
891
889
  {
892
890
  key: 0,
893
- onClick: Qe(s, ["stop"]),
894
891
  class: ee(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
895
- [l.name]: e.value === "unocss",
896
- "show-bg": t.value.showBg || t.value.bg,
897
- default: t.value.size === "default",
898
- small: t.value.size === "small",
899
- big: t.value.size === "big",
900
- warning: t.value.warning || t.value.type === "warning",
901
- primary: t.value.primary || t.value.type === "primary",
902
- success: l.success || t.value.type === "success",
903
- error: t.value.error || t.value.type === "error",
904
- active: t.value.active,
905
- disabled: t.value.disabled
892
+ [i.name]: t.value === "unocss",
893
+ "show-bg": r.value.showBg || r.value.bg,
894
+ default: r.value.size === "default",
895
+ small: r.value.size === "small",
896
+ big: r.value.size === "big",
897
+ warning: r.value.warning || r.value.type === "warning",
898
+ primary: r.value.primary || r.value.type === "primary",
899
+ success: i.success || r.value.type === "success",
900
+ error: r.value.error || r.value.type === "error",
901
+ active: r.value.active,
902
+ disabled: r.value.disabled
906
903
  }]),
907
- style: oe(i.value)
904
+ style: oe(e.value)
908
905
  },
909
906
  [
910
907
  he(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
911
- e.value === "iksig" ? (A(), F(
908
+ t.value === "iksig" ? (L(), N(
912
909
  "i",
913
910
  {
914
911
  key: 0,
915
- class: ee(`iksig ${t.value.name}`),
916
- style: oe(i.value)
912
+ class: ee(`iksig ${r.value.name}`),
913
+ style: oe(e.value)
917
914
  },
918
915
  null,
919
916
  6
920
917
  /* CLASS, STYLE */
921
- )) : e.value === "svg" ? (A(), F("svg", jr, [
918
+ )) : t.value === "svg" ? (L(), N("svg", jr, [
922
919
  S("use", {
923
- "xlink:href": `#${t.value.name}`
920
+ "xlink:href": `#${r.value.name}`
924
921
  }, null, 8, Wr)
925
- ])) : e.value === "img" ? (A(), F("img", {
922
+ ])) : t.value === "img" ? (L(), N("img", {
926
923
  key: 2,
927
- src: t.value.name,
924
+ src: r.value.name,
928
925
  class: "h-[1em] w-[1em]"
929
- }, null, 8, Gr)) : (A(), F(
926
+ }, null, 8, Gr)) : (L(), N(
930
927
  "i",
931
928
  {
932
929
  key: 3,
933
- class: ee(t.value.name),
934
- style: oe(i.value)
930
+ class: ee(r.value.name),
931
+ style: oe(e.value)
935
932
  },
936
933
  null,
937
934
  6
@@ -940,9 +937,9 @@ const zr = Re(Ur), Vr = {
940
937
  ],
941
938
  6
942
939
  /* CLASS, STYLE */
943
- )) : (A(), we(c, {
940
+ )) : (L(), we(s, {
944
941
  key: 1,
945
- content: t.value.title,
942
+ content: r.value.title,
946
943
  placement: "top"
947
944
  }, {
948
945
  default: de(() => [
@@ -950,45 +947,44 @@ const zr = Re(Ur), Vr = {
950
947
  "i",
951
948
  {
952
949
  class: ee(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
953
- [l.name]: e.value === "unocss",
954
- "show-bg": t.value.showBg || t.value.bg,
955
- default: t.value.size === "default",
956
- small: t.value.size === "small",
957
- big: t.value.size === "big",
958
- warning: t.value.warning || t.value.type === "warning",
959
- primary: l.primary || t.value.type === "primary",
960
- success: l.success || t.value.type === "success",
961
- error: t.value.error || t.value.type === "error",
962
- active: t.value.active
950
+ [i.name]: t.value === "unocss",
951
+ "show-bg": r.value.showBg || r.value.bg,
952
+ default: r.value.size === "default",
953
+ small: r.value.size === "small",
954
+ big: r.value.size === "big",
955
+ warning: r.value.warning || r.value.type === "warning",
956
+ primary: i.primary || r.value.type === "primary",
957
+ success: i.success || r.value.type === "success",
958
+ error: r.value.error || r.value.type === "error",
959
+ active: r.value.active
963
960
  }]),
964
- onClick: Qe(s, ["stop"]),
965
- style: oe(i.value)
961
+ style: oe(e.value)
966
962
  },
967
963
  [
968
- e.value === "iksig" ? (A(), F(
964
+ t.value === "iksig" ? (L(), N(
969
965
  "i",
970
966
  {
971
967
  key: 0,
972
- class: ee(`iksig ${t.value.name}`),
973
- style: oe(i.value)
968
+ class: ee(`iksig ${r.value.name}`),
969
+ style: oe(e.value)
974
970
  },
975
971
  null,
976
972
  6
977
973
  /* CLASS, STYLE */
978
- )) : e.value === "svg" ? (A(), F("svg", Kr, [
974
+ )) : t.value === "svg" ? (L(), N("svg", Kr, [
979
975
  S("use", {
980
- "xlink:href": `#${t.value.name}`
976
+ "xlink:href": `#${r.value.name}`
981
977
  }, null, 8, $r)
982
- ])) : e.value === "img" ? (A(), F("img", {
978
+ ])) : t.value === "img" ? (L(), N("img", {
983
979
  key: 2,
984
- src: t.value.name,
980
+ src: r.value.name,
985
981
  class: "h-[1em] w-[1em]"
986
- }, null, 8, Yr)) : (A(), F(
982
+ }, null, 8, Yr)) : (L(), N(
987
983
  "i",
988
984
  {
989
985
  key: 3,
990
- class: ee(t.value.name),
991
- style: oe(i.value)
986
+ class: ee(r.value.name),
987
+ style: oe(e.value)
992
988
  },
993
989
  null,
994
990
  6
@@ -1002,14 +998,13 @@ const zr = Re(Ur), Vr = {
1002
998
  _: 1
1003
999
  /* STABLE */
1004
1000
  }, 8, ["content"]))
1005
- ])) : (A(), we(h, {
1001
+ ])) : (L(), we(l, {
1006
1002
  key: 1,
1007
- type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
1008
- onClick: Qe(s, ["stop"])
1003
+ type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
1009
1004
  }, {
1010
1005
  default: de(() => [
1011
- Ht(
1012
- Ge(t.value.title),
1006
+ Bt(
1007
+ Ge(r.value.title),
1013
1008
  1
1014
1009
  /* TEXT */
1015
1010
  )
@@ -1020,10 +1015,7 @@ const zr = Re(Ur), Vr = {
1020
1015
  };
1021
1016
  }
1022
1017
  });
1023
- const qr = /* @__PURE__ */ _t(Xr, [["__scopeId", "data-v-4a1004b9"]]), Le = Re(qr), Zr = {
1024
- key: 0,
1025
- class: "exit-main-page-maximize"
1026
- }, Jr = /* @__PURE__ */ le({
1018
+ const qr = /* @__PURE__ */ yt(Xr, [["__scopeId", "data-v-52806adf"]]), je = De(qr), Zr = /* @__PURE__ */ le({
1027
1019
  __name: "CloseIcon",
1028
1020
  props: {
1029
1021
  showBg: {
@@ -1036,27 +1028,17 @@ const qr = /* @__PURE__ */ _t(Xr, [["__scopeId", "data-v-4a1004b9"]]), Le = Re(q
1036
1028
  }
1037
1029
  },
1038
1030
  setup(a) {
1039
- return (o, r) => (A(), F("div", null, [
1040
- a.showBg && a.fullscreen ? (A(), F("div", Zr, [
1041
- J(V(Le), {
1042
- name: "iksvg_guanbidanchuang",
1043
- title: "关闭",
1044
- size: 20,
1045
- error: ""
1046
- })
1047
- ])) : (A(), we(V(Le), {
1048
- key: 1,
1049
- error: "",
1050
- name: "iksvg_guanbidanchuang",
1051
- title: "关闭",
1052
- size: 20
1053
- }))
1054
- ]));
1031
+ return (o, r) => (L(), we(j(je), {
1032
+ error: "",
1033
+ name: "iksvg_guanbidanchuang",
1034
+ title: "关闭",
1035
+ size: 20
1036
+ }));
1055
1037
  }
1056
1038
  });
1057
- const Qr = /* @__PURE__ */ _t(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { class: "base-header" }, ts = /* @__PURE__ */ le({
1039
+ const Jr = /* @__PURE__ */ yt(Zr, [["__scopeId", "data-v-e27fb022"]]), Qr = { class: "base-header" }, es = /* @__PURE__ */ le({
1058
1040
  __name: "IkBaseDialog",
1059
- props: /* @__PURE__ */ lt({
1041
+ props: /* @__PURE__ */ at({
1060
1042
  title: { default: "" },
1061
1043
  cancelText: { default: "取消" },
1062
1044
  confirmText: { default: "确认" },
@@ -1075,11 +1057,11 @@ const Qr = /* @__PURE__ */ _t(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
1075
1057
  }),
1076
1058
  emits: ["update:modelValue"],
1077
1059
  setup(a) {
1078
- const o = a, r = $t(a, "modelValue"), t = Ke(o.fullscreen), e = () => {
1060
+ const o = a, r = Kt(a, "modelValue"), t = Ke(o.fullscreen), e = () => {
1079
1061
  t.value = !t.value;
1080
1062
  }, i = le({
1081
1063
  setup() {
1082
- return () => wn(Qr, {
1064
+ return () => wn(Jr, {
1083
1065
  showBg: o.showCloseBg,
1084
1066
  fullscreen: o.fullscreen
1085
1067
  });
@@ -1087,18 +1069,18 @@ const Qr = /* @__PURE__ */ _t(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
1087
1069
  });
1088
1070
  return (n, s) => {
1089
1071
  const l = $e("el-dialog");
1090
- return A(), we(l, bn({
1072
+ return L(), we(l, bn({
1091
1073
  modelValue: r.value,
1092
1074
  "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
1093
1075
  }, n.$attrs, {
1094
- "close-icon": V(i),
1076
+ "close-icon": j(i),
1095
1077
  class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
1096
1078
  fullscreen: t.value,
1097
1079
  "modal-class": "baseDialog"
1098
1080
  }), Tn({
1099
1081
  icon: de(() => [
1100
1082
  Ae(n.$slots, "title", {}, () => [
1101
- Ht(
1083
+ Bt(
1102
1084
  Ge(n.title),
1103
1085
  1
1104
1086
  /* TEXT */
@@ -1106,16 +1088,16 @@ const Qr = /* @__PURE__ */ _t(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
1106
1088
  ])
1107
1089
  ]),
1108
1090
  header: de(() => [
1109
- S("div", es, [
1091
+ S("div", Qr, [
1110
1092
  Ae(n.$slots, "header", {}, () => [
1111
- Ht(
1093
+ Bt(
1112
1094
  Ge(n.title),
1113
1095
  1
1114
1096
  /* TEXT */
1115
1097
  )
1116
1098
  ])
1117
1099
  ]),
1118
- n.$attrs.showClose ? (A(), we(V(Le), {
1100
+ n.$attrs.showClose ? (L(), we(j(je), {
1119
1101
  key: 0,
1120
1102
  onClick: e,
1121
1103
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -1140,12 +1122,12 @@ const Qr = /* @__PURE__ */ _t(Jr, [["__scopeId", "data-v-79f49df8"]]), es = { cl
1140
1122
  };
1141
1123
  }
1142
1124
  });
1143
- const is = Re(ts);
1144
- var ns = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1145
- function Yt(a) {
1125
+ const ts = De(es);
1126
+ var is = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1127
+ function $t(a) {
1146
1128
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
1147
1129
  }
1148
- function rs(a, o, r, t) {
1130
+ function ns(a, o, r, t) {
1149
1131
  function e(i) {
1150
1132
  return i instanceof r ? i : new r(function(n) {
1151
1133
  n(i);
@@ -1172,7 +1154,7 @@ function rs(a, o, r, t) {
1172
1154
  u((t = t.apply(a, o || [])).next());
1173
1155
  });
1174
1156
  }
1175
- function ss(a, o) {
1157
+ function rs(a, o) {
1176
1158
  var r = { label: 0, sent: function() {
1177
1159
  if (i[0] & 1)
1178
1160
  throw i[1];
@@ -1237,9 +1219,9 @@ function ss(a, o) {
1237
1219
  return { value: u[0] ? u[1] : void 0, done: !0 };
1238
1220
  }
1239
1221
  }
1240
- var os = function(a, o) {
1241
- return rs(void 0, void 0, void 0, function() {
1242
- return ss(this, function(r) {
1222
+ var ss = function(a, o) {
1223
+ return ns(void 0, void 0, void 0, function() {
1224
+ return rs(this, function(r) {
1243
1225
  return [2, new Promise(function(t, e) {
1244
1226
  try {
1245
1227
  if (window.DocsAPI)
@@ -1272,7 +1254,7 @@ var os = function(a, o) {
1272
1254
  }, e.onerror = function(i) {
1273
1255
  e.removeAttribute("loading"), t(i);
1274
1256
  }, e.setAttribute("loading", ""), e;
1275
- }, Xt = le({
1257
+ }, Yt = le({
1276
1258
  name: "DocumentEditor",
1277
1259
  props: {
1278
1260
  id: {
@@ -1327,7 +1309,7 @@ var os = function(a, o) {
1327
1309
  var a = this, o = this.documentServerUrl;
1328
1310
  o.endsWith("/") || (o += "/");
1329
1311
  var r = "".concat(o, "web-apps/apps/api/documents/api.js");
1330
- os(r, "onlyoffice-api-script").then(function() {
1312
+ ss(r, "onlyoffice-api-script").then(function() {
1331
1313
  return a.onLoad();
1332
1314
  }).catch(function() {
1333
1315
  a.onError(-2);
@@ -1441,13 +1423,13 @@ var os = function(a, o) {
1441
1423
  }
1442
1424
  }
1443
1425
  });
1444
- const as = ["id"];
1445
- function ls(a, o, r, t, e, i) {
1446
- return A(), F("div", { id: a.id }, null, 8, as);
1426
+ const os = ["id"];
1427
+ function as(a, o, r, t, e, i) {
1428
+ return L(), N("div", { id: a.id }, null, 8, os);
1447
1429
  }
1448
- Xt.render = ls;
1449
- Xt.__file = "src/components/DocumentEditor.vue";
1450
- const us = /* @__PURE__ */ le({
1430
+ Yt.render = as;
1431
+ Yt.__file = "src/components/DocumentEditor.vue";
1432
+ const ls = /* @__PURE__ */ le({
1451
1433
  __name: "IkOnlyOffice",
1452
1434
  props: {
1453
1435
  // 文件服务器的服务的地址
@@ -1476,13 +1458,13 @@ const us = /* @__PURE__ */ le({
1476
1458
  }), t = () => {
1477
1459
  console.info("文档加载完成", o.configOptions);
1478
1460
  };
1479
- return (e, i) => (A(), F(
1461
+ return (e, i) => (L(), N(
1480
1462
  "div",
1481
1463
  {
1482
1464
  style: oe({ height: o.officeHeight })
1483
1465
  },
1484
1466
  [
1485
- J(V(Xt), {
1467
+ Q(j(Yt), {
1486
1468
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1487
1469
  ref: "editorRef",
1488
1470
  "document-server-url": a.documentServerUrl,
@@ -1495,7 +1477,7 @@ const us = /* @__PURE__ */ le({
1495
1477
  ));
1496
1478
  }
1497
1479
  });
1498
- const cs = /* @__PURE__ */ _t(us, [["__scopeId", "data-v-98d51ef9"]]), fs = Re(cs);
1480
+ const us = /* @__PURE__ */ yt(ls, [["__scopeId", "data-v-98d51ef9"]]), cs = De(us);
1499
1481
  function fi(a, o) {
1500
1482
  var r = Object.keys(a);
1501
1483
  if (Object.getOwnPropertySymbols) {
@@ -1559,19 +1541,19 @@ function x(a, o) {
1559
1541
  }
1560
1542
  }), Object.defineProperty(a, "prototype", {
1561
1543
  writable: !1
1562
- }), o && zt(a, o);
1544
+ }), o && Ut(a, o);
1563
1545
  }
1564
1546
  function I(a) {
1565
1547
  return I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
1566
1548
  return r.__proto__ || Object.getPrototypeOf(r);
1567
1549
  }, I(a);
1568
1550
  }
1569
- function zt(a, o) {
1570
- return zt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
1551
+ function Ut(a, o) {
1552
+ return Ut = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
1571
1553
  return t.__proto__ = e, t;
1572
- }, zt(a, o);
1554
+ }, Ut(a, o);
1573
1555
  }
1574
- function hs() {
1556
+ function fs() {
1575
1557
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1576
1558
  return !1;
1577
1559
  if (typeof Proxy == "function")
@@ -1588,7 +1570,7 @@ function v(a) {
1588
1570
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1589
1571
  return a;
1590
1572
  }
1591
- function qt(a, o) {
1573
+ function Xt(a, o) {
1592
1574
  if (o && (typeof o == "object" || typeof o == "function"))
1593
1575
  return o;
1594
1576
  if (o !== void 0)
@@ -1596,7 +1578,7 @@ function qt(a, o) {
1596
1578
  return v(a);
1597
1579
  }
1598
1580
  function P(a) {
1599
- var o = hs();
1581
+ var o = fs();
1600
1582
  return function() {
1601
1583
  var t = I(a), e;
1602
1584
  if (o) {
@@ -1604,56 +1586,56 @@ function P(a) {
1604
1586
  e = Reflect.construct(t, arguments, i);
1605
1587
  } else
1606
1588
  e = t.apply(this, arguments);
1607
- return qt(this, e);
1589
+ return Xt(this, e);
1608
1590
  };
1609
1591
  }
1610
- function ds(a, o) {
1592
+ function hs(a, o) {
1611
1593
  for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = I(a), a !== null); )
1612
1594
  ;
1613
1595
  return a;
1614
1596
  }
1615
- function L() {
1616
- return typeof Reflect < "u" && Reflect.get ? L = Reflect.get.bind() : L = function(o, r, t) {
1617
- var e = ds(o, r);
1597
+ function A() {
1598
+ return typeof Reflect < "u" && Reflect.get ? A = Reflect.get.bind() : A = function(o, r, t) {
1599
+ var e = hs(o, r);
1618
1600
  if (e) {
1619
1601
  var i = Object.getOwnPropertyDescriptor(e, r);
1620
1602
  return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
1621
1603
  }
1622
- }, L.apply(this, arguments);
1604
+ }, A.apply(this, arguments);
1623
1605
  }
1624
1606
  function ae(a) {
1625
- return gs(a) || ps(a) || vs(a) || ms();
1607
+ return ds(a) || gs(a) || ps(a) || vs();
1626
1608
  }
1627
- function gs(a) {
1609
+ function ds(a) {
1628
1610
  if (Array.isArray(a))
1629
- return Vt(a);
1611
+ return zt(a);
1630
1612
  }
1631
- function ps(a) {
1613
+ function gs(a) {
1632
1614
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
1633
1615
  return Array.from(a);
1634
1616
  }
1635
- function vs(a, o) {
1617
+ function ps(a, o) {
1636
1618
  if (a) {
1637
1619
  if (typeof a == "string")
1638
- return Vt(a, o);
1620
+ return zt(a, o);
1639
1621
  var r = Object.prototype.toString.call(a).slice(8, -1);
1640
1622
  if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
1641
1623
  return Array.from(a);
1642
1624
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
1643
- return Vt(a, o);
1625
+ return zt(a, o);
1644
1626
  }
1645
1627
  }
1646
- function Vt(a, o) {
1628
+ function zt(a, o) {
1647
1629
  (o == null || o > a.length) && (o = a.length);
1648
1630
  for (var r = 0, t = new Array(o); r < o; r++)
1649
1631
  t[r] = a[r];
1650
1632
  return t;
1651
1633
  }
1652
- function ms() {
1634
+ function vs() {
1653
1635
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1654
1636
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1655
1637
  }
1656
- function ys(a, o) {
1638
+ function ms(a, o) {
1657
1639
  if (typeof a != "object" || a === null)
1658
1640
  return a;
1659
1641
  var r = a[Symbol.toPrimitive];
@@ -1666,7 +1648,7 @@ function ys(a, o) {
1666
1648
  return (o === "string" ? String : Number)(a);
1667
1649
  }
1668
1650
  function Wi(a) {
1669
- var o = ys(a, "string");
1651
+ var o = ms(a, "string");
1670
1652
  return typeof o == "symbol" ? o : String(o);
1671
1653
  }
1672
1654
  var Gi = { exports: {} };
@@ -1733,7 +1715,7 @@ var Gi = { exports: {} };
1733
1715
  b[w - 1] = arguments[w];
1734
1716
  _.fn.apply(_.context, b);
1735
1717
  } else {
1736
- var B = _.length, M;
1718
+ var B = _.length, F;
1737
1719
  for (w = 0; w < B; w++)
1738
1720
  switch (_[w].once && this.removeListener(u, _[w].fn, void 0, !0), C) {
1739
1721
  case 1:
@@ -1750,8 +1732,8 @@ var Gi = { exports: {} };
1750
1732
  break;
1751
1733
  default:
1752
1734
  if (!b)
1753
- for (M = 1, b = new Array(C - 1); M < C; M++)
1754
- b[M - 1] = arguments[M];
1735
+ for (F = 1, b = new Array(C - 1); F < C; F++)
1736
+ b[F - 1] = arguments[F];
1755
1737
  _[w].fn.apply(_[w].context, b);
1756
1738
  }
1757
1739
  }
@@ -1781,38 +1763,38 @@ var Gi = { exports: {} };
1781
1763
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
1782
1764
  })(Gi);
1783
1765
  var Ki = Gi.exports;
1784
- const $i = /* @__PURE__ */ Yt(Ki);
1785
- var _s = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Et = {
1766
+ const $i = /* @__PURE__ */ $t(Ki);
1767
+ var ys = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Tt = {
1786
1768
  info: "color: #525252; background-color: #90ee90;",
1787
1769
  error: "color: #525252; background-color: red;",
1788
1770
  warn: "color: #525252; background-color: yellow; "
1789
- }, St = "%c[xgplayer]", O = {
1771
+ }, Et = "%c[xgplayer]", O = {
1790
1772
  config: {
1791
- debug: _s ? 3 : 0
1773
+ debug: ys ? 3 : 0
1792
1774
  },
1793
1775
  logInfo: function(o) {
1794
1776
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
1795
1777
  e[i - 1] = arguments[i];
1796
- this.config.debug >= 3 && (r = console).log.apply(r, [St, Et.info, o].concat(e));
1778
+ this.config.debug >= 3 && (r = console).log.apply(r, [Et, Tt.info, o].concat(e));
1797
1779
  },
1798
1780
  logWarn: function(o) {
1799
1781
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
1800
1782
  e[i - 1] = arguments[i];
1801
- this.config.debug >= 1 && (r = console).warn.apply(r, [St, Et.warn, o].concat(e));
1783
+ this.config.debug >= 1 && (r = console).warn.apply(r, [Et, Tt.warn, o].concat(e));
1802
1784
  },
1803
1785
  logError: function(o) {
1804
1786
  var r;
1805
1787
  if (!(this.config.debug < 1)) {
1806
1788
  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++)
1807
1789
  i[n - 1] = arguments[n];
1808
- (r = console)[t].apply(r, [St, Et.error, o].concat(i));
1790
+ (r = console)[t].apply(r, [Et, Tt.error, o].concat(i));
1809
1791
  }
1810
1792
  }
1811
1793
  };
1812
- function Cs(a) {
1794
+ function _s(a) {
1813
1795
  a.logInfo = O.logInfo.bind(a), a.logWarn = O.logWarn.bind(a), a.logError = O.logError.bind(a);
1814
1796
  }
1815
- var ks = /* @__PURE__ */ function() {
1797
+ var Cs = /* @__PURE__ */ function() {
1816
1798
  function a(o) {
1817
1799
  T(this, a), this.bufferedList = o;
1818
1800
  }
@@ -2058,7 +2040,7 @@ f.setStyleFromCsstext = function(a, o) {
2058
2040
  a.style[t] = o[t];
2059
2041
  });
2060
2042
  };
2061
- function ws(a, o) {
2043
+ function ks(a, o) {
2062
2044
  for (var r = 0, t = o.length; r < t; r++)
2063
2045
  if (a.indexOf(o[r]) > -1)
2064
2046
  return !0;
@@ -2072,7 +2054,7 @@ f.filterStyleFromText = function(a) {
2072
2054
  return t.map(function(n) {
2073
2055
  if (n) {
2074
2056
  var s = n.split(":");
2075
- s.length > 1 && (ws(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
2057
+ s.length > 1 && (ks(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
2076
2058
  }
2077
2059
  }), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
2078
2060
  a.style[n] = i[n];
@@ -2137,7 +2119,7 @@ f.getBuffered2 = function(a) {
2137
2119
  }
2138
2120
  else
2139
2121
  e = r;
2140
- return new ks(e);
2122
+ return new Cs(e);
2141
2123
  };
2142
2124
  f.getEventPos = function(a) {
2143
2125
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
@@ -2261,17 +2243,17 @@ function Yi(a) {
2261
2243
  var o = X(a);
2262
2244
  return a !== null && (o === "object" || o === "function");
2263
2245
  }
2264
- function bs(a, o, r) {
2246
+ function ws(a, o, r) {
2265
2247
  var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
2266
2248
  if (typeof a != "function")
2267
2249
  throw new TypeError("Expected a function");
2268
2250
  o = +o || 0, Yi(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
2269
2251
  function p(H) {
2270
- var Q = t, re = e;
2271
- return t = e = void 0, u = H, n = a.apply(re, Q), n;
2252
+ var J = t, re = e;
2253
+ return t = e = void 0, u = H, n = a.apply(re, J), n;
2272
2254
  }
2273
- function m(H, Q) {
2274
- return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H, Q);
2255
+ function m(H, J) {
2256
+ return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H, J);
2275
2257
  }
2276
2258
  function _(H) {
2277
2259
  if (g)
@@ -2282,35 +2264,35 @@ function bs(a, o, r) {
2282
2264
  return u = H, s = m(B, o), c ? p(H) : n;
2283
2265
  }
2284
2266
  function b(H) {
2285
- var Q = H - l, re = H - u, se = o - Q;
2267
+ var J = H - l, re = H - u, se = o - J;
2286
2268
  return h ? Math.min(se, i - re) : se;
2287
2269
  }
2288
2270
  function w(H) {
2289
- var Q = H - l, re = H - u;
2290
- return l === void 0 || Q >= o || Q < 0 || h && re >= i;
2271
+ var J = H - l, re = H - u;
2272
+ return l === void 0 || J >= o || J < 0 || h && re >= i;
2291
2273
  }
2292
2274
  function B() {
2293
2275
  var H = Date.now();
2294
2276
  if (w(H))
2295
- return M(H);
2277
+ return F(H);
2296
2278
  s = m(B, b(H));
2297
2279
  }
2298
- function M(H) {
2280
+ function F(H) {
2299
2281
  return s = void 0, d && t ? p(H) : (t = e = void 0, n);
2300
2282
  }
2301
2283
  function z() {
2302
2284
  s !== void 0 && _(s), u = 0, t = l = e = s = void 0;
2303
2285
  }
2304
2286
  function D() {
2305
- return s === void 0 ? n : M(Date.now());
2287
+ return s === void 0 ? n : F(Date.now());
2306
2288
  }
2307
2289
  function q() {
2308
2290
  return s !== void 0;
2309
2291
  }
2310
2292
  function G() {
2311
- for (var H = Date.now(), Q = w(H), re = arguments.length, se = new Array(re), xe = 0; xe < re; xe++)
2293
+ for (var H = Date.now(), J = w(H), re = arguments.length, se = new Array(re), xe = 0; xe < re; xe++)
2312
2294
  se[xe] = arguments[xe];
2313
- if (t = se, e = this, l = H, Q) {
2295
+ if (t = se, e = this, l = H, J) {
2314
2296
  if (s === void 0)
2315
2297
  return C(l);
2316
2298
  if (h)
@@ -2320,21 +2302,21 @@ function bs(a, o, r) {
2320
2302
  }
2321
2303
  return G.cancel = z, G.flush = D, G.pending = q, G;
2322
2304
  }
2323
- function Ts(a, o, r) {
2305
+ function bs(a, o, r) {
2324
2306
  var t = !0, e = !0;
2325
2307
  if (typeof a != "function")
2326
2308
  throw new TypeError("Expected a function");
2327
- return Yi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), bs(a, o, {
2309
+ return Yi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), ws(a, o, {
2328
2310
  leading: t,
2329
2311
  trailing: e,
2330
2312
  maxWait: o
2331
2313
  });
2332
2314
  }
2333
- function Es() {
2315
+ function Ts() {
2334
2316
  var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
2335
2317
  return a === "zh-cn" && (a = "zh"), a;
2336
2318
  }
2337
- function Ss(a, o, r) {
2319
+ function Es(a, o, r) {
2338
2320
  if (a) {
2339
2321
  var t = a.getAttribute(r);
2340
2322
  return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
@@ -2343,7 +2325,7 @@ function Ss(a, o, r) {
2343
2325
  var di = {
2344
2326
  android: /(Android)\s([\d.]+)/,
2345
2327
  ios: /(Version)\/([\d.]+)/
2346
- }, xs = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], R = {
2328
+ }, Ss = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], R = {
2347
2329
  get device() {
2348
2330
  var a = R.os;
2349
2331
  return a.isPc ? "pc" : "mobile";
@@ -2406,7 +2388,7 @@ var di = {
2406
2388
  if (this.supportResult)
2407
2389
  return this.supportResult;
2408
2390
  var r = document.createElement("video");
2409
- return typeof r.canPlayType == "function" && xs.map(function(t) {
2391
+ return typeof r.canPlayType == "function" && Ss.map(function(t) {
2410
2392
  r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
2411
2393
  }), this.supportResult = o, r = null, o;
2412
2394
  },
@@ -2445,7 +2427,7 @@ var di = {
2445
2427
  return Promise.resolve(r);
2446
2428
  }
2447
2429
  }
2448
- }, jt = "3.0.18", gi = {
2430
+ }, Vt = "3.0.18", gi = {
2449
2431
  1: "media",
2450
2432
  2: "media",
2451
2433
  3: "media",
@@ -2459,7 +2441,7 @@ var di = {
2459
2441
  4: 5104,
2460
2442
  5: 5105,
2461
2443
  6: 5106
2462
- }, ut = /* @__PURE__ */ E(
2444
+ }, lt = /* @__PURE__ */ E(
2463
2445
  function a(o) {
2464
2446
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
2465
2447
  errorType: "",
@@ -2475,7 +2457,7 @@ var di = {
2475
2457
  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, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
2476
2458
  pi[g] && (g = pi[g]);
2477
2459
  var p = {
2478
- playerVersion: jt,
2460
+ playerVersion: Vt,
2479
2461
  currentTime: n,
2480
2462
  duration: i,
2481
2463
  ended: s,
@@ -2494,85 +2476,85 @@ var di = {
2494
2476
  }), p;
2495
2477
  } else if (arguments.length > 1) {
2496
2478
  for (var m = {
2497
- playerVersion: jt,
2479
+ playerVersion: Vt,
2498
2480
  domain: document.domain
2499
2481
  }, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], C = 0; C < arguments.length; C++)
2500
2482
  m[_[C]] = arguments[C];
2501
2483
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
2502
2484
  }
2503
2485
  }
2504
- ), ne = "play", Zt = "playing", Oe = "ended", Ye = "pause", it = "error", Ct = "seeking", me = "seeked", ie = "timeupdate", nt = "waiting", ve = "canplay", Ps = "canplaythrough", Ee = "durationchange", Xi = "volumechange", ye = "loadeddata", Is = "loadedmetadata", qi = "ratechange", Zi = "progress", Jt = "loadstart", Fe = "emptied", As = "stalled", Ls = "suspend", Ds = "abort", Rs = "bufferedChange", Qt = "focus", Ji = "blur", ei = "ready", Qi = "urlNull", De = "autoplay_started", ti = "autoplay_was_prevented", kt = "complete", ct = "replay", ii = "destroy", wt = "urlchange", Wt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ft = "cssFullscreen_change", ht = "mini_state_change", ni = "definition_change", Os = "before_definition_change", Gt = "after_definition_change", Fs = "SEI_PARSED", Ms = "retry", be = "video_resize", Kt = "pip_change", rn = "rotate", sn = "screenShot", dt = "playnext", on = "shortcut", an = "xglog", gt = "user_action", bt = "reset", ln = "source_error", un = "source_success", Ns = "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 = {
2486
+ ), ne = "play", qt = "playing", Re = "ended", Ye = "pause", tt = "error", _t = "seeking", me = "seeked", ie = "timeupdate", it = "waiting", ve = "canplay", xs = "canplaythrough", Ee = "durationchange", Xi = "volumechange", ye = "loadeddata", Ps = "loadedmetadata", qi = "ratechange", Zi = "progress", Zt = "loadstart", Oe = "emptied", Is = "stalled", As = "suspend", Ls = "abort", Ds = "bufferedChange", Jt = "focus", Ji = "blur", Qt = "ready", Qi = "urlNull", Le = "autoplay_started", ei = "autoplay_was_prevented", Ct = "complete", ut = "replay", ti = "destroy", kt = "urlchange", jt = "download_speed_change", en = "leaveplayer", tn = "enterplayer", nn = "loading", ge = "fullscreen_change", ct = "cssFullscreen_change", ft = "mini_state_change", ii = "definition_change", Rs = "before_definition_change", Wt = "after_definition_change", Os = "SEI_PARSED", Fs = "retry", be = "video_resize", Gt = "pip_change", rn = "rotate", sn = "screenShot", ht = "playnext", on = "shortcut", an = "xglog", dt = "user_action", wt = "reset", ln = "source_error", un = "source_success", Ms = "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 = {
2505
2487
  STATS_INFO: "stats_info",
2506
2488
  STATS_DOWNLOAD: "stats_download",
2507
2489
  STATS_RESET: "stats_reset"
2508
2490
  }, hn = "fps_stuck";
2509
- const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2491
+ const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2510
2492
  __proto__: null,
2511
- ABORT: Ds,
2512
- AFTER_DEFINITION_CHANGE: Gt,
2513
- AUTOPLAY_PREVENTED: ti,
2514
- AUTOPLAY_STARTED: De,
2515
- BEFORE_DEFINITION_CHANGE: Os,
2516
- BUFFER_CHANGE: Rs,
2493
+ ABORT: Ls,
2494
+ AFTER_DEFINITION_CHANGE: Wt,
2495
+ AUTOPLAY_PREVENTED: ei,
2496
+ AUTOPLAY_STARTED: Le,
2497
+ BEFORE_DEFINITION_CHANGE: Rs,
2498
+ BUFFER_CHANGE: Ds,
2517
2499
  CANPLAY: ve,
2518
- CANPLAY_THROUGH: Ps,
2519
- COMPLETE: kt,
2520
- CSS_FULLSCREEN_CHANGE: ft,
2521
- DEFINITION_CHANGE: ni,
2522
- DESTROY: ii,
2523
- DOWNLOAD_SPEED_CHANGE: Wt,
2500
+ CANPLAY_THROUGH: xs,
2501
+ COMPLETE: Ct,
2502
+ CSS_FULLSCREEN_CHANGE: ct,
2503
+ DEFINITION_CHANGE: ii,
2504
+ DESTROY: ti,
2505
+ DOWNLOAD_SPEED_CHANGE: jt,
2524
2506
  DURATION_CHANGE: Ee,
2525
- EMPTIED: Fe,
2526
- ENDED: Oe,
2507
+ EMPTIED: Oe,
2508
+ ENDED: Re,
2527
2509
  ENTER_PLAYER: tn,
2528
- ERROR: it,
2510
+ ERROR: tt,
2529
2511
  FPS_STUCK: hn,
2530
2512
  FULLSCREEN_CHANGE: ge,
2531
2513
  LEAVE_PLAYER: en,
2532
2514
  LOADED_DATA: ye,
2533
- LOADED_METADATA: Is,
2515
+ LOADED_METADATA: Ps,
2534
2516
  LOADING: nn,
2535
- LOAD_START: Jt,
2536
- MINI_STATE_CHANGE: ht,
2517
+ LOAD_START: Zt,
2518
+ MINI_STATE_CHANGE: ft,
2537
2519
  PAUSE: Ye,
2538
- PIP_CHANGE: Kt,
2520
+ PIP_CHANGE: Gt,
2539
2521
  PLAY: ne,
2540
2522
  PLAYER_BLUR: Ji,
2541
- PLAYER_FOCUS: Qt,
2542
- PLAYING: Zt,
2543
- PLAYNEXT: dt,
2523
+ PLAYER_FOCUS: Jt,
2524
+ PLAYING: qt,
2525
+ PLAYNEXT: ht,
2544
2526
  PROGRESS: Zi,
2545
2527
  RATE_CHANGE: qi,
2546
- READY: ei,
2547
- REPLAY: ct,
2548
- RESET: bt,
2549
- RETRY: Ms,
2528
+ READY: Qt,
2529
+ REPLAY: ut,
2530
+ RESET: wt,
2531
+ RETRY: Fs,
2550
2532
  ROTATE: rn,
2551
2533
  SCREEN_SHOT: sn,
2552
2534
  SEEKED: me,
2553
- SEEKING: Ct,
2554
- SEI_PARSED: Fs,
2535
+ SEEKING: _t,
2536
+ SEI_PARSED: Os,
2555
2537
  SHORTCUT: on,
2556
2538
  SOURCE_ERROR: ln,
2557
2539
  SOURCE_SUCCESS: un,
2558
- STALLED: As,
2540
+ STALLED: Is,
2559
2541
  STATS_EVENTS: fn,
2560
- SUSPEND: Ls,
2561
- SWITCH_SUBTITLE: Ns,
2542
+ SUSPEND: As,
2543
+ SWITCH_SUBTITLE: Ms,
2562
2544
  TIME_UPDATE: ie,
2563
- URL_CHANGE: wt,
2545
+ URL_CHANGE: kt,
2564
2546
  URL_NULL: Qi,
2565
- USER_ACTION: gt,
2547
+ USER_ACTION: dt,
2566
2548
  VIDEO_EVENTS: cn,
2567
2549
  VIDEO_RESIZE: be,
2568
2550
  VOLUME_CHANGE: Xi,
2569
- WAITING: nt,
2551
+ WAITING: it,
2570
2552
  XGLOG: an
2571
2553
  }, Symbol.toStringTag, { value: "Module" }));
2572
- function xt(a, o) {
2554
+ function St(a, o) {
2573
2555
  !this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
2574
2556
  }
2575
- function Hs(a, o) {
2557
+ function Bs(a, o) {
2576
2558
  return function(r, t) {
2577
2559
  var e = {
2578
2560
  player: o,
@@ -2597,17 +2579,17 @@ function Hs(a, o) {
2597
2579
  o._rate = o.media && o.media.playbackRate;
2598
2580
  }
2599
2581
  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]) {
2600
- var n = xt.bind(o, a, e);
2582
+ var n = St.bind(o, a, e);
2601
2583
  try {
2602
2584
  o.mediaEventMiddleware[a].call(o, e, n);
2603
2585
  } catch (s) {
2604
- throw xt.call(o, a, e), s;
2586
+ throw St.call(o, a, e), s;
2605
2587
  }
2606
2588
  } else
2607
- xt.call(o, a, e);
2589
+ St.call(o, a, e);
2608
2590
  };
2609
2591
  }
2610
- var Us = /* @__PURE__ */ function(a) {
2592
+ var Hs = /* @__PURE__ */ function(a) {
2611
2593
  x(r, a);
2612
2594
  var o = P(r);
2613
2595
  function r(t) {
@@ -2651,7 +2633,7 @@ var Us = /* @__PURE__ */ function(a) {
2651
2633
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
2652
2634
  this._evHandlers || (this._evHandlers = cn.map(function(n) {
2653
2635
  var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
2654
- return typeof e[s] == "function" && e.on(n, e[s]), y({}, n, Hs(n, e));
2636
+ return typeof e[s] == "function" && e.on(n, e[s]), y({}, n, Bs(n, e));
2655
2637
  })), this._evHandlers.forEach(function(n) {
2656
2638
  var s = Object.keys(n)[0];
2657
2639
  i.addEventListener(s, n[s], !1);
@@ -2703,7 +2685,7 @@ var Us = /* @__PURE__ */ function(a) {
2703
2685
  l ? l.error(h, g) : n.errorHandler("error", g);
2704
2686
  }
2705
2687
  var p = gi[4];
2706
- n.emit(ln, new ut(n, {
2688
+ n.emit(ln, new lt(n, {
2707
2689
  errorType: p,
2708
2690
  errorCode: 4,
2709
2691
  errorMessage: "sources_load_error",
@@ -2740,7 +2722,7 @@ var Us = /* @__PURE__ */ function(a) {
2740
2722
  this.media.currentSrc || (l = "empty_src", n = {
2741
2723
  code: 6,
2742
2724
  message: l
2743
- }), this.emit(e, new ut(this, {
2725
+ }), this.emit(e, new lt(this, {
2744
2726
  errorType: s,
2745
2727
  errorCode: n.code,
2746
2728
  errorMessage: n.message || "",
@@ -2961,7 +2943,7 @@ var Us = /* @__PURE__ */ function(a) {
2961
2943
  },
2962
2944
  set: function(e) {
2963
2945
  if (this.media) {
2964
- if (this.emit(wt, e), this.emit(nt), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
2946
+ if (this.emit(kt, e), this.emit(it), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
2965
2947
  this.onWaiting();
2966
2948
  return;
2967
2949
  }
@@ -2996,36 +2978,36 @@ var Us = /* @__PURE__ */ function(a) {
2996
2978
  value: function(e, i) {
2997
2979
  for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
2998
2980
  l[u - 2] = arguments[u];
2999
- (n = L(I(r.prototype), "emit", this)).call.apply(n, [this, e, i].concat(l));
2981
+ (n = A(I(r.prototype), "emit", this)).call.apply(n, [this, e, i].concat(l));
3000
2982
  }
3001
2983
  }, {
3002
2984
  key: "on",
3003
2985
  value: function(e, i) {
3004
2986
  for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
3005
2987
  l[u - 2] = arguments[u];
3006
- (n = L(I(r.prototype), "on", this)).call.apply(n, [this, e, i].concat(l));
2988
+ (n = A(I(r.prototype), "on", this)).call.apply(n, [this, e, i].concat(l));
3007
2989
  }
3008
2990
  }, {
3009
2991
  key: "once",
3010
2992
  value: function(e, i) {
3011
2993
  for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
3012
2994
  l[u - 2] = arguments[u];
3013
- (n = L(I(r.prototype), "once", this)).call.apply(n, [this, e, i].concat(l));
2995
+ (n = A(I(r.prototype), "once", this)).call.apply(n, [this, e, i].concat(l));
3014
2996
  }
3015
2997
  }, {
3016
2998
  key: "off",
3017
2999
  value: function(e, i) {
3018
3000
  for (var n, s = arguments.length, l = new Array(s > 2 ? s - 2 : 0), u = 2; u < s; u++)
3019
3001
  l[u - 2] = arguments[u];
3020
- (n = L(I(r.prototype), "off", this)).call.apply(n, [this, e, i].concat(l));
3002
+ (n = A(I(r.prototype), "off", this)).call.apply(n, [this, e, i].concat(l));
3021
3003
  }
3022
3004
  }, {
3023
3005
  key: "offAll",
3024
3006
  value: function() {
3025
- L(I(r.prototype), "removeAllListeners", this).call(this);
3007
+ A(I(r.prototype), "removeAllListeners", this).call(this);
3026
3008
  }
3027
3009
  }]), r;
3028
- }($i), zs = /* @__PURE__ */ function() {
3010
+ }($i), Us = /* @__PURE__ */ function() {
3029
3011
  function a() {
3030
3012
  var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3031
3013
  name: "xgplayer",
@@ -3104,7 +3086,7 @@ var Us = /* @__PURE__ */ function(a) {
3104
3086
  }
3105
3087
  }]), a;
3106
3088
  }(), vi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], mi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], yi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Ie = "data-xgplayerid";
3107
- function rt(a, o, r) {
3089
+ function nt(a, o, r) {
3108
3090
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
3109
3091
  e[i - 3] = arguments[i];
3110
3092
  var n = o.call.apply(o, [a].concat(e));
@@ -3114,7 +3096,7 @@ function rt(a, o, r) {
3114
3096
  r.call.apply(r, [a].concat(l));
3115
3097
  }) : r.call.apply(r, [a].concat(e)));
3116
3098
  }
3117
- function pt(a, o) {
3099
+ function gt(a, o) {
3118
3100
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
3119
3101
  pre: null,
3120
3102
  next: null
@@ -3132,23 +3114,23 @@ function pt(a, o) {
3132
3114
  try {
3133
3115
  var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
3134
3116
  s ? s.then ? s.then(function(l) {
3135
- l !== !1 && rt.apply(void 0, [e, o, r.next].concat(ae(t)));
3117
+ l !== !1 && nt.apply(void 0, [e, o, r.next].concat(ae(t)));
3136
3118
  }).catch(function(l) {
3137
3119
  throw l;
3138
- }) : 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)));
3120
+ }) : nt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && nt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3139
3121
  } catch (l) {
3140
3122
  throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
3141
3123
  }
3142
3124
  else
3143
- rt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3125
+ nt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
3144
3126
  }).bind(this);
3145
3127
  }
3146
- function vt(a, o) {
3128
+ function pt(a, o) {
3147
3129
  var r = this.__hooks;
3148
3130
  if (r)
3149
3131
  return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
3150
3132
  }
3151
- function mt(a, o) {
3133
+ function vt(a, o) {
3152
3134
  var r = this.__hooks;
3153
3135
  r && delete r[a];
3154
3136
  }
@@ -3201,7 +3183,7 @@ function pe(a, o, r) {
3201
3183
  } else
3202
3184
  return r.call.apply(r, [a, a].concat(e));
3203
3185
  }
3204
- function Pt(a, o) {
3186
+ function xt(a, o) {
3205
3187
  O.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
3206
3188
  }
3207
3189
  var Te = /* @__PURE__ */ function() {
@@ -3268,7 +3250,7 @@ var Te = /* @__PURE__ */ function() {
3268
3250
  value: function(r, t) {
3269
3251
  var e = this;
3270
3252
  if (!r || !t || !this.player) {
3271
- Pt(this.pluginName, "plugin.on(event, callback)");
3253
+ xt(this.pluginName, "plugin.on(event, callback)");
3272
3254
  return;
3273
3255
  }
3274
3256
  typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3280,7 +3262,7 @@ var Te = /* @__PURE__ */ function() {
3280
3262
  value: function(r, t) {
3281
3263
  var e = this;
3282
3264
  if (!r || !t || !this.player) {
3283
- Pt(this.pluginName, "plugin.once(event, callback)");
3265
+ xt(this.pluginName, "plugin.once(event, callback)");
3284
3266
  return;
3285
3267
  }
3286
3268
  typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3292,7 +3274,7 @@ var Te = /* @__PURE__ */ function() {
3292
3274
  value: function(r, t) {
3293
3275
  var e = this;
3294
3276
  if (!r || !t || !this.player) {
3295
- Pt(this.pluginName, "plugin.off(event, callback)");
3277
+ xt(this.pluginName, "plugin.off(event, callback)");
3296
3278
  return;
3297
3279
  }
3298
3280
  typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3333,21 +3315,21 @@ var Te = /* @__PURE__ */ function() {
3333
3315
  }, {
3334
3316
  key: "hook",
3335
3317
  value: function(r, t) {
3336
- return pt.call.apply(pt, [this].concat(Array.prototype.slice.call(arguments)));
3318
+ return gt.call.apply(gt, [this].concat(Array.prototype.slice.call(arguments)));
3337
3319
  }
3338
3320
  }, {
3339
3321
  key: "useHooks",
3340
3322
  value: function(r, t) {
3341
3323
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
3342
3324
  i[n - 2] = arguments[n];
3343
- return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
3325
+ return pt.call.apply(pt, [this].concat(Array.prototype.slice.call(arguments)));
3344
3326
  }
3345
3327
  }, {
3346
3328
  key: "removeHooks",
3347
3329
  value: function(r, t) {
3348
3330
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
3349
3331
  i[n - 2] = arguments[n];
3350
- return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
3332
+ return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
3351
3333
  }
3352
3334
  }, {
3353
3335
  key: "registerPlugin",
@@ -3389,43 +3371,43 @@ var Te = /* @__PURE__ */ function() {
3389
3371
  return "pluginName";
3390
3372
  }
3391
3373
  }]), a;
3392
- }(), Vs = 9;
3374
+ }(), zs = 9;
3393
3375
  if (typeof Element < "u" && !Element.prototype.matches) {
3394
- var Ne = Element.prototype;
3395
- Ne.matches = Ne.matchesSelector || Ne.mozMatchesSelector || Ne.msMatchesSelector || Ne.oMatchesSelector || Ne.webkitMatchesSelector;
3376
+ var Me = Element.prototype;
3377
+ Me.matches = Me.matchesSelector || Me.mozMatchesSelector || Me.msMatchesSelector || Me.oMatchesSelector || Me.webkitMatchesSelector;
3396
3378
  }
3397
- function js(a, o) {
3398
- for (; a && a.nodeType !== Vs; ) {
3379
+ function Vs(a, o) {
3380
+ for (; a && a.nodeType !== zs; ) {
3399
3381
  if (typeof a.matches == "function" && a.matches(o))
3400
3382
  return a;
3401
3383
  a = a.parentNode;
3402
3384
  }
3403
3385
  }
3404
- var Ws = js, Gs = Ws;
3405
- function It(a, o, r, t, e) {
3406
- var i = $s.apply(this, arguments);
3386
+ var js = Vs, Ws = js;
3387
+ function Pt(a, o, r, t, e) {
3388
+ var i = Ks.apply(this, arguments);
3407
3389
  return a.addEventListener(r, i, e), {
3408
3390
  destroy: function() {
3409
3391
  a.removeEventListener(r, i, e);
3410
3392
  }
3411
3393
  };
3412
3394
  }
3413
- function Ks(a, o, r, t, e) {
3414
- return typeof a.addEventListener == "function" ? It.apply(null, arguments) : typeof r == "function" ? It.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
3415
- return It(i, o, r, t, e);
3395
+ function Gs(a, o, r, t, e) {
3396
+ 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) {
3397
+ return Pt(i, o, r, t, e);
3416
3398
  }));
3417
3399
  }
3418
- function $s(a, o, r, t) {
3400
+ function Ks(a, o, r, t) {
3419
3401
  return function(e) {
3420
- e.delegateTarget = Gs(e.target, o), e.delegateTarget && t.call(a, e);
3402
+ e.delegateTarget = Ws(e.target, o), e.delegateTarget && t.call(a, e);
3421
3403
  };
3422
3404
  }
3423
- var Ys = Ks;
3424
- const ki = /* @__PURE__ */ Yt(Ys);
3425
- var Xs = {
3405
+ var $s = Gs;
3406
+ const ki = /* @__PURE__ */ $t($s);
3407
+ var Ys = {
3426
3408
  CONTROLS: "controls",
3427
3409
  ROOT: "root"
3428
- }, j = {
3410
+ }, V = {
3429
3411
  ROOT: "root",
3430
3412
  ROOT_LEFT: "rootLeft",
3431
3413
  ROOT_RIGHT: "rootRight",
@@ -3439,13 +3421,13 @@ var Xs = {
3439
3421
  ICON_DISABLE: "xg-icon-disable",
3440
3422
  ICON_HIDE: "xg-icon-hide"
3441
3423
  };
3442
- function At(a) {
3424
+ function It(a) {
3443
3425
  return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
3444
3426
  }
3445
- function qs(a, o) {
3427
+ function Xs(a, o) {
3446
3428
  return X(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
3447
3429
  }
3448
- function Zs(a, o) {
3430
+ function qs(a, o) {
3449
3431
  return X(a) === "object" && a.attr && X(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
3450
3432
  o[r] = a.attr[r];
3451
3433
  }), o;
@@ -3456,8 +3438,8 @@ function bi(a, o) {
3456
3438
  return f.addClass(a, r), Object.keys(t).map(function(n) {
3457
3439
  a.setAttribute(n, t[n]);
3458
3440
  }), a;
3459
- if (At(a) || At(a.url))
3460
- return t.src = At(a) ? a : a.url || "", i = f.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
3441
+ if (It(a) || It(a.url))
3442
+ return t.src = It(a) ? a : a.url || "", i = f.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
3461
3443
  if (typeof a == "function")
3462
3444
  try {
3463
3445
  return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
@@ -3468,14 +3450,14 @@ function bi(a, o) {
3468
3450
  }
3469
3451
  return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (O.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
3470
3452
  }
3471
- function Js(a, o) {
3453
+ function Zs(a, o) {
3472
3454
  var r = o.config.icons || o.playerConfig.icons;
3473
3455
  Object.keys(a).map(function(t) {
3474
3456
  var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
3475
- r && r[t] && (i = qs(r[t], i), n = Zs(r[t], n), s = bi(r[t], t, i, n, o.pluginName)), !s && e && (s = bi(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
3457
+ r && r[t] && (i = Xs(r[t], i), n = qs(r[t], n), s = bi(r[t], t, i, n, o.pluginName)), !s && e && (s = bi(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
3476
3458
  });
3477
3459
  }
3478
- function Qs(a, o) {
3460
+ function Js(a, o) {
3479
3461
  Object.keys(a).map(function(r) {
3480
3462
  Object.defineProperty(o.langText, r, {
3481
3463
  get: function() {
@@ -3495,13 +3477,13 @@ var U = /* @__PURE__ */ function(a) {
3495
3477
  return E(r, [{
3496
3478
  key: "__init",
3497
3479
  value: function(e) {
3498
- if (L(I(r.prototype), "__init", this).call(this, e), !!e.root) {
3480
+ if (A(I(r.prototype), "__init", this).call(this, e), !!e.root) {
3499
3481
  var i = e.root, n = null;
3500
3482
  this.icons = {}, this.root = null, this.parent = null;
3501
3483
  var s = this.registerIcons() || {};
3502
- Js(s, this), this.langText = {};
3484
+ Zs(s, this), this.langText = {};
3503
3485
  var l = this.registerLanguageTexts() || {};
3504
- Qs(l, this);
3486
+ Js(l, this);
3505
3487
  var u = "";
3506
3488
  try {
3507
3489
  u = this.render();
@@ -3589,7 +3571,7 @@ var U = /* @__PURE__ */ function(a) {
3589
3571
  value: function(e) {
3590
3572
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "";
3591
3573
  i.root = i.root || this.root;
3592
- var s = L(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
3574
+ var s = A(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
3593
3575
  return this._children.push(s), s;
3594
3576
  }
3595
3577
  }, {
@@ -3724,7 +3706,7 @@ var U = /* @__PURE__ */ function(a) {
3724
3706
  n.destroy();
3725
3707
  }), this.__delegates = [], this._children instanceof Array && (this._children.map(function(n) {
3726
3708
  i.unRegisterPlugin(n.pluginName);
3727
- }), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)), L(I(r.prototype), "__destroy", this).call(this), this.icons = {}, ["root", "parent"].map(function(n) {
3709
+ }), this._children = null), this.root && (this.root.hasOwnProperty("remove") ? this.root.remove() : this.root.parentNode && this.root.parentNode.removeChild(this.root)), A(I(r.prototype), "__destroy", this).call(this), this.icons = {}, ["root", "parent"].map(function(n) {
3728
3710
  e[n] = null;
3729
3711
  });
3730
3712
  }
@@ -3770,15 +3752,15 @@ var U = /* @__PURE__ */ function(a) {
3770
3752
  }, {
3771
3753
  key: "ROOT_TYPES",
3772
3754
  get: function() {
3773
- return Xs;
3755
+ return Ys;
3774
3756
  }
3775
3757
  }, {
3776
3758
  key: "POSITIONS",
3777
3759
  get: function() {
3778
- return j;
3760
+ return V;
3779
3761
  }
3780
3762
  }]), r;
3781
- }(Te), eo = /* @__PURE__ */ function() {
3763
+ }(Te), Qs = /* @__PURE__ */ function() {
3782
3764
  function a() {
3783
3765
  var o = this;
3784
3766
  if (T(this, a), y(this, "__trigger", function(r) {
@@ -3788,7 +3770,7 @@ var U = /* @__PURE__ */ function(a) {
3788
3770
  o.__runHandler(r[e].target);
3789
3771
  }), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
3790
3772
  try {
3791
- this.observer = new window.ResizeObserver(Ts(this.__trigger, 100, {
3773
+ this.observer = new window.ResizeObserver(bs(this.__trigger, 100, {
3792
3774
  trailing: !0
3793
3775
  })), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
3794
3776
  } catch (r) {
@@ -3843,17 +3825,17 @@ var U = /* @__PURE__ */ function(a) {
3843
3825
  }
3844
3826
  }]), a;
3845
3827
  }(), Je = null;
3846
- function to(a, o) {
3847
- return Je || (Je = new eo()), Je.addObserver(a, o), Je;
3828
+ function eo(a, o) {
3829
+ return Je || (Je = new Qs()), Je.addObserver(a, o), Je;
3848
3830
  }
3849
- function io(a, o) {
3831
+ function to(a, o) {
3850
3832
  Je.unObserver(a, o);
3851
3833
  }
3852
3834
  var K = {
3853
3835
  pluginGroup: {},
3854
3836
  init: function(o) {
3855
3837
  var r = o._pluginInfoId;
3856
- r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && to(o.root, function() {
3838
+ r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && eo(o.root, function() {
3857
3839
  o.resize();
3858
3840
  }), this.pluginGroup[r] = {
3859
3841
  _originalOptions: o.config || {},
@@ -4039,7 +4021,7 @@ var K = {
4039
4021
  destroy: function(o) {
4040
4022
  var r = o._pluginInfoId;
4041
4023
  if (this.pluginGroup[r]) {
4042
- io(o.root);
4024
+ to(o.root);
4043
4025
  for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
4044
4026
  var n = i[e];
4045
4027
  this.unRegister(r, n);
@@ -4125,7 +4107,7 @@ function Ti() {
4125
4107
  ignores: [],
4126
4108
  whitelist: [],
4127
4109
  inactive: 3e3,
4128
- lang: Es(),
4110
+ lang: Ts(),
4129
4111
  controls: !0,
4130
4112
  marginControls: !1,
4131
4113
  fullscreenTarget: null,
@@ -4161,7 +4143,7 @@ function Ti() {
4161
4143
  }
4162
4144
  };
4163
4145
  }
4164
- var no = function(o, r) {
4146
+ var io = function(o, r) {
4165
4147
  var t, e, i;
4166
4148
  r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
4167
4149
  var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, p = g === void 0 ? [] : g;
@@ -4170,7 +4152,7 @@ var no = function(o, r) {
4170
4152
  });
4171
4153
  var m = o.config.i18n || [];
4172
4154
  p.push.apply(p, ae(m)), o.config.i18n = p;
4173
- }, ro = /* @__PURE__ */ function(a) {
4155
+ }, no = /* @__PURE__ */ function(a) {
4174
4156
  x(r, a);
4175
4157
  var o = P(r);
4176
4158
  function r() {
@@ -4204,7 +4186,7 @@ var no = function(o, r) {
4204
4186
  };
4205
4187
  Object.keys(u).map(function(h) {
4206
4188
  e.root.style[h] = u[h];
4207
- }), 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(ht, function(h) {
4189
+ }), 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(ft, function(h) {
4208
4190
  h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
4209
4191
  });
4210
4192
  var c = this.playerConfig.isMobileSimulateMode;
@@ -4266,22 +4248,22 @@ var no = function(o, r) {
4266
4248
  if (!i.root) {
4267
4249
  var l = i.position ? i.position : i.config && i.config.position ? i.config.position : s.position;
4268
4250
  switch (l) {
4269
- case j.CONTROLS_LEFT:
4251
+ case V.CONTROLS_LEFT:
4270
4252
  i.root = this.left;
4271
4253
  break;
4272
- case j.CONTROLS_RIGHT:
4254
+ case V.CONTROLS_RIGHT:
4273
4255
  i.root = this.right;
4274
4256
  break;
4275
- case j.CONTROLS_CENTER:
4257
+ case V.CONTROLS_CENTER:
4276
4258
  i.root = this.center;
4277
4259
  break;
4278
- case j.CONTROLS:
4260
+ case V.CONTROLS:
4279
4261
  i.root = this.root;
4280
4262
  break;
4281
4263
  default:
4282
4264
  i.root = this.left;
4283
4265
  }
4284
- return L(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
4266
+ return A(I(r.prototype), "registerPlugin", this).call(this, e, i, n);
4285
4267
  }
4286
4268
  }
4287
4269
  }
@@ -4331,7 +4313,7 @@ var no = function(o, r) {
4331
4313
  };
4332
4314
  }
4333
4315
  }]), r;
4334
- }(U), so = {
4316
+ }(U), ro = {
4335
4317
  LANG: "en",
4336
4318
  TEXT: {
4337
4319
  ERROR_TYPES: {
@@ -4411,14 +4393,14 @@ var no = function(o, r) {
4411
4393
  langKeys: [],
4412
4394
  textKeys: []
4413
4395
  };
4414
- function tt(a, o) {
4396
+ function et(a, o) {
4415
4397
  return Object.keys(o).forEach(function(r) {
4416
4398
  var t = f.typeOf(o[r]), e = f.typeOf(a[r]);
4417
4399
  if (t === "Array") {
4418
4400
  var i;
4419
4401
  e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, ae(o[r]));
4420
4402
  } else
4421
- t === "Object" ? (e !== "Object" && (a[r] = {}), tt(a[r], o[r])) : a[r] = o[r];
4403
+ t === "Object" ? (e !== "Object" && (a[r] = {}), et(a[r], o[r])) : a[r] = o[r];
4422
4404
  }), a;
4423
4405
  }
4424
4406
  function pn() {
@@ -4426,7 +4408,7 @@ function pn() {
4426
4408
  te.textKeys[a] = a;
4427
4409
  });
4428
4410
  }
4429
- function oo(a, o) {
4411
+ function so(a, o) {
4430
4412
  var r = [];
4431
4413
  if (o || (o = te), !!o.lang) {
4432
4414
  f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
@@ -4438,27 +4420,27 @@ function oo(a, o) {
4438
4420
  }) : r = a;
4439
4421
  var t = o, e = t.lang;
4440
4422
  r.map(function(i) {
4441
- i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? tt(e[i.LANG] || {}, i.TEXT || {}) : ri(i, o);
4423
+ i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? et(e[i.LANG] || {}, i.TEXT || {}) : ni(i, o);
4442
4424
  }), pn();
4443
4425
  }
4444
4426
  }
4445
- function ri(a, o) {
4427
+ function ni(a, o) {
4446
4428
  var r = a.LANG;
4447
4429
  if (o || (o = te), !!o.lang) {
4448
4430
  var t = a.TEXT || {};
4449
- r === "zh" && (r = "zh-cn"), o.lang[r] ? tt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), pn();
4431
+ r === "zh" && (r = "zh-cn"), o.lang[r] ? et(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), pn();
4450
4432
  }
4451
4433
  }
4452
- function ao(a) {
4434
+ function oo(a) {
4453
4435
  var o, r = {
4454
4436
  lang: {},
4455
4437
  langKeys: [],
4456
4438
  textKeys: {},
4457
4439
  pId: a
4458
4440
  };
4459
- return tt(r.lang, te.lang), (o = r.langKeys).push.apply(o, ae(te.langKeys)), tt(r.textKeys, te.textKeys), r;
4441
+ return et(r.lang, te.lang), (o = r.langKeys).push.apply(o, ae(te.langKeys)), et(r.textKeys, te.textKeys), r;
4460
4442
  }
4461
- ri(so);
4443
+ ni(ro);
4462
4444
  var We = {
4463
4445
  get textKeys() {
4464
4446
  return te.textKeys;
@@ -4472,10 +4454,10 @@ var We = {
4472
4454
  a[o] = te.lang[o];
4473
4455
  }), te.lang["zh-cn"] && (a.zh = te.lang["zh-cn"] || {}), a;
4474
4456
  },
4475
- extend: oo,
4476
- use: ri,
4477
- init: ao
4478
- }, N = {
4457
+ extend: so,
4458
+ use: ni,
4459
+ init: oo
4460
+ }, M = {
4479
4461
  INITIAL: 1,
4480
4462
  READY: 2,
4481
4463
  ATTACHING: 3,
@@ -4484,7 +4466,7 @@ var We = {
4484
4466
  RUNNING: 6,
4485
4467
  ENDED: 7,
4486
4468
  DESTROYED: 8
4487
- }, Ei = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], Z = {}, Lt = null, vn = /* @__PURE__ */ function(a) {
4469
+ }, Ei = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], Z = {}, At = null, vn = /* @__PURE__ */ function(a) {
4488
4470
  x(r, a);
4489
4471
  var o = P(r);
4490
4472
  function r() {
@@ -4567,11 +4549,11 @@ var We = {
4567
4549
  }], [{
4568
4550
  key: "getInstance",
4569
4551
  value: function() {
4570
- return Lt || (Lt = new r()), Lt;
4552
+ return At || (At = new r()), At;
4571
4553
  }
4572
4554
  }]), r;
4573
4555
  }(Ki.EventEmitter);
4574
- function lo(a) {
4556
+ function ao(a) {
4575
4557
  for (var o = Object.keys(Z), r = 0; r < o.length; r++) {
4576
4558
  var t = Z[o[r]];
4577
4559
  if (t.root === a)
@@ -4579,7 +4561,7 @@ function lo(a) {
4579
4561
  }
4580
4562
  return null;
4581
4563
  }
4582
- var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /* @__PURE__ */ function(a) {
4564
+ var lo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, bt = /* @__PURE__ */ function(a) {
4583
4565
  x(r, a);
4584
4566
  var o = P(r);
4585
4567
  function r(t) {
@@ -4597,7 +4579,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4597
4579
  e.resize();
4598
4580
  }, 100);
4599
4581
  }, C = f.getFullScreenEl();
4600
- e._fullActionFrom ? e._fullActionFrom = "" : e.emit(gt, {
4582
+ e._fullActionFrom ? e._fullActionFrom = "" : e.emit(dt, {
4601
4583
  eventType: "system",
4602
4584
  action: "switch_fullscreen",
4603
4585
  pluginName: "player",
@@ -4609,13 +4591,13 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4609
4591
  to: !1
4610
4592
  }]
4611
4593
  });
4612
- var b = Ss(C, e.playerId, Ie);
4594
+ var b = Es(C, e.playerId, Ie);
4613
4595
  if (m || C && (C === e._fullscreenEl || b))
4614
4596
  _(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(ge, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4615
4597
  else if (e.fullscreen) {
4616
4598
  _();
4617
- var w = v(e), B = w._fullScreenOffset, M = w.config;
4618
- if (M.needFullscreenScroll ? (window.scrollTo(B.left, B.top), f.setTimeout(v(e), function() {
4599
+ var w = v(e), B = w._fullScreenOffset, F = w.config;
4600
+ if (F.needFullscreenScroll ? (window.scrollTo(B.left, B.top), f.setTimeout(v(e), function() {
4619
4601
  e.fullscreen = !1, e._fullScreenOffset = null;
4620
4602
  }, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
4621
4603
  e.removeClass(k.FULLSCREEN);
@@ -4629,14 +4611,14 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4629
4611
  e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
4630
4612
  }), y(v(e), "_onWebkitendfullscreen", function(p) {
4631
4613
  e.onFullscreenChange(p, !1);
4632
- }), dn(v(e), uo), e.config = i, e._pluginInfoId = f.generateSessionId(), Cs(v(e));
4614
+ }), dn(v(e), lo), e.config = i, e._pluginInfoId = f.generateSessionId(), _s(v(e));
4633
4615
  var n = e.constructor.defaultPreset;
4634
4616
  if (e.config.presets.length) {
4635
4617
  var s = e.config.presets.indexOf("default");
4636
4618
  s >= 0 && n && (e.config.presets[s] = n);
4637
4619
  } else
4638
4620
  n && e.config.presets.push(n);
4639
- e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = N.INITIAL, e.isError = !1, e._hasStart = !1, e.isSeeking = !1, e.isCanplay = !1, e._useAutoplay = !1, e.__startTime = -1, e.rotateDeg = 0, e.isActive = !1, e.fullscreen = !1, e.cssfullscreen = !1, e.isRotateFullscreen = !1, e._fullscreenEl = null, e.timeSegments = [], e._cssfullscreenEl = null, e.curDefinition = null, e._orgCss = "", e._fullScreenOffset = null, e._videoHeight = 0, e._videoWidth = 0, e.videoPos = {
4621
+ e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = M.INITIAL, e.isError = !1, e._hasStart = !1, e.isSeeking = !1, e.isCanplay = !1, e._useAutoplay = !1, e.__startTime = -1, e.rotateDeg = 0, e.isActive = !1, e.fullscreen = !1, e.cssfullscreen = !1, e.isRotateFullscreen = !1, e._fullscreenEl = null, e.timeSegments = [], e._cssfullscreenEl = null, e.curDefinition = null, e._orgCss = "", e._fullScreenOffset = null, e._videoHeight = 0, e._videoWidth = 0, e.videoPos = {
4640
4622
  pi: 1,
4641
4623
  scale: 0,
4642
4624
  rotate: -1,
@@ -4658,12 +4640,12 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4658
4640
  }, e._offsetInfo = {
4659
4641
  currentTime: -1,
4660
4642
  duration: 0
4661
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = We.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new zs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4643
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = We.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new Us(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4662
4644
  isActiveLocked: !1
4663
4645
  }, e.instManager = _e;
4664
4646
  var l = e._initDOM();
4665
4647
  if (!l)
4666
- return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), qt(e);
4648
+ return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), Xt(e);
4667
4649
  var u = e.config, c = u.definition, h = c === void 0 ? {} : c, d = u.url;
4668
4650
  if (!d && h.list && h.list.length > 0) {
4669
4651
  var g = h.list.find(function(p) {
@@ -4671,9 +4653,9 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4671
4653
  });
4672
4654
  g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
4673
4655
  }
4674
- return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(N.READY), f.setTimeout(v(e), function() {
4675
- e.emit(ei);
4676
- }, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < N.ATTACHED) && e.start(), e;
4656
+ return e._bindEvents(), e._registerPresets(), e._registerPlugins(), K.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(M.READY), f.setTimeout(v(e), function() {
4657
+ e.emit(Qt);
4658
+ }, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < M.ATTACHED) && e.start(), e;
4677
4659
  }
4678
4660
  return E(r, [{
4679
4661
  key: "_initDOM",
@@ -4684,13 +4666,13 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4684
4666
  if (n && n.nodeType === 1)
4685
4667
  this.root = n;
4686
4668
  else
4687
- return this.emit(it, new ut("use", this.config.vid, {
4669
+ return this.emit(tt, new lt("use", this.config.vid, {
4688
4670
  line: 32,
4689
4671
  handle: "Constructor",
4690
4672
  msg: "container id can't be empty"
4691
4673
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
4692
4674
  }
4693
- var s = lo(this.root);
4675
+ var s = ao(this.root);
4694
4676
  s && (O.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Ie, this.playerId), (e = _e) === null || e === void 0 || e.add(this), K.init(this), this._initBaseDoms();
4695
4677
  var l = this.constructor.XgVideoProxy;
4696
4678
  if (l && this.mediaConfig.mediaType === l.mediaType) {
@@ -4700,7 +4682,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4700
4682
  this.attachVideoEvents(c), this.media = c;
4701
4683
  }
4702
4684
  if (this.media.setAttribute(Ie, this.playerId), this.config.controls) {
4703
- var h = this.config.controls.root || null, d = K.register(this, ro, {
4685
+ var h = this.config.controls.root || null, d = K.register(this, no, {
4704
4686
  root: h
4705
4687
  });
4706
4688
  this.controls = d;
@@ -4722,8 +4704,8 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4722
4704
  ["width", "height"].forEach(function(D) {
4723
4705
  i.config[D] && (typeof i.config[D] != "number" ? i.root.style[D] = i.config[D] : i.root.style[D] = "".concat(i.config[D], "px"));
4724
4706
  });
4725
- var b = this.root.getBoundingClientRect(), w = b.width, B = b.height, M = b.left, z = b.top;
4726
- return this.sizeInfo.width = w, this.sizeInfo.height = B, this.sizeInfo.left = M, this.sizeInfo.top = z, !0;
4707
+ var b = this.root.getBoundingClientRect(), w = b.width, B = b.height, F = b.left, z = b.top;
4708
+ return this.sizeInfo.width = w, this.sizeInfo.height = B, this.sizeInfo.left = F, this.sizeInfo.top = z, !0;
4727
4709
  }
4728
4710
  }, {
4729
4711
  key: "_initBaseDoms",
@@ -4768,8 +4750,8 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4768
4750
  var s = this.media.readyState;
4769
4751
  O.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
4770
4752
  var l = this.config.startTime;
4771
- this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state < N.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(N.ATTACHED), f.setTimeout(this, function() {
4772
- i.emit(kt);
4753
+ this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ve, this.canPlayFunc), (!this.hasStart || this.state < M.ATTACHED) && K.afterInit(this), this.hasStart = !0, this.setState(M.ATTACHED), f.setTimeout(this, function() {
4754
+ i.emit(Ct);
4773
4755
  }, 0);
4774
4756
  }
4775
4757
  }
@@ -4808,7 +4790,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4808
4790
  value: function() {
4809
4791
  var e = this;
4810
4792
  this.config.presets.forEach(function(i) {
4811
- no(e, i);
4793
+ io(e, i);
4812
4794
  });
4813
4795
  }
4814
4796
  }, {
@@ -4816,13 +4798,13 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4816
4798
  value: function(e) {
4817
4799
  var i = null;
4818
4800
  switch (e) {
4819
- case j.ROOT_RIGHT:
4801
+ case V.ROOT_RIGHT:
4820
4802
  this.rightBar || (this.rightBar = f.createPositionBar("xg-right-bar", this.root)), i = this.rightBar;
4821
4803
  break;
4822
- case j.ROOT_LEFT:
4804
+ case V.ROOT_LEFT:
4823
4805
  this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
4824
4806
  break;
4825
- case j.ROOT_TOP:
4807
+ case V.ROOT_TOP:
4826
4808
  this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, k.TOP_BAR_AUTOHIDE)), i = this.topBar;
4827
4809
  break;
4828
4810
  default:
@@ -4906,8 +4888,8 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4906
4888
  key: "start",
4907
4889
  value: function(e) {
4908
4890
  var i = this;
4909
- if (!(this.state > N.ATTACHING))
4910
- return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(N.ATTACHING), this._registerPlugins(!1), K.beforeInit(this).then(function() {
4891
+ if (!(this.state > M.ATTACHING))
4892
+ return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(M.ATTACHING), this._registerPlugins(!1), K.beforeInit(this).then(function() {
4911
4893
  if (i.config) {
4912
4894
  e || (e = i.url || i.config.url);
4913
4895
  var n = i._preProcessUrl(e), s = i._startInit(n.url);
@@ -4950,33 +4932,33 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4950
4932
  key: "mediaPlay",
4951
4933
  value: function() {
4952
4934
  var e = this;
4953
- if (!this.hasStart && this.state < N.ATTACHED) {
4935
+ if (!this.hasStart && this.state < M.ATTACHED) {
4954
4936
  this.removeClass(k.NO_START), this.addClass(k.ENTER), this.start(), this._useAutoplay = !0;
4955
4937
  return;
4956
4938
  }
4957
- this.state < N.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
4958
- var i = L(I(r.prototype), "play", this).call(this);
4939
+ this.state < M.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
4940
+ var i = A(I(r.prototype), "play", this).call(this);
4959
4941
  return i !== void 0 && i && i.then ? i.then(function() {
4960
- e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < N.RUNNING && (O.logInfo(">>>>playPromise.then"), e.setState(N.RUNNING), e.emit(De));
4942
+ e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < M.RUNNING && (O.logInfo(">>>>playPromise.then"), e.setState(M.RUNNING), e.emit(Le));
4961
4943
  }).catch(function(n) {
4962
4944
  if (O.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
4963
4945
  e.onError(), e.removeClass(k.ENTER);
4964
4946
  return;
4965
4947
  }
4966
4948
  n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
4967
- e._errorTimer = null, e.emit(ti), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(N.NOTALLOW);
4949
+ e._errorTimer = null, e.emit(ei), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(M.NOTALLOW);
4968
4950
  }, 0));
4969
- }) : (O.logWarn("video.play not return promise"), this.state < N.RUNNING && (this.setState(N.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(De))), i;
4951
+ }) : (O.logWarn("video.play not return promise"), this.state < M.RUNNING && (this.setState(M.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(Le))), i;
4970
4952
  }
4971
4953
  }, {
4972
4954
  key: "mediaPause",
4973
4955
  value: function() {
4974
- L(I(r.prototype), "pause", this).call(this);
4956
+ A(I(r.prototype), "pause", this).call(this);
4975
4957
  }
4976
4958
  }, {
4977
4959
  key: "videoPause",
4978
4960
  value: function() {
4979
- L(I(r.prototype), "pause", this).call(this);
4961
+ A(I(r.prototype), "pause", this).call(this);
4980
4962
  }
4981
4963
  }, {
4982
4964
  key: "play",
@@ -4991,7 +4973,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
4991
4973
  value: function() {
4992
4974
  var e = this;
4993
4975
  pe(this, "pause", function() {
4994
- L(I(r.prototype), "pause", e).call(e);
4976
+ A(I(r.prototype), "pause", e).call(e);
4995
4977
  });
4996
4978
  }
4997
4979
  }, {
@@ -5012,7 +4994,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5012
4994
  n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
5013
4995
  }
5014
4996
  n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
5015
- }, this.once(me, this._onceSeekCanplay), this.state < N.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
4997
+ }, this.once(me, this._onceSeekCanplay), this.state < M.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5016
4998
  }
5017
4999
  }
5018
5000
  }, {
@@ -5029,7 +5011,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5029
5011
  var n = this, s = this.config.definition;
5030
5012
  if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
5031
5013
  (e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
5032
- }), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(ni, {
5014
+ }), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(ii, {
5033
5015
  from: i,
5034
5016
  to: e
5035
5017
  }), !this.hasStart) {
@@ -5040,11 +5022,11 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5040
5022
  seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
5041
5023
  }, e));
5042
5024
  l && l.then ? l.then(function() {
5043
- n.emit(Gt, {
5025
+ n.emit(Wt, {
5044
5026
  from: i,
5045
5027
  to: e
5046
5028
  });
5047
- }) : this.emit(Gt, {
5029
+ }) : this.emit(Wt, {
5048
5030
  from: i,
5049
5031
  to: e
5050
5032
  });
@@ -5062,7 +5044,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5062
5044
  var e = this, i = k.NOT_ALLOW_AUTOPLAY, n = k.PLAYING, s = k.NO_START, l = k.PAUSED, u = k.REPLAY, c = k.ENTER, h = k.ENDED, d = k.ERROR, g = k.LOADING, p = [i, n, s, l, u, c, h, d, g];
5063
5045
  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) {
5064
5046
  e.removeClass(m);
5065
- }), this.addClass(k.NO_START), this.emit(bt);
5047
+ }), this.addClass(k.NO_START), this.emit(wt);
5066
5048
  }
5067
5049
  }, {
5068
5050
  key: "reset",
@@ -5084,7 +5066,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5084
5066
  value: function() {
5085
5067
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
5086
5068
  if (!(!s || !l)) {
5087
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ie), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ii), (e = _e) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), L(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5069
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ie), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ti), (e = _e) === null || e === void 0 || e.remove(this), K.destroy(this), gn(this), A(I(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5088
5070
  for (var u = n.children, c = 0; c < u.length; c++)
5089
5071
  n.removeChild(u[c]);
5090
5072
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -5108,7 +5090,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5108
5090
  i && i.catch && i.catch(function(n) {
5109
5091
  console.log(n);
5110
5092
  });
5111
- }), e.emit(ct), e.onPlay();
5093
+ }), e.emit(ut), e.onPlay();
5112
5094
  });
5113
5095
  }
5114
5096
  }, {
@@ -5187,7 +5169,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5187
5169
  var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.CSS_FULLSCREEN) : k.CSS_FULLSCREEN;
5188
5170
  this.changeFullStyle(this.root, e, i);
5189
5171
  var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
5190
- l && (this.fullscreen = !0, this.emit(ge, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(ft, !0);
5172
+ l && (this.fullscreen = !0, this.emit(ge, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(ct, !0);
5191
5173
  }
5192
5174
  }, {
5193
5175
  key: "exitCssFullscreen",
@@ -5199,7 +5181,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5199
5181
  var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
5200
5182
  s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(ge, !1)) : this.removeClass(e);
5201
5183
  }
5202
- this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(ft, !1);
5184
+ this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(ct, !1);
5203
5185
  }
5204
5186
  }, {
5205
5187
  key: "getRotateFullscreen",
@@ -5231,7 +5213,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5231
5213
  this.onFocus(e);
5232
5214
  return;
5233
5215
  }
5234
- this.emit(Qt, W({
5216
+ this.emit(Jt, W({
5235
5217
  paused: this.paused,
5236
5218
  ended: this.ended
5237
5219
  }, e));
@@ -5299,7 +5281,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5299
5281
  }, {
5300
5282
  key: "onPlay",
5301
5283
  value: function() {
5302
- this.state === N.ENDED && this.setState(N.RUNNING), this.removeClass(k.PAUSED), this.ended && this.removeClass(k.ENDED), !this.config.closePlayVideoFocus && this.focus();
5284
+ this.state === M.ENDED && this.setState(M.RUNNING), this.removeClass(k.PAUSED), this.ended && this.removeClass(k.ENDED), !this.config.closePlayVideoFocus && this.focus();
5303
5285
  }
5304
5286
  }, {
5305
5287
  key: "onPause",
@@ -5309,7 +5291,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5309
5291
  }, {
5310
5292
  key: "onEnded",
5311
5293
  value: function() {
5312
- this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(N.ENDED);
5294
+ this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(M.ENDED);
5313
5295
  }
5314
5296
  }, {
5315
5297
  key: "onError",
@@ -5347,7 +5329,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5347
5329
  }, {
5348
5330
  key: "onTimeupdate",
5349
5331
  value: function() {
5350
- !this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === N.NOTALLOW && this.duration && (this.setState(N.RUNNING), this.emit(De)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
5332
+ !this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === M.NOTALLOW && this.duration && (this.setState(M.RUNNING), this.emit(Le)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
5351
5333
  }
5352
5334
  }, {
5353
5335
  key: "onVolumechange",
@@ -5364,7 +5346,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5364
5346
  value: function(e, i, n) {
5365
5347
  if (!(!this.media || !i || !e)) {
5366
5348
  var s = f.typeOf(e) === "String" ? e : e.type || "";
5367
- n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(gt, W({
5349
+ n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(dt, W({
5368
5350
  eventType: s,
5369
5351
  action: i,
5370
5352
  currentTime: this.currentTime,
@@ -5406,13 +5388,13 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5406
5388
  this.videoPos.pi = c, u = u < 0 ? 0 : u;
5407
5389
  var h = {
5408
5390
  rotate: u
5409
- }, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, C = this.innerContainer, b = _.offsetWidth, w = C ? C.offsetHeight : _.offsetHeight, B = w, M = b;
5391
+ }, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, C = this.innerContainer, b = _.offsetWidth, w = C ? C.offsetHeight : _.offsetHeight, B = w, F = b;
5410
5392
  if (m % 2 === 0)
5411
- p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(B, "px");
5393
+ p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(F, "px"), this.media.style.height = "".concat(B, "px");
5412
5394
  else if (m % 2 === 1) {
5413
- M = w, B = b;
5395
+ F = w, B = b;
5414
5396
  var z = w - b;
5415
- g = -z / 2 / M * 100, h.x = m === 3 ? g + i / 2 : g - i / 2, d = z / 2 / B * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = p, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(B, "px");
5397
+ g = -z / 2 / F * 100, h.x = m === 3 ? g + i / 2 : g - i / 2, d = z / 2 / B * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = p, this.media.style.width = "".concat(F, "px"), this.media.style.height = "".concat(B, "px");
5416
5398
  }
5417
5399
  var D = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
5418
5400
  this.media.style.transform = D, this.media.style.webkitTransform = D;
@@ -5450,7 +5432,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5450
5432
  value: function(e) {
5451
5433
  var i = this;
5452
5434
  this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, pe(this, "playnext", function() {
5453
- i.start(), i.emit(dt, e);
5435
+ i.start(), i.emit(ht, e);
5454
5436
  });
5455
5437
  }
5456
5438
  }, {
@@ -5464,8 +5446,8 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5464
5446
  if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
5465
5447
  this._videoHeight = l, this._videoWidth = s;
5466
5448
  var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), _ = parseInt(g / p * 1e3, 10), C = g, b = p, w = {};
5467
- c === "auto" && _ > m || c === "fixWidth" ? (b = g / m * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / C, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (C = m * p / 1e3, w.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(M) {
5468
- e.root.style[M] = w[M];
5449
+ c === "auto" && _ > m || c === "fixWidth" ? (b = g / m * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / C, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (C = m * p / 1e3, w.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(F) {
5450
+ e.root.style[F] = w[F];
5469
5451
  }), (h === "fillHeight" && _ < m || h === "fillWidth" && _ > m) && this.setAttribute("data-xgfill", "cover");
5470
5452
  var B = {
5471
5453
  videoScale: m,
@@ -5522,15 +5504,15 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5522
5504
  return this._hasStart;
5523
5505
  },
5524
5506
  set: function(e) {
5525
- typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(N.READY), this.emit("hasstart"));
5507
+ typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(M.READY), this.emit("hasstart"));
5526
5508
  }
5527
5509
  }, {
5528
5510
  key: "isPlaying",
5529
5511
  get: function() {
5530
- return this._state === N.RUNNING || this._state === N.ENDED;
5512
+ return this._state === M.RUNNING || this._state === M.ENDED;
5531
5513
  },
5532
5514
  set: function(e) {
5533
- e ? this.setState(N.RUNNING) : this._state >= N.RUNNING && this.setState(N.ATTACHED);
5515
+ e ? this.setState(M.RUNNING) : this._state >= M.RUNNING && this.setState(M.ATTACHED);
5534
5516
  }
5535
5517
  }, {
5536
5518
  key: "definitionList",
@@ -5588,7 +5570,7 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5588
5570
  }, {
5589
5571
  key: "version",
5590
5572
  get: function() {
5591
- return jt;
5573
+ return Vt;
5592
5574
  }
5593
5575
  }, {
5594
5576
  key: "playerId",
@@ -5614,18 +5596,18 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5614
5596
  }, {
5615
5597
  key: "readyState",
5616
5598
  get: function() {
5617
- return L(I(r.prototype), "readyState", this);
5599
+ return A(I(r.prototype), "readyState", this);
5618
5600
  }
5619
5601
  }, {
5620
5602
  key: "error",
5621
5603
  get: function() {
5622
- var e = L(I(r.prototype), "error", this);
5604
+ var e = A(I(r.prototype), "error", this);
5623
5605
  return this.i18n[e] || e;
5624
5606
  }
5625
5607
  }, {
5626
5608
  key: "networkState",
5627
5609
  get: function() {
5628
- return L(I(r.prototype), "networkState", this);
5610
+ return A(I(r.prototype), "networkState", this);
5629
5611
  }
5630
5612
  }, {
5631
5613
  key: "fullscreenChanging",
@@ -5689,17 +5671,17 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5689
5671
  }, {
5690
5672
  key: "hook",
5691
5673
  value: function(e, i) {
5692
- return pt.call.apply(pt, [this].concat(Array.prototype.slice.call(arguments)));
5674
+ return gt.call.apply(gt, [this].concat(Array.prototype.slice.call(arguments)));
5693
5675
  }
5694
5676
  }, {
5695
5677
  key: "useHooks",
5696
5678
  value: function(e, i) {
5697
- return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
5679
+ return pt.call.apply(pt, [this].concat(Array.prototype.slice.call(arguments)));
5698
5680
  }
5699
5681
  }, {
5700
5682
  key: "removeHooks",
5701
5683
  value: function(e, i) {
5702
- return mt.call.apply(mt, [this].concat(Array.prototype.slice.call(arguments)));
5684
+ return vt.call.apply(vt, [this].concat(Array.prototype.slice.call(arguments)));
5703
5685
  }
5704
5686
  }, {
5705
5687
  key: "usePluginHooks",
@@ -5770,10 +5752,10 @@ var uo = ["play", "pause", "replay", "retry"], Si = 0, xi = 0, _e = null, Tt = /
5770
5752
  r.plugins || (r.plugins = {}), r.plugins[e] = i;
5771
5753
  }
5772
5754
  }]), r;
5773
- }(Us);
5774
- y(Tt, "defaultPreset", null);
5775
- y(Tt, "XgVideoProxy", null);
5776
- Tt.instManager = vn.getInstance();
5755
+ }(Hs);
5756
+ y(bt, "defaultPreset", null);
5757
+ y(bt, "XgVideoProxy", null);
5758
+ bt.instManager = vn.getInstance();
5777
5759
  function $() {
5778
5760
  return (/* @__PURE__ */ new Date()).getTime();
5779
5761
  }
@@ -5785,7 +5767,7 @@ var Ce = {
5785
5767
  WAIT_END: "waitingEnd",
5786
5768
  SEEK_START: "seekStart",
5787
5769
  SEEK_END: "seekEnd"
5788
- }, co = /* @__PURE__ */ function(a) {
5770
+ }, uo = /* @__PURE__ */ function(a) {
5789
5771
  x(r, a);
5790
5772
  var o = P(r);
5791
5773
  function r() {
@@ -5837,25 +5819,25 @@ var Ce = {
5837
5819
  key: "afterCreate",
5838
5820
  value: function() {
5839
5821
  var e = this;
5840
- this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = $(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Jt, function() {
5822
+ this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = $(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Zt, function() {
5841
5823
  var i = e._state, n = i.autoplayStart, s = i.isFFSend;
5842
5824
  e.startCostTime = $() - e.newPointTime, O.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(Ce.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = $(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
5843
5825
  }), this.on(ye, function() {
5844
5826
  e.vt = $(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
5845
5827
  var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
5846
5828
  O.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(Ce.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
5847
- }), this.on(Ct, this._onSeeking), this.on(me, this._onSeeked), this.on(ii, function() {
5829
+ }), this.on(_t, this._onSeeking), this.on(me, this._onSeeked), this.on(ti, function() {
5848
5830
  e.endState("destroy");
5849
- }), this.on(wt, function() {
5831
+ }), this.on(kt, function() {
5850
5832
  e.endState("urlChange"), O.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
5851
- }), this.on([Zt, ve], this._onPlaying), this.on(nt, this._onWaiting), this.on(it, this._onError), this.on(bt, function() {
5833
+ }), this.on([qt, ve], this._onPlaying), this.on(it, this._onWaiting), this.on(tt, this._onError), this.on(wt, function() {
5852
5834
  O.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
5853
5835
  });
5854
5836
  }
5855
5837
  }, {
5856
5838
  key: "_initOnceEvents",
5857
5839
  value: function() {
5858
- this.off(De, this._onAutoplayStart), this.off(ie, this._onTimeupdate), this.once(De, this._onAutoplayStart), this.once(ie, this._onTimeupdate);
5840
+ this.off(Le, this._onAutoplayStart), this.off(ie, this._onTimeupdate), this.once(Le, this._onAutoplayStart), this.once(ie, this._onTimeupdate);
5859
5841
  }
5860
5842
  }, {
5861
5843
  key: "_sendFF",
@@ -5936,13 +5918,13 @@ var Ce = {
5936
5918
  }
5937
5919
  }]), r;
5938
5920
  }(U);
5939
- function fo() {
5921
+ function co() {
5940
5922
  return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
5941
5923
  <path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
5942
5924
  </svg>
5943
5925
  `, "image/svg+xml").firstChild;
5944
5926
  }
5945
- var ho = /* @__PURE__ */ function(a) {
5927
+ var fo = /* @__PURE__ */ function(a) {
5946
5928
  x(r, a);
5947
5929
  var o = P(r);
5948
5930
  function r() {
@@ -5952,7 +5934,7 @@ var ho = /* @__PURE__ */ function(a) {
5952
5934
  key: "registerIcons",
5953
5935
  value: function() {
5954
5936
  return {
5955
- replay: fo
5937
+ replay: co
5956
5938
  };
5957
5939
  }
5958
5940
  }, {
@@ -5965,7 +5947,7 @@ var ho = /* @__PURE__ */ function(a) {
5965
5947
  pre: function(n) {
5966
5948
  n.preventDefault(), n.stopPropagation();
5967
5949
  }
5968
- }), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Oe, function() {
5950
+ }), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Re, function() {
5969
5951
  if (e.playerConfig.loop || f.addClass(e.player.root, "replay"), !e.config.disable) {
5970
5952
  e.show();
5971
5953
  var i = e.root.querySelector("path");
@@ -6025,7 +6007,7 @@ var ho = /* @__PURE__ */ function(a) {
6025
6007
  };
6026
6008
  }
6027
6009
  }]), r;
6028
- }(U), go = /* @__PURE__ */ function(a) {
6010
+ }(U), ho = /* @__PURE__ */ function(a) {
6029
6011
  x(r, a);
6030
6012
  var o = P(r);
6031
6013
  function r() {
@@ -6058,11 +6040,11 @@ var ho = /* @__PURE__ */ function(a) {
6058
6040
  key: "afterCreate",
6059
6041
  value: function() {
6060
6042
  var e = this;
6061
- this.on(Oe, function() {
6043
+ this.on(Re, function() {
6062
6044
  e.isEndedShow && f.removeClass(e.root, "hide");
6063
6045
  }), this.config.hideCanplay ? (this.once(ie, function() {
6064
6046
  e.onTimeUpdate();
6065
- }), this.on(wt, function() {
6047
+ }), this.on(kt, function() {
6066
6048
  f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(ie, function() {
6067
6049
  e.onTimeUpdate();
6068
6050
  });
@@ -6137,20 +6119,20 @@ var ho = /* @__PURE__ */ function(a) {
6137
6119
  }
6138
6120
  }]), r;
6139
6121
  }(U);
6140
- function si() {
6122
+ function ri() {
6141
6123
  return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
6142
6124
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
6143
6125
  </svg>
6144
6126
  `, "image/svg+xml").firstChild;
6145
6127
  }
6146
- function oi() {
6128
+ function si() {
6147
6129
  return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
6148
6130
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
6149
6131
  </svg>
6150
6132
  `, "image/svg+xml").firstChild;
6151
6133
  }
6152
6134
  var fe = {};
6153
- function po(a, o) {
6135
+ function go(a, o) {
6154
6136
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
6155
6137
  start: null,
6156
6138
  end: null
@@ -6168,7 +6150,7 @@ function Pi(a) {
6168
6150
  window.clearTimeout(fe[o].id), delete fe[o];
6169
6151
  });
6170
6152
  }
6171
- var vo = /* @__PURE__ */ function(a) {
6153
+ var po = /* @__PURE__ */ function(a) {
6172
6154
  x(r, a);
6173
6155
  var o = P(r);
6174
6156
  function r(t) {
@@ -6188,16 +6170,16 @@ var vo = /* @__PURE__ */ function(a) {
6188
6170
  key: "afterCreate",
6189
6171
  value: function() {
6190
6172
  var e = this, i = this.player, n = this.playerConfig;
6191
- this.initIcons(), this.once(ei, function() {
6173
+ this.initIcons(), this.once(Qt, function() {
6192
6174
  n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
6193
- }), this.on(De, this.onAutoplayStart), n.autoplay || this.show(), this.on(ti, function() {
6175
+ }), this.on(Le, this.onAutoplayStart), n.autoplay || this.show(), this.on(ei, function() {
6194
6176
  var s = e.config.mode === "auto" ? "auto-hide" : "hide";
6195
6177
  e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
6196
6178
  }), this.on(ne, function() {
6197
6179
  e.onPlayPause("play");
6198
6180
  }), this.on(Ye, function() {
6199
6181
  e.onPlayPause("pause");
6200
- }), this.on(bt, function() {
6182
+ }), this.on(wt, function() {
6201
6183
  e.onPlayerReset();
6202
6184
  }), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
6203
6185
  pre: function(l) {
@@ -6216,11 +6198,11 @@ var vo = /* @__PURE__ */ function(a) {
6216
6198
  value: function() {
6217
6199
  return {
6218
6200
  startPlay: {
6219
- icon: si,
6201
+ icon: ri,
6220
6202
  class: "xg-icon-play"
6221
6203
  },
6222
6204
  startPause: {
6223
- icon: oi,
6205
+ icon: si,
6224
6206
  class: "xg-icon-pause"
6225
6207
  }
6226
6208
  };
@@ -6260,7 +6242,7 @@ var vo = /* @__PURE__ */ function(a) {
6260
6242
  key: "animate",
6261
6243
  value: function(e) {
6262
6244
  var i = this;
6263
- this._animateId = po("pauseplay", 400, {
6245
+ this._animateId = go("pauseplay", 400, {
6264
6246
  start: function() {
6265
6247
  f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
6266
6248
  },
@@ -6278,16 +6260,16 @@ var vo = /* @__PURE__ */ function(a) {
6278
6260
  key: "switchPausePlay",
6279
6261
  value: function(e) {
6280
6262
  var i = this.player;
6281
- if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state < N.READY)) {
6263
+ if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state < M.READY)) {
6282
6264
  var n = this.player.paused;
6283
- !n && i.state === N.RUNNING ? i.pause() : i.play();
6265
+ !n && i.state === M.RUNNING ? i.pause() : i.play();
6284
6266
  }
6285
6267
  }
6286
6268
  }, {
6287
6269
  key: "onPlayPause",
6288
6270
  value: function(e) {
6289
6271
  var i = this.config, n = this.player;
6290
- if (!(!n || n.state < N.RUNNING || !this.autoPlayStart)) {
6272
+ if (!(!n || n.state < M.RUNNING || !this.autoPlayStart)) {
6291
6273
  if (i.mode === "show") {
6292
6274
  this.switchStatus(), this.show();
6293
6275
  return;
@@ -6343,7 +6325,7 @@ var vo = /* @__PURE__ */ function(a) {
6343
6325
  };
6344
6326
  }
6345
6327
  }]), r;
6346
- }(U), mo = /* @__PURE__ */ function(a) {
6328
+ }(U), vo = /* @__PURE__ */ function(a) {
6347
6329
  x(r, a);
6348
6330
  var o = P(r);
6349
6331
  function r() {
@@ -6432,7 +6414,7 @@ var Ii = /* @__PURE__ */ function(a) {
6432
6414
  key: "defaultConfig",
6433
6415
  get: function() {
6434
6416
  return {
6435
- position: j.CONTROLS_RIGHT,
6417
+ position: V.CONTROLS_RIGHT,
6436
6418
  index: 10
6437
6419
  };
6438
6420
  }
@@ -6442,8 +6424,8 @@ function Ai(a) {
6442
6424
  var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
6443
6425
  return r && o;
6444
6426
  }
6445
- var ai = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mn = ai.length;
6446
- function yo() {
6427
+ var oi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], mn = oi.length;
6428
+ function mo() {
6447
6429
  for (var a = {
6448
6430
  width: 0,
6449
6431
  height: 0,
@@ -6452,24 +6434,24 @@ function yo() {
6452
6434
  outerWidth: 0,
6453
6435
  outerHeight: 0
6454
6436
  }, o = 0; o < mn; o++) {
6455
- var r = ai[o];
6437
+ var r = oi[o];
6456
6438
  a[r] = 0;
6457
6439
  }
6458
6440
  return a;
6459
6441
  }
6460
- function _o(a) {
6442
+ function yo(a) {
6461
6443
  var o = window.getComputedStyle(a);
6462
6444
  return o;
6463
6445
  }
6464
6446
  function Li(a) {
6465
6447
  if (typeof a == "string" && (a = document.querySelector(a)), !(!a || X(a) !== "object" || !a.nodeType)) {
6466
- var o = _o(a);
6448
+ var o = yo(a);
6467
6449
  if (o.display === "none")
6468
- return yo();
6450
+ return mo();
6469
6451
  var r = {};
6470
6452
  r.width = a.offsetWidth, r.height = a.offsetHeight;
6471
6453
  for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < mn; e++) {
6472
- var i = ai[e], n = o[i], s = parseFloat(n);
6454
+ var i = oi[e], n = o[i], s = parseFloat(n);
6473
6455
  r[i] = Number.isNaN(s) ? 0 : s;
6474
6456
  }
6475
6457
  var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = Ai(o.width);
@@ -6478,14 +6460,14 @@ function Li(a) {
6478
6460
  return _ !== !1 && (r.height = _ + (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 + h, r;
6479
6461
  }
6480
6462
  }
6481
- function Dt(a, o) {
6463
+ function Lt(a, o) {
6482
6464
  for (var r = 0; r < a.length; r++) {
6483
6465
  var t = a[r];
6484
6466
  if (t.identifier === o)
6485
6467
  return t;
6486
6468
  }
6487
6469
  }
6488
- var Rt = {
6470
+ var Dt = {
6489
6471
  START: "dragStart",
6490
6472
  MOVE: "dragMove",
6491
6473
  ENDED: "dragEnded"
@@ -6493,7 +6475,7 @@ var Rt = {
6493
6475
  mousedown: ["mousemove", "mouseup"],
6494
6476
  touchstart: ["touchmove", "touchend", "touchcancel"],
6495
6477
  pointerdown: ["pointermove", "pointerup", "pointercancel"]
6496
- }, Co = /* @__PURE__ */ function(a) {
6478
+ }, _o = /* @__PURE__ */ function(a) {
6497
6479
  x(r, a);
6498
6480
  var o = P(r);
6499
6481
  function r(t) {
@@ -6504,7 +6486,7 @@ var Rt = {
6504
6486
  }, e.startPos = {
6505
6487
  x: 0,
6506
6488
  y: 0
6507
- }, 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 ? qt(e) : (e._bindStartEvent(), e);
6489
+ }, 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 ? Xt(e) : (e._bindStartEvent(), e);
6508
6490
  }
6509
6491
  return E(r, [{
6510
6492
  key: "_bindStartEvent",
@@ -6596,19 +6578,19 @@ var Rt = {
6596
6578
  }, {
6597
6579
  key: "ontouchmove",
6598
6580
  value: function(e) {
6599
- var i = Dt(e.changedTouches, this.touchIdentifier);
6581
+ var i = Lt(e.changedTouches, this.touchIdentifier);
6600
6582
  i && this.dragMove(e, i);
6601
6583
  }
6602
6584
  }, {
6603
6585
  key: "ontouchend",
6604
6586
  value: function(e) {
6605
- var i = Dt(e.changedTouches, this.touchIdentifier);
6587
+ var i = Lt(e.changedTouches, this.touchIdentifier);
6606
6588
  i && this.dragEnd(e, i), e.preventDefault();
6607
6589
  }
6608
6590
  }, {
6609
6591
  key: "ontouchcancel",
6610
6592
  value: function(e) {
6611
- var i = Dt(e.changedTouches, this.touchIdentifier);
6593
+ var i = Lt(e.changedTouches, this.touchIdentifier);
6612
6594
  i && this.dragCancel(e, i);
6613
6595
  }
6614
6596
  }, {
@@ -6623,12 +6605,12 @@ var Rt = {
6623
6605
  }, {
6624
6606
  key: "dragRealStart",
6625
6607
  value: function(e, i) {
6626
- this.isDragging = !0, this.animate(), this.emit(Rt.START, this.startPos);
6608
+ this.isDragging = !0, this.animate(), this.emit(Dt.START, this.startPos);
6627
6609
  }
6628
6610
  }, {
6629
6611
  key: "dragEnd",
6630
6612
  value: function(e, i) {
6631
- this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Rt.ENDED)), this.presetInfo());
6613
+ this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Dt.ENDED)), this.presetInfo());
6632
6614
  }
6633
6615
  }, {
6634
6616
  key: "_dragPointerMove",
@@ -6644,7 +6626,7 @@ var Rt = {
6644
6626
  value: function(e, i) {
6645
6627
  if (e = e || window.event, !!this.isDown) {
6646
6628
  var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
6647
- c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(Rt.MOVE, this.position);
6629
+ c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(Dt.MOVE, this.position);
6648
6630
  }
6649
6631
  }
6650
6632
  }, {
@@ -6703,7 +6685,7 @@ var Rt = {
6703
6685
  return parseInt(e, 10);
6704
6686
  }
6705
6687
  }]), r;
6706
- }($i), ko = /* @__PURE__ */ function(a) {
6688
+ }($i), Co = /* @__PURE__ */ function(a) {
6707
6689
  x(r, a);
6708
6690
  var o = P(r);
6709
6691
  function r(t) {
@@ -6759,7 +6741,7 @@ var Rt = {
6759
6741
  i.controls.registerPlugin(Ii, s, Ii.pluginName);
6760
6742
  }
6761
6743
  var l = f.checkTouchSupport() ? "touchend" : "click";
6762
- this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Co(this.player.root, {
6744
+ this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new _o(this.player.root, {
6763
6745
  handle: this.root
6764
6746
  })), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
6765
6747
  }
@@ -6769,11 +6751,11 @@ var Rt = {
6769
6751
  value: function() {
6770
6752
  return {
6771
6753
  play: {
6772
- icon: si,
6754
+ icon: ri,
6773
6755
  class: "xg-icon-play"
6774
6756
  },
6775
6757
  pause: {
6776
- icon: oi,
6758
+ icon: si,
6777
6759
  class: "xg-icon-pause"
6778
6760
  }
6779
6761
  };
@@ -6792,7 +6774,7 @@ var Rt = {
6792
6774
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
6793
6775
  this.lastStyle = {}, f.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
6794
6776
  e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
6795
- }), n.fluid && (s.style["padding-top"] = ""), this.emit(ht, !0), i.isMini = this.isMini = !0;
6777
+ }), n.fluid && (s.style["padding-top"] = ""), this.emit(ft, !0), i.isMini = this.isMini = !0;
6796
6778
  }
6797
6779
  }
6798
6780
  }, {
@@ -6804,7 +6786,7 @@ var Rt = {
6804
6786
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
6805
6787
  f.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
6806
6788
  s.style[l] = e.lastStyle[l];
6807
- }), 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(ht, !1), this.isMini = i.isMini = !1;
6789
+ }), 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(ft, !1), this.isMini = i.isMini = !1;
6808
6790
  }
6809
6791
  }, {
6810
6792
  key: "destroy",
@@ -6853,11 +6835,11 @@ var Rt = {
6853
6835
  };
6854
6836
  }
6855
6837
  }]), r;
6856
- }(U), st = {
6838
+ }(U), rt = {
6857
6839
  mouseenter: "onMouseEnter",
6858
6840
  mouseleave: "onMouseLeave",
6859
6841
  mousemove: "onMouseMove"
6860
- }, Ot = ["videoClick", "videoDbClick"], Ft = /* @__PURE__ */ function(a) {
6842
+ }, Rt = ["videoClick", "videoDbClick"], Ot = /* @__PURE__ */ function(a) {
6861
6843
  x(r, a);
6862
6844
  var o = P(r);
6863
6845
  function r() {
@@ -6886,7 +6868,7 @@ var Rt = {
6886
6868
  }), y(v(t), "onVideoClick", function(s) {
6887
6869
  var l = v(t), u = l.player, c = l.playerConfig;
6888
6870
  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() {
6889
- t._clickCount && (t._clickCount--, pe(v(t), Ot[0], function(h, d) {
6871
+ t._clickCount && (t._clickCount--, pe(v(t), Rt[0], function(h, d) {
6890
6872
  t.switchPlayPause(d.e);
6891
6873
  }, {
6892
6874
  e: s,
@@ -6900,7 +6882,7 @@ var Rt = {
6900
6882
  t._clickCount = 0;
6901
6883
  return;
6902
6884
  }
6903
- t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), pe(v(t), Ot[1], function(h, d) {
6885
+ t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), pe(v(t), Rt[1], function(h, d) {
6904
6886
  t.emitUserAction(d.e, "switch_fullscreen", {
6905
6887
  props: "fullscreen",
6906
6888
  from: u.fullscreen,
@@ -6917,7 +6899,7 @@ var Rt = {
6917
6899
  key: "afterCreate",
6918
6900
  value: function() {
6919
6901
  var e = this;
6920
- this._clickCount = 0, Ot.map(function(n) {
6902
+ this._clickCount = 0, Rt.map(function(n) {
6921
6903
  e.__hooks[n] = null;
6922
6904
  });
6923
6905
  var i = this.playerConfig.isMobileSimulateMode;
@@ -6927,8 +6909,8 @@ var Rt = {
6927
6909
  key: "initEvents",
6928
6910
  value: function() {
6929
6911
  var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
6930
- s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(st).map(function(u) {
6931
- s.addEventListener(u, e[st[u]], !1);
6912
+ s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(rt).map(function(u) {
6913
+ s.addEventListener(u, e[rt[u]], !1);
6932
6914
  }), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
6933
6915
  }
6934
6916
  }, {
@@ -6950,8 +6932,8 @@ var Rt = {
6950
6932
  key: "destroy",
6951
6933
  value: function() {
6952
6934
  var e = this, i = this.player, n = i.video, s = i.root;
6953
- 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) {
6954
- s.removeEventListener(l, e[st[l]], !1);
6935
+ 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(rt).map(function(l) {
6936
+ s.removeEventListener(l, e[rt[l]], !1);
6955
6937
  });
6956
6938
  }
6957
6939
  }], [{
@@ -6973,12 +6955,12 @@ var Rt = {
6973
6955
  TOUCH_MOVE: "touchmove",
6974
6956
  TOUCH_START: "touchstart",
6975
6957
  TOUCH_END: "touchend"
6976
- }, wo = {
6958
+ }, ko = {
6977
6959
  start: "touchstart",
6978
6960
  end: "touchend",
6979
6961
  move: "touchmove",
6980
6962
  cancel: "touchcancel"
6981
- }, bo = {
6963
+ }, wo = {
6982
6964
  start: "mousedown",
6983
6965
  end: "mouseup",
6984
6966
  move: "mousemove",
@@ -6987,7 +6969,7 @@ var Rt = {
6987
6969
  function Ri(a) {
6988
6970
  return a && a.length > 0 ? a[a.length - 1] : null;
6989
6971
  }
6990
- function To() {
6972
+ function bo() {
6991
6973
  return {
6992
6974
  pressDelay: 600,
6993
6975
  dbClickDelay: 200,
@@ -6997,7 +6979,7 @@ function To() {
6997
6979
  needPreventDefault: !0
6998
6980
  };
6999
6981
  }
7000
- var Eo = /* @__PURE__ */ function() {
6982
+ var To = /* @__PURE__ */ function() {
7001
6983
  function a(o) {
7002
6984
  var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
7003
6985
  eventType: "touch"
@@ -7018,9 +7000,9 @@ var Eo = /* @__PURE__ */ function() {
7018
7000
  start: !1,
7019
7001
  x: 0,
7020
7002
  y: 0
7021
- }, this.config = To(), Object.keys(t).map(function(e) {
7003
+ }, this.config = bo(), Object.keys(t).map(function(e) {
7022
7004
  r.config[e] = t[e];
7023
- }), this.root = o, this.events = t.eventType === "mouse" ? bo : wo, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7005
+ }), this.root = o, this.events = t.eventType === "mouse" ? wo : ko, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7024
7006
  }
7025
7007
  return E(a, [{
7026
7008
  key: "_initEvent",
@@ -7099,7 +7081,7 @@ var Eo = /* @__PURE__ */ function() {
7099
7081
  }
7100
7082
  }]), a;
7101
7083
  }();
7102
- function So() {
7084
+ function Eo() {
7103
7085
  return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
7104
7086
  xmlns:xlink="http://www.w3.org/1999/xlink">
7105
7087
  <path opacity="0.54"
@@ -7108,12 +7090,12 @@ function So() {
7108
7090
  <path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
7109
7091
  </svg>`, "image/svg+xml").firstChild;
7110
7092
  }
7111
- var Be = {
7093
+ var Ne = {
7112
7094
  AUTO: "auto",
7113
7095
  SEEKING: "seeking",
7114
7096
  PLAYBACK: "playbackrate",
7115
7097
  LIGHT: ""
7116
- }, Mt = ["videoClick", "videoDbClick"], xo = /* @__PURE__ */ function(a) {
7098
+ }, Ft = ["videoClick", "videoDbClick"], So = /* @__PURE__ */ function(a) {
7117
7099
  x(r, a);
7118
7100
  var o = P(r);
7119
7101
  function r(t) {
@@ -7147,7 +7129,7 @@ var Be = {
7147
7129
  }, 10), !!l.isStart) {
7148
7130
  l.scope > -1 && i.cancelable && i.preventDefault();
7149
7131
  var c = e.config, h = c.disableGesture, d = c.gestureX;
7150
- !h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Be.AUTO);
7132
+ !h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Ne.AUTO);
7151
7133
  }
7152
7134
  }), y(v(e), "onRootTouchMove", function(i) {
7153
7135
  e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
@@ -7185,7 +7167,7 @@ var Be = {
7185
7167
  value: function() {
7186
7168
  return {
7187
7169
  seekTipIcon: {
7188
- icon: So,
7170
+ icon: Eo,
7189
7171
  class: "xg-seek-pre"
7190
7172
  }
7191
7173
  };
@@ -7194,13 +7176,13 @@ var Be = {
7194
7176
  key: "afterCreate",
7195
7177
  value: function() {
7196
7178
  var e = this;
7197
- Mt.map(function(d) {
7179
+ Ft.map(function(d) {
7198
7180
  e.__hooks[d] = null;
7199
7181
  });
7200
7182
  var i = this.playerConfig, n = this.config, s = this.player;
7201
7183
  i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
7202
7184
  var l = this.domEventType === "mouse" ? "mouse" : "touch";
7203
- this.touch = new Eo(this.root, {
7185
+ this.touch = new To(this.root, {
7204
7186
  eventType: l,
7205
7187
  needPreventDefault: !this.config.disableGesture
7206
7188
  }), this.root.addEventListener("contextmenu", function(d) {
@@ -7210,7 +7192,7 @@ var Be = {
7210
7192
  u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Ee, function() {
7211
7193
  var d = e.player, g = e.config;
7212
7194
  d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
7213
- }), this.on([ve, Oe], function() {
7195
+ }), this.on([ve, Re], function() {
7214
7196
  var d = e.pos, g = d.time, p = d.isStart;
7215
7197
  !p && g > 0 && (e.pos.time = 0);
7216
7198
  });
@@ -7233,7 +7215,7 @@ var Be = {
7233
7215
  e.activeSeekNote(d.currentTime, d.forward);
7234
7216
  }), ["dragend", "click"].forEach(function(d) {
7235
7217
  h.addCallBack(d, function() {
7236
- e.changeAction(Be.AUTO);
7218
+ e.changeAction(Ne.AUTO);
7237
7219
  });
7238
7220
  }));
7239
7221
  }
@@ -7339,7 +7321,7 @@ var Be = {
7339
7321
  }, 500);
7340
7322
  break;
7341
7323
  }
7342
- this.changeAction(Be.AUTO);
7324
+ this.changeAction(Ne.AUTO);
7343
7325
  }
7344
7326
  }, {
7345
7327
  key: "checkIsRootTarget",
@@ -7361,7 +7343,7 @@ var Be = {
7361
7343
  key: "clickHandler",
7362
7344
  value: function(e) {
7363
7345
  var i = this.player, n = this.config, s = this.playerConfig;
7364
- if (i.state < N.RUNNING) {
7346
+ if (i.state < M.RUNNING) {
7365
7347
  s.closeVideoClick || (this.sendUseAction(f.createEvent("click")), i.play());
7366
7348
  return;
7367
7349
  }
@@ -7371,13 +7353,13 @@ var Be = {
7371
7353
  key: "dbClickHandler",
7372
7354
  value: function(e) {
7373
7355
  var i = this.config, n = this.player;
7374
- !i.closedbClick && n.state >= N.RUNNING && (this.sendUseAction(f.createEvent("dblclick")), this.switchPlayPause());
7356
+ !i.closedbClick && n.state >= M.RUNNING && (this.sendUseAction(f.createEvent("dblclick")), this.switchPlayPause());
7375
7357
  }
7376
7358
  }, {
7377
7359
  key: "onClick",
7378
7360
  value: function(e) {
7379
7361
  var i = this, n = this.player;
7380
- pe(this, Mt[0], function(s, l) {
7362
+ pe(this, Ft[0], function(s, l) {
7381
7363
  i.clickHandler(l.e);
7382
7364
  }, {
7383
7365
  e,
@@ -7388,7 +7370,7 @@ var Be = {
7388
7370
  key: "onDbClick",
7389
7371
  value: function(e) {
7390
7372
  var i = this, n = this.player;
7391
- pe(this, Mt[1], function(s, l) {
7373
+ pe(this, Ft[1], function(s, l) {
7392
7374
  i.dbClickHandler(l.e);
7393
7375
  }, {
7394
7376
  e,
@@ -7403,7 +7385,7 @@ var Be = {
7403
7385
  prop: "playbackRate",
7404
7386
  from: s.playbackRate,
7405
7387
  to: n.pressRate
7406
- }), s.playbackRate = n.pressRate, this.changeAction(Be.PLAYBACK));
7388
+ }), s.playbackRate = n.pressRate, this.changeAction(Ne.PLAYBACK));
7407
7389
  }
7408
7390
  }, {
7409
7391
  key: "onPressEnd",
@@ -7413,7 +7395,7 @@ var Be = {
7413
7395
  prop: "playbackRate",
7414
7396
  from: s.playbackRate,
7415
7397
  to: i.rate
7416
- }), s.playbackRate = i.rate, i.rate = 1, this.changeAction(Be.AUTO));
7398
+ }), s.playbackRate = i.rate, i.rate = 1, this.changeAction(Ne.AUTO));
7417
7399
  }
7418
7400
  }, {
7419
7401
  key: "updateTime",
@@ -7445,7 +7427,7 @@ var Be = {
7445
7427
  value: function(e) {
7446
7428
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = this.player, s = this.config, l = !(this.duration !== 1 / 0 && this.duration > 0);
7447
7429
  if (!(!e || typeof e != "number" || l || s.disableActive)) {
7448
- e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(Be.SEEKING);
7430
+ e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(Ne.SEEKING);
7449
7431
  var u = n.plugins.start;
7450
7432
  u && u.focusHide(), this.find(".xg-dur").innerHTML = f.format(this.duration), this.find(".xg-cur").innerHTML = f.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? f.removeClass(this.find(".xg-seek-show"), "xg-back") : f.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
7451
7433
  }
@@ -7460,7 +7442,7 @@ var Be = {
7460
7442
  key: "switchPlayPause",
7461
7443
  value: function() {
7462
7444
  var e = this.player;
7463
- if (e.state < N.ATTACHED)
7445
+ if (e.state < M.ATTACHED)
7464
7446
  return !1;
7465
7447
  e.ended || (e.paused ? e.play() : e.pause());
7466
7448
  }
@@ -7542,7 +7524,7 @@ var Be = {
7542
7524
  }
7543
7525
  }]), r;
7544
7526
  }(U);
7545
- function Po(a) {
7527
+ function xo(a) {
7546
7528
  a.preventDefault(), a.returnValue = !1;
7547
7529
  }
7548
7530
  function Oi(a) {
@@ -7791,7 +7773,7 @@ var Fi = /* @__PURE__ */ function(a) {
7791
7773
  isPress: n
7792
7774
  }, this.keyCodeMap[s[l]]));
7793
7775
  }
7794
- Po(i), i.stopPropagation();
7776
+ xo(i), i.stopPropagation();
7795
7777
  break;
7796
7778
  }
7797
7779
  }
@@ -7833,13 +7815,13 @@ var Fi = /* @__PURE__ */ function(a) {
7833
7815
  }
7834
7816
  }]), r;
7835
7817
  }(Te);
7836
- function Io() {
7818
+ function Po() {
7837
7819
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
7838
7820
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
7839
7821
  </svg>
7840
7822
  `, "image/svg+xml").firstChild;
7841
7823
  }
7842
- var Ao = /* @__PURE__ */ function(a) {
7824
+ var Io = /* @__PURE__ */ function(a) {
7843
7825
  x(r, a);
7844
7826
  var o = P(r);
7845
7827
  function r() {
@@ -7849,7 +7831,7 @@ var Ao = /* @__PURE__ */ function(a) {
7849
7831
  key: "registerIcons",
7850
7832
  value: function() {
7851
7833
  return {
7852
- loadingIcon: Io
7834
+ loadingIcon: Po
7853
7835
  };
7854
7836
  }
7855
7837
  }, {
@@ -7874,11 +7856,11 @@ var Ao = /* @__PURE__ */ function(a) {
7874
7856
  key: "defaultConfig",
7875
7857
  get: function() {
7876
7858
  return {
7877
- position: j.ROOT
7859
+ position: V.ROOT
7878
7860
  };
7879
7861
  }
7880
7862
  }]), r;
7881
- }(U), Lo = [{
7863
+ }(U), Ao = [{
7882
7864
  tag: "xg-cache",
7883
7865
  className: "xgplayer-progress-cache",
7884
7866
  styleKey: "cachedColor"
@@ -7886,7 +7868,7 @@ var Ao = /* @__PURE__ */ function(a) {
7886
7868
  tag: "xg-played",
7887
7869
  className: "xgplayer-progress-played",
7888
7870
  styleKey: "playedColor"
7889
- }], Do = /* @__PURE__ */ function() {
7871
+ }], Lo = /* @__PURE__ */ function() {
7890
7872
  function a(o) {
7891
7873
  T(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
7892
7874
  percent: 1
@@ -8073,7 +8055,7 @@ var Ao = /* @__PURE__ */ function(a) {
8073
8055
  var l = f.createDom("xg-inner", "", {
8074
8056
  style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
8075
8057
  }, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
8076
- return r.root.appendChild(l), Lo.forEach(function(u) {
8058
+ return r.root.appendChild(l), Ao.forEach(function(u) {
8077
8059
  l.appendChild(f.createDom(u.tag, "", {
8078
8060
  style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
8079
8061
  }, u.className));
@@ -8089,7 +8071,7 @@ var Ao = /* @__PURE__ */ function(a) {
8089
8071
  }(), Mi = {
8090
8072
  POINT: "inner-focus-point",
8091
8073
  HIGHLIGHT: "inner-focus-highlight"
8092
- }, Ro = /* @__PURE__ */ function(a) {
8074
+ }, Do = /* @__PURE__ */ function(a) {
8093
8075
  x(r, a);
8094
8076
  var o = P(r);
8095
8077
  function r(t) {
@@ -8219,7 +8201,7 @@ var Ao = /* @__PURE__ */ function(a) {
8219
8201
  e.emitUserAction("fragment_focus", "fragment_focus", u);
8220
8202
  }
8221
8203
  });
8222
- this.innerList ? this.innerList.reset(s) : (this.innerList = new Do(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
8204
+ this.innerList ? this.innerList.reset(s) : (this.innerList = new Lo(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
8223
8205
  e[l] = e.innerList[l].bind(e.innerList);
8224
8206
  }));
8225
8207
  }
@@ -8255,9 +8237,9 @@ var Ao = /* @__PURE__ */ function(a) {
8255
8237
  e.onTimeupdate(), e.onCacheUpdate();
8256
8238
  }), this.on(Zi, function() {
8257
8239
  e.onCacheUpdate();
8258
- }), this.on(Oe, function() {
8240
+ }), this.on(Re, function() {
8259
8241
  e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
8260
- }), this.on(Fe, function() {
8242
+ }), this.on(Oe, function() {
8261
8243
  e.onReset();
8262
8244
  }), this.on(be, function() {
8263
8245
  e.onVideoResize();
@@ -8472,7 +8454,7 @@ var Ao = /* @__PURE__ */ function(a) {
8472
8454
  key: "defaultConfig",
8473
8455
  get: function() {
8474
8456
  return {
8475
- position: j.CONTROLS_CENTER,
8457
+ position: V.CONTROLS_CENTER,
8476
8458
  index: 0,
8477
8459
  disable: !1,
8478
8460
  isDragingSeek: !0,
@@ -8500,7 +8482,7 @@ var Ao = /* @__PURE__ */ function(a) {
8500
8482
  return Mi;
8501
8483
  }
8502
8484
  }]), r;
8503
- }(U), Me = /* @__PURE__ */ function(a) {
8485
+ }(U), Fe = /* @__PURE__ */ function(a) {
8504
8486
  x(r, a);
8505
8487
  var o = P(r);
8506
8488
  function r() {
@@ -8529,7 +8511,7 @@ var Ao = /* @__PURE__ */ function(a) {
8529
8511
  this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
8530
8512
  }
8531
8513
  }]), r;
8532
- }(U), Oo = /* @__PURE__ */ function(a) {
8514
+ }(U), Ro = /* @__PURE__ */ function(a) {
8533
8515
  x(r, a);
8534
8516
  var o = P(r);
8535
8517
  function r() {
@@ -8539,9 +8521,9 @@ var Ao = /* @__PURE__ */ function(a) {
8539
8521
  key: "afterCreate",
8540
8522
  value: function() {
8541
8523
  var e = this;
8542
- L(I(r.prototype), "afterCreate", this).call(this);
8524
+ A(I(r.prototype), "afterCreate", this).call(this);
8543
8525
  var i = this.player, n = this.config;
8544
- n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ye, it, Fe], function() {
8526
+ n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([Ye, tt, Oe], function() {
8545
8527
  e.animate(i.paused);
8546
8528
  }), this.on(ne, function() {
8547
8529
  e.animate(i.paused);
@@ -8552,11 +8534,11 @@ var Ao = /* @__PURE__ */ function(a) {
8552
8534
  value: function() {
8553
8535
  return {
8554
8536
  play: {
8555
- icon: si,
8537
+ icon: ri,
8556
8538
  class: "xg-icon-play"
8557
8539
  },
8558
8540
  pause: {
8559
- icon: oi,
8541
+ icon: si,
8560
8542
  class: "xg-icon-pause"
8561
8543
  }
8562
8544
  };
@@ -8589,7 +8571,7 @@ var Ao = /* @__PURE__ */ function(a) {
8589
8571
  }, {
8590
8572
  key: "destroy",
8591
8573
  value: function() {
8592
- L(I(r.prototype), "destroy", this).call(this), this.unbind(["touchend", "click"], this.btnClick);
8574
+ A(I(r.prototype), "destroy", this).call(this), this.unbind(["touchend", "click"], this.btnClick);
8593
8575
  }
8594
8576
  }, {
8595
8577
  key: "render",
@@ -8610,21 +8592,21 @@ var Ao = /* @__PURE__ */ function(a) {
8610
8592
  key: "defaultConfig",
8611
8593
  get: function() {
8612
8594
  return {
8613
- position: j.CONTROLS_LEFT,
8595
+ position: V.CONTROLS_LEFT,
8614
8596
  index: 0,
8615
8597
  disable: !1
8616
8598
  };
8617
8599
  }
8618
8600
  }]), r;
8619
- }(Me);
8620
- function Fo() {
8601
+ }(Fe);
8602
+ function Oo() {
8621
8603
  return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
8622
8604
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8623
8605
  <path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
8624
8606
  </g>
8625
8607
  </svg>`, "image/svg+xml").firstChild;
8626
8608
  }
8627
- var Mo = /* @__PURE__ */ function(a) {
8609
+ var Fo = /* @__PURE__ */ function(a) {
8628
8610
  x(r, a);
8629
8611
  var o = P(r);
8630
8612
  function r() {
@@ -8643,7 +8625,7 @@ var Mo = /* @__PURE__ */ function(a) {
8643
8625
  value: function() {
8644
8626
  return {
8645
8627
  screenBack: {
8646
- icon: Fo,
8628
+ icon: Oo,
8647
8629
  class: "xg-fullscreen-back"
8648
8630
  }
8649
8631
  };
@@ -8679,25 +8661,25 @@ var Mo = /* @__PURE__ */ function(a) {
8679
8661
  key: "defaultConfig",
8680
8662
  get: function() {
8681
8663
  return {
8682
- position: j.ROOT_TOP,
8664
+ position: V.ROOT_TOP,
8683
8665
  index: 0
8684
8666
  };
8685
8667
  }
8686
8668
  }]), r;
8687
8669
  }(U);
8688
- function No() {
8670
+ function Mo() {
8689
8671
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8690
8672
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
8691
8673
  </svg>
8692
8674
  `, "image/svg+xml").firstChild;
8693
8675
  }
8694
- function Bo() {
8676
+ function No() {
8695
8677
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8696
8678
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
8697
8679
  </svg>
8698
8680
  `, "image/svg+xml").firstChild;
8699
8681
  }
8700
- var Ho = /* @__PURE__ */ function(a) {
8682
+ var Bo = /* @__PURE__ */ function(a) {
8701
8683
  x(r, a);
8702
8684
  var o = P(r);
8703
8685
  function r() {
@@ -8713,7 +8695,7 @@ var Ho = /* @__PURE__ */ function(a) {
8713
8695
  key: "afterCreate",
8714
8696
  value: function() {
8715
8697
  var e = this;
8716
- L(I(r.prototype), "afterCreate", this).call(this);
8698
+ A(I(r.prototype), "afterCreate", this).call(this);
8717
8699
  var i = this.config, n = this.playerConfig;
8718
8700
  if (!i.disable) {
8719
8701
  i.target && (this.playerConfig.fullscreenTarget = this.config.target);
@@ -8732,7 +8714,7 @@ var Ho = /* @__PURE__ */ function(a) {
8732
8714
  var u = e.find(".xg-tips");
8733
8715
  u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
8734
8716
  }), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
8735
- plugin: Mo,
8717
+ plugin: Fo,
8736
8718
  options: {
8737
8719
  config: {
8738
8720
  onClick: function(u) {
@@ -8748,11 +8730,11 @@ var Ho = /* @__PURE__ */ function(a) {
8748
8730
  value: function() {
8749
8731
  return {
8750
8732
  fullscreen: {
8751
- icon: No,
8733
+ icon: Mo,
8752
8734
  class: "xg-get-fullscreen"
8753
8735
  },
8754
8736
  exitFullscreen: {
8755
- icon: Bo,
8737
+ icon: No,
8756
8738
  class: "xg-exit-fullscreen"
8757
8739
  }
8758
8740
  };
@@ -8760,7 +8742,7 @@ var Ho = /* @__PURE__ */ function(a) {
8760
8742
  }, {
8761
8743
  key: "destroy",
8762
8744
  value: function() {
8763
- L(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", R.device === "mobile" ? "touchend" : "click", this.handleFullscreen), R.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
8745
+ A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", R.device === "mobile" ? "touchend" : "click", this.handleFullscreen), R.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
8764
8746
  }
8765
8747
  }, {
8766
8748
  key: "initIcons",
@@ -8820,7 +8802,7 @@ var Ho = /* @__PURE__ */ function(a) {
8820
8802
  key: "defaultConfig",
8821
8803
  get: function() {
8822
8804
  return {
8823
- position: j.CONTROLS_RIGHT,
8805
+ position: V.CONTROLS_RIGHT,
8824
8806
  index: 0,
8825
8807
  useCssFullscreen: !1,
8826
8808
  rotateFullscreen: !1,
@@ -8833,7 +8815,7 @@ var Ho = /* @__PURE__ */ function(a) {
8833
8815
  };
8834
8816
  }
8835
8817
  }]), r;
8836
- }(Me), Uo = /* @__PURE__ */ function(a) {
8818
+ }(Fe), Ho = /* @__PURE__ */ function(a) {
8837
8819
  x(r, a);
8838
8820
  var o = P(r);
8839
8821
  function r(t) {
@@ -8863,9 +8845,9 @@ var Ho = /* @__PURE__ */ function(a) {
8863
8845
  var e = this, i = this.player.controls.config.mode;
8864
8846
  this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Ee, me, ie], function(n) {
8865
8847
  n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
8866
- }), this.on(Oe, function() {
8848
+ }), this.on(Re, function() {
8867
8849
  e.onTimeUpdate(!0);
8868
- }), this.on(Fe, function() {
8850
+ }), this.on(Oe, function() {
8869
8851
  e.onReset();
8870
8852
  }));
8871
8853
  }
@@ -8977,13 +8959,13 @@ var Ho = /* @__PURE__ */ function(a) {
8977
8959
  key: "defaultConfig",
8978
8960
  get: function() {
8979
8961
  return {
8980
- position: j.CONTROLS_LEFT,
8962
+ position: V.CONTROLS_LEFT,
8981
8963
  index: 2,
8982
8964
  disable: !1
8983
8965
  };
8984
8966
  }
8985
8967
  }]), r;
8986
- }(U), zo = /* @__PURE__ */ function(a) {
8968
+ }(U), Uo = /* @__PURE__ */ function(a) {
8987
8969
  x(r, a);
8988
8970
  var o = P(r);
8989
8971
  function r() {
@@ -9039,7 +9021,7 @@ var Ho = /* @__PURE__ */ function(a) {
9039
9021
  return E(r, [{
9040
9022
  key: "afterCreate",
9041
9023
  value: function() {
9042
- this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ee, this._onDurationChange), this.on(ye, this._onLoadedData), this.on(ie, this._onTimeupdate), this.on(Ct, this._onSeeking), this.on(ne, this._onPlay);
9024
+ this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Ee, this._onDurationChange), this.on(ye, this._onLoadedData), this.on(ie, this._onTimeupdate), this.on(_t, this._onSeeking), this.on(ne, this._onPlay);
9043
9025
  }
9044
9026
  }, {
9045
9027
  key: "setConfig",
@@ -9121,28 +9103,28 @@ var Ho = /* @__PURE__ */ function(a) {
9121
9103
  }
9122
9104
  }]), r;
9123
9105
  }(Te);
9124
- function Vo() {
9106
+ function zo() {
9125
9107
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9126
9108
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9127
9109
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
9128
9110
  </svg>
9129
9111
  `, "image/svg+xml").firstChild;
9130
9112
  }
9131
- function jo() {
9113
+ function Vo() {
9132
9114
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9133
9115
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9134
9116
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
9135
9117
  </svg>
9136
9118
  `, "image/svg+xml").firstChild;
9137
9119
  }
9138
- function Wo() {
9120
+ function jo() {
9139
9121
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9140
9122
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9141
9123
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
9142
9124
  </svg>
9143
9125
  `, "image/svg+xml").firstChild;
9144
9126
  }
9145
- var Go = /* @__PURE__ */ function(a) {
9127
+ var Wo = /* @__PURE__ */ function(a) {
9146
9128
  x(r, a);
9147
9129
  var o = P(r);
9148
9130
  function r() {
@@ -9190,15 +9172,15 @@ var Go = /* @__PURE__ */ function(a) {
9190
9172
  value: function() {
9191
9173
  return {
9192
9174
  volumeSmall: {
9193
- icon: jo,
9175
+ icon: Vo,
9194
9176
  class: "xg-volume-small"
9195
9177
  },
9196
9178
  volumeLarge: {
9197
- icon: Vo,
9179
+ icon: zo,
9198
9180
  class: "xg-volume"
9199
9181
  },
9200
9182
  volumeMuted: {
9201
- icon: Wo,
9183
+ icon: jo,
9202
9184
  class: "xg-volume-mute"
9203
9185
  }
9204
9186
  };
@@ -9327,7 +9309,7 @@ var Go = /* @__PURE__ */ function(a) {
9327
9309
  key: "defaultConfig",
9328
9310
  get: function() {
9329
9311
  return {
9330
- position: j.CONTROLS_RIGHT,
9312
+ position: V.CONTROLS_RIGHT,
9331
9313
  index: 1,
9332
9314
  disable: !1,
9333
9315
  showValueLabel: !1,
@@ -9337,7 +9319,7 @@ var Go = /* @__PURE__ */ function(a) {
9337
9319
  }
9338
9320
  }]), r;
9339
9321
  }(U);
9340
- function Ko() {
9322
+ function Go() {
9341
9323
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
9342
9324
  <g clip-path="url(#clip0)">
9343
9325
  <path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
@@ -9351,7 +9333,7 @@ function Ko() {
9351
9333
  </svg>
9352
9334
  `, "image/svg+xml").firstChild;
9353
9335
  }
9354
- var $o = /* @__PURE__ */ function(a) {
9336
+ var Ko = /* @__PURE__ */ function(a) {
9355
9337
  x(r, a);
9356
9338
  var o = P(r);
9357
9339
  function r(t) {
@@ -9363,7 +9345,7 @@ var $o = /* @__PURE__ */ function(a) {
9363
9345
  value: function() {
9364
9346
  var e = this;
9365
9347
  if (!this.config.disable) {
9366
- L(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(be, function() {
9348
+ A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(be, function() {
9367
9349
  e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
9368
9350
  e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
9369
9351
  }, 100);
@@ -9375,7 +9357,7 @@ var $o = /* @__PURE__ */ function(a) {
9375
9357
  }, {
9376
9358
  key: "destroy",
9377
9359
  value: function() {
9378
- L(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick);
9360
+ A(I(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick);
9379
9361
  }
9380
9362
  }, {
9381
9363
  key: "onBtnClick",
@@ -9397,9 +9379,9 @@ var $o = /* @__PURE__ */ function(a) {
9397
9379
  webKitTransform: b,
9398
9380
  height: m,
9399
9381
  width: p
9400
- }, B = i ? h : u, M = i ? n.getPlugin("poster") : null;
9382
+ }, B = i ? h : u, F = i ? n.getPlugin("poster") : null;
9401
9383
  Object.keys(w).map(function(z) {
9402
- B.style[z] = w[z], M && M.root && (M.root.style[z] = w[z]);
9384
+ B.style[z] = w[z], F && F.root && (F.root.style[z] = w[z]);
9403
9385
  });
9404
9386
  }
9405
9387
  }, {
@@ -9414,7 +9396,7 @@ var $o = /* @__PURE__ */ function(a) {
9414
9396
  key: "registerIcons",
9415
9397
  value: function() {
9416
9398
  return {
9417
- rotate: Ko
9399
+ rotate: Go
9418
9400
  };
9419
9401
  }
9420
9402
  }, {
@@ -9437,7 +9419,7 @@ var $o = /* @__PURE__ */ function(a) {
9437
9419
  key: "defaultConfig",
9438
9420
  get: function() {
9439
9421
  return {
9440
- position: j.CONTROLS_RIGHT,
9422
+ position: V.CONTROLS_RIGHT,
9441
9423
  index: 6,
9442
9424
  innerRotate: !0,
9443
9425
  clockwise: !1,
@@ -9446,15 +9428,15 @@ var $o = /* @__PURE__ */ function(a) {
9446
9428
  };
9447
9429
  }
9448
9430
  }]), r;
9449
- }(Me);
9450
- function Yo() {
9431
+ }(Fe);
9432
+ function $o() {
9451
9433
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9452
9434
  <path fill-rule="evenodd" clip-rule="evenodd"
9453
9435
  d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
9454
9436
  fill="white" />
9455
9437
  </svg>`, "image/svg+xml").firstChild;
9456
9438
  }
9457
- function Xo() {
9439
+ function Yo() {
9458
9440
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9459
9441
  <path fill-rule="evenodd" clip-rule="evenodd"
9460
9442
  d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
@@ -9464,11 +9446,11 @@ function Xo() {
9464
9446
  fill="white" />
9465
9447
  </svg>`, "image/svg+xml").firstChild;
9466
9448
  }
9467
- var He = {
9449
+ var Be = {
9468
9450
  PIP: "picture-in-picture",
9469
9451
  INLINE: "inline",
9470
9452
  FULLSCREEN: "fullscreen"
9471
- }, qo = /* @__PURE__ */ function(a) {
9453
+ }, Xo = /* @__PURE__ */ function(a) {
9472
9454
  x(r, a);
9473
9455
  var o = P(r);
9474
9456
  function r() {
@@ -9499,7 +9481,7 @@ var He = {
9499
9481
  key: "afterCreate",
9500
9482
  value: function() {
9501
9483
  var e = this;
9502
- this.isPIPAvailable() && (L(I(r.prototype), "afterCreate", this).call(this), this.pMode = He.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(kt, function() {
9484
+ this.isPIPAvailable() && (A(I(r.prototype), "afterCreate", this).call(this), this.pMode = Be.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Ct, function() {
9503
9485
  e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
9504
9486
  }));
9505
9487
  }
@@ -9508,11 +9490,11 @@ var He = {
9508
9490
  value: function() {
9509
9491
  return {
9510
9492
  pipIcon: {
9511
- icon: Yo,
9493
+ icon: $o,
9512
9494
  class: "xg-get-pip"
9513
9495
  },
9514
9496
  pipIconExit: {
9515
- icon: Xo,
9497
+ icon: Yo,
9516
9498
  class: "xg-exit-pip"
9517
9499
  }
9518
9500
  };
@@ -9531,12 +9513,12 @@ var He = {
9531
9513
  var n = i.paused;
9532
9514
  f.setTimeout(e, function() {
9533
9515
  !n && i.mediaPlay();
9534
- }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Kt, !1);
9516
+ }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Gt, !1);
9535
9517
  }, this.enterPIPCallback = function(n) {
9536
- i.emit(Kt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
9518
+ i.emit(Gt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
9537
9519
  }, this.onWebkitpresentationmodechanged = function(n) {
9538
9520
  var s = i.media.webkitPresentationMode;
9539
- e.pMode === He.FULLSCREEN && s !== He.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === He.PIP ? e.enterPIPCallback(n) : s === He.INLINE && e.leavePIPCallback(n);
9521
+ e.pMode === Be.FULLSCREEN && s !== Be.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Be.PIP ? e.enterPIPCallback(n) : s === Be.INLINE && e.leavePIPCallback(n);
9540
9522
  }, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
9541
9523
  }
9542
9524
  }, {
@@ -9615,7 +9597,7 @@ var He = {
9615
9597
  key: "isPip",
9616
9598
  get: function() {
9617
9599
  var e, i = this.player;
9618
- return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === He.PIP;
9600
+ return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === Be.PIP;
9619
9601
  }
9620
9602
  }, {
9621
9603
  key: "isPIPAvailable",
@@ -9631,7 +9613,7 @@ var He = {
9631
9613
  }, {
9632
9614
  key: "destroy",
9633
9615
  value: function() {
9634
- L(I(r.prototype), "destroy", this).call(this);
9616
+ A(I(r.prototype), "destroy", this).call(this);
9635
9617
  var e = this.player;
9636
9618
  e.media.removeEventListener("enterpictureinpicture", this.enterPIPCallback), e.media.removeEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(e.media) && e.media.removeEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged), this.exitPIP(), this.unbind("click", this.btnClick);
9637
9619
  }
@@ -9654,7 +9636,7 @@ var He = {
9654
9636
  key: "defaultConfig",
9655
9637
  get: function() {
9656
9638
  return {
9657
- position: j.CONTROLS_RIGHT,
9639
+ position: V.CONTROLS_RIGHT,
9658
9640
  index: 6,
9659
9641
  showIcon: !1,
9660
9642
  preferDocument: !1,
@@ -9670,21 +9652,21 @@ var He = {
9670
9652
  return typeof e.webkitSetPresentationMode == "function";
9671
9653
  }
9672
9654
  }]), r;
9673
- }(Me);
9674
- function Zo() {
9655
+ }(Fe);
9656
+ function qo() {
9675
9657
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
9676
9658
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
9677
9659
  </svg>
9678
9660
  `, "image/svg+xml").firstChild;
9679
9661
  }
9680
- var Jo = /* @__PURE__ */ function(a) {
9662
+ var Zo = /* @__PURE__ */ function(a) {
9681
9663
  x(r, a);
9682
9664
  var o = P(r);
9683
9665
  function r(t) {
9684
9666
  var e;
9685
9667
  return T(this, r), e = o.call(this, t), y(v(e), "playNext", function(i) {
9686
9668
  var n = v(e), s = n.player;
9687
- i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(dt, e.idx + 1)) : (e.nextHandler(), s.emit(dt));
9669
+ i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(ht, e.idx + 1)) : (e.nextHandler(), s.emit(ht));
9688
9670
  }), e.idx = -1, e;
9689
9671
  }
9690
9672
  return E(r, [{
@@ -9696,7 +9678,7 @@ var Jo = /* @__PURE__ */ function(a) {
9696
9678
  key: "registerIcons",
9697
9679
  value: function() {
9698
9680
  return {
9699
- playNext: Zo
9681
+ playNext: qo
9700
9682
  };
9701
9683
  }
9702
9684
  }, {
@@ -9738,7 +9720,7 @@ var Jo = /* @__PURE__ */ function(a) {
9738
9720
  key: "defaultConfig",
9739
9721
  get: function() {
9740
9722
  return {
9741
- position: j.CONTROLS_LEFT,
9723
+ position: V.CONTROLS_LEFT,
9742
9724
  index: 1,
9743
9725
  url: null,
9744
9726
  urlList: []
@@ -9749,7 +9731,7 @@ var Jo = /* @__PURE__ */ function(a) {
9749
9731
  (function(a, o) {
9750
9732
  (function(r, t) {
9751
9733
  a.exports = t();
9752
- })(ns, function() {
9734
+ })(is, function() {
9753
9735
  return function r(t, e, i) {
9754
9736
  var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(D) {
9755
9737
  return String(D);
@@ -9764,11 +9746,11 @@ var Jo = /* @__PURE__ */ function(a) {
9764
9746
  }
9765
9747
  if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
9766
9748
  if (u.length > 1024 * 1024 * 1.999 && g !== d)
9767
- u = M(u), l = u.type || s;
9749
+ u = F(u), l = u.type || s;
9768
9750
  else
9769
9751
  return navigator.msSaveBlob ? (
9770
9752
  // IE10 can't do a[download], only Blobs:
9771
- navigator.msSaveBlob(M(u), p)
9753
+ navigator.msSaveBlob(F(u), p)
9772
9754
  ) : z(u);
9773
9755
  else if (/([\x80-\xff])/.test(u)) {
9774
9756
  var b = 0, w = new Uint8Array(u.length), B = w.length;
@@ -9777,10 +9759,10 @@ var Jo = /* @__PURE__ */ function(a) {
9777
9759
  u = new g([w], { type: l });
9778
9760
  }
9779
9761
  m = u instanceof g ? u : new g([u], { type: l });
9780
- function M(D) {
9781
- var q = D.split(/[:;,]/), G = q[1], H = q[2] == "base64" ? atob : decodeURIComponent, Q = H(q.pop()), re = Q.length, se = 0, xe = new Uint8Array(re);
9762
+ function F(D) {
9763
+ var q = D.split(/[:;,]/), G = q[1], H = q[2] == "base64" ? atob : decodeURIComponent, J = H(q.pop()), re = J.length, se = 0, xe = new Uint8Array(re);
9782
9764
  for (se; se < re; ++se)
9783
- xe[se] = Q.charCodeAt(se);
9765
+ xe[se] = J.charCodeAt(se);
9784
9766
  return new g([xe], { type: G });
9785
9767
  }
9786
9768
  function z(D, q) {
@@ -9818,9 +9800,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
9818
9800
  };
9819
9801
  });
9820
9802
  })(yn);
9821
- var Qo = yn.exports;
9822
- const ea = /* @__PURE__ */ Yt(Qo);
9823
- function ta() {
9803
+ var Jo = yn.exports;
9804
+ const Qo = /* @__PURE__ */ $t(Jo);
9805
+ function ea() {
9824
9806
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
9825
9807
  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
9826
9808
  <g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
@@ -9837,7 +9819,7 @@ function ta() {
9837
9819
  </svg>
9838
9820
  `, "image/svg+xml").firstChild;
9839
9821
  }
9840
- var ia = /* @__PURE__ */ function(a) {
9822
+ var ta = /* @__PURE__ */ function(a) {
9841
9823
  x(r, a);
9842
9824
  var o = P(r);
9843
9825
  function r(t) {
@@ -9848,7 +9830,7 @@ var ia = /* @__PURE__ */ function(a) {
9848
9830
  var n = e.playerConfig.url, s = "";
9849
9831
  f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
9850
9832
  var l = e.getAbsoluteURL(s);
9851
- ea(l), e.isLock = !0, e.timer = window.setTimeout(function() {
9833
+ Qo(l), e.isLock = !0, e.timer = window.setTimeout(function() {
9852
9834
  e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
9853
9835
  }, 300);
9854
9836
  }
@@ -9857,7 +9839,7 @@ var ia = /* @__PURE__ */ function(a) {
9857
9839
  return E(r, [{
9858
9840
  key: "afterCreate",
9859
9841
  value: function() {
9860
- L(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
9842
+ A(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.appendChild(".xgplayer-icon", this.icons.download), this._handler = this.hook("click", this.download, {
9861
9843
  pre: function(i) {
9862
9844
  i.preventDefault(), i.stopPropagation();
9863
9845
  }
@@ -9867,7 +9849,7 @@ var ia = /* @__PURE__ */ function(a) {
9867
9849
  key: "registerIcons",
9868
9850
  value: function() {
9869
9851
  return {
9870
- download: ta
9852
+ download: ea
9871
9853
  };
9872
9854
  }
9873
9855
  }, {
@@ -9882,7 +9864,7 @@ var ia = /* @__PURE__ */ function(a) {
9882
9864
  }, {
9883
9865
  key: "destroy",
9884
9866
  value: function() {
9885
- L(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.download), window.clearTimeout(this.timer), this.timer = null;
9867
+ A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.download), window.clearTimeout(this.timer), this.timer = null;
9886
9868
  }
9887
9869
  }, {
9888
9870
  key: "render",
@@ -9903,13 +9885,13 @@ var ia = /* @__PURE__ */ function(a) {
9903
9885
  key: "defaultConfig",
9904
9886
  get: function() {
9905
9887
  return {
9906
- position: j.CONTROLS_RIGHT,
9888
+ position: V.CONTROLS_RIGHT,
9907
9889
  index: 3,
9908
9890
  disable: !0
9909
9891
  };
9910
9892
  }
9911
9893
  }]), r;
9912
- }(Me), na = /* @__PURE__ */ function(a) {
9894
+ }(Fe), ia = /* @__PURE__ */ function(a) {
9913
9895
  x(r, a);
9914
9896
  var o = P(r);
9915
9897
  function r() {
@@ -9923,7 +9905,7 @@ var ia = /* @__PURE__ */ function(a) {
9923
9905
  }, {
9924
9906
  key: "afterCreate",
9925
9907
  value: function() {
9926
- L(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.screenshotIcon);
9908
+ A(I(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.screenshotIcon);
9927
9909
  var e = this.config;
9928
9910
  this.initSize = function(i) {
9929
9911
  e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
@@ -9980,8 +9962,8 @@ var ia = /* @__PURE__ */ function(a) {
9980
9962
  p = u.media.canvas;
9981
9963
  else {
9982
9964
  n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
9983
- var _ = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, b = 0, w = 0, B = u.media.videoWidth, M = u.media.videoHeight, z, D, q, G;
9984
- _ > C ? (q = p.width, G = p.width / _, z = 0, D = Math.round((p.height - G) / 2)) : _ === C ? (q = p.width, G = p.height, z = 0, D = 0) : _ < C && (q = p.height * _, G = p.height, z = Math.round((p.width - q) / 2), D = 0), m.drawImage(u.media, b, w, B, M, z, D, q, G);
9965
+ var _ = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, b = 0, w = 0, B = u.media.videoWidth, F = u.media.videoHeight, z, D, q, G;
9966
+ _ > C ? (q = p.width, G = p.width / _, z = 0, D = Math.round((p.height - G) / 2)) : _ === C ? (q = p.width, G = p.height, z = 0, D = 0) : _ < C && (q = p.height * _, G = p.height, z = Math.round((p.width - q) / 2), D = 0), m.drawImage(u.media, b, w, B, F, z, D, q, G);
9985
9967
  }
9986
9968
  var H = p.toDataURL(h, c).replace(h, "image/octet-stream");
9987
9969
  H = H.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(H);
@@ -9997,7 +9979,7 @@ var ia = /* @__PURE__ */ function(a) {
9997
9979
  }, {
9998
9980
  key: "destroy",
9999
9981
  value: function() {
10000
- L(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(be, this.initSize);
9982
+ A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(be, this.initSize);
10001
9983
  }
10002
9984
  }, {
10003
9985
  key: "render",
@@ -10021,7 +10003,7 @@ var ia = /* @__PURE__ */ function(a) {
10021
10003
  key: "defaultConfig",
10022
10004
  get: function() {
10023
10005
  return {
10024
- position: j.CONTROLS_RIGHT,
10006
+ position: V.CONTROLS_RIGHT,
10025
10007
  index: 5,
10026
10008
  quality: 0.92,
10027
10009
  type: "image/png",
@@ -10035,7 +10017,7 @@ var ia = /* @__PURE__ */ function(a) {
10035
10017
  };
10036
10018
  }
10037
10019
  }]), r;
10038
- }(Me), ra = /* @__PURE__ */ function() {
10020
+ }(Fe), na = /* @__PURE__ */ function() {
10039
10021
  function a(o) {
10040
10022
  T(this, a), this.config = o.config, this.parent = o.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
10041
10023
  var r = this.config.maxHeight;
@@ -10111,14 +10093,14 @@ var ia = /* @__PURE__ */ function(a) {
10111
10093
  SIDE: "side",
10112
10094
  MIDDLE: "middle",
10113
10095
  DEFAULT: "default"
10114
- }, Ue = {
10096
+ }, He = {
10115
10097
  CLICK: "click",
10116
10098
  HOVER: "hover"
10117
10099
  };
10118
- function sa(a, o) {
10119
- return a === ce.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10100
+ function ra(a, o) {
10101
+ return a === ce.SIDE ? o === V.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10120
10102
  }
10121
- var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10103
+ var Pe = R.device === "mobile", mt = /* @__PURE__ */ function(a) {
10122
10104
  x(r, a);
10123
10105
  var o = P(r);
10124
10106
  function r(t) {
@@ -10130,7 +10112,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10130
10112
  }), y(v(e), "switchActiveState", function(i) {
10131
10113
  i.stopPropagation();
10132
10114
  var n = e.config.toggleMode;
10133
- n === Ue.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
10115
+ n === He.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
10134
10116
  }), y(v(e), "onLeave", function(i) {
10135
10117
  i.stopPropagation(), e.emit("icon_mouseleave", {
10136
10118
  pluginName: e.pluginName
@@ -10154,9 +10136,9 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10154
10136
  e._resizeList();
10155
10137
  }), this.once(ve, function() {
10156
10138
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
10157
- }), Pe && this.on(Qt, function() {
10139
+ }), Pe && this.on(Jt, function() {
10158
10140
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
10159
- }), Pe ? (i.toggleMode = Ue.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ue.CLICK ? "click" : "mouseenter", i.toggleMode === Ue.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);
10141
+ }), Pe ? (i.toggleMode = He.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === He.CLICK ? "click" : "mouseenter", i.toggleMode === He.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);
10160
10142
  }
10161
10143
  }, {
10162
10144
  key: "initIcons",
@@ -10229,7 +10211,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10229
10211
  var c = {
10230
10212
  config: {
10231
10213
  data: e || [],
10232
- className: sa(s.listType, s.position),
10214
+ className: ra(s.listType, s.position),
10233
10215
  onItemClick: function(m, _) {
10234
10216
  n.onItemClick(m, _);
10235
10217
  },
@@ -10239,7 +10221,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10239
10221
  };
10240
10222
  if (this.config.isShowIcon) {
10241
10223
  var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === ce.MIDDLE ? d - 50 : d;
10242
- g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new ra(c), this.changeCurrentText(), this.show();
10224
+ g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new na(c), this.changeCurrentText(), this.show();
10243
10225
  }
10244
10226
  this._resizeList();
10245
10227
  }
@@ -10257,7 +10239,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10257
10239
  key: "destroy",
10258
10240
  value: function() {
10259
10241
  var e = this.config;
10260
- e.toggleMode === Ue.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
10242
+ e.toggleMode === He.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
10261
10243
  }
10262
10244
  }, {
10263
10245
  key: "render",
@@ -10277,7 +10259,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10277
10259
  key: "defaultConfig",
10278
10260
  get: function() {
10279
10261
  return {
10280
- position: j.CONTROLS_RIGHT,
10262
+ position: V.CONTROLS_RIGHT,
10281
10263
  index: 100,
10282
10264
  list: [],
10283
10265
  listType: "default",
@@ -10285,12 +10267,12 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10285
10267
  hidePortrait: !0,
10286
10268
  isShowIcon: !1,
10287
10269
  isItemClickHide: !0,
10288
- toggleMode: Ue.HOVER,
10270
+ toggleMode: He.HOVER,
10289
10271
  heightLimit: !0
10290
10272
  };
10291
10273
  }
10292
10274
  }]), r;
10293
- }(U), oa = /* @__PURE__ */ function(a) {
10275
+ }(U), sa = /* @__PURE__ */ function(a) {
10294
10276
  x(r, a);
10295
10277
  var o = P(r);
10296
10278
  function r(t) {
@@ -10309,9 +10291,9 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10309
10291
  key: "afterCreate",
10310
10292
  value: function() {
10311
10293
  var e = this;
10312
- L(I(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
10294
+ A(I(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
10313
10295
  e.changeDefinitionList(i);
10314
- }), this.on(ni, function(i) {
10296
+ }), this.on(ii, function(i) {
10315
10297
  e.renderItemList(e.config.list, i.to);
10316
10298
  }), this.player.definitionList.length < 2 && this.hide();
10317
10299
  }
@@ -10345,7 +10327,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10345
10327
  });
10346
10328
  return (c.selected || c.definition && c.definition == s) && (d.selected = !0, l = h), d;
10347
10329
  });
10348
- L(I(r.prototype), "renderItemList", this).call(this, u, l);
10330
+ A(I(r.prototype), "renderItemList", this).call(this, u, l);
10349
10331
  }
10350
10332
  }, {
10351
10333
  key: "changeDefinitionList",
@@ -10363,7 +10345,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10363
10345
  key: "onItemClick",
10364
10346
  value: function(e, i) {
10365
10347
  var n = this.player.definitionList;
10366
- L(I(r.prototype), "onItemClick", this).apply(this, arguments), this.emitUserAction(e, "change_definition", {
10348
+ A(I(r.prototype), "onItemClick", this).apply(this, arguments), this.emitUserAction(e, "change_definition", {
10367
10349
  from: i.from,
10368
10350
  to: i.to
10369
10351
  });
@@ -10379,8 +10361,8 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10379
10361
  }, {
10380
10362
  key: "defaultConfig",
10381
10363
  get: function() {
10382
- return W(W({}, yt.defaultConfig), {}, {
10383
- position: j.CONTROLS_RIGHT,
10364
+ return W(W({}, mt.defaultConfig), {}, {
10365
+ position: V.CONTROLS_RIGHT,
10384
10366
  index: 3,
10385
10367
  list: [],
10386
10368
  defaultDefinition: "",
@@ -10391,7 +10373,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10391
10373
  });
10392
10374
  }
10393
10375
  }]), r;
10394
- }(yt), aa = /* @__PURE__ */ function(a) {
10376
+ }(mt), oa = /* @__PURE__ */ function(a) {
10395
10377
  x(r, a);
10396
10378
  var o = P(r);
10397
10379
  function r(t) {
@@ -10413,19 +10395,19 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10413
10395
  key: "afterCreate",
10414
10396
  value: function() {
10415
10397
  var e = this;
10416
- L(I(r.prototype), "afterCreate", this).call(this), this.on(qi, function() {
10398
+ A(I(r.prototype), "afterCreate", this).call(this), this.on(qi, function() {
10417
10399
  e.curValue !== e.player.playbackRate && e.renderItemList();
10418
10400
  }), this.renderItemList();
10419
10401
  }
10420
10402
  }, {
10421
10403
  key: "show",
10422
10404
  value: function(e) {
10423
- !this.config.list || this.config.list.length === 0 || L(I(r.prototype), "show", this).call(this);
10405
+ !this.config.list || this.config.list.length === 0 || A(I(r.prototype), "show", this).call(this);
10424
10406
  }
10425
10407
  }, {
10426
10408
  key: "onItemClick",
10427
10409
  value: function(e, i) {
10428
- L(I(r.prototype), "onItemClick", this).call(this, e, i);
10410
+ A(I(r.prototype), "onItemClick", this).call(this, e, i);
10429
10411
  var n = e.delegateTarget, s = Number(n.getAttribute("rate"));
10430
10412
  if (!s || s === this.curValue)
10431
10413
  return !1;
@@ -10450,7 +10432,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10450
10432
  };
10451
10433
  return c.rate === i && (c.selected = !0, n = u), c.showText = e.getTextByLang(l), c;
10452
10434
  });
10453
- L(I(r.prototype), "renderItemList", this).call(this, s, n);
10435
+ A(I(r.prototype), "renderItemList", this).call(this, s, n);
10454
10436
  }
10455
10437
  }, {
10456
10438
  key: "changeCurrentText",
@@ -10463,7 +10445,7 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10463
10445
  }, {
10464
10446
  key: "destroy",
10465
10447
  value: function() {
10466
- L(I(r.prototype), "destroy", this).call(this);
10448
+ A(I(r.prototype), "destroy", this).call(this);
10467
10449
  }
10468
10450
  }], [{
10469
10451
  key: "pluginName",
@@ -10473,8 +10455,8 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10473
10455
  }, {
10474
10456
  key: "defaultConfig",
10475
10457
  get: function() {
10476
- return W(W({}, yt.defaultConfig), {}, {
10477
- position: j.CONTROLS_RIGHT,
10458
+ return W(W({}, mt.defaultConfig), {}, {
10459
+ position: V.CONTROLS_RIGHT,
10478
10460
  index: 4,
10479
10461
  list: [2, 1.5, 1, 0.75, 0.5],
10480
10462
  className: "xgplayer-playbackrate",
@@ -10483,14 +10465,14 @@ var Pe = R.device === "mobile", yt = /* @__PURE__ */ function(a) {
10483
10465
  });
10484
10466
  }
10485
10467
  }]), r;
10486
- }(yt);
10487
- function la() {
10468
+ }(mt);
10469
+ function aa() {
10488
10470
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
10489
10471
  <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>
10490
10472
  </svg>
10491
10473
  `, "image/svg+xml").firstChild;
10492
10474
  }
10493
- function ua() {
10475
+ function la() {
10494
10476
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
10495
10477
  <path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,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>
10496
10478
  </svg>
@@ -10511,7 +10493,7 @@ var Ni = /* @__PURE__ */ function(a) {
10511
10493
  key: "afterCreate",
10512
10494
  value: function() {
10513
10495
  var e = this;
10514
- L(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(ft, function(i) {
10496
+ A(I(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(ct, function(i) {
10515
10497
  e.animate(i);
10516
10498
  }), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
10517
10499
  pre: function(n) {
@@ -10550,11 +10532,11 @@ var Ni = /* @__PURE__ */ function(a) {
10550
10532
  value: function() {
10551
10533
  return {
10552
10534
  cssFullscreen: {
10553
- icon: la,
10535
+ icon: aa,
10554
10536
  class: "xg-get-cssfull"
10555
10537
  },
10556
10538
  exitCssFullscreen: {
10557
- icon: ua,
10539
+ icon: la,
10558
10540
  class: "xg-exit-cssfull"
10559
10541
  }
10560
10542
  };
@@ -10562,7 +10544,7 @@ var Ni = /* @__PURE__ */ function(a) {
10562
10544
  }, {
10563
10545
  key: "destroy",
10564
10546
  value: function() {
10565
- L(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.btnClick);
10547
+ A(I(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.btnClick);
10566
10548
  }
10567
10549
  }, {
10568
10550
  key: "render",
@@ -10583,14 +10565,14 @@ var Ni = /* @__PURE__ */ function(a) {
10583
10565
  key: "defaultConfig",
10584
10566
  get: function() {
10585
10567
  return {
10586
- position: j.CONTROLS_RIGHT,
10568
+ position: V.CONTROLS_RIGHT,
10587
10569
  index: 1,
10588
10570
  disable: !1,
10589
10571
  target: null
10590
10572
  };
10591
10573
  }
10592
10574
  }]), r;
10593
- }(Me), ca = /* @__PURE__ */ function(a) {
10575
+ }(Fe), ua = /* @__PURE__ */ function(a) {
10594
10576
  x(r, a);
10595
10577
  var o = P(r);
10596
10578
  function r() {
@@ -10604,7 +10586,7 @@ var Ni = /* @__PURE__ */ function(a) {
10604
10586
  pre: function(n) {
10605
10587
  n.preventDefault(), n.stopPropagation();
10606
10588
  }
10607
- }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(it, function(i) {
10589
+ }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(tt, function(i) {
10608
10590
  e.onError(i);
10609
10591
  });
10610
10592
  }
@@ -10651,7 +10633,7 @@ var Ni = /* @__PURE__ */ function(a) {
10651
10633
  return "error";
10652
10634
  }
10653
10635
  }]), r;
10654
- }(U), fa = /* @__PURE__ */ function(a) {
10636
+ }(U), ca = /* @__PURE__ */ function(a) {
10655
10637
  x(r, a);
10656
10638
  var o = P(r);
10657
10639
  function r() {
@@ -10881,7 +10863,7 @@ var Hi = {
10881
10863
  return r.find('xg-spot[data-id="'.concat(o, '"]'));
10882
10864
  }
10883
10865
  };
10884
- function ha(a) {
10866
+ function fa(a) {
10885
10867
  var o = a.config, r = a.player;
10886
10868
  Object.keys(Hi).map(function(e) {
10887
10869
  a[e] = Hi[e].bind(a);
@@ -10898,14 +10880,14 @@ function ha(a) {
10898
10880
  a.positionDots();
10899
10881
  });
10900
10882
  }
10901
- var ze = {
10883
+ var Ue = {
10902
10884
  dragmove: "onProgressMove",
10903
10885
  dragstart: "onProgressDragStart",
10904
10886
  dragend: "onProgressDragEnd",
10905
10887
  click: "onProgressClick",
10906
10888
  mouseover: "onProgressMouseOver",
10907
10889
  mouseenter: "onProgressMouseOver"
10908
- }, da = /* @__PURE__ */ function(a) {
10890
+ }, ha = /* @__PURE__ */ function(a) {
10909
10891
  x(r, a);
10910
10892
  var o = P(r);
10911
10893
  function r(t) {
@@ -10956,7 +10938,7 @@ var ze = {
10956
10938
  n.seekTime && e.player.seek(n.seekTime);
10957
10939
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
10958
10940
  e.setTimeContent(f.format(i));
10959
- }), ha(this), this.on(Ee, function() {
10941
+ }), fa(this), this.on(Ee, function() {
10960
10942
  e.show();
10961
10943
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
10962
10944
  }
@@ -10978,8 +10960,8 @@ var ze = {
10978
10960
  key: "bindEvents",
10979
10961
  value: function() {
10980
10962
  var e = this, i = this.player.plugins.progress;
10981
- if (i && (Object.keys(ze).map(function(s) {
10982
- e[ze[s]] = e[ze[s]].bind(e), i.addCallBack(s, e[ze[s]]);
10963
+ if (i && (Object.keys(Ue).map(function(s) {
10964
+ e[Ue[s]] = e[Ue[s]].bind(e), i.addCallBack(s, e[Ue[s]]);
10983
10965
  }), R.device !== "mobile")) {
10984
10966
  this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
10985
10967
  var n = this.hook("previewClick", function() {
@@ -11137,8 +11119,8 @@ var ze = {
11137
11119
  key: "destroy",
11138
11120
  value: function() {
11139
11121
  var e = this, i = this.player.plugins.progress;
11140
- i && Object.keys(ze).map(function(n) {
11141
- i.removeCallBack(n, e[ze[n]]);
11122
+ i && Object.keys(Ue).map(function(n) {
11123
+ i.removeCallBack(n, e[Ue[n]]);
11142
11124
  }), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
11143
11125
  }
11144
11126
  }, {
@@ -11180,7 +11162,7 @@ var ze = {
11180
11162
  };
11181
11163
  }
11182
11164
  }]), r;
11183
- }(U), ga = /* @__PURE__ */ function(a) {
11165
+ }(U), da = /* @__PURE__ */ function(a) {
11184
11166
  x(r, a);
11185
11167
  var o = P(r);
11186
11168
  function r(t) {
@@ -11250,16 +11232,16 @@ var ze = {
11250
11232
  B < h / d ? (w = n, b = w * (h / d)) : (b = i, w = b / (h / d));
11251
11233
  } else
11252
11234
  n ? i || (w = n || d, b = w * (h / d)) : (b = i || h, w = b / (h / d));
11253
- var M = this.getUrlByIndex(p);
11235
+ var F = this.getUrlByIndex(p);
11254
11236
  return {
11255
11237
  urlIndex: p,
11256
11238
  rowIndex: _,
11257
11239
  colIndex: C,
11258
- url: M,
11240
+ url: F,
11259
11241
  height: w,
11260
11242
  width: b,
11261
11243
  style: {
11262
- backgroundImage: "url(".concat(M, ")"),
11244
+ backgroundImage: "url(".concat(F, ")"),
11263
11245
  backgroundSize: "".concat(b * c, "px auto"),
11264
11246
  backgroundPosition: "-".concat(C * b, "px -").concat(_ * w, "px"),
11265
11247
  width: "".concat(b, "px"),
@@ -11315,10 +11297,10 @@ var ze = {
11315
11297
  }
11316
11298
  }]), r;
11317
11299
  }(U);
11318
- function Nt(a) {
11300
+ function Mt(a) {
11319
11301
  return a ? "background:".concat(a, ";") : "";
11320
11302
  }
11321
- var pa = /* @__PURE__ */ function(a) {
11303
+ var ga = /* @__PURE__ */ function(a) {
11322
11304
  x(r, a);
11323
11305
  var o = P(r);
11324
11306
  function r() {
@@ -11348,7 +11330,7 @@ var pa = /* @__PURE__ */ function(a) {
11348
11330
  key: "afterCreate",
11349
11331
  value: function() {
11350
11332
  var e = this;
11351
- this.root && (this.on(ie, this.onTimeupdate), this.on(Fe, function() {
11333
+ this.root && (this.on(ie, this.onTimeupdate), this.on(Oe, function() {
11352
11334
  e.reset();
11353
11335
  }));
11354
11336
  }
@@ -11375,9 +11357,9 @@ var pa = /* @__PURE__ */ function(a) {
11375
11357
  var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
11376
11358
  if (n) {
11377
11359
  var s = this.config, l = s.mode, u = s.height, c = {
11378
- cached: Nt(i.cachedColor),
11379
- played: Nt(i.playedColor),
11380
- progress: Nt(i.progressColor),
11360
+ cached: Mt(i.cachedColor),
11361
+ played: Mt(i.playedColor),
11362
+ progress: Mt(i.progressColor),
11381
11363
  height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
11382
11364
  }, h = l === "show" ? "xg-mini-progress-show" : "";
11383
11365
  return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
@@ -11400,20 +11382,20 @@ var pa = /* @__PURE__ */ function(a) {
11400
11382
  };
11401
11383
  }
11402
11384
  }]), r;
11403
- }(U), Ve = {
11385
+ }(U), ze = {
11404
11386
  REAL_TIME: "realtime",
11405
11387
  FIRST_FRAME: "firstframe",
11406
11388
  FRAME_RATE: "framerate",
11407
11389
  POSTER: "poster"
11408
11390
  };
11409
- function va() {
11391
+ function pa() {
11410
11392
  try {
11411
11393
  return parseInt(window.performance.now(), 10);
11412
11394
  } catch {
11413
11395
  return (/* @__PURE__ */ new Date()).getTime();
11414
11396
  }
11415
11397
  }
11416
- function ma() {
11398
+ function va() {
11417
11399
  try {
11418
11400
  var a = document.createElement("canvas").getContext;
11419
11401
  return !!a;
@@ -11421,7 +11403,7 @@ function ma() {
11421
11403
  return !1;
11422
11404
  }
11423
11405
  }
11424
- var ot = null, ya = /* @__PURE__ */ function(a) {
11406
+ var st = null, ma = /* @__PURE__ */ function(a) {
11425
11407
  x(r, a);
11426
11408
  var o = P(r);
11427
11409
  function r() {
@@ -11442,8 +11424,8 @@ var ot = null, ya = /* @__PURE__ */ function(a) {
11442
11424
  !t.player.paused && t._checkIfCanStart() && t.start(0, l);
11443
11425
  }
11444
11426
  }), y(v(t), "start", function(s, l) {
11445
- var u = t.player.video, c = va(), h = t.checkVideoIsSupport(u);
11446
- !h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === Ve.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
11427
+ var u = t.player.video, c = pa(), h = t.checkVideoIsSupport(u);
11428
+ !h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === ze.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
11447
11429
  }), y(v(t), "stop", function() {
11448
11430
  t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
11449
11431
  }), t;
@@ -11462,16 +11444,16 @@ var ot = null, ya = /* @__PURE__ */ function(a) {
11462
11444
  x: 0,
11463
11445
  y: 0,
11464
11446
  pi: 0
11465
- }, 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 !== Ve.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(kt, function() {
11447
+ }, 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 !== ze.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Ct, function() {
11466
11448
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
11467
- }), s !== Ve.POSTER && (s !== Ve.FIRST_FRAME && (this.on(Fe, function() {
11449
+ }), s !== ze.POSTER && (s !== ze.FIRST_FRAME && (this.on(Oe, function() {
11468
11450
  e.stop();
11469
11451
  }), this.on(ne, function() {
11470
11452
  var u = e.config.startInterval;
11471
11453
  e._checkIfCanStart() && e.start(0, u);
11472
11454
  }), this.on(Ye, function() {
11473
11455
  e.stop();
11474
- })), this.on(ye, this.onLoadedData), this.on(Jt, function() {
11456
+ })), this.on(ye, this.onLoadedData), this.on(Zt, function() {
11475
11457
  e._isLoaded = !1, e.stop();
11476
11458
  }), document.addEventListener("visibilitychange", this.onVisibilitychange)));
11477
11459
  }
@@ -11536,7 +11518,7 @@ var ot = null, ya = /* @__PURE__ */ function(a) {
11536
11518
  key: "_checkIfCanStart",
11537
11519
  value: function() {
11538
11520
  var e = this.config.mode;
11539
- return this._isLoaded && !this.player.paused && e !== Ve.FIRST_FRAME && e !== Ve.POSTER;
11521
+ return this._isLoaded && !this.player.paused && e !== ze.FIRST_FRAME && e !== ze.POSTER;
11540
11522
  }
11541
11523
  }, {
11542
11524
  key: "renderOnce",
@@ -11615,7 +11597,7 @@ var ot = null, ya = /* @__PURE__ */ function(a) {
11615
11597
  }, {
11616
11598
  key: "isSupport",
11617
11599
  get: function() {
11618
- return typeof ot == "boolean" || (ot = ma()), ot;
11600
+ return typeof st == "boolean" || (st = va()), st;
11619
11601
  }
11620
11602
  }, {
11621
11603
  key: "supportCanvasFilter",
@@ -11623,7 +11605,7 @@ var ot = null, ya = /* @__PURE__ */ function(a) {
11623
11605
  return !(R.browser === "safari" || R.browser === "firefox");
11624
11606
  }
11625
11607
  }]), r;
11626
- }(U), _a = {
11608
+ }(U), ya = {
11627
11609
  LANG: "zh-cn",
11628
11610
  TEXT: {
11629
11611
  ERROR_TYPES: {
@@ -11698,7 +11680,7 @@ var ot = null, ya = /* @__PURE__ */ function(a) {
11698
11680
  FORWARD: "快进中",
11699
11681
  LIVE_TIP: "直播"
11700
11682
  }
11701
- }, qe = "info", Bt = fn, Ca = /* @__PURE__ */ function(a) {
11683
+ }, qe = "info", Nt = fn, _a = /* @__PURE__ */ function(a) {
11702
11684
  x(r, a);
11703
11685
  var o = P(r);
11704
11686
  function r() {
@@ -11737,7 +11719,7 @@ var ot = null, ya = /* @__PURE__ */ function(a) {
11737
11719
  }, {
11738
11720
  key: "afterCreate",
11739
11721
  value: function() {
11740
- this.reset(), this.on(gt, this._recordUserActions), this.on(Bt.STATS_INFO, this._recordInfo), this.on(Bt.STATS_DOWNLOAD, this._downloadStats), this.on(Bt.STATS_RESET, this._onReset);
11722
+ this.reset(), this.on(dt, this._recordUserActions), this.on(Nt.STATS_INFO, this._recordInfo), this.on(Nt.STATS_DOWNLOAD, this._downloadStats), this.on(Nt.STATS_RESET, this._onReset);
11741
11723
  }
11742
11724
  }, {
11743
11725
  key: "destroy",
@@ -11883,9 +11865,9 @@ var ot = null, ya = /* @__PURE__ */ function(a) {
11883
11865
  key: "afterCreate",
11884
11866
  value: function() {
11885
11867
  var e = this, i = this.config.useGapJump;
11886
- 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(ne, function() {
11868
+ 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(it, this.onGapJump), this.on(ne, function() {
11887
11869
  e.hasPlayed = !0;
11888
- }), this.on(Ct, function() {
11870
+ }), this.on(_t, function() {
11889
11871
  e.seekingEventReceived = !0;
11890
11872
  }));
11891
11873
  }
@@ -11932,7 +11914,7 @@ var ot = null, ya = /* @__PURE__ */ function(a) {
11932
11914
  }]), r;
11933
11915
  }(U);
11934
11916
  Cn.BROWSER_GAP_TOLERANCE = 1e-3;
11935
- var ka = /* @__PURE__ */ function(a) {
11917
+ var Ca = /* @__PURE__ */ function(a) {
11936
11918
  x(r, a);
11937
11919
  var o = P(r);
11938
11920
  function r() {
@@ -11956,7 +11938,7 @@ var ka = /* @__PURE__ */ function(a) {
11956
11938
  key: "afterCreate",
11957
11939
  value: function() {
11958
11940
  var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
11959
- n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(nt, this.onWaiting), this.on([Zt, ve], function() {
11941
+ n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(it, this.onWaiting), this.on([qt, ve], function() {
11960
11942
  clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
11961
11943
  }), this.on(ne, function() {
11962
11944
  e.hasPlayed = !0;
@@ -11978,7 +11960,7 @@ var ka = /* @__PURE__ */ function(a) {
11978
11960
  };
11979
11961
  }
11980
11962
  }]), r;
11981
- }(U), je = "cdn", at = ["cdn"], wa = /* @__PURE__ */ function(a) {
11963
+ }(U), Ve = "cdn", ot = ["cdn"], ka = /* @__PURE__ */ function(a) {
11982
11964
  x(r, a);
11983
11965
  var o = P(r);
11984
11966
  function r() {
@@ -11987,7 +11969,7 @@ var ka = /* @__PURE__ */ function(a) {
11987
11969
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
11988
11970
  i[n] = arguments[n];
11989
11971
  return t = o.call.apply(o, [this].concat(i)), y(v(t), "getSpeed", function() {
11990
- var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : je;
11972
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ve;
11991
11973
  if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
11992
11974
  return 0;
11993
11975
  var l = 0;
@@ -11997,11 +11979,11 @@ var ka = /* @__PURE__ */ function(a) {
11997
11979
  }), y(v(t), "startTimer", function() {
11998
11980
  f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
11999
11981
  }), y(v(t), "initSpeedList", function() {
12000
- t.speedListCache = {}, at.forEach(function(s) {
11982
+ t.speedListCache = {}, ot.forEach(function(s) {
12001
11983
  t.speedListCache[s] = [];
12002
11984
  });
12003
11985
  }), y(v(t), "_onRealSpeedChange", function(s) {
12004
- s.speed && t.appendList(s.speed, s.type || je);
11986
+ s.speed && t.appendList(s.speed, s.type || Ve);
12005
11987
  }), y(v(t), "testSpeed", function() {
12006
11988
  if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
12007
11989
  var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, h = s.testTimeStep, d = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
@@ -12026,24 +12008,24 @@ var ka = /* @__PURE__ */ function(a) {
12026
12008
  }
12027
12009
  }
12028
12010
  }), y(v(t), "appendList", function(s) {
12029
- var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : je;
12011
+ var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ve;
12030
12012
  if (!(!t.speedListCache || !t.speedListCache[l])) {
12031
12013
  var u = t.config.saveSpeedMax;
12032
12014
  t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
12033
12015
  var c = v(t), h = c.player;
12034
- h && (l === je ? h.realTimeSpeed = s : h[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
12016
+ h && (l === Ve ? h.realTimeSpeed = s : h[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
12035
12017
  }
12036
12018
  }), y(v(t), "updateSpeed", function() {
12037
- var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : je, l = t.getSpeed(s), u = v(t), c = u.player;
12019
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ve, l = t.getSpeed(s), u = v(t), c = u.player;
12038
12020
  if (c)
12039
- if (s === je)
12040
- (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Wt, {
12021
+ if (s === Ve)
12022
+ (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(jt, {
12041
12023
  speed: l,
12042
12024
  realTimeSpeed: c.realTimeSpeed
12043
12025
  }));
12044
12026
  else {
12045
12027
  var h = t.getSpeedName("avg", s);
12046
- (!c[h] || l !== c[h]) && (c[h] = l, c.emit(Wt, {
12028
+ (!c[h] || l !== c[h]) && (c[h] = l, c.emit(jt, {
12047
12029
  speed: l,
12048
12030
  realTimeSpeed: c.realTimeSpeed
12049
12031
  }));
@@ -12054,7 +12036,7 @@ var ka = /* @__PURE__ */ function(a) {
12054
12036
  key: "afterCreate",
12055
12037
  value: function() {
12056
12038
  var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
12057
- (n == null ? void 0 : n.length) > 0 && at.push.apply(at, ae(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ye, ct], this.startTimer);
12039
+ (n == null ? void 0 : n.length) > 0 && ot.push.apply(ot, ae(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ye, ut], this.startTimer);
12058
12040
  }
12059
12041
  }, {
12060
12042
  key: "getSpeedName",
@@ -12081,7 +12063,7 @@ var ka = /* @__PURE__ */ function(a) {
12081
12063
  key: "destroy",
12082
12064
  value: function() {
12083
12065
  var e = this;
12084
- this.off("real_time_speed", this._onRealSpeedChange), this.off([ye, ct], this.startTimer), at.forEach(function(i) {
12066
+ this.off("real_time_speed", this._onRealSpeedChange), this.off([ye, ut], this.startTimer), ot.forEach(function(i) {
12085
12067
  e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
12086
12068
  }), 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);
12087
12069
  }
@@ -12104,7 +12086,7 @@ var ka = /* @__PURE__ */ function(a) {
12104
12086
  };
12105
12087
  }
12106
12088
  }]), r;
12107
- }(U), ba = /* @__PURE__ */ function(a) {
12089
+ }(U), wa = /* @__PURE__ */ function(a) {
12108
12090
  x(r, a);
12109
12091
  var o = P(r);
12110
12092
  function r() {
@@ -12120,9 +12102,9 @@ var ka = /* @__PURE__ */ function(a) {
12120
12102
  e._startTick();
12121
12103
  }), this.on(Ye, function() {
12122
12104
  e._stopTick();
12123
- }), this.on(Oe, function() {
12105
+ }), this.on(Re, function() {
12124
12106
  e._stopTick();
12125
- }), this.on(Fe, function() {
12107
+ }), this.on(Oe, function() {
12126
12108
  e._stopTick();
12127
12109
  }));
12128
12110
  }
@@ -12214,24 +12196,24 @@ var ka = /* @__PURE__ */ function(a) {
12214
12196
  }
12215
12197
  }]), r;
12216
12198
  }(U);
12217
- We.use(_a);
12218
- var Ta = /* @__PURE__ */ E(function a(o, r) {
12199
+ We.use(ya);
12200
+ var ba = /* @__PURE__ */ E(function a(o, r) {
12219
12201
  var t, e, i;
12220
12202
  T(this, a);
12221
- var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [zo, Ro, pa, da, Uo], u = [].concat(l, [Oo, Ho, $o, Jo, oa, aa, ia, na, Go, qo]), c = [ho, go, vo, Ao, mo, ca, fa, ga, ko];
12222
- this.plugins = [Ca, co].concat(ae(u), c, [Cn, ka]);
12203
+ var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Uo, Do, ga, ha, Ho], u = [].concat(l, [Ro, Bo, Ko, Zo, sa, oa, ta, ia, Wo, Xo]), c = [fo, ho, po, Io, vo, ua, ca, da, Co];
12204
+ this.plugins = [_a, uo].concat(ae(u), c, [Cn, Ca]);
12223
12205
  var h = n ? "mobile" : R.device;
12224
12206
  switch (h) {
12225
12207
  case "pc":
12226
- (t = this.plugins).push.apply(t, [Fi, Ft, Ni, wa, ba]);
12208
+ (t = this.plugins).push.apply(t, [Fi, Ot, Ni, ka, wa]);
12227
12209
  break;
12228
12210
  case "mobile":
12229
- (e = this.plugins).push.apply(e, [xo]);
12211
+ (e = this.plugins).push.apply(e, [So]);
12230
12212
  break;
12231
12213
  default:
12232
- (i = this.plugins).push.apply(i, [Fi, Ft, Ni]);
12214
+ (i = this.plugins).push.apply(i, [Fi, Ot, Ni]);
12233
12215
  }
12234
- (R.os.isIpad || h === "pc") && this.plugins.push(ya), R.os.isIpad && this.plugins.push(Ft), this.ignores = [], this.i18n = [];
12216
+ (R.os.isIpad || h === "pc") && this.plugins.push(ma), R.os.isIpad && this.plugins.push(Ot), this.ignores = [], this.i18n = [];
12235
12217
  }), ue = /* @__PURE__ */ function(a) {
12236
12218
  x(r, a);
12237
12219
  var o = P(r);
@@ -12239,21 +12221,21 @@ var Ta = /* @__PURE__ */ E(function a(o, r) {
12239
12221
  return T(this, r), o.apply(this, arguments);
12240
12222
  }
12241
12223
  return E(r);
12242
- }(Tt);
12243
- y(ue, "defaultPreset", Ta);
12224
+ }(bt);
12225
+ y(ue, "defaultPreset", ba);
12244
12226
  y(ue, "Util", f);
12245
12227
  y(ue, "Sniffer", R);
12246
- y(ue, "Errors", ut);
12247
- y(ue, "Events", Bs);
12228
+ y(ue, "Errors", lt);
12229
+ y(ue, "Events", Ns);
12248
12230
  y(ue, "Plugin", U);
12249
12231
  y(ue, "BasePlugin", Te);
12250
12232
  y(ue, "I18N", We);
12251
12233
  y(ue, "STATE_CLASS", k);
12252
12234
  y(ue, "InstManager", vn);
12253
- const Ea = ["id"], Sa = /* @__PURE__ */ le({
12235
+ const Ta = ["id"], Ea = /* @__PURE__ */ le({
12254
12236
  name: "ElImageViewer",
12255
12237
  __name: "Player",
12256
- props: /* @__PURE__ */ lt({
12238
+ props: /* @__PURE__ */ at({
12257
12239
  url: {
12258
12240
  type: String,
12259
12241
  default: ""
@@ -12274,12 +12256,12 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
12274
12256
  },
12275
12257
  modelModifiers: {}
12276
12258
  }),
12277
- emits: /* @__PURE__ */ lt({
12259
+ emits: /* @__PURE__ */ at({
12278
12260
  close: () => !0
12279
12261
  }, ["update:modelValue"]),
12280
12262
  setup(a, { emit: o }) {
12281
12263
  let r = null;
12282
- const t = a, { cLoadUrl: e } = ji(t), i = Y(() => et(e.value, t.url)), n = {
12264
+ const t = a, { cLoadUrl: e } = ji(t), i = Y(() => Qe(e.value, t.url)), n = {
12283
12265
  width: "100%",
12284
12266
  height: "100%",
12285
12267
  // 是否自动播放
@@ -12300,7 +12282,7 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
12300
12282
  }, s = Y(() => ({
12301
12283
  ...n,
12302
12284
  ...t.config
12303
- })), l = o, u = $t(a, "modelValue"), c = Vi(), h = An("image-viewer");
12285
+ })), l = o, u = Kt(a, "modelValue"), c = Vi(), h = An("image-viewer");
12304
12286
  function d() {
12305
12287
  l("close"), u.value = !1, r.destroy();
12306
12288
  }
@@ -12314,11 +12296,11 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
12314
12296
  });
12315
12297
  }), (g, p) => {
12316
12298
  const m = $e("el-icon");
12317
- return u.value ? (A(), we(En, {
12299
+ return u.value ? (L(), we(En, {
12318
12300
  key: 0,
12319
12301
  to: "body"
12320
12302
  }, [
12321
- J(Sn, {
12303
+ Q(Sn, {
12322
12304
  name: "viewer-fade",
12323
12305
  appear: ""
12324
12306
  }, {
@@ -12328,14 +12310,14 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
12328
12310
  {
12329
12311
  ref: "wrapper",
12330
12312
  tabindex: -1,
12331
- class: ee(V(h).e("wrapper")),
12313
+ class: ee(j(h).e("wrapper")),
12332
12314
  style: oe({ zIndex: a.zIndex })
12333
12315
  },
12334
12316
  [
12335
12317
  S(
12336
12318
  "div",
12337
12319
  {
12338
- class: ee(V(h).e("mask"))
12320
+ class: ee(j(h).e("mask"))
12339
12321
  },
12340
12322
  null,
12341
12323
  2
@@ -12345,21 +12327,21 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
12345
12327
  S(
12346
12328
  "div",
12347
12329
  {
12348
- class: ee(V(h).e("canvas"))
12330
+ class: ee(j(h).e("canvas"))
12349
12331
  },
12350
12332
  [
12351
- S("div", { id: V(c) }, null, 8, Ea),
12333
+ S("div", { id: j(c) }, null, 8, Ta),
12352
12334
  he(" CLOSE "),
12353
12335
  S(
12354
12336
  "span",
12355
12337
  {
12356
- class: ee([V(h).e("btn"), V(h).e("close")]),
12338
+ class: ee([j(h).e("btn"), j(h).e("close")]),
12357
12339
  onClick: d
12358
12340
  },
12359
12341
  [
12360
- J(m, { onClick: d }, {
12342
+ Q(m, { onClick: d }, {
12361
12343
  default: de(() => [
12362
- J(V(Nr))
12344
+ Q(j(Nr))
12363
12345
  ]),
12364
12346
  _: 1
12365
12347
  /* STABLE */
@@ -12385,7 +12367,7 @@ const Ea = ["id"], Sa = /* @__PURE__ */ le({
12385
12367
  };
12386
12368
  }
12387
12369
  });
12388
- const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(xa), Ia = ["onClick"], Aa = { class: "fileName simple" }, La = ["onClick"], Da = { class: "text" }, Ra = { class: "fileName" }, Oa = { class: "size" }, Fa = /* @__PURE__ */ le({
12370
+ const Sa = /* @__PURE__ */ yt(Ea, [["__scopeId", "data-v-b301aa7d"]]), xa = De(Sa), Pa = ["onClick"], Ia = { class: "fileName simple" }, Aa = ["onClick"], La = { class: "text" }, Da = { class: "fileName" }, Ra = { class: "size" }, Oa = /* @__PURE__ */ le({
12389
12371
  __name: "IkPreviewFile",
12390
12372
  props: {
12391
12373
  list: {
@@ -12471,14 +12453,14 @@ const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
12471
12453
  i.value = {
12472
12454
  ...h,
12473
12455
  name: h.name,
12474
- url: et(
12456
+ url: Qe(
12475
12457
  r.value,
12476
12458
  h.url || ((g = (d = h == null ? void 0 : h.response) == null ? void 0 : d.data) == null ? void 0 : g.id) || (h == null ? void 0 : h.id)
12477
12459
  )
12478
12460
  }, n.value = !0;
12479
12461
  }, l = (h) => {
12480
12462
  In.downloadFile(
12481
- et(
12463
+ Qe(
12482
12464
  r.value,
12483
12465
  h[e.value.url] || h.attachmentId || h.id
12484
12466
  ),
@@ -12493,25 +12475,25 @@ const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
12493
12475
  return (h, d) => {
12494
12476
  var p, m, _;
12495
12477
  const g = $e("tmplate");
12496
- return A(), F(
12478
+ return L(), N(
12497
12479
  Ze,
12498
12480
  null,
12499
12481
  [
12500
- (p = a.list) != null && p.length ? (A(), F(
12482
+ (p = a.list) != null && p.length ? (L(), N(
12501
12483
  Ze,
12502
12484
  { key: 0 },
12503
12485
  [
12504
- a.simple ? (A(!0), F(
12486
+ a.simple ? (L(!0), N(
12505
12487
  Ze,
12506
12488
  { key: 0 },
12507
- li(c.value, (C, b) => (A(), F("div", {
12489
+ ai(c.value, (C, b) => (L(), N("div", {
12508
12490
  class: "iking-privew-annex simple",
12509
12491
  onClick: (w) => s(C),
12510
12492
  style: oe({ width: u.value })
12511
12493
  }, [
12512
12494
  S(
12513
12495
  "div",
12514
- Aa,
12496
+ Ia,
12515
12497
  Ge(C.name),
12516
12498
  1
12517
12499
  /* TEXT */
@@ -12522,13 +12504,13 @@ const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
12522
12504
  class: ee(["flex flex-center", { "hover-show": a.iconHoverShow }])
12523
12505
  },
12524
12506
  [
12525
- J(V(Le), {
12507
+ Q(j(je), {
12526
12508
  name: "iksvg_daochu",
12527
- onClick: Qe((w) => l(C), ["stop"]),
12509
+ onClick: li((w) => l(C), ["stop"]),
12528
12510
  size: 20,
12529
12511
  active: ""
12530
12512
  }, null, 8, ["onClick"]),
12531
- J(V(Le), {
12513
+ Q(j(je), {
12532
12514
  name: "iksvg_yulan",
12533
12515
  size: 20,
12534
12516
  active: ""
@@ -12540,17 +12522,17 @@ const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
12540
12522
  2
12541
12523
  /* CLASS */
12542
12524
  )
12543
- ], 12, Ia))),
12525
+ ], 12, Pa))),
12544
12526
  256
12545
12527
  /* UNKEYED_FRAGMENT */
12546
- )) : (A(), we(g, { key: 1 }, {
12528
+ )) : (L(), we(g, { key: 1 }, {
12547
12529
  default: de(() => [
12548
- (A(!0), F(
12530
+ (L(!0), N(
12549
12531
  Ze,
12550
12532
  null,
12551
- li(c.value, (C, b) => {
12533
+ ai(c.value, (C, b) => {
12552
12534
  var w;
12553
- return A(), F(
12535
+ return L(), N(
12554
12536
  "div",
12555
12537
  {
12556
12538
  class: ee(["iking-privew-annex", { "is-bg": a.showBg }]),
@@ -12565,24 +12547,24 @@ const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
12565
12547
  class: "file-card",
12566
12548
  onClick: (B) => s(C)
12567
12549
  }, [
12568
- J(V(Fr), {
12550
+ Q(j(Fr), {
12569
12551
  file: C,
12570
12552
  style: oe({ height: `${a.iconSize}px` }),
12571
12553
  class: "ikui-w-auto",
12572
12554
  fields: e.value
12573
12555
  }, null, 8, ["file", "style", "fields"]),
12574
- S("div", Da, [
12556
+ S("div", La, [
12575
12557
  S(
12576
12558
  "div",
12577
- Ra,
12559
+ Da,
12578
12560
  Ge(C.name),
12579
12561
  1
12580
12562
  /* TEXT */
12581
12563
  ),
12582
12564
  S(
12583
12565
  "div",
12584
- Oa,
12585
- Ge(V(Br)(C.size)),
12566
+ Ra,
12567
+ Ge(j(Br)(C.size)),
12586
12568
  1
12587
12569
  /* TEXT */
12588
12570
  )
@@ -12593,14 +12575,14 @@ const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
12593
12575
  class: ee(["flex flex-center", { "hover-show": a.iconHoverShow }])
12594
12576
  },
12595
12577
  [
12596
- J(V(Le), {
12578
+ Q(j(je), {
12597
12579
  name: "iksvg_daochu",
12598
- onClick: Qe((B) => l(C), ["stop"]),
12580
+ onClick: li((B) => l(C), ["stop"]),
12599
12581
  bg: a.showBg,
12600
12582
  size: a.showBg ? "default" : 20,
12601
12583
  title: "下载"
12602
12584
  }, null, 8, ["onClick", "bg", "size"]),
12603
- J(V(Le), {
12585
+ Q(j(je), {
12604
12586
  name: "iksvg_yulan",
12605
12587
  bg: a.showBg,
12606
12588
  size: a.showBg ? "default" : 20,
@@ -12613,7 +12595,7 @@ const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
12613
12595
  2
12614
12596
  /* CLASS */
12615
12597
  )
12616
- ], 8, La)
12598
+ ], 8, Aa)
12617
12599
  ],
12618
12600
  6
12619
12601
  /* CLASS, STYLE */
@@ -12630,14 +12612,14 @@ const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
12630
12612
  64
12631
12613
  /* STABLE_FRAGMENT */
12632
12614
  )) : he("v-if", !0),
12633
- J(V(zr), {
12615
+ Q(j(zr), {
12634
12616
  show: n.value,
12635
12617
  "onUpdate:show": d[0] || (d[0] = (C) => n.value = C),
12636
- loadUrl: V(r),
12618
+ loadUrl: j(r),
12637
12619
  file: i.value,
12638
- onlyofficeServer: ((m = V(t)) == null ? void 0 : m.serverUrl) || a.onlyofficeServer,
12639
- onlyOfficeConfig: V(t),
12640
- onlyOfficeAccept: ((_ = V(t)) == null ? void 0 : _.accept) || a.onlyOfficeAccept
12620
+ onlyofficeServer: ((m = j(t)) == null ? void 0 : m.serverUrl) || a.onlyofficeServer,
12621
+ onlyOfficeConfig: j(t),
12622
+ onlyOfficeAccept: ((_ = j(t)) == null ? void 0 : _.accept) || a.onlyOfficeAccept
12641
12623
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
12642
12624
  ],
12643
12625
  64
@@ -12646,8 +12628,8 @@ const xa = /* @__PURE__ */ _t(Sa, [["__scopeId", "data-v-b301aa7d"]]), Pa = Re(x
12646
12628
  };
12647
12629
  }
12648
12630
  });
12649
- const Ha = Re(Fa);
12631
+ const Ba = De(Oa);
12650
12632
  export {
12651
- Ha as IkPreviewFile,
12652
- Ha as default
12633
+ Ba as IkPreviewFile,
12634
+ Ba as default
12653
12635
  };