iking-web-ui-pro 0.2.44 → 0.2.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/{IkApprovalProcess → IKApprovalProcess}/ik.index.es.js +98 -111
  2. package/dist/{IkApprovalProcess → IKApprovalProcess}/ik.index.umd.js +1 -1
  3. package/dist/{IkApprovalProcess → IKApprovalProcess}/style.css +1 -1
  4. package/dist/{IkApprovalProcessDetail → IKApprovalProcessDetail}/ik.index.es.js +360 -359
  5. package/dist/{IkApprovalProcessDetail → IKApprovalProcessDetail}/ik.index.umd.js +44 -44
  6. package/dist/IKApprovalProcessDetail/style.css +1 -0
  7. package/dist/{IkCalendar → IKCalendar}/ik.index.es.js +3 -4
  8. package/dist/{IkCalendar → IKCalendar}/ik.index.umd.js +1 -1
  9. package/dist/{IkCalendar → IKCalendar}/style.css +1 -1
  10. package/dist/IKPreviewFile/ik.index.es.js +353 -352
  11. package/dist/IKPreviewFile/ik.index.umd.js +44 -44
  12. package/dist/IKPreviewFile/style.css +1 -1
  13. package/dist/IKSearch/ik.index.es.js +1 -2
  14. package/dist/IKSearch/ik.index.umd.js +1 -1
  15. package/dist/IkDescription/ik.index.es.js +300 -299
  16. package/dist/IkDescription/ik.index.umd.js +44 -44
  17. package/dist/IkDescription/style.css +1 -1
  18. package/dist/IkDetailPreviewFiles/ik.index.es.js +308 -307
  19. package/dist/IkDetailPreviewFiles/ik.index.umd.js +44 -44
  20. package/dist/IkDetailPreviewFiles/style.css +1 -1
  21. package/dist/IkOnlyOffice/ik.index.es.js +19 -13
  22. package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
  23. package/dist/IkOnlyOffice/style.css +0 -0
  24. package/dist/IkPageFull/ik.index.es.js +1 -2
  25. package/dist/IkPageFull/ik.index.umd.js +1 -1
  26. package/dist/IkPickerUser/ik.index.es.js +1 -2
  27. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  28. package/dist/IkPreviewFileDialog/ik.index.es.js +344 -343
  29. package/dist/IkPreviewFileDialog/ik.index.umd.js +44 -44
  30. package/dist/IkPreviewFileDialog/style.css +1 -1
  31. package/dist/IkTemplateOfficeConfig/ik.index.es.js +78 -77
  32. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
  33. package/dist/IkTinymce/ik.index.es.js +8741 -8803
  34. package/dist/IkTinymce/ik.index.umd.js +38 -38
  35. package/dist/IkTinymce/style.css +1 -1
  36. package/dist/IkUploadFile/ik.index.es.js +334 -333
  37. package/dist/IkUploadFile/ik.index.umd.js +46 -46
  38. package/dist/IkUploadFile/style.css +1 -1
  39. package/dist/IkUploadImage/ik.index.es.js +387 -387
  40. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  41. package/dist/IkUploadImage/style.css +1 -1
  42. package/dist/index.es.js +12316 -12330
  43. package/dist/index.umd.js +109 -109
  44. package/dist/src/components/IkApprovalProcess/index.d.ts +0 -9
  45. package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +0 -9
  46. package/dist/style.css +1 -1
  47. package/package.json +1 -1
  48. package/dist/IkApprovalProcessDetail/style.css +0 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as Q, openBlock as N, createElementBlock as W, createElementVNode as j, inject as nt, computed as J, resolveComponent as pt, normalizeClass as Y, normalizeStyle as _e, createCommentVNode as ae, createBlock as De, withCtx as Z, createTextVNode as Xt, toDisplayString as qt, createVNode as K, unref as P, mergeModels as vt, useModel as si, ref as Ce, h as er, mergeProps as tr, createSlots as ir, renderSlot as Je, getCurrentScope as nr, onScopeDispose as rr, watch as at, markRaw as Ii, effectScope as sr, shallowRef as ar, nextTick as ai, onMounted as or, Teleport as vn, Transition as mn, withModifiers as lr, Fragment as Zt, resolveDynamicComponent as ur, renderList as cr, withDirectives as fr, vShow as hr, reactive as dr } from "vue";
2
- import { ikColor as gr, paramType as Pi, _ as Ot, buildUUID as yn } from "iking-utils-pro";
1
+ import { defineComponent as Q, openBlock as N, createElementBlock as W, createElementVNode as j, inject as nt, computed as J, resolveComponent as pt, normalizeClass as Y, normalizeStyle as _e, createCommentVNode as ae, createBlock as De, withCtx as Z, createTextVNode as qt, toDisplayString as Zt, createVNode as K, unref as P, mergeModels as vt, useModel as ai, ref as Ce, h as er, mergeProps as tr, createSlots as ir, renderSlot as Je, getCurrentScope as nr, onScopeDispose as rr, watch as at, markRaw as Ii, effectScope as sr, shallowRef as ar, nextTick as oi, onMounted as or, Teleport as vn, Transition as mn, withModifiers as lr, Fragment as Jt, resolveDynamicComponent as ur, renderList as cr, withDirectives as fr, vShow as hr, reactive as dr } from "vue";
2
+ import { ikColor as gr, paramType as Pi, _ as Mt, buildUUID as yn } from "iking-utils-pro";
3
3
  import { useLocale as pr, useNamespace as _n, useZIndex as vr, ElIcon as Ie, EVENT_CODE as We } from "element-plus";
4
4
  const et = (o, a) => {
5
5
  if (o.install = (r) => {
@@ -9,7 +9,7 @@ const et = (o, a) => {
9
9
  for (const [r, t] of Object.entries(a))
10
10
  o[r] = t;
11
11
  return o;
12
- }, Jt = (o, a) => a ? a.startsWith("http") ? a : `${o || location.origin}${a}` : "", Li = (o, a) => {
12
+ }, Qt = (o, a) => a ? a.startsWith("http") ? a : `${o || location.origin}${a}` : "", Li = (o, a) => {
13
13
  var i, n, s, l;
14
14
  const r = (i = o == null ? void 0 : o.response) != null && i.data ? Ai((s = (n = o == null ? void 0 : o.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = o.raw) == null ? void 0 : l.type) || Ai(o[a.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
15
15
  sheet: "excel",
@@ -251,7 +251,7 @@ var _r = /* @__PURE__ */ Q({
251
251
  ]));
252
252
  }
253
253
  }), Mr = Or;
254
- const oi = (o, a) => {
254
+ const xt = (o, a) => {
255
255
  const r = o.__vccOpts || o;
256
256
  for (const [t, e] of a)
257
257
  r[t] = e;
@@ -512,8 +512,8 @@ const oi = (o, a) => {
512
512
  type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
513
513
  }, {
514
514
  default: Z(() => [
515
- Xt(
516
- qt(r.value.title),
515
+ qt(
516
+ Zt(r.value.title),
517
517
  1
518
518
  /* TEXT */
519
519
  )
@@ -524,7 +524,7 @@ const oi = (o, a) => {
524
524
  };
525
525
  }
526
526
  });
527
- const Kr = /* @__PURE__ */ oi(Gr, [["__scopeId", "data-v-52806adf"]]), kn = et(Kr), Yr = /* @__PURE__ */ Q({
527
+ const Kr = /* @__PURE__ */ xt(Gr, [["__scopeId", "data-v-52806adf"]]), kn = et(Kr), Yr = /* @__PURE__ */ Q({
528
528
  __name: "CloseIcon",
529
529
  props: {
530
530
  showBg: {
@@ -555,7 +555,7 @@ const Kr = /* @__PURE__ */ oi(Gr, [["__scopeId", "data-v-52806adf"]]), kn = et(K
555
555
  ));
556
556
  }
557
557
  });
558
- const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { class: "base-header" }, qr = /* @__PURE__ */ Q({
558
+ const $r = /* @__PURE__ */ xt(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { class: "base-header" }, qr = /* @__PURE__ */ Q({
559
559
  __name: "IkBaseDialog",
560
560
  props: /* @__PURE__ */ vt({
561
561
  title: { default: "" },
@@ -576,7 +576,7 @@ const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { cl
576
576
  }),
577
577
  emits: ["update:modelValue"],
578
578
  setup(o) {
579
- const a = o, r = si(o, "modelValue"), t = Ce(a.fullscreen), e = () => {
579
+ const a = o, r = ai(o, "modelValue"), t = Ce(a.fullscreen), e = () => {
580
580
  t.value = !t.value;
581
581
  }, i = Q({
582
582
  setup() {
@@ -600,8 +600,8 @@ const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { cl
600
600
  }), ir({
601
601
  icon: Z(() => [
602
602
  Je(n.$slots, "title", {}, () => [
603
- Xt(
604
- qt(n.title),
603
+ qt(
604
+ Zt(n.title),
605
605
  1
606
606
  /* TEXT */
607
607
  )
@@ -610,8 +610,8 @@ const $r = /* @__PURE__ */ oi(Yr, [["__scopeId", "data-v-da39e979"]]), Xr = { cl
610
610
  header: Z(() => [
611
611
  j("div", Xr, [
612
612
  Je(n.$slots, "header", {}, () => [
613
- Xt(
614
- qt(n.title),
613
+ qt(
614
+ Zt(n.title),
615
615
  1
616
616
  /* TEXT */
617
617
  )
@@ -996,39 +996,40 @@ const rs = /* @__PURE__ */ Q({
996
996
  /* STYLE */
997
997
  ));
998
998
  }
999
- }), ss = et(rs);
999
+ });
1000
+ const ss = /* @__PURE__ */ xt(rs, [["__scopeId", "data-v-98d51ef9"]]), as = et(ss);
1000
1001
  var Oi;
1001
- const bn = typeof window < "u", as = (o) => typeof o == "string", os = () => {
1002
+ const bn = typeof window < "u", os = (o) => typeof o == "string", ls = () => {
1002
1003
  };
1003
1004
  bn && ((Oi = window == null ? void 0 : window.navigator) != null && Oi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1004
1005
  function wn(o) {
1005
1006
  return typeof o == "function" ? o() : P(o);
1006
1007
  }
1007
- function ls(o) {
1008
+ function us(o) {
1008
1009
  return o;
1009
1010
  }
1010
- function us(o) {
1011
+ function cs(o) {
1011
1012
  return nr() ? (rr(o), !0) : !1;
1012
1013
  }
1013
- function cs(o) {
1014
+ function fs(o) {
1014
1015
  var a;
1015
1016
  const r = wn(o);
1016
1017
  return (a = r == null ? void 0 : r.$el) != null ? a : r;
1017
1018
  }
1018
- const fs = bn ? window : void 0;
1019
+ const hs = bn ? window : void 0;
1019
1020
  function ct(...o) {
1020
1021
  let a, r, t, e;
1021
- if (as(o[0]) || Array.isArray(o[0]) ? ([r, t, e] = o, a = fs) : [a, r, t, e] = o, !a)
1022
- return os;
1022
+ if (os(o[0]) || Array.isArray(o[0]) ? ([r, t, e] = o, a = hs) : [a, r, t, e] = o, !a)
1023
+ return ls;
1023
1024
  Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
1024
1025
  const i = [], n = () => {
1025
1026
  i.forEach((c) => c()), i.length = 0;
1026
- }, s = (c, h, d, g) => (c.addEventListener(h, d, g), () => c.removeEventListener(h, d, g)), l = at(() => [cs(a), wn(e)], ([c, h]) => {
1027
+ }, s = (c, h, d, g) => (c.addEventListener(h, d, g), () => c.removeEventListener(h, d, g)), l = at(() => [fs(a), wn(e)], ([c, h]) => {
1027
1028
  n(), c && i.push(...r.flatMap((d) => t.map((g) => s(c, d, g, h))));
1028
1029
  }, { immediate: !0, flush: "post" }), u = () => {
1029
1030
  l(), n();
1030
1031
  };
1031
- return us(u), u;
1032
+ return cs(u), u;
1032
1033
  }
1033
1034
  const Mi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ni = "__vueuse_ssr_handlers__";
1034
1035
  Mi[Ni] = Mi[Ni] || {};
@@ -1036,15 +1037,15 @@ var Fi;
1036
1037
  (function(o) {
1037
1038
  o.UP = "UP", o.RIGHT = "RIGHT", o.DOWN = "DOWN", o.LEFT = "LEFT", o.NONE = "NONE";
1038
1039
  })(Fi || (Fi = {}));
1039
- var hs = Object.defineProperty, Bi = Object.getOwnPropertySymbols, ds = Object.prototype.hasOwnProperty, gs = Object.prototype.propertyIsEnumerable, Hi = (o, a, r) => a in o ? hs(o, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[a] = r, ps = (o, a) => {
1040
+ var ds = Object.defineProperty, Bi = Object.getOwnPropertySymbols, gs = Object.prototype.hasOwnProperty, ps = Object.prototype.propertyIsEnumerable, Hi = (o, a, r) => a in o ? ds(o, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[a] = r, vs = (o, a) => {
1040
1041
  for (var r in a || (a = {}))
1041
- ds.call(a, r) && Hi(o, r, a[r]);
1042
+ gs.call(a, r) && Hi(o, r, a[r]);
1042
1043
  if (Bi)
1043
1044
  for (var r of Bi(a))
1044
- gs.call(a, r) && Hi(o, r, a[r]);
1045
+ ps.call(a, r) && Hi(o, r, a[r]);
1045
1046
  return o;
1046
1047
  };
1047
- const vs = {
1048
+ const ms = {
1048
1049
  easeInSine: [0.12, 0, 0.39, 0],
1049
1050
  easeOutSine: [0.61, 1, 0.88, 1],
1050
1051
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1070,10 +1071,10 @@ const vs = {
1070
1071
  easeOutBack: [0.34, 1.56, 0.64, 1],
1071
1072
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1072
1073
  };
1073
- ps({
1074
- linear: ls
1075
- }, vs);
1076
- const ms = {
1074
+ vs({
1075
+ linear: us
1076
+ }, ms);
1077
+ const ys = {
1077
1078
  /**
1078
1079
  * @description preview link list.
1079
1080
  */
@@ -1143,15 +1144,15 @@ const ms = {
1143
1144
  crossorigin: {
1144
1145
  type: ["anonymous", "use-credentials", ""]
1145
1146
  }
1146
- }, ys = {
1147
+ }, _s = {
1147
1148
  close: () => !0,
1148
1149
  switch: (o) => Pi.isNumber(o),
1149
1150
  rotate: (o) => Pi.isNumber(o)
1150
- }, _s = ["src", "crossorigin"], Cs = /* @__PURE__ */ Q({
1151
+ }, Cs = ["src", "crossorigin"], ks = /* @__PURE__ */ Q({
1151
1152
  name: "ElImageViewer",
1152
1153
  __name: "IkImageViewer",
1153
- props: ms,
1154
- emits: ys,
1154
+ props: ys,
1155
+ emits: _s,
1155
1156
  setup(o, { expose: a, emit: r }) {
1156
1157
  const t = (D) => Object.keys(D), e = {
1157
1158
  CONTAIN: {
@@ -1184,17 +1185,17 @@ const ms = {
1184
1185
  let ve = $ / D, xe = he / D;
1185
1186
  const it = V * Math.PI / 180, Si = Math.cos(it), xi = Math.sin(it);
1186
1187
  ve = ve * Si + xe * xi, xe = xe * Si - $ / D * xi;
1187
- const Rt = {
1188
+ const Ot = {
1188
1189
  transform: `scale(${D}) rotate(${V}deg) translate(${ve}px, ${xe}px)`,
1189
1190
  transition: pe ? "transform .3s" : ""
1190
1191
  };
1191
- return y.value.name === e.CONTAIN.name && (Rt.maxWidth = Rt.maxHeight = "100%"), Rt;
1192
+ return y.value.name === e.CONTAIN.name && (Ot.maxWidth = Ot.maxHeight = "100%"), Ot;
1192
1193
  });
1193
1194
  function q() {
1194
1195
  ie(), n("close");
1195
1196
  }
1196
1197
  function F() {
1197
- const D = Ot.throttle(($) => {
1198
+ const D = Mt.throttle(($) => {
1198
1199
  switch ($.code) {
1199
1200
  case We.esc:
1200
1201
  i.closeOnPressEscape && q();
@@ -1215,7 +1216,7 @@ const ms = {
1215
1216
  Fe("zoomOut");
1216
1217
  break;
1217
1218
  }
1218
- }), V = Ot.throttle(($) => {
1219
+ }), V = Mt.throttle(($) => {
1219
1220
  const he = $.deltaY || $.deltaX;
1220
1221
  Fe(he < 0 ? "zoomIn" : "zoomOut", {
1221
1222
  zoomRate: i.zoomRate,
@@ -1239,7 +1240,7 @@ const ms = {
1239
1240
  if (g.value || D.button !== 0 || !c.value)
1240
1241
  return;
1241
1242
  m.value.enableTransition = !1;
1242
- const { offsetX: V, offsetY: $ } = m.value, he = D.pageX, pe = D.pageY, ve = Ot.throttle((it) => {
1243
+ const { offsetX: V, offsetY: $ } = m.value, he = D.pageX, pe = D.pageY, ve = Mt.throttle((it) => {
1243
1244
  m.value = {
1244
1245
  ...m.value,
1245
1246
  offsetX: V + it.pageX - he,
@@ -1265,15 +1266,15 @@ const ms = {
1265
1266
  const D = t(e), V = Object.values(e), $ = y.value.name, pe = ((V == null ? void 0 : V.findIndex((ve) => ve.name === $)) + 1) % D.length;
1266
1267
  y.value = e[D[pe]], bi();
1267
1268
  }
1268
- function Dt(D) {
1269
+ function Rt(D) {
1269
1270
  const V = i.urlList.length;
1270
1271
  p.value = (D + V) % V;
1271
1272
  }
1272
1273
  function Ti() {
1273
- b.value && !i.infinite || Dt(p.value - 1);
1274
+ b.value && !i.infinite || Rt(p.value - 1);
1274
1275
  }
1275
1276
  function Ei() {
1276
- B.value && !i.infinite || Dt(p.value + 1);
1277
+ B.value && !i.infinite || Rt(p.value + 1);
1277
1278
  }
1278
1279
  function Fe(D, V = {}) {
1279
1280
  if (g.value)
@@ -1305,7 +1306,7 @@ const ms = {
1305
1306
  m.value.enableTransition = xe;
1306
1307
  }
1307
1308
  return at(O, () => {
1308
- ai(() => {
1309
+ oi(() => {
1309
1310
  const D = h.value[0];
1310
1311
  D != null && D.complete || (g.value = !0);
1311
1312
  });
@@ -1318,7 +1319,7 @@ const ms = {
1318
1319
  /**
1319
1320
  * @description manually switch image
1320
1321
  */
1321
- setActiveItem: Dt
1322
+ setActiveItem: Rt
1322
1323
  }), (D, V) => (N(), De(vn, { to: "body" }, [
1323
1324
  K(mn, {
1324
1325
  name: "viewer-fade",
@@ -1366,7 +1367,7 @@ const ms = {
1366
1367
  ),
1367
1368
  ae(" ARROW "),
1368
1369
  w.value ? ae("v-if", !0) : (N(), W(
1369
- Zt,
1370
+ Jt,
1370
1371
  { key: 0 },
1371
1372
  [
1372
1373
  j(
@@ -1499,7 +1500,7 @@ const ms = {
1499
1500
  },
1500
1501
  [
1501
1502
  (N(!0), W(
1502
- Zt,
1503
+ Jt,
1503
1504
  null,
1504
1505
  cr(D.urlList, ($, he) => fr((N(), W("img", {
1505
1506
  ref_for: !0,
@@ -1512,7 +1513,7 @@ const ms = {
1512
1513
  onLoad: oe,
1513
1514
  onError: le,
1514
1515
  onMousedown: ke
1515
- }, null, 46, _s)), [
1516
+ }, null, 46, Cs)), [
1516
1517
  [hr, he === p.value]
1517
1518
  ])),
1518
1519
  128
@@ -1533,7 +1534,7 @@ const ms = {
1533
1534
  })
1534
1535
  ]));
1535
1536
  }
1536
- }), ks = et(Cs);
1537
+ }), bs = et(ks);
1537
1538
  function Ui(o, a) {
1538
1539
  var r = Object.keys(o);
1539
1540
  if (Object.getOwnPropertySymbols) {
@@ -1597,19 +1598,19 @@ function S(o, a) {
1597
1598
  }
1598
1599
  }), Object.defineProperty(o, "prototype", {
1599
1600
  writable: !1
1600
- }), a && Qt(o, a);
1601
+ }), a && ei(o, a);
1601
1602
  }
1602
1603
  function I(o) {
1603
1604
  return I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
1604
1605
  return r.__proto__ || Object.getPrototypeOf(r);
1605
1606
  }, I(o);
1606
1607
  }
1607
- function Qt(o, a) {
1608
- return Qt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
1608
+ function ei(o, a) {
1609
+ return ei = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
1609
1610
  return t.__proto__ = e, t;
1610
- }, Qt(o, a);
1611
+ }, ei(o, a);
1611
1612
  }
1612
- function bs() {
1613
+ function ws() {
1613
1614
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
1614
1615
  return !1;
1615
1616
  if (typeof Proxy == "function")
@@ -1634,7 +1635,7 @@ function ci(o, a) {
1634
1635
  return v(o);
1635
1636
  }
1636
1637
  function x(o) {
1637
- var a = bs();
1638
+ var a = ws();
1638
1639
  return function() {
1639
1640
  var t = I(o), e;
1640
1641
  if (a) {
@@ -1645,14 +1646,14 @@ function x(o) {
1645
1646
  return ci(this, e);
1646
1647
  };
1647
1648
  }
1648
- function ws(o, a) {
1649
+ function Ts(o, a) {
1649
1650
  for (; !Object.prototype.hasOwnProperty.call(o, a) && (o = I(o), o !== null); )
1650
1651
  ;
1651
1652
  return o;
1652
1653
  }
1653
1654
  function L() {
1654
1655
  return typeof Reflect < "u" && Reflect.get ? L = Reflect.get.bind() : L = function(a, r, t) {
1655
- var e = ws(a, r);
1656
+ var e = Ts(a, r);
1656
1657
  if (e) {
1657
1658
  var i = Object.getOwnPropertyDescriptor(e, r);
1658
1659
  return i.get ? i.get.call(arguments.length < 3 ? a : t) : i.value;
@@ -1660,38 +1661,38 @@ function L() {
1660
1661
  }, L.apply(this, arguments);
1661
1662
  }
1662
1663
  function de(o) {
1663
- return Ts(o) || Es(o) || Ss(o) || xs();
1664
+ return Es(o) || Ss(o) || xs(o) || Is();
1664
1665
  }
1665
- function Ts(o) {
1666
+ function Es(o) {
1666
1667
  if (Array.isArray(o))
1667
- return ei(o);
1668
+ return ti(o);
1668
1669
  }
1669
- function Es(o) {
1670
+ function Ss(o) {
1670
1671
  if (typeof Symbol < "u" && o[Symbol.iterator] != null || o["@@iterator"] != null)
1671
1672
  return Array.from(o);
1672
1673
  }
1673
- function Ss(o, a) {
1674
+ function xs(o, a) {
1674
1675
  if (o) {
1675
1676
  if (typeof o == "string")
1676
- return ei(o, a);
1677
+ return ti(o, a);
1677
1678
  var r = Object.prototype.toString.call(o).slice(8, -1);
1678
1679
  if (r === "Object" && o.constructor && (r = o.constructor.name), r === "Map" || r === "Set")
1679
1680
  return Array.from(o);
1680
1681
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
1681
- return ei(o, a);
1682
+ return ti(o, a);
1682
1683
  }
1683
1684
  }
1684
- function ei(o, a) {
1685
+ function ti(o, a) {
1685
1686
  (a == null || a > o.length) && (a = o.length);
1686
1687
  for (var r = 0, t = new Array(a); r < a; r++)
1687
1688
  t[r] = o[r];
1688
1689
  return t;
1689
1690
  }
1690
- function xs() {
1691
+ function Is() {
1691
1692
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
1692
1693
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1693
1694
  }
1694
- function Is(o, a) {
1695
+ function Ps(o, a) {
1695
1696
  if (typeof o != "object" || o === null)
1696
1697
  return o;
1697
1698
  var r = o[Symbol.toPrimitive];
@@ -1704,7 +1705,7 @@ function Is(o, a) {
1704
1705
  return (a === "string" ? String : Number)(o);
1705
1706
  }
1706
1707
  function Tn(o) {
1707
- var a = Is(o, "string");
1708
+ var a = Ps(o, "string");
1708
1709
  return typeof a == "symbol" ? a : String(a);
1709
1710
  }
1710
1711
  var En = { exports: {} };
@@ -1820,37 +1821,37 @@ var En = { exports: {} };
1820
1821
  })(En);
1821
1822
  var Sn = En.exports;
1822
1823
  const xn = /* @__PURE__ */ li(Sn);
1823
- var Ps = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Mt = {
1824
+ var Ls = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Nt = {
1824
1825
  info: "color: #525252; background-color: #90ee90;",
1825
1826
  error: "color: #525252; background-color: red;",
1826
1827
  warn: "color: #525252; background-color: yellow; "
1827
- }, Nt = "%c[xgplayer]", M = {
1828
+ }, Ft = "%c[xgplayer]", M = {
1828
1829
  config: {
1829
- debug: Ps ? 3 : 0
1830
+ debug: Ls ? 3 : 0
1830
1831
  },
1831
1832
  logInfo: function(a) {
1832
1833
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
1833
1834
  e[i - 1] = arguments[i];
1834
- this.config.debug >= 3 && (r = console).log.apply(r, [Nt, Mt.info, a].concat(e));
1835
+ this.config.debug >= 3 && (r = console).log.apply(r, [Ft, Nt.info, a].concat(e));
1835
1836
  },
1836
1837
  logWarn: function(a) {
1837
1838
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
1838
1839
  e[i - 1] = arguments[i];
1839
- this.config.debug >= 1 && (r = console).warn.apply(r, [Nt, Mt.warn, a].concat(e));
1840
+ this.config.debug >= 1 && (r = console).warn.apply(r, [Ft, Nt.warn, a].concat(e));
1840
1841
  },
1841
1842
  logError: function(a) {
1842
1843
  var r;
1843
1844
  if (!(this.config.debug < 1)) {
1844
1845
  for (var t = this.config.debug >= 2 ? "trace" : "error", e = arguments.length, i = new Array(e > 1 ? e - 1 : 0), n = 1; n < e; n++)
1845
1846
  i[n - 1] = arguments[n];
1846
- (r = console)[t].apply(r, [Nt, Mt.error, a].concat(i));
1847
+ (r = console)[t].apply(r, [Ft, Nt.error, a].concat(i));
1847
1848
  }
1848
1849
  }
1849
1850
  };
1850
- function Ls(o) {
1851
+ function As(o) {
1851
1852
  o.logInfo = M.logInfo.bind(o), o.logWarn = M.logWarn.bind(o), o.logError = M.logError.bind(o);
1852
1853
  }
1853
- var As = /* @__PURE__ */ function() {
1854
+ var Ds = /* @__PURE__ */ function() {
1854
1855
  function o(a) {
1855
1856
  T(this, o), this.bufferedList = a;
1856
1857
  }
@@ -2096,7 +2097,7 @@ f.setStyleFromCsstext = function(o, a) {
2096
2097
  o.style[t] = a[t];
2097
2098
  });
2098
2099
  };
2099
- function Ds(o, a) {
2100
+ function Rs(o, a) {
2100
2101
  for (var r = 0, t = a.length; r < t; r++)
2101
2102
  if (o.indexOf(a[r]) > -1)
2102
2103
  return !0;
@@ -2110,7 +2111,7 @@ f.filterStyleFromText = function(o) {
2110
2111
  return t.map(function(n) {
2111
2112
  if (n) {
2112
2113
  var s = n.split(":");
2113
- s.length > 1 && (Ds(s[0], a) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
2114
+ s.length > 1 && (Rs(s[0], a) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
2114
2115
  }
2115
2116
  }), o.setAttribute("style", ""), Object.keys(i).map(function(n) {
2116
2117
  o.style[n] = i[n];
@@ -2175,7 +2176,7 @@ f.getBuffered2 = function(o) {
2175
2176
  }
2176
2177
  else
2177
2178
  e = r;
2178
- return new As(e);
2179
+ return new Ds(e);
2179
2180
  };
2180
2181
  f.getEventPos = function(o) {
2181
2182
  var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
@@ -2299,7 +2300,7 @@ function In(o) {
2299
2300
  var a = re(o);
2300
2301
  return o !== null && (a === "object" || a === "function");
2301
2302
  }
2302
- function Rs(o, a, r) {
2303
+ function Os(o, a, r) {
2303
2304
  var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !a && a !== 0 && typeof window.requestAnimationFrame == "function";
2304
2305
  if (typeof o != "function")
2305
2306
  throw new TypeError("Expected a function");
@@ -2358,21 +2359,21 @@ function Rs(o, a, r) {
2358
2359
  }
2359
2360
  return q.cancel = z, q.flush = A, q.pending = ee, q;
2360
2361
  }
2361
- function Os(o, a, r) {
2362
+ function Ms(o, a, r) {
2362
2363
  var t = !0, e = !0;
2363
2364
  if (typeof o != "function")
2364
2365
  throw new TypeError("Expected a function");
2365
- return In(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Rs(o, a, {
2366
+ return In(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Os(o, a, {
2366
2367
  leading: t,
2367
2368
  trailing: e,
2368
2369
  maxWait: a
2369
2370
  });
2370
2371
  }
2371
- function Ms() {
2372
+ function Ns() {
2372
2373
  var o = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
2373
2374
  return o === "zh-cn" && (o = "zh"), o;
2374
2375
  }
2375
- function Ns(o, a, r) {
2376
+ function Fs(o, a, r) {
2376
2377
  if (o) {
2377
2378
  var t = o.getAttribute(r);
2378
2379
  return !!(t && t === a && (o.tagName === "VIDEO" || o.tagName === "AUDIO"));
@@ -2381,7 +2382,7 @@ function Ns(o, a, r) {
2381
2382
  var zi = {
2382
2383
  android: /(Android)\s([\d.]+)/,
2383
2384
  ios: /(Version)\/([\d.]+)/
2384
- }, Fs = ["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 = {
2385
+ }, Bs = ["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 = {
2385
2386
  get device() {
2386
2387
  var o = R.os;
2387
2388
  return o.isPc ? "pc" : "mobile";
@@ -2444,7 +2445,7 @@ var zi = {
2444
2445
  if (this.supportResult)
2445
2446
  return this.supportResult;
2446
2447
  var r = document.createElement("video");
2447
- return typeof r.canPlayType == "function" && Fs.map(function(t) {
2448
+ return typeof r.canPlayType == "function" && Bs.map(function(t) {
2448
2449
  r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (a.isSupport = !0, a.mime += "||".concat(t));
2449
2450
  }), this.supportResult = a, r = null, a;
2450
2451
  },
@@ -2483,7 +2484,7 @@ var zi = {
2483
2484
  return Promise.resolve(r);
2484
2485
  }
2485
2486
  }
2486
- }, ti = "3.0.18", ji = {
2487
+ }, ii = "3.0.18", ji = {
2487
2488
  1: "media",
2488
2489
  2: "media",
2489
2490
  3: "media",
@@ -2513,7 +2514,7 @@ var zi = {
2513
2514
  var e = r.mediaError ? r.mediaError : a.media.error || {}, i = a.duration, n = a.currentTime, s = a.ended, l = a.src, u = a.currentSrc, c = a.media, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
2514
2515
  Wi[g] && (g = Wi[g]);
2515
2516
  var p = {
2516
- playerVersion: ti,
2517
+ playerVersion: ii,
2517
2518
  currentTime: n,
2518
2519
  duration: i,
2519
2520
  ended: s,
@@ -2532,33 +2533,33 @@ var zi = {
2532
2533
  }), p;
2533
2534
  } else if (arguments.length > 1) {
2534
2535
  for (var y = {
2535
- playerVersion: ti,
2536
+ playerVersion: ii,
2536
2537
  domain: document.domain
2537
2538
  }, m = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
2538
2539
  y[m[k]] = arguments[k];
2539
2540
  return y.ex = t ? (t[arguments[0]] || {}).msg : "", y;
2540
2541
  }
2541
2542
  }
2542
- ), fe = "play", fi = "playing", Ve = "ended", tt = "pause", lt = "error", xt = "seeking", Ee = "seeked", ce = "timeupdate", ut = "waiting", Te = "canplay", Bs = "canplaythrough", Me = "durationchange", Pn = "volumechange", Se = "loadeddata", Hs = "loadedmetadata", Ln = "ratechange", An = "progress", hi = "loadstart", ze = "emptied", Us = "stalled", Vs = "suspend", zs = "abort", js = "bufferedChange", di = "focus", Dn = "blur", gi = "ready", Rn = "urlNull", Ue = "autoplay_started", pi = "autoplay_was_prevented", It = "complete", yt = "replay", vi = "destroy", Pt = "urlchange", ii = "download_speed_change", On = "leaveplayer", Mn = "enterplayer", Nn = "loading", be = "fullscreen_change", _t = "cssFullscreen_change", Ct = "mini_state_change", mi = "definition_change", Ws = "before_definition_change", ni = "after_definition_change", Gs = "SEI_PARSED", Ks = "retry", Re = "video_resize", ri = "pip_change", Fn = "rotate", Bn = "screenShot", kt = "playnext", Hn = "shortcut", Un = "xglog", bt = "user_action", Lt = "reset", Vn = "source_error", zn = "source_success", Ys = "switch_subtitle", jn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Wn = {
2543
+ ), fe = "play", fi = "playing", Ve = "ended", tt = "pause", lt = "error", It = "seeking", Ee = "seeked", ce = "timeupdate", ut = "waiting", Te = "canplay", Hs = "canplaythrough", Me = "durationchange", Pn = "volumechange", Se = "loadeddata", Us = "loadedmetadata", Ln = "ratechange", An = "progress", hi = "loadstart", ze = "emptied", Vs = "stalled", zs = "suspend", js = "abort", Ws = "bufferedChange", di = "focus", Dn = "blur", gi = "ready", Rn = "urlNull", Ue = "autoplay_started", pi = "autoplay_was_prevented", Pt = "complete", yt = "replay", vi = "destroy", Lt = "urlchange", ni = "download_speed_change", On = "leaveplayer", Mn = "enterplayer", Nn = "loading", be = "fullscreen_change", _t = "cssFullscreen_change", Ct = "mini_state_change", mi = "definition_change", Gs = "before_definition_change", ri = "after_definition_change", Ks = "SEI_PARSED", Ys = "retry", Re = "video_resize", si = "pip_change", Fn = "rotate", Bn = "screenShot", kt = "playnext", Hn = "shortcut", Un = "xglog", bt = "user_action", At = "reset", Vn = "source_error", zn = "source_success", $s = "switch_subtitle", jn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Wn = {
2543
2544
  STATS_INFO: "stats_info",
2544
2545
  STATS_DOWNLOAD: "stats_download",
2545
2546
  STATS_RESET: "stats_reset"
2546
2547
  }, Gn = "fps_stuck";
2547
- const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2548
+ const Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2548
2549
  __proto__: null,
2549
- ABORT: zs,
2550
- AFTER_DEFINITION_CHANGE: ni,
2550
+ ABORT: js,
2551
+ AFTER_DEFINITION_CHANGE: ri,
2551
2552
  AUTOPLAY_PREVENTED: pi,
2552
2553
  AUTOPLAY_STARTED: Ue,
2553
- BEFORE_DEFINITION_CHANGE: Ws,
2554
- BUFFER_CHANGE: js,
2554
+ BEFORE_DEFINITION_CHANGE: Gs,
2555
+ BUFFER_CHANGE: Ws,
2555
2556
  CANPLAY: Te,
2556
- CANPLAY_THROUGH: Bs,
2557
- COMPLETE: It,
2557
+ CANPLAY_THROUGH: Hs,
2558
+ COMPLETE: Pt,
2558
2559
  CSS_FULLSCREEN_CHANGE: _t,
2559
2560
  DEFINITION_CHANGE: mi,
2560
2561
  DESTROY: vi,
2561
- DOWNLOAD_SPEED_CHANGE: ii,
2562
+ DOWNLOAD_SPEED_CHANGE: ni,
2562
2563
  DURATION_CHANGE: Me,
2563
2564
  EMPTIED: ze,
2564
2565
  ENDED: Ve,
@@ -2568,12 +2569,12 @@ const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2568
2569
  FULLSCREEN_CHANGE: be,
2569
2570
  LEAVE_PLAYER: On,
2570
2571
  LOADED_DATA: Se,
2571
- LOADED_METADATA: Hs,
2572
+ LOADED_METADATA: Us,
2572
2573
  LOADING: Nn,
2573
2574
  LOAD_START: hi,
2574
2575
  MINI_STATE_CHANGE: Ct,
2575
2576
  PAUSE: tt,
2576
- PIP_CHANGE: ri,
2577
+ PIP_CHANGE: si,
2577
2578
  PLAY: fe,
2578
2579
  PLAYER_BLUR: Dn,
2579
2580
  PLAYER_FOCUS: di,
@@ -2583,22 +2584,22 @@ const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2583
2584
  RATE_CHANGE: Ln,
2584
2585
  READY: gi,
2585
2586
  REPLAY: yt,
2586
- RESET: Lt,
2587
- RETRY: Ks,
2587
+ RESET: At,
2588
+ RETRY: Ys,
2588
2589
  ROTATE: Fn,
2589
2590
  SCREEN_SHOT: Bn,
2590
2591
  SEEKED: Ee,
2591
- SEEKING: xt,
2592
- SEI_PARSED: Gs,
2592
+ SEEKING: It,
2593
+ SEI_PARSED: Ks,
2593
2594
  SHORTCUT: Hn,
2594
2595
  SOURCE_ERROR: Vn,
2595
2596
  SOURCE_SUCCESS: zn,
2596
- STALLED: Us,
2597
+ STALLED: Vs,
2597
2598
  STATS_EVENTS: Wn,
2598
- SUSPEND: Vs,
2599
- SWITCH_SUBTITLE: Ys,
2599
+ SUSPEND: zs,
2600
+ SWITCH_SUBTITLE: $s,
2600
2601
  TIME_UPDATE: ce,
2601
- URL_CHANGE: Pt,
2602
+ URL_CHANGE: Lt,
2602
2603
  URL_NULL: Rn,
2603
2604
  USER_ACTION: bt,
2604
2605
  VIDEO_EVENTS: jn,
@@ -2607,10 +2608,10 @@ const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2607
2608
  WAITING: ut,
2608
2609
  XGLOG: Un
2609
2610
  }, Symbol.toStringTag, { value: "Module" }));
2610
- function Ft(o, a) {
2611
+ function Bt(o, a) {
2611
2612
  !this || !this.emit || (o === "error" ? this.errorHandler(o, a.error) : this.emit(o, a));
2612
2613
  }
2613
- function Xs(o, a) {
2614
+ function qs(o, a) {
2614
2615
  return function(r, t) {
2615
2616
  var e = {
2616
2617
  player: a,
@@ -2635,17 +2636,17 @@ function Xs(o, a) {
2635
2636
  a._rate = a.media && a.media.playbackRate;
2636
2637
  }
2637
2638
  if (o === "durationchange" && (a._duration = a.media.duration), o === "volumechange" && (e.isMutedChange = a._lastMuted !== a.muted, a._lastMuted = a.muted), o === "error" && (e.error = t || a.video.error), a.mediaEventMiddleware[o]) {
2638
- var n = Ft.bind(a, o, e);
2639
+ var n = Bt.bind(a, o, e);
2639
2640
  try {
2640
2641
  a.mediaEventMiddleware[o].call(a, e, n);
2641
2642
  } catch (s) {
2642
- throw Ft.call(a, o, e), s;
2643
+ throw Bt.call(a, o, e), s;
2643
2644
  }
2644
2645
  } else
2645
- Ft.call(a, o, e);
2646
+ Bt.call(a, o, e);
2646
2647
  };
2647
2648
  }
2648
- var qs = /* @__PURE__ */ function(o) {
2649
+ var Zs = /* @__PURE__ */ function(o) {
2649
2650
  S(r, o);
2650
2651
  var a = x(r);
2651
2652
  function r(t) {
@@ -2689,7 +2690,7 @@ var qs = /* @__PURE__ */ function(o) {
2689
2690
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
2690
2691
  this._evHandlers || (this._evHandlers = jn.map(function(n) {
2691
2692
  var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
2692
- return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, Xs(n, e));
2693
+ return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, qs(n, e));
2693
2694
  })), this._evHandlers.forEach(function(n) {
2694
2695
  var s = Object.keys(n)[0];
2695
2696
  i.addEventListener(s, n[s], !1);
@@ -2999,7 +3000,7 @@ var qs = /* @__PURE__ */ function(o) {
2999
3000
  },
3000
3001
  set: function(e) {
3001
3002
  if (this.media) {
3002
- if (this.emit(Pt, e), this.emit(ut), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
3003
+ if (this.emit(Lt, e), this.emit(ut), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
3003
3004
  this.onWaiting();
3004
3005
  return;
3005
3006
  }
@@ -3063,7 +3064,7 @@ var qs = /* @__PURE__ */ function(o) {
3063
3064
  L(I(r.prototype), "removeAllListeners", this).call(this);
3064
3065
  }
3065
3066
  }]), r;
3066
- }(xn), Zs = /* @__PURE__ */ function() {
3067
+ }(xn), Js = /* @__PURE__ */ function() {
3067
3068
  function o() {
3068
3069
  var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3069
3070
  name: "xgplayer",
@@ -3239,7 +3240,7 @@ function we(o, a, r) {
3239
3240
  } else
3240
3241
  return r.call.apply(r, [o, o].concat(e));
3241
3242
  }
3242
- function Bt(o, a) {
3243
+ function Ht(o, a) {
3243
3244
  M.logError("[".concat(o, "] event or callback cant be undefined or null when call ").concat(a));
3244
3245
  }
3245
3246
  var Oe = /* @__PURE__ */ function() {
@@ -3306,7 +3307,7 @@ var Oe = /* @__PURE__ */ function() {
3306
3307
  value: function(r, t) {
3307
3308
  var e = this;
3308
3309
  if (!r || !t || !this.player) {
3309
- Bt(this.pluginName, "plugin.on(event, callback)");
3310
+ Ht(this.pluginName, "plugin.on(event, callback)");
3310
3311
  return;
3311
3312
  }
3312
3313
  typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3318,7 +3319,7 @@ var Oe = /* @__PURE__ */ function() {
3318
3319
  value: function(r, t) {
3319
3320
  var e = this;
3320
3321
  if (!r || !t || !this.player) {
3321
- Bt(this.pluginName, "plugin.once(event, callback)");
3322
+ Ht(this.pluginName, "plugin.once(event, callback)");
3322
3323
  return;
3323
3324
  }
3324
3325
  typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3330,7 +3331,7 @@ var Oe = /* @__PURE__ */ function() {
3330
3331
  value: function(r, t) {
3331
3332
  var e = this;
3332
3333
  if (!r || !t || !this.player) {
3333
- Bt(this.pluginName, "plugin.off(event, callback)");
3334
+ Ht(this.pluginName, "plugin.off(event, callback)");
3334
3335
  return;
3335
3336
  }
3336
3337
  typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -3427,40 +3428,40 @@ var Oe = /* @__PURE__ */ function() {
3427
3428
  return "pluginName";
3428
3429
  }
3429
3430
  }]), o;
3430
- }(), Js = 9;
3431
+ }(), Qs = 9;
3431
3432
  if (typeof Element < "u" && !Element.prototype.matches) {
3432
3433
  var Ge = Element.prototype;
3433
3434
  Ge.matches = Ge.matchesSelector || Ge.mozMatchesSelector || Ge.msMatchesSelector || Ge.oMatchesSelector || Ge.webkitMatchesSelector;
3434
3435
  }
3435
- function Qs(o, a) {
3436
- for (; o && o.nodeType !== Js; ) {
3436
+ function ea(o, a) {
3437
+ for (; o && o.nodeType !== Qs; ) {
3437
3438
  if (typeof o.matches == "function" && o.matches(a))
3438
3439
  return o;
3439
3440
  o = o.parentNode;
3440
3441
  }
3441
3442
  }
3442
- var ea = Qs, ta = ea;
3443
- function Ht(o, a, r, t, e) {
3444
- var i = na.apply(this, arguments);
3443
+ var ta = ea, ia = ta;
3444
+ function Ut(o, a, r, t, e) {
3445
+ var i = ra.apply(this, arguments);
3445
3446
  return o.addEventListener(r, i, e), {
3446
3447
  destroy: function() {
3447
3448
  o.removeEventListener(r, i, e);
3448
3449
  }
3449
3450
  };
3450
3451
  }
3451
- function ia(o, a, r, t, e) {
3452
- return typeof o.addEventListener == "function" ? Ht.apply(null, arguments) : typeof r == "function" ? Ht.bind(null, document).apply(null, arguments) : (typeof o == "string" && (o = document.querySelectorAll(o)), Array.prototype.map.call(o, function(i) {
3453
- return Ht(i, a, r, t, e);
3452
+ function na(o, a, r, t, e) {
3453
+ return typeof o.addEventListener == "function" ? Ut.apply(null, arguments) : typeof r == "function" ? Ut.bind(null, document).apply(null, arguments) : (typeof o == "string" && (o = document.querySelectorAll(o)), Array.prototype.map.call(o, function(i) {
3454
+ return Ut(i, a, r, t, e);
3454
3455
  }));
3455
3456
  }
3456
- function na(o, a, r, t) {
3457
+ function ra(o, a, r, t) {
3457
3458
  return function(e) {
3458
- e.delegateTarget = ta(e.target, a), e.delegateTarget && t.call(o, e);
3459
+ e.delegateTarget = ia(e.target, a), e.delegateTarget && t.call(o, e);
3459
3460
  };
3460
3461
  }
3461
- var ra = ia;
3462
- const qi = /* @__PURE__ */ li(ra);
3463
- var sa = {
3462
+ var sa = na;
3463
+ const qi = /* @__PURE__ */ li(sa);
3464
+ var aa = {
3464
3465
  CONTROLS: "controls",
3465
3466
  ROOT: "root"
3466
3467
  }, G = {
@@ -3477,13 +3478,13 @@ var sa = {
3477
3478
  ICON_DISABLE: "xg-icon-disable",
3478
3479
  ICON_HIDE: "xg-icon-hide"
3479
3480
  };
3480
- function Ut(o) {
3481
+ function Vt(o) {
3481
3482
  return o ? o.indexOf && /^(?:http|data:|\/)/.test(o) : !1;
3482
3483
  }
3483
- function aa(o, a) {
3484
+ function oa(o, a) {
3484
3485
  return re(o) === "object" && o.class && typeof o.class == "string" ? "".concat(a, " ").concat(o.class) : a;
3485
3486
  }
3486
- function oa(o, a) {
3487
+ function la(o, a) {
3487
3488
  return re(o) === "object" && o.attr && re(o.attr) === "object" && Object.keys(o.attr).map(function(r) {
3488
3489
  a[r] = o.attr[r];
3489
3490
  }), a;
@@ -3494,8 +3495,8 @@ function Ji(o, a) {
3494
3495
  return f.addClass(o, r), Object.keys(t).map(function(n) {
3495
3496
  o.setAttribute(n, t[n]);
3496
3497
  }), o;
3497
- if (Ut(o) || Ut(o.url))
3498
- return t.src = Ut(o) ? o : o.url || "", i = f.createDom(o.tag || "img", "", t, "xg-img ".concat(r)), i;
3498
+ if (Vt(o) || Vt(o.url))
3499
+ return t.src = Vt(o) ? o : o.url || "", i = f.createDom(o.tag || "img", "", t, "xg-img ".concat(r)), i;
3499
3500
  if (typeof o == "function")
3500
3501
  try {
3501
3502
  return i = o(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
@@ -3506,14 +3507,14 @@ function Ji(o, a) {
3506
3507
  }
3507
3508
  return typeof o == "string" ? f.createDomFromHtml(o, t, r) : (M.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is invalid")), null);
3508
3509
  }
3509
- function la(o, a) {
3510
+ function ua(o, a) {
3510
3511
  var r = a.config.icons || a.playerConfig.icons;
3511
3512
  Object.keys(o).map(function(t) {
3512
3513
  var e = o[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
3513
- r && r[t] && (i = aa(r[t], i), n = oa(r[t], n), s = Ji(r[t], t, i, n, a.pluginName)), !s && e && (s = Ji(e.icon ? e.icon : e, n, i, {}, a.pluginName)), a.icons[t] = s;
3514
+ r && r[t] && (i = oa(r[t], i), n = la(r[t], n), s = Ji(r[t], t, i, n, a.pluginName)), !s && e && (s = Ji(e.icon ? e.icon : e, n, i, {}, a.pluginName)), a.icons[t] = s;
3514
3515
  });
3515
3516
  }
3516
- function ua(o, a) {
3517
+ function ca(o, a) {
3517
3518
  Object.keys(o).map(function(r) {
3518
3519
  Object.defineProperty(a.langText, r, {
3519
3520
  get: function() {
@@ -3537,9 +3538,9 @@ var U = /* @__PURE__ */ function(o) {
3537
3538
  var i = e.root, n = null;
3538
3539
  this.icons = {}, this.root = null, this.parent = null;
3539
3540
  var s = this.registerIcons() || {};
3540
- la(s, this), this.langText = {};
3541
+ ua(s, this), this.langText = {};
3541
3542
  var l = this.registerLanguageTexts() || {};
3542
- ua(l, this);
3543
+ ca(l, this);
3543
3544
  var u = "";
3544
3545
  try {
3545
3546
  u = this.render();
@@ -3808,7 +3809,7 @@ var U = /* @__PURE__ */ function(o) {
3808
3809
  }, {
3809
3810
  key: "ROOT_TYPES",
3810
3811
  get: function() {
3811
- return sa;
3812
+ return aa;
3812
3813
  }
3813
3814
  }, {
3814
3815
  key: "POSITIONS",
@@ -3816,7 +3817,7 @@ var U = /* @__PURE__ */ function(o) {
3816
3817
  return G;
3817
3818
  }
3818
3819
  }]), r;
3819
- }(Oe), ca = /* @__PURE__ */ function() {
3820
+ }(Oe), fa = /* @__PURE__ */ function() {
3820
3821
  function o() {
3821
3822
  var a = this;
3822
3823
  if (T(this, o), _(this, "__trigger", function(r) {
@@ -3826,7 +3827,7 @@ var U = /* @__PURE__ */ function(o) {
3826
3827
  a.__runHandler(r[e].target);
3827
3828
  }), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
3828
3829
  try {
3829
- this.observer = new window.ResizeObserver(Os(this.__trigger, 100, {
3830
+ this.observer = new window.ResizeObserver(Ms(this.__trigger, 100, {
3830
3831
  trailing: !0
3831
3832
  })), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
3832
3833
  } catch (r) {
@@ -3881,17 +3882,17 @@ var U = /* @__PURE__ */ function(o) {
3881
3882
  }
3882
3883
  }]), o;
3883
3884
  }(), st = null;
3884
- function fa(o, a) {
3885
- return st || (st = new ca()), st.addObserver(o, a), st;
3886
- }
3887
3885
  function ha(o, a) {
3886
+ return st || (st = new fa()), st.addObserver(o, a), st;
3887
+ }
3888
+ function da(o, a) {
3888
3889
  st.unObserver(o, a);
3889
3890
  }
3890
3891
  var te = {
3891
3892
  pluginGroup: {},
3892
3893
  init: function(a) {
3893
3894
  var r = a._pluginInfoId;
3894
- r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver && fa(a.root, function() {
3895
+ r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver && ha(a.root, function() {
3895
3896
  a.resize();
3896
3897
  }), this.pluginGroup[r] = {
3897
3898
  _originalOptions: a.config || {},
@@ -4077,7 +4078,7 @@ var te = {
4077
4078
  destroy: function(a) {
4078
4079
  var r = a._pluginInfoId;
4079
4080
  if (this.pluginGroup[r]) {
4080
- ha(a.root);
4081
+ da(a.root);
4081
4082
  for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
4082
4083
  var n = i[e];
4083
4084
  this.unRegister(r, n);
@@ -4163,7 +4164,7 @@ function Qi() {
4163
4164
  ignores: [],
4164
4165
  whitelist: [],
4165
4166
  inactive: 3e3,
4166
- lang: Ms(),
4167
+ lang: Ns(),
4167
4168
  controls: !0,
4168
4169
  marginControls: !1,
4169
4170
  fullscreenTarget: null,
@@ -4199,7 +4200,7 @@ function Qi() {
4199
4200
  }
4200
4201
  };
4201
4202
  }
4202
- var da = function(a, r) {
4203
+ var ga = function(a, r) {
4203
4204
  var t, e, i;
4204
4205
  r.preset && r.options ? i = new r.preset(r.options, a.config) : i = new r({}, a.config);
4205
4206
  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;
@@ -4208,7 +4209,7 @@ var da = function(a, r) {
4208
4209
  });
4209
4210
  var y = a.config.i18n || [];
4210
4211
  p.push.apply(p, de(y)), a.config.i18n = p;
4211
- }, ga = /* @__PURE__ */ function(o) {
4212
+ }, pa = /* @__PURE__ */ function(o) {
4212
4213
  S(r, o);
4213
4214
  var a = x(r);
4214
4215
  function r() {
@@ -4369,7 +4370,7 @@ var da = function(a, r) {
4369
4370
  };
4370
4371
  }
4371
4372
  }]), r;
4372
- }(U), pa = {
4373
+ }(U), va = {
4373
4374
  LANG: "en",
4374
4375
  TEXT: {
4375
4376
  ERROR_TYPES: {
@@ -4464,7 +4465,7 @@ function $n() {
4464
4465
  ue.textKeys[o] = o;
4465
4466
  });
4466
4467
  }
4467
- function va(o, a) {
4468
+ function ma(o, a) {
4468
4469
  var r = [];
4469
4470
  if (a || (a = ue), !!a.lang) {
4470
4471
  f.typeOf(o) !== "Array" ? r = Object.keys(o).map(function(i) {
@@ -4487,7 +4488,7 @@ function yi(o, a) {
4487
4488
  r === "zh" && (r = "zh-cn"), a.lang[r] ? ot(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), $n();
4488
4489
  }
4489
4490
  }
4490
- function ma(o) {
4491
+ function ya(o) {
4491
4492
  var a, r = {
4492
4493
  lang: {},
4493
4494
  langKeys: [],
@@ -4496,7 +4497,7 @@ function ma(o) {
4496
4497
  };
4497
4498
  return ot(r.lang, ue.lang), (a = r.langKeys).push.apply(a, de(ue.langKeys)), ot(r.textKeys, ue.textKeys), r;
4498
4499
  }
4499
- yi(pa);
4500
+ yi(va);
4500
4501
  var Qe = {
4501
4502
  get textKeys() {
4502
4503
  return ue.textKeys;
@@ -4510,9 +4511,9 @@ var Qe = {
4510
4511
  o[a] = ue.lang[a];
4511
4512
  }), ue.lang["zh-cn"] && (o.zh = ue.lang["zh-cn"] || {}), o;
4512
4513
  },
4513
- extend: va,
4514
+ extend: ma,
4514
4515
  use: yi,
4515
- init: ma
4516
+ init: ya
4516
4517
  }, H = {
4517
4518
  INITIAL: 1,
4518
4519
  READY: 2,
@@ -4522,7 +4523,7 @@ var Qe = {
4522
4523
  RUNNING: 6,
4523
4524
  ENDED: 7,
4524
4525
  DESTROYED: 8
4525
- }, en = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, Vt = null, Xn = /* @__PURE__ */ function(o) {
4526
+ }, en = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], se = {}, zt = null, Xn = /* @__PURE__ */ function(o) {
4526
4527
  S(r, o);
4527
4528
  var a = x(r);
4528
4529
  function r() {
@@ -4605,11 +4606,11 @@ var Qe = {
4605
4606
  }], [{
4606
4607
  key: "getInstance",
4607
4608
  value: function() {
4608
- return Vt || (Vt = new r()), Vt;
4609
+ return zt || (zt = new r()), zt;
4609
4610
  }
4610
4611
  }]), r;
4611
4612
  }(Sn.EventEmitter);
4612
- function ya(o) {
4613
+ function _a(o) {
4613
4614
  for (var a = Object.keys(se), r = 0; r < a.length; r++) {
4614
4615
  var t = se[a[r]];
4615
4616
  if (t.root === o)
@@ -4617,7 +4618,7 @@ function ya(o) {
4617
4618
  }
4618
4619
  return null;
4619
4620
  }
4620
- var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /* @__PURE__ */ function(o) {
4621
+ var Ca = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, Dt = /* @__PURE__ */ function(o) {
4621
4622
  S(r, o);
4622
4623
  var a = x(r);
4623
4624
  function r(t) {
@@ -4647,7 +4648,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
4647
4648
  to: !1
4648
4649
  }]
4649
4650
  });
4650
- var w = Ns(k, e.playerId, He);
4651
+ var w = Fs(k, e.playerId, He);
4651
4652
  if (y || k && (k === e._fullscreenEl || w))
4652
4653
  m(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
4653
4654
  else if (e.fullscreen) {
@@ -4667,7 +4668,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
4667
4668
  e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
4668
4669
  }), _(v(e), "_onWebkitendfullscreen", function(p) {
4669
4670
  e.onFullscreenChange(p, !1);
4670
- }), Kn(v(e), _a), e.config = i, e._pluginInfoId = f.generateSessionId(), Ls(v(e));
4671
+ }), Kn(v(e), Ca), e.config = i, e._pluginInfoId = f.generateSessionId(), As(v(e));
4671
4672
  var n = e.constructor.defaultPreset;
4672
4673
  if (e.config.presets.length) {
4673
4674
  var s = e.config.presets.indexOf("default");
@@ -4696,7 +4697,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
4696
4697
  }, e._offsetInfo = {
4697
4698
  currentTime: -1,
4698
4699
  duration: 0
4699
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Qe.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new Zs(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4700
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Qe.init(e._pluginInfoId), R.os.isAndroid && R.osVersion > 0 && R.osVersion < 6 && (e.config.autoplay = !1), e.database = new Js(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4700
4701
  isActiveLocked: !1
4701
4702
  }, e.instManager = Pe;
4702
4703
  var l = e._initDOM();
@@ -4728,7 +4729,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
4728
4729
  msg: "container id can't be empty"
4729
4730
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
4730
4731
  }
4731
- var s = ya(this.root);
4732
+ var s = _a(this.root);
4732
4733
  s && (M.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(He, this.playerId), (e = Pe) === null || e === void 0 || e.add(this), te.init(this), this._initBaseDoms();
4733
4734
  var l = this.constructor.XgVideoProxy;
4734
4735
  if (l && this.mediaConfig.mediaType === l.mediaType) {
@@ -4738,7 +4739,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
4738
4739
  this.attachVideoEvents(c), this.media = c;
4739
4740
  }
4740
4741
  if (this.media.setAttribute(He, this.playerId), this.config.controls) {
4741
- var h = this.config.controls.root || null, d = te.register(this, ga, {
4742
+ var h = this.config.controls.root || null, d = te.register(this, pa, {
4742
4743
  root: h
4743
4744
  });
4744
4745
  this.controls = d;
@@ -4807,7 +4808,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
4807
4808
  M.logInfo("_startInit readyState", s), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (R.os.isIpad || R.os.isPhone) && this.mediaPlay());
4808
4809
  var l = this.config.startTime;
4809
4810
  this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Te, this.canPlayFunc), (!this.hasStart || this.state < H.ATTACHED) && te.afterInit(this), this.hasStart = !0, this.setState(H.ATTACHED), f.setTimeout(this, function() {
4810
- i.emit(It);
4811
+ i.emit(Pt);
4811
4812
  }, 0);
4812
4813
  }
4813
4814
  }
@@ -4846,7 +4847,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
4846
4847
  value: function() {
4847
4848
  var e = this;
4848
4849
  this.config.presets.forEach(function(i) {
4849
- da(e, i);
4850
+ ga(e, i);
4850
4851
  });
4851
4852
  }
4852
4853
  }, {
@@ -5078,11 +5079,11 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
5078
5079
  seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
5079
5080
  }, e));
5080
5081
  l && l.then ? l.then(function() {
5081
- n.emit(ni, {
5082
+ n.emit(ri, {
5082
5083
  from: i,
5083
5084
  to: e
5084
5085
  });
5085
- }) : this.emit(ni, {
5086
+ }) : this.emit(ri, {
5086
5087
  from: i,
5087
5088
  to: e
5088
5089
  });
@@ -5100,7 +5101,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
5100
5101
  var e = this, i = C.NOT_ALLOW_AUTOPLAY, n = C.PLAYING, s = C.NO_START, l = C.PAUSED, u = C.REPLAY, c = C.ENTER, h = C.ENDED, d = C.ERROR, g = C.LOADING, p = [i, n, s, l, u, c, h, d, g];
5101
5102
  this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(y) {
5102
5103
  e.removeClass(y);
5103
- }), this.addClass(C.NO_START), this.emit(Lt);
5104
+ }), this.addClass(C.NO_START), this.emit(At);
5104
5105
  }
5105
5106
  }, {
5106
5107
  key: "reset",
@@ -5626,7 +5627,7 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
5626
5627
  }, {
5627
5628
  key: "version",
5628
5629
  get: function() {
5629
- return ti;
5630
+ return ii;
5630
5631
  }
5631
5632
  }, {
5632
5633
  key: "playerId",
@@ -5808,10 +5809,10 @@ var _a = ["play", "pause", "replay", "retry"], tn = 0, nn = 0, Pe = null, At = /
5808
5809
  r.plugins || (r.plugins = {}), r.plugins[e] = i;
5809
5810
  }
5810
5811
  }]), r;
5811
- }(qs);
5812
- _(At, "defaultPreset", null);
5813
- _(At, "XgVideoProxy", null);
5814
- At.instManager = Xn.getInstance();
5812
+ }(Zs);
5813
+ _(Dt, "defaultPreset", null);
5814
+ _(Dt, "XgVideoProxy", null);
5815
+ Dt.instManager = Xn.getInstance();
5815
5816
  function ne() {
5816
5817
  return (/* @__PURE__ */ new Date()).getTime();
5817
5818
  }
@@ -5823,7 +5824,7 @@ var Le = {
5823
5824
  WAIT_END: "waitingEnd",
5824
5825
  SEEK_START: "seekStart",
5825
5826
  SEEK_END: "seekEnd"
5826
- }, Ca = /* @__PURE__ */ function(o) {
5827
+ }, ka = /* @__PURE__ */ function(o) {
5827
5828
  S(r, o);
5828
5829
  var a = x(r);
5829
5830
  function r() {
@@ -5882,11 +5883,11 @@ var Le = {
5882
5883
  e.vt = ne(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
5883
5884
  var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
5884
5885
  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(Le.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
5885
- }), this.on(xt, this._onSeeking), this.on(Ee, this._onSeeked), this.on(vi, function() {
5886
+ }), this.on(It, this._onSeeking), this.on(Ee, this._onSeeked), this.on(vi, function() {
5886
5887
  e.endState("destroy");
5887
- }), this.on(Pt, function() {
5888
+ }), this.on(Lt, function() {
5888
5889
  e.endState("urlChange"), M.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
5889
- }), this.on([fi, Te], this._onPlaying), this.on(ut, this._onWaiting), this.on(lt, this._onError), this.on(Lt, function() {
5890
+ }), this.on([fi, Te], this._onPlaying), this.on(ut, this._onWaiting), this.on(lt, this._onError), this.on(At, function() {
5890
5891
  M.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
5891
5892
  });
5892
5893
  }
@@ -5974,13 +5975,13 @@ var Le = {
5974
5975
  }
5975
5976
  }]), r;
5976
5977
  }(U);
5977
- function ka() {
5978
+ function ba() {
5978
5979
  return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
5979
5980
  <path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
5980
5981
  </svg>
5981
5982
  `, "image/svg+xml").firstChild;
5982
5983
  }
5983
- var ba = /* @__PURE__ */ function(o) {
5984
+ var wa = /* @__PURE__ */ function(o) {
5984
5985
  S(r, o);
5985
5986
  var a = x(r);
5986
5987
  function r() {
@@ -5990,7 +5991,7 @@ var ba = /* @__PURE__ */ function(o) {
5990
5991
  key: "registerIcons",
5991
5992
  value: function() {
5992
5993
  return {
5993
- replay: ka
5994
+ replay: ba
5994
5995
  };
5995
5996
  }
5996
5997
  }, {
@@ -6063,7 +6064,7 @@ var ba = /* @__PURE__ */ function(o) {
6063
6064
  };
6064
6065
  }
6065
6066
  }]), r;
6066
- }(U), wa = /* @__PURE__ */ function(o) {
6067
+ }(U), Ta = /* @__PURE__ */ function(o) {
6067
6068
  S(r, o);
6068
6069
  var a = x(r);
6069
6070
  function r() {
@@ -6100,7 +6101,7 @@ var ba = /* @__PURE__ */ function(o) {
6100
6101
  e.isEndedShow && f.removeClass(e.root, "hide");
6101
6102
  }), this.config.hideCanplay ? (this.once(ce, function() {
6102
6103
  e.onTimeUpdate();
6103
- }), this.on(Pt, function() {
6104
+ }), this.on(Lt, function() {
6104
6105
  f.removeClass(e.root, "hide"), f.addClass(e.root, "xg-showplay"), e.once(ce, function() {
6105
6106
  e.onTimeUpdate();
6106
6107
  });
@@ -6188,7 +6189,7 @@ function Ci() {
6188
6189
  `, "image/svg+xml").firstChild;
6189
6190
  }
6190
6191
  var ye = {};
6191
- function Ta(o, a) {
6192
+ function Ea(o, a) {
6192
6193
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
6193
6194
  start: null,
6194
6195
  end: null
@@ -6206,7 +6207,7 @@ function rn(o) {
6206
6207
  window.clearTimeout(ye[a].id), delete ye[a];
6207
6208
  });
6208
6209
  }
6209
- var Ea = /* @__PURE__ */ function(o) {
6210
+ var Sa = /* @__PURE__ */ function(o) {
6210
6211
  S(r, o);
6211
6212
  var a = x(r);
6212
6213
  function r(t) {
@@ -6235,7 +6236,7 @@ var Ea = /* @__PURE__ */ function(o) {
6235
6236
  e.onPlayPause("play");
6236
6237
  }), this.on(tt, function() {
6237
6238
  e.onPlayPause("pause");
6238
- }), this.on(Lt, function() {
6239
+ }), this.on(At, function() {
6239
6240
  e.onPlayerReset();
6240
6241
  }), this.clickHandler = this.hook("startClick", this.switchPausePlay, {
6241
6242
  pre: function(l) {
@@ -6298,7 +6299,7 @@ var Ea = /* @__PURE__ */ function(o) {
6298
6299
  key: "animate",
6299
6300
  value: function(e) {
6300
6301
  var i = this;
6301
- this._animateId = Ta("pauseplay", 400, {
6302
+ this._animateId = Ea("pauseplay", 400, {
6302
6303
  start: function() {
6303
6304
  f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
6304
6305
  },
@@ -6381,7 +6382,7 @@ var Ea = /* @__PURE__ */ function(o) {
6381
6382
  };
6382
6383
  }
6383
6384
  }]), r;
6384
- }(U), Sa = /* @__PURE__ */ function(o) {
6385
+ }(U), xa = /* @__PURE__ */ function(o) {
6385
6386
  S(r, o);
6386
6387
  var a = x(r);
6387
6388
  function r() {
@@ -6481,7 +6482,7 @@ function an(o) {
6481
6482
  return r && a;
6482
6483
  }
6483
6484
  var ki = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], qn = ki.length;
6484
- function xa() {
6485
+ function Ia() {
6485
6486
  for (var o = {
6486
6487
  width: 0,
6487
6488
  height: 0,
@@ -6495,15 +6496,15 @@ function xa() {
6495
6496
  }
6496
6497
  return o;
6497
6498
  }
6498
- function Ia(o) {
6499
+ function Pa(o) {
6499
6500
  var a = window.getComputedStyle(o);
6500
6501
  return a;
6501
6502
  }
6502
6503
  function on(o) {
6503
6504
  if (typeof o == "string" && (o = document.querySelector(o)), !(!o || re(o) !== "object" || !o.nodeType)) {
6504
- var a = Ia(o);
6505
+ var a = Pa(o);
6505
6506
  if (a.display === "none")
6506
- return xa();
6507
+ return Ia();
6507
6508
  var r = {};
6508
6509
  r.width = o.offsetWidth, r.height = o.offsetHeight;
6509
6510
  for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < qn; e++) {
@@ -6516,14 +6517,14 @@ function on(o) {
6516
6517
  return m !== !1 && (r.height = m + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
6517
6518
  }
6518
6519
  }
6519
- function zt(o, a) {
6520
+ function jt(o, a) {
6520
6521
  for (var r = 0; r < o.length; r++) {
6521
6522
  var t = o[r];
6522
6523
  if (t.identifier === a)
6523
6524
  return t;
6524
6525
  }
6525
6526
  }
6526
- var jt = {
6527
+ var Wt = {
6527
6528
  START: "dragStart",
6528
6529
  MOVE: "dragMove",
6529
6530
  ENDED: "dragEnded"
@@ -6531,7 +6532,7 @@ var jt = {
6531
6532
  mousedown: ["mousemove", "mouseup"],
6532
6533
  touchstart: ["touchmove", "touchend", "touchcancel"],
6533
6534
  pointerdown: ["pointermove", "pointerup", "pointercancel"]
6534
- }, Pa = /* @__PURE__ */ function(o) {
6535
+ }, La = /* @__PURE__ */ function(o) {
6535
6536
  S(r, o);
6536
6537
  var a = x(r);
6537
6538
  function r(t) {
@@ -6634,19 +6635,19 @@ var jt = {
6634
6635
  }, {
6635
6636
  key: "ontouchmove",
6636
6637
  value: function(e) {
6637
- var i = zt(e.changedTouches, this.touchIdentifier);
6638
+ var i = jt(e.changedTouches, this.touchIdentifier);
6638
6639
  i && this.dragMove(e, i);
6639
6640
  }
6640
6641
  }, {
6641
6642
  key: "ontouchend",
6642
6643
  value: function(e) {
6643
- var i = zt(e.changedTouches, this.touchIdentifier);
6644
+ var i = jt(e.changedTouches, this.touchIdentifier);
6644
6645
  i && this.dragEnd(e, i), e.preventDefault();
6645
6646
  }
6646
6647
  }, {
6647
6648
  key: "ontouchcancel",
6648
6649
  value: function(e) {
6649
- var i = zt(e.changedTouches, this.touchIdentifier);
6650
+ var i = jt(e.changedTouches, this.touchIdentifier);
6650
6651
  i && this.dragCancel(e, i);
6651
6652
  }
6652
6653
  }, {
@@ -6661,12 +6662,12 @@ var jt = {
6661
6662
  }, {
6662
6663
  key: "dragRealStart",
6663
6664
  value: function(e, i) {
6664
- this.isDragging = !0, this.animate(), this.emit(jt.START, this.startPos);
6665
+ this.isDragging = !0, this.animate(), this.emit(Wt.START, this.startPos);
6665
6666
  }
6666
6667
  }, {
6667
6668
  key: "dragEnd",
6668
6669
  value: function(e, i) {
6669
- this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(jt.ENDED)), this.presetInfo());
6670
+ this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Wt.ENDED)), this.presetInfo());
6670
6671
  }
6671
6672
  }, {
6672
6673
  key: "_dragPointerMove",
@@ -6682,7 +6683,7 @@ var jt = {
6682
6683
  value: function(e, i) {
6683
6684
  if (e = e || window.event, !!this.isDown) {
6684
6685
  var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
6685
- c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(jt.MOVE, this.position);
6686
+ c = this.checkContain("x", c, s), h = this.checkContain("y", h, l), this.position.x = s + c, this.position.y = l + h, this.dragPoint.x = c, this.dragPoint.y = h, this.emit(Wt.MOVE, this.position);
6686
6687
  }
6687
6688
  }
6688
6689
  }, {
@@ -6741,7 +6742,7 @@ var jt = {
6741
6742
  return parseInt(e, 10);
6742
6743
  }
6743
6744
  }]), r;
6744
- }(xn), La = /* @__PURE__ */ function(o) {
6745
+ }(xn), Aa = /* @__PURE__ */ function(o) {
6745
6746
  S(r, o);
6746
6747
  var a = x(r);
6747
6748
  function r(t) {
@@ -6797,7 +6798,7 @@ var jt = {
6797
6798
  i.controls.registerPlugin(sn, s, sn.pluginName);
6798
6799
  }
6799
6800
  var l = f.checkTouchSupport() ? "touchend" : "click";
6800
- this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Pa(this.player.root, {
6801
+ this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new La(this.player.root, {
6801
6802
  handle: this.root
6802
6803
  })), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
6803
6804
  }
@@ -6895,7 +6896,7 @@ var jt = {
6895
6896
  mouseenter: "onMouseEnter",
6896
6897
  mouseleave: "onMouseLeave",
6897
6898
  mousemove: "onMouseMove"
6898
- }, Wt = ["videoClick", "videoDbClick"], Gt = /* @__PURE__ */ function(o) {
6899
+ }, Gt = ["videoClick", "videoDbClick"], Kt = /* @__PURE__ */ function(o) {
6899
6900
  S(r, o);
6900
6901
  var a = x(r);
6901
6902
  function r() {
@@ -6924,7 +6925,7 @@ var jt = {
6924
6925
  }), _(v(t), "onVideoClick", function(s) {
6925
6926
  var l = v(t), u = l.player, c = l.playerConfig;
6926
6927
  s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
6927
- t._clickCount && (t._clickCount--, we(v(t), Wt[0], function(h, d) {
6928
+ t._clickCount && (t._clickCount--, we(v(t), Gt[0], function(h, d) {
6928
6929
  t.switchPlayPause(d.e);
6929
6930
  }, {
6930
6931
  e: s,
@@ -6938,7 +6939,7 @@ var jt = {
6938
6939
  t._clickCount = 0;
6939
6940
  return;
6940
6941
  }
6941
- t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), we(v(t), Wt[1], function(h, d) {
6942
+ t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), we(v(t), Gt[1], function(h, d) {
6942
6943
  t.emitUserAction(d.e, "switch_fullscreen", {
6943
6944
  props: "fullscreen",
6944
6945
  from: u.fullscreen,
@@ -6955,7 +6956,7 @@ var jt = {
6955
6956
  key: "afterCreate",
6956
6957
  value: function() {
6957
6958
  var e = this;
6958
- this._clickCount = 0, Wt.map(function(n) {
6959
+ this._clickCount = 0, Gt.map(function(n) {
6959
6960
  e.__hooks[n] = null;
6960
6961
  });
6961
6962
  var i = this.playerConfig.isMobileSimulateMode;
@@ -7011,12 +7012,12 @@ var jt = {
7011
7012
  TOUCH_MOVE: "touchmove",
7012
7013
  TOUCH_START: "touchstart",
7013
7014
  TOUCH_END: "touchend"
7014
- }, Aa = {
7015
+ }, Da = {
7015
7016
  start: "touchstart",
7016
7017
  end: "touchend",
7017
7018
  move: "touchmove",
7018
7019
  cancel: "touchcancel"
7019
- }, Da = {
7020
+ }, Ra = {
7020
7021
  start: "mousedown",
7021
7022
  end: "mouseup",
7022
7023
  move: "mousemove",
@@ -7025,7 +7026,7 @@ var jt = {
7025
7026
  function un(o) {
7026
7027
  return o && o.length > 0 ? o[o.length - 1] : null;
7027
7028
  }
7028
- function Ra() {
7029
+ function Oa() {
7029
7030
  return {
7030
7031
  pressDelay: 600,
7031
7032
  dbClickDelay: 200,
@@ -7035,7 +7036,7 @@ function Ra() {
7035
7036
  needPreventDefault: !0
7036
7037
  };
7037
7038
  }
7038
- var Oa = /* @__PURE__ */ function() {
7039
+ var Ma = /* @__PURE__ */ function() {
7039
7040
  function o(a) {
7040
7041
  var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
7041
7042
  eventType: "touch"
@@ -7056,9 +7057,9 @@ var Oa = /* @__PURE__ */ function() {
7056
7057
  start: !1,
7057
7058
  x: 0,
7058
7059
  y: 0
7059
- }, this.config = Ra(), Object.keys(t).map(function(e) {
7060
+ }, this.config = Oa(), Object.keys(t).map(function(e) {
7060
7061
  r.config[e] = t[e];
7061
- }), this.root = a, this.events = t.eventType === "mouse" ? Da : Aa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7062
+ }), this.root = a, this.events = t.eventType === "mouse" ? Ra : Da, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7062
7063
  }
7063
7064
  return E(o, [{
7064
7065
  key: "_initEvent",
@@ -7137,7 +7138,7 @@ var Oa = /* @__PURE__ */ function() {
7137
7138
  }
7138
7139
  }]), o;
7139
7140
  }();
7140
- function Ma() {
7141
+ function Na() {
7141
7142
  return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
7142
7143
  xmlns:xlink="http://www.w3.org/1999/xlink">
7143
7144
  <path opacity="0.54"
@@ -7151,7 +7152,7 @@ var Ke = {
7151
7152
  SEEKING: "seeking",
7152
7153
  PLAYBACK: "playbackrate",
7153
7154
  LIGHT: ""
7154
- }, Kt = ["videoClick", "videoDbClick"], Na = /* @__PURE__ */ function(o) {
7155
+ }, Yt = ["videoClick", "videoDbClick"], Fa = /* @__PURE__ */ function(o) {
7155
7156
  S(r, o);
7156
7157
  var a = x(r);
7157
7158
  function r(t) {
@@ -7223,7 +7224,7 @@ var Ke = {
7223
7224
  value: function() {
7224
7225
  return {
7225
7226
  seekTipIcon: {
7226
- icon: Ma,
7227
+ icon: Na,
7227
7228
  class: "xg-seek-pre"
7228
7229
  }
7229
7230
  };
@@ -7232,13 +7233,13 @@ var Ke = {
7232
7233
  key: "afterCreate",
7233
7234
  value: function() {
7234
7235
  var e = this;
7235
- Kt.map(function(d) {
7236
+ Yt.map(function(d) {
7236
7237
  e.__hooks[d] = null;
7237
7238
  });
7238
7239
  var i = this.playerConfig, n = this.config, s = this.player;
7239
7240
  i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
7240
7241
  var l = this.domEventType === "mouse" ? "mouse" : "touch";
7241
- this.touch = new Oa(this.root, {
7242
+ this.touch = new Ma(this.root, {
7242
7243
  eventType: l,
7243
7244
  needPreventDefault: !this.config.disableGesture
7244
7245
  }), this.root.addEventListener("contextmenu", function(d) {
@@ -7415,7 +7416,7 @@ var Ke = {
7415
7416
  key: "onClick",
7416
7417
  value: function(e) {
7417
7418
  var i = this, n = this.player;
7418
- we(this, Kt[0], function(s, l) {
7419
+ we(this, Yt[0], function(s, l) {
7419
7420
  i.clickHandler(l.e);
7420
7421
  }, {
7421
7422
  e,
@@ -7426,7 +7427,7 @@ var Ke = {
7426
7427
  key: "onDbClick",
7427
7428
  value: function(e) {
7428
7429
  var i = this, n = this.player;
7429
- we(this, Kt[1], function(s, l) {
7430
+ we(this, Yt[1], function(s, l) {
7430
7431
  i.dbClickHandler(l.e);
7431
7432
  }, {
7432
7433
  e,
@@ -7580,7 +7581,7 @@ var Ke = {
7580
7581
  }
7581
7582
  }]), r;
7582
7583
  }(U);
7583
- function Fa(o) {
7584
+ function Ba(o) {
7584
7585
  o.preventDefault(), o.returnValue = !1;
7585
7586
  }
7586
7587
  function cn(o) {
@@ -7829,7 +7830,7 @@ var fn = /* @__PURE__ */ function(o) {
7829
7830
  isPress: n
7830
7831
  }, this.keyCodeMap[s[l]]));
7831
7832
  }
7832
- Fa(i), i.stopPropagation();
7833
+ Ba(i), i.stopPropagation();
7833
7834
  break;
7834
7835
  }
7835
7836
  }
@@ -7871,13 +7872,13 @@ var fn = /* @__PURE__ */ function(o) {
7871
7872
  }
7872
7873
  }]), r;
7873
7874
  }(Oe);
7874
- function Ba() {
7875
+ function Ha() {
7875
7876
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
7876
7877
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
7877
7878
  </svg>
7878
7879
  `, "image/svg+xml").firstChild;
7879
7880
  }
7880
- var Ha = /* @__PURE__ */ function(o) {
7881
+ var Ua = /* @__PURE__ */ function(o) {
7881
7882
  S(r, o);
7882
7883
  var a = x(r);
7883
7884
  function r() {
@@ -7887,7 +7888,7 @@ var Ha = /* @__PURE__ */ function(o) {
7887
7888
  key: "registerIcons",
7888
7889
  value: function() {
7889
7890
  return {
7890
- loadingIcon: Ba
7891
+ loadingIcon: Ha
7891
7892
  };
7892
7893
  }
7893
7894
  }, {
@@ -7916,7 +7917,7 @@ var Ha = /* @__PURE__ */ function(o) {
7916
7917
  };
7917
7918
  }
7918
7919
  }]), r;
7919
- }(U), Ua = [{
7920
+ }(U), Va = [{
7920
7921
  tag: "xg-cache",
7921
7922
  className: "xgplayer-progress-cache",
7922
7923
  styleKey: "cachedColor"
@@ -7924,7 +7925,7 @@ var Ha = /* @__PURE__ */ function(o) {
7924
7925
  tag: "xg-played",
7925
7926
  className: "xgplayer-progress-played",
7926
7927
  styleKey: "playedColor"
7927
- }], Va = /* @__PURE__ */ function() {
7928
+ }], za = /* @__PURE__ */ function() {
7928
7929
  function o(a) {
7929
7930
  T(this, o), this.fragments = a.fragments || [], this.fragments.length === 0 && this.fragments.push({
7930
7931
  percent: 1
@@ -8111,7 +8112,7 @@ var Ha = /* @__PURE__ */ function(o) {
8111
8112
  var l = f.createDom("xg-inner", "", {
8112
8113
  style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
8113
8114
  }, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
8114
- return r.root.appendChild(l), Ua.forEach(function(u) {
8115
+ return r.root.appendChild(l), Va.forEach(function(u) {
8115
8116
  l.appendChild(f.createDom(u.tag, "", {
8116
8117
  style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
8117
8118
  }, u.className));
@@ -8127,7 +8128,7 @@ var Ha = /* @__PURE__ */ function(o) {
8127
8128
  }(), hn = {
8128
8129
  POINT: "inner-focus-point",
8129
8130
  HIGHLIGHT: "inner-focus-highlight"
8130
- }, za = /* @__PURE__ */ function(o) {
8131
+ }, ja = /* @__PURE__ */ function(o) {
8131
8132
  S(r, o);
8132
8133
  var a = x(r);
8133
8134
  function r(t) {
@@ -8257,7 +8258,7 @@ var Ha = /* @__PURE__ */ function(o) {
8257
8258
  e.emitUserAction("fragment_focus", "fragment_focus", u);
8258
8259
  }
8259
8260
  });
8260
- this.innerList ? this.innerList.reset(s) : (this.innerList = new Va(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
8261
+ this.innerList ? this.innerList.reset(s) : (this.innerList = new za(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
8261
8262
  e[l] = e.innerList[l].bind(e.innerList);
8262
8263
  }));
8263
8264
  }
@@ -8567,7 +8568,7 @@ var Ha = /* @__PURE__ */ function(o) {
8567
8568
  this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
8568
8569
  }
8569
8570
  }]), r;
8570
- }(U), ja = /* @__PURE__ */ function(o) {
8571
+ }(U), Wa = /* @__PURE__ */ function(o) {
8571
8572
  S(r, o);
8572
8573
  var a = x(r);
8573
8574
  function r() {
@@ -8655,14 +8656,14 @@ var Ha = /* @__PURE__ */ function(o) {
8655
8656
  }
8656
8657
  }]), r;
8657
8658
  }(je);
8658
- function Wa() {
8659
+ function Ga() {
8659
8660
  return new DOMParser().parseFromString(`<svg width="32px" height="40px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
8660
8661
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8661
8662
  <path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
8662
8663
  </g>
8663
8664
  </svg>`, "image/svg+xml").firstChild;
8664
8665
  }
8665
- var Ga = /* @__PURE__ */ function(o) {
8666
+ var Ka = /* @__PURE__ */ function(o) {
8666
8667
  S(r, o);
8667
8668
  var a = x(r);
8668
8669
  function r() {
@@ -8681,7 +8682,7 @@ var Ga = /* @__PURE__ */ function(o) {
8681
8682
  value: function() {
8682
8683
  return {
8683
8684
  screenBack: {
8684
- icon: Wa,
8685
+ icon: Ga,
8685
8686
  class: "xg-fullscreen-back"
8686
8687
  }
8687
8688
  };
@@ -8723,19 +8724,19 @@ var Ga = /* @__PURE__ */ function(o) {
8723
8724
  }
8724
8725
  }]), r;
8725
8726
  }(U);
8726
- function Ka() {
8727
+ function Ya() {
8727
8728
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8728
8729
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
8729
8730
  </svg>
8730
8731
  `, "image/svg+xml").firstChild;
8731
8732
  }
8732
- function Ya() {
8733
+ function $a() {
8733
8734
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8734
8735
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
8735
8736
  </svg>
8736
8737
  `, "image/svg+xml").firstChild;
8737
8738
  }
8738
- var $a = /* @__PURE__ */ function(o) {
8739
+ var Xa = /* @__PURE__ */ function(o) {
8739
8740
  S(r, o);
8740
8741
  var a = x(r);
8741
8742
  function r() {
@@ -8770,7 +8771,7 @@ var $a = /* @__PURE__ */ function(o) {
8770
8771
  var u = e.find(".xg-tips");
8771
8772
  u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
8772
8773
  }), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
8773
- plugin: Ga,
8774
+ plugin: Ka,
8774
8775
  options: {
8775
8776
  config: {
8776
8777
  onClick: function(u) {
@@ -8786,11 +8787,11 @@ var $a = /* @__PURE__ */ function(o) {
8786
8787
  value: function() {
8787
8788
  return {
8788
8789
  fullscreen: {
8789
- icon: Ka,
8790
+ icon: Ya,
8790
8791
  class: "xg-get-fullscreen"
8791
8792
  },
8792
8793
  exitFullscreen: {
8793
- icon: Ya,
8794
+ icon: $a,
8794
8795
  class: "xg-exit-fullscreen"
8795
8796
  }
8796
8797
  };
@@ -8871,7 +8872,7 @@ var $a = /* @__PURE__ */ function(o) {
8871
8872
  };
8872
8873
  }
8873
8874
  }]), r;
8874
- }(je), Xa = /* @__PURE__ */ function(o) {
8875
+ }(je), qa = /* @__PURE__ */ function(o) {
8875
8876
  S(r, o);
8876
8877
  var a = x(r);
8877
8878
  function r(t) {
@@ -9021,7 +9022,7 @@ var $a = /* @__PURE__ */ function(o) {
9021
9022
  };
9022
9023
  }
9023
9024
  }]), r;
9024
- }(U), qa = /* @__PURE__ */ function(o) {
9025
+ }(U), Za = /* @__PURE__ */ function(o) {
9025
9026
  S(r, o);
9026
9027
  var a = x(r);
9027
9028
  function r() {
@@ -9077,7 +9078,7 @@ var $a = /* @__PURE__ */ function(o) {
9077
9078
  return E(r, [{
9078
9079
  key: "afterCreate",
9079
9080
  value: function() {
9080
- this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Me, this._onDurationChange), this.on(Se, this._onLoadedData), this.on(ce, this._onTimeupdate), this.on(xt, this._onSeeking), this.on(fe, this._onPlay);
9081
+ this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Me, this._onDurationChange), this.on(Se, this._onLoadedData), this.on(ce, this._onTimeupdate), this.on(It, this._onSeeking), this.on(fe, this._onPlay);
9081
9082
  }
9082
9083
  }, {
9083
9084
  key: "setConfig",
@@ -9159,28 +9160,28 @@ var $a = /* @__PURE__ */ function(o) {
9159
9160
  }
9160
9161
  }]), r;
9161
9162
  }(Oe);
9162
- function Za() {
9163
+ function Ja() {
9163
9164
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9164
9165
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9165
9166
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
9166
9167
  </svg>
9167
9168
  `, "image/svg+xml").firstChild;
9168
9169
  }
9169
- function Ja() {
9170
+ function Qa() {
9170
9171
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9171
9172
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9172
9173
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
9173
9174
  </svg>
9174
9175
  `, "image/svg+xml").firstChild;
9175
9176
  }
9176
- function Qa() {
9177
+ function eo() {
9177
9178
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9178
9179
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
9179
9180
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
9180
9181
  </svg>
9181
9182
  `, "image/svg+xml").firstChild;
9182
9183
  }
9183
- var eo = /* @__PURE__ */ function(o) {
9184
+ var to = /* @__PURE__ */ function(o) {
9184
9185
  S(r, o);
9185
9186
  var a = x(r);
9186
9187
  function r() {
@@ -9228,15 +9229,15 @@ var eo = /* @__PURE__ */ function(o) {
9228
9229
  value: function() {
9229
9230
  return {
9230
9231
  volumeSmall: {
9231
- icon: Ja,
9232
+ icon: Qa,
9232
9233
  class: "xg-volume-small"
9233
9234
  },
9234
9235
  volumeLarge: {
9235
- icon: Za,
9236
+ icon: Ja,
9236
9237
  class: "xg-volume"
9237
9238
  },
9238
9239
  volumeMuted: {
9239
- icon: Qa,
9240
+ icon: eo,
9240
9241
  class: "xg-volume-mute"
9241
9242
  }
9242
9243
  };
@@ -9375,7 +9376,7 @@ var eo = /* @__PURE__ */ function(o) {
9375
9376
  }
9376
9377
  }]), r;
9377
9378
  }(U);
9378
- function to() {
9379
+ function io() {
9379
9380
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
9380
9381
  <g clip-path="url(#clip0)">
9381
9382
  <path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
@@ -9389,7 +9390,7 @@ function to() {
9389
9390
  </svg>
9390
9391
  `, "image/svg+xml").firstChild;
9391
9392
  }
9392
- var io = /* @__PURE__ */ function(o) {
9393
+ var no = /* @__PURE__ */ function(o) {
9393
9394
  S(r, o);
9394
9395
  var a = x(r);
9395
9396
  function r(t) {
@@ -9452,7 +9453,7 @@ var io = /* @__PURE__ */ function(o) {
9452
9453
  key: "registerIcons",
9453
9454
  value: function() {
9454
9455
  return {
9455
- rotate: to
9456
+ rotate: io
9456
9457
  };
9457
9458
  }
9458
9459
  }, {
@@ -9485,14 +9486,14 @@ var io = /* @__PURE__ */ function(o) {
9485
9486
  }
9486
9487
  }]), r;
9487
9488
  }(je);
9488
- function no() {
9489
+ function ro() {
9489
9490
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9490
9491
  <path fill-rule="evenodd" clip-rule="evenodd"
9491
9492
  d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
9492
9493
  fill="white" />
9493
9494
  </svg>`, "image/svg+xml").firstChild;
9494
9495
  }
9495
- function ro() {
9496
+ function so() {
9496
9497
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
9497
9498
  <path fill-rule="evenodd" clip-rule="evenodd"
9498
9499
  d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
@@ -9506,7 +9507,7 @@ var Ye = {
9506
9507
  PIP: "picture-in-picture",
9507
9508
  INLINE: "inline",
9508
9509
  FULLSCREEN: "fullscreen"
9509
- }, so = /* @__PURE__ */ function(o) {
9510
+ }, ao = /* @__PURE__ */ function(o) {
9510
9511
  S(r, o);
9511
9512
  var a = x(r);
9512
9513
  function r() {
@@ -9537,7 +9538,7 @@ var Ye = {
9537
9538
  key: "afterCreate",
9538
9539
  value: function() {
9539
9540
  var e = this;
9540
- this.isPIPAvailable() && (L(I(r.prototype), "afterCreate", this).call(this), this.pMode = Ye.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(It, function() {
9541
+ this.isPIPAvailable() && (L(I(r.prototype), "afterCreate", this).call(this), this.pMode = Ye.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Pt, function() {
9541
9542
  e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
9542
9543
  }));
9543
9544
  }
@@ -9546,11 +9547,11 @@ var Ye = {
9546
9547
  value: function() {
9547
9548
  return {
9548
9549
  pipIcon: {
9549
- icon: no,
9550
+ icon: ro,
9550
9551
  class: "xg-get-pip"
9551
9552
  },
9552
9553
  pipIconExit: {
9553
- icon: ro,
9554
+ icon: so,
9554
9555
  class: "xg-exit-pip"
9555
9556
  }
9556
9557
  };
@@ -9569,9 +9570,9 @@ var Ye = {
9569
9570
  var n = i.paused;
9570
9571
  f.setTimeout(e, function() {
9571
9572
  !n && i.mediaPlay();
9572
- }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(ri, !1);
9573
+ }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(si, !1);
9573
9574
  }, this.enterPIPCallback = function(n) {
9574
- i.emit(ri, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
9575
+ i.emit(si, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
9575
9576
  }, this.onWebkitpresentationmodechanged = function(n) {
9576
9577
  var s = i.media.webkitPresentationMode;
9577
9578
  e.pMode === Ye.FULLSCREEN && s !== Ye.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Ye.PIP ? e.enterPIPCallback(n) : s === Ye.INLINE && e.leavePIPCallback(n);
@@ -9709,13 +9710,13 @@ var Ye = {
9709
9710
  }
9710
9711
  }]), r;
9711
9712
  }(je);
9712
- function ao() {
9713
+ function oo() {
9713
9714
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
9714
9715
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
9715
9716
  </svg>
9716
9717
  `, "image/svg+xml").firstChild;
9717
9718
  }
9718
- var oo = /* @__PURE__ */ function(o) {
9719
+ var lo = /* @__PURE__ */ function(o) {
9719
9720
  S(r, o);
9720
9721
  var a = x(r);
9721
9722
  function r(t) {
@@ -9734,7 +9735,7 @@ var oo = /* @__PURE__ */ function(o) {
9734
9735
  key: "registerIcons",
9735
9736
  value: function() {
9736
9737
  return {
9737
- playNext: ao
9738
+ playNext: oo
9738
9739
  };
9739
9740
  }
9740
9741
  }, {
@@ -9856,9 +9857,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
9856
9857
  };
9857
9858
  });
9858
9859
  })(Zn);
9859
- var lo = Zn.exports;
9860
- const uo = /* @__PURE__ */ li(lo);
9861
- function co() {
9860
+ var uo = Zn.exports;
9861
+ const co = /* @__PURE__ */ li(uo);
9862
+ function fo() {
9862
9863
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
9863
9864
  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
9864
9865
  <g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
@@ -9875,7 +9876,7 @@ function co() {
9875
9876
  </svg>
9876
9877
  `, "image/svg+xml").firstChild;
9877
9878
  }
9878
- var fo = /* @__PURE__ */ function(o) {
9879
+ var ho = /* @__PURE__ */ function(o) {
9879
9880
  S(r, o);
9880
9881
  var a = x(r);
9881
9882
  function r(t) {
@@ -9886,7 +9887,7 @@ var fo = /* @__PURE__ */ function(o) {
9886
9887
  var n = e.playerConfig.url, s = "";
9887
9888
  f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
9888
9889
  var l = e.getAbsoluteURL(s);
9889
- uo(l), e.isLock = !0, e.timer = window.setTimeout(function() {
9890
+ co(l), e.isLock = !0, e.timer = window.setTimeout(function() {
9890
9891
  e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
9891
9892
  }, 300);
9892
9893
  }
@@ -9905,7 +9906,7 @@ var fo = /* @__PURE__ */ function(o) {
9905
9906
  key: "registerIcons",
9906
9907
  value: function() {
9907
9908
  return {
9908
- download: co
9909
+ download: fo
9909
9910
  };
9910
9911
  }
9911
9912
  }, {
@@ -9947,7 +9948,7 @@ var fo = /* @__PURE__ */ function(o) {
9947
9948
  };
9948
9949
  }
9949
9950
  }]), r;
9950
- }(je), ho = /* @__PURE__ */ function(o) {
9951
+ }(je), go = /* @__PURE__ */ function(o) {
9951
9952
  S(r, o);
9952
9953
  var a = x(r);
9953
9954
  function r() {
@@ -10073,7 +10074,7 @@ var fo = /* @__PURE__ */ function(o) {
10073
10074
  };
10074
10075
  }
10075
10076
  }]), r;
10076
- }(je), go = /* @__PURE__ */ function() {
10077
+ }(je), po = /* @__PURE__ */ function() {
10077
10078
  function o(a) {
10078
10079
  T(this, o), this.config = a.config, this.parent = a.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), a.root.appendChild(this.root);
10079
10080
  var r = this.config.maxHeight;
@@ -10153,7 +10154,7 @@ var fo = /* @__PURE__ */ function(o) {
10153
10154
  CLICK: "click",
10154
10155
  HOVER: "hover"
10155
10156
  };
10156
- function po(o, a) {
10157
+ function vo(o, a) {
10157
10158
  return o === me.SIDE ? a === G.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10158
10159
  }
10159
10160
  var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
@@ -10267,7 +10268,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10267
10268
  var c = {
10268
10269
  config: {
10269
10270
  data: e || [],
10270
- className: po(s.listType, s.position),
10271
+ className: vo(s.listType, s.position),
10271
10272
  onItemClick: function(y, m) {
10272
10273
  n.onItemClick(y, m);
10273
10274
  },
@@ -10277,7 +10278,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10277
10278
  };
10278
10279
  if (this.config.isShowIcon) {
10279
10280
  var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === me.MIDDLE ? d - 50 : d;
10280
- g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new go(c), this.changeCurrentText(), this.show();
10281
+ g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new po(c), this.changeCurrentText(), this.show();
10281
10282
  }
10282
10283
  this._resizeList();
10283
10284
  }
@@ -10328,7 +10329,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10328
10329
  };
10329
10330
  }
10330
10331
  }]), r;
10331
- }(U), vo = /* @__PURE__ */ function(o) {
10332
+ }(U), mo = /* @__PURE__ */ function(o) {
10332
10333
  S(r, o);
10333
10334
  var a = x(r);
10334
10335
  function r(t) {
@@ -10429,7 +10430,7 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10429
10430
  });
10430
10431
  }
10431
10432
  }]), r;
10432
- }(St), mo = /* @__PURE__ */ function(o) {
10433
+ }(St), yo = /* @__PURE__ */ function(o) {
10433
10434
  S(r, o);
10434
10435
  var a = x(r);
10435
10436
  function r(t) {
@@ -10522,13 +10523,13 @@ var Be = R.device === "mobile", St = /* @__PURE__ */ function(o) {
10522
10523
  }
10523
10524
  }]), r;
10524
10525
  }(St);
10525
- function yo() {
10526
+ function _o() {
10526
10527
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
10527
10528
  <path fill="#fff" transform="scale(1.3, 1.3)" class='path_full' d="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
10528
10529
  </svg>
10529
10530
  `, "image/svg+xml").firstChild;
10530
10531
  }
10531
- function _o() {
10532
+ function Co() {
10532
10533
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
10533
10534
  <path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
10534
10535
  </svg>
@@ -10588,11 +10589,11 @@ var dn = /* @__PURE__ */ function(o) {
10588
10589
  value: function() {
10589
10590
  return {
10590
10591
  cssFullscreen: {
10591
- icon: yo,
10592
+ icon: _o,
10592
10593
  class: "xg-get-cssfull"
10593
10594
  },
10594
10595
  exitCssFullscreen: {
10595
- icon: _o,
10596
+ icon: Co,
10596
10597
  class: "xg-exit-cssfull"
10597
10598
  }
10598
10599
  };
@@ -10628,7 +10629,7 @@ var dn = /* @__PURE__ */ function(o) {
10628
10629
  };
10629
10630
  }
10630
10631
  }]), r;
10631
- }(je), Co = /* @__PURE__ */ function(o) {
10632
+ }(je), ko = /* @__PURE__ */ function(o) {
10632
10633
  S(r, o);
10633
10634
  var a = x(r);
10634
10635
  function r() {
@@ -10689,7 +10690,7 @@ var dn = /* @__PURE__ */ function(o) {
10689
10690
  return "error";
10690
10691
  }
10691
10692
  }]), r;
10692
- }(U), ko = /* @__PURE__ */ function(o) {
10693
+ }(U), bo = /* @__PURE__ */ function(o) {
10693
10694
  S(r, o);
10694
10695
  var a = x(r);
10695
10696
  function r() {
@@ -10919,7 +10920,7 @@ var pn = {
10919
10920
  return r.find('xg-spot[data-id="'.concat(a, '"]'));
10920
10921
  }
10921
10922
  };
10922
- function bo(o) {
10923
+ function wo(o) {
10923
10924
  var a = o.config, r = o.player;
10924
10925
  Object.keys(pn).map(function(e) {
10925
10926
  o[e] = pn[e].bind(o);
@@ -10943,7 +10944,7 @@ var Xe = {
10943
10944
  click: "onProgressClick",
10944
10945
  mouseover: "onProgressMouseOver",
10945
10946
  mouseenter: "onProgressMouseOver"
10946
- }, wo = /* @__PURE__ */ function(o) {
10947
+ }, To = /* @__PURE__ */ function(o) {
10947
10948
  S(r, o);
10948
10949
  var a = x(r);
10949
10950
  function r(t) {
@@ -10994,7 +10995,7 @@ var Xe = {
10994
10995
  n.seekTime && e.player.seek(n.seekTime);
10995
10996
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
10996
10997
  e.setTimeContent(f.format(i));
10997
- }), bo(this), this.on(Me, function() {
10998
+ }), wo(this), this.on(Me, function() {
10998
10999
  e.show();
10999
11000
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
11000
11001
  }
@@ -11218,7 +11219,7 @@ var Xe = {
11218
11219
  };
11219
11220
  }
11220
11221
  }]), r;
11221
- }(U), To = /* @__PURE__ */ function(o) {
11222
+ }(U), Eo = /* @__PURE__ */ function(o) {
11222
11223
  S(r, o);
11223
11224
  var a = x(r);
11224
11225
  function r(t) {
@@ -11353,10 +11354,10 @@ var Xe = {
11353
11354
  }
11354
11355
  }]), r;
11355
11356
  }(U);
11356
- function Yt(o) {
11357
+ function $t(o) {
11357
11358
  return o ? "background:".concat(o, ";") : "";
11358
11359
  }
11359
- var Eo = /* @__PURE__ */ function(o) {
11360
+ var So = /* @__PURE__ */ function(o) {
11360
11361
  S(r, o);
11361
11362
  var a = x(r);
11362
11363
  function r() {
@@ -11413,9 +11414,9 @@ var Eo = /* @__PURE__ */ function(o) {
11413
11414
  var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
11414
11415
  if (n) {
11415
11416
  var s = this.config, l = s.mode, u = s.height, c = {
11416
- cached: Yt(i.cachedColor),
11417
- played: Yt(i.playedColor),
11418
- progress: Yt(i.progressColor),
11417
+ cached: $t(i.cachedColor),
11418
+ played: $t(i.playedColor),
11419
+ progress: $t(i.progressColor),
11419
11420
  height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
11420
11421
  }, h = l === "show" ? "xg-mini-progress-show" : "";
11421
11422
  return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
@@ -11444,14 +11445,14 @@ var Eo = /* @__PURE__ */ function(o) {
11444
11445
  FRAME_RATE: "framerate",
11445
11446
  POSTER: "poster"
11446
11447
  };
11447
- function So() {
11448
+ function xo() {
11448
11449
  try {
11449
11450
  return parseInt(window.performance.now(), 10);
11450
11451
  } catch {
11451
11452
  return (/* @__PURE__ */ new Date()).getTime();
11452
11453
  }
11453
11454
  }
11454
- function xo() {
11455
+ function Io() {
11455
11456
  try {
11456
11457
  var o = document.createElement("canvas").getContext;
11457
11458
  return !!o;
@@ -11459,7 +11460,7 @@ function xo() {
11459
11460
  return !1;
11460
11461
  }
11461
11462
  }
11462
- var dt = null, Io = /* @__PURE__ */ function(o) {
11463
+ var dt = null, Po = /* @__PURE__ */ function(o) {
11463
11464
  S(r, o);
11464
11465
  var a = x(r);
11465
11466
  function r() {
@@ -11480,7 +11481,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11480
11481
  !t.player.paused && t._checkIfCanStart() && t.start(0, l);
11481
11482
  }
11482
11483
  }), _(v(t), "start", function(s, l) {
11483
- var u = t.player.video, c = So(), h = t.checkVideoIsSupport(u);
11484
+ var u = t.player.video, c = xo(), h = t.checkVideoIsSupport(u);
11484
11485
  !h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === qe.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
11485
11486
  }), _(v(t), "stop", function() {
11486
11487
  t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
@@ -11500,7 +11501,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11500
11501
  x: 0,
11501
11502
  y: 0,
11502
11503
  pi: 0
11503
- }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== qe.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(It, function() {
11504
+ }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== qe.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Pt, function() {
11504
11505
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
11505
11506
  }), s !== qe.POSTER && (s !== qe.FIRST_FRAME && (this.on(ze, function() {
11506
11507
  e.stop();
@@ -11653,7 +11654,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11653
11654
  }, {
11654
11655
  key: "isSupport",
11655
11656
  get: function() {
11656
- return typeof dt == "boolean" || (dt = xo()), dt;
11657
+ return typeof dt == "boolean" || (dt = Io()), dt;
11657
11658
  }
11658
11659
  }, {
11659
11660
  key: "supportCanvasFilter",
@@ -11661,7 +11662,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11661
11662
  return !(R.browser === "safari" || R.browser === "firefox");
11662
11663
  }
11663
11664
  }]), r;
11664
- }(U), Po = {
11665
+ }(U), Lo = {
11665
11666
  LANG: "zh-cn",
11666
11667
  TEXT: {
11667
11668
  ERROR_TYPES: {
@@ -11736,7 +11737,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11736
11737
  FORWARD: "快进中",
11737
11738
  LIVE_TIP: "直播"
11738
11739
  }
11739
- }, rt = "info", $t = Wn, Lo = /* @__PURE__ */ function(o) {
11740
+ }, rt = "info", Xt = Wn, Ao = /* @__PURE__ */ function(o) {
11740
11741
  S(r, o);
11741
11742
  var a = x(r);
11742
11743
  function r() {
@@ -11775,7 +11776,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11775
11776
  }, {
11776
11777
  key: "afterCreate",
11777
11778
  value: function() {
11778
- this.reset(), this.on(bt, this._recordUserActions), this.on($t.STATS_INFO, this._recordInfo), this.on($t.STATS_DOWNLOAD, this._downloadStats), this.on($t.STATS_RESET, this._onReset);
11779
+ this.reset(), this.on(bt, this._recordUserActions), this.on(Xt.STATS_INFO, this._recordInfo), this.on(Xt.STATS_DOWNLOAD, this._downloadStats), this.on(Xt.STATS_RESET, this._onReset);
11779
11780
  }
11780
11781
  }, {
11781
11782
  key: "destroy",
@@ -11923,7 +11924,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11923
11924
  var e = this, i = this.config.useGapJump;
11924
11925
  i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(ut, this.onGapJump), this.on(fe, function() {
11925
11926
  e.hasPlayed = !0;
11926
- }), this.on(xt, function() {
11927
+ }), this.on(It, function() {
11927
11928
  e.seekingEventReceived = !0;
11928
11929
  }));
11929
11930
  }
@@ -11970,7 +11971,7 @@ var dt = null, Io = /* @__PURE__ */ function(o) {
11970
11971
  }]), r;
11971
11972
  }(U);
11972
11973
  Qn.BROWSER_GAP_TOLERANCE = 1e-3;
11973
- var Ao = /* @__PURE__ */ function(o) {
11974
+ var Do = /* @__PURE__ */ function(o) {
11974
11975
  S(r, o);
11975
11976
  var a = x(r);
11976
11977
  function r() {
@@ -12016,7 +12017,7 @@ var Ao = /* @__PURE__ */ function(o) {
12016
12017
  };
12017
12018
  }
12018
12019
  }]), r;
12019
- }(U), Ze = "cdn", gt = ["cdn"], Do = /* @__PURE__ */ function(o) {
12020
+ }(U), Ze = "cdn", gt = ["cdn"], Ro = /* @__PURE__ */ function(o) {
12020
12021
  S(r, o);
12021
12022
  var a = x(r);
12022
12023
  function r() {
@@ -12075,13 +12076,13 @@ var Ao = /* @__PURE__ */ function(o) {
12075
12076
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ze, l = t.getSpeed(s), u = v(t), c = u.player;
12076
12077
  if (c)
12077
12078
  if (s === Ze)
12078
- (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(ii, {
12079
+ (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(ni, {
12079
12080
  speed: l,
12080
12081
  realTimeSpeed: c.realTimeSpeed
12081
12082
  }));
12082
12083
  else {
12083
12084
  var h = t.getSpeedName("avg", s);
12084
- (!c[h] || l !== c[h]) && (c[h] = l, c.emit(ii, {
12085
+ (!c[h] || l !== c[h]) && (c[h] = l, c.emit(ni, {
12085
12086
  speed: l,
12086
12087
  realTimeSpeed: c.realTimeSpeed
12087
12088
  }));
@@ -12142,7 +12143,7 @@ var Ao = /* @__PURE__ */ function(o) {
12142
12143
  };
12143
12144
  }
12144
12145
  }]), r;
12145
- }(U), Ro = /* @__PURE__ */ function(o) {
12146
+ }(U), Oo = /* @__PURE__ */ function(o) {
12146
12147
  S(r, o);
12147
12148
  var a = x(r);
12148
12149
  function r() {
@@ -12252,24 +12253,24 @@ var Ao = /* @__PURE__ */ function(o) {
12252
12253
  }
12253
12254
  }]), r;
12254
12255
  }(U);
12255
- Qe.use(Po);
12256
- var Oo = /* @__PURE__ */ E(function o(a, r) {
12256
+ Qe.use(Lo);
12257
+ var Mo = /* @__PURE__ */ E(function o(a, r) {
12257
12258
  var t, e, i;
12258
12259
  T(this, o);
12259
- var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [qa, za, Eo, wo, Xa], u = [].concat(l, [ja, $a, io, oo, vo, mo, fo, ho, eo, so]), c = [ba, wa, Ea, Ha, Sa, Co, ko, To, La];
12260
- this.plugins = [Lo, Ca].concat(de(u), c, [Qn, Ao]);
12260
+ var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Za, ja, So, To, qa], u = [].concat(l, [Wa, Xa, no, lo, mo, yo, ho, go, to, ao]), c = [wa, Ta, Sa, Ua, xa, ko, bo, Eo, Aa];
12261
+ this.plugins = [Ao, ka].concat(de(u), c, [Qn, Do]);
12261
12262
  var h = n ? "mobile" : R.device;
12262
12263
  switch (h) {
12263
12264
  case "pc":
12264
- (t = this.plugins).push.apply(t, [fn, Gt, dn, Do, Ro]);
12265
+ (t = this.plugins).push.apply(t, [fn, Kt, dn, Ro, Oo]);
12265
12266
  break;
12266
12267
  case "mobile":
12267
- (e = this.plugins).push.apply(e, [Na]);
12268
+ (e = this.plugins).push.apply(e, [Fa]);
12268
12269
  break;
12269
12270
  default:
12270
- (i = this.plugins).push.apply(i, [fn, Gt, dn]);
12271
+ (i = this.plugins).push.apply(i, [fn, Kt, dn]);
12271
12272
  }
12272
- (R.os.isIpad || h === "pc") && this.plugins.push(Io), R.os.isIpad && this.plugins.push(Gt), this.ignores = [], this.i18n = [];
12273
+ (R.os.isIpad || h === "pc") && this.plugins.push(Po), R.os.isIpad && this.plugins.push(Kt), this.ignores = [], this.i18n = [];
12273
12274
  }), ge = /* @__PURE__ */ function(o) {
12274
12275
  S(r, o);
12275
12276
  var a = x(r);
@@ -12277,18 +12278,18 @@ var Oo = /* @__PURE__ */ E(function o(a, r) {
12277
12278
  return T(this, r), a.apply(this, arguments);
12278
12279
  }
12279
12280
  return E(r);
12280
- }(At);
12281
- _(ge, "defaultPreset", Oo);
12281
+ }(Dt);
12282
+ _(ge, "defaultPreset", Mo);
12282
12283
  _(ge, "Util", f);
12283
12284
  _(ge, "Sniffer", R);
12284
12285
  _(ge, "Errors", mt);
12285
- _(ge, "Events", $s);
12286
+ _(ge, "Events", Xs);
12286
12287
  _(ge, "Plugin", U);
12287
12288
  _(ge, "BasePlugin", Oe);
12288
12289
  _(ge, "I18N", Qe);
12289
12290
  _(ge, "STATE_CLASS", C);
12290
12291
  _(ge, "InstManager", Xn);
12291
- const Mo = ["id"], No = /* @__PURE__ */ Q({
12292
+ const No = ["id"], Fo = /* @__PURE__ */ Q({
12292
12293
  name: "ElImageViewer",
12293
12294
  __name: "Player",
12294
12295
  props: /* @__PURE__ */ vt({
@@ -12317,7 +12318,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12317
12318
  }, ["update:modelValue"]),
12318
12319
  setup(o, { emit: a }) {
12319
12320
  let r = null;
12320
- const t = o, { cLoadUrl: e } = Fr(t), i = J(() => Jt(e.value, t.url)), n = {
12321
+ const t = o, { cLoadUrl: e } = Fr(t), i = J(() => Qt(e.value, t.url)), n = {
12321
12322
  width: "100%",
12322
12323
  height: "100%",
12323
12324
  // 是否自动播放
@@ -12338,12 +12339,12 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12338
12339
  }, s = J(() => ({
12339
12340
  ...n,
12340
12341
  ...t.config
12341
- })), l = a, u = si(o, "modelValue"), c = yn(), h = _n("image-viewer");
12342
+ })), l = a, u = ai(o, "modelValue"), c = yn(), h = _n("image-viewer");
12342
12343
  function d() {
12343
12344
  l("close"), u.value = !1, r.destroy();
12344
12345
  }
12345
12346
  return at(() => u.value, (g) => {
12346
- g && ai(() => {
12347
+ g && oi(() => {
12347
12348
  r = new ge({
12348
12349
  id: c,
12349
12350
  url: i.value,
@@ -12386,7 +12387,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12386
12387
  class: Y(P(h).e("canvas"))
12387
12388
  },
12388
12389
  [
12389
- j("div", { id: P(c) }, null, 8, Mo),
12390
+ j("div", { id: P(c) }, null, 8, No),
12390
12391
  ae(" CLOSE "),
12391
12392
  j(
12392
12393
  "span",
@@ -12423,7 +12424,7 @@ const Mo = ["id"], No = /* @__PURE__ */ Q({
12423
12424
  };
12424
12425
  }
12425
12426
  });
12426
- const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(Fo), Ho = /* @__PURE__ */ Q({
12427
+ const Bo = /* @__PURE__ */ xt(Fo, [["__scopeId", "data-v-b301aa7d"]]), Ho = et(Bo), Uo = /* @__PURE__ */ Q({
12427
12428
  __name: "IkPreviewFileDialog",
12428
12429
  props: /* @__PURE__ */ vt({
12429
12430
  file: {
@@ -12460,7 +12461,7 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12460
12461
  }),
12461
12462
  emits: ["update:show"],
12462
12463
  setup(o) {
12463
- const a = o, r = si(o, "show"), t = J(() => ({
12464
+ const a = o, r = ai(o, "show"), t = J(() => ({
12464
12465
  name: "name",
12465
12466
  url: "url",
12466
12467
  suffix: "suffix",
@@ -12477,7 +12478,7 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12477
12478
  if (i.value = {
12478
12479
  ...u,
12479
12480
  name: u[t.value.name],
12480
- url: Jt(a.loadUrl, w)
12481
+ url: Qt(a.loadUrl, w)
12481
12482
  }, u && Li(u, t.value) === "image") {
12482
12483
  n.image = !0;
12483
12484
  return;
@@ -12499,7 +12500,7 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12499
12500
  document: {
12500
12501
  key: yn(),
12501
12502
  title: B,
12502
- url: Jt(a.loadUrl, w),
12503
+ url: Qt(a.loadUrl, w),
12503
12504
  fileType: b,
12504
12505
  ...((m = a.onlyOfficeConfig) == null ? void 0 : m.document) || {}
12505
12506
  },
@@ -12513,7 +12514,7 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12513
12514
  }
12514
12515
  };
12515
12516
  at([r, a.file], ([u, c]) => {
12516
- u && ai(() => {
12517
+ u && oi(() => {
12517
12518
  s(a.file);
12518
12519
  });
12519
12520
  });
@@ -12523,10 +12524,10 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12523
12524
  return (u, c) => {
12524
12525
  var h, d, g;
12525
12526
  return r.value ? (N(), W(
12526
- Zt,
12527
+ Jt,
12527
12528
  { key: 0 },
12528
12529
  [
12529
- (h = i.value) != null && h.url && n.image ? (N(), De(P(ks), {
12530
+ (h = i.value) != null && h.url && n.image ? (N(), De(P(bs), {
12530
12531
  key: 0,
12531
12532
  onClose: c[0] || (c[0] = (p) => l()),
12532
12533
  ref: "previewImgRef",
@@ -12534,9 +12535,9 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12534
12535
  teleported: "",
12535
12536
  "z-index": 9999
12536
12537
  }, null, 8, ["url-list"])) : ae("v-if", !0),
12537
- ae(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
12538
+ ae(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
12538
12539
  ae(" 文档类 "),
12539
- K(P(Bo), {
12540
+ K(P(Ho), {
12540
12541
  modelValue: n.video,
12541
12542
  "onUpdate:modelValue": c[1] || (c[1] = (p) => n.video = p),
12542
12543
  url: (g = i.value) == null ? void 0 : g.url
@@ -12559,7 +12560,7 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12559
12560
  default: Z(() => {
12560
12561
  var p;
12561
12562
  return [
12562
- K(P(ss), {
12563
+ K(P(as), {
12563
12564
  "config-options": e.value,
12564
12565
  "document-server-url": ((p = o.onlyOfficeConfig) == null ? void 0 : p.serverUrl) || o.onlyofficeServer
12565
12566
  }, null, 8, ["config-options", "document-server-url"])
@@ -12575,8 +12576,8 @@ const Fo = /* @__PURE__ */ oi(No, [["__scopeId", "data-v-b301aa7d"]]), Bo = et(F
12575
12576
  };
12576
12577
  }
12577
12578
  });
12578
- const jo = et(Ho);
12579
+ const Wo = et(Uo);
12579
12580
  export {
12580
- jo as IkPreviewFileDialog,
12581
- jo as default
12581
+ Wo as IkPreviewFileDialog,
12582
+ Wo as default
12582
12583
  };