iking-web-ui-pro 0.2.26 → 0.2.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as se, computed as K, openBlock as I, createElementBlock as M, createElementVNode as S, inject as Ze, ref as Xe, resolveComponent as Ee, Fragment as Ge, renderList as Ht, normalizeStyle as le, toDisplayString as _e, normalizeClass as te, createVNode as Q, unref as z, withModifiers as ui, renderSlot as pe, createBlock as ce, withCtx as X, createCommentVNode as ue, mergeModels as ut, useModel as Yt, reactive as bn, watch as zi, nextTick as Vi, createTextVNode as Ye, h as wn, mergeProps as Ut, createSlots as Tn, Teleport as En, Transition as Sn, useCssVars as xn } from "vue";
1
+ import { defineComponent as se, computed as K, openBlock as I, createElementBlock as N, createElementVNode as S, inject as Ze, ref as Xe, resolveComponent as Ee, Fragment as Ge, renderList as Ht, normalizeStyle as le, toDisplayString as _e, normalizeClass as ee, createVNode as X, unref as V, withModifiers as ui, renderSlot as ge, createBlock as pe, withCtx as q, createCommentVNode as ue, mergeModels as ut, useModel as Yt, reactive as bn, watch as zi, nextTick as Vi, createTextVNode as Ye, h as wn, mergeProps as Ut, createSlots as Tn, Teleport as En, Transition as Sn, useCssVars as xn } from "vue";
2
2
  import { useNamespace as Pn, ElTag as In } from "element-plus";
3
3
  import { paramType as An, ikFile as Ln, buildUUID as ji, ikColor as Dn } from "iking-utils-pro";
4
4
  const Pe = (a, o) => {
@@ -620,7 +620,7 @@ const Pe = (a, o) => {
620
620
  },
621
621
  setup(a) {
622
622
  const o = a, r = K(() => o.file ? zt(o.file, o.fields) : o.type);
623
- return (t, e) => r.value === "image" ? (I(), M("svg", Fn, Un)) : r.value === "zip" ? (I(), M("svg", zn, Wn)) : r.value === "ppt" ? (I(), M("svg", Gn, Yn)) : r.value === "word" ? (I(), M("svg", Xn, Jn)) : r.value === "pdf" ? (I(), M("svg", Qn, ir)) : r.value === "txt" ? (I(), M("svg", nr, or)) : r.value === "audio" ? (I(), M("svg", ar, cr)) : r.value === "video" ? (I(), M("svg", fr, gr)) : r.value === "excel" ? (I(), M("svg", pr, _r)) : r.value === "exe" ? (I(), M("svg", Cr, Er)) : r.value === "json" ? (I(), M("svg", Sr, Ar)) : (I(), M("svg", Lr, Fr));
623
+ return (t, e) => r.value === "image" ? (I(), N("svg", Fn, Un)) : r.value === "zip" ? (I(), N("svg", zn, Wn)) : r.value === "ppt" ? (I(), N("svg", Gn, Yn)) : r.value === "word" ? (I(), N("svg", Xn, Jn)) : r.value === "pdf" ? (I(), N("svg", Qn, ir)) : r.value === "txt" ? (I(), N("svg", nr, or)) : r.value === "audio" ? (I(), N("svg", ar, cr)) : r.value === "video" ? (I(), N("svg", fr, gr)) : r.value === "excel" ? (I(), N("svg", pr, _r)) : r.value === "exe" ? (I(), N("svg", Cr, Er)) : r.value === "json" ? (I(), N("svg", Sr, Ar)) : (I(), N("svg", Lr, Fr));
624
624
  }
625
625
  }), Nr = Pe(Mr);
626
626
  /*! Element Plus Icons Vue v2.3.1 */
@@ -628,7 +628,7 @@ var Br = /* @__PURE__ */ se({
628
628
  name: "Close",
629
629
  __name: "close",
630
630
  setup(a) {
631
- return (o, r) => (I(), M("svg", {
631
+ return (o, r) => (I(), N("svg", {
632
632
  xmlns: "http://www.w3.org/2000/svg",
633
633
  viewBox: "0 0 1024 1024"
634
634
  }, [
@@ -735,55 +735,56 @@ const it = (a, o) => {
735
735
  default: !1
736
736
  }
737
737
  },
738
- setup(a) {
739
- const o = a, { cLoadUrl: r, cOnlyofficeConfig: t } = Wi(o), e = K(() => ({
738
+ emits: ["handPreview"],
739
+ setup(a, { emit: o }) {
740
+ const r = a, { cLoadUrl: t, cOnlyofficeConfig: e } = Wi(r), i = o, n = K(() => ({
740
741
  name: "name",
741
742
  url: "url",
742
743
  suffix: "suffix",
743
744
  size: "size",
744
- ...o.field
745
- })), i = Xe({}), n = Xe(!1), s = (h) => {
746
- var d, g;
747
- i.value = {
748
- ...h,
749
- name: h.name,
745
+ ...r.field
746
+ })), s = Xe({}), l = Xe(!1), u = (g) => {
747
+ var p, m;
748
+ s.value = {
749
+ ...g,
750
+ name: g.name,
750
751
  url: et(
751
- r.value,
752
- 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)
752
+ t.value,
753
+ g.url || ((m = (p = g == null ? void 0 : g.response) == null ? void 0 : p.data) == null ? void 0 : m.id) || (g == null ? void 0 : g.id)
753
754
  )
754
- }, n.value = !0;
755
- }, l = (h) => {
755
+ }, r.isOnlyOfficePreview && (l.value = !0), i("handPreview", s.value);
756
+ }, c = (g) => {
756
757
  Ln.downloadFile(
757
758
  et(
758
- r.value,
759
- h[e.value.url] || h.attachmentId || h.id
759
+ t.value,
760
+ g[n.value.url] || g.attachmentId || g.id
760
761
  ),
761
- h[e.value.name] || h.attachmentName
762
+ g[n.value.name] || g.attachmentName
762
763
  );
763
- }, u = K(() => An.isNumber(o.width) ? `${o.width}px` : o.width), c = K(() => o.list.map((h) => ({
764
- ...h,
765
- name: h[e.value.name] || h.attachmentName,
766
- size: h[e.value.size] || h.fileSize || h.attachmentSize,
767
- suffix: h[e.value.suffix] || h.attachmentSuffix
764
+ }, h = K(() => An.isNumber(r.width) ? `${r.width}px` : r.width), d = K(() => r.list.map((g) => ({
765
+ ...g,
766
+ name: g[n.value.name] || g.attachmentName,
767
+ size: g[n.value.size] || g.fileSize || g.attachmentSize,
768
+ suffix: g[n.value.suffix] || g.attachmentSuffix
768
769
  })));
769
- return (h, d) => {
770
- var p, m, _;
771
- const g = Ee("tmplate");
772
- return I(), M(
770
+ return (g, p) => {
771
+ var _, b, w;
772
+ const m = Ee("tmplate");
773
+ return I(), N(
773
774
  Ge,
774
775
  null,
775
776
  [
776
- (p = a.list) != null && p.length ? (I(), M(
777
+ (_ = a.list) != null && _.length ? (I(), N(
777
778
  Ge,
778
779
  { key: 0 },
779
780
  [
780
- a.simple ? (I(!0), M(
781
+ a.simple ? (I(!0), N(
781
782
  Ge,
782
783
  { key: 0 },
783
- Ht(c.value, (C, w) => (I(), M("div", {
784
+ Ht(d.value, (C, F) => (I(), N("div", {
784
785
  class: "iking-privew-annex simple",
785
- onClick: (b) => s(C),
786
- style: le({ width: u.value })
786
+ onClick: (R) => u(C),
787
+ style: le({ width: h.value })
787
788
  }, [
788
789
  S(
789
790
  "div",
@@ -795,22 +796,22 @@ const it = (a, o) => {
795
796
  S(
796
797
  "div",
797
798
  {
798
- class: te(["flex flex-center", { "hover-show": a.iconHoverShow }])
799
+ class: ee(["flex flex-center", { "hover-show": a.iconHoverShow }])
799
800
  },
800
801
  [
801
- Q(z($e), {
802
+ X(V($e), {
802
803
  name: "iksvg_daochu",
803
- onClick: ui((b) => l(C), ["stop"]),
804
+ onClick: ui((R) => c(C), ["stop"]),
804
805
  size: 20,
805
806
  active: ""
806
807
  }, null, 8, ["onClick"]),
807
- Q(z($e), {
808
+ X(V($e), {
808
809
  name: "iksvg_yulan",
809
810
  size: 20,
810
811
  active: ""
811
812
  }),
812
- pe(h.$slots, "operation", {
813
- data: { ...C, findex: w }
813
+ ge(g.$slots, "operation", {
814
+ data: { ...C, findex: F }
814
815
  })
815
816
  ],
816
817
  2
@@ -819,33 +820,33 @@ const it = (a, o) => {
819
820
  ], 12, Vr))),
820
821
  256
821
822
  /* UNKEYED_FRAGMENT */
822
- )) : (I(), ce(g, { key: 1 }, {
823
- default: X(() => [
824
- (I(!0), M(
823
+ )) : (I(), pe(m, { key: 1 }, {
824
+ default: q(() => [
825
+ (I(!0), N(
825
826
  Ge,
826
827
  null,
827
- Ht(c.value, (C, w) => {
828
- var b;
829
- return I(), M(
828
+ Ht(d.value, (C, F) => {
829
+ var R;
830
+ return I(), N(
830
831
  "div",
831
832
  {
832
- class: te(["iking-privew-annex", { "is-bg": a.showBg }]),
833
- key: w,
833
+ class: ee(["iking-privew-annex", { "is-bg": a.showBg }]),
834
+ key: F,
834
835
  style: le({
835
- marginBottom: w == ((b = a.list) == null ? void 0 : b.length) - 1 ? "0" : "10px",
836
- width: u.value
836
+ marginBottom: F == ((R = a.list) == null ? void 0 : R.length) - 1 ? "0" : "10px",
837
+ width: h.value
837
838
  })
838
839
  },
839
840
  [
840
841
  S("div", {
841
842
  class: "file-card",
842
- onClick: (B) => s(C)
843
+ onClick: (z) => u(C)
843
844
  }, [
844
- Q(z(Nr), {
845
+ X(V(Nr), {
845
846
  file: C,
846
847
  style: le({ height: `${a.iconSize}px` }),
847
848
  class: "ikui-w-auto",
848
- fields: e.value
849
+ fields: n.value
849
850
  }, null, 8, ["file", "style", "fields"]),
850
851
  S("div", Gr, [
851
852
  S(
@@ -858,7 +859,7 @@ const it = (a, o) => {
858
859
  S(
859
860
  "div",
860
861
  Kr,
861
- _e(z(Ur)(C.size)),
862
+ _e(V(Ur)(C.size)),
862
863
  1
863
864
  /* TEXT */
864
865
  )
@@ -866,24 +867,24 @@ const it = (a, o) => {
866
867
  S(
867
868
  "div",
868
869
  {
869
- class: te(["flex flex-center", { "hover-show": a.iconHoverShow }])
870
+ class: ee(["flex flex-center", { "hover-show": a.iconHoverShow }])
870
871
  },
871
872
  [
872
- Q(z($e), {
873
+ X(V($e), {
873
874
  name: "iksvg_daochu",
874
- onClick: ui((B) => l(C), ["stop"]),
875
+ onClick: ui((z) => c(C), ["stop"]),
875
876
  bg: a.showBg,
876
877
  size: a.showBg ? "default" : 20,
877
878
  title: "下载"
878
879
  }, null, 8, ["onClick", "bg", "size"]),
879
- Q(z($e), {
880
+ X(V($e), {
880
881
  name: "iksvg_yulan",
881
882
  bg: a.showBg,
882
883
  size: a.showBg ? "default" : 20,
883
884
  title: "预览"
884
885
  }, null, 8, ["bg", "size"]),
885
- pe(h.$slots, "operation", {
886
- data: { ...C, findex: w }
886
+ ge(g.$slots, "operation", {
887
+ data: { ...C, findex: F }
887
888
  })
888
889
  ],
889
890
  2
@@ -906,14 +907,14 @@ const it = (a, o) => {
906
907
  64
907
908
  /* STABLE_FRAGMENT */
908
909
  )) : ue("v-if", !0),
909
- Q(z(Zr), {
910
- show: n.value,
911
- "onUpdate:show": d[0] || (d[0] = (C) => n.value = C),
912
- loadUrl: z(r),
913
- file: i.value,
914
- onlyofficeServer: ((m = z(t)) == null ? void 0 : m.serverUrl) || a.onlyofficeServer,
915
- onlyOfficeConfig: z(t),
916
- onlyOfficeAccept: ((_ = z(t)) == null ? void 0 : _.accept) || a.onlyOfficeAccept
910
+ X(V(Zr), {
911
+ show: l.value,
912
+ "onUpdate:show": p[0] || (p[0] = (C) => l.value = C),
913
+ loadUrl: V(t),
914
+ file: s.value,
915
+ onlyofficeServer: ((b = V(e)) == null ? void 0 : b.serverUrl) || a.onlyofficeServer,
916
+ onlyOfficeConfig: V(e),
917
+ onlyOfficeAccept: ((w = V(e)) == null ? void 0 : w.accept) || a.onlyOfficeAccept
917
918
  }, null, 8, ["show", "loadUrl", "file", "onlyofficeServer", "onlyOfficeConfig", "onlyOfficeAccept"])
918
919
  ],
919
920
  64
@@ -972,7 +973,7 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
972
973
  }), s = (u) => {
973
974
  var c, h, d, g, p, m, _;
974
975
  try {
975
- const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, w = C[t.value.url] || (C == null ? void 0 : C.id) || C.attachmentId, b = (h = C[t.value.suffix] || C.attachmentSuffix) == null ? void 0 : h.toLowerCase(), B = C[t.value.name] || (C == null ? void 0 : C.attachmentName) || (C == null ? void 0 : C.originName);
976
+ const b = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, w = b[t.value.url] || (b == null ? void 0 : b.id) || b.attachmentId, C = (h = b[t.value.suffix] || b.attachmentSuffix) == null ? void 0 : h.toLowerCase(), F = b[t.value.name] || (b == null ? void 0 : b.attachmentName) || (b == null ? void 0 : b.originName);
976
977
  if (i.value = {
977
978
  ...u,
978
979
  name: u[t.value.name],
@@ -983,7 +984,7 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
983
984
  } else if (u && zt(u, t.value) === "video") {
984
985
  n.video = !0;
985
986
  return;
986
- } else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(b)) {
987
+ } else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(C)) {
987
988
  n.office = !0, e.value = {
988
989
  ...o.onlyOfficeConfig,
989
990
  editorConfig: {
@@ -997,17 +998,17 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
997
998
  },
998
999
  document: {
999
1000
  key: ji(),
1000
- title: B,
1001
+ title: F,
1001
1002
  url: et(o.loadUrl, w),
1002
- fileType: b,
1003
+ fileType: C,
1003
1004
  ...((_ = o.onlyOfficeConfig) == null ? void 0 : _.document) || {}
1004
1005
  },
1005
- documentType: On(b)
1006
+ documentType: On(C)
1006
1007
  };
1007
1008
  return;
1008
1009
  }
1009
- } catch (C) {
1010
- console.info("预览错误: ", C);
1010
+ } catch (b) {
1011
+ console.info("预览错误: ", b);
1011
1012
  }
1012
1013
  };
1013
1014
  zi([r, o.file], ([u, c]) => {
@@ -1021,11 +1022,11 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
1021
1022
  return (u, c) => {
1022
1023
  var d, g, p;
1023
1024
  const h = Ee("el-image-viewer");
1024
- return r.value ? (I(), M(
1025
+ return r.value ? (I(), N(
1025
1026
  Ge,
1026
1027
  { key: 0 },
1027
1028
  [
1028
- (d = i.value) != null && d.url && n.image ? (I(), ce(h, {
1029
+ (d = i.value) != null && d.url && n.image ? (I(), pe(h, {
1029
1030
  key: 0,
1030
1031
  onClose: c[0] || (c[0] = (m) => l()),
1031
1032
  ref: "previewImgRef",
@@ -1034,12 +1035,12 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
1034
1035
  }, null, 8, ["url-list"])) : ue("v-if", !0),
1035
1036
  ue(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
1036
1037
  ue(" 文档类 "),
1037
- Q(z(Na), {
1038
+ X(V(Na), {
1038
1039
  modelValue: n.video,
1039
1040
  "onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
1040
1041
  url: (p = i.value) == null ? void 0 : p.url
1041
1042
  }, null, 8, ["modelValue", "url"]),
1042
- Q(z(fs), {
1043
+ X(V(fs), {
1043
1044
  modelValue: n.office,
1044
1045
  "onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
1045
1046
  draggable: "",
@@ -1054,10 +1055,10 @@ const Xr = Pe(Yr), qr = /* @__PURE__ */ se({
1054
1055
  onClose: l,
1055
1056
  "modal-class": "ik-only-preview-dialog"
1056
1057
  }, {
1057
- default: X(() => {
1058
+ default: q(() => {
1058
1059
  var m;
1059
1060
  return [
1060
- Q(z(Cs), {
1061
+ X(V(Cs), {
1061
1062
  "config-options": e.value,
1062
1063
  "document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
1063
1064
  }, null, 8, ["config-options", "document-server-url"])
@@ -1144,12 +1145,12 @@ const Zr = Pe(qr), Jr = {
1144
1145
  });
1145
1146
  return (i, n) => {
1146
1147
  const s = Ee("el-tooltip"), l = Ee("el-button");
1147
- return r.value.tableIconType === "icon" || !r.value.tableIconType ? (I(), M("span", Jr, [
1148
- r.value.notip || !r.value.title ? (I(), M(
1148
+ return r.value.tableIconType === "icon" || !r.value.tableIconType ? (I(), N("span", Jr, [
1149
+ r.value.notip || !r.value.title ? (I(), N(
1149
1150
  "i",
1150
1151
  {
1151
1152
  key: 0,
1152
- class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1153
+ class: ee(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1153
1154
  [i.name]: t.value === "unocss",
1154
1155
  "show-bg": r.value.showBg || r.value.bg,
1155
1156
  default: r.value.size === "default",
@@ -1166,29 +1167,29 @@ const Zr = Pe(qr), Jr = {
1166
1167
  },
1167
1168
  [
1168
1169
  ue(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
1169
- t.value === "iksig" ? (I(), M(
1170
+ t.value === "iksig" ? (I(), N(
1170
1171
  "i",
1171
1172
  {
1172
1173
  key: 0,
1173
- class: te(`iksig ${r.value.name}`),
1174
+ class: ee(`iksig ${r.value.name}`),
1174
1175
  style: le(e.value)
1175
1176
  },
1176
1177
  null,
1177
1178
  6
1178
1179
  /* CLASS, STYLE */
1179
- )) : t.value === "svg" ? (I(), M("svg", Qr, [
1180
+ )) : t.value === "svg" ? (I(), N("svg", Qr, [
1180
1181
  S("use", {
1181
1182
  "xlink:href": `#${r.value.name}`
1182
1183
  }, null, 8, es)
1183
- ])) : t.value === "img" ? (I(), M("img", {
1184
+ ])) : t.value === "img" ? (I(), N("img", {
1184
1185
  key: 2,
1185
1186
  src: r.value.name,
1186
1187
  class: "h-[1em] w-[1em]"
1187
- }, null, 8, ts)) : (I(), M(
1188
+ }, null, 8, ts)) : (I(), N(
1188
1189
  "i",
1189
1190
  {
1190
1191
  key: 3,
1191
- class: te(r.value.name),
1192
+ class: ee(r.value.name),
1192
1193
  style: le(e.value)
1193
1194
  },
1194
1195
  null,
@@ -1198,16 +1199,16 @@ const Zr = Pe(qr), Jr = {
1198
1199
  ],
1199
1200
  6
1200
1201
  /* CLASS, STYLE */
1201
- )) : (I(), ce(s, {
1202
+ )) : (I(), pe(s, {
1202
1203
  key: 1,
1203
1204
  content: r.value.title,
1204
1205
  placement: "top"
1205
1206
  }, {
1206
- default: X(() => [
1207
+ default: q(() => [
1207
1208
  S(
1208
1209
  "i",
1209
1210
  {
1210
- class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1211
+ class: ee(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1211
1212
  [i.name]: t.value === "unocss",
1212
1213
  "show-bg": r.value.showBg || r.value.bg,
1213
1214
  default: r.value.size === "default",
@@ -1222,29 +1223,29 @@ const Zr = Pe(qr), Jr = {
1222
1223
  style: le(e.value)
1223
1224
  },
1224
1225
  [
1225
- t.value === "iksig" ? (I(), M(
1226
+ t.value === "iksig" ? (I(), N(
1226
1227
  "i",
1227
1228
  {
1228
1229
  key: 0,
1229
- class: te(`iksig ${r.value.name}`),
1230
+ class: ee(`iksig ${r.value.name}`),
1230
1231
  style: le(e.value)
1231
1232
  },
1232
1233
  null,
1233
1234
  6
1234
1235
  /* CLASS, STYLE */
1235
- )) : t.value === "svg" ? (I(), M("svg", is, [
1236
+ )) : t.value === "svg" ? (I(), N("svg", is, [
1236
1237
  S("use", {
1237
1238
  "xlink:href": `#${r.value.name}`
1238
1239
  }, null, 8, ns)
1239
- ])) : t.value === "img" ? (I(), M("img", {
1240
+ ])) : t.value === "img" ? (I(), N("img", {
1240
1241
  key: 2,
1241
1242
  src: r.value.name,
1242
1243
  class: "h-[1em] w-[1em]"
1243
- }, null, 8, rs)) : (I(), M(
1244
+ }, null, 8, rs)) : (I(), N(
1244
1245
  "i",
1245
1246
  {
1246
1247
  key: 3,
1247
- class: te(r.value.name),
1248
+ class: ee(r.value.name),
1248
1249
  style: le(e.value)
1249
1250
  },
1250
1251
  null,
@@ -1259,11 +1260,11 @@ const Zr = Pe(qr), Jr = {
1259
1260
  _: 1
1260
1261
  /* STABLE */
1261
1262
  }, 8, ["content"]))
1262
- ])) : (I(), ce(l, {
1263
+ ])) : (I(), pe(l, {
1263
1264
  key: 1,
1264
1265
  type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
1265
1266
  }, {
1266
- default: X(() => [
1267
+ default: q(() => [
1267
1268
  Ye(
1268
1269
  _e(r.value.title),
1269
1270
  1
@@ -1289,15 +1290,25 @@ const os = /* @__PURE__ */ it(ss, [["__scopeId", "data-v-52806adf"]]), $e = Pe(o
1289
1290
  }
1290
1291
  },
1291
1292
  setup(a) {
1292
- return (o, r) => (I(), ce(z($e), {
1293
- error: "",
1294
- name: "iksvg_guanbidanchuang",
1295
- title: "关闭",
1296
- size: 20
1297
- }));
1293
+ return (o, r) => (I(), N(
1294
+ "div",
1295
+ {
1296
+ class: ee({ "exit-main-page-maximize": a.showBg && a.fullscreen })
1297
+ },
1298
+ [
1299
+ X(V($e), {
1300
+ name: "iksvg_guanbidanchuang",
1301
+ title: "关闭",
1302
+ size: 20,
1303
+ error: ""
1304
+ })
1305
+ ],
1306
+ 2
1307
+ /* CLASS */
1308
+ ));
1298
1309
  }
1299
1310
  });
1300
- const ls = /* @__PURE__ */ it(as, [["__scopeId", "data-v-e27fb022"]]), us = { class: "base-header" }, cs = /* @__PURE__ */ se({
1311
+ const ls = /* @__PURE__ */ it(as, [["__scopeId", "data-v-da39e979"]]), us = { class: "base-header" }, cs = /* @__PURE__ */ se({
1301
1312
  __name: "IkBaseDialog",
1302
1313
  props: /* @__PURE__ */ ut({
1303
1314
  title: { default: "" },
@@ -1330,17 +1341,17 @@ const ls = /* @__PURE__ */ it(as, [["__scopeId", "data-v-e27fb022"]]), us = { cl
1330
1341
  });
1331
1342
  return (n, s) => {
1332
1343
  const l = Ee("el-dialog");
1333
- return I(), ce(l, Ut({
1344
+ return I(), pe(l, Ut({
1334
1345
  modelValue: r.value,
1335
1346
  "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
1336
1347
  }, n.$attrs, {
1337
- "close-icon": z(i),
1348
+ "close-icon": V(i),
1338
1349
  class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
1339
1350
  fullscreen: t.value,
1340
1351
  "modal-class": "baseDialog"
1341
1352
  }), Tn({
1342
- icon: X(() => [
1343
- pe(n.$slots, "title", {}, () => [
1353
+ icon: q(() => [
1354
+ ge(n.$slots, "title", {}, () => [
1344
1355
  Ye(
1345
1356
  _e(n.title),
1346
1357
  1
@@ -1348,9 +1359,9 @@ const ls = /* @__PURE__ */ it(as, [["__scopeId", "data-v-e27fb022"]]), us = { cl
1348
1359
  )
1349
1360
  ])
1350
1361
  ]),
1351
- header: X(() => [
1362
+ header: q(() => [
1352
1363
  S("div", us, [
1353
- pe(n.$slots, "header", {}, () => [
1364
+ ge(n.$slots, "header", {}, () => [
1354
1365
  Ye(
1355
1366
  _e(n.title),
1356
1367
  1
@@ -1358,7 +1369,7 @@ const ls = /* @__PURE__ */ it(as, [["__scopeId", "data-v-e27fb022"]]), us = { cl
1358
1369
  )
1359
1370
  ])
1360
1371
  ]),
1361
- n.$attrs.showClose ? (I(), ce(z($e), {
1372
+ n.$attrs.showClose ? (I(), pe(V($e), {
1362
1373
  key: 0,
1363
1374
  onClick: e,
1364
1375
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -1366,16 +1377,16 @@ const ls = /* @__PURE__ */ it(as, [["__scopeId", "data-v-e27fb022"]]), us = { cl
1366
1377
  title: t.value ? "退出全屏" : "全屏"
1367
1378
  }, null, 8, ["name", "title"])) : ue("v-if", !0)
1368
1379
  ]),
1369
- default: X(() => [
1370
- pe(n.$slots, "default")
1380
+ default: q(() => [
1381
+ ge(n.$slots, "default")
1371
1382
  ]),
1372
1383
  _: 2
1373
1384
  /* DYNAMIC */
1374
1385
  }, [
1375
1386
  n.$slots.footer ? {
1376
1387
  name: "footer",
1377
- fn: X(() => [
1378
- pe(n.$slots, "footer")
1388
+ fn: q(() => [
1389
+ ge(n.$slots, "footer")
1379
1390
  ]),
1380
1391
  key: "0"
1381
1392
  } : void 0
@@ -1686,7 +1697,7 @@ var ps = function(a, o) {
1686
1697
  });
1687
1698
  const vs = ["id"];
1688
1699
  function ms(a, o, r, t, e, i) {
1689
- return I(), M("div", { id: a.id }, null, 8, vs);
1700
+ return I(), N("div", { id: a.id }, null, 8, vs);
1690
1701
  }
1691
1702
  qt.render = ms;
1692
1703
  qt.__file = "src/components/DocumentEditor.vue";
@@ -1719,13 +1730,13 @@ const ys = /* @__PURE__ */ se({
1719
1730
  }), t = () => {
1720
1731
  console.info("文档加载完成", o.configOptions);
1721
1732
  };
1722
- return (e, i) => (I(), M(
1733
+ return (e, i) => (I(), N(
1723
1734
  "div",
1724
1735
  {
1725
1736
  style: le({ height: o.officeHeight })
1726
1737
  },
1727
1738
  [
1728
- Q(z(qt), {
1739
+ X(V(qt), {
1729
1740
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
1730
1741
  ref: "editorRef",
1731
1742
  "document-server-url": a.documentServerUrl,
@@ -1760,13 +1771,13 @@ function W(a) {
1760
1771
  }
1761
1772
  return a;
1762
1773
  }
1763
- function q(a) {
1774
+ function Z(a) {
1764
1775
  "@babel/helpers - typeof";
1765
- return q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
1776
+ return Z = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
1766
1777
  return typeof o;
1767
1778
  } : function(o) {
1768
1779
  return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
1769
- }, q(a);
1780
+ }, Z(a);
1770
1781
  }
1771
1782
  function T(a, o) {
1772
1783
  if (!(a instanceof o))
@@ -1864,7 +1875,7 @@ function L() {
1864
1875
  }
1865
1876
  }, L.apply(this, arguments);
1866
1877
  }
1867
- function fe(a) {
1878
+ function ce(a) {
1868
1879
  return ws(a) || Ts(a) || Es(a) || Ss();
1869
1880
  }
1870
1881
  function ws(a) {
@@ -1956,9 +1967,9 @@ var $i = { exports: {} };
1956
1967
  var m = r ? r + u : u;
1957
1968
  if (!this._events[m])
1958
1969
  return !1;
1959
- var _ = this._events[m], C = arguments.length, w, b;
1970
+ var _ = this._events[m], b = arguments.length, w, C;
1960
1971
  if (_.fn) {
1961
- switch (_.once && this.removeListener(u, _.fn, void 0, !0), C) {
1972
+ switch (_.once && this.removeListener(u, _.fn, void 0, !0), b) {
1962
1973
  case 1:
1963
1974
  return _.fn.call(_.context), !0;
1964
1975
  case 2:
@@ -1972,30 +1983,30 @@ var $i = { exports: {} };
1972
1983
  case 6:
1973
1984
  return _.fn.call(_.context, c, h, d, g, p), !0;
1974
1985
  }
1975
- for (b = 1, w = new Array(C - 1); b < C; b++)
1976
- w[b - 1] = arguments[b];
1986
+ for (C = 1, w = new Array(b - 1); C < b; C++)
1987
+ w[C - 1] = arguments[C];
1977
1988
  _.fn.apply(_.context, w);
1978
1989
  } else {
1979
- var B = _.length, F;
1980
- for (b = 0; b < B; b++)
1981
- switch (_[b].once && this.removeListener(u, _[b].fn, void 0, !0), C) {
1990
+ var F = _.length, R;
1991
+ for (C = 0; C < F; C++)
1992
+ switch (_[C].once && this.removeListener(u, _[C].fn, void 0, !0), b) {
1982
1993
  case 1:
1983
- _[b].fn.call(_[b].context);
1994
+ _[C].fn.call(_[C].context);
1984
1995
  break;
1985
1996
  case 2:
1986
- _[b].fn.call(_[b].context, c);
1997
+ _[C].fn.call(_[C].context, c);
1987
1998
  break;
1988
1999
  case 3:
1989
- _[b].fn.call(_[b].context, c, h);
2000
+ _[C].fn.call(_[C].context, c, h);
1990
2001
  break;
1991
2002
  case 4:
1992
- _[b].fn.call(_[b].context, c, h, d);
2003
+ _[C].fn.call(_[C].context, c, h, d);
1993
2004
  break;
1994
2005
  default:
1995
2006
  if (!w)
1996
- for (F = 1, w = new Array(C - 1); F < C; F++)
1997
- w[F - 1] = arguments[F];
1998
- _[b].fn.apply(_[b].context, w);
2007
+ for (R = 1, w = new Array(b - 1); R < b; R++)
2008
+ w[R - 1] = arguments[R];
2009
+ _[C].fn.apply(_[C].context, w);
1999
2010
  }
2000
2011
  }
2001
2012
  return !0;
@@ -2013,7 +2024,7 @@ var $i = { exports: {} };
2013
2024
  if (p.fn)
2014
2025
  p.fn === c && (!d || p.once) && (!h || p.context === h) && n(this, g);
2015
2026
  else {
2016
- for (var m = 0, _ = [], C = p.length; m < C; m++)
2027
+ for (var m = 0, _ = [], b = p.length; m < b; m++)
2017
2028
  (p[m].fn !== c || d && !p[m].once || h && p[m].context !== h) && _.push(p[m]);
2018
2029
  _.length ? this._events[g] = _.length === 1 ? _[0] : _ : n(this, g);
2019
2030
  }
@@ -2029,7 +2040,7 @@ var Ps = typeof window < "u" && window.location && window.location.href.indexOf(
2029
2040
  info: "color: #525252; background-color: #90ee90;",
2030
2041
  error: "color: #525252; background-color: red;",
2031
2042
  warn: "color: #525252; background-color: yellow; "
2032
- }, St = "%c[xgplayer]", O = {
2043
+ }, St = "%c[xgplayer]", M = {
2033
2044
  config: {
2034
2045
  debug: Ps ? 3 : 0
2035
2046
  },
@@ -2053,7 +2064,7 @@ var Ps = typeof window < "u" && window.location && window.location.href.indexOf(
2053
2064
  }
2054
2065
  };
2055
2066
  function Is(a) {
2056
- a.logInfo = O.logInfo.bind(a), a.logWarn = O.logWarn.bind(a), a.logError = O.logError.bind(a);
2067
+ a.logInfo = M.logInfo.bind(a), a.logWarn = M.logWarn.bind(a), a.logError = M.logError.bind(a);
2057
2068
  }
2058
2069
  var As = /* @__PURE__ */ function() {
2059
2070
  function a(o) {
@@ -2093,7 +2104,7 @@ f.createDomFromHtml = function(a) {
2093
2104
  e.setAttribute(i, o[i]);
2094
2105
  }), e) : null;
2095
2106
  } catch (i) {
2096
- return O.logError("util.createDomFromHtml", i), null;
2107
+ return M.logError("util.createDomFromHtml", i), null;
2097
2108
  }
2098
2109
  };
2099
2110
  f.hasClass = function(a, o) {
@@ -2104,7 +2115,7 @@ f.hasClass = function(a, o) {
2104
2115
  return t === o;
2105
2116
  });
2106
2117
  } catch {
2107
- var r = a.className && q(a.className) === "object" ? a.getAttribute("class") : a.className;
2118
+ var r = a.className && Z(a.className) === "object" ? a.getAttribute("class") : a.className;
2108
2119
  return r && !!r.match(new RegExp("(\\s|^)" + o + "(\\s|$)"));
2109
2120
  }
2110
2121
  };
@@ -2115,7 +2126,7 @@ f.addClass = function(a, o) {
2115
2126
  r && a.classList.add(r);
2116
2127
  });
2117
2128
  } catch {
2118
- f.hasClass(a, o) || (a.className && q(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class") + " " + o) : a.className += " " + o);
2129
+ f.hasClass(a, o) || (a.className && Z(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class") + " " + o) : a.className += " " + o);
2119
2130
  }
2120
2131
  };
2121
2132
  f.removeClass = function(a, o) {
@@ -2127,7 +2138,7 @@ f.removeClass = function(a, o) {
2127
2138
  } catch {
2128
2139
  f.hasClass(a, o) && o.split(/\s+/g).forEach(function(t) {
2129
2140
  var e = new RegExp("(\\s|^)" + t + "(\\s|$)");
2130
- a.className && q(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class").replace(e, " ")) : a.className = a.className.replace(e, " ");
2141
+ a.className && Z(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class").replace(e, " ")) : a.className = a.className.replace(e, " ");
2131
2142
  });
2132
2143
  }
2133
2144
  };
@@ -2150,7 +2161,7 @@ f.findDom = function() {
2150
2161
  try {
2151
2162
  r = a.querySelector(o);
2152
2163
  } catch (t) {
2153
- O.logError("util.findDom", t), o.indexOf("#") === 0 && (r = a.getElementById(o.slice(1)));
2164
+ M.logError("util.findDom", t), o.indexOf("#") === 0 && (r = a.getElementById(o.slice(1)));
2154
2165
  }
2155
2166
  return r;
2156
2167
  };
@@ -2190,7 +2201,7 @@ f.deepMerge = function(a, o) {
2190
2201
  if (f.typeOf(o[r]) === "Array" && f.typeOf(a[r]) === "Array") {
2191
2202
  if (f.typeOf(a[r]) === "Array") {
2192
2203
  var t;
2193
- (t = a[r]).push.apply(t, fe(o[r]));
2204
+ (t = a[r]).push.apply(t, ce(o[r]));
2194
2205
  }
2195
2206
  } else
2196
2207
  f.typeOf(a[r]) === f.typeOf(o[r]) && a[r] !== null && f.typeOf(a[r]) === "Object" && !(o[r] instanceof window.Node) ? f.deepMerge(a[r], o[r]) : o[r] !== null && (a[r] = o[r]);
@@ -2271,7 +2282,7 @@ f.checkIsFunction = function(a) {
2271
2282
  return a && typeof a == "function";
2272
2283
  };
2273
2284
  f.checkIsObject = function(a) {
2274
- return a !== null && q(a) === "object";
2285
+ return a !== null && Z(a) === "object";
2275
2286
  };
2276
2287
  f.hide = function(a) {
2277
2288
  a.style.display = "none";
@@ -2501,7 +2512,7 @@ f.getCurrentTimeByOffset = function(a, o) {
2501
2512
  return a;
2502
2513
  };
2503
2514
  function Xi(a) {
2504
- var o = q(a);
2515
+ var o = Z(a);
2505
2516
  return a !== null && (o === "object" || o === "function");
2506
2517
  }
2507
2518
  function Ds(a, o, r) {
@@ -2510,58 +2521,58 @@ function Ds(a, o, r) {
2510
2521
  throw new TypeError("Expected a function");
2511
2522
  o = +o || 0, Xi(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
2512
2523
  function p(H) {
2513
- var ee = t, oe = e;
2514
- return t = e = void 0, u = H, n = a.apply(oe, ee), n;
2524
+ var te = t, oe = e;
2525
+ return t = e = void 0, u = H, n = a.apply(oe, te), n;
2515
2526
  }
2516
- function m(H, ee) {
2517
- return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H, ee);
2527
+ function m(H, te) {
2528
+ return g ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(H)) : setTimeout(H, te);
2518
2529
  }
2519
2530
  function _(H) {
2520
2531
  if (g)
2521
2532
  return window.cancelAnimationFrame(H);
2522
2533
  clearTimeout(H);
2523
2534
  }
2524
- function C(H) {
2525
- return u = H, s = m(B, o), c ? p(H) : n;
2535
+ function b(H) {
2536
+ return u = H, s = m(F, o), c ? p(H) : n;
2526
2537
  }
2527
2538
  function w(H) {
2528
- var ee = H - l, oe = H - u, ae = o - ee;
2539
+ var te = H - l, oe = H - u, ae = o - te;
2529
2540
  return h ? Math.min(ae, i - oe) : ae;
2530
2541
  }
2531
- function b(H) {
2532
- var ee = H - l, oe = H - u;
2533
- return l === void 0 || ee >= o || ee < 0 || h && oe >= i;
2542
+ function C(H) {
2543
+ var te = H - l, oe = H - u;
2544
+ return l === void 0 || te >= o || te < 0 || h && oe >= i;
2534
2545
  }
2535
- function B() {
2546
+ function F() {
2536
2547
  var H = Date.now();
2537
- if (b(H))
2538
- return F(H);
2539
- s = m(B, w(H));
2548
+ if (C(H))
2549
+ return R(H);
2550
+ s = m(F, w(H));
2540
2551
  }
2541
- function F(H) {
2552
+ function R(H) {
2542
2553
  return s = void 0, d && t ? p(H) : (t = e = void 0, n);
2543
2554
  }
2544
- function V() {
2555
+ function z() {
2545
2556
  s !== void 0 && _(s), u = 0, t = l = e = s = void 0;
2546
2557
  }
2547
2558
  function D() {
2548
- return s === void 0 ? n : F(Date.now());
2559
+ return s === void 0 ? n : R(Date.now());
2549
2560
  }
2550
- function Z() {
2561
+ function J() {
2551
2562
  return s !== void 0;
2552
2563
  }
2553
2564
  function G() {
2554
- for (var H = Date.now(), ee = b(H), oe = arguments.length, ae = new Array(oe), Le = 0; Le < oe; Le++)
2565
+ for (var H = Date.now(), te = C(H), oe = arguments.length, ae = new Array(oe), Le = 0; Le < oe; Le++)
2555
2566
  ae[Le] = arguments[Le];
2556
- if (t = ae, e = this, l = H, ee) {
2567
+ if (t = ae, e = this, l = H, te) {
2557
2568
  if (s === void 0)
2558
- return C(l);
2569
+ return b(l);
2559
2570
  if (h)
2560
- return s = m(B, o), p(l);
2571
+ return s = m(F, o), p(l);
2561
2572
  }
2562
- return s === void 0 && (s = m(B, o)), n;
2573
+ return s === void 0 && (s = m(F, o)), n;
2563
2574
  }
2564
- return G.cancel = V, G.flush = D, G.pending = Z, G;
2575
+ return G.cancel = z, G.flush = D, G.pending = J, G;
2565
2576
  }
2566
2577
  function Rs(a, o, r) {
2567
2578
  var t = !0, e = !0;
@@ -2586,9 +2597,9 @@ function Fs(a, o, r) {
2586
2597
  var gi = {
2587
2598
  android: /(Android)\s([\d.]+)/,
2588
2599
  ios: /(Version)\/([\d.]+)/
2589
- }, Ms = ["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 = {
2600
+ }, Ms = ["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"], O = {
2590
2601
  get device() {
2591
- var a = R.os;
2602
+ var a = O.os;
2592
2603
  return a.isPc ? "pc" : "mobile";
2593
2604
  },
2594
2605
  get browser() {
@@ -2739,8 +2750,8 @@ var gi = {
2739
2750
  for (var m = {
2740
2751
  playerVersion: Wt,
2741
2752
  domain: document.domain
2742
- }, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], C = 0; C < arguments.length; C++)
2743
- m[_[C]] = arguments[C];
2753
+ }, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], b = 0; b < arguments.length; b++)
2754
+ m[_[b]] = arguments[b];
2744
2755
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
2745
2756
  }
2746
2757
  }
@@ -2870,7 +2881,7 @@ var Xs = /* @__PURE__ */ function(a) {
2870
2881
  "data-index": -1
2871
2882
  }, t.videoConfig, t.videoAttributes);
2872
2883
  var i = t["x5-video-player-type"] || t.x5VideoPlayerType;
2873
- return R.isWeixin && R.os.isAndroid && i && (e.mediaConfig["x5-video-player-type"] = i, delete e.mediaConfig.playsinline, delete e.mediaConfig["webkit-playsinline"], delete e.mediaConfig["x5-playsinline"]), t.loop && (e.mediaConfig.loop = "loop"), t.autoplayMuted && !Object.prototype.hasOwnProperty.call(e.mediaConfig, "muted") && (e.mediaConfig.muted = !0), e.media = f.createDom(e.mediaConfig.mediaType, "", e.mediaConfig, ""), t.defaultPlaybackRate && (e.media.defaultPlaybackRate = e.media.playbackRate = t.defaultPlaybackRate), f.typeOf(t.volume) === "Number" && (e.volume = t.volume), t.autoplayMuted && (e.media.muted = !0, e._lastMuted = !0), t.autoplay && (e.media.autoplay = !0), e._interval = {}, e.mediaEventMiddleware = {}, e.attachVideoEvents(), e;
2884
+ return O.isWeixin && O.os.isAndroid && i && (e.mediaConfig["x5-video-player-type"] = i, delete e.mediaConfig.playsinline, delete e.mediaConfig["webkit-playsinline"], delete e.mediaConfig["x5-playsinline"]), t.loop && (e.mediaConfig.loop = "loop"), t.autoplayMuted && !Object.prototype.hasOwnProperty.call(e.mediaConfig, "muted") && (e.mediaConfig.muted = !0), e.media = f.createDom(e.mediaConfig.mediaType, "", e.mediaConfig, ""), t.defaultPlaybackRate && (e.media.defaultPlaybackRate = e.media.playbackRate = t.defaultPlaybackRate), f.typeOf(t.volume) === "Number" && (e.volume = t.volume), t.autoplayMuted && (e.media.muted = !0, e._lastMuted = !0), t.autoplay && (e.media.autoplay = !0), e._interval = {}, e.mediaEventMiddleware = {}, e.attachVideoEvents(), e;
2874
2885
  }
2875
2886
  return E(r, [{
2876
2887
  key: "setEventsMiddleware",
@@ -3375,7 +3386,7 @@ function vt(a, o) {
3375
3386
  try {
3376
3387
  var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
3377
3388
  s ? s.then ? s.then(function(l) {
3378
- l !== !1 && st.apply(void 0, [e, o, r.next].concat(fe(t)));
3389
+ l !== !1 && st.apply(void 0, [e, o, r.next].concat(ce(t)));
3379
3390
  }).catch(function(l) {
3380
3391
  throw l;
3381
3392
  }) : st.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && st.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
@@ -3445,7 +3456,7 @@ function me(a, o, r) {
3445
3456
  return r.call.apply(r, [a, a].concat(e));
3446
3457
  }
3447
3458
  function Pt(a, o) {
3448
- O.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
3459
+ M.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
3449
3460
  }
3450
3461
  var xe = /* @__PURE__ */ function() {
3451
3462
  function a(o) {
@@ -3686,10 +3697,10 @@ function At(a) {
3686
3697
  return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
3687
3698
  }
3688
3699
  function so(a, o) {
3689
- return q(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
3700
+ return Z(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
3690
3701
  }
3691
3702
  function oo(a, o) {
3692
- return q(a) === "object" && a.attr && q(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
3703
+ return Z(a) === "object" && a.attr && Z(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
3693
3704
  o[r] = a.attr[r];
3694
3705
  }), o;
3695
3706
  }
@@ -3705,11 +3716,11 @@ function Ti(a, o) {
3705
3716
  try {
3706
3717
  return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
3707
3718
  i.setAttribute(n, t[n]);
3708
- }), i) : (O.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is a function mast return an Element Object")), null);
3719
+ }), i) : (M.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is a function mast return an Element Object")), null);
3709
3720
  } catch (n) {
3710
- return O.logError("Plugin named [".concat(e, "]:createIcon"), n), null;
3721
+ return M.logError("Plugin named [".concat(e, "]:createIcon"), n), null;
3711
3722
  }
3712
- 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);
3723
+ return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (M.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
3713
3724
  }
3714
3725
  function ao(a, o) {
3715
3726
  var r = o.config.icons || o.playerConfig.icons;
@@ -3749,7 +3760,7 @@ var U = /* @__PURE__ */ function(a) {
3749
3760
  try {
3750
3761
  u = this.render();
3751
3762
  } catch (d) {
3752
- throw O.logError("Plugin:".concat(this.pluginName, ":render"), d), new Error("Plugin:".concat(this.pluginName, ":render:").concat(d.message));
3763
+ throw M.logError("Plugin:".concat(this.pluginName, ":render"), d), new Error("Plugin:".concat(this.pluginName, ":render:").concat(d.message));
3753
3764
  }
3754
3765
  if (u)
3755
3766
  n = r.insert(u, i, e.index), n.setAttribute("data-index", e.index);
@@ -3769,11 +3780,11 @@ var U = /* @__PURE__ */ function(a) {
3769
3780
  if (this.root) {
3770
3781
  this._children = [];
3771
3782
  var i = this.children();
3772
- i && q(i) === "object" && Object.keys(i).length > 0 && Object.keys(i).map(function(n) {
3783
+ i && Z(i) === "object" && Object.keys(i).length > 0 && Object.keys(i).map(function(n) {
3773
3784
  var s = n, l = i[s], u = {
3774
3785
  root: e.root
3775
3786
  }, c, h;
3776
- typeof l == "function" ? (c = e.config[s] || {}, h = l) : q(l) === "object" && typeof l.plugin == "function" && (c = l.options ? f.deepCopy(e.config[s] || {}, l.options) : e.config[s] || {}, h = l.plugin), u.config = c, c.index !== void 0 && (u.index = c.index), c.root && (u.root = c.root), e.registerPlugin(h, u, s);
3787
+ typeof l == "function" ? (c = e.config[s] || {}, h = l) : Z(l) === "object" && typeof l.plugin == "function" && (c = l.options ? f.deepCopy(e.config[s] || {}, l.options) : e.config[s] || {}, h = l.plugin), u.config = c, c.index !== void 0 && (u.index = c.index), c.root && (u.root = c.root), e.registerPlugin(h, u, s);
3777
3788
  });
3778
3789
  }
3779
3790
  }
@@ -3947,7 +3958,7 @@ var U = /* @__PURE__ */ function(a) {
3947
3958
  try {
3948
3959
  return typeof e == "string" ? this.find(e).appendChild(i) : e.appendChild(i);
3949
3960
  } catch (n) {
3950
- return O.logError("Plugin:appendChild", n), null;
3961
+ return M.logError("Plugin:appendChild", n), null;
3951
3962
  }
3952
3963
  }
3953
3964
  }, {
@@ -4408,11 +4419,11 @@ var ho = function(o, r) {
4408
4419
  var t, e, i;
4409
4420
  r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
4410
4421
  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;
4411
- o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, fe(l)), (e = o.config.ignores).push.apply(e, fe(c)), Object.keys(d).map(function(_) {
4422
+ o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, ce(l)), (e = o.config.ignores).push.apply(e, ce(c)), Object.keys(d).map(function(_) {
4412
4423
  o.config.icons[_] || (o.config.icons[_] = d[_]);
4413
4424
  });
4414
4425
  var m = o.config.i18n || [];
4415
- p.push.apply(p, fe(m)), o.config.i18n = p;
4426
+ p.push.apply(p, ce(m)), o.config.i18n = p;
4416
4427
  }, go = /* @__PURE__ */ function(a) {
4417
4428
  x(r, a);
4418
4429
  var o = P(r);
@@ -4434,7 +4445,7 @@ var ho = function(o, r) {
4434
4445
  return E(r, [{
4435
4446
  key: "beforeCreate",
4436
4447
  value: function(e) {
4437
- !e.config.mode && R.device === "mobile" && (e.config.mode = "flex"), e.player.config.marginControls && (e.config.autoHide = !1);
4448
+ !e.config.mode && O.device === "mobile" && (e.config.mode = "flex"), e.player.config.marginControls && (e.config.autoHide = !1);
4438
4449
  }
4439
4450
  }, {
4440
4451
  key: "afterCreate",
@@ -4451,7 +4462,7 @@ var ho = function(o, r) {
4451
4462
  h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
4452
4463
  });
4453
4464
  var c = this.playerConfig.isMobileSimulateMode;
4454
- R.device !== "mobile" && c !== "mobile" && (this.bind("mouseenter", this.onMouseEnter), this.bind("mouseleave", this.onMouseLeave));
4465
+ O.device !== "mobile" && c !== "mobile" && (this.bind("mouseenter", this.onMouseEnter), this.bind("mouseleave", this.onMouseLeave));
4455
4466
  }
4456
4467
  }
4457
4468
  }, {
@@ -4531,7 +4542,7 @@ var ho = function(o, r) {
4531
4542
  }, {
4532
4543
  key: "destroy",
4533
4544
  value: function() {
4534
- R.device !== "mobile" && (this.unbind("mouseenter", this.onMouseEnter), this.unbind("mouseleave", this.onMouseLeave));
4545
+ O.device !== "mobile" && (this.unbind("mouseenter", this.onMouseEnter), this.unbind("mouseleave", this.onMouseLeave));
4535
4546
  }
4536
4547
  }, {
4537
4548
  key: "render",
@@ -4659,7 +4670,7 @@ function tt(a, o) {
4659
4670
  var t = f.typeOf(o[r]), e = f.typeOf(a[r]);
4660
4671
  if (t === "Array") {
4661
4672
  var i;
4662
- e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, fe(o[r]));
4673
+ e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, ce(o[r]));
4663
4674
  } else
4664
4675
  t === "Object" ? (e !== "Object" && (a[r] = {}), tt(a[r], o[r])) : a[r] = o[r];
4665
4676
  }), a;
@@ -4699,7 +4710,7 @@ function mo(a) {
4699
4710
  textKeys: {},
4700
4711
  pId: a
4701
4712
  };
4702
- return tt(r.lang, ie.lang), (o = r.langKeys).push.apply(o, fe(ie.langKeys)), tt(r.textKeys, ie.textKeys), r;
4713
+ return tt(r.lang, ie.lang), (o = r.langKeys).push.apply(o, ce(ie.langKeys)), tt(r.textKeys, ie.textKeys), r;
4703
4714
  }
4704
4715
  si(po);
4705
4716
  var Ke = {
@@ -4718,7 +4729,7 @@ var Ke = {
4718
4729
  extend: vo,
4719
4730
  use: si,
4720
4731
  init: mo
4721
- }, N = {
4732
+ }, B = {
4722
4733
  INITIAL: 1,
4723
4734
  READY: 2,
4724
4735
  ATTACHING: 3,
@@ -4727,7 +4738,7 @@ var Ke = {
4727
4738
  RUNNING: 6,
4728
4739
  ENDED: 7,
4729
4740
  DESTROYED: 8
4730
- }, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], J = {}, Lt = null, mn = /* @__PURE__ */ function(a) {
4741
+ }, Si = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], Q = {}, Lt = null, mn = /* @__PURE__ */ function(a) {
4731
4742
  x(r, a);
4732
4743
  var o = P(r);
4733
4744
  function r() {
@@ -4736,20 +4747,20 @@ var Ke = {
4736
4747
  return E(r, [{
4737
4748
  key: "add",
4738
4749
  value: function(e) {
4739
- e && (J[e.playerId] = e, Object.keys(J).length === 1 && this.setActive(e.playerId, !0));
4750
+ e && (Q[e.playerId] = e, Object.keys(Q).length === 1 && this.setActive(e.playerId, !0));
4740
4751
  }
4741
4752
  }, {
4742
4753
  key: "remove",
4743
4754
  value: function(e) {
4744
- e && (e.isUserActive, delete J[e.playerId]);
4755
+ e && (e.isUserActive, delete Q[e.playerId]);
4745
4756
  }
4746
4757
  }, {
4747
4758
  key: "_iterate",
4748
4759
  value: function(e) {
4749
4760
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
4750
- for (var n in J)
4751
- if (Object.prototype.hasOwnProperty.call(J, n)) {
4752
- var s = J[n];
4761
+ for (var n in Q)
4762
+ if (Object.prototype.hasOwnProperty.call(Q, n)) {
4763
+ var s = Q[n];
4753
4764
  if (i) {
4754
4765
  if (e(s))
4755
4766
  break;
@@ -4783,16 +4794,16 @@ var Ke = {
4783
4794
  key: "setActive",
4784
4795
  value: function(e) {
4785
4796
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
4786
- if (J[e])
4797
+ if (Q[e])
4787
4798
  return i ? this.forEach(function(n) {
4788
4799
  e === n.playerId ? (n.isUserActive = !0, n.isInstNext = !1) : n.isUserActive = !1;
4789
- }) : J[e].isUserActive = i, e;
4800
+ }) : Q[e].isUserActive = i, e;
4790
4801
  }
4791
4802
  }, {
4792
4803
  key: "getActiveId",
4793
4804
  value: function() {
4794
- for (var e = Object.keys(J), i = 0; i < e.length; i++) {
4795
- var n = J[e[i]];
4805
+ for (var e = Object.keys(Q), i = 0; i < e.length; i++) {
4806
+ var n = Q[e[i]];
4796
4807
  if (n && n.isUserActive)
4797
4808
  return e[i];
4798
4809
  }
@@ -4802,10 +4813,10 @@ var Ke = {
4802
4813
  key: "setNext",
4803
4814
  value: function(e) {
4804
4815
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
4805
- if (J[e])
4816
+ if (Q[e])
4806
4817
  return i ? this.forEach(function(n) {
4807
4818
  e === n.playerId ? (n.isUserActive = !1, n.isInstNext = !0) : n.isInstNext = !1;
4808
- }) : J[e].isInstNext = i, e;
4819
+ }) : Q[e].isInstNext = i, e;
4809
4820
  }
4810
4821
  }], [{
4811
4822
  key: "getInstance",
@@ -4815,8 +4826,8 @@ var Ke = {
4815
4826
  }]), r;
4816
4827
  }(Ki.EventEmitter);
4817
4828
  function yo(a) {
4818
- for (var o = Object.keys(J), r = 0; r < o.length; r++) {
4819
- var t = J[o[r]];
4829
+ for (var o = Object.keys(Q), r = 0; r < o.length; r++) {
4830
+ var t = Q[o[r]];
4820
4831
  if (t.root === a)
4821
4832
  return t;
4822
4833
  }
@@ -4832,14 +4843,14 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
4832
4843
  e = o.call(this, i), y(v(e), "canPlayFunc", function() {
4833
4844
  if (e.config) {
4834
4845
  var p = e.config, m = p.autoplay, _ = p.defaultPlaybackRate;
4835
- O.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = _, (m || e._useAutoplay) && e.mediaPlay(), e.off(ye, e.canPlayFunc), e.removeClass(k.ENTER);
4846
+ M.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = _, (m || e._useAutoplay) && e.mediaPlay(), e.off(ye, e.canPlayFunc), e.removeClass(k.ENTER);
4836
4847
  }
4837
4848
  }), y(v(e), "onFullscreenChange", function(p, m) {
4838
4849
  var _ = function() {
4839
4850
  f.setTimeout(v(e), function() {
4840
4851
  e.resize();
4841
4852
  }, 100);
4842
- }, C = f.getFullScreenEl();
4853
+ }, b = f.getFullScreenEl();
4843
4854
  e._fullActionFrom ? e._fullActionFrom = "" : e.emit(pt, {
4844
4855
  eventType: "system",
4845
4856
  action: "switch_fullscreen",
@@ -4852,19 +4863,19 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
4852
4863
  to: !1
4853
4864
  }]
4854
4865
  });
4855
- var w = Fs(C, e.playerId, Re);
4856
- if (m || C && (C === e._fullscreenEl || w))
4857
- _(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(ve, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4866
+ var w = Fs(b, e.playerId, Re);
4867
+ if (m || b && (b === e._fullscreenEl || w))
4868
+ _(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, b, k.FULLSCREEN), e.emit(ve, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4858
4869
  else if (e.fullscreen) {
4859
4870
  _();
4860
- var b = v(e), B = b._fullScreenOffset, F = b.config;
4861
- if (F.needFullscreenScroll ? (window.scrollTo(B.left, B.top), f.setTimeout(v(e), function() {
4871
+ var C = v(e), F = C._fullScreenOffset, R = C.config;
4872
+ if (R.needFullscreenScroll ? (window.scrollTo(F.left, F.top), f.setTimeout(v(e), function() {
4862
4873
  e.fullscreen = !1, e._fullScreenOffset = null;
4863
4874
  }, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
4864
4875
  e.removeClass(k.FULLSCREEN);
4865
4876
  else {
4866
- var V = e._fullscreenEl;
4867
- !V && (e.root.contains(p.target) || p.target === e.root) && (V = p.target), e.recoverFullStyle(e.root, V, k.FULLSCREEN);
4877
+ var z = e._fullscreenEl;
4878
+ !z && (e.root.contains(p.target) || p.target === e.root) && (z = p.target), e.recoverFullStyle(e.root, z, k.FULLSCREEN);
4868
4879
  }
4869
4880
  e._fullscreenEl = null, e.emit(ve, !1);
4870
4881
  }
@@ -4879,7 +4890,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
4879
4890
  s >= 0 && n && (e.config.presets[s] = n);
4880
4891
  } else
4881
4892
  n && e.config.presets.push(n);
4882
- 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 = {
4893
+ e.userTimer = null, e.waitTimer = null, e.handleSource = !0, e._state = B.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 = {
4883
4894
  pi: 1,
4884
4895
  scale: 0,
4885
4896
  rotate: -1,
@@ -4901,7 +4912,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
4901
4912
  }, e._offsetInfo = {
4902
4913
  currentTime: -1,
4903
4914
  duration: 0
4904
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ke.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new qs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4915
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ke.init(e._pluginInfoId), O.os.isAndroid && O.osVersion > 0 && O.osVersion < 6 && (e.config.autoplay = !1), e.database = new qs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4905
4916
  isActiveLocked: !1
4906
4917
  }, e.instManager = be;
4907
4918
  var l = e._initDOM();
@@ -4914,9 +4925,9 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
4914
4925
  });
4915
4926
  g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
4916
4927
  }
4917
- return e._bindEvents(), e._registerPresets(), e._registerPlugins(), $.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(N.READY), f.setTimeout(v(e), function() {
4928
+ return e._bindEvents(), e._registerPresets(), e._registerPlugins(), $.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(B.READY), f.setTimeout(v(e), function() {
4918
4929
  e.emit(ti);
4919
- }, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < N.ATTACHED) && e.start(), e;
4930
+ }, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < B.ATTACHED) && e.start(), e;
4920
4931
  }
4921
4932
  return E(r, [{
4922
4933
  key: "_initDOM",
@@ -4934,7 +4945,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
4934
4945
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
4935
4946
  }
4936
4947
  var s = yo(this.root);
4937
- s && (O.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Re, this.playerId), (e = be) === null || e === void 0 || e.add(this), $.init(this), this._initBaseDoms();
4948
+ s && (M.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Re, this.playerId), (e = be) === null || e === void 0 || e.add(this), $.init(this), this._initBaseDoms();
4938
4949
  var l = this.constructor.XgVideoProxy;
4939
4950
  if (l && this.mediaConfig.mediaType === l.mediaType) {
4940
4951
  var u = this.innerContainer || this.root;
@@ -4948,25 +4959,25 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
4948
4959
  });
4949
4960
  this.controls = d;
4950
4961
  }
4951
- var g = this.config.isMobileSimulateMode === "mobile" ? "mobile" : R.device;
4962
+ var g = this.config.isMobileSimulateMode === "mobile" ? "mobile" : O.device;
4952
4963
  if (this.addClass("".concat(k.DEFAULT, " ").concat(k.INACTIVE, " xgplayer-").concat(g, " ").concat(this.config.controls ? "" : k.NO_CONTROLS)), this.config.autoplay ? this.addClass(k.ENTER) : this.addClass(k.NO_START), this.config.fluid) {
4953
4964
  var p = this.config, m = p.width, _ = p.height;
4954
4965
  (typeof m != "number" || typeof _ != "number") && (m = 600, _ = 337.5);
4955
- var C = {
4966
+ var b = {
4956
4967
  width: "100%",
4957
4968
  height: "0",
4958
4969
  "max-width": "100%",
4959
4970
  "padding-top": "".concat(_ * 100 / m, "%")
4960
4971
  };
4961
- Object.keys(C).forEach(function(D) {
4962
- i.root.style[D] = C[D];
4972
+ Object.keys(b).forEach(function(D) {
4973
+ i.root.style[D] = b[D];
4963
4974
  });
4964
4975
  } else
4965
4976
  ["width", "height"].forEach(function(D) {
4966
4977
  i.config[D] && (typeof i.config[D] != "number" ? i.root.style[D] = i.config[D] : i.root.style[D] = "".concat(i.config[D], "px"));
4967
4978
  });
4968
- var w = this.root.getBoundingClientRect(), b = w.width, B = w.height, F = w.left, V = w.top;
4969
- return this.sizeInfo.width = b, this.sizeInfo.height = B, this.sizeInfo.left = F, this.sizeInfo.top = V, !0;
4979
+ var w = this.root.getBoundingClientRect(), C = w.width, F = w.height, R = w.left, z = w.top;
4980
+ return this.sizeInfo.width = C, this.sizeInfo.height = F, this.sizeInfo.left = R, this.sizeInfo.top = z, !0;
4970
4981
  }
4971
4982
  }, {
4972
4983
  key: "_initBaseDoms",
@@ -4983,7 +4994,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
4983
4994
  e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
4984
4995
  }), mi.forEach(function(i) {
4985
4996
  document && document.addEventListener(i, e.onFullscreenChange);
4986
- }), R.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(ke, this.resize), this.playFunc = function() {
4997
+ }), O.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(ke, this.resize), this.playFunc = function() {
4987
4998
  e.config.closeFocusVideoFocus || e.media.focus();
4988
4999
  }, this.once(re, this.playFunc);
4989
5000
  }
@@ -5004,14 +5015,14 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5004
5015
  key: "_startInit",
5005
5016
  value: function(e) {
5006
5017
  var i = this;
5007
- if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(en), O.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
5018
+ if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(en), M.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
5008
5019
  this.handleSource && (this._detachSourceEvents(this.media), f.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), f.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
5009
5020
  var n = this.innerContainer ? this.innerContainer : this.root;
5010
5021
  this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
5011
5022
  var s = this.media.readyState;
5012
- O.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
5023
+ M.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (O.os.isIpad || O.os.isPhone) && this.mediaPlay());
5013
5024
  var l = this.config.startTime;
5014
- this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ye, this.canPlayFunc), (!this.hasStart || this.state < N.ATTACHED) && $.afterInit(this), this.hasStart = !0, this.setState(N.ATTACHED), f.setTimeout(this, function() {
5025
+ this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(ye, this.canPlayFunc), (!this.hasStart || this.state < B.ATTACHED) && $.afterInit(this), this.hasStart = !0, this.setState(B.ATTACHED), f.setTimeout(this, function() {
5015
5026
  i.emit(kt);
5016
5027
  }, 0);
5017
5028
  }
@@ -5036,13 +5047,13 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5036
5047
  h.forceBeforeInit && (g.then(function() {
5037
5048
  e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
5038
5049
  }).catch(function(p) {
5039
- O.logError("_registerPlugins:loadingPlugin", p), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
5050
+ M.logError("_registerPlugins:loadingPlugin", p), e._loadingPlugins.splice(e._loadingPlugins.indexOf(g), 1);
5040
5051
  }), e._loadingPlugins.push(g));
5041
5052
  return;
5042
5053
  }
5043
5054
  return e.registerPlugin(h);
5044
5055
  } catch (p) {
5045
- O.logError("_registerPlugins:", p);
5056
+ M.logError("_registerPlugins:", p);
5046
5057
  }
5047
5058
  });
5048
5059
  }
@@ -5149,15 +5160,15 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5149
5160
  key: "start",
5150
5161
  value: function(e) {
5151
5162
  var i = this;
5152
- if (!(this.state > N.ATTACHING))
5153
- return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(N.ATTACHING), this._registerPlugins(!1), $.beforeInit(this).then(function() {
5163
+ if (!(this.state > B.ATTACHING))
5164
+ return !e && !this.config.url && this.getInitDefinition(), this.hasStart = !0, this.setState(B.ATTACHING), this._registerPlugins(!1), $.beforeInit(this).then(function() {
5154
5165
  if (i.config) {
5155
5166
  e || (e = i.url || i.config.url);
5156
5167
  var n = i._preProcessUrl(e), s = i._startInit(n.url);
5157
5168
  return s;
5158
5169
  }
5159
5170
  }).catch(function(n) {
5160
- throw n.fileName = "player", n.lineNumber = "236", O.logError("start:beforeInit:", n), n;
5171
+ throw n.fileName = "player", n.lineNumber = "236", M.logError("start:beforeInit:", n), n;
5161
5172
  });
5162
5173
  }
5163
5174
  }, {
@@ -5181,7 +5192,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5181
5192
  });
5182
5193
  return;
5183
5194
  }
5184
- R.os.isAndroid ? n.once("timeupdate", g) : n.once("canplay", g), n.play();
5195
+ O.os.isAndroid ? n.once("timeupdate", g) : n.once("canplay", g), n.play();
5185
5196
  });
5186
5197
  }
5187
5198
  }, {
@@ -5193,23 +5204,23 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5193
5204
  key: "mediaPlay",
5194
5205
  value: function() {
5195
5206
  var e = this;
5196
- if (!this.hasStart && this.state < N.ATTACHED) {
5207
+ if (!this.hasStart && this.state < B.ATTACHED) {
5197
5208
  this.removeClass(k.NO_START), this.addClass(k.ENTER), this.start(), this._useAutoplay = !0;
5198
5209
  return;
5199
5210
  }
5200
- this.state < N.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
5211
+ this.state < B.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
5201
5212
  var i = L(A(r.prototype), "play", this).call(this);
5202
5213
  return i !== void 0 && i && i.then ? i.then(function() {
5203
- e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < N.RUNNING && (O.logInfo(">>>>playPromise.then"), e.setState(N.RUNNING), e.emit(Oe));
5214
+ e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < B.RUNNING && (M.logInfo(">>>>playPromise.then"), e.setState(B.RUNNING), e.emit(Oe));
5204
5215
  }).catch(function(n) {
5205
- if (O.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
5216
+ if (M.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
5206
5217
  e.onError(), e.removeClass(k.ENTER);
5207
5218
  return;
5208
5219
  }
5209
5220
  n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
5210
- e._errorTimer = null, e.emit(ii), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(N.NOTALLOW);
5221
+ e._errorTimer = null, e.emit(ii), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(B.NOTALLOW);
5211
5222
  }, 0));
5212
- }) : (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(Oe))), i;
5223
+ }) : (M.logWarn("video.play not return promise"), this.state < B.RUNNING && (this.setState(B.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(Oe))), i;
5213
5224
  }
5214
5225
  }, {
5215
5226
  key: "mediaPause",
@@ -5255,7 +5266,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5255
5266
  n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
5256
5267
  }
5257
5268
  n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
5258
- }, this.once(Ce, this._onceSeekCanplay), this.state < N.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5269
+ }, this.once(Ce, this._onceSeekCanplay), this.state < B.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5259
5270
  }
5260
5271
  }
5261
5272
  }, {
@@ -5542,7 +5553,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5542
5553
  }, {
5543
5554
  key: "onPlay",
5544
5555
  value: function() {
5545
- this.state === N.ENDED && this.setState(N.RUNNING), this.removeClass(k.PAUSED), this.ended && this.removeClass(k.ENDED), !this.config.closePlayVideoFocus && this.focus();
5556
+ this.state === B.ENDED && this.setState(B.RUNNING), this.removeClass(k.PAUSED), this.ended && this.removeClass(k.ENDED), !this.config.closePlayVideoFocus && this.focus();
5546
5557
  }
5547
5558
  }, {
5548
5559
  key: "onPause",
@@ -5552,7 +5563,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5552
5563
  }, {
5553
5564
  key: "onEnded",
5554
5565
  value: function() {
5555
- this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(N.ENDED);
5566
+ this.updateAcc("ended"), this.addClass(k.ENDED), this.setState(B.ENDED);
5556
5567
  }
5557
5568
  }, {
5558
5569
  key: "onError",
@@ -5590,7 +5601,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5590
5601
  }, {
5591
5602
  key: "onTimeupdate",
5592
5603
  value: function() {
5593
- !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(Oe)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
5604
+ !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 === B.NOTALLOW && this.duration && (this.setState(B.RUNNING), this.emit(Oe)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
5594
5605
  }
5595
5606
  }, {
5596
5607
  key: "onVolumechange",
@@ -5649,13 +5660,13 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5649
5660
  this.videoPos.pi = c, u = u < 0 ? 0 : u;
5650
5661
  var h = {
5651
5662
  rotate: u
5652
- }, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, C = this.innerContainer, w = _.offsetWidth, b = C ? C.offsetHeight : _.offsetHeight, B = b, F = w;
5663
+ }, d = 0, g = 0, p = 1, m = Math.abs(u / 90), _ = this.root, b = this.innerContainer, w = _.offsetWidth, C = b ? b.offsetHeight : _.offsetHeight, F = C, R = w;
5653
5664
  if (m % 2 === 0)
5654
- 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");
5665
+ 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(R, "px"), this.media.style.height = "".concat(F, "px");
5655
5666
  else if (m % 2 === 1) {
5656
- F = b, B = w;
5657
- var V = b - w;
5658
- g = -V / 2 / F * 100, h.x = m === 3 ? g + i / 2 : g - i / 2, d = V / 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");
5667
+ R = C, F = w;
5668
+ var z = C - w;
5669
+ g = -z / 2 / R * 100, h.x = m === 3 ? g + i / 2 : g - i / 2, d = z / 2 / F * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = p, this.media.style.width = "".concat(R, "px"), this.media.style.height = "".concat(F, "px");
5659
5670
  }
5660
5671
  var D = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
5661
5672
  this.media.style.transform = D, this.media.style.webkitTransform = D;
@@ -5706,18 +5717,18 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5706
5717
  var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, h = u.videoFillMode;
5707
5718
  if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
5708
5719
  this._videoHeight = l, this._videoWidth = s;
5709
- 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, w = p, b = {};
5710
- c === "auto" && _ > m || c === "fixWidth" ? (w = g / m * 1e3, this.config.fluid ? b.paddingTop = "".concat(w * 100 / C, "%") : b.height = "".concat(w + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (C = m * p / 1e3, b.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(b).forEach(function(F) {
5711
- e.root.style[F] = b[F];
5720
+ 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), b = g, w = p, C = {};
5721
+ c === "auto" && _ > m || c === "fixWidth" ? (w = g / m * 1e3, this.config.fluid ? C.paddingTop = "".concat(w * 100 / b, "%") : C.height = "".concat(w + d, "px")) : (c === "auto" && _ < m || c === "fixHeight") && (b = m * p / 1e3, C.width = "".concat(b, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(C).forEach(function(R) {
5722
+ e.root.style[R] = C[R];
5712
5723
  }), (h === "fillHeight" && _ < m || h === "fillWidth" && _ > m) && this.setAttribute("data-xgfill", "cover");
5713
- var B = {
5724
+ var F = {
5714
5725
  videoScale: m,
5715
- vWidth: C,
5726
+ vWidth: b,
5716
5727
  vHeight: w,
5717
- cWidth: C,
5728
+ cWidth: b,
5718
5729
  cHeight: w + d
5719
5730
  };
5720
- this.resizePosition(), this.emit(Se, B);
5731
+ this.resizePosition(), this.emit(Se, F);
5721
5732
  }
5722
5733
  }
5723
5734
  }
@@ -5734,7 +5745,7 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5734
5745
  }, {
5735
5746
  key: "setState",
5736
5747
  value: function(e) {
5737
- O.logInfo("setState", "state from:".concat(Si[this.state], " to:").concat(Si[e])), this._state = e;
5748
+ M.logInfo("setState", "state from:".concat(Si[this.state], " to:").concat(Si[e])), this._state = e;
5738
5749
  }
5739
5750
  }, {
5740
5751
  key: "_preProcessUrl",
@@ -5765,15 +5776,15 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5765
5776
  return this._hasStart;
5766
5777
  },
5767
5778
  set: function(e) {
5768
- typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(N.READY), this.emit("hasstart"));
5779
+ typeof e == "boolean" && (this._hasStart = e, e === !1 && this.setState(B.READY), this.emit("hasstart"));
5769
5780
  }
5770
5781
  }, {
5771
5782
  key: "isPlaying",
5772
5783
  get: function() {
5773
- return this._state === N.RUNNING || this._state === N.ENDED;
5784
+ return this._state === B.RUNNING || this._state === B.ENDED;
5774
5785
  },
5775
5786
  set: function(e) {
5776
- e ? this.setState(N.RUNNING) : this._state >= N.RUNNING && this.setState(N.ATTACHED);
5787
+ e ? this.setState(B.RUNNING) : this._state >= B.RUNNING && this.setState(B.ATTACHED);
5777
5788
  }
5778
5789
  }, {
5779
5790
  key: "definitionList",
@@ -5967,10 +5978,10 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5967
5978
  }], [{
5968
5979
  key: "debugger",
5969
5980
  get: function() {
5970
- return O.config.debug;
5981
+ return M.config.debug;
5971
5982
  },
5972
5983
  set: function(e) {
5973
- O.config.debug = e;
5984
+ M.config.debug = e;
5974
5985
  }
5975
5986
  }, {
5976
5987
  key: "instManager",
@@ -5995,12 +6006,12 @@ var _o = ["play", "pause", "replay", "retry"], xi = 0, Pi = 0, be = null, Tt = /
5995
6006
  }, {
5996
6007
  key: "isHevcSupported",
5997
6008
  value: function() {
5998
- return R.isHevcSupported();
6009
+ return O.isHevcSupported();
5999
6010
  }
6000
6011
  }, {
6001
6012
  key: "probeConfigSupported",
6002
6013
  value: function(e) {
6003
- return R.probeConfigSupported(e);
6014
+ return O.probeConfigSupported(e);
6004
6015
  }
6005
6016
  }, {
6006
6017
  key: "install",
@@ -6037,9 +6048,9 @@ var we = {
6037
6048
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
6038
6049
  i[n] = arguments[n];
6039
6050
  return t = o.call.apply(o, [this].concat(i)), y(v(t), "_onTimeupdate", function() {
6040
- t._state.isTimeUpdate = !0, t._state.autoplayStart && (O.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
6051
+ t._state.isTimeUpdate = !0, t._state.autoplayStart && (M.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
6041
6052
  }), y(v(t), "_onAutoplayStart", function() {
6042
- O.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
6053
+ M.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
6043
6054
  }), y(v(t), "_onReset", function() {
6044
6055
  t._state = {
6045
6056
  autoplayStart: !1,
@@ -6082,17 +6093,17 @@ var we = {
6082
6093
  var e = this;
6083
6094
  this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = Y(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Qt, function() {
6084
6095
  var i = e._state, n = i.autoplayStart, s = i.isFFSend;
6085
- e.startCostTime = Y() - 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(we.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = Y(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
6096
+ e.startCostTime = Y() - e.newPointTime, M.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(we.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = Y(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
6086
6097
  }), this.on(ke, function() {
6087
6098
  e.vt = Y(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
6088
6099
  var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
6089
- 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(we.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
6100
+ M.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || l) && e._sendFF("loadedData"), s || e.emitLog(we.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
6090
6101
  }), this.on(Ct, this._onSeeking), this.on(Ce, this._onSeeked), this.on(ni, function() {
6091
6102
  e.endState("destroy");
6092
6103
  }), this.on(bt, function() {
6093
- e.endState("urlChange"), O.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
6104
+ e.endState("urlChange"), M.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
6094
6105
  }), this.on([Jt, ye], this._onPlaying), this.on(rt, this._onWaiting), this.on(nt, this._onError), this.on(wt, function() {
6095
- O.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
6106
+ M.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
6096
6107
  });
6097
6108
  }
6098
6109
  }, {
@@ -6105,7 +6116,7 @@ var we = {
6105
6116
  value: function(e) {
6106
6117
  this.s = Y();
6107
6118
  var i = this._state, n = i.isFFLoading, s = i.isFFSend;
6108
- O.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (O.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(we.FIRST_FRAME, {
6119
+ M.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (M.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(we.FIRST_FRAME, {
6109
6120
  fvt: this.fvt,
6110
6121
  costTime: this.fvt,
6111
6122
  vt: this.vt,
@@ -6392,23 +6403,23 @@ function ai() {
6392
6403
  </svg>
6393
6404
  `, "image/svg+xml").firstChild;
6394
6405
  }
6395
- var ge = {};
6406
+ var de = {};
6396
6407
  function To(a, o) {
6397
6408
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
6398
6409
  start: null,
6399
6410
  end: null
6400
6411
  };
6401
- return ge[a] && window.clearTimeout(ge[a].id), ge[a] = {}, r.start && r.start(), ge[a].id = window.setTimeout(function() {
6402
- r.end && r.end(), window.clearTimeout(ge[a].id), delete ge[a];
6403
- }, o), ge[a].id;
6412
+ return de[a] && window.clearTimeout(de[a].id), de[a] = {}, r.start && r.start(), de[a].id = window.setTimeout(function() {
6413
+ r.end && r.end(), window.clearTimeout(de[a].id), delete de[a];
6414
+ }, o), de[a].id;
6404
6415
  }
6405
6416
  function Ii(a) {
6406
6417
  if (a) {
6407
6418
  window.clearTimeout(a);
6408
6419
  return;
6409
6420
  }
6410
- Object.keys(ge).map(function(o) {
6411
- window.clearTimeout(ge[o].id), delete ge[o];
6421
+ Object.keys(de).map(function(o) {
6422
+ window.clearTimeout(de[o].id), delete de[o];
6412
6423
  });
6413
6424
  }
6414
6425
  var Eo = /* @__PURE__ */ function(a) {
@@ -6521,16 +6532,16 @@ var Eo = /* @__PURE__ */ function(a) {
6521
6532
  key: "switchPausePlay",
6522
6533
  value: function(e) {
6523
6534
  var i = this.player;
6524
- if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state < N.READY)) {
6535
+ if (e.cancelable && e.preventDefault(), e.stopPropagation(), !(i.state < B.READY)) {
6525
6536
  var n = this.player.paused;
6526
- !n && i.state === N.RUNNING ? i.pause() : i.play();
6537
+ !n && i.state === B.RUNNING ? i.pause() : i.play();
6527
6538
  }
6528
6539
  }
6529
6540
  }, {
6530
6541
  key: "onPlayPause",
6531
6542
  value: function(e) {
6532
6543
  var i = this.config, n = this.player;
6533
- if (!(!n || n.state < N.RUNNING || !this.autoPlayStart)) {
6544
+ if (!(!n || n.state < B.RUNNING || !this.autoPlayStart)) {
6534
6545
  if (i.mode === "show") {
6535
6546
  this.switchStatus(), this.show();
6536
6547
  return;
@@ -6705,7 +6716,7 @@ function Po(a) {
6705
6716
  return o;
6706
6717
  }
6707
6718
  function Di(a) {
6708
- if (typeof a == "string" && (a = document.querySelector(a)), !(!a || q(a) !== "object" || !a.nodeType)) {
6719
+ if (typeof a == "string" && (a = document.querySelector(a)), !(!a || Z(a) !== "object" || !a.nodeType)) {
6709
6720
  var o = Po(a);
6710
6721
  if (o.display === "none")
6711
6722
  return xo();
@@ -7164,7 +7175,7 @@ var Rt = {
7164
7175
  e.__hooks[n] = null;
7165
7176
  });
7166
7177
  var i = this.playerConfig.isMobileSimulateMode;
7167
- i === "mobile" || R.device === "mobile" && !R.os.isIpad || this.initEvents();
7178
+ i === "mobile" || O.device === "mobile" && !O.os.isIpad || this.initEvents();
7168
7179
  }
7169
7180
  }, {
7170
7181
  key: "initEvents",
@@ -7375,12 +7386,12 @@ var He = {
7375
7386
  if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
7376
7387
  var h = u.miniMoveStep, d = u.hideControlsActive, g = parseInt(n.pageX - l.left, 10), p = parseInt(n.pageY - l.top, 10), m = c.rotateDeg === 90 ? p : g, _ = c.rotateDeg === 90 ? g : p;
7377
7388
  if (Math.abs(m - l.x) > h || Math.abs(_ - l.y) > h) {
7378
- var C = m - l.x, w = _ - l.y, b = l.scope;
7379
- if (b === -1 && (b = e.checkScope(m, _, C, w, l), b === 0 && (d ? c.blur() : c.focus({
7389
+ var b = m - l.x, w = _ - l.y, C = l.scope;
7390
+ if (C === -1 && (C = e.checkScope(m, _, b, w, l), C === 0 && (d ? c.blur() : c.focus({
7380
7391
  autoHide: !1
7381
- }), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = b), b === -1 || b > 0 && !u.gestureY || b === 0 && !u.gestureX)
7392
+ }), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = C), C === -1 || C > 0 && !u.gestureY || C === 0 && !u.gestureX)
7382
7393
  return;
7383
- e.executeMove(C, w, b, l.width, l.height), l.x = m, l.y = _;
7394
+ e.executeMove(b, w, C, l.width, l.height), l.x = m, l.y = _;
7384
7395
  }
7385
7396
  }
7386
7397
  }), y(v(e), "onTouchEnd", function(i) {
@@ -7567,7 +7578,7 @@ var He = {
7567
7578
  this.updateBrightness(i / l);
7568
7579
  break;
7569
7580
  case 2:
7570
- R.os.isIos || this.updateVolume(i / l);
7581
+ O.os.isIos || this.updateVolume(i / l);
7571
7582
  break;
7572
7583
  }
7573
7584
  }
@@ -7604,7 +7615,7 @@ var He = {
7604
7615
  key: "clickHandler",
7605
7616
  value: function(e) {
7606
7617
  var i = this.player, n = this.config, s = this.playerConfig;
7607
- if (i.state < N.RUNNING) {
7618
+ if (i.state < B.RUNNING) {
7608
7619
  s.closeVideoClick || (this.sendUseAction(f.createEvent("click")), i.play());
7609
7620
  return;
7610
7621
  }
@@ -7614,7 +7625,7 @@ var He = {
7614
7625
  key: "dbClickHandler",
7615
7626
  value: function(e) {
7616
7627
  var i = this.config, n = this.player;
7617
- !i.closedbClick && n.state >= N.RUNNING && (this.sendUseAction(f.createEvent("dblclick")), this.switchPlayPause());
7628
+ !i.closedbClick && n.state >= B.RUNNING && (this.sendUseAction(f.createEvent("dblclick")), this.switchPlayPause());
7618
7629
  }
7619
7630
  }, {
7620
7631
  key: "onClick",
@@ -7703,7 +7714,7 @@ var He = {
7703
7714
  key: "switchPlayPause",
7704
7715
  value: function() {
7705
7716
  var e = this.player;
7706
- if (e.state < N.ATTACHED)
7717
+ if (e.state < B.ATTACHED)
7707
7718
  return !1;
7708
7719
  e.ended || (e.paused ? e.play() : e.pause());
7709
7720
  }
@@ -8490,7 +8501,7 @@ var Ho = /* @__PURE__ */ function(a) {
8490
8501
  fragAutoFocus: s,
8491
8502
  fragClass: l,
8492
8503
  style: this.playerConfig.commonStyle || {}
8493
- }), R.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Ie, function() {
8504
+ }), O.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Ie, function() {
8494
8505
  e.onMouseLeave();
8495
8506
  }), this.on(ne, function() {
8496
8507
  e.onTimeupdate();
@@ -8519,7 +8530,7 @@ var Ho = /* @__PURE__ */ function(a) {
8519
8530
  key: "initCustomStyle",
8520
8531
  value: function() {
8521
8532
  var e = this.playerConfig || {}, i = e.commonStyle, n = i.sliderBtnStyle, s = this.progressBtn;
8522
- n && (typeof n == "string" ? s.style.boxShadow = n : q(n) === "object" && Object.keys(n).map(function(l) {
8533
+ n && (typeof n == "string" ? s.style.boxShadow = n : Z(n) === "object" && Object.keys(n).map(function(l) {
8523
8534
  s.style[l] = n[l];
8524
8535
  }));
8525
8536
  }
@@ -8607,10 +8618,10 @@ var Ho = /* @__PURE__ */ function(a) {
8607
8618
  m = m > d ? d : m < 0 ? 0 : m;
8608
8619
  var _ = m / d;
8609
8620
  _ = _ < 0 ? 0 : _ > 1 ? 1 : _;
8610
- var C = parseInt(_ * this.offsetDuration * 1e3, 10) / 1e3, w = f.getCurrentTimeByOffset(C, n.timeSegments);
8621
+ var b = parseInt(_ * this.offsetDuration * 1e3, 10) / 1e3, w = f.getCurrentTimeByOffset(b, n.timeSegments);
8611
8622
  return {
8612
8623
  percent: _,
8613
- currentTime: C,
8624
+ currentTime: b,
8614
8625
  seekTime: w,
8615
8626
  offset: m,
8616
8627
  width: d,
@@ -8983,7 +8994,7 @@ var Yo = /* @__PURE__ */ function(a) {
8983
8994
  }
8984
8995
  }
8985
8996
  }
8986
- })), R.device === "mobile" && window.addEventListener("orientationchange", this._onOrientationChange);
8997
+ })), O.device === "mobile" && window.addEventListener("orientationchange", this._onOrientationChange);
8987
8998
  }
8988
8999
  }
8989
9000
  }, {
@@ -9003,7 +9014,7 @@ var Yo = /* @__PURE__ */ function(a) {
9003
9014
  }, {
9004
9015
  key: "destroy",
9005
9016
  value: function() {
9006
- L(A(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);
9017
+ L(A(r.prototype), "destroy", this).call(this), this.unbind(".xgplayer-icon", O.device === "mobile" ? "touchend" : "click", this.handleFullscreen), O.device === "mobile" && window.removeEventListener("orientationchange", this._onOrientationChange);
9007
9018
  }
9008
9019
  }, {
9009
9020
  key: "initIcons",
@@ -9463,7 +9474,7 @@ var ea = /* @__PURE__ */ function(a) {
9463
9474
  pre: function(u) {
9464
9475
  u.preventDefault(), u.stopPropagation();
9465
9476
  }
9466
- }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), R.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(qi, this.onVolumeChange), this.once(ke, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9477
+ }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), O.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(qi, this.onVolumeChange), this.once(ke, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
9467
9478
  }
9468
9479
  }
9469
9480
  }, {
@@ -9541,7 +9552,7 @@ var ea = /* @__PURE__ */ function(a) {
9541
9552
  }, {
9542
9553
  key: "destroy",
9543
9554
  value: function() {
9544
- this._timerId && (f.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon", R.device === "mobile" ? "touchend" : "click", this.changeMutedHandler);
9555
+ this._timerId && (f.clearTimeout(this, this._timerId), this._timerId = null), this.unbind("mouseenter", this.onMouseenter), this.unbind(["blur", "mouseleave"], this.onMouseleave), this.unbind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.unbind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.unbind(".xgplayer-slider", "mouseup", this.onBarMouseUp), document.removeEventListener("mouseup", this.onBarMouseUp), this.unbind(".xgplayer-icon", O.device === "mobile" ? "touchend" : "click", this.changeMutedHandler);
9545
9556
  }
9546
9557
  }, {
9547
9558
  key: "render",
@@ -9632,17 +9643,17 @@ var ia = /* @__PURE__ */ function(a) {
9632
9643
  this.player.videoRotateDeg = e;
9633
9644
  return;
9634
9645
  }
9635
- var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s, m = l, _ = 0, C = 0;
9636
- (e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), _ = -(g - d) / 2, C = -(d - g) / 2);
9637
- var w = "translate(".concat(_, "px,").concat(C, "px) rotate(").concat(e, "turn)"), b = {
9646
+ var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s, m = l, _ = 0, b = 0;
9647
+ (e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), _ = -(g - d) / 2, b = -(d - g) / 2);
9648
+ var w = "translate(".concat(_, "px,").concat(b, "px) rotate(").concat(e, "turn)"), C = {
9638
9649
  transformOrigin: "center center",
9639
9650
  transform: w,
9640
9651
  webKitTransform: w,
9641
9652
  height: m,
9642
9653
  width: p
9643
- }, B = i ? h : u, F = i ? n.getPlugin("poster") : null;
9644
- Object.keys(b).map(function(V) {
9645
- B.style[V] = b[V], F && F.root && (F.root.style[V] = b[V]);
9654
+ }, F = i ? h : u, R = i ? n.getPlugin("poster") : null;
9655
+ Object.keys(C).map(function(z) {
9656
+ F.style[z] = C[z], R && R.root && (R.root.style[z] = C[z]);
9646
9657
  });
9647
9658
  }
9648
9659
  }, {
@@ -9785,9 +9796,9 @@ var Ue = {
9785
9796
  }, {
9786
9797
  key: "copyStyleIntoPiPWindow",
9787
9798
  value: function(e) {
9788
- var i = fe(document.styleSheets).map(function(s) {
9799
+ var i = ce(document.styleSheets).map(function(s) {
9789
9800
  try {
9790
- return fe(s.cssRules).map(function(u) {
9801
+ return ce(s.cssRules).map(function(u) {
9791
9802
  return u.cssText;
9792
9803
  }).join("");
9793
9804
  } catch {
@@ -9817,18 +9828,18 @@ var Ue = {
9817
9828
  documentPictureInPicture.requestWindow(u).then(function(h) {
9818
9829
  var d = s.docPiPNode, g = s.docPiPStyle;
9819
9830
  e.enterPIPCallback();
9820
- var p = d || i.root, m = p.parentElement, _ = p.previousSibling, C = p.nextSibling;
9831
+ var p = d || i.root, m = p.parentElement, _ = p.previousSibling, b = p.nextSibling;
9821
9832
  e.copyStyleIntoPiPWindow(h);
9822
9833
  var w = document.createElement("style");
9823
9834
  if (w.append("body{padding:0; margin:0;}"), g) {
9824
- var b = "";
9825
- typeof g == "string" ? b = g : typeof g == "function" && (b = g.call(s)), b && w.append(b);
9835
+ var C = "";
9836
+ typeof g == "string" ? C = g : typeof g == "function" && (C = g.call(s)), C && w.append(C);
9826
9837
  } else
9827
9838
  p === i.root && w.append(`
9828
9839
  .xgplayer{width: 100%!important; height: 100%!important;}
9829
9840
  `);
9830
- h.document.head.append(w), h.document.body.append(p), h.addEventListener("pagehide", function(B) {
9831
- m && (C ? m.insertBefore(p, C) : _ ? m.insertBefore(p, _.nextSibling) : m.appendChild(p)), e.leavePIPCallback();
9841
+ h.document.head.append(w), h.document.body.append(p), h.addEventListener("pagehide", function(F) {
9842
+ m && (b ? m.insertBefore(p, b) : _ ? m.insertBefore(p, _.nextSibling) : m.appendChild(p)), e.leavePIPCallback();
9832
9843
  }, {
9833
9844
  once: !0
9834
9845
  });
@@ -9946,7 +9957,7 @@ var aa = /* @__PURE__ */ function(a) {
9946
9957
  key: "initEvents",
9947
9958
  value: function() {
9948
9959
  this.nextHandler = this.hook("nextClick", this.changeSrc);
9949
- var e = R.device === "mobile" ? "touchend" : "click";
9960
+ var e = O.device === "mobile" ? "touchend" : "click";
9950
9961
  this.bind(e, this.playNext), this.show();
9951
9962
  }
9952
9963
  }, {
@@ -9998,38 +10009,38 @@ var aa = /* @__PURE__ */ function(a) {
9998
10009
  return String(D);
9999
10010
  }, g = n.Blob || n.MozBlob || n.WebKitBlob || d, p = e || "download", m, _;
10000
10011
  if (g = g.call ? g.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (p = c.split("/").pop().split("?")[0], h.href = c, h.href.indexOf(c) !== -1)) {
10001
- var C = new XMLHttpRequest();
10002
- return C.open("GET", c, !0), C.responseType = "blob", C.onload = function(D) {
10012
+ var b = new XMLHttpRequest();
10013
+ return b.open("GET", c, !0), b.responseType = "blob", b.onload = function(D) {
10003
10014
  r(D.target.response, p, s);
10004
10015
  }, setTimeout(function() {
10005
- C.send();
10006
- }, 0), C;
10016
+ b.send();
10017
+ }, 0), b;
10007
10018
  }
10008
10019
  if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
10009
10020
  if (u.length > 1024 * 1024 * 1.999 && g !== d)
10010
- u = F(u), l = u.type || s;
10021
+ u = R(u), l = u.type || s;
10011
10022
  else
10012
10023
  return navigator.msSaveBlob ? (
10013
10024
  // IE10 can't do a[download], only Blobs:
10014
- navigator.msSaveBlob(F(u), p)
10015
- ) : V(u);
10025
+ navigator.msSaveBlob(R(u), p)
10026
+ ) : z(u);
10016
10027
  else if (/([\x80-\xff])/.test(u)) {
10017
- var w = 0, b = new Uint8Array(u.length), B = b.length;
10018
- for (w; w < B; ++w)
10019
- b[w] = u.charCodeAt(w);
10020
- u = new g([b], { type: l });
10028
+ var w = 0, C = new Uint8Array(u.length), F = C.length;
10029
+ for (w; w < F; ++w)
10030
+ C[w] = u.charCodeAt(w);
10031
+ u = new g([C], { type: l });
10021
10032
  }
10022
10033
  m = u instanceof g ? u : new g([u], { type: l });
10023
- function F(D) {
10024
- var Z = D.split(/[:;,]/), G = Z[1], H = Z[2] == "base64" ? atob : decodeURIComponent, ee = H(Z.pop()), oe = ee.length, ae = 0, Le = new Uint8Array(oe);
10034
+ function R(D) {
10035
+ var J = D.split(/[:;,]/), G = J[1], H = J[2] == "base64" ? atob : decodeURIComponent, te = H(J.pop()), oe = te.length, ae = 0, Le = new Uint8Array(oe);
10025
10036
  for (ae; ae < oe; ++ae)
10026
- Le[ae] = ee.charCodeAt(ae);
10037
+ Le[ae] = te.charCodeAt(ae);
10027
10038
  return new g([Le], { type: G });
10028
10039
  }
10029
- function V(D, Z) {
10040
+ function z(D, J) {
10030
10041
  if ("download" in h)
10031
10042
  return h.href = D, h.setAttribute("download", p), h.className = "download-js-link", h.innerHTML = "downloading...", h.style.display = "none", document.body.appendChild(h), setTimeout(function() {
10032
- h.click(), document.body.removeChild(h), Z === !0 && setTimeout(function() {
10043
+ h.click(), document.body.removeChild(h), J === !0 && setTimeout(function() {
10033
10044
  n.URL.revokeObjectURL(h.href);
10034
10045
  }, 250);
10035
10046
  }, 66), !0;
@@ -10038,23 +10049,23 @@ var aa = /* @__PURE__ */ function(a) {
10038
10049
 
10039
10050
  Use Save As... to download, then click back to return to this page.`) && (location.href = D), !0;
10040
10051
  var G = document.createElement("iframe");
10041
- document.body.appendChild(G), !Z && /^data:/.test(D) && (D = "data:" + D.replace(/^data:([\w\/\-\+]+)/, s)), G.src = D, setTimeout(function() {
10052
+ document.body.appendChild(G), !J && /^data:/.test(D) && (D = "data:" + D.replace(/^data:([\w\/\-\+]+)/, s)), G.src = D, setTimeout(function() {
10042
10053
  document.body.removeChild(G);
10043
10054
  }, 333);
10044
10055
  }
10045
10056
  if (navigator.msSaveBlob)
10046
10057
  return navigator.msSaveBlob(m, p);
10047
10058
  if (n.URL)
10048
- V(n.URL.createObjectURL(m), !0);
10059
+ z(n.URL.createObjectURL(m), !0);
10049
10060
  else {
10050
10061
  if (typeof m == "string" || m.constructor === d)
10051
10062
  try {
10052
- return V("data:" + l + ";base64," + n.btoa(m));
10063
+ return z("data:" + l + ";base64," + n.btoa(m));
10053
10064
  } catch {
10054
- return V("data:" + l + "," + encodeURIComponent(m));
10065
+ return z("data:" + l + "," + encodeURIComponent(m));
10055
10066
  }
10056
10067
  _ = new FileReader(), _.onload = function(D) {
10057
- V(this.result);
10068
+ z(this.result);
10058
10069
  }, _.readAsDataURL(m);
10059
10070
  }
10060
10071
  return !0;
@@ -10223,8 +10234,8 @@ var fa = /* @__PURE__ */ function(a) {
10223
10234
  p = u.media.canvas;
10224
10235
  else {
10225
10236
  n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
10226
- var _ = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, w = 0, b = 0, B = u.media.videoWidth, F = u.media.videoHeight, V, D, Z, G;
10227
- _ > C ? (Z = p.width, G = p.width / _, V = 0, D = Math.round((p.height - G) / 2)) : _ === C ? (Z = p.width, G = p.height, V = 0, D = 0) : _ < C && (Z = p.height * _, G = p.height, V = Math.round((p.width - Z) / 2), D = 0), m.drawImage(u.media, w, b, B, F, V, D, Z, G);
10237
+ var _ = u.media.videoWidth / u.media.videoHeight, b = p.width / p.height, w = 0, C = 0, F = u.media.videoWidth, R = u.media.videoHeight, z, D, J, G;
10238
+ _ > b ? (J = p.width, G = p.width / _, z = 0, D = Math.round((p.height - G) / 2)) : _ === b ? (J = p.width, G = p.height, z = 0, D = 0) : _ < b && (J = p.height * _, G = p.height, z = Math.round((p.width - J) / 2), D = 0), m.drawImage(u.media, w, C, F, R, z, D, J, G);
10228
10239
  }
10229
10240
  var H = p.toDataURL(h, c).replace(h, "image/octet-stream");
10230
10241
  H = H.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(H);
@@ -10350,7 +10361,7 @@ var fa = /* @__PURE__ */ function(a) {
10350
10361
  }), this._delegates = null), this.root.innerHTML = null, this.parent.removeChild(this.root), this.root = null;
10351
10362
  }
10352
10363
  }]), a;
10353
- }(), de = {
10364
+ }(), he = {
10354
10365
  SIDE: "side",
10355
10366
  MIDDLE: "middle",
10356
10367
  DEFAULT: "default"
@@ -10359,9 +10370,9 @@ var fa = /* @__PURE__ */ function(a) {
10359
10370
  HOVER: "hover"
10360
10371
  };
10361
10372
  function ga(a, o) {
10362
- return a === de.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10373
+ return a === he.SIDE ? o === j.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10363
10374
  }
10364
- var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
10375
+ var De = O.device === "mobile", _t = /* @__PURE__ */ function(a) {
10365
10376
  x(r, a);
10366
10377
  var o = P(r);
10367
10378
  function r(t) {
@@ -10377,7 +10388,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
10377
10388
  }), y(v(e), "onLeave", function(i) {
10378
10389
  i.stopPropagation(), e.emit("icon_mouseleave", {
10379
10390
  pluginName: e.pluginName
10380
- }), e.config.listType !== de.SIDE && e.isActive && e.toggle(!1);
10391
+ }), e.config.listType !== he.SIDE && e.isActive && e.toggle(!1);
10381
10392
  }), y(v(e), "onListEnter", function(i) {
10382
10393
  e.enterType = 2;
10383
10394
  }), y(v(e), "onListLeave", function(i) {
@@ -10393,7 +10404,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
10393
10404
  key: "afterCreate",
10394
10405
  value: function() {
10395
10406
  var e = this, i = this.config;
10396
- this.initIcons(), De = De || this.domEventType === "touch", De && R.device === "mobile" && i.listType === de.DEFAULT && (i.listType = de.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([Se, ve], function() {
10407
+ this.initIcons(), De = De || this.domEventType === "touch", De && O.device === "mobile" && i.listType === he.DEFAULT && (i.listType = he.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([Se, ve], function() {
10397
10408
  e._resizeList();
10398
10409
  }), this.once(ye, function() {
10399
10410
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
@@ -10427,7 +10438,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
10427
10438
  var s = this.config.list;
10428
10439
  !n && (n = this.player.lang), i = !i || f.isUndefined(e[i]) ? "text" : i, typeof e == "number" && (e = s[e]);
10429
10440
  try {
10430
- return q(e[i]) === "object" ? e[i][n] || e[i].en : e[i];
10441
+ return Z(e[i]) === "object" ? e[i][n] || e[i].en : e[i];
10431
10442
  } catch (l) {
10432
10443
  return console.warn(l), "";
10433
10444
  }
@@ -10437,7 +10448,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
10437
10448
  value: function(e) {
10438
10449
  if (!(e === this.isActive || this.config.disable)) {
10439
10450
  var i = this.player.controls, n = this.config.listType;
10440
- e ? (n === de.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === de.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
10451
+ e ? (n === he.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === he.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
10441
10452
  }
10442
10453
  }
10443
10454
  }, {
@@ -10447,7 +10458,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
10447
10458
  var n = this.config, s = n.listType, l = n.list;
10448
10459
  this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
10449
10460
  var u = this.config.isItemClickHide;
10450
- (u || De || s === de.SIDE) && this.toggle(!1);
10461
+ (u || De || s === he.SIDE) && this.toggle(!1);
10451
10462
  }
10452
10463
  }, {
10453
10464
  key: "onIconClick",
@@ -10478,10 +10489,10 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
10478
10489
  },
10479
10490
  domEventType: De ? "touch" : "mouse"
10480
10491
  },
10481
- root: s.listType === de.SIDE ? u.innerContainer || u.root : this.root
10492
+ root: s.listType === he.SIDE ? u.innerContainer || u.root : this.root
10482
10493
  };
10483
10494
  if (this.config.isShowIcon) {
10484
- var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === de.MIDDLE ? d - 50 : d;
10495
+ var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === he.MIDDLE ? d - 50 : d;
10485
10496
  g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new da(c), this.changeCurrentText(), this.show();
10486
10497
  }
10487
10498
  this._resizeList();
@@ -10490,7 +10501,7 @@ var De = R.device === "mobile", _t = /* @__PURE__ */ function(a) {
10490
10501
  key: "_resizeList",
10491
10502
  value: function() {
10492
10503
  if (this.config.heightLimit) {
10493
- var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === de.MIDDLE ? i - 50 : i;
10504
+ var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === he.MIDDLE ? i - 50 : i;
10494
10505
  this.optionsList && this.optionsList.setStyle({
10495
10506
  maxHeight: "".concat(n, "px")
10496
10507
  });
@@ -11223,7 +11234,7 @@ var Ve = {
11223
11234
  var e = this, i = this.player.plugins.progress;
11224
11235
  if (i && (Object.keys(Ve).map(function(s) {
11225
11236
  e[Ve[s]] = e[Ve[s]].bind(e), i.addCallBack(s, e[Ve[s]]);
11226
- }), R.device !== "mobile")) {
11237
+ }), O.device !== "mobile")) {
11227
11238
  this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
11228
11239
  var n = this.hook("previewClick", function() {
11229
11240
  });
@@ -11299,7 +11310,7 @@ var Ve = {
11299
11310
  key: "registerThumbnail",
11300
11311
  value: function() {
11301
11312
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
11302
- if (R.device !== "mobile") {
11313
+ if (O.device !== "mobile") {
11303
11314
  var i = this.player, n = this.config, s = i.getPlugin("thumbnail");
11304
11315
  if (s && s.setConfig(e), !s || !s.usable || !n.isShowThumbnail) {
11305
11316
  f.addClass(this.root, "short-line no-thumbnail");
@@ -11387,7 +11398,7 @@ var Ve = {
11387
11398
  }, {
11388
11399
  key: "render",
11389
11400
  value: function() {
11390
- return R.device === "mobile" || this.playerConfig.isMobileSimulateMode === "mobile" ? "" : '<div class="xg-spot-info hide '.concat(this.config.mode === "short" ? "short-line" : "", `">
11401
+ return O.device === "mobile" || this.playerConfig.isMobileSimulateMode === "mobile" ? "" : '<div class="xg-spot-info hide '.concat(this.config.mode === "short" ? "short-line" : "", `">
11391
11402
  <div class="xg-spot-content">
11392
11403
  <div class="xg-spot-thumbnail">
11393
11404
  <span class="xg-spot-time"></span>
@@ -11487,26 +11498,26 @@ var Ve = {
11487
11498
  this.interval = Math.round(this.player.duration / l);
11488
11499
  var g = Math.ceil(e / this.interval);
11489
11500
  g = g > l ? l : g;
11490
- var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), _ = m > 0 ? Math.ceil(m / c) - 1 : 0, C = m > 0 ? m - _ * c - 1 : 0, w = 0, b = 0;
11501
+ var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), _ = m > 0 ? Math.ceil(m / c) - 1 : 0, b = m > 0 ? m - _ * c - 1 : 0, w = 0, C = 0;
11491
11502
  if (i && n) {
11492
- var B = i / n;
11493
- B < h / d ? (b = n, w = b * (h / d)) : (w = i, b = w / (h / d));
11503
+ var F = i / n;
11504
+ F < h / d ? (C = n, w = C * (h / d)) : (w = i, C = w / (h / d));
11494
11505
  } else
11495
- n ? i || (b = n || d, w = b * (h / d)) : (w = i || h, b = w / (h / d));
11496
- var F = this.getUrlByIndex(p);
11506
+ n ? i || (C = n || d, w = C * (h / d)) : (w = i || h, C = w / (h / d));
11507
+ var R = this.getUrlByIndex(p);
11497
11508
  return {
11498
11509
  urlIndex: p,
11499
11510
  rowIndex: _,
11500
- colIndex: C,
11501
- url: F,
11502
- height: b,
11511
+ colIndex: b,
11512
+ url: R,
11513
+ height: C,
11503
11514
  width: w,
11504
11515
  style: {
11505
- backgroundImage: "url(".concat(F, ")"),
11516
+ backgroundImage: "url(".concat(R, ")"),
11506
11517
  backgroundSize: "".concat(w * c, "px auto"),
11507
- backgroundPosition: "-".concat(C * w, "px -").concat(_ * b, "px"),
11518
+ backgroundPosition: "-".concat(b * w, "px -").concat(_ * C, "px"),
11508
11519
  width: "".concat(w, "px"),
11509
- height: "".concat(b, "px")
11520
+ height: "".concat(C, "px")
11510
11521
  }
11511
11522
  };
11512
11523
  }
@@ -11736,7 +11747,7 @@ var at = null, xa = /* @__PURE__ */ function(a) {
11736
11747
  s || (s = n.isInnerRender && i.innerContainer || i.root), s.insertAdjacentHTML("afterbegin", '<div class="xgplayer-dynamic-bg" data-index="'.concat(n.index, `"><canvas>
11737
11748
  </canvas><xgmask></xgmask></div>`)), this.root = s.children[0], this.canvas = this.find("canvas"), this.canvasFilter || (this.canvas.style.filter = n.filter, this.canvas.style.webkitFilter = n.filter), this.mask = this.find("xgmask"), n.addMask && (this.mask.style.background = n.maskBg), this.canvasCtx = this.canvas.getContext("2d");
11738
11749
  } catch (l) {
11739
- O.logError("plugin:DynamicBg", l);
11750
+ M.logError("plugin:DynamicBg", l);
11740
11751
  }
11741
11752
  }
11742
11753
  }, {
@@ -11761,7 +11772,7 @@ var at = null, xa = /* @__PURE__ */ function(a) {
11761
11772
  if (!e)
11762
11773
  return null;
11763
11774
  var i = e && e instanceof window.HTMLVideoElement ? e : e.canvas ? e.canvas : e.flyVideo ? e.flyVideo : null;
11764
- if (i && !(R.browser === "safari" && f.isMSE(i)))
11775
+ if (i && !(O.browser === "safari" && f.isMSE(i)))
11765
11776
  return i;
11766
11777
  var n = i ? i.tagName.toLowerCase() : "";
11767
11778
  return n === "canvas" || n === "img" ? i : null;
@@ -11820,7 +11831,7 @@ var at = null, xa = /* @__PURE__ */ function(a) {
11820
11831
  }
11821
11832
  this.canvasFilter && (this.canvasCtx.filter = s.filter), this.canvasCtx.drawImage(e, n.x, n.y, n.rwidth, n.rheight);
11822
11833
  } catch (p) {
11823
- O.logError("plugin:DynamicBg", p);
11834
+ M.logError("plugin:DynamicBg", p);
11824
11835
  }
11825
11836
  }
11826
11837
  }, {
@@ -11863,7 +11874,7 @@ var at = null, xa = /* @__PURE__ */ function(a) {
11863
11874
  }, {
11864
11875
  key: "supportCanvasFilter",
11865
11876
  value: function() {
11866
- return !(R.browser === "safari" || R.browser === "firefox");
11877
+ return !(O.browser === "safari" || O.browser === "firefox");
11867
11878
  }
11868
11879
  }]), r;
11869
11880
  }(U), Pa = {
@@ -12107,8 +12118,8 @@ var at = null, xa = /* @__PURE__ */ function(a) {
12107
12118
  console.log("GapJump bufferRange ", c.start(p), c.end(p));
12108
12119
  var m = c.start(p) + 0.1, _ = l.media.duration;
12109
12120
  if (!(m > _)) {
12110
- var C = m - g, w = C <= h;
12111
- C < r.BROWSER_GAP_TOLERANCE || w && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", w, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
12121
+ var b = m - g, w = b <= h;
12122
+ b < r.BROWSER_GAP_TOLERANCE || w && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", w, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
12112
12123
  type: "oneevent",
12113
12124
  end_type: "gap",
12114
12125
  vid: l.config.vid,
@@ -12253,14 +12264,14 @@ var Aa = /* @__PURE__ */ function(a) {
12253
12264
  try {
12254
12265
  var g = (/* @__PURE__ */ new Date()).getTime(), p = null, m = new XMLHttpRequest();
12255
12266
  t.xhr = m, m.open("GET", d);
12256
- var _ = {}, C = Math.floor(Math.random() * 10);
12257
- _.Range = "bytes=" + C + "-" + (u + C), _ && Object.keys(_).forEach(function(w) {
12267
+ var _ = {}, b = Math.floor(Math.random() * 10);
12268
+ _.Range = "bytes=" + b + "-" + (u + b), _ && Object.keys(_).forEach(function(w) {
12258
12269
  m.setRequestHeader(w, _[w]);
12259
12270
  }), m.onreadystatechange = function() {
12260
12271
  if (m.readyState === 4) {
12261
12272
  t.xhr = null, p = (/* @__PURE__ */ new Date()).getTime();
12262
- var w = m.getResponseHeader("Content-Length") / 1024 * 8, b = Math.round(w * 1e3 / (p - g));
12263
- t.appendList(b), t.timer = setTimeout(t.testSpeed, h);
12273
+ var w = m.getResponseHeader("Content-Length") / 1024 * 8, C = Math.round(w * 1e3 / (p - g));
12274
+ t.appendList(C), t.timer = setTimeout(t.testSpeed, h);
12264
12275
  }
12265
12276
  }, m.send();
12266
12277
  } catch (w) {
@@ -12297,7 +12308,7 @@ var Aa = /* @__PURE__ */ function(a) {
12297
12308
  key: "afterCreate",
12298
12309
  value: function() {
12299
12310
  var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
12300
- (n == null ? void 0 : n.length) > 0 && lt.push.apply(lt, fe(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ke, ft], this.startTimer);
12311
+ (n == null ? void 0 : n.length) > 0 && lt.push.apply(lt, ce(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ke, ft], this.startTimer);
12301
12312
  }
12302
12313
  }, {
12303
12314
  key: "getSpeedName",
@@ -12462,8 +12473,8 @@ var Ra = /* @__PURE__ */ E(function a(o, r) {
12462
12473
  var t, e, i;
12463
12474
  T(this, a);
12464
12475
  var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [qo, Vo, Ta, ba, Xo], u = [].concat(l, [jo, Yo, ia, aa, pa, va, fa, ha, ea, sa]), c = [bo, wo, Eo, Ho, So, _a, Ca, wa, Ao];
12465
- this.plugins = [Ia, Co].concat(fe(u), c, [kn, Aa]);
12466
- var h = n ? "mobile" : R.device;
12476
+ this.plugins = [Ia, Co].concat(ce(u), c, [kn, Aa]);
12477
+ var h = n ? "mobile" : O.device;
12467
12478
  switch (h) {
12468
12479
  case "pc":
12469
12480
  (t = this.plugins).push.apply(t, [Mi, Ft, Bi, La, Da]);
@@ -12474,8 +12485,8 @@ var Ra = /* @__PURE__ */ E(function a(o, r) {
12474
12485
  default:
12475
12486
  (i = this.plugins).push.apply(i, [Mi, Ft, Bi]);
12476
12487
  }
12477
- (R.os.isIpad || h === "pc") && this.plugins.push(xa), R.os.isIpad && this.plugins.push(Ft), this.ignores = [], this.i18n = [];
12478
- }), he = /* @__PURE__ */ function(a) {
12488
+ (O.os.isIpad || h === "pc") && this.plugins.push(xa), O.os.isIpad && this.plugins.push(Ft), this.ignores = [], this.i18n = [];
12489
+ }), fe = /* @__PURE__ */ function(a) {
12479
12490
  x(r, a);
12480
12491
  var o = P(r);
12481
12492
  function r() {
@@ -12483,16 +12494,16 @@ var Ra = /* @__PURE__ */ E(function a(o, r) {
12483
12494
  }
12484
12495
  return E(r);
12485
12496
  }(Tt);
12486
- y(he, "defaultPreset", Ra);
12487
- y(he, "Util", f);
12488
- y(he, "Sniffer", R);
12489
- y(he, "Errors", ct);
12490
- y(he, "Events", Ks);
12491
- y(he, "Plugin", U);
12492
- y(he, "BasePlugin", xe);
12493
- y(he, "I18N", Ke);
12494
- y(he, "STATE_CLASS", k);
12495
- y(he, "InstManager", mn);
12497
+ y(fe, "defaultPreset", Ra);
12498
+ y(fe, "Util", f);
12499
+ y(fe, "Sniffer", O);
12500
+ y(fe, "Errors", ct);
12501
+ y(fe, "Events", Ks);
12502
+ y(fe, "Plugin", U);
12503
+ y(fe, "BasePlugin", xe);
12504
+ y(fe, "I18N", Ke);
12505
+ y(fe, "STATE_CLASS", k);
12506
+ y(fe, "InstManager", mn);
12496
12507
  const Oa = ["id"], Fa = /* @__PURE__ */ se({
12497
12508
  name: "ElImageViewer",
12498
12509
  __name: "Player",
@@ -12549,7 +12560,7 @@ const Oa = ["id"], Fa = /* @__PURE__ */ se({
12549
12560
  }
12550
12561
  return zi(() => u.value, (g) => {
12551
12562
  g && Vi(() => {
12552
- r = new he({
12563
+ r = new fe({
12553
12564
  id: c,
12554
12565
  url: i.value,
12555
12566
  ...s.value
@@ -12557,28 +12568,28 @@ const Oa = ["id"], Fa = /* @__PURE__ */ se({
12557
12568
  });
12558
12569
  }), (g, p) => {
12559
12570
  const m = Ee("el-icon");
12560
- return u.value ? (I(), ce(En, {
12571
+ return u.value ? (I(), pe(En, {
12561
12572
  key: 0,
12562
12573
  to: "body"
12563
12574
  }, [
12564
- Q(Sn, {
12575
+ X(Sn, {
12565
12576
  name: "viewer-fade",
12566
12577
  appear: ""
12567
12578
  }, {
12568
- default: X(() => [
12579
+ default: q(() => [
12569
12580
  S(
12570
12581
  "div",
12571
12582
  {
12572
12583
  ref: "wrapper",
12573
12584
  tabindex: -1,
12574
- class: te(z(h).e("wrapper")),
12585
+ class: ee(V(h).e("wrapper")),
12575
12586
  style: le({ zIndex: a.zIndex })
12576
12587
  },
12577
12588
  [
12578
12589
  S(
12579
12590
  "div",
12580
12591
  {
12581
- class: te(z(h).e("mask"))
12592
+ class: ee(V(h).e("mask"))
12582
12593
  },
12583
12594
  null,
12584
12595
  2
@@ -12588,21 +12599,21 @@ const Oa = ["id"], Fa = /* @__PURE__ */ se({
12588
12599
  S(
12589
12600
  "div",
12590
12601
  {
12591
- class: te(z(h).e("canvas"))
12602
+ class: ee(V(h).e("canvas"))
12592
12603
  },
12593
12604
  [
12594
- S("div", { id: z(c) }, null, 8, Oa),
12605
+ S("div", { id: V(c) }, null, 8, Oa),
12595
12606
  ue(" CLOSE "),
12596
12607
  S(
12597
12608
  "span",
12598
12609
  {
12599
- class: te([z(h).e("btn"), z(h).e("close")]),
12610
+ class: ee([V(h).e("btn"), V(h).e("close")]),
12600
12611
  onClick: d
12601
12612
  },
12602
12613
  [
12603
- Q(m, { onClick: d }, {
12604
- default: X(() => [
12605
- Q(z(Hr))
12614
+ X(m, { onClick: d }, {
12615
+ default: q(() => [
12616
+ X(V(Hr))
12606
12617
  ]),
12607
12618
  _: 1
12608
12619
  /* STABLE */
@@ -12615,7 +12626,7 @@ const Oa = ["id"], Fa = /* @__PURE__ */ se({
12615
12626
  2
12616
12627
  /* CLASS */
12617
12628
  ),
12618
- pe(g.$slots, "default", {}, void 0, !0)
12629
+ ge(g.$slots, "default", {}, void 0, !0)
12619
12630
  ],
12620
12631
  6
12621
12632
  /* CLASS, STYLE */
@@ -12701,26 +12712,26 @@ const Ma = /* @__PURE__ */ it(Fa, [["__scopeId", "data-v-b301aa7d"]]), Na = Pe(M
12701
12712
  }, t = K(() => typeof o.labelWidth == "number" ? `${o.labelWidth}px` : o.labelWidth);
12702
12713
  return (e, i) => {
12703
12714
  const n = Ee("el-descriptions-item"), s = Ee("el-descriptions");
12704
- return I(), ce(
12715
+ return I(), pe(
12705
12716
  s,
12706
12717
  Ut({ class: "margin-top" }, { ...a.titleProps, ...o }),
12707
12718
  {
12708
- extra: X(() => [
12709
- pe(e.$slots, "extra", {}, void 0, !0)
12719
+ extra: q(() => [
12720
+ ge(e.$slots, "extra", {}, void 0, !0)
12710
12721
  ]),
12711
- default: X(() => [
12712
- (I(!0), M(
12722
+ default: q(() => [
12723
+ (I(!0), N(
12713
12724
  Ge,
12714
12725
  null,
12715
- Ht(a.listData, (l) => (I(), ce(
12726
+ Ht(a.listData, (l) => (I(), pe(
12716
12727
  n,
12717
12728
  Ut({
12718
12729
  key: l[r.id],
12719
12730
  ref_for: !0
12720
12731
  }, l[r.props]),
12721
12732
  {
12722
- label: X(() => [
12723
- pe(e.$slots, l[r.label], {}, () => [
12733
+ label: q(() => [
12734
+ ge(e.$slots, l[r.label], {}, () => [
12724
12735
  Ye(
12725
12736
  _e(l[r.label]),
12726
12737
  1
@@ -12728,21 +12739,21 @@ const Ma = /* @__PURE__ */ it(Fa, [["__scopeId", "data-v-b301aa7d"]]), Na = Pe(M
12728
12739
  )
12729
12740
  ], !0)
12730
12741
  ]),
12731
- default: X(() => [
12732
- pe(e.$slots, `${l[r.label]}_value`, {}, () => [
12742
+ default: q(() => [
12743
+ ge(e.$slots, `${l[r.label]}_value`, {}, () => [
12733
12744
  Ye(
12734
12745
  _e(l[r.value]) + " ",
12735
12746
  1
12736
12747
  /* TEXT */
12737
12748
  ),
12738
- l[r.tag] ? (I(), ce(
12739
- z(In),
12749
+ l[r.tag] ? (I(), pe(
12750
+ V(In),
12740
12751
  {
12741
12752
  key: 0,
12742
12753
  size: "small"
12743
12754
  },
12744
12755
  {
12745
- default: X(() => [
12756
+ default: q(() => [
12746
12757
  Ye(
12747
12758
  _e(l[r.value].value),
12748
12759
  1
@@ -12755,7 +12766,7 @@ const Ma = /* @__PURE__ */ it(Fa, [["__scopeId", "data-v-b301aa7d"]]), Na = Pe(M
12755
12766
  1024
12756
12767
  /* DYNAMIC_SLOTS */
12757
12768
  )) : ue("v-if", !0),
12758
- Q(z(Xr), {
12769
+ X(V(Xr), {
12759
12770
  list: l[r.fileList],
12760
12771
  field: a.fileField,
12761
12772
  "load-url": a.loadUrl,