iking-web-ui-pro 0.2.22 → 0.2.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/IKExpandCollapse/ik.index.es.js +77 -82
  2. package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
  3. package/dist/IKExpandCollapse/style.css +1 -1
  4. package/dist/IKPreviewFile/ik.index.es.js +727 -745
  5. package/dist/IKPreviewFile/ik.index.umd.js +46 -46
  6. package/dist/IKPreviewFile/style.css +1 -1
  7. package/dist/IKSearch/ik.index.es.js +41 -33
  8. package/dist/IKSearch/ik.index.umd.js +1 -1
  9. package/dist/IKSearch/style.css +1 -1
  10. package/dist/IKVerticalStepBar/ik.index.es.js +125 -130
  11. package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
  12. package/dist/IKVerticalStepBar/style.css +1 -1
  13. package/dist/IkApprovalProcess/ik.index.es.js +167 -159
  14. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  15. package/dist/IkApprovalProcess/style.css +1 -1
  16. package/dist/IkApprovalProcessDetail/ik.index.es.js +659 -677
  17. package/dist/IkApprovalProcessDetail/ik.index.umd.js +47 -47
  18. package/dist/IkApprovalProcessDetail/style.css +1 -1
  19. package/dist/IkBaseDialog/ik.index.es.js +112 -130
  20. package/dist/IkBaseDialog/ik.index.umd.js +1 -1
  21. package/dist/IkBaseDialog/style.css +1 -1
  22. package/dist/IkBtnSetting/ik.index.es.js +237 -242
  23. package/dist/IkBtnSetting/ik.index.umd.js +1 -1
  24. package/dist/IkBtnSetting/style.css +1 -1
  25. package/dist/IkCalendar/ik.index.es.js +73 -65
  26. package/dist/IkCalendar/ik.index.umd.js +1 -1
  27. package/dist/IkCalendar/style.css +1 -1
  28. package/dist/IkCollapseCard/ik.index.es.js +78 -83
  29. package/dist/IkCollapseCard/ik.index.umd.js +1 -1
  30. package/dist/IkCollapseCard/style.css +1 -1
  31. package/dist/IkDescription/ik.index.es.js +902 -920
  32. package/dist/IkDescription/ik.index.umd.js +45 -45
  33. package/dist/IkDescription/style.css +1 -1
  34. package/dist/IkDetailPreviewFiles/ik.index.es.js +613 -631
  35. package/dist/IkDetailPreviewFiles/ik.index.umd.js +45 -45
  36. package/dist/IkDetailPreviewFiles/style.css +1 -1
  37. package/dist/IkIconPicker/ik.index.es.js +135 -140
  38. package/dist/IkIconPicker/ik.index.umd.js +1 -1
  39. package/dist/IkIconPicker/style.css +1 -1
  40. package/dist/IkMonacoEditor/ik.index.es.js +378 -383
  41. package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
  42. package/dist/IkMonacoEditor/style.css +1 -1
  43. package/dist/IkPageFull/ik.index.es.js +1305 -1302
  44. package/dist/IkPageFull/ik.index.umd.js +2 -2
  45. package/dist/IkPageFull/style.css +1 -1
  46. package/dist/IkPickerUser/ik.index.es.js +41 -33
  47. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  48. package/dist/IkPickerUser/style.css +1 -1
  49. package/dist/IkPreviewFileDialog/ik.index.es.js +687 -705
  50. package/dist/IkPreviewFileDialog/ik.index.umd.js +47 -47
  51. package/dist/IkPreviewFileDialog/style.css +1 -1
  52. package/dist/IkSchedule/ik.index.es.js +2955 -2960
  53. package/dist/IkSchedule/ik.index.umd.js +1 -1
  54. package/dist/IkSchedule/style.css +1 -1
  55. package/dist/IkSideText/ik.index.es.js +106 -111
  56. package/dist/IkSideText/ik.index.umd.js +1 -1
  57. package/dist/IkSideText/style.css +1 -1
  58. package/dist/IkSvgIcon/ik.index.es.js +69 -74
  59. package/dist/IkSvgIcon/ik.index.umd.js +1 -1
  60. package/dist/IkSvgIcon/style.css +1 -1
  61. package/dist/IkUploadFile/ik.index.es.js +761 -779
  62. package/dist/IkUploadFile/ik.index.umd.js +45 -45
  63. package/dist/IkUploadFile/style.css +1 -1
  64. package/dist/IkUploadImage/ik.index.es.js +218 -223
  65. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  66. package/dist/IkUploadImage/style.css +1 -1
  67. package/dist/index.es.js +7089 -7099
  68. package/dist/index.umd.js +89 -89
  69. package/dist/src/components/IkSvgIcon/index.d.ts +2 -6
  70. package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +2 -6
  71. package/dist/style.css +1 -1
  72. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as pe, openBlock as U, createElementBlock as W, createElementVNode as le, inject as ze, computed as ie, resolveComponent as Ye, withModifiers as Ct, normalizeClass as ae, normalizeStyle as Ce, createCommentVNode as fe, createBlock as Ae, withCtx as he, createTextVNode as Mt, toDisplayString as Ft, createVNode as ke, unref as K, mergeModels as it, useModel as Gt, ref as nt, h as yn, mergeProps as _n, createSlots as Cn, renderSlot as Ge, watch as Bi, nextTick as Hi, Teleport as kn, Transition as bn, reactive as Tn, Fragment as wn } from "vue";
2
- import { ikColor as En, buildUUID as Ui } from "iking-utils-pro";
3
- import { useNamespace as Sn } from "element-plus";
1
+ import { defineComponent as pe, openBlock as U, createElementBlock as $, createElementVNode as le, inject as ze, computed as ie, resolveComponent as Ye, normalizeClass as ae, normalizeStyle as Ce, createCommentVNode as fe, createBlock as Ae, withCtx as he, createTextVNode as Ot, toDisplayString as Mt, unref as X, mergeModels as it, useModel as zt, ref as nt, h as mn, mergeProps as yn, createSlots as _n, renderSlot as Ge, createVNode as Pe, watch as Fi, nextTick as Ni, Teleport as Cn, Transition as kn, reactive as bn, Fragment as Tn } from "vue";
2
+ import { ikColor as wn, buildUUID as Bi } from "iking-utils-pro";
3
+ import { useNamespace as En } from "element-plus";
4
4
  const Xe = (a, o) => {
5
5
  if (a.install = (r) => {
6
6
  for (const t of [a, ...Object.values(o ?? {})])
@@ -9,9 +9,9 @@ const Xe = (a, o) => {
9
9
  for (const [r, t] of Object.entries(o))
10
10
  a[r] = t;
11
11
  return a;
12
- }, Nt = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", oi = (a, o) => {
12
+ }, Ft = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", ri = (a, o) => {
13
13
  var i, n, s, l;
14
- const r = (i = a == null ? void 0 : a.response) != null && i.data ? ai((s = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = a.raw) == null ? void 0 : l.type) || ai(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
14
+ const r = (i = a == null ? void 0 : a.response) != null && i.data ? si((s = (n = a == null ? void 0 : a.response) == null ? void 0 : n.data) == null ? void 0 : s.suffix) : ((l = a.raw) == null ? void 0 : l.type) || si(a[o.suffix]), t = r == null ? void 0 : r.toLowerCase(), e = {
15
15
  sheet: "excel",
16
16
  excel: "excel",
17
17
  zip: "zip",
@@ -31,7 +31,7 @@ const Xe = (a, o) => {
31
31
  if (typeof t == "string" && (t.includes(u) || t === u))
32
32
  return e[u];
33
33
  return "unknown";
34
- }, xn = {
34
+ }, Sn = {
35
35
  ".doc": "word",
36
36
  ".docx": "word",
37
37
  ".docxf": "word",
@@ -116,19 +116,19 @@ const Xe = (a, o) => {
116
116
  ".vob": "video",
117
117
  ".txt": "txt",
118
118
  ".pdf": "pdf"
119
- }, ai = (a) => {
119
+ }, si = (a) => {
120
120
  const o = a == null ? void 0 : a.toLocaleLowerCase(), r = o != null && o.startsWith(".") ? o : `.${o}`;
121
- return r && xn[r] || "unknow";
122
- }, Pn = (a) => {
121
+ return r && Sn[r] || "unknow";
122
+ }, xn = (a) => {
123
123
  let o = "", r = ["doc", "docx"], t = ["xls", "xlsx"], e = ["ppt", "pptx"], i = ["pdf"];
124
124
  return r.includes(a) && (o = "word"), t.includes(a) && (o = "cell"), e.includes(a) && (o = "slide"), i.includes(a) && (o = "text-pdf"), o;
125
125
  };
126
126
  /*! Element Plus Icons Vue v2.3.1 */
127
- var In = /* @__PURE__ */ pe({
127
+ var Pn = /* @__PURE__ */ pe({
128
128
  name: "Close",
129
129
  __name: "close",
130
130
  setup(a) {
131
- return (o, r) => (U(), W("svg", {
131
+ return (o, r) => (U(), $("svg", {
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  viewBox: "0 0 1024 1024"
134
134
  }, [
@@ -138,13 +138,13 @@ var In = /* @__PURE__ */ pe({
138
138
  })
139
139
  ]));
140
140
  }
141
- }), An = In;
141
+ }), In = Pn;
142
142
  const gt = (a, o) => {
143
143
  const r = a.__vccOpts || a;
144
144
  for (const [t, e] of o)
145
145
  r[t] = e;
146
146
  return r;
147
- }, Ln = (a) => {
147
+ }, An = (a) => {
148
148
  const o = ze("loadUrl"), r = ie(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = ze("uploadUrl"), e = ie(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ze("token"), n = ie(() => a.token || (i == null ? void 0 : i.value)), s = ze("onlyofficeConfig"), l = ie(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = ze("userInfo"), c = ie(() => a.userInfo || (u == null ? void 0 : u.value));
149
149
  return {
150
150
  cLoadUrl: r,
@@ -153,18 +153,18 @@ const gt = (a, o) => {
153
153
  cOnlyofficeConfig: l,
154
154
  cUserInfo: c
155
155
  };
156
- }, Dn = Ln, Rn = {
156
+ }, Ln = An, Dn = {
157
157
  key: 0,
158
158
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
159
- }, On = {
159
+ }, Rn = {
160
160
  key: 1,
161
161
  class: "h-[1em] w-[1em]",
162
162
  "aria-hidden": "true"
163
- }, Mn = ["xlink:href"], Fn = ["src"], Nn = {
163
+ }, On = ["xlink:href"], Mn = ["src"], Fn = {
164
164
  key: 1,
165
165
  class: "h-[1em] w-[1em]",
166
166
  "aria-hidden": "true"
167
- }, Bn = ["xlink:href"], Hn = ["src"], Un = /* @__PURE__ */ pe({
167
+ }, Nn = ["xlink:href"], Bn = ["src"], Hn = /* @__PURE__ */ pe({
168
168
  name: "IkSvgIcon",
169
169
  __name: "index",
170
170
  props: {
@@ -190,89 +190,86 @@ const gt = (a, o) => {
190
190
  warning: { type: Boolean },
191
191
  width: {}
192
192
  },
193
- emits: ["click"],
194
- setup(a, { emit: o }) {
195
- const r = a, t = ie(() => r), e = ie(() => {
196
- const { name: l } = t.value;
197
- return /^http?:\/\//.test(l) ? "img" : /i-[^:]+:[^:]+/.test(l) ? "unocss" : l != null && l.startsWith("iksig") ? "iksig" : l != null && l.includes(":") ? "iconify" : l != null && l.startsWith("iksvg") ? "svg" : "i";
198
- }), i = ie(() => {
199
- const l = [];
200
- if (t.value.flip)
201
- switch (t.value.flip) {
193
+ setup(a) {
194
+ const o = a, r = ie(() => o), t = ie(() => {
195
+ const { name: i } = r.value;
196
+ return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
197
+ }), e = ie(() => {
198
+ const i = [];
199
+ if (r.value.flip)
200
+ switch (r.value.flip) {
202
201
  case "horizontal":
203
- l.push("rotateY(180deg)");
202
+ i.push("rotateY(180deg)");
204
203
  break;
205
204
  case "vertical":
206
- l.push("rotateX(180deg)");
205
+ i.push("rotateX(180deg)");
207
206
  break;
208
207
  case "both":
209
- l.push("rotateX(180deg)"), l.push("rotateY(180deg)");
208
+ i.push("rotateX(180deg)"), i.push("rotateY(180deg)");
210
209
  break;
211
210
  }
212
- t.value.rotate && l.push(`rotate(${t.value.rotate % 360}deg)`);
213
- const u = {
214
- ...t.value.color && { color: t.value.color },
215
- ...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
216
- ...l.length && { transform: l.join(" ") },
217
- padding: t.value.showBg || t.value.bg ? t.value.padding : 0,
218
- ...t.value.color && e.value !== "iksig" ? {
219
- "--ik-color-icon-dark": t.value.color,
220
- "--ik-color-icon-light": t.value.colorLight || En.setOpacity(t.value.color, t.value.opacity)
211
+ r.value.rotate && i.push(`rotate(${r.value.rotate % 360}deg)`);
212
+ const n = {
213
+ pointerEvents: r.value.disabled ? "none" : "auto",
214
+ ...r.value.color && { color: r.value.color },
215
+ ...r.value.size && { fontSize: typeof r.value.size == "number" ? `${r.value.size}px` : r.value.size },
216
+ ...i.length && { transform: i.join(" ") },
217
+ padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
218
+ ...r.value.color && t.value !== "iksig" ? {
219
+ "--ik-color-icon-dark": r.value.color,
220
+ "--ik-color-icon-light": r.value.colorLight || wn.setOpacity(r.value.color, r.value.opacity)
221
221
  } : {}
222
222
  };
223
- return t.value.width && (u.width = u.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), u;
224
- }), n = o, s = (l) => {
225
- t.value.disabled || n("click", l);
226
- };
227
- return (l, u) => {
228
- const c = Ye("el-tooltip"), h = Ye("el-button");
229
- return t.value.tableIconType === "icon" || !t.value.tableIconType ? (U(), W("span", Rn, [
230
- t.value.notip || !t.value.title ? (U(), W(
223
+ return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
224
+ });
225
+ return (i, n) => {
226
+ const s = Ye("el-tooltip"), l = Ye("el-button");
227
+ return r.value.tableIconType === "icon" || !r.value.tableIconType ? (U(), $("span", Dn, [
228
+ r.value.notip || !r.value.title ? (U(), $(
231
229
  "i",
232
230
  {
233
231
  key: 0,
234
- onClick: Ct(s, ["stop"]),
235
232
  class: ae(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
236
- [l.name]: e.value === "unocss",
237
- "show-bg": t.value.showBg || t.value.bg,
238
- default: t.value.size === "default",
239
- small: t.value.size === "small",
240
- big: t.value.size === "big",
241
- warning: t.value.warning || t.value.type === "warning",
242
- primary: t.value.primary || t.value.type === "primary",
243
- success: l.success || t.value.type === "success",
244
- error: t.value.error || t.value.type === "error",
245
- active: t.value.active,
246
- disabled: t.value.disabled
233
+ [i.name]: t.value === "unocss",
234
+ "show-bg": r.value.showBg || r.value.bg,
235
+ default: r.value.size === "default",
236
+ small: r.value.size === "small",
237
+ big: r.value.size === "big",
238
+ warning: r.value.warning || r.value.type === "warning",
239
+ primary: r.value.primary || r.value.type === "primary",
240
+ success: i.success || r.value.type === "success",
241
+ error: r.value.error || r.value.type === "error",
242
+ active: r.value.active,
243
+ disabled: r.value.disabled
247
244
  }]),
248
- style: Ce(i.value)
245
+ style: Ce(e.value)
249
246
  },
250
247
  [
251
248
  fe(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
252
- e.value === "iksig" ? (U(), W(
249
+ t.value === "iksig" ? (U(), $(
253
250
  "i",
254
251
  {
255
252
  key: 0,
256
- class: ae(`iksig ${t.value.name}`),
257
- style: Ce(i.value)
253
+ class: ae(`iksig ${r.value.name}`),
254
+ style: Ce(e.value)
258
255
  },
259
256
  null,
260
257
  6
261
258
  /* CLASS, STYLE */
262
- )) : e.value === "svg" ? (U(), W("svg", On, [
259
+ )) : t.value === "svg" ? (U(), $("svg", Rn, [
263
260
  le("use", {
264
- "xlink:href": `#${t.value.name}`
265
- }, null, 8, Mn)
266
- ])) : e.value === "img" ? (U(), W("img", {
261
+ "xlink:href": `#${r.value.name}`
262
+ }, null, 8, On)
263
+ ])) : t.value === "img" ? (U(), $("img", {
267
264
  key: 2,
268
- src: t.value.name,
265
+ src: r.value.name,
269
266
  class: "h-[1em] w-[1em]"
270
- }, null, 8, Fn)) : (U(), W(
267
+ }, null, 8, Mn)) : (U(), $(
271
268
  "i",
272
269
  {
273
270
  key: 3,
274
- class: ae(t.value.name),
275
- style: Ce(i.value)
271
+ class: ae(r.value.name),
272
+ style: Ce(e.value)
276
273
  },
277
274
  null,
278
275
  6
@@ -281,9 +278,9 @@ const gt = (a, o) => {
281
278
  ],
282
279
  6
283
280
  /* CLASS, STYLE */
284
- )) : (U(), Ae(c, {
281
+ )) : (U(), Ae(s, {
285
282
  key: 1,
286
- content: t.value.title,
283
+ content: r.value.title,
287
284
  placement: "top"
288
285
  }, {
289
286
  default: he(() => [
@@ -291,45 +288,44 @@ const gt = (a, o) => {
291
288
  "i",
292
289
  {
293
290
  class: ae(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
294
- [l.name]: e.value === "unocss",
295
- "show-bg": t.value.showBg || t.value.bg,
296
- default: t.value.size === "default",
297
- small: t.value.size === "small",
298
- big: t.value.size === "big",
299
- warning: t.value.warning || t.value.type === "warning",
300
- primary: l.primary || t.value.type === "primary",
301
- success: l.success || t.value.type === "success",
302
- error: t.value.error || t.value.type === "error",
303
- active: t.value.active
291
+ [i.name]: t.value === "unocss",
292
+ "show-bg": r.value.showBg || r.value.bg,
293
+ default: r.value.size === "default",
294
+ small: r.value.size === "small",
295
+ big: r.value.size === "big",
296
+ warning: r.value.warning || r.value.type === "warning",
297
+ primary: i.primary || r.value.type === "primary",
298
+ success: i.success || r.value.type === "success",
299
+ error: r.value.error || r.value.type === "error",
300
+ active: r.value.active
304
301
  }]),
305
- onClick: Ct(s, ["stop"]),
306
- style: Ce(i.value)
302
+ style: Ce(e.value)
307
303
  },
308
304
  [
309
- e.value === "iksig" ? (U(), W(
305
+ t.value === "iksig" ? (U(), $(
310
306
  "i",
311
307
  {
312
308
  key: 0,
313
- class: ae(`iksig ${t.value.name}`),
314
- style: Ce(i.value)
309
+ class: ae(`iksig ${r.value.name}`),
310
+ style: Ce(e.value)
315
311
  },
316
312
  null,
317
313
  6
318
314
  /* CLASS, STYLE */
319
- )) : e.value === "svg" ? (U(), W("svg", Nn, [
315
+ )) : t.value === "svg" ? (U(), $("svg", Fn, [
320
316
  le("use", {
321
- "xlink:href": `#${t.value.name}`
322
- }, null, 8, Bn)
323
- ])) : e.value === "img" ? (U(), W("img", {
317
+ "xlink:href": `#${r.value.name}`
318
+ }, null, 8, Nn)
319
+ ])) : t.value === "img" ? (U(), $("img", {
324
320
  key: 2,
325
- src: t.value.name,
321
+ src: r.value.name,
326
322
  class: "h-[1em] w-[1em]"
327
- }, null, 8, Hn)) : (U(), W(
323
+ }, null, 8, Bn)) : (U(), $(
328
324
  "i",
329
325
  {
330
326
  key: 3,
331
- class: ae(t.value.name),
332
- style: Ce(i.value)
327
+ class: ae(r.value.name),
328
+ style: Ce(e.value)
333
329
  },
334
330
  null,
335
331
  6
@@ -343,14 +339,13 @@ const gt = (a, o) => {
343
339
  _: 1
344
340
  /* STABLE */
345
341
  }, 8, ["content"]))
346
- ])) : (U(), Ae(h, {
342
+ ])) : (U(), Ae(l, {
347
343
  key: 1,
348
- type: ["warning", "error"].includes(t.value.type) ? "danger" : "",
349
- onClick: Ct(s, ["stop"])
344
+ type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
350
345
  }, {
351
346
  default: he(() => [
352
- Mt(
353
- Ft(t.value.title),
347
+ Ot(
348
+ Mt(r.value.title),
354
349
  1
355
350
  /* TEXT */
356
351
  )
@@ -361,10 +356,7 @@ const gt = (a, o) => {
361
356
  };
362
357
  }
363
358
  });
364
- const Vn = /* @__PURE__ */ gt(Un, [["__scopeId", "data-v-4a1004b9"]]), Bt = Xe(Vn), jn = {
365
- key: 0,
366
- class: "exit-main-page-maximize"
367
- }, zn = /* @__PURE__ */ pe({
359
+ const Un = /* @__PURE__ */ gt(Hn, [["__scopeId", "data-v-52806adf"]]), Hi = Xe(Un), Vn = /* @__PURE__ */ pe({
368
360
  __name: "CloseIcon",
369
361
  props: {
370
362
  showBg: {
@@ -377,25 +369,15 @@ const Vn = /* @__PURE__ */ gt(Un, [["__scopeId", "data-v-4a1004b9"]]), Bt = Xe(V
377
369
  }
378
370
  },
379
371
  setup(a) {
380
- return (o, r) => (U(), W("div", null, [
381
- a.showBg && a.fullscreen ? (U(), W("div", jn, [
382
- ke(K(Bt), {
383
- name: "iksvg_guanbidanchuang",
384
- title: "关闭",
385
- size: 20,
386
- error: ""
387
- })
388
- ])) : (U(), Ae(K(Bt), {
389
- key: 1,
390
- error: "",
391
- name: "iksvg_guanbidanchuang",
392
- title: "关闭",
393
- size: 20
394
- }))
395
- ]));
372
+ return (o, r) => (U(), Ae(X(Hi), {
373
+ error: "",
374
+ name: "iksvg_guanbidanchuang",
375
+ title: "关闭",
376
+ size: 20
377
+ }));
396
378
  }
397
379
  });
398
- const Wn = /* @__PURE__ */ gt(zn, [["__scopeId", "data-v-79f49df8"]]), Gn = { class: "base-header" }, Kn = /* @__PURE__ */ pe({
380
+ const jn = /* @__PURE__ */ gt(Vn, [["__scopeId", "data-v-e27fb022"]]), zn = { class: "base-header" }, Wn = /* @__PURE__ */ pe({
399
381
  __name: "IkBaseDialog",
400
382
  props: /* @__PURE__ */ it({
401
383
  title: { default: "" },
@@ -416,11 +398,11 @@ const Wn = /* @__PURE__ */ gt(zn, [["__scopeId", "data-v-79f49df8"]]), Gn = { cl
416
398
  }),
417
399
  emits: ["update:modelValue"],
418
400
  setup(a) {
419
- const o = a, r = Gt(a, "modelValue"), t = nt(o.fullscreen), e = () => {
401
+ const o = a, r = zt(a, "modelValue"), t = nt(o.fullscreen), e = () => {
420
402
  t.value = !t.value;
421
403
  }, i = pe({
422
404
  setup() {
423
- return () => yn(Wn, {
405
+ return () => mn(jn, {
424
406
  showBg: o.showCloseBg,
425
407
  fullscreen: o.fullscreen
426
408
  });
@@ -428,35 +410,35 @@ const Wn = /* @__PURE__ */ gt(zn, [["__scopeId", "data-v-79f49df8"]]), Gn = { cl
428
410
  });
429
411
  return (n, s) => {
430
412
  const l = Ye("el-dialog");
431
- return U(), Ae(l, _n({
413
+ return U(), Ae(l, yn({
432
414
  modelValue: r.value,
433
415
  "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
434
416
  }, n.$attrs, {
435
- "close-icon": K(i),
417
+ "close-icon": X(i),
436
418
  class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
437
419
  fullscreen: t.value,
438
420
  "modal-class": "baseDialog"
439
- }), Cn({
421
+ }), _n({
440
422
  icon: he(() => [
441
423
  Ge(n.$slots, "title", {}, () => [
442
- Mt(
443
- Ft(n.title),
424
+ Ot(
425
+ Mt(n.title),
444
426
  1
445
427
  /* TEXT */
446
428
  )
447
429
  ])
448
430
  ]),
449
431
  header: he(() => [
450
- le("div", Gn, [
432
+ le("div", zn, [
451
433
  Ge(n.$slots, "header", {}, () => [
452
- Mt(
453
- Ft(n.title),
434
+ Ot(
435
+ Mt(n.title),
454
436
  1
455
437
  /* TEXT */
456
438
  )
457
439
  ])
458
440
  ]),
459
- n.$attrs.showClose ? (U(), Ae(K(Bt), {
441
+ n.$attrs.showClose ? (U(), Ae(X(Hi), {
460
442
  key: 0,
461
443
  onClick: e,
462
444
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -481,12 +463,12 @@ const Wn = /* @__PURE__ */ gt(zn, [["__scopeId", "data-v-79f49df8"]]), Gn = { cl
481
463
  };
482
464
  }
483
465
  });
484
- const Yn = Xe(Kn);
485
- var $n = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
486
- function Kt(a) {
466
+ const Gn = Xe(Wn);
467
+ var Kn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
468
+ function Wt(a) {
487
469
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
488
470
  }
489
- function Xn(a, o, r, t) {
471
+ function Yn(a, o, r, t) {
490
472
  function e(i) {
491
473
  return i instanceof r ? i : new r(function(n) {
492
474
  n(i);
@@ -513,7 +495,7 @@ function Xn(a, o, r, t) {
513
495
  u((t = t.apply(a, o || [])).next());
514
496
  });
515
497
  }
516
- function qn(a, o) {
498
+ function $n(a, o) {
517
499
  var r = { label: 0, sent: function() {
518
500
  if (i[0] & 1)
519
501
  throw i[1];
@@ -578,9 +560,9 @@ function qn(a, o) {
578
560
  return { value: u[0] ? u[1] : void 0, done: !0 };
579
561
  }
580
562
  }
581
- var Zn = function(a, o) {
582
- return Xn(void 0, void 0, void 0, function() {
583
- return qn(this, function(r) {
563
+ var Xn = function(a, o) {
564
+ return Yn(void 0, void 0, void 0, function() {
565
+ return $n(this, function(r) {
584
566
  return [2, new Promise(function(t, e) {
585
567
  try {
586
568
  if (window.DocsAPI)
@@ -592,12 +574,12 @@ var Zn = function(a, o) {
592
574
  if (!l) {
593
575
  if (clearInterval(n), window.DocsAPI)
594
576
  return t(null);
595
- var u = li(o, a, t, e);
577
+ var u = oi(o, a, t, e);
596
578
  i.remove(), document.body.appendChild(u);
597
579
  }
598
580
  }, 500);
599
581
  else {
600
- var s = li(o, a, t, e);
582
+ var s = oi(o, a, t, e);
601
583
  document.body.appendChild(s);
602
584
  }
603
585
  } catch (l) {
@@ -606,14 +588,14 @@ var Zn = function(a, o) {
606
588
  })];
607
589
  });
608
590
  });
609
- }, li = function(a, o, r, t) {
591
+ }, oi = function(a, o, r, t) {
610
592
  var e = document.createElement("script");
611
593
  return e.id = a, e.type = "text/javascript", e.src = o, e.async = !0, e.onload = function() {
612
594
  e.removeAttribute("loading"), r(null);
613
595
  }, e.onerror = function(i) {
614
596
  e.removeAttribute("loading"), t(i);
615
597
  }, e.setAttribute("loading", ""), e;
616
- }, Yt = pe({
598
+ }, Gt = pe({
617
599
  name: "DocumentEditor",
618
600
  props: {
619
601
  id: {
@@ -668,7 +650,7 @@ var Zn = function(a, o) {
668
650
  var a = this, o = this.documentServerUrl;
669
651
  o.endsWith("/") || (o += "/");
670
652
  var r = "".concat(o, "web-apps/apps/api/documents/api.js");
671
- Zn(r, "onlyoffice-api-script").then(function() {
653
+ Xn(r, "onlyoffice-api-script").then(function() {
672
654
  return a.onLoad();
673
655
  }).catch(function() {
674
656
  a.onError(-2);
@@ -782,13 +764,13 @@ var Zn = function(a, o) {
782
764
  }
783
765
  }
784
766
  });
785
- const Jn = ["id"];
786
- function Qn(a, o, r, t, e, i) {
787
- return U(), W("div", { id: a.id }, null, 8, Jn);
767
+ const qn = ["id"];
768
+ function Zn(a, o, r, t, e, i) {
769
+ return U(), $("div", { id: a.id }, null, 8, qn);
788
770
  }
789
- Yt.render = Qn;
790
- Yt.__file = "src/components/DocumentEditor.vue";
791
- const er = /* @__PURE__ */ pe({
771
+ Gt.render = Zn;
772
+ Gt.__file = "src/components/DocumentEditor.vue";
773
+ const Jn = /* @__PURE__ */ pe({
792
774
  __name: "IkOnlyOffice",
793
775
  props: {
794
776
  // 文件服务器的服务的地址
@@ -817,13 +799,13 @@ const er = /* @__PURE__ */ pe({
817
799
  }), t = () => {
818
800
  console.info("文档加载完成", o.configOptions);
819
801
  };
820
- return (e, i) => (U(), W(
802
+ return (e, i) => (U(), $(
821
803
  "div",
822
804
  {
823
805
  style: Ce({ height: o.officeHeight })
824
806
  },
825
807
  [
826
- ke(K(Yt), {
808
+ Pe(X(Gt), {
827
809
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
828
810
  ref: "editorRef",
829
811
  "document-server-url": a.documentServerUrl,
@@ -836,8 +818,8 @@ const er = /* @__PURE__ */ pe({
836
818
  ));
837
819
  }
838
820
  });
839
- const tr = /* @__PURE__ */ gt(er, [["__scopeId", "data-v-98d51ef9"]]), ir = Xe(tr);
840
- function ui(a, o) {
821
+ const Qn = /* @__PURE__ */ gt(Jn, [["__scopeId", "data-v-98d51ef9"]]), er = Xe(Qn);
822
+ function ai(a, o) {
841
823
  var r = Object.keys(a);
842
824
  if (Object.getOwnPropertySymbols) {
843
825
  var t = Object.getOwnPropertySymbols(a);
@@ -850,39 +832,39 @@ function ui(a, o) {
850
832
  function V(a) {
851
833
  for (var o = 1; o < arguments.length; o++) {
852
834
  var r = arguments[o] != null ? arguments[o] : {};
853
- o % 2 ? ui(Object(r), !0).forEach(function(t) {
835
+ o % 2 ? ai(Object(r), !0).forEach(function(t) {
854
836
  y(a, t, r[t]);
855
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : ui(Object(r)).forEach(function(t) {
837
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : ai(Object(r)).forEach(function(t) {
856
838
  Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(r, t));
857
839
  });
858
840
  }
859
841
  return a;
860
842
  }
861
- function Y(a) {
843
+ function G(a) {
862
844
  "@babel/helpers - typeof";
863
- return Y = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
845
+ return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
864
846
  return typeof o;
865
847
  } : function(o) {
866
848
  return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
867
- }, Y(a);
849
+ }, G(a);
868
850
  }
869
851
  function w(a, o) {
870
852
  if (!(a instanceof o))
871
853
  throw new TypeError("Cannot call a class as a function");
872
854
  }
873
- function ci(a, o) {
855
+ function li(a, o) {
874
856
  for (var r = 0; r < o.length; r++) {
875
857
  var t = o[r];
876
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a, Vi(t.key), t);
858
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a, Ui(t.key), t);
877
859
  }
878
860
  }
879
861
  function E(a, o, r) {
880
- return o && ci(a.prototype, o), r && ci(a, r), Object.defineProperty(a, "prototype", {
862
+ return o && li(a.prototype, o), r && li(a, r), Object.defineProperty(a, "prototype", {
881
863
  writable: !1
882
864
  }), a;
883
865
  }
884
866
  function y(a, o, r) {
885
- return o = Vi(o), o in a ? Object.defineProperty(a, o, {
867
+ return o = Ui(o), o in a ? Object.defineProperty(a, o, {
886
868
  value: r,
887
869
  enumerable: !0,
888
870
  configurable: !0,
@@ -900,19 +882,19 @@ function S(a, o) {
900
882
  }
901
883
  }), Object.defineProperty(a, "prototype", {
902
884
  writable: !1
903
- }), o && Ht(a, o);
885
+ }), o && Nt(a, o);
904
886
  }
905
887
  function P(a) {
906
888
  return P = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
907
889
  return r.__proto__ || Object.getPrototypeOf(r);
908
890
  }, P(a);
909
891
  }
910
- function Ht(a, o) {
911
- return Ht = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
892
+ function Nt(a, o) {
893
+ return Nt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
912
894
  return t.__proto__ = e, t;
913
- }, Ht(a, o);
895
+ }, Nt(a, o);
914
896
  }
915
- function nr() {
897
+ function tr() {
916
898
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
917
899
  return !1;
918
900
  if (typeof Proxy == "function")
@@ -929,7 +911,7 @@ function v(a) {
929
911
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
930
912
  return a;
931
913
  }
932
- function $t(a, o) {
914
+ function Kt(a, o) {
933
915
  if (o && (typeof o == "object" || typeof o == "function"))
934
916
  return o;
935
917
  if (o !== void 0)
@@ -937,7 +919,7 @@ function $t(a, o) {
937
919
  return v(a);
938
920
  }
939
921
  function x(a) {
940
- var o = nr();
922
+ var o = tr();
941
923
  return function() {
942
924
  var t = P(a), e;
943
925
  if (o) {
@@ -945,17 +927,17 @@ function x(a) {
945
927
  e = Reflect.construct(t, arguments, i);
946
928
  } else
947
929
  e = t.apply(this, arguments);
948
- return $t(this, e);
930
+ return Kt(this, e);
949
931
  };
950
932
  }
951
- function rr(a, o) {
933
+ function ir(a, o) {
952
934
  for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = P(a), a !== null); )
953
935
  ;
954
936
  return a;
955
937
  }
956
938
  function I() {
957
939
  return typeof Reflect < "u" && Reflect.get ? I = Reflect.get.bind() : I = function(o, r, t) {
958
- var e = rr(o, r);
940
+ var e = ir(o, r);
959
941
  if (e) {
960
942
  var i = Object.getOwnPropertyDescriptor(e, r);
961
943
  return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
@@ -963,38 +945,38 @@ function I() {
963
945
  }, I.apply(this, arguments);
964
946
  }
965
947
  function ne(a) {
966
- return sr(a) || or(a) || ar(a) || lr();
948
+ return nr(a) || rr(a) || sr(a) || or();
967
949
  }
968
- function sr(a) {
950
+ function nr(a) {
969
951
  if (Array.isArray(a))
970
- return Ut(a);
952
+ return Bt(a);
971
953
  }
972
- function or(a) {
954
+ function rr(a) {
973
955
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
974
956
  return Array.from(a);
975
957
  }
976
- function ar(a, o) {
958
+ function sr(a, o) {
977
959
  if (a) {
978
960
  if (typeof a == "string")
979
- return Ut(a, o);
961
+ return Bt(a, o);
980
962
  var r = Object.prototype.toString.call(a).slice(8, -1);
981
963
  if (r === "Object" && a.constructor && (r = a.constructor.name), r === "Map" || r === "Set")
982
964
  return Array.from(a);
983
965
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))
984
- return Ut(a, o);
966
+ return Bt(a, o);
985
967
  }
986
968
  }
987
- function Ut(a, o) {
969
+ function Bt(a, o) {
988
970
  (o == null || o > a.length) && (o = a.length);
989
971
  for (var r = 0, t = new Array(o); r < o; r++)
990
972
  t[r] = a[r];
991
973
  return t;
992
974
  }
993
- function lr() {
975
+ function or() {
994
976
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
995
977
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
996
978
  }
997
- function ur(a, o) {
979
+ function ar(a, o) {
998
980
  if (typeof a != "object" || a === null)
999
981
  return a;
1000
982
  var r = a[Symbol.toPrimitive];
@@ -1006,11 +988,11 @@ function ur(a, o) {
1006
988
  }
1007
989
  return (o === "string" ? String : Number)(a);
1008
990
  }
1009
- function Vi(a) {
1010
- var o = ur(a, "string");
991
+ function Ui(a) {
992
+ var o = ar(a, "string");
1011
993
  return typeof o == "symbol" ? o : String(o);
1012
994
  }
1013
- var ji = { exports: {} };
995
+ var Vi = { exports: {} };
1014
996
  (function(a) {
1015
997
  var o = Object.prototype.hasOwnProperty, r = "~";
1016
998
  function t() {
@@ -1120,40 +1102,40 @@ var ji = { exports: {} };
1120
1102
  var c;
1121
1103
  return u ? (c = r ? r + u : u, this._events[c] && n(this, c)) : (this._events = new t(), this._eventsCount = 0), this;
1122
1104
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
1123
- })(ji);
1124
- var zi = ji.exports;
1125
- const Wi = /* @__PURE__ */ Kt(zi);
1126
- var cr = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, kt = {
1105
+ })(Vi);
1106
+ var ji = Vi.exports;
1107
+ const zi = /* @__PURE__ */ Wt(ji);
1108
+ var lr = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Ct = {
1127
1109
  info: "color: #525252; background-color: #90ee90;",
1128
1110
  error: "color: #525252; background-color: red;",
1129
1111
  warn: "color: #525252; background-color: yellow; "
1130
- }, bt = "%c[xgplayer]", D = {
1112
+ }, kt = "%c[xgplayer]", D = {
1131
1113
  config: {
1132
- debug: cr ? 3 : 0
1114
+ debug: lr ? 3 : 0
1133
1115
  },
1134
1116
  logInfo: function(o) {
1135
1117
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
1136
1118
  e[i - 1] = arguments[i];
1137
- this.config.debug >= 3 && (r = console).log.apply(r, [bt, kt.info, o].concat(e));
1119
+ this.config.debug >= 3 && (r = console).log.apply(r, [kt, Ct.info, o].concat(e));
1138
1120
  },
1139
1121
  logWarn: function(o) {
1140
1122
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
1141
1123
  e[i - 1] = arguments[i];
1142
- this.config.debug >= 1 && (r = console).warn.apply(r, [bt, kt.warn, o].concat(e));
1124
+ this.config.debug >= 1 && (r = console).warn.apply(r, [kt, Ct.warn, o].concat(e));
1143
1125
  },
1144
1126
  logError: function(o) {
1145
1127
  var r;
1146
1128
  if (!(this.config.debug < 1)) {
1147
1129
  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++)
1148
1130
  i[n - 1] = arguments[n];
1149
- (r = console)[t].apply(r, [bt, kt.error, o].concat(i));
1131
+ (r = console)[t].apply(r, [kt, Ct.error, o].concat(i));
1150
1132
  }
1151
1133
  }
1152
1134
  };
1153
- function fr(a) {
1135
+ function ur(a) {
1154
1136
  a.logInfo = D.logInfo.bind(a), a.logWarn = D.logWarn.bind(a), a.logError = D.logError.bind(a);
1155
1137
  }
1156
- var hr = /* @__PURE__ */ function() {
1138
+ var cr = /* @__PURE__ */ function() {
1157
1139
  function a(o) {
1158
1140
  w(this, a), this.bufferedList = o;
1159
1141
  }
@@ -1202,7 +1184,7 @@ f.hasClass = function(a, o) {
1202
1184
  return t === o;
1203
1185
  });
1204
1186
  } catch {
1205
- var r = a.className && Y(a.className) === "object" ? a.getAttribute("class") : a.className;
1187
+ var r = a.className && G(a.className) === "object" ? a.getAttribute("class") : a.className;
1206
1188
  return r && !!r.match(new RegExp("(\\s|^)" + o + "(\\s|$)"));
1207
1189
  }
1208
1190
  };
@@ -1213,7 +1195,7 @@ f.addClass = function(a, o) {
1213
1195
  r && a.classList.add(r);
1214
1196
  });
1215
1197
  } catch {
1216
- f.hasClass(a, o) || (a.className && Y(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class") + " " + o) : a.className += " " + o);
1198
+ f.hasClass(a, o) || (a.className && G(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class") + " " + o) : a.className += " " + o);
1217
1199
  }
1218
1200
  };
1219
1201
  f.removeClass = function(a, o) {
@@ -1225,7 +1207,7 @@ f.removeClass = function(a, o) {
1225
1207
  } catch {
1226
1208
  f.hasClass(a, o) && o.split(/\s+/g).forEach(function(t) {
1227
1209
  var e = new RegExp("(\\s|^)" + t + "(\\s|$)");
1228
- a.className && Y(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class").replace(e, " ")) : a.className = a.className.replace(e, " ");
1210
+ a.className && G(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class").replace(e, " ")) : a.className = a.className.replace(e, " ");
1229
1211
  });
1230
1212
  }
1231
1213
  };
@@ -1369,7 +1351,7 @@ f.checkIsFunction = function(a) {
1369
1351
  return a && typeof a == "function";
1370
1352
  };
1371
1353
  f.checkIsObject = function(a) {
1372
- return a !== null && Y(a) === "object";
1354
+ return a !== null && G(a) === "object";
1373
1355
  };
1374
1356
  f.hide = function(a) {
1375
1357
  a.style.display = "none";
@@ -1399,7 +1381,7 @@ f.setStyleFromCsstext = function(a, o) {
1399
1381
  a.style[t] = o[t];
1400
1382
  });
1401
1383
  };
1402
- function dr(a, o) {
1384
+ function fr(a, o) {
1403
1385
  for (var r = 0, t = o.length; r < t; r++)
1404
1386
  if (a.indexOf(o[r]) > -1)
1405
1387
  return !0;
@@ -1413,7 +1395,7 @@ f.filterStyleFromText = function(a) {
1413
1395
  return t.map(function(n) {
1414
1396
  if (n) {
1415
1397
  var s = n.split(":");
1416
- s.length > 1 && (dr(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
1398
+ s.length > 1 && (fr(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
1417
1399
  }
1418
1400
  }), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
1419
1401
  a.style[n] = i[n];
@@ -1478,7 +1460,7 @@ f.getBuffered2 = function(a) {
1478
1460
  }
1479
1461
  else
1480
1462
  e = r;
1481
- return new hr(e);
1463
+ return new cr(e);
1482
1464
  };
1483
1465
  f.getEventPos = function(a) {
1484
1466
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
@@ -1598,15 +1580,15 @@ f.getCurrentTimeByOffset = function(a, o) {
1598
1580
  }
1599
1581
  return a;
1600
1582
  };
1601
- function Gi(a) {
1602
- var o = Y(a);
1583
+ function Wi(a) {
1584
+ var o = G(a);
1603
1585
  return a !== null && (o === "object" || o === "function");
1604
1586
  }
1605
- function gr(a, o, r) {
1587
+ function hr(a, o, r) {
1606
1588
  var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, g = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
1607
1589
  if (typeof a != "function")
1608
1590
  throw new TypeError("Expected a function");
1609
- o = +o || 0, Gi(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
1591
+ o = +o || 0, Wi(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
1610
1592
  function p(M) {
1611
1593
  var q = t, ee = e;
1612
1594
  return t = e = void 0, u = M, n = a.apply(ee, q), n;
@@ -1645,12 +1627,12 @@ function gr(a, o, r) {
1645
1627
  function A() {
1646
1628
  return s === void 0 ? n : R(Date.now());
1647
1629
  }
1648
- function $() {
1630
+ function K() {
1649
1631
  return s !== void 0;
1650
1632
  }
1651
1633
  function j() {
1652
- for (var M = Date.now(), q = b(M), ee = arguments.length, te = new Array(ee), Se = 0; Se < ee; Se++)
1653
- te[Se] = arguments[Se];
1634
+ for (var M = Date.now(), q = b(M), ee = arguments.length, te = new Array(ee), Ee = 0; Ee < ee; Ee++)
1635
+ te[Ee] = arguments[Ee];
1654
1636
  if (t = te, e = this, l = M, q) {
1655
1637
  if (s === void 0)
1656
1638
  return k(l);
@@ -1659,32 +1641,32 @@ function gr(a, o, r) {
1659
1641
  }
1660
1642
  return s === void 0 && (s = m(N, o)), n;
1661
1643
  }
1662
- return j.cancel = B, j.flush = A, j.pending = $, j;
1644
+ return j.cancel = B, j.flush = A, j.pending = K, j;
1663
1645
  }
1664
- function pr(a, o, r) {
1646
+ function dr(a, o, r) {
1665
1647
  var t = !0, e = !0;
1666
1648
  if (typeof a != "function")
1667
1649
  throw new TypeError("Expected a function");
1668
- return Gi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), gr(a, o, {
1650
+ return Wi(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), hr(a, o, {
1669
1651
  leading: t,
1670
1652
  trailing: e,
1671
1653
  maxWait: o
1672
1654
  });
1673
1655
  }
1674
- function vr() {
1656
+ function gr() {
1675
1657
  var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
1676
1658
  return a === "zh-cn" && (a = "zh"), a;
1677
1659
  }
1678
- function mr(a, o, r) {
1660
+ function pr(a, o, r) {
1679
1661
  if (a) {
1680
1662
  var t = a.getAttribute(r);
1681
1663
  return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
1682
1664
  }
1683
1665
  }
1684
- var fi = {
1666
+ var ui = {
1685
1667
  android: /(Android)\s([\d.]+)/,
1686
1668
  ios: /(Version)\/([\d.]+)/
1687
- }, yr = ["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"], L = {
1669
+ }, vr = ["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"], L = {
1688
1670
  get device() {
1689
1671
  var a = L.os;
1690
1672
  return a.isPc ? "pc" : "mobile";
@@ -1723,7 +1705,7 @@ var fi = {
1723
1705
  if (typeof navigator > "u")
1724
1706
  return 0;
1725
1707
  var a = navigator.userAgent, o = "";
1726
- /(?:iPhone)|(?:iPad|PlayBook)/.test(a) ? o = fi.ios : o = fi.android;
1708
+ /(?:iPhone)|(?:iPad|PlayBook)/.test(a) ? o = ui.ios : o = ui.android;
1727
1709
  var r = o ? o.exec(a) : [];
1728
1710
  if (r && r.length >= 3) {
1729
1711
  var t = r[2].split(".");
@@ -1747,7 +1729,7 @@ var fi = {
1747
1729
  if (this.supportResult)
1748
1730
  return this.supportResult;
1749
1731
  var r = document.createElement("video");
1750
- return typeof r.canPlayType == "function" && yr.map(function(t) {
1732
+ return typeof r.canPlayType == "function" && vr.map(function(t) {
1751
1733
  r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
1752
1734
  }), this.supportResult = o, r = null, o;
1753
1735
  },
@@ -1786,14 +1768,14 @@ var fi = {
1786
1768
  return Promise.resolve(r);
1787
1769
  }
1788
1770
  }
1789
- }, Vt = "3.0.18", hi = {
1771
+ }, Ht = "3.0.18", ci = {
1790
1772
  1: "media",
1791
1773
  2: "media",
1792
1774
  3: "media",
1793
1775
  4: "media",
1794
1776
  5: "media",
1795
1777
  6: "media"
1796
- }, di = {
1778
+ }, fi = {
1797
1779
  1: 5101,
1798
1780
  2: 5102,
1799
1781
  3: 5103,
@@ -1814,9 +1796,9 @@ var fi = {
1814
1796
  var t = o && o.i18n ? o.i18n.ERROR_TYPES : null;
1815
1797
  if (o.media) {
1816
1798
  var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, h = c.readyState, d = c.networkState, g = r.errorCode || e.code;
1817
- di[g] && (g = di[g]);
1799
+ fi[g] && (g = fi[g]);
1818
1800
  var p = {
1819
- playerVersion: Vt,
1801
+ playerVersion: Ht,
1820
1802
  currentTime: n,
1821
1803
  duration: i,
1822
1804
  ended: s,
@@ -1835,85 +1817,85 @@ var fi = {
1835
1817
  }), p;
1836
1818
  } else if (arguments.length > 1) {
1837
1819
  for (var m = {
1838
- playerVersion: Vt,
1820
+ playerVersion: Ht,
1839
1821
  domain: document.domain
1840
1822
  }, _ = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
1841
1823
  m[_[k]] = arguments[k];
1842
1824
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
1843
1825
  }
1844
1826
  }
1845
- ), Q = "play", Xt = "playing", Le = "ended", je = "pause", qe = "error", pt = "seeking", ge = "seeked", J = "timeupdate", Ze = "waiting", de = "canplay", _r = "canplaythrough", we = "durationchange", Ki = "volumechange", ve = "loadeddata", Cr = "loadedmetadata", Yi = "ratechange", $i = "progress", qt = "loadstart", De = "emptied", kr = "stalled", br = "suspend", Tr = "abort", wr = "bufferedChange", Zt = "focus", Xi = "blur", Jt = "ready", qi = "urlNull", Ie = "autoplay_started", Qt = "autoplay_was_prevented", vt = "complete", st = "replay", ei = "destroy", mt = "urlchange", jt = "download_speed_change", Zi = "leaveplayer", Ji = "enterplayer", Qi = "loading", ue = "fullscreen_change", ot = "cssFullscreen_change", at = "mini_state_change", ti = "definition_change", Er = "before_definition_change", zt = "after_definition_change", Sr = "SEI_PARSED", xr = "retry", be = "video_resize", Wt = "pip_change", en = "rotate", tn = "screenShot", lt = "playnext", nn = "shortcut", rn = "xglog", ut = "user_action", yt = "reset", sn = "source_error", on = "source_success", Pr = "switch_subtitle", an = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], ln = {
1827
+ ), Q = "play", Yt = "playing", Le = "ended", je = "pause", qe = "error", pt = "seeking", ge = "seeked", J = "timeupdate", Ze = "waiting", de = "canplay", mr = "canplaythrough", Te = "durationchange", Gi = "volumechange", ve = "loadeddata", yr = "loadedmetadata", Ki = "ratechange", Yi = "progress", $t = "loadstart", De = "emptied", _r = "stalled", Cr = "suspend", kr = "abort", br = "bufferedChange", Xt = "focus", $i = "blur", qt = "ready", Xi = "urlNull", Ie = "autoplay_started", Zt = "autoplay_was_prevented", vt = "complete", st = "replay", Jt = "destroy", mt = "urlchange", Ut = "download_speed_change", qi = "leaveplayer", Zi = "enterplayer", Ji = "loading", ue = "fullscreen_change", ot = "cssFullscreen_change", at = "mini_state_change", Qt = "definition_change", Tr = "before_definition_change", Vt = "after_definition_change", wr = "SEI_PARSED", Er = "retry", ke = "video_resize", jt = "pip_change", Qi = "rotate", en = "screenShot", lt = "playnext", tn = "shortcut", nn = "xglog", ut = "user_action", yt = "reset", rn = "source_error", sn = "source_success", Sr = "switch_subtitle", on = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], an = {
1846
1828
  STATS_INFO: "stats_info",
1847
1829
  STATS_DOWNLOAD: "stats_download",
1848
1830
  STATS_RESET: "stats_reset"
1849
- }, un = "fps_stuck";
1850
- const Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1831
+ }, ln = "fps_stuck";
1832
+ const xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1851
1833
  __proto__: null,
1852
- ABORT: Tr,
1853
- AFTER_DEFINITION_CHANGE: zt,
1854
- AUTOPLAY_PREVENTED: Qt,
1834
+ ABORT: kr,
1835
+ AFTER_DEFINITION_CHANGE: Vt,
1836
+ AUTOPLAY_PREVENTED: Zt,
1855
1837
  AUTOPLAY_STARTED: Ie,
1856
- BEFORE_DEFINITION_CHANGE: Er,
1857
- BUFFER_CHANGE: wr,
1838
+ BEFORE_DEFINITION_CHANGE: Tr,
1839
+ BUFFER_CHANGE: br,
1858
1840
  CANPLAY: de,
1859
- CANPLAY_THROUGH: _r,
1841
+ CANPLAY_THROUGH: mr,
1860
1842
  COMPLETE: vt,
1861
1843
  CSS_FULLSCREEN_CHANGE: ot,
1862
- DEFINITION_CHANGE: ti,
1863
- DESTROY: ei,
1864
- DOWNLOAD_SPEED_CHANGE: jt,
1865
- DURATION_CHANGE: we,
1844
+ DEFINITION_CHANGE: Qt,
1845
+ DESTROY: Jt,
1846
+ DOWNLOAD_SPEED_CHANGE: Ut,
1847
+ DURATION_CHANGE: Te,
1866
1848
  EMPTIED: De,
1867
1849
  ENDED: Le,
1868
- ENTER_PLAYER: Ji,
1850
+ ENTER_PLAYER: Zi,
1869
1851
  ERROR: qe,
1870
- FPS_STUCK: un,
1852
+ FPS_STUCK: ln,
1871
1853
  FULLSCREEN_CHANGE: ue,
1872
- LEAVE_PLAYER: Zi,
1854
+ LEAVE_PLAYER: qi,
1873
1855
  LOADED_DATA: ve,
1874
- LOADED_METADATA: Cr,
1875
- LOADING: Qi,
1876
- LOAD_START: qt,
1856
+ LOADED_METADATA: yr,
1857
+ LOADING: Ji,
1858
+ LOAD_START: $t,
1877
1859
  MINI_STATE_CHANGE: at,
1878
1860
  PAUSE: je,
1879
- PIP_CHANGE: Wt,
1861
+ PIP_CHANGE: jt,
1880
1862
  PLAY: Q,
1881
- PLAYER_BLUR: Xi,
1882
- PLAYER_FOCUS: Zt,
1883
- PLAYING: Xt,
1863
+ PLAYER_BLUR: $i,
1864
+ PLAYER_FOCUS: Xt,
1865
+ PLAYING: Yt,
1884
1866
  PLAYNEXT: lt,
1885
- PROGRESS: $i,
1886
- RATE_CHANGE: Yi,
1887
- READY: Jt,
1867
+ PROGRESS: Yi,
1868
+ RATE_CHANGE: Ki,
1869
+ READY: qt,
1888
1870
  REPLAY: st,
1889
1871
  RESET: yt,
1890
- RETRY: xr,
1891
- ROTATE: en,
1892
- SCREEN_SHOT: tn,
1872
+ RETRY: Er,
1873
+ ROTATE: Qi,
1874
+ SCREEN_SHOT: en,
1893
1875
  SEEKED: ge,
1894
1876
  SEEKING: pt,
1895
- SEI_PARSED: Sr,
1896
- SHORTCUT: nn,
1897
- SOURCE_ERROR: sn,
1898
- SOURCE_SUCCESS: on,
1899
- STALLED: kr,
1900
- STATS_EVENTS: ln,
1901
- SUSPEND: br,
1902
- SWITCH_SUBTITLE: Pr,
1877
+ SEI_PARSED: wr,
1878
+ SHORTCUT: tn,
1879
+ SOURCE_ERROR: rn,
1880
+ SOURCE_SUCCESS: sn,
1881
+ STALLED: _r,
1882
+ STATS_EVENTS: an,
1883
+ SUSPEND: Cr,
1884
+ SWITCH_SUBTITLE: Sr,
1903
1885
  TIME_UPDATE: J,
1904
1886
  URL_CHANGE: mt,
1905
- URL_NULL: qi,
1887
+ URL_NULL: Xi,
1906
1888
  USER_ACTION: ut,
1907
- VIDEO_EVENTS: an,
1908
- VIDEO_RESIZE: be,
1909
- VOLUME_CHANGE: Ki,
1889
+ VIDEO_EVENTS: on,
1890
+ VIDEO_RESIZE: ke,
1891
+ VOLUME_CHANGE: Gi,
1910
1892
  WAITING: Ze,
1911
- XGLOG: rn
1893
+ XGLOG: nn
1912
1894
  }, Symbol.toStringTag, { value: "Module" }));
1913
- function Tt(a, o) {
1895
+ function bt(a, o) {
1914
1896
  !this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
1915
1897
  }
1916
- function Ar(a, o) {
1898
+ function Pr(a, o) {
1917
1899
  return function(r, t) {
1918
1900
  var e = {
1919
1901
  player: o,
@@ -1938,17 +1920,17 @@ function Ar(a, o) {
1938
1920
  o._rate = o.media && o.media.playbackRate;
1939
1921
  }
1940
1922
  if (a === "durationchange" && (o._duration = o.media.duration), a === "volumechange" && (e.isMutedChange = o._lastMuted !== o.muted, o._lastMuted = o.muted), a === "error" && (e.error = t || o.video.error), o.mediaEventMiddleware[a]) {
1941
- var n = Tt.bind(o, a, e);
1923
+ var n = bt.bind(o, a, e);
1942
1924
  try {
1943
1925
  o.mediaEventMiddleware[a].call(o, e, n);
1944
1926
  } catch (s) {
1945
- throw Tt.call(o, a, e), s;
1927
+ throw bt.call(o, a, e), s;
1946
1928
  }
1947
1929
  } else
1948
- Tt.call(o, a, e);
1930
+ bt.call(o, a, e);
1949
1931
  };
1950
1932
  }
1951
- var Lr = /* @__PURE__ */ function(a) {
1933
+ var Ir = /* @__PURE__ */ function(a) {
1952
1934
  S(r, a);
1953
1935
  var o = x(r);
1954
1936
  function r(t) {
@@ -1990,9 +1972,9 @@ var Lr = /* @__PURE__ */ function(a) {
1990
1972
  key: "attachVideoEvents",
1991
1973
  value: function() {
1992
1974
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
1993
- this._evHandlers || (this._evHandlers = an.map(function(n) {
1975
+ this._evHandlers || (this._evHandlers = on.map(function(n) {
1994
1976
  var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
1995
- return typeof e[s] == "function" && e.on(n, e[s]), y({}, n, Ar(n, e));
1977
+ return typeof e[s] == "function" && e.on(n, e[s]), y({}, n, Pr(n, e));
1996
1978
  })), this._evHandlers.forEach(function(n) {
1997
1979
  var s = Object.keys(n)[0];
1998
1980
  i.addEventListener(s, n[s], !1);
@@ -2024,7 +2006,7 @@ var Lr = /* @__PURE__ */ function(a) {
2024
2006
  var s = e.children;
2025
2007
  if (s) {
2026
2008
  this._videoSourceCount = s.length, this._videoSourceIndex = s.length, this._vLoadeddata = function(h) {
2027
- n.emit(on, {
2009
+ n.emit(sn, {
2028
2010
  src: h.target.currentSrc,
2029
2011
  host: f.getHostFromUrl(h.target.currentSrc)
2030
2012
  });
@@ -2043,8 +2025,8 @@ var Lr = /* @__PURE__ */ function(a) {
2043
2025
  };
2044
2026
  l ? l.error(h, g) : n.errorHandler("error", g);
2045
2027
  }
2046
- var p = hi[4];
2047
- n.emit(sn, new rt(n, {
2028
+ var p = ci[4];
2029
+ n.emit(rn, new rt(n, {
2048
2030
  errorType: p,
2049
2031
  errorCode: 4,
2050
2032
  errorMessage: "sources_load_error",
@@ -2077,7 +2059,7 @@ var Lr = /* @__PURE__ */ function(a) {
2077
2059
  value: function(e) {
2078
2060
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
2079
2061
  if (this.media && (this.media.error || i)) {
2080
- var n = this.media.error || i, s = n.code ? hi[n.code] : "other", l = n.message;
2062
+ var n = this.media.error || i, s = n.code ? ci[n.code] : "other", l = n.message;
2081
2063
  this.media.currentSrc || (l = "empty_src", n = {
2082
2064
  code: 6,
2083
2065
  message: l
@@ -2366,7 +2348,7 @@ var Lr = /* @__PURE__ */ function(a) {
2366
2348
  I(P(r.prototype), "removeAllListeners", this).call(this);
2367
2349
  }
2368
2350
  }]), r;
2369
- }(Wi), Dr = /* @__PURE__ */ function() {
2351
+ }(zi), Ar = /* @__PURE__ */ function() {
2370
2352
  function a() {
2371
2353
  var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
2372
2354
  name: "xgplayer",
@@ -2444,7 +2426,7 @@ var Lr = /* @__PURE__ */ function(a) {
2444
2426
  t.clear();
2445
2427
  }
2446
2428
  }]), a;
2447
- }(), gi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], pi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], vi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Pe = "data-xgplayerid";
2429
+ }(), hi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], di = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], gi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], xe = "data-xgplayerid";
2448
2430
  function Je(a, o, r) {
2449
2431
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
2450
2432
  e[i - 3] = arguments[i];
@@ -2493,14 +2475,14 @@ function ht(a, o) {
2493
2475
  var r = this.__hooks;
2494
2476
  r && delete r[a];
2495
2477
  }
2496
- function mi(a) {
2478
+ function pi(a) {
2497
2479
  if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
2498
2480
  for (var o = this.plugins[a.toLowerCase()], r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), e = 1; e < r; e++)
2499
2481
  t[e - 1] = arguments[e];
2500
2482
  return o.useHooks && o.useHooks.apply(o, t);
2501
2483
  }
2502
2484
  }
2503
- function yi(a) {
2485
+ function vi(a) {
2504
2486
  if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
2505
2487
  var o = this.plugins[a.toLowerCase()];
2506
2488
  if (o) {
@@ -2510,7 +2492,7 @@ function yi(a) {
2510
2492
  }
2511
2493
  }
2512
2494
  }
2513
- function cn(a) {
2495
+ function un(a) {
2514
2496
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
2515
2497
  a.__hooks = {}, o && o.map(function(r) {
2516
2498
  a.__hooks[r] = null;
@@ -2523,7 +2505,7 @@ function cn(a) {
2523
2505
  }
2524
2506
  });
2525
2507
  }
2526
- function fn(a) {
2508
+ function cn(a) {
2527
2509
  a.__hooks = null;
2528
2510
  }
2529
2511
  function ce(a, o, r) {
@@ -2542,12 +2524,12 @@ function ce(a, o, r) {
2542
2524
  } else
2543
2525
  return r.call.apply(r, [a, a].concat(e));
2544
2526
  }
2545
- function wt(a, o) {
2527
+ function Tt(a, o) {
2546
2528
  D.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
2547
2529
  }
2548
- var Te = /* @__PURE__ */ function() {
2530
+ var be = /* @__PURE__ */ function() {
2549
2531
  function a(o) {
2550
- w(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), cn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
2532
+ w(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), un(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
2551
2533
  }
2552
2534
  return E(a, [{
2553
2535
  key: "beforeCreate",
@@ -2609,7 +2591,7 @@ var Te = /* @__PURE__ */ function() {
2609
2591
  value: function(r, t) {
2610
2592
  var e = this;
2611
2593
  if (!r || !t || !this.player) {
2612
- wt(this.pluginName, "plugin.on(event, callback)");
2594
+ Tt(this.pluginName, "plugin.on(event, callback)");
2613
2595
  return;
2614
2596
  }
2615
2597
  typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -2621,7 +2603,7 @@ var Te = /* @__PURE__ */ function() {
2621
2603
  value: function(r, t) {
2622
2604
  var e = this;
2623
2605
  if (!r || !t || !this.player) {
2624
- wt(this.pluginName, "plugin.once(event, callback)");
2606
+ Tt(this.pluginName, "plugin.once(event, callback)");
2625
2607
  return;
2626
2608
  }
2627
2609
  typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -2633,7 +2615,7 @@ var Te = /* @__PURE__ */ function() {
2633
2615
  value: function(r, t) {
2634
2616
  var e = this;
2635
2617
  if (!r || !t || !this.player) {
2636
- wt(this.pluginName, "plugin.off(event, callback)");
2618
+ Tt(this.pluginName, "plugin.off(event, callback)");
2637
2619
  return;
2638
2620
  }
2639
2621
  typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -2711,7 +2693,7 @@ var Te = /* @__PURE__ */ function() {
2711
2693
  var r = this, t = this.player, e = this.pluginName;
2712
2694
  this.offAll(), f.clearAllTimers(this), f.checkIsFunction(this.destroy) && this.destroy(), ["player", "playerConfig", "pluginName", "logger", "__args", "__hooks"].map(function(i) {
2713
2695
  r[i] = null;
2714
- }), t.unRegisterPlugin(e), fn(this);
2696
+ }), t.unRegisterPlugin(e), cn(this);
2715
2697
  }
2716
2698
  }], [{
2717
2699
  key: "defineGetterOrSetter",
@@ -2730,40 +2712,40 @@ var Te = /* @__PURE__ */ function() {
2730
2712
  return "pluginName";
2731
2713
  }
2732
2714
  }]), a;
2733
- }(), Rr = 9;
2715
+ }(), Lr = 9;
2734
2716
  if (typeof Element < "u" && !Element.prototype.matches) {
2735
2717
  var Oe = Element.prototype;
2736
2718
  Oe.matches = Oe.matchesSelector || Oe.mozMatchesSelector || Oe.msMatchesSelector || Oe.oMatchesSelector || Oe.webkitMatchesSelector;
2737
2719
  }
2738
- function Or(a, o) {
2739
- for (; a && a.nodeType !== Rr; ) {
2720
+ function Dr(a, o) {
2721
+ for (; a && a.nodeType !== Lr; ) {
2740
2722
  if (typeof a.matches == "function" && a.matches(o))
2741
2723
  return a;
2742
2724
  a = a.parentNode;
2743
2725
  }
2744
2726
  }
2745
- var Mr = Or, Fr = Mr;
2746
- function Et(a, o, r, t, e) {
2747
- var i = Br.apply(this, arguments);
2727
+ var Rr = Dr, Or = Rr;
2728
+ function wt(a, o, r, t, e) {
2729
+ var i = Fr.apply(this, arguments);
2748
2730
  return a.addEventListener(r, i, e), {
2749
2731
  destroy: function() {
2750
2732
  a.removeEventListener(r, i, e);
2751
2733
  }
2752
2734
  };
2753
2735
  }
2754
- function Nr(a, o, r, t, e) {
2755
- return typeof a.addEventListener == "function" ? Et.apply(null, arguments) : typeof r == "function" ? Et.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
2756
- return Et(i, o, r, t, e);
2736
+ function Mr(a, o, r, t, e) {
2737
+ return typeof a.addEventListener == "function" ? wt.apply(null, arguments) : typeof r == "function" ? wt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
2738
+ return wt(i, o, r, t, e);
2757
2739
  }));
2758
2740
  }
2759
- function Br(a, o, r, t) {
2741
+ function Fr(a, o, r, t) {
2760
2742
  return function(e) {
2761
- e.delegateTarget = Fr(e.target, o), e.delegateTarget && t.call(a, e);
2743
+ e.delegateTarget = Or(e.target, o), e.delegateTarget && t.call(a, e);
2762
2744
  };
2763
2745
  }
2764
- var Hr = Nr;
2765
- const _i = /* @__PURE__ */ Kt(Hr);
2766
- var Ur = {
2746
+ var Nr = Mr;
2747
+ const mi = /* @__PURE__ */ Wt(Nr);
2748
+ var Br = {
2767
2749
  CONTROLS: "controls",
2768
2750
  ROOT: "root"
2769
2751
  }, H = {
@@ -2776,29 +2758,29 @@ var Ur = {
2776
2758
  CONTROLS_RIGHT: "controlsRight",
2777
2759
  CONTROLS_CENTER: "controlsCenter",
2778
2760
  CONTROLS: "controls"
2779
- }, Ci = {
2761
+ }, yi = {
2780
2762
  ICON_DISABLE: "xg-icon-disable",
2781
2763
  ICON_HIDE: "xg-icon-hide"
2782
2764
  };
2783
- function St(a) {
2765
+ function Et(a) {
2784
2766
  return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
2785
2767
  }
2786
- function Vr(a, o) {
2787
- return Y(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
2768
+ function Hr(a, o) {
2769
+ return G(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
2788
2770
  }
2789
- function jr(a, o) {
2790
- return Y(a) === "object" && a.attr && Y(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
2771
+ function Ur(a, o) {
2772
+ return G(a) === "object" && a.attr && G(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
2791
2773
  o[r] = a.attr[r];
2792
2774
  }), o;
2793
2775
  }
2794
- function ki(a, o) {
2776
+ function _i(a, o) {
2795
2777
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, e = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : "", i = null;
2796
2778
  if (a instanceof window.Element)
2797
2779
  return f.addClass(a, r), Object.keys(t).map(function(n) {
2798
2780
  a.setAttribute(n, t[n]);
2799
2781
  }), a;
2800
- if (St(a) || St(a.url))
2801
- return t.src = St(a) ? a : a.url || "", i = f.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
2782
+ if (Et(a) || Et(a.url))
2783
+ return t.src = Et(a) ? a : a.url || "", i = f.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
2802
2784
  if (typeof a == "function")
2803
2785
  try {
2804
2786
  return i = a(), i instanceof window.Element ? (f.addClass(i, r), Object.keys(t).map(function(n) {
@@ -2809,14 +2791,14 @@ function ki(a, o) {
2809
2791
  }
2810
2792
  return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (D.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
2811
2793
  }
2812
- function zr(a, o) {
2794
+ function Vr(a, o) {
2813
2795
  var r = o.config.icons || o.playerConfig.icons;
2814
2796
  Object.keys(a).map(function(t) {
2815
2797
  var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
2816
- r && r[t] && (i = Vr(r[t], i), n = jr(r[t], n), s = ki(r[t], t, i, n, o.pluginName)), !s && e && (s = ki(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
2798
+ r && r[t] && (i = Hr(r[t], i), n = Ur(r[t], n), s = _i(r[t], t, i, n, o.pluginName)), !s && e && (s = _i(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
2817
2799
  });
2818
2800
  }
2819
- function Wr(a, o) {
2801
+ function jr(a, o) {
2820
2802
  Object.keys(a).map(function(r) {
2821
2803
  Object.defineProperty(o.langText, r, {
2822
2804
  get: function() {
@@ -2840,9 +2822,9 @@ var F = /* @__PURE__ */ function(a) {
2840
2822
  var i = e.root, n = null;
2841
2823
  this.icons = {}, this.root = null, this.parent = null;
2842
2824
  var s = this.registerIcons() || {};
2843
- zr(s, this), this.langText = {};
2825
+ Vr(s, this), this.langText = {};
2844
2826
  var l = this.registerLanguageTexts() || {};
2845
- Wr(l, this);
2827
+ jr(l, this);
2846
2828
  var u = "";
2847
2829
  try {
2848
2830
  u = this.render();
@@ -2867,11 +2849,11 @@ var F = /* @__PURE__ */ function(a) {
2867
2849
  if (this.root) {
2868
2850
  this._children = [];
2869
2851
  var i = this.children();
2870
- i && Y(i) === "object" && Object.keys(i).length > 0 && Object.keys(i).map(function(n) {
2852
+ i && G(i) === "object" && Object.keys(i).length > 0 && Object.keys(i).map(function(n) {
2871
2853
  var s = n, l = i[s], u = {
2872
2854
  root: e.root
2873
2855
  }, c, h;
2874
- typeof l == "function" ? (c = e.config[s] || {}, h = l) : Y(l) === "object" && typeof l.plugin == "function" && (c = l.options ? f.deepCopy(e.config[s] || {}, l.options) : e.config[s] || {}, h = l.plugin), u.config = c, c.index !== void 0 && (u.index = c.index), c.root && (u.root = c.root), e.registerPlugin(h, u, s);
2856
+ typeof l == "function" ? (c = e.config[s] || {}, h = l) : G(l) === "object" && typeof l.plugin == "function" && (c = l.options ? f.deepCopy(e.config[s] || {}, l.options) : e.config[s] || {}, h = l.plugin), u.config = c, c.index !== void 0 && (u.index = c.index), c.root && (u.root = c.root), e.registerPlugin(h, u, s);
2875
2857
  });
2876
2858
  }
2877
2859
  }
@@ -2913,12 +2895,12 @@ var F = /* @__PURE__ */ function(a) {
2913
2895
  }, {
2914
2896
  key: "disable",
2915
2897
  value: function() {
2916
- this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"), Ci.ICON_DISABLE);
2898
+ this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"), yi.ICON_DISABLE);
2917
2899
  }
2918
2900
  }, {
2919
2901
  key: "enable",
2920
2902
  value: function() {
2921
- this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"), Ci.ICON_DISABLE);
2903
+ this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"), yi.ICON_DISABLE);
2922
2904
  }
2923
2905
  }, {
2924
2906
  key: "children",
@@ -3099,11 +3081,11 @@ var F = /* @__PURE__ */ function(a) {
3099
3081
  if (e instanceof window.Node && typeof s == "function")
3100
3082
  if (Array.isArray(n))
3101
3083
  n.forEach(function(h) {
3102
- var d = _i(e, i, h, s, l);
3084
+ var d = mi(e, i, h, s, l);
3103
3085
  d.key = "".concat(i, "_").concat(h), u.push(d);
3104
3086
  });
3105
3087
  else {
3106
- var c = _i(e, i, n, s, l);
3088
+ var c = mi(e, i, n, s, l);
3107
3089
  c.key = "".concat(i, "_").concat(n), u.push(c);
3108
3090
  }
3109
3091
  return u;
@@ -3111,7 +3093,7 @@ var F = /* @__PURE__ */ function(a) {
3111
3093
  }, {
3112
3094
  key: "ROOT_TYPES",
3113
3095
  get: function() {
3114
- return Ur;
3096
+ return Br;
3115
3097
  }
3116
3098
  }, {
3117
3099
  key: "POSITIONS",
@@ -3119,7 +3101,7 @@ var F = /* @__PURE__ */ function(a) {
3119
3101
  return H;
3120
3102
  }
3121
3103
  }]), r;
3122
- }(Te), Gr = /* @__PURE__ */ function() {
3104
+ }(be), zr = /* @__PURE__ */ function() {
3123
3105
  function a() {
3124
3106
  var o = this;
3125
3107
  if (w(this, a), y(this, "__trigger", function(r) {
@@ -3129,7 +3111,7 @@ var F = /* @__PURE__ */ function(a) {
3129
3111
  o.__runHandler(r[e].target);
3130
3112
  }), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
3131
3113
  try {
3132
- this.observer = new window.ResizeObserver(pr(this.__trigger, 100, {
3114
+ this.observer = new window.ResizeObserver(dr(this.__trigger, 100, {
3133
3115
  trailing: !0
3134
3116
  })), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
3135
3117
  } catch (r) {
@@ -3141,7 +3123,7 @@ var F = /* @__PURE__ */ function(a) {
3141
3123
  value: function(r, t) {
3142
3124
  if (this.observer) {
3143
3125
  this.observer && this.observer.observe(r);
3144
- for (var e = r.getAttribute(Pe), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
3126
+ for (var e = r.getAttribute(xe), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
3145
3127
  i[s] && r === i[s].target && (n = s);
3146
3128
  n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
3147
3129
  target: r,
@@ -3184,17 +3166,17 @@ var F = /* @__PURE__ */ function(a) {
3184
3166
  }
3185
3167
  }]), a;
3186
3168
  }(), Ke = null;
3187
- function Kr(a, o) {
3188
- return Ke || (Ke = new Gr()), Ke.addObserver(a, o), Ke;
3169
+ function Wr(a, o) {
3170
+ return Ke || (Ke = new zr()), Ke.addObserver(a, o), Ke;
3189
3171
  }
3190
- function Yr(a, o) {
3172
+ function Gr(a, o) {
3191
3173
  Ke.unObserver(a, o);
3192
3174
  }
3193
3175
  var z = {
3194
3176
  pluginGroup: {},
3195
3177
  init: function(o) {
3196
3178
  var r = o._pluginInfoId;
3197
- r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && Kr(o.root, function() {
3179
+ r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && Wr(o.root, function() {
3198
3180
  o.resize();
3199
3181
  }), this.pluginGroup[r] = {
3200
3182
  _originalOptions: o.config || {},
@@ -3380,7 +3362,7 @@ var z = {
3380
3362
  destroy: function(o) {
3381
3363
  var r = o._pluginInfoId;
3382
3364
  if (this.pluginGroup[r]) {
3383
- Yr(o.root);
3365
+ Gr(o.root);
3384
3366
  for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
3385
3367
  var n = i[e];
3386
3368
  this.unRegister(r, n);
@@ -3419,7 +3401,7 @@ var z = {
3419
3401
  MOBILE: "xgplayer-mobile",
3420
3402
  MINI: "xgplayer-mini"
3421
3403
  };
3422
- function bi() {
3404
+ function Ci() {
3423
3405
  return {
3424
3406
  id: "",
3425
3407
  el: null,
@@ -3466,7 +3448,7 @@ function bi() {
3466
3448
  ignores: [],
3467
3449
  whitelist: [],
3468
3450
  inactive: 3e3,
3469
- lang: vr(),
3451
+ lang: gr(),
3470
3452
  controls: !0,
3471
3453
  marginControls: !1,
3472
3454
  fullscreenTarget: null,
@@ -3502,7 +3484,7 @@ function bi() {
3502
3484
  }
3503
3485
  };
3504
3486
  }
3505
- var $r = function(o, r) {
3487
+ var Kr = function(o, r) {
3506
3488
  var t, e, i;
3507
3489
  r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
3508
3490
  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;
@@ -3511,7 +3493,7 @@ var $r = function(o, r) {
3511
3493
  });
3512
3494
  var m = o.config.i18n || [];
3513
3495
  p.push.apply(p, ne(m)), o.config.i18n = p;
3514
- }, Xr = /* @__PURE__ */ function(a) {
3496
+ }, Yr = /* @__PURE__ */ function(a) {
3515
3497
  S(r, a);
3516
3498
  var o = x(r);
3517
3499
  function r() {
@@ -3672,7 +3654,7 @@ var $r = function(o, r) {
3672
3654
  };
3673
3655
  }
3674
3656
  }]), r;
3675
- }(F), qr = {
3657
+ }(F), $r = {
3676
3658
  LANG: "en",
3677
3659
  TEXT: {
3678
3660
  ERROR_TYPES: {
@@ -3762,12 +3744,12 @@ function $e(a, o) {
3762
3744
  t === "Object" ? (e !== "Object" && (a[r] = {}), $e(a[r], o[r])) : a[r] = o[r];
3763
3745
  }), a;
3764
3746
  }
3765
- function hn() {
3747
+ function fn() {
3766
3748
  Object.keys(Z.lang.en).map(function(a) {
3767
3749
  Z.textKeys[a] = a;
3768
3750
  });
3769
3751
  }
3770
- function Zr(a, o) {
3752
+ function Xr(a, o) {
3771
3753
  var r = [];
3772
3754
  if (o || (o = Z), !!o.lang) {
3773
3755
  f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
@@ -3779,18 +3761,18 @@ function Zr(a, o) {
3779
3761
  }) : r = a;
3780
3762
  var t = o, e = t.lang;
3781
3763
  r.map(function(i) {
3782
- i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? $e(e[i.LANG] || {}, i.TEXT || {}) : ii(i, o);
3783
- }), hn();
3764
+ i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? $e(e[i.LANG] || {}, i.TEXT || {}) : ei(i, o);
3765
+ }), fn();
3784
3766
  }
3785
3767
  }
3786
- function ii(a, o) {
3768
+ function ei(a, o) {
3787
3769
  var r = a.LANG;
3788
3770
  if (o || (o = Z), !!o.lang) {
3789
3771
  var t = a.TEXT || {};
3790
- r === "zh" && (r = "zh-cn"), o.lang[r] ? $e(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), hn();
3772
+ r === "zh" && (r = "zh-cn"), o.lang[r] ? $e(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), fn();
3791
3773
  }
3792
3774
  }
3793
- function Jr(a) {
3775
+ function qr(a) {
3794
3776
  var o, r = {
3795
3777
  lang: {},
3796
3778
  langKeys: [],
@@ -3799,7 +3781,7 @@ function Jr(a) {
3799
3781
  };
3800
3782
  return $e(r.lang, Z.lang), (o = r.langKeys).push.apply(o, ne(Z.langKeys)), $e(r.textKeys, Z.textKeys), r;
3801
3783
  }
3802
- ii(qr);
3784
+ ei($r);
3803
3785
  var Ve = {
3804
3786
  get textKeys() {
3805
3787
  return Z.textKeys;
@@ -3813,9 +3795,9 @@ var Ve = {
3813
3795
  a[o] = Z.lang[o];
3814
3796
  }), Z.lang["zh-cn"] && (a.zh = Z.lang["zh-cn"] || {}), a;
3815
3797
  },
3816
- extend: Zr,
3817
- use: ii,
3818
- init: Jr
3798
+ extend: Xr,
3799
+ use: ei,
3800
+ init: qr
3819
3801
  }, O = {
3820
3802
  INITIAL: 1,
3821
3803
  READY: 2,
@@ -3825,7 +3807,7 @@ var Ve = {
3825
3807
  RUNNING: 6,
3826
3808
  ENDED: 7,
3827
3809
  DESTROYED: 8
3828
- }, Ti = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], X = {}, xt = null, dn = /* @__PURE__ */ function(a) {
3810
+ }, ki = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], Y = {}, St = null, hn = /* @__PURE__ */ function(a) {
3829
3811
  S(r, a);
3830
3812
  var o = x(r);
3831
3813
  function r() {
@@ -3834,20 +3816,20 @@ var Ve = {
3834
3816
  return E(r, [{
3835
3817
  key: "add",
3836
3818
  value: function(e) {
3837
- e && (X[e.playerId] = e, Object.keys(X).length === 1 && this.setActive(e.playerId, !0));
3819
+ e && (Y[e.playerId] = e, Object.keys(Y).length === 1 && this.setActive(e.playerId, !0));
3838
3820
  }
3839
3821
  }, {
3840
3822
  key: "remove",
3841
3823
  value: function(e) {
3842
- e && (e.isUserActive, delete X[e.playerId]);
3824
+ e && (e.isUserActive, delete Y[e.playerId]);
3843
3825
  }
3844
3826
  }, {
3845
3827
  key: "_iterate",
3846
3828
  value: function(e) {
3847
3829
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
3848
- for (var n in X)
3849
- if (Object.prototype.hasOwnProperty.call(X, n)) {
3850
- var s = X[n];
3830
+ for (var n in Y)
3831
+ if (Object.prototype.hasOwnProperty.call(Y, n)) {
3832
+ var s = Y[n];
3851
3833
  if (i) {
3852
3834
  if (e(s))
3853
3835
  break;
@@ -3881,16 +3863,16 @@ var Ve = {
3881
3863
  key: "setActive",
3882
3864
  value: function(e) {
3883
3865
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
3884
- if (X[e])
3866
+ if (Y[e])
3885
3867
  return i ? this.forEach(function(n) {
3886
3868
  e === n.playerId ? (n.isUserActive = !0, n.isInstNext = !1) : n.isUserActive = !1;
3887
- }) : X[e].isUserActive = i, e;
3869
+ }) : Y[e].isUserActive = i, e;
3888
3870
  }
3889
3871
  }, {
3890
3872
  key: "getActiveId",
3891
3873
  value: function() {
3892
- for (var e = Object.keys(X), i = 0; i < e.length; i++) {
3893
- var n = X[e[i]];
3874
+ for (var e = Object.keys(Y), i = 0; i < e.length; i++) {
3875
+ var n = Y[e[i]];
3894
3876
  if (n && n.isUserActive)
3895
3877
  return e[i];
3896
3878
  }
@@ -3900,33 +3882,33 @@ var Ve = {
3900
3882
  key: "setNext",
3901
3883
  value: function(e) {
3902
3884
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
3903
- if (X[e])
3885
+ if (Y[e])
3904
3886
  return i ? this.forEach(function(n) {
3905
3887
  e === n.playerId ? (n.isUserActive = !1, n.isInstNext = !0) : n.isInstNext = !1;
3906
- }) : X[e].isInstNext = i, e;
3888
+ }) : Y[e].isInstNext = i, e;
3907
3889
  }
3908
3890
  }], [{
3909
3891
  key: "getInstance",
3910
3892
  value: function() {
3911
- return xt || (xt = new r()), xt;
3893
+ return St || (St = new r()), St;
3912
3894
  }
3913
3895
  }]), r;
3914
- }(zi.EventEmitter);
3915
- function Qr(a) {
3916
- for (var o = Object.keys(X), r = 0; r < o.length; r++) {
3917
- var t = X[o[r]];
3896
+ }(ji.EventEmitter);
3897
+ function Zr(a) {
3898
+ for (var o = Object.keys(Y), r = 0; r < o.length; r++) {
3899
+ var t = Y[o[r]];
3918
3900
  if (t.root === a)
3919
3901
  return t;
3920
3902
  }
3921
3903
  return null;
3922
3904
  }
3923
- var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /* @__PURE__ */ function(a) {
3905
+ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /* @__PURE__ */ function(a) {
3924
3906
  S(r, a);
3925
3907
  var o = x(r);
3926
3908
  function r(t) {
3927
3909
  var e;
3928
3910
  w(this, r);
3929
- var i = f.deepMerge(bi(), t);
3911
+ var i = f.deepMerge(Ci(), t);
3930
3912
  e = o.call(this, i), y(v(e), "canPlayFunc", function() {
3931
3913
  if (e.config) {
3932
3914
  var p = e.config, m = p.autoplay, _ = p.defaultPlaybackRate;
@@ -3950,7 +3932,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
3950
3932
  to: !1
3951
3933
  }]
3952
3934
  });
3953
- var T = mr(k, e.playerId, Pe);
3935
+ var T = pr(k, e.playerId, xe);
3954
3936
  if (m || k && (k === e._fullscreenEl || T))
3955
3937
  _(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(ue, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
3956
3938
  else if (e.fullscreen) {
@@ -3970,7 +3952,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
3970
3952
  e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
3971
3953
  }), y(v(e), "_onWebkitendfullscreen", function(p) {
3972
3954
  e.onFullscreenChange(p, !1);
3973
- }), cn(v(e), es), e.config = i, e._pluginInfoId = f.generateSessionId(), fr(v(e));
3955
+ }), un(v(e), Jr), e.config = i, e._pluginInfoId = f.generateSessionId(), ur(v(e));
3974
3956
  var n = e.constructor.defaultPreset;
3975
3957
  if (e.config.presets.length) {
3976
3958
  var s = e.config.presets.indexOf("default");
@@ -3999,12 +3981,12 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
3999
3981
  }, e._offsetInfo = {
4000
3982
  currentTime: -1,
4001
3983
  duration: 0
4002
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ve.init(e._pluginInfoId), L.os.isAndroid && L.osVersion > 0 && L.osVersion < 6 && (e.config.autoplay = !1), e.database = new Dr(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
3984
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ve.init(e._pluginInfoId), L.os.isAndroid && L.osVersion > 0 && L.osVersion < 6 && (e.config.autoplay = !1), e.database = new Ar(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
4003
3985
  isActiveLocked: !1
4004
3986
  }, e.instManager = me;
4005
3987
  var l = e._initDOM();
4006
3988
  if (!l)
4007
- return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), $t(e);
3989
+ return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), Kt(e);
4008
3990
  var u = e.config, c = u.definition, h = c === void 0 ? {} : c, d = u.url;
4009
3991
  if (!d && h.list && h.list.length > 0) {
4010
3992
  var g = h.list.find(function(p) {
@@ -4013,7 +3995,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4013
3995
  g || (h.defaultDefinition = h.list[0].definition, g = h.list[0]), e.config.url = g.url, e.curDefinition = g;
4014
3996
  }
4015
3997
  return e._bindEvents(), e._registerPresets(), e._registerPlugins(), z.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(O.READY), f.setTimeout(v(e), function() {
4016
- e.emit(Jt);
3998
+ e.emit(qt);
4017
3999
  }, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < O.ATTACHED) && e.start(), e;
4018
4000
  }
4019
4001
  return E(r, [{
@@ -4031,8 +4013,8 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4031
4013
  msg: "container id can't be empty"
4032
4014
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
4033
4015
  }
4034
- var s = Qr(this.root);
4035
- s && (D.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Pe, this.playerId), (e = me) === null || e === void 0 || e.add(this), z.init(this), this._initBaseDoms();
4016
+ var s = Zr(this.root);
4017
+ s && (D.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(xe, this.playerId), (e = me) === null || e === void 0 || e.add(this), z.init(this), this._initBaseDoms();
4036
4018
  var l = this.constructor.XgVideoProxy;
4037
4019
  if (l && this.mediaConfig.mediaType === l.mediaType) {
4038
4020
  var u = this.innerContainer || this.root;
@@ -4040,8 +4022,8 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4040
4022
  var c = new l(u, this.config, this.mediaConfig);
4041
4023
  this.attachVideoEvents(c), this.media = c;
4042
4024
  }
4043
- if (this.media.setAttribute(Pe, this.playerId), this.config.controls) {
4044
- var h = this.config.controls.root || null, d = z.register(this, Xr, {
4025
+ if (this.media.setAttribute(xe, this.playerId), this.config.controls) {
4026
+ var h = this.config.controls.root || null, d = z.register(this, Yr, {
4045
4027
  root: h
4046
4028
  });
4047
4029
  this.controls = d;
@@ -4079,7 +4061,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4079
4061
  var e = this;
4080
4062
  ["focus", "blur"].forEach(function(i) {
4081
4063
  e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
4082
- }), gi.forEach(function(i) {
4064
+ }), hi.forEach(function(i) {
4083
4065
  document && document.addEventListener(i, e.onFullscreenChange);
4084
4066
  }), L.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(ve, this.resize), this.playFunc = function() {
4085
4067
  e.config.closeFocusVideoFocus || e.media.focus();
@@ -4089,7 +4071,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4089
4071
  key: "_unbindEvents",
4090
4072
  value: function() {
4091
4073
  var e = this;
4092
- this.root.removeEventListener("mousemove", this.mousemoveFunc), gi.forEach(function(i) {
4074
+ this.root.removeEventListener("mousemove", this.mousemoveFunc), hi.forEach(function(i) {
4093
4075
  document.removeEventListener(i, e.onFullscreenChange);
4094
4076
  }), this.playFunc && this.off(Q, this.playFunc), this.off(de, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
4095
4077
  }
@@ -4102,7 +4084,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4102
4084
  key: "_startInit",
4103
4085
  value: function(e) {
4104
4086
  var i = this;
4105
- if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(qi), D.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
4087
+ if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Xi), D.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
4106
4088
  this.handleSource && (this._detachSourceEvents(this.media), f.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), f.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
4107
4089
  var n = this.innerContainer ? this.innerContainer : this.root;
4108
4090
  this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
@@ -4149,7 +4131,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4149
4131
  value: function() {
4150
4132
  var e = this;
4151
4133
  this.config.presets.forEach(function(i) {
4152
- $r(e, i);
4134
+ Kr(e, i);
4153
4135
  });
4154
4136
  }
4155
4137
  }, {
@@ -4185,7 +4167,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4185
4167
  }, {
4186
4168
  key: "deregister",
4187
4169
  value: function(e) {
4188
- typeof e == "string" ? z.unRegister(this, e) : e instanceof Te && z.unRegister(this, e.pluginName);
4170
+ typeof e == "string" ? z.unRegister(this, e) : e instanceof be && z.unRegister(this, e.pluginName);
4189
4171
  }
4190
4172
  }, {
4191
4173
  key: "unRegisterPlugin",
@@ -4197,7 +4179,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4197
4179
  key: "removePluginFromConfig",
4198
4180
  value: function(e) {
4199
4181
  var i;
4200
- if (typeof e == "string" ? i = e : e instanceof Te && (i = e.pluginName), !!i)
4182
+ if (typeof e == "string" ? i = e : e instanceof be && (i = e.pluginName), !!i)
4201
4183
  for (var n = this.config.plugins.length - 1; n > -1; n--) {
4202
4184
  var s = this.config.plugins[n];
4203
4185
  if (s.pluginName.toLowerCase() === i.toLowerCase()) {
@@ -4305,7 +4287,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4305
4287
  return;
4306
4288
  }
4307
4289
  n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
4308
- e._errorTimer = null, e.emit(Qt), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(O.NOTALLOW);
4290
+ e._errorTimer = null, e.emit(Zt), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(O.NOTALLOW);
4309
4291
  }, 0));
4310
4292
  }) : (D.logWarn("video.play not return promise"), this.state < O.RUNNING && (this.setState(O.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(Ie))), i;
4311
4293
  }
@@ -4370,7 +4352,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4370
4352
  var n = this, s = this.config.definition;
4371
4353
  if (Array.isArray(s == null ? void 0 : s.list) && s.list.forEach(function(u) {
4372
4354
  (e == null ? void 0 : e.definition) === u.definition && (n.curDefinition = u);
4373
- }), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(ti, {
4355
+ }), e != null && e.bitrate && typeof e.bitrate != "number" && (e.bitrate = parseInt(e.bitrate, 10) || 0), this.emit(Qt, {
4374
4356
  from: i,
4375
4357
  to: e
4376
4358
  }), !this.hasStart) {
@@ -4381,11 +4363,11 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4381
4363
  seamless: s.seamless !== !1 && typeof MediaSource < "u" && typeof MediaSource.isTypeSupported == "function"
4382
4364
  }, e));
4383
4365
  l && l.then ? l.then(function() {
4384
- n.emit(zt, {
4366
+ n.emit(Vt, {
4385
4367
  from: i,
4386
4368
  to: e
4387
4369
  });
4388
- }) : this.emit(zt, {
4370
+ }) : this.emit(Vt, {
4389
4371
  from: i,
4390
4372
  to: e
4391
4373
  });
@@ -4414,7 +4396,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4414
4396
  if (s && (i.map(function(u) {
4415
4397
  e.deregister(u);
4416
4398
  }), n)) {
4417
- var l = bi();
4399
+ var l = Ci();
4418
4400
  Object.keys(this.config).keys(function(u) {
4419
4401
  e.config[u] !== "undefined" && (u === "plugins" || u === "presets" || u === "el" || u === "id") && (e.config[u] = l[u]);
4420
4402
  });
@@ -4425,7 +4407,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4425
4407
  value: function() {
4426
4408
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
4427
4409
  if (!(!s || !l)) {
4428
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Pe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(ei), (e = me) === null || e === void 0 || e.remove(this), z.destroy(this), fn(this), I(P(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
4410
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(xe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(Jt), (e = me) === null || e === void 0 || e.remove(this), z.destroy(this), cn(this), I(P(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
4429
4411
  for (var u = n.children, c = 0; c < u.length; c++)
4430
4412
  n.removeChild(u[c]);
4431
4413
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -4468,12 +4450,12 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4468
4450
  }, {
4469
4451
  key: "changeFullStyle",
4470
4452
  value: function(e, i, n, s) {
4471
- e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(Pe, this.playerId)));
4453
+ e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(xe, this.playerId)));
4472
4454
  }
4473
4455
  }, {
4474
4456
  key: "recoverFullStyle",
4475
4457
  value: function(e, i, n, s) {
4476
- s || (s = C.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(Pe));
4458
+ s || (s = C.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(xe));
4477
4459
  }
4478
4460
  }, {
4479
4461
  key: "getFullscreen",
@@ -4487,8 +4469,8 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4487
4469
  if (s === this._fullscreenEl)
4488
4470
  return this.onFullscreenChange(), Promise.resolve();
4489
4471
  try {
4490
- for (var l = 0; l < pi.length; l++) {
4491
- var u = pi[l];
4472
+ for (var l = 0; l < di.length; l++) {
4473
+ var u = di[l];
4492
4474
  if (e[u]) {
4493
4475
  var c = u === "webkitRequestFullscreen" ? e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT) : e[u]();
4494
4476
  return c && c.then ? c : Promise.resolve();
@@ -4507,8 +4489,8 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4507
4489
  var i = this.media;
4508
4490
  this._fullActionFrom = "exit";
4509
4491
  try {
4510
- for (var n = 0; n < vi.length; n++) {
4511
- var s = vi[n];
4492
+ for (var n = 0; n < gi.length; n++) {
4493
+ var s = gi[n];
4512
4494
  if (document[s]) {
4513
4495
  var l = document[s]();
4514
4496
  return l && l.then ? l : Promise.resolve();
@@ -4572,7 +4554,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4572
4554
  this.onFocus(e);
4573
4555
  return;
4574
4556
  }
4575
- this.emit(Zt, V({
4557
+ this.emit(Xt, V({
4576
4558
  paused: this.paused,
4577
4559
  ended: this.ended
4578
4560
  }, e));
@@ -4587,7 +4569,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4587
4569
  this.onBlur(e);
4588
4570
  return;
4589
4571
  }
4590
- this._clearUserTimer(), this.emit(Xi, V({
4572
+ this._clearUserTimer(), this.emit($i, V({
4591
4573
  paused: this.paused,
4592
4574
  ended: this.ended
4593
4575
  }, e));
@@ -4672,7 +4654,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4672
4654
  value: function() {
4673
4655
  var e = this;
4674
4656
  this.waitTimer && f.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = f.setTimeout(this, function() {
4675
- e.addClass(C.LOADING), e.emit(Qi), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
4657
+ e.addClass(C.LOADING), e.emit(Ji), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
4676
4658
  }, this.config.minWaitDelay);
4677
4659
  }
4678
4660
  }, {
@@ -4815,7 +4797,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4815
4797
  cWidth: k,
4816
4798
  cHeight: T + d
4817
4799
  };
4818
- this.resizePosition(), this.emit(be, N);
4800
+ this.resizePosition(), this.emit(ke, N);
4819
4801
  }
4820
4802
  }
4821
4803
  }
@@ -4832,7 +4814,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4832
4814
  }, {
4833
4815
  key: "setState",
4834
4816
  value: function(e) {
4835
- D.logInfo("setState", "state from:".concat(Ti[this.state], " to:").concat(Ti[e])), this._state = e;
4817
+ D.logInfo("setState", "state from:".concat(ki[this.state], " to:").concat(ki[e])), this._state = e;
4836
4818
  }
4837
4819
  }, {
4838
4820
  key: "_preProcessUrl",
@@ -4929,7 +4911,7 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4929
4911
  }, {
4930
4912
  key: "version",
4931
4913
  get: function() {
4932
- return Vt;
4914
+ return Ht;
4933
4915
  }
4934
4916
  }, {
4935
4917
  key: "playerId",
@@ -4998,18 +4980,18 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
4998
4980
  }, {
4999
4981
  key: "avgSpeed",
5000
4982
  get: function() {
5001
- return Ei;
4983
+ return Ti;
5002
4984
  },
5003
4985
  set: function(e) {
5004
- Ei = e;
4986
+ Ti = e;
5005
4987
  }
5006
4988
  }, {
5007
4989
  key: "realTimeSpeed",
5008
4990
  get: function() {
5009
- return wi;
4991
+ return bi;
5010
4992
  },
5011
4993
  set: function(e) {
5012
- wi = e;
4994
+ bi = e;
5013
4995
  }
5014
4996
  }, {
5015
4997
  key: "offsetCurrentTime",
@@ -5047,14 +5029,14 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
5047
5029
  value: function(e, i, n) {
5048
5030
  for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
5049
5031
  l[u - 3] = arguments[u];
5050
- return mi.call.apply(mi, [this].concat(Array.prototype.slice.call(arguments)));
5032
+ return pi.call.apply(pi, [this].concat(Array.prototype.slice.call(arguments)));
5051
5033
  }
5052
5034
  }, {
5053
5035
  key: "removePluginHooks",
5054
5036
  value: function(e, i, n) {
5055
5037
  for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
5056
5038
  l[u - 3] = arguments[u];
5057
- return yi.call.apply(yi, [this].concat(Array.prototype.slice.call(arguments)));
5039
+ return vi.call.apply(vi, [this].concat(Array.prototype.slice.call(arguments)));
5058
5040
  }
5059
5041
  }, {
5060
5042
  key: "setUserActive",
@@ -5111,11 +5093,11 @@ var es = ["play", "pause", "replay", "retry"], wi = 0, Ei = 0, me = null, _t = /
5111
5093
  r.plugins || (r.plugins = {}), r.plugins[e] = i;
5112
5094
  }
5113
5095
  }]), r;
5114
- }(Lr);
5096
+ }(Ir);
5115
5097
  y(_t, "defaultPreset", null);
5116
5098
  y(_t, "XgVideoProxy", null);
5117
- _t.instManager = dn.getInstance();
5118
- function G() {
5099
+ _t.instManager = hn.getInstance();
5100
+ function W() {
5119
5101
  return (/* @__PURE__ */ new Date()).getTime();
5120
5102
  }
5121
5103
  var ye = {
@@ -5126,7 +5108,7 @@ var ye = {
5126
5108
  WAIT_END: "waitingEnd",
5127
5109
  SEEK_START: "seekStart",
5128
5110
  SEEK_END: "seekEnd"
5129
- }, ts = /* @__PURE__ */ function(a) {
5111
+ }, Qr = /* @__PURE__ */ function(a) {
5130
5112
  S(r, a);
5131
5113
  var o = x(r);
5132
5114
  function r() {
@@ -5145,23 +5127,23 @@ var ye = {
5145
5127
  isTimeUpdate: !1,
5146
5128
  isFFSend: !1,
5147
5129
  isLs: !1
5148
- }, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = G(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && f.clearTimeout(v(t), t._waitTimer), t._waittTimer && f.clearTimeout(v(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
5130
+ }, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = W(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && f.clearTimeout(v(t), t._waitTimer), t._waittTimer && f.clearTimeout(v(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
5149
5131
  }), y(v(t), "_onSeeking", function() {
5150
- t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = G(), t.emitLog(ye.SEEK_START, {
5151
- start: G()
5132
+ t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = W(), t.emitLog(ye.SEEK_START, {
5133
+ start: W()
5152
5134
  }));
5153
5135
  }), y(v(t), "_onSeeked", function() {
5154
5136
  t.suspendSeekingStatus("seeked");
5155
5137
  }), y(v(t), "_onWaitingLoadStart", function() {
5156
- t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = G(), t.fixedWaitingStart = G(), t._waitType = 1, t.emitLog(ye.WAIT_START, {
5138
+ t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = W(), t.fixedWaitingStart = W(), t._waitType = 1, t.emitLog(ye.WAIT_START, {
5157
5139
  fixedStart: t.fixedWaitingStart,
5158
5140
  start: t.waitingStart,
5159
5141
  type: 1,
5160
5142
  endType: "loadstart"
5161
5143
  }));
5162
5144
  }), y(v(t), "_onWaiting", function() {
5163
- t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = G(), t._waitTimer = f.setTimeout(v(t), function() {
5164
- t._isWaiting && (t.waitingStart = G(), f.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(ye.WAIT_START, {
5145
+ t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = W(), t._waitTimer = f.setTimeout(v(t), function() {
5146
+ t._isWaiting && (t.waitingStart = W(), f.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(ye.WAIT_START, {
5165
5147
  fixedStart: t.fixedWaitingStart,
5166
5148
  start: t.waitingStart,
5167
5149
  type: t._waitType,
@@ -5178,18 +5160,18 @@ var ye = {
5178
5160
  key: "afterCreate",
5179
5161
  value: function() {
5180
5162
  var e = this;
5181
- this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = G(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(qt, function() {
5163
+ this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = W(), this.loadedCostTime = 0, this.startCostTime = 0, this.on($t, function() {
5182
5164
  var i = e._state, n = i.autoplayStart, s = i.isFFSend;
5183
- e.startCostTime = G() - e.newPointTime, D.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(ye.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = G(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
5165
+ e.startCostTime = W() - e.newPointTime, D.logInfo("[xgLogger]".concat(e.player.playerId, " LOAD_START"), "autoplayStart:".concat(n, " isFFSend:").concat(s, " startCostTime:").concat(e.startCostTime, " newPointTime").concat(e.newPointTime)), !s && (!i.isLs && e.emitLog(ye.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = W(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
5184
5166
  }), this.on(ve, function() {
5185
- e.vt = G(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
5167
+ e.vt = W(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
5186
5168
  var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
5187
5169
  D.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(ye.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
5188
- }), this.on(pt, this._onSeeking), this.on(ge, this._onSeeked), this.on(ei, function() {
5170
+ }), this.on(pt, this._onSeeking), this.on(ge, this._onSeeked), this.on(Jt, function() {
5189
5171
  e.endState("destroy");
5190
5172
  }), this.on(mt, function() {
5191
5173
  e.endState("urlChange"), D.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
5192
- }), this.on([Xt, de], this._onPlaying), this.on(Ze, this._onWaiting), this.on(qe, this._onError), this.on(yt, function() {
5174
+ }), this.on([Yt, de], this._onPlaying), this.on(Ze, this._onWaiting), this.on(qe, this._onError), this.on(yt, function() {
5193
5175
  D.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
5194
5176
  });
5195
5177
  }
@@ -5201,7 +5183,7 @@ var ye = {
5201
5183
  }, {
5202
5184
  key: "_sendFF",
5203
5185
  value: function(e) {
5204
- this.s = G();
5186
+ this.s = W();
5205
5187
  var i = this._state, n = i.isFFLoading, s = i.isFFSend;
5206
5188
  D.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && (D.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(ye.FIRST_FRAME, {
5207
5189
  fvt: this.fvt,
@@ -5228,7 +5210,7 @@ var ye = {
5228
5210
  key: "suspendSeekingStatus",
5229
5211
  value: function(e) {
5230
5212
  if (this.seekingStart) {
5231
- var i = G(), n = i - this.seekingStart;
5213
+ var i = W(), n = i - this.seekingStart;
5232
5214
  this.seekingStart = 0, this.emitLog(ye.SEEK_END, {
5233
5215
  end: i,
5234
5216
  costTime: n,
@@ -5240,7 +5222,7 @@ var ye = {
5240
5222
  key: "suspendWaitingStatus",
5241
5223
  value: function(e) {
5242
5224
  if (this._waitTimer && (f.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (f.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
5243
- var i = G(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
5225
+ var i = W(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
5244
5226
  this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(ye.WAIT_END, {
5245
5227
  fixedCostTime: s > l ? l : s,
5246
5228
  costTime: n > l ? l : n,
@@ -5253,8 +5235,8 @@ var ye = {
5253
5235
  key: "emitLog",
5254
5236
  value: function(e, i) {
5255
5237
  var n = this.player;
5256
- this.emit(rn, V({
5257
- t: G(),
5238
+ this.emit(nn, V({
5239
+ t: W(),
5258
5240
  host: f.getHostFromUrl(n.currentSrc),
5259
5241
  vtype: n.vtype,
5260
5242
  eventType: e,
@@ -5277,13 +5259,13 @@ var ye = {
5277
5259
  }
5278
5260
  }]), r;
5279
5261
  }(F);
5280
- function is() {
5262
+ function es() {
5281
5263
  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">
5282
5264
  <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>
5283
5265
  </svg>
5284
5266
  `, "image/svg+xml").firstChild;
5285
5267
  }
5286
- var ns = /* @__PURE__ */ function(a) {
5268
+ var ts = /* @__PURE__ */ function(a) {
5287
5269
  S(r, a);
5288
5270
  var o = x(r);
5289
5271
  function r() {
@@ -5293,7 +5275,7 @@ var ns = /* @__PURE__ */ function(a) {
5293
5275
  key: "registerIcons",
5294
5276
  value: function() {
5295
5277
  return {
5296
- replay: is
5278
+ replay: es
5297
5279
  };
5298
5280
  }
5299
5281
  }, {
@@ -5366,7 +5348,7 @@ var ns = /* @__PURE__ */ function(a) {
5366
5348
  };
5367
5349
  }
5368
5350
  }]), r;
5369
- }(F), rs = /* @__PURE__ */ function(a) {
5351
+ }(F), is = /* @__PURE__ */ function(a) {
5370
5352
  S(r, a);
5371
5353
  var o = x(r);
5372
5354
  function r() {
@@ -5478,20 +5460,20 @@ var ns = /* @__PURE__ */ function(a) {
5478
5460
  }
5479
5461
  }]), r;
5480
5462
  }(F);
5481
- function ni() {
5463
+ function ti() {
5482
5464
  return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
5483
5465
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
5484
5466
  </svg>
5485
5467
  `, "image/svg+xml").firstChild;
5486
5468
  }
5487
- function ri() {
5469
+ function ii() {
5488
5470
  return new DOMParser().parseFromString(`<svg class="pause" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
5489
5471
  <path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
5490
5472
  </svg>
5491
5473
  `, "image/svg+xml").firstChild;
5492
5474
  }
5493
5475
  var oe = {};
5494
- function ss(a, o) {
5476
+ function ns(a, o) {
5495
5477
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
5496
5478
  start: null,
5497
5479
  end: null
@@ -5500,7 +5482,7 @@ function ss(a, o) {
5500
5482
  r.end && r.end(), window.clearTimeout(oe[a].id), delete oe[a];
5501
5483
  }, o), oe[a].id;
5502
5484
  }
5503
- function Si(a) {
5485
+ function wi(a) {
5504
5486
  if (a) {
5505
5487
  window.clearTimeout(a);
5506
5488
  return;
@@ -5509,7 +5491,7 @@ function Si(a) {
5509
5491
  window.clearTimeout(oe[o].id), delete oe[o];
5510
5492
  });
5511
5493
  }
5512
- var os = /* @__PURE__ */ function(a) {
5494
+ var rs = /* @__PURE__ */ function(a) {
5513
5495
  S(r, a);
5514
5496
  var o = x(r);
5515
5497
  function r(t) {
@@ -5529,9 +5511,9 @@ var os = /* @__PURE__ */ function(a) {
5529
5511
  key: "afterCreate",
5530
5512
  value: function() {
5531
5513
  var e = this, i = this.player, n = this.playerConfig;
5532
- this.initIcons(), this.once(Jt, function() {
5514
+ this.initIcons(), this.once(qt, function() {
5533
5515
  n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
5534
- }), this.on(Ie, this.onAutoplayStart), n.autoplay || this.show(), this.on(Qt, function() {
5516
+ }), this.on(Ie, this.onAutoplayStart), n.autoplay || this.show(), this.on(Zt, function() {
5535
5517
  var s = e.config.mode === "auto" ? "auto-hide" : "hide";
5536
5518
  e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
5537
5519
  }), this.on(Q, function() {
@@ -5557,11 +5539,11 @@ var os = /* @__PURE__ */ function(a) {
5557
5539
  value: function() {
5558
5540
  return {
5559
5541
  startPlay: {
5560
- icon: ni,
5542
+ icon: ti,
5561
5543
  class: "xg-icon-play"
5562
5544
  },
5563
5545
  startPause: {
5564
- icon: ri,
5546
+ icon: ii,
5565
5547
  class: "xg-icon-pause"
5566
5548
  }
5567
5549
  };
@@ -5601,7 +5583,7 @@ var os = /* @__PURE__ */ function(a) {
5601
5583
  key: "animate",
5602
5584
  value: function(e) {
5603
5585
  var i = this;
5604
- this._animateId = ss("pauseplay", 400, {
5586
+ this._animateId = ns("pauseplay", 400, {
5605
5587
  start: function() {
5606
5588
  f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
5607
5589
  },
@@ -5613,7 +5595,7 @@ var os = /* @__PURE__ */ function(a) {
5613
5595
  }, {
5614
5596
  key: "endAnimate",
5615
5597
  value: function() {
5616
- f.removeClass(this.root, "interact"), Si(this._animateId), this._animateId = null;
5598
+ f.removeClass(this.root, "interact"), wi(this._animateId), this._animateId = null;
5617
5599
  }
5618
5600
  }, {
5619
5601
  key: "switchPausePlay",
@@ -5657,7 +5639,7 @@ var os = /* @__PURE__ */ function(a) {
5657
5639
  }, {
5658
5640
  key: "destroy",
5659
5641
  value: function() {
5660
- this.unbind(["click", "touchend"], this.clickHandler), Si(this._animateId);
5642
+ this.unbind(["click", "touchend"], this.clickHandler), wi(this._animateId);
5661
5643
  }
5662
5644
  }, {
5663
5645
  key: "render",
@@ -5684,7 +5666,7 @@ var os = /* @__PURE__ */ function(a) {
5684
5666
  };
5685
5667
  }
5686
5668
  }]), r;
5687
- }(F), as = /* @__PURE__ */ function(a) {
5669
+ }(F), ss = /* @__PURE__ */ function(a) {
5688
5670
  S(r, a);
5689
5671
  var o = x(r);
5690
5672
  function r() {
@@ -5720,7 +5702,7 @@ var os = /* @__PURE__ */ function(a) {
5720
5702
  }
5721
5703
  }]), r;
5722
5704
  }(F);
5723
- function Ee(a, o, r) {
5705
+ function we(a, o, r) {
5724
5706
  try {
5725
5707
  return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(a.i18nKeys[o], `">
5726
5708
  `).concat(a.i18n[o], `
@@ -5729,7 +5711,7 @@ function Ee(a, o, r) {
5729
5711
  return '<div class="xg-tips hide"></div>';
5730
5712
  }
5731
5713
  }
5732
- var xi = /* @__PURE__ */ function(a) {
5714
+ var Ei = /* @__PURE__ */ function(a) {
5733
5715
  S(r, a);
5734
5716
  var o = x(r);
5735
5717
  function r() {
@@ -5779,12 +5761,12 @@ var xi = /* @__PURE__ */ function(a) {
5779
5761
  }
5780
5762
  }]), r;
5781
5763
  }(F);
5782
- function Pi(a) {
5764
+ function Si(a) {
5783
5765
  var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
5784
5766
  return r && o;
5785
5767
  }
5786
- var si = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], gn = si.length;
5787
- function ls() {
5768
+ var ni = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], dn = ni.length;
5769
+ function os() {
5788
5770
  for (var a = {
5789
5771
  width: 0,
5790
5772
  height: 0,
@@ -5792,49 +5774,49 @@ function ls() {
5792
5774
  innerHeight: 0,
5793
5775
  outerWidth: 0,
5794
5776
  outerHeight: 0
5795
- }, o = 0; o < gn; o++) {
5796
- var r = si[o];
5777
+ }, o = 0; o < dn; o++) {
5778
+ var r = ni[o];
5797
5779
  a[r] = 0;
5798
5780
  }
5799
5781
  return a;
5800
5782
  }
5801
- function us(a) {
5783
+ function as(a) {
5802
5784
  var o = window.getComputedStyle(a);
5803
5785
  return o;
5804
5786
  }
5805
- function Ii(a) {
5806
- if (typeof a == "string" && (a = document.querySelector(a)), !(!a || Y(a) !== "object" || !a.nodeType)) {
5807
- var o = us(a);
5787
+ function xi(a) {
5788
+ if (typeof a == "string" && (a = document.querySelector(a)), !(!a || G(a) !== "object" || !a.nodeType)) {
5789
+ var o = as(a);
5808
5790
  if (o.display === "none")
5809
- return ls();
5791
+ return os();
5810
5792
  var r = {};
5811
5793
  r.width = a.offsetWidth, r.height = a.offsetHeight;
5812
- for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < gn; e++) {
5813
- var i = si[e], n = o[i], s = parseFloat(n);
5794
+ for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < dn; e++) {
5795
+ var i = ni[e], n = o[i], s = parseFloat(n);
5814
5796
  r[i] = Number.isNaN(s) ? 0 : s;
5815
5797
  }
5816
- var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = Pi(o.width);
5798
+ var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, g = r.borderTopWidth + r.borderBottomWidth, p = t, m = Si(o.width);
5817
5799
  m !== !1 && (r.width = m + (p ? 0 : l + d));
5818
- var _ = Pi(o.height);
5800
+ var _ = Si(o.height);
5819
5801
  return _ !== !1 && (r.height = _ + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
5820
5802
  }
5821
5803
  }
5822
- function Pt(a, o) {
5804
+ function xt(a, o) {
5823
5805
  for (var r = 0; r < a.length; r++) {
5824
5806
  var t = a[r];
5825
5807
  if (t.identifier === o)
5826
5808
  return t;
5827
5809
  }
5828
5810
  }
5829
- var It = {
5811
+ var Pt = {
5830
5812
  START: "dragStart",
5831
5813
  MOVE: "dragMove",
5832
5814
  ENDED: "dragEnded"
5833
- }, Ai = {
5815
+ }, Pi = {
5834
5816
  mousedown: ["mousemove", "mouseup"],
5835
5817
  touchstart: ["touchmove", "touchend", "touchcancel"],
5836
5818
  pointerdown: ["pointermove", "pointerup", "pointercancel"]
5837
- }, cs = /* @__PURE__ */ function(a) {
5819
+ }, ls = /* @__PURE__ */ function(a) {
5838
5820
  S(r, a);
5839
5821
  var o = x(r);
5840
5822
  function r(t) {
@@ -5845,13 +5827,13 @@ var It = {
5845
5827
  }, e.startPos = {
5846
5828
  x: 0,
5847
5829
  y: 0
5848
- }, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? $t(e) : (e._bindStartEvent(), e);
5830
+ }, e._root = t instanceof Element ? t : document.querySelector(t), e._handlerDom = i.handle instanceof Element ? i.handle : document.querySelector(i.handle), !e._root || !e._handlerDom ? Kt(e) : (e._bindStartEvent(), e);
5849
5831
  }
5850
5832
  return E(r, [{
5851
5833
  key: "_bindStartEvent",
5852
5834
  value: function() {
5853
5835
  var e = this;
5854
- "ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]), Ai[this._startKey].map(function(i) {
5836
+ "ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]), Pi[this._startKey].map(function(i) {
5855
5837
  e["on".concat(i)] = e["on".concat(i)].bind(e);
5856
5838
  });
5857
5839
  }
@@ -5865,7 +5847,7 @@ var It = {
5865
5847
  value: function(e) {
5866
5848
  var i = this;
5867
5849
  if (e) {
5868
- var n = Ai[this._startKey];
5850
+ var n = Pi[this._startKey];
5869
5851
  n.map(function(s) {
5870
5852
  window.addEventListener(s, i["on".concat(s)]);
5871
5853
  }), this._boundPointerEvents = n;
@@ -5937,19 +5919,19 @@ var It = {
5937
5919
  }, {
5938
5920
  key: "ontouchmove",
5939
5921
  value: function(e) {
5940
- var i = Pt(e.changedTouches, this.touchIdentifier);
5922
+ var i = xt(e.changedTouches, this.touchIdentifier);
5941
5923
  i && this.dragMove(e, i);
5942
5924
  }
5943
5925
  }, {
5944
5926
  key: "ontouchend",
5945
5927
  value: function(e) {
5946
- var i = Pt(e.changedTouches, this.touchIdentifier);
5928
+ var i = xt(e.changedTouches, this.touchIdentifier);
5947
5929
  i && this.dragEnd(e, i), e.preventDefault();
5948
5930
  }
5949
5931
  }, {
5950
5932
  key: "ontouchcancel",
5951
5933
  value: function(e) {
5952
- var i = Pt(e.changedTouches, this.touchIdentifier);
5934
+ var i = xt(e.changedTouches, this.touchIdentifier);
5953
5935
  i && this.dragCancel(e, i);
5954
5936
  }
5955
5937
  }, {
@@ -5957,19 +5939,19 @@ var It = {
5957
5939
  value: function(e, i) {
5958
5940
  if (!(!this._root || this.isDown || !this.isEnabled)) {
5959
5941
  this.downPoint = i, this.dragPoint.x = 0, this.dragPoint.y = 0, this._getPosition();
5960
- var n = Ii(this._root);
5942
+ var n = xi(this._root);
5961
5943
  this.startPos.x = this.position.x, this.startPos.y = this.position.y, this.startPos.maxY = window.innerHeight - n.height, this.startPos.maxX = window.innerWidth - n.width, this.setLeftTop(), this.isDown = !0, this._bindPostStartEvents(e);
5962
5944
  }
5963
5945
  }
5964
5946
  }, {
5965
5947
  key: "dragRealStart",
5966
5948
  value: function(e, i) {
5967
- this.isDragging = !0, this.animate(), this.emit(It.START, this.startPos);
5949
+ this.isDragging = !0, this.animate(), this.emit(Pt.START, this.startPos);
5968
5950
  }
5969
5951
  }, {
5970
5952
  key: "dragEnd",
5971
5953
  value: function(e, i) {
5972
- this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(It.ENDED)), this.presetInfo());
5954
+ this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(Pt.ENDED)), this.presetInfo());
5973
5955
  }
5974
5956
  }, {
5975
5957
  key: "_dragPointerMove",
@@ -5985,7 +5967,7 @@ var It = {
5985
5967
  value: function(e, i) {
5986
5968
  if (e = e || window.event, !!this.isDown) {
5987
5969
  var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, h = u.y;
5988
- 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(It.MOVE, this.position);
5970
+ 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(Pt.MOVE, this.position);
5989
5971
  }
5990
5972
  }
5991
5973
  }, {
@@ -6038,13 +6020,13 @@ var It = {
6038
6020
  key: "_getPositionCoord",
6039
6021
  value: function(e, i) {
6040
6022
  if (e.indexOf("%") !== -1) {
6041
- var n = Ii(this._root.parentNode);
6023
+ var n = xi(this._root.parentNode);
6042
6024
  return n ? parseFloat(e) / 100 * n[i] : 0;
6043
6025
  }
6044
6026
  return parseInt(e, 10);
6045
6027
  }
6046
6028
  }]), r;
6047
- }(Wi), fs = /* @__PURE__ */ function(a) {
6029
+ }(zi), us = /* @__PURE__ */ function(a) {
6048
6030
  S(r, a);
6049
6031
  var o = x(r);
6050
6032
  function r(t) {
@@ -6097,10 +6079,10 @@ var It = {
6097
6079
  }
6098
6080
  }
6099
6081
  };
6100
- i.controls.registerPlugin(xi, s, xi.pluginName);
6082
+ i.controls.registerPlugin(Ei, s, Ei.pluginName);
6101
6083
  }
6102
6084
  var l = f.checkTouchSupport() ? "touchend" : "click";
6103
- this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new cs(this.player.root, {
6085
+ this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new ls(this.player.root, {
6104
6086
  handle: this.root
6105
6087
  })), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
6106
6088
  }
@@ -6110,11 +6092,11 @@ var It = {
6110
6092
  value: function() {
6111
6093
  return {
6112
6094
  play: {
6113
- icon: ni,
6095
+ icon: ti,
6114
6096
  class: "xg-icon-play"
6115
6097
  },
6116
6098
  pause: {
6117
- icon: ri,
6099
+ icon: ii,
6118
6100
  class: "xg-icon-pause"
6119
6101
  }
6120
6102
  };
@@ -6161,7 +6143,7 @@ var It = {
6161
6143
  return `
6162
6144
  <xg-mini-layer class="xg-mini-layer">
6163
6145
  <xg-mini-header class="xgplayer-mini-header">
6164
- `.concat(Ee(this, "MINI_DRAG", this.playerConfig.isHideTips), `
6146
+ `.concat(we(this, "MINI_DRAG", this.playerConfig.isHideTips), `
6165
6147
  </xg-mini-header>
6166
6148
  <div class="mini-cancel-btn">
6167
6149
  <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
@@ -6198,7 +6180,7 @@ var It = {
6198
6180
  mouseenter: "onMouseEnter",
6199
6181
  mouseleave: "onMouseLeave",
6200
6182
  mousemove: "onMouseMove"
6201
- }, At = ["videoClick", "videoDbClick"], Lt = /* @__PURE__ */ function(a) {
6183
+ }, It = ["videoClick", "videoDbClick"], At = /* @__PURE__ */ function(a) {
6202
6184
  S(r, a);
6203
6185
  var o = x(r);
6204
6186
  function r() {
@@ -6215,7 +6197,7 @@ var It = {
6215
6197
  var l = v(t), u = l.playerConfig, c = l.player;
6216
6198
  !u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
6217
6199
  autoHide: !1
6218
- }) : c.focus(), t.emit(Ji);
6200
+ }) : c.focus(), t.emit(Zi);
6219
6201
  }), y(v(t), "onMouseLeave", function(s) {
6220
6202
  var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, h = l.closeDelayBlur;
6221
6203
  !u && !h && (c ? t.player.focus({
@@ -6223,11 +6205,11 @@ var It = {
6223
6205
  delay: c
6224
6206
  }) : t.player.blur({
6225
6207
  ignorePaused: !0
6226
- })), t.emit(Zi);
6208
+ })), t.emit(qi);
6227
6209
  }), y(v(t), "onVideoClick", function(s) {
6228
6210
  var l = v(t), u = l.player, c = l.playerConfig;
6229
6211
  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() {
6230
- t._clickCount && (t._clickCount--, ce(v(t), At[0], function(h, d) {
6212
+ t._clickCount && (t._clickCount--, ce(v(t), It[0], function(h, d) {
6231
6213
  t.switchPlayPause(d.e);
6232
6214
  }, {
6233
6215
  e: s,
@@ -6241,7 +6223,7 @@ var It = {
6241
6223
  t._clickCount = 0;
6242
6224
  return;
6243
6225
  }
6244
- t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), ce(v(t), At[1], function(h, d) {
6226
+ t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), ce(v(t), It[1], function(h, d) {
6245
6227
  t.emitUserAction(d.e, "switch_fullscreen", {
6246
6228
  props: "fullscreen",
6247
6229
  from: u.fullscreen,
@@ -6258,7 +6240,7 @@ var It = {
6258
6240
  key: "afterCreate",
6259
6241
  value: function() {
6260
6242
  var e = this;
6261
- this._clickCount = 0, At.map(function(n) {
6243
+ this._clickCount = 0, It.map(function(n) {
6262
6244
  e.__hooks[n] = null;
6263
6245
  });
6264
6246
  var i = this.playerConfig.isMobileSimulateMode;
@@ -6306,7 +6288,7 @@ var It = {
6306
6288
  return {};
6307
6289
  }
6308
6290
  }]), r;
6309
- }(Te), _e = {
6291
+ }(be), _e = {
6310
6292
  PRESS: "press",
6311
6293
  PRESS_END: "pressend",
6312
6294
  DOUBlE_CLICK: "doubleclick",
@@ -6314,21 +6296,21 @@ var It = {
6314
6296
  TOUCH_MOVE: "touchmove",
6315
6297
  TOUCH_START: "touchstart",
6316
6298
  TOUCH_END: "touchend"
6317
- }, hs = {
6299
+ }, cs = {
6318
6300
  start: "touchstart",
6319
6301
  end: "touchend",
6320
6302
  move: "touchmove",
6321
6303
  cancel: "touchcancel"
6322
- }, ds = {
6304
+ }, fs = {
6323
6305
  start: "mousedown",
6324
6306
  end: "mouseup",
6325
6307
  move: "mousemove",
6326
6308
  cancel: "mouseleave"
6327
6309
  };
6328
- function Li(a) {
6310
+ function Ii(a) {
6329
6311
  return a && a.length > 0 ? a[a.length - 1] : null;
6330
6312
  }
6331
- function gs() {
6313
+ function hs() {
6332
6314
  return {
6333
6315
  pressDelay: 600,
6334
6316
  dbClickDelay: 200,
@@ -6338,13 +6320,13 @@ function gs() {
6338
6320
  needPreventDefault: !0
6339
6321
  };
6340
6322
  }
6341
- var ps = /* @__PURE__ */ function() {
6323
+ var ds = /* @__PURE__ */ function() {
6342
6324
  function a(o) {
6343
6325
  var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
6344
6326
  eventType: "touch"
6345
6327
  };
6346
6328
  w(this, a), y(this, "onTouchStart", function(e) {
6347
- var i = r._pos, n = r.root, s = Li(e.touches);
6329
+ var i = r._pos, n = r.root, s = Ii(e.touches);
6348
6330
  i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(_e.TOUCH_START, e);
6349
6331
  }), y(this, "onTouchCancel", function(e) {
6350
6332
  r.onTouchEnd(e);
@@ -6352,16 +6334,16 @@ var ps = /* @__PURE__ */ function() {
6352
6334
  var i = r._pos, n = r.root;
6353
6335
  r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(_e.PRESS_END, e), r.trigger(_e.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
6354
6336
  }), y(this, "onTouchMove", function(e) {
6355
- var i = r._pos, n = r.config, s = Li(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, h = u - i.y;
6337
+ var i = r._pos, n = r.config, s = Ii(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, h = u - i.y;
6356
6338
  Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(_e.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(_e.TOUCH_MOVE, e));
6357
6339
  }), this._pos = {
6358
6340
  moving: !1,
6359
6341
  start: !1,
6360
6342
  x: 0,
6361
6343
  y: 0
6362
- }, this.config = gs(), Object.keys(t).map(function(e) {
6344
+ }, this.config = hs(), Object.keys(t).map(function(e) {
6363
6345
  r.config[e] = t[e];
6364
- }), this.root = o, this.events = t.eventType === "mouse" ? ds : hs, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
6346
+ }), this.root = o, this.events = t.eventType === "mouse" ? fs : cs, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
6365
6347
  }
6366
6348
  return E(a, [{
6367
6349
  key: "_initEvent",
@@ -6440,7 +6422,7 @@ var ps = /* @__PURE__ */ function() {
6440
6422
  }
6441
6423
  }]), a;
6442
6424
  }();
6443
- function vs() {
6425
+ function gs() {
6444
6426
  return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
6445
6427
  xmlns:xlink="http://www.w3.org/1999/xlink">
6446
6428
  <path opacity="0.54"
@@ -6454,7 +6436,7 @@ var Me = {
6454
6436
  SEEKING: "seeking",
6455
6437
  PLAYBACK: "playbackrate",
6456
6438
  LIGHT: ""
6457
- }, Dt = ["videoClick", "videoDbClick"], ms = /* @__PURE__ */ function(a) {
6439
+ }, Lt = ["videoClick", "videoDbClick"], ps = /* @__PURE__ */ function(a) {
6458
6440
  S(r, a);
6459
6441
  var o = x(r);
6460
6442
  function r(t) {
@@ -6526,7 +6508,7 @@ var Me = {
6526
6508
  value: function() {
6527
6509
  return {
6528
6510
  seekTipIcon: {
6529
- icon: vs,
6511
+ icon: gs,
6530
6512
  class: "xg-seek-pre"
6531
6513
  }
6532
6514
  };
@@ -6535,20 +6517,20 @@ var Me = {
6535
6517
  key: "afterCreate",
6536
6518
  value: function() {
6537
6519
  var e = this;
6538
- Dt.map(function(d) {
6520
+ Lt.map(function(d) {
6539
6521
  e.__hooks[d] = null;
6540
6522
  });
6541
6523
  var i = this.playerConfig, n = this.config, s = this.player;
6542
6524
  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();
6543
6525
  var l = this.domEventType === "mouse" ? "mouse" : "touch";
6544
- this.touch = new ps(this.root, {
6526
+ this.touch = new ds(this.root, {
6545
6527
  eventType: l,
6546
6528
  needPreventDefault: !this.config.disableGesture
6547
6529
  }), this.root.addEventListener("contextmenu", function(d) {
6548
6530
  d.preventDefault();
6549
6531
  }), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
6550
6532
  var u = this.player.controls;
6551
- u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(we, function() {
6533
+ u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Te, function() {
6552
6534
  var d = e.player, g = e.config;
6553
6535
  d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
6554
6536
  }), this.on([de, Le], function() {
@@ -6718,7 +6700,7 @@ var Me = {
6718
6700
  key: "onClick",
6719
6701
  value: function(e) {
6720
6702
  var i = this, n = this.player;
6721
- ce(this, Dt[0], function(s, l) {
6703
+ ce(this, Lt[0], function(s, l) {
6722
6704
  i.clickHandler(l.e);
6723
6705
  }, {
6724
6706
  e,
@@ -6729,7 +6711,7 @@ var Me = {
6729
6711
  key: "onDbClick",
6730
6712
  value: function(e) {
6731
6713
  var i = this, n = this.player;
6732
- ce(this, Dt[1], function(s, l) {
6714
+ ce(this, Lt[1], function(s, l) {
6733
6715
  i.dbClickHandler(l.e);
6734
6716
  }, {
6735
6717
  e,
@@ -6883,14 +6865,14 @@ var Me = {
6883
6865
  }
6884
6866
  }]), r;
6885
6867
  }(F);
6886
- function ys(a) {
6868
+ function vs(a) {
6887
6869
  a.preventDefault(), a.returnValue = !1;
6888
6870
  }
6889
- function Di(a) {
6871
+ function Ai(a) {
6890
6872
  var o = a.tagName;
6891
6873
  return !!(o === "INPUT" || o === "TEXTAREA" || a.isContentEditable);
6892
6874
  }
6893
- var Ri = /* @__PURE__ */ function(a) {
6875
+ var Li = /* @__PURE__ */ function(a) {
6894
6876
  S(r, a);
6895
6877
  var o = x(r);
6896
6878
  function r() {
@@ -6901,11 +6883,11 @@ var Ri = /* @__PURE__ */ function(a) {
6901
6883
  return t = o.call.apply(o, [this].concat(i)), y(v(t), "onBodyKeyDown", function(s) {
6902
6884
  if (t.player) {
6903
6885
  var l = s || window.event, u = l.keyCode, c = v(t), h = c._keyState, d = c.player, g = t.config, p = g.disable, m = g.disableBodyTrigger, _ = g.isIgnoreUserActive;
6904
- if (p || m || !(d.isUserActive || _) || Di(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
6886
+ if (p || m || !(d.isUserActive || _) || Ai(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
6905
6887
  h.isBodyKeyDown = !1;
6906
6888
  return;
6907
6889
  }
6908
- !s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !Di(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
6890
+ !s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !Ai(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
6909
6891
  }
6910
6892
  }), y(v(t), "onBodyKeyUp", function(s) {
6911
6893
  t.player && (document.removeEventListener("keyup", t.onBodyKeyUp), t.handleKeyUp(s));
@@ -7126,13 +7108,13 @@ var Ri = /* @__PURE__ */ function(a) {
7126
7108
  if (h === e) {
7127
7109
  if (!d && !(n && p)) {
7128
7110
  var m = n && g || c;
7129
- typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(nn, V({
7111
+ typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(tn, V({
7130
7112
  key: s[l],
7131
7113
  target: i.target,
7132
7114
  isPress: n
7133
7115
  }, this.keyCodeMap[s[l]]));
7134
7116
  }
7135
- ys(i), i.stopPropagation();
7117
+ vs(i), i.stopPropagation();
7136
7118
  break;
7137
7119
  }
7138
7120
  }
@@ -7173,14 +7155,14 @@ var Ri = /* @__PURE__ */ function(a) {
7173
7155
  };
7174
7156
  }
7175
7157
  }]), r;
7176
- }(Te);
7177
- function _s() {
7158
+ }(be);
7159
+ function ms() {
7178
7160
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
7179
7161
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
7180
7162
  </svg>
7181
7163
  `, "image/svg+xml").firstChild;
7182
7164
  }
7183
- var Cs = /* @__PURE__ */ function(a) {
7165
+ var ys = /* @__PURE__ */ function(a) {
7184
7166
  S(r, a);
7185
7167
  var o = x(r);
7186
7168
  function r() {
@@ -7190,7 +7172,7 @@ var Cs = /* @__PURE__ */ function(a) {
7190
7172
  key: "registerIcons",
7191
7173
  value: function() {
7192
7174
  return {
7193
- loadingIcon: _s
7175
+ loadingIcon: ms
7194
7176
  };
7195
7177
  }
7196
7178
  }, {
@@ -7219,7 +7201,7 @@ var Cs = /* @__PURE__ */ function(a) {
7219
7201
  };
7220
7202
  }
7221
7203
  }]), r;
7222
- }(F), ks = [{
7204
+ }(F), _s = [{
7223
7205
  tag: "xg-cache",
7224
7206
  className: "xgplayer-progress-cache",
7225
7207
  styleKey: "cachedColor"
@@ -7227,7 +7209,7 @@ var Cs = /* @__PURE__ */ function(a) {
7227
7209
  tag: "xg-played",
7228
7210
  className: "xgplayer-progress-played",
7229
7211
  styleKey: "playedColor"
7230
- }], bs = /* @__PURE__ */ function() {
7212
+ }], Cs = /* @__PURE__ */ function() {
7231
7213
  function a(o) {
7232
7214
  w(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
7233
7215
  percent: 1
@@ -7414,7 +7396,7 @@ var Cs = /* @__PURE__ */ function(a) {
7414
7396
  var l = f.createDom("xg-inner", "", {
7415
7397
  style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
7416
7398
  }, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
7417
- return r.root.appendChild(l), ks.forEach(function(u) {
7399
+ return r.root.appendChild(l), _s.forEach(function(u) {
7418
7400
  l.appendChild(f.createDom(u.tag, "", {
7419
7401
  style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
7420
7402
  }, u.className));
@@ -7427,10 +7409,10 @@ var Cs = /* @__PURE__ */ function(a) {
7427
7409
  return this.root;
7428
7410
  }
7429
7411
  }]), a;
7430
- }(), Oi = {
7412
+ }(), Di = {
7431
7413
  POINT: "inner-focus-point",
7432
7414
  HIGHLIGHT: "inner-focus-highlight"
7433
- }, Ts = /* @__PURE__ */ function(a) {
7415
+ }, ks = /* @__PURE__ */ function(a) {
7434
7416
  S(r, a);
7435
7417
  var o = x(r);
7436
7418
  function r(t) {
@@ -7560,7 +7542,7 @@ var Cs = /* @__PURE__ */ function(a) {
7560
7542
  e.emitUserAction("fragment_focus", "fragment_focus", u);
7561
7543
  }
7562
7544
  });
7563
- this.innerList ? this.innerList.reset(s) : (this.innerList = new bs(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
7545
+ this.innerList ? this.innerList.reset(s) : (this.innerList = new Cs(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
7564
7546
  e[l] = e.innerList[l].bind(e.innerList);
7565
7547
  }));
7566
7548
  }
@@ -7588,19 +7570,19 @@ var Cs = /* @__PURE__ */ function(a) {
7588
7570
  fragAutoFocus: s,
7589
7571
  fragClass: l,
7590
7572
  style: this.playerConfig.commonStyle || {}
7591
- }), L.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(we, function() {
7573
+ }), L.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Te, function() {
7592
7574
  e.onMouseLeave();
7593
7575
  }), this.on(J, function() {
7594
7576
  e.onTimeupdate();
7595
7577
  }), this.on(ge, function() {
7596
7578
  e.onTimeupdate(), e.onCacheUpdate();
7597
- }), this.on($i, function() {
7579
+ }), this.on(Yi, function() {
7598
7580
  e.onCacheUpdate();
7599
7581
  }), this.on(Le, function() {
7600
7582
  e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
7601
7583
  }), this.on(De, function() {
7602
7584
  e.onReset();
7603
- }), this.on(be, function() {
7585
+ }), this.on(ke, function() {
7604
7586
  e.onVideoResize();
7605
7587
  }), this.bindDomEvents(), this.initCustomStyle();
7606
7588
  }
@@ -7617,7 +7599,7 @@ var Cs = /* @__PURE__ */ function(a) {
7617
7599
  key: "initCustomStyle",
7618
7600
  value: function() {
7619
7601
  var e = this.playerConfig || {}, i = e.commonStyle, n = i.sliderBtnStyle, s = this.progressBtn;
7620
- n && (typeof n == "string" ? s.style.boxShadow = n : Y(n) === "object" && Object.keys(n).map(function(l) {
7602
+ n && (typeof n == "string" ? s.style.boxShadow = n : G(n) === "object" && Object.keys(n).map(function(l) {
7621
7603
  s.style[l] = n[l];
7622
7604
  }));
7623
7605
  }
@@ -7823,7 +7805,7 @@ var Cs = /* @__PURE__ */ function(a) {
7823
7805
  fragments: [{
7824
7806
  percent: 1
7825
7807
  }],
7826
- fragFocusClass: Oi.POINT,
7808
+ fragFocusClass: Di.POINT,
7827
7809
  fragClass: "",
7828
7810
  fragAutoFocus: !1,
7829
7811
  miniMoveStep: 5,
@@ -7838,7 +7820,7 @@ var Cs = /* @__PURE__ */ function(a) {
7838
7820
  }, {
7839
7821
  key: "FRAGMENT_FOCUS_CLASS",
7840
7822
  get: function() {
7841
- return Oi;
7823
+ return Di;
7842
7824
  }
7843
7825
  }]), r;
7844
7826
  }(F), Re = /* @__PURE__ */ function(a) {
@@ -7870,7 +7852,7 @@ var Cs = /* @__PURE__ */ function(a) {
7870
7852
  this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
7871
7853
  }
7872
7854
  }]), r;
7873
- }(F), ws = /* @__PURE__ */ function(a) {
7855
+ }(F), bs = /* @__PURE__ */ function(a) {
7874
7856
  S(r, a);
7875
7857
  var o = x(r);
7876
7858
  function r() {
@@ -7893,11 +7875,11 @@ var Cs = /* @__PURE__ */ function(a) {
7893
7875
  value: function() {
7894
7876
  return {
7895
7877
  play: {
7896
- icon: ni,
7878
+ icon: ti,
7897
7879
  class: "xg-icon-play"
7898
7880
  },
7899
7881
  pause: {
7900
- icon: ri,
7882
+ icon: ii,
7901
7883
  class: "xg-icon-pause"
7902
7884
  }
7903
7885
  };
@@ -7939,7 +7921,7 @@ var Cs = /* @__PURE__ */ function(a) {
7939
7921
  return `<xg-icon class="xgplayer-play">
7940
7922
  <div class="xgplayer-icon">
7941
7923
  </div>
7942
- `.concat(Ee(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
7924
+ `.concat(we(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
7943
7925
  </xg-icon>`);
7944
7926
  }
7945
7927
  }], [{
@@ -7958,14 +7940,14 @@ var Cs = /* @__PURE__ */ function(a) {
7958
7940
  }
7959
7941
  }]), r;
7960
7942
  }(Re);
7961
- function Es() {
7943
+ function Ts() {
7962
7944
  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">
7963
7945
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7964
7946
  <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>
7965
7947
  </g>
7966
7948
  </svg>`, "image/svg+xml").firstChild;
7967
7949
  }
7968
- var Ss = /* @__PURE__ */ function(a) {
7950
+ var ws = /* @__PURE__ */ function(a) {
7969
7951
  S(r, a);
7970
7952
  var o = x(r);
7971
7953
  function r() {
@@ -7984,7 +7966,7 @@ var Ss = /* @__PURE__ */ function(a) {
7984
7966
  value: function() {
7985
7967
  return {
7986
7968
  screenBack: {
7987
- icon: Es,
7969
+ icon: Ts,
7988
7970
  class: "xg-fullscreen-back"
7989
7971
  }
7990
7972
  };
@@ -8026,19 +8008,19 @@ var Ss = /* @__PURE__ */ function(a) {
8026
8008
  }
8027
8009
  }]), r;
8028
8010
  }(F);
8029
- function xs() {
8011
+ function Es() {
8030
8012
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8031
8013
  <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>
8032
8014
  </svg>
8033
8015
  `, "image/svg+xml").firstChild;
8034
8016
  }
8035
- function Ps() {
8017
+ function Ss() {
8036
8018
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
8037
8019
  <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>
8038
8020
  </svg>
8039
8021
  `, "image/svg+xml").firstChild;
8040
8022
  }
8041
- var Is = /* @__PURE__ */ function(a) {
8023
+ var xs = /* @__PURE__ */ function(a) {
8042
8024
  S(r, a);
8043
8025
  var o = x(r);
8044
8026
  function r() {
@@ -8073,7 +8055,7 @@ var Is = /* @__PURE__ */ function(a) {
8073
8055
  var u = e.find(".xg-tips");
8074
8056
  u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
8075
8057
  }), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
8076
- plugin: Ss,
8058
+ plugin: ws,
8077
8059
  options: {
8078
8060
  config: {
8079
8061
  onClick: function(u) {
@@ -8089,11 +8071,11 @@ var Is = /* @__PURE__ */ function(a) {
8089
8071
  value: function() {
8090
8072
  return {
8091
8073
  fullscreen: {
8092
- icon: xs,
8074
+ icon: Es,
8093
8075
  class: "xg-get-fullscreen"
8094
8076
  },
8095
8077
  exitFullscreen: {
8096
- icon: Ps,
8078
+ icon: Ss,
8097
8079
  class: "xg-exit-fullscreen"
8098
8080
  }
8099
8081
  };
@@ -8130,7 +8112,7 @@ var Is = /* @__PURE__ */ function(a) {
8130
8112
  return `<xg-icon class="xgplayer-fullscreen">
8131
8113
  <div class="xgplayer-icon">
8132
8114
  </div>
8133
- `.concat(Ee(this, e, this.playerConfig.isHideTips), `
8115
+ `.concat(we(this, e, this.playerConfig.isHideTips), `
8134
8116
  </xg-icon>`);
8135
8117
  }
8136
8118
  }
@@ -8174,7 +8156,7 @@ var Is = /* @__PURE__ */ function(a) {
8174
8156
  };
8175
8157
  }
8176
8158
  }]), r;
8177
- }(Re), As = /* @__PURE__ */ function(a) {
8159
+ }(Re), Ps = /* @__PURE__ */ function(a) {
8178
8160
  S(r, a);
8179
8161
  var o = x(r);
8180
8162
  function r(t) {
@@ -8202,7 +8184,7 @@ var Is = /* @__PURE__ */ function(a) {
8202
8184
  key: "afterCreate",
8203
8185
  value: function() {
8204
8186
  var e = this, i = this.player.controls.config.mode;
8205
- this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([we, ge, J], function(n) {
8187
+ this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Te, ge, J], function(n) {
8206
8188
  n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
8207
8189
  }), this.on(Le, function() {
8208
8190
  e.onTimeUpdate(!0);
@@ -8324,7 +8306,7 @@ var Is = /* @__PURE__ */ function(a) {
8324
8306
  };
8325
8307
  }
8326
8308
  }]), r;
8327
- }(F), Ls = /* @__PURE__ */ function(a) {
8309
+ }(F), Is = /* @__PURE__ */ function(a) {
8328
8310
  S(r, a);
8329
8311
  var o = x(r);
8330
8312
  function r() {
@@ -8380,7 +8362,7 @@ var Is = /* @__PURE__ */ function(a) {
8380
8362
  return E(r, [{
8381
8363
  key: "afterCreate",
8382
8364
  value: function() {
8383
- this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(we, this._onDurationChange), this.on(ve, this._onLoadedData), this.on(J, this._onTimeupdate), this.on(pt, this._onSeeking), this.on(Q, this._onPlay);
8365
+ this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Te, this._onDurationChange), this.on(ve, this._onLoadedData), this.on(J, this._onTimeupdate), this.on(pt, this._onSeeking), this.on(Q, this._onPlay);
8384
8366
  }
8385
8367
  }, {
8386
8368
  key: "setConfig",
@@ -8461,29 +8443,29 @@ var Is = /* @__PURE__ */ function(a) {
8461
8443
  };
8462
8444
  }
8463
8445
  }]), r;
8464
- }(Te);
8465
- function Ds() {
8446
+ }(be);
8447
+ function As() {
8466
8448
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
8467
8449
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
8468
8450
  <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>
8469
8451
  </svg>
8470
8452
  `, "image/svg+xml").firstChild;
8471
8453
  }
8472
- function Rs() {
8454
+ function Ls() {
8473
8455
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
8474
8456
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
8475
8457
  <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>
8476
8458
  </svg>
8477
8459
  `, "image/svg+xml").firstChild;
8478
8460
  }
8479
- function Os() {
8461
+ function Ds() {
8480
8462
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
8481
8463
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
8482
8464
  <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>
8483
8465
  </svg>
8484
8466
  `, "image/svg+xml").firstChild;
8485
8467
  }
8486
- var Ms = /* @__PURE__ */ function(a) {
8468
+ var Rs = /* @__PURE__ */ function(a) {
8487
8469
  S(r, a);
8488
8470
  var o = x(r);
8489
8471
  function r() {
@@ -8531,15 +8513,15 @@ var Ms = /* @__PURE__ */ function(a) {
8531
8513
  value: function() {
8532
8514
  return {
8533
8515
  volumeSmall: {
8534
- icon: Rs,
8516
+ icon: Ls,
8535
8517
  class: "xg-volume-small"
8536
8518
  },
8537
8519
  volumeLarge: {
8538
- icon: Ds,
8520
+ icon: As,
8539
8521
  class: "xg-volume"
8540
8522
  },
8541
8523
  volumeMuted: {
8542
- icon: Os,
8524
+ icon: Ds,
8543
8525
  class: "xg-volume-mute"
8544
8526
  }
8545
8527
  };
@@ -8561,7 +8543,7 @@ var Ms = /* @__PURE__ */ function(a) {
8561
8543
  pre: function(u) {
8562
8544
  u.preventDefault(), u.stopPropagation();
8563
8545
  }
8564
- }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), L.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(Ki, this.onVolumeChange), this.once(ve, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
8546
+ }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), L.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(Gi, this.onVolumeChange), this.once(ve, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
8565
8547
  }
8566
8548
  }
8567
8549
  }, {
@@ -8678,7 +8660,7 @@ var Ms = /* @__PURE__ */ function(a) {
8678
8660
  }
8679
8661
  }]), r;
8680
8662
  }(F);
8681
- function Fs() {
8663
+ function Os() {
8682
8664
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
8683
8665
  <g clip-path="url(#clip0)">
8684
8666
  <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"/>
@@ -8692,7 +8674,7 @@ function Fs() {
8692
8674
  </svg>
8693
8675
  `, "image/svg+xml").firstChild;
8694
8676
  }
8695
- var Ns = /* @__PURE__ */ function(a) {
8677
+ var Ms = /* @__PURE__ */ function(a) {
8696
8678
  S(r, a);
8697
8679
  var o = x(r);
8698
8680
  function r(t) {
@@ -8704,7 +8686,7 @@ var Ns = /* @__PURE__ */ function(a) {
8704
8686
  value: function() {
8705
8687
  var e = this;
8706
8688
  if (!this.config.disable) {
8707
- I(P(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(be, function() {
8689
+ I(P(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(ke, function() {
8708
8690
  e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
8709
8691
  e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
8710
8692
  }, 100);
@@ -8749,13 +8731,13 @@ var Ns = /* @__PURE__ */ function(a) {
8749
8731
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, s = this.player;
8750
8732
  this.rotateDeg || (this.rotateDeg = 0);
8751
8733
  var l = e ? 1 : -1;
8752
- this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(en, this.rotateDeg * 360);
8734
+ this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(Qi, this.rotateDeg * 360);
8753
8735
  }
8754
8736
  }, {
8755
8737
  key: "registerIcons",
8756
8738
  value: function() {
8757
8739
  return {
8758
- rotate: Fs
8740
+ rotate: Os
8759
8741
  };
8760
8742
  }
8761
8743
  }, {
@@ -8766,7 +8748,7 @@ var Ns = /* @__PURE__ */ function(a) {
8766
8748
  <xg-icon class="xgplayer-rotate">
8767
8749
  <div class="xgplayer-icon">
8768
8750
  </div>
8769
- `.concat(Ee(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
8751
+ `.concat(we(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
8770
8752
  </xg-icon>`);
8771
8753
  }
8772
8754
  }], [{
@@ -8788,14 +8770,14 @@ var Ns = /* @__PURE__ */ function(a) {
8788
8770
  }
8789
8771
  }]), r;
8790
8772
  }(Re);
8791
- function Bs() {
8773
+ function Fs() {
8792
8774
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
8793
8775
  <path fill-rule="evenodd" clip-rule="evenodd"
8794
8776
  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"
8795
8777
  fill="white" />
8796
8778
  </svg>`, "image/svg+xml").firstChild;
8797
8779
  }
8798
- function Hs() {
8780
+ function Ns() {
8799
8781
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
8800
8782
  <path fill-rule="evenodd" clip-rule="evenodd"
8801
8783
  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"
@@ -8809,7 +8791,7 @@ var Fe = {
8809
8791
  PIP: "picture-in-picture",
8810
8792
  INLINE: "inline",
8811
8793
  FULLSCREEN: "fullscreen"
8812
- }, Us = /* @__PURE__ */ function(a) {
8794
+ }, Bs = /* @__PURE__ */ function(a) {
8813
8795
  S(r, a);
8814
8796
  var o = x(r);
8815
8797
  function r() {
@@ -8849,11 +8831,11 @@ var Fe = {
8849
8831
  value: function() {
8850
8832
  return {
8851
8833
  pipIcon: {
8852
- icon: Bs,
8834
+ icon: Fs,
8853
8835
  class: "xg-get-pip"
8854
8836
  },
8855
8837
  pipIconExit: {
8856
- icon: Hs,
8838
+ icon: Ns,
8857
8839
  class: "xg-exit-pip"
8858
8840
  }
8859
8841
  };
@@ -8872,9 +8854,9 @@ var Fe = {
8872
8854
  var n = i.paused;
8873
8855
  f.setTimeout(e, function() {
8874
8856
  !n && i.mediaPlay();
8875
- }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(Wt, !1);
8857
+ }, 0), !n && i.mediaPlay(), e.setAttr("data-state", "normal"), e.pipWindow = null, i.emit(jt, !1);
8876
8858
  }, this.enterPIPCallback = function(n) {
8877
- i.emit(Wt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
8859
+ i.emit(jt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
8878
8860
  }, this.onWebkitpresentationmodechanged = function(n) {
8879
8861
  var s = i.media.webkitPresentationMode;
8880
8862
  e.pMode === Fe.FULLSCREEN && s !== Fe.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Fe.PIP ? e.enterPIPCallback(n) : s === Fe.INLINE && e.leavePIPCallback(n);
@@ -8983,7 +8965,7 @@ var Fe = {
8983
8965
  return `<xg-icon class="xgplayer-pip">
8984
8966
  <div class="xgplayer-icon xg-icon-disable">
8985
8967
  </div>
8986
- `.concat(Ee(this, "PIP", this.playerConfig.isHideTips), `
8968
+ `.concat(we(this, "PIP", this.playerConfig.isHideTips), `
8987
8969
  </xg-icon>`);
8988
8970
  }
8989
8971
  }], [{
@@ -9012,13 +8994,13 @@ var Fe = {
9012
8994
  }
9013
8995
  }]), r;
9014
8996
  }(Re);
9015
- function Vs() {
8997
+ function Hs() {
9016
8998
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
9017
8999
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
9018
9000
  </svg>
9019
9001
  `, "image/svg+xml").firstChild;
9020
9002
  }
9021
- var js = /* @__PURE__ */ function(a) {
9003
+ var Us = /* @__PURE__ */ function(a) {
9022
9004
  S(r, a);
9023
9005
  var o = x(r);
9024
9006
  function r(t) {
@@ -9037,7 +9019,7 @@ var js = /* @__PURE__ */ function(a) {
9037
9019
  key: "registerIcons",
9038
9020
  value: function() {
9039
9021
  return {
9040
- playNext: Vs
9022
+ playNext: Hs
9041
9023
  };
9042
9024
  }
9043
9025
  }, {
@@ -9066,7 +9048,7 @@ var js = /* @__PURE__ */ function(a) {
9066
9048
  <xg-icon class="xgplayer-playnext">
9067
9049
  <div class="xgplayer-icon">
9068
9050
  </div>
9069
- `.concat(Ee(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
9051
+ `.concat(we(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
9070
9052
  </xg-icon>
9071
9053
  `);
9072
9054
  }
@@ -9086,11 +9068,11 @@ var js = /* @__PURE__ */ function(a) {
9086
9068
  };
9087
9069
  }
9088
9070
  }]), r;
9089
- }(F), pn = { exports: {} };
9071
+ }(F), gn = { exports: {} };
9090
9072
  (function(a, o) {
9091
9073
  (function(r, t) {
9092
9074
  a.exports = t();
9093
- })($n, function() {
9075
+ })(Kn, function() {
9094
9076
  return function r(t, e, i) {
9095
9077
  var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(A) {
9096
9078
  return String(A);
@@ -9119,15 +9101,15 @@ var js = /* @__PURE__ */ function(a) {
9119
9101
  }
9120
9102
  m = u instanceof g ? u : new g([u], { type: l });
9121
9103
  function R(A) {
9122
- var $ = A.split(/[:;,]/), j = $[1], M = $[2] == "base64" ? atob : decodeURIComponent, q = M($.pop()), ee = q.length, te = 0, Se = new Uint8Array(ee);
9104
+ var K = A.split(/[:;,]/), j = K[1], M = K[2] == "base64" ? atob : decodeURIComponent, q = M(K.pop()), ee = q.length, te = 0, Ee = new Uint8Array(ee);
9123
9105
  for (te; te < ee; ++te)
9124
- Se[te] = q.charCodeAt(te);
9125
- return new g([Se], { type: j });
9106
+ Ee[te] = q.charCodeAt(te);
9107
+ return new g([Ee], { type: j });
9126
9108
  }
9127
- function B(A, $) {
9109
+ function B(A, K) {
9128
9110
  if ("download" in h)
9129
9111
  return h.href = A, h.setAttribute("download", p), h.className = "download-js-link", h.innerHTML = "downloading...", h.style.display = "none", document.body.appendChild(h), setTimeout(function() {
9130
- h.click(), document.body.removeChild(h), $ === !0 && setTimeout(function() {
9112
+ h.click(), document.body.removeChild(h), K === !0 && setTimeout(function() {
9131
9113
  n.URL.revokeObjectURL(h.href);
9132
9114
  }, 250);
9133
9115
  }, 66), !0;
@@ -9136,7 +9118,7 @@ var js = /* @__PURE__ */ function(a) {
9136
9118
 
9137
9119
  Use Save As... to download, then click back to return to this page.`) && (location.href = A), !0;
9138
9120
  var j = document.createElement("iframe");
9139
- document.body.appendChild(j), !$ && /^data:/.test(A) && (A = "data:" + A.replace(/^data:([\w\/\-\+]+)/, s)), j.src = A, setTimeout(function() {
9121
+ document.body.appendChild(j), !K && /^data:/.test(A) && (A = "data:" + A.replace(/^data:([\w\/\-\+]+)/, s)), j.src = A, setTimeout(function() {
9140
9122
  document.body.removeChild(j);
9141
9123
  }, 333);
9142
9124
  }
@@ -9158,10 +9140,10 @@ Use Save As... to download, then click back to return to this page.`) && (locati
9158
9140
  return !0;
9159
9141
  };
9160
9142
  });
9161
- })(pn);
9162
- var zs = pn.exports;
9163
- const Ws = /* @__PURE__ */ Kt(zs);
9164
- function Gs() {
9143
+ })(gn);
9144
+ var Vs = gn.exports;
9145
+ const js = /* @__PURE__ */ Wt(Vs);
9146
+ function zs() {
9165
9147
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
9166
9148
  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
9167
9149
  <g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
@@ -9178,7 +9160,7 @@ function Gs() {
9178
9160
  </svg>
9179
9161
  `, "image/svg+xml").firstChild;
9180
9162
  }
9181
- var Ks = /* @__PURE__ */ function(a) {
9163
+ var Ws = /* @__PURE__ */ function(a) {
9182
9164
  S(r, a);
9183
9165
  var o = x(r);
9184
9166
  function r(t) {
@@ -9189,7 +9171,7 @@ var Ks = /* @__PURE__ */ function(a) {
9189
9171
  var n = e.playerConfig.url, s = "";
9190
9172
  f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
9191
9173
  var l = e.getAbsoluteURL(s);
9192
- Ws(l), e.isLock = !0, e.timer = window.setTimeout(function() {
9174
+ js(l), e.isLock = !0, e.timer = window.setTimeout(function() {
9193
9175
  e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
9194
9176
  }, 300);
9195
9177
  }
@@ -9208,7 +9190,7 @@ var Ks = /* @__PURE__ */ function(a) {
9208
9190
  key: "registerIcons",
9209
9191
  value: function() {
9210
9192
  return {
9211
- download: Gs
9193
+ download: zs
9212
9194
  };
9213
9195
  }
9214
9196
  }, {
@@ -9232,7 +9214,7 @@ var Ks = /* @__PURE__ */ function(a) {
9232
9214
  return `<xg-icon class="xgplayer-download">
9233
9215
  <div class="xgplayer-icon">
9234
9216
  </div>
9235
- `.concat(Ee(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
9217
+ `.concat(we(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
9236
9218
  </xg-icon>`);
9237
9219
  }
9238
9220
  }], [{
@@ -9250,7 +9232,7 @@ var Ks = /* @__PURE__ */ function(a) {
9250
9232
  };
9251
9233
  }
9252
9234
  }]), r;
9253
- }(Re), Ys = /* @__PURE__ */ function(a) {
9235
+ }(Re), Gs = /* @__PURE__ */ function(a) {
9254
9236
  S(r, a);
9255
9237
  var o = x(r);
9256
9238
  function r() {
@@ -9268,7 +9250,7 @@ var Ks = /* @__PURE__ */ function(a) {
9268
9250
  var e = this.config;
9269
9251
  this.initSize = function(i) {
9270
9252
  e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
9271
- }, this.once(be, this.initSize);
9253
+ }, this.once(ke, this.initSize);
9272
9254
  }
9273
9255
  }, {
9274
9256
  key: "onPluginsReady",
@@ -9305,7 +9287,7 @@ var Ks = /* @__PURE__ */ function(a) {
9305
9287
  e.preventDefault(), e.stopPropagation(), this.emitUserAction(e, "shot");
9306
9288
  var n = this.config;
9307
9289
  this.shot(n.width, n.height).then(function(s) {
9308
- i.emit(tn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
9290
+ i.emit(en, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
9309
9291
  });
9310
9292
  }
9311
9293
  }, {
@@ -9321,8 +9303,8 @@ var Ks = /* @__PURE__ */ function(a) {
9321
9303
  p = u.media.canvas;
9322
9304
  else {
9323
9305
  n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
9324
- var _ = u.media.videoWidth / u.media.videoHeight, k = p.width / p.height, T = 0, b = 0, N = u.media.videoWidth, R = u.media.videoHeight, B, A, $, j;
9325
- _ > k ? ($ = p.width, j = p.width / _, B = 0, A = Math.round((p.height - j) / 2)) : _ === k ? ($ = p.width, j = p.height, B = 0, A = 0) : _ < k && ($ = p.height * _, j = p.height, B = Math.round((p.width - $) / 2), A = 0), m.drawImage(u.media, T, b, N, R, B, A, $, j);
9306
+ var _ = u.media.videoWidth / u.media.videoHeight, k = p.width / p.height, T = 0, b = 0, N = u.media.videoWidth, R = u.media.videoHeight, B, A, K, j;
9307
+ _ > k ? (K = p.width, j = p.width / _, B = 0, A = Math.round((p.height - j) / 2)) : _ === k ? (K = p.width, j = p.height, B = 0, A = 0) : _ < k && (K = p.height * _, j = p.height, B = Math.round((p.width - K) / 2), A = 0), m.drawImage(u.media, T, b, N, R, B, A, K, j);
9326
9308
  }
9327
9309
  var M = p.toDataURL(h, c).replace(h, "image/octet-stream");
9328
9310
  M = M.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(M);
@@ -9338,7 +9320,7 @@ var Ks = /* @__PURE__ */ function(a) {
9338
9320
  }, {
9339
9321
  key: "destroy",
9340
9322
  value: function() {
9341
- I(P(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(be, this.initSize);
9323
+ I(P(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(ke, this.initSize);
9342
9324
  }
9343
9325
  }, {
9344
9326
  key: "render",
@@ -9376,7 +9358,7 @@ var Ks = /* @__PURE__ */ function(a) {
9376
9358
  };
9377
9359
  }
9378
9360
  }]), r;
9379
- }(Re), $s = /* @__PURE__ */ function() {
9361
+ }(Re), Ks = /* @__PURE__ */ function() {
9380
9362
  function a(o) {
9381
9363
  w(this, a), this.config = o.config, this.parent = o.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
9382
9364
  var r = this.config.maxHeight;
@@ -9456,10 +9438,10 @@ var Ks = /* @__PURE__ */ function(a) {
9456
9438
  CLICK: "click",
9457
9439
  HOVER: "hover"
9458
9440
  };
9459
- function Xs(a, o) {
9441
+ function Ys(a, o) {
9460
9442
  return a === se.SIDE ? o === H.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
9461
9443
  }
9462
- var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9444
+ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9463
9445
  S(r, a);
9464
9446
  var o = x(r);
9465
9447
  function r(t) {
@@ -9491,13 +9473,13 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9491
9473
  key: "afterCreate",
9492
9474
  value: function() {
9493
9475
  var e = this, i = this.config;
9494
- this.initIcons(), xe = xe || this.domEventType === "touch", xe && L.device === "mobile" && i.listType === se.DEFAULT && (i.listType = se.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([be, ue], function() {
9476
+ this.initIcons(), Se = Se || this.domEventType === "touch", Se && L.device === "mobile" && i.listType === se.DEFAULT && (i.listType = se.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([ke, ue], function() {
9495
9477
  e._resizeList();
9496
9478
  }), this.once(de, function() {
9497
9479
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
9498
- }), xe && this.on(Zt, function() {
9480
+ }), Se && this.on(Xt, function() {
9499
9481
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
9500
- }), xe ? (i.toggleMode = Ne.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ne.CLICK ? "click" : "mouseenter", i.toggleMode === Ne.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
9482
+ }), Se ? (i.toggleMode = Ne.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ne.CLICK ? "click" : "mouseenter", i.toggleMode === Ne.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
9501
9483
  }
9502
9484
  }, {
9503
9485
  key: "initIcons",
@@ -9525,7 +9507,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9525
9507
  var s = this.config.list;
9526
9508
  !n && (n = this.player.lang), i = !i || f.isUndefined(e[i]) ? "text" : i, typeof e == "number" && (e = s[e]);
9527
9509
  try {
9528
- return Y(e[i]) === "object" ? e[i][n] || e[i].en : e[i];
9510
+ return G(e[i]) === "object" ? e[i][n] || e[i].en : e[i];
9529
9511
  } catch (l) {
9530
9512
  return console.warn(l), "";
9531
9513
  }
@@ -9545,7 +9527,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9545
9527
  var n = this.config, s = n.listType, l = n.list;
9546
9528
  this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
9547
9529
  var u = this.config.isItemClickHide;
9548
- (u || xe || s === se.SIDE) && this.toggle(!1);
9530
+ (u || Se || s === se.SIDE) && this.toggle(!1);
9549
9531
  }
9550
9532
  }, {
9551
9533
  key: "onIconClick",
@@ -9570,17 +9552,17 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9570
9552
  var c = {
9571
9553
  config: {
9572
9554
  data: e || [],
9573
- className: Xs(s.listType, s.position),
9555
+ className: Ys(s.listType, s.position),
9574
9556
  onItemClick: function(m, _) {
9575
9557
  n.onItemClick(m, _);
9576
9558
  },
9577
- domEventType: xe ? "touch" : "mouse"
9559
+ domEventType: Se ? "touch" : "mouse"
9578
9560
  },
9579
9561
  root: s.listType === se.SIDE ? u.innerContainer || u.root : this.root
9580
9562
  };
9581
9563
  if (this.config.isShowIcon) {
9582
9564
  var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === se.MIDDLE ? d - 50 : d;
9583
- g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new $s(c), this.changeCurrentText(), this.show();
9565
+ g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new Ks(c), this.changeCurrentText(), this.show();
9584
9566
  }
9585
9567
  this._resizeList();
9586
9568
  }
@@ -9631,7 +9613,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9631
9613
  };
9632
9614
  }
9633
9615
  }]), r;
9634
- }(F), qs = /* @__PURE__ */ function(a) {
9616
+ }(F), $s = /* @__PURE__ */ function(a) {
9635
9617
  S(r, a);
9636
9618
  var o = x(r);
9637
9619
  function r(t) {
@@ -9652,7 +9634,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9652
9634
  var e = this;
9653
9635
  I(P(r.prototype), "afterCreate", this).call(this), this.on("resourceReady", function(i) {
9654
9636
  e.changeDefinitionList(i);
9655
- }), this.on(ti, function(i) {
9637
+ }), this.on(Qt, function(i) {
9656
9638
  e.renderItemList(e.config.list, i.to);
9657
9639
  }), this.player.definitionList.length < 2 && this.hide();
9658
9640
  }
@@ -9732,7 +9714,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9732
9714
  });
9733
9715
  }
9734
9716
  }]), r;
9735
- }(dt), Zs = /* @__PURE__ */ function(a) {
9717
+ }(dt), Xs = /* @__PURE__ */ function(a) {
9736
9718
  S(r, a);
9737
9719
  var o = x(r);
9738
9720
  function r(t) {
@@ -9754,7 +9736,7 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9754
9736
  key: "afterCreate",
9755
9737
  value: function() {
9756
9738
  var e = this;
9757
- I(P(r.prototype), "afterCreate", this).call(this), this.on(Yi, function() {
9739
+ I(P(r.prototype), "afterCreate", this).call(this), this.on(Ki, function() {
9758
9740
  e.curValue !== e.player.playbackRate && e.renderItemList();
9759
9741
  }), this.renderItemList();
9760
9742
  }
@@ -9825,19 +9807,19 @@ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9825
9807
  }
9826
9808
  }]), r;
9827
9809
  }(dt);
9828
- function Js() {
9810
+ function qs() {
9829
9811
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
9830
9812
  <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>
9831
9813
  </svg>
9832
9814
  `, "image/svg+xml").firstChild;
9833
9815
  }
9834
- function Qs() {
9816
+ function Zs() {
9835
9817
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
9836
9818
  <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>
9837
9819
  </svg>
9838
9820
  `, "image/svg+xml").firstChild;
9839
9821
  }
9840
- var Mi = /* @__PURE__ */ function(a) {
9822
+ var Ri = /* @__PURE__ */ function(a) {
9841
9823
  S(r, a);
9842
9824
  var o = x(r);
9843
9825
  function r() {
@@ -9891,11 +9873,11 @@ var Mi = /* @__PURE__ */ function(a) {
9891
9873
  value: function() {
9892
9874
  return {
9893
9875
  cssFullscreen: {
9894
- icon: Js,
9876
+ icon: qs,
9895
9877
  class: "xg-get-cssfull"
9896
9878
  },
9897
9879
  exitCssFullscreen: {
9898
- icon: Qs,
9880
+ icon: Zs,
9899
9881
  class: "xg-exit-cssfull"
9900
9882
  }
9901
9883
  };
@@ -9912,7 +9894,7 @@ var Mi = /* @__PURE__ */ function(a) {
9912
9894
  return `<xg-icon class='xgplayer-cssfullscreen'>
9913
9895
  <div class="xgplayer-icon">
9914
9896
  </div>
9915
- `.concat(Ee(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
9897
+ `.concat(we(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
9916
9898
  </xg-icon>`);
9917
9899
  }
9918
9900
  }], [{
@@ -9931,7 +9913,7 @@ var Mi = /* @__PURE__ */ function(a) {
9931
9913
  };
9932
9914
  }
9933
9915
  }]), r;
9934
- }(Re), eo = /* @__PURE__ */ function(a) {
9916
+ }(Re), Js = /* @__PURE__ */ function(a) {
9935
9917
  S(r, a);
9936
9918
  var o = x(r);
9937
9919
  function r() {
@@ -9992,7 +9974,7 @@ var Mi = /* @__PURE__ */ function(a) {
9992
9974
  return "error";
9993
9975
  }
9994
9976
  }]), r;
9995
- }(F), to = /* @__PURE__ */ function(a) {
9977
+ }(F), Qs = /* @__PURE__ */ function(a) {
9996
9978
  S(r, a);
9997
9979
  var o = x(r);
9998
9980
  function r() {
@@ -10070,7 +10052,7 @@ var Mi = /* @__PURE__ */ function(a) {
10070
10052
  };
10071
10053
  }
10072
10054
  }]), r;
10073
- }(F), Fi = {
10055
+ }(F), Oi = {
10074
10056
  time: 0,
10075
10057
  text: "",
10076
10058
  id: 1,
@@ -10080,12 +10062,12 @@ var Mi = /* @__PURE__ */ function(a) {
10080
10062
  width: 6,
10081
10063
  height: 6
10082
10064
  };
10083
- function vn(a) {
10084
- Object.keys(Fi).map(function(o) {
10085
- a[o] === void 0 && (a[o] = Fi[o]);
10065
+ function pn(a) {
10066
+ Object.keys(Oi).map(function(o) {
10067
+ a[o] === void 0 && (a[o] = Oi[o]);
10086
10068
  });
10087
10069
  }
10088
- var Ni = {
10070
+ var Mi = {
10089
10071
  _updateDotDom: function(o, r) {
10090
10072
  if (r) {
10091
10073
  var t = this.calcuPosition(o.time, o.duration), e = o.style || {};
@@ -10102,7 +10084,7 @@ var Ni = {
10102
10084
  },
10103
10085
  createDot: function(o) {
10104
10086
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
10105
- if (t && (r && (vn(o), this._ispots.push(o)), !(!this.ispotsInit && r))) {
10087
+ if (t && (r && (pn(o), this._ispots.push(o)), !(!this.ispotsInit && r))) {
10106
10088
  var e = this.calcuPosition(o.time, o.duration), i = o.style || {};
10107
10089
  i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
10108
10090
  var n = "xgspot_".concat(o.id, " xgplayer-spot");
@@ -10222,20 +10204,20 @@ var Ni = {
10222
10204
  return r.find('xg-spot[data-id="'.concat(o, '"]'));
10223
10205
  }
10224
10206
  };
10225
- function io(a) {
10207
+ function eo(a) {
10226
10208
  var o = a.config, r = a.player;
10227
- Object.keys(Ni).map(function(e) {
10228
- a[e] = Ni[e].bind(a);
10209
+ Object.keys(Mi).map(function(e) {
10210
+ a[e] = Mi[e].bind(a);
10229
10211
  });
10230
10212
  var t = r.config.progressDot || o.ispots || [];
10231
10213
  a._ispots = t.map(function(e) {
10232
- return vn(e), e;
10214
+ return pn(e), e;
10233
10215
  }), a.ispotsInit = !1, a.playerSize = {
10234
10216
  left: r.sizeInfo.left,
10235
10217
  width: r.sizeInfo.width
10236
- }, a.on(we, function() {
10218
+ }, a.on(Te, function() {
10237
10219
  a.ispotsInit ? a.updateDuration() : a.initDots();
10238
- }), a.on(be, function() {
10220
+ }), a.on(ke, function() {
10239
10221
  a.positionDots();
10240
10222
  });
10241
10223
  }
@@ -10246,7 +10228,7 @@ var Be = {
10246
10228
  click: "onProgressClick",
10247
10229
  mouseover: "onProgressMouseOver",
10248
10230
  mouseenter: "onProgressMouseOver"
10249
- }, no = /* @__PURE__ */ function(a) {
10231
+ }, to = /* @__PURE__ */ function(a) {
10250
10232
  S(r, a);
10251
10233
  var o = x(r);
10252
10234
  function r(t) {
@@ -10297,7 +10279,7 @@ var Be = {
10297
10279
  n.seekTime && e.player.seek(n.seekTime);
10298
10280
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
10299
10281
  e.setTimeContent(f.format(i));
10300
- }), io(this), this.on(we, function() {
10282
+ }), eo(this), this.on(Te, function() {
10301
10283
  e.show();
10302
10284
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
10303
10285
  }
@@ -10521,7 +10503,7 @@ var Be = {
10521
10503
  };
10522
10504
  }
10523
10505
  }]), r;
10524
- }(F), ro = /* @__PURE__ */ function(a) {
10506
+ }(F), io = /* @__PURE__ */ function(a) {
10525
10507
  S(r, a);
10526
10508
  var o = x(r);
10527
10509
  function r(t) {
@@ -10532,7 +10514,7 @@ var Be = {
10532
10514
  key: "afterCreate",
10533
10515
  value: function() {
10534
10516
  var e = this;
10535
- this.usable && this.initThumbnail(), this.on([we], function() {
10517
+ this.usable && this.initThumbnail(), this.on([Te], function() {
10536
10518
  var i = e.config, n = i.pic_num, s = i.interval;
10537
10519
  e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
10538
10520
  });
@@ -10656,10 +10638,10 @@ var Be = {
10656
10638
  }
10657
10639
  }]), r;
10658
10640
  }(F);
10659
- function Rt(a) {
10641
+ function Dt(a) {
10660
10642
  return a ? "background:".concat(a, ";") : "";
10661
10643
  }
10662
- var so = /* @__PURE__ */ function(a) {
10644
+ var no = /* @__PURE__ */ function(a) {
10663
10645
  S(r, a);
10664
10646
  var o = x(r);
10665
10647
  function r() {
@@ -10716,9 +10698,9 @@ var so = /* @__PURE__ */ function(a) {
10716
10698
  var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
10717
10699
  if (n) {
10718
10700
  var s = this.config, l = s.mode, u = s.height, c = {
10719
- cached: Rt(i.cachedColor),
10720
- played: Rt(i.playedColor),
10721
- progress: Rt(i.progressColor),
10701
+ cached: Dt(i.cachedColor),
10702
+ played: Dt(i.playedColor),
10703
+ progress: Dt(i.progressColor),
10722
10704
  height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
10723
10705
  }, h = l === "show" ? "xg-mini-progress-show" : "";
10724
10706
  return '<xg-mini-progress class="xg-mini-progress '.concat(h, '" style="').concat(c.progress, " ").concat(c.height, `">
@@ -10747,14 +10729,14 @@ var so = /* @__PURE__ */ function(a) {
10747
10729
  FRAME_RATE: "framerate",
10748
10730
  POSTER: "poster"
10749
10731
  };
10750
- function oo() {
10732
+ function ro() {
10751
10733
  try {
10752
10734
  return parseInt(window.performance.now(), 10);
10753
10735
  } catch {
10754
10736
  return (/* @__PURE__ */ new Date()).getTime();
10755
10737
  }
10756
10738
  }
10757
- function ao() {
10739
+ function so() {
10758
10740
  try {
10759
10741
  var a = document.createElement("canvas").getContext;
10760
10742
  return !!a;
@@ -10762,7 +10744,7 @@ function ao() {
10762
10744
  return !1;
10763
10745
  }
10764
10746
  }
10765
- var et = null, lo = /* @__PURE__ */ function(a) {
10747
+ var et = null, oo = /* @__PURE__ */ function(a) {
10766
10748
  S(r, a);
10767
10749
  var o = x(r);
10768
10750
  function r() {
@@ -10783,7 +10765,7 @@ var et = null, lo = /* @__PURE__ */ function(a) {
10783
10765
  !t.player.paused && t._checkIfCanStart() && t.start(0, l);
10784
10766
  }
10785
10767
  }), y(v(t), "start", function(s, l) {
10786
- var u = t.player.video, c = oo(), h = t.checkVideoIsSupport(u);
10768
+ var u = t.player.video, c = ro(), h = t.checkVideoIsSupport(u);
10787
10769
  !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 === He.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));
10788
10770
  }), y(v(t), "stop", function() {
10789
10771
  t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
@@ -10812,7 +10794,7 @@ var et = null, lo = /* @__PURE__ */ function(a) {
10812
10794
  e._checkIfCanStart() && e.start(0, u);
10813
10795
  }), this.on(je, function() {
10814
10796
  e.stop();
10815
- })), this.on(ve, this.onLoadedData), this.on(qt, function() {
10797
+ })), this.on(ve, this.onLoadedData), this.on($t, function() {
10816
10798
  e._isLoaded = !1, e.stop();
10817
10799
  }), document.addEventListener("visibilitychange", this.onVisibilitychange)));
10818
10800
  }
@@ -10956,7 +10938,7 @@ var et = null, lo = /* @__PURE__ */ function(a) {
10956
10938
  }, {
10957
10939
  key: "isSupport",
10958
10940
  get: function() {
10959
- return typeof et == "boolean" || (et = ao()), et;
10941
+ return typeof et == "boolean" || (et = so()), et;
10960
10942
  }
10961
10943
  }, {
10962
10944
  key: "supportCanvasFilter",
@@ -10964,7 +10946,7 @@ var et = null, lo = /* @__PURE__ */ function(a) {
10964
10946
  return !(L.browser === "safari" || L.browser === "firefox");
10965
10947
  }
10966
10948
  }]), r;
10967
- }(F), uo = {
10949
+ }(F), ao = {
10968
10950
  LANG: "zh-cn",
10969
10951
  TEXT: {
10970
10952
  ERROR_TYPES: {
@@ -11039,7 +11021,7 @@ var et = null, lo = /* @__PURE__ */ function(a) {
11039
11021
  FORWARD: "快进中",
11040
11022
  LIVE_TIP: "直播"
11041
11023
  }
11042
- }, We = "info", Ot = ln, co = /* @__PURE__ */ function(a) {
11024
+ }, We = "info", Rt = an, lo = /* @__PURE__ */ function(a) {
11043
11025
  S(r, a);
11044
11026
  var o = x(r);
11045
11027
  function r() {
@@ -11078,7 +11060,7 @@ var et = null, lo = /* @__PURE__ */ function(a) {
11078
11060
  }, {
11079
11061
  key: "afterCreate",
11080
11062
  value: function() {
11081
- this.reset(), this.on(ut, this._recordUserActions), this.on(Ot.STATS_INFO, this._recordInfo), this.on(Ot.STATS_DOWNLOAD, this._downloadStats), this.on(Ot.STATS_RESET, this._onReset);
11063
+ this.reset(), this.on(ut, this._recordUserActions), this.on(Rt.STATS_INFO, this._recordInfo), this.on(Rt.STATS_DOWNLOAD, this._downloadStats), this.on(Rt.STATS_RESET, this._onReset);
11082
11064
  }
11083
11065
  }, {
11084
11066
  key: "destroy",
@@ -11183,7 +11165,7 @@ var et = null, lo = /* @__PURE__ */ function(a) {
11183
11165
  return {};
11184
11166
  }
11185
11167
  }]), r;
11186
- }(Te), mn = /* @__PURE__ */ function(a) {
11168
+ }(be), vn = /* @__PURE__ */ function(a) {
11187
11169
  S(r, a);
11188
11170
  var o = x(r);
11189
11171
  function r() {
@@ -11272,8 +11254,8 @@ var et = null, lo = /* @__PURE__ */ function(a) {
11272
11254
  }
11273
11255
  }]), r;
11274
11256
  }(F);
11275
- mn.BROWSER_GAP_TOLERANCE = 1e-3;
11276
- var fo = /* @__PURE__ */ function(a) {
11257
+ vn.BROWSER_GAP_TOLERANCE = 1e-3;
11258
+ var uo = /* @__PURE__ */ function(a) {
11277
11259
  S(r, a);
11278
11260
  var o = x(r);
11279
11261
  function r() {
@@ -11297,7 +11279,7 @@ var fo = /* @__PURE__ */ function(a) {
11297
11279
  key: "afterCreate",
11298
11280
  value: function() {
11299
11281
  var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
11300
- n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(Ze, this.onWaiting), this.on([Xt, de], function() {
11282
+ n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(Ze, this.onWaiting), this.on([Yt, de], function() {
11301
11283
  clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
11302
11284
  }), this.on(Q, function() {
11303
11285
  e.hasPlayed = !0;
@@ -11319,7 +11301,7 @@ var fo = /* @__PURE__ */ function(a) {
11319
11301
  };
11320
11302
  }
11321
11303
  }]), r;
11322
- }(F), Ue = "cdn", tt = ["cdn"], ho = /* @__PURE__ */ function(a) {
11304
+ }(F), Ue = "cdn", tt = ["cdn"], co = /* @__PURE__ */ function(a) {
11323
11305
  S(r, a);
11324
11306
  var o = x(r);
11325
11307
  function r() {
@@ -11378,13 +11360,13 @@ var fo = /* @__PURE__ */ function(a) {
11378
11360
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ue, l = t.getSpeed(s), u = v(t), c = u.player;
11379
11361
  if (c)
11380
11362
  if (s === Ue)
11381
- (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(jt, {
11363
+ (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Ut, {
11382
11364
  speed: l,
11383
11365
  realTimeSpeed: c.realTimeSpeed
11384
11366
  }));
11385
11367
  else {
11386
11368
  var h = t.getSpeedName("avg", s);
11387
- (!c[h] || l !== c[h]) && (c[h] = l, c.emit(jt, {
11369
+ (!c[h] || l !== c[h]) && (c[h] = l, c.emit(Ut, {
11388
11370
  speed: l,
11389
11371
  realTimeSpeed: c.realTimeSpeed
11390
11372
  }));
@@ -11445,7 +11427,7 @@ var fo = /* @__PURE__ */ function(a) {
11445
11427
  };
11446
11428
  }
11447
11429
  }]), r;
11448
- }(F), go = /* @__PURE__ */ function(a) {
11430
+ }(F), fo = /* @__PURE__ */ function(a) {
11449
11431
  S(r, a);
11450
11432
  var o = x(r);
11451
11433
  function r() {
@@ -11512,7 +11494,7 @@ var fo = /* @__PURE__ */ function(a) {
11512
11494
  totalVideoFrames: i,
11513
11495
  droppedVideoFrames: n,
11514
11496
  checkInterval: s
11515
- }), this._currentStuckCount >= this.config.stuckCount && (this.emit(un, this._payload), this._reset())) : this._reset());
11497
+ }), this._currentStuckCount >= this.config.stuckCount && (this.emit(ln, this._payload), this._reset())) : this._reset());
11516
11498
  }
11517
11499
  }
11518
11500
  }, {
@@ -11555,24 +11537,24 @@ var fo = /* @__PURE__ */ function(a) {
11555
11537
  }
11556
11538
  }]), r;
11557
11539
  }(F);
11558
- Ve.use(uo);
11559
- var po = /* @__PURE__ */ E(function a(o, r) {
11540
+ Ve.use(ao);
11541
+ var ho = /* @__PURE__ */ E(function a(o, r) {
11560
11542
  var t, e, i;
11561
11543
  w(this, a);
11562
- var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Ls, Ts, so, no, As], u = [].concat(l, [ws, Is, Ns, js, qs, Zs, Ks, Ys, Ms, Us]), c = [ns, rs, os, Cs, as, eo, to, ro, fs];
11563
- this.plugins = [co, ts].concat(ne(u), c, [mn, fo]);
11544
+ var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Is, ks, no, to, Ps], u = [].concat(l, [bs, xs, Ms, Us, $s, Xs, Ws, Gs, Rs, Bs]), c = [ts, is, rs, ys, ss, Js, Qs, io, us];
11545
+ this.plugins = [lo, Qr].concat(ne(u), c, [vn, uo]);
11564
11546
  var h = n ? "mobile" : L.device;
11565
11547
  switch (h) {
11566
11548
  case "pc":
11567
- (t = this.plugins).push.apply(t, [Ri, Lt, Mi, ho, go]);
11549
+ (t = this.plugins).push.apply(t, [Li, At, Ri, co, fo]);
11568
11550
  break;
11569
11551
  case "mobile":
11570
- (e = this.plugins).push.apply(e, [ms]);
11552
+ (e = this.plugins).push.apply(e, [ps]);
11571
11553
  break;
11572
11554
  default:
11573
- (i = this.plugins).push.apply(i, [Ri, Lt, Mi]);
11555
+ (i = this.plugins).push.apply(i, [Li, At, Ri]);
11574
11556
  }
11575
- (L.os.isIpad || h === "pc") && this.plugins.push(lo), L.os.isIpad && this.plugins.push(Lt), this.ignores = [], this.i18n = [];
11557
+ (L.os.isIpad || h === "pc") && this.plugins.push(oo), L.os.isIpad && this.plugins.push(At), this.ignores = [], this.i18n = [];
11576
11558
  }), re = /* @__PURE__ */ function(a) {
11577
11559
  S(r, a);
11578
11560
  var o = x(r);
@@ -11581,17 +11563,17 @@ var po = /* @__PURE__ */ E(function a(o, r) {
11581
11563
  }
11582
11564
  return E(r);
11583
11565
  }(_t);
11584
- y(re, "defaultPreset", po);
11566
+ y(re, "defaultPreset", ho);
11585
11567
  y(re, "Util", f);
11586
11568
  y(re, "Sniffer", L);
11587
11569
  y(re, "Errors", rt);
11588
- y(re, "Events", Ir);
11570
+ y(re, "Events", xr);
11589
11571
  y(re, "Plugin", F);
11590
- y(re, "BasePlugin", Te);
11572
+ y(re, "BasePlugin", be);
11591
11573
  y(re, "I18N", Ve);
11592
11574
  y(re, "STATE_CLASS", C);
11593
- y(re, "InstManager", dn);
11594
- const vo = ["id"], mo = /* @__PURE__ */ pe({
11575
+ y(re, "InstManager", hn);
11576
+ const go = ["id"], po = /* @__PURE__ */ pe({
11595
11577
  name: "ElImageViewer",
11596
11578
  __name: "Player",
11597
11579
  props: /* @__PURE__ */ it({
@@ -11620,7 +11602,7 @@ const vo = ["id"], mo = /* @__PURE__ */ pe({
11620
11602
  }, ["update:modelValue"]),
11621
11603
  setup(a, { emit: o }) {
11622
11604
  let r = null;
11623
- const t = a, { cLoadUrl: e } = Dn(t), i = ie(() => Nt(e.value, t.url)), n = {
11605
+ const t = a, { cLoadUrl: e } = Ln(t), i = ie(() => Ft(e.value, t.url)), n = {
11624
11606
  width: "100%",
11625
11607
  height: "100%",
11626
11608
  // 是否自动播放
@@ -11641,12 +11623,12 @@ const vo = ["id"], mo = /* @__PURE__ */ pe({
11641
11623
  }, s = ie(() => ({
11642
11624
  ...n,
11643
11625
  ...t.config
11644
- })), l = o, u = Gt(a, "modelValue"), c = Ui(), h = Sn("image-viewer");
11626
+ })), l = o, u = zt(a, "modelValue"), c = Bi(), h = En("image-viewer");
11645
11627
  function d() {
11646
11628
  l("close"), u.value = !1, r.destroy();
11647
11629
  }
11648
- return Bi(() => u.value, (g) => {
11649
- g && Hi(() => {
11630
+ return Fi(() => u.value, (g) => {
11631
+ g && Ni(() => {
11650
11632
  r = new re({
11651
11633
  id: c,
11652
11634
  url: i.value,
@@ -11655,11 +11637,11 @@ const vo = ["id"], mo = /* @__PURE__ */ pe({
11655
11637
  });
11656
11638
  }), (g, p) => {
11657
11639
  const m = Ye("el-icon");
11658
- return u.value ? (U(), Ae(kn, {
11640
+ return u.value ? (U(), Ae(Cn, {
11659
11641
  key: 0,
11660
11642
  to: "body"
11661
11643
  }, [
11662
- ke(bn, {
11644
+ Pe(kn, {
11663
11645
  name: "viewer-fade",
11664
11646
  appear: ""
11665
11647
  }, {
@@ -11669,14 +11651,14 @@ const vo = ["id"], mo = /* @__PURE__ */ pe({
11669
11651
  {
11670
11652
  ref: "wrapper",
11671
11653
  tabindex: -1,
11672
- class: ae(K(h).e("wrapper")),
11654
+ class: ae(X(h).e("wrapper")),
11673
11655
  style: Ce({ zIndex: a.zIndex })
11674
11656
  },
11675
11657
  [
11676
11658
  le(
11677
11659
  "div",
11678
11660
  {
11679
- class: ae(K(h).e("mask"))
11661
+ class: ae(X(h).e("mask"))
11680
11662
  },
11681
11663
  null,
11682
11664
  2
@@ -11686,21 +11668,21 @@ const vo = ["id"], mo = /* @__PURE__ */ pe({
11686
11668
  le(
11687
11669
  "div",
11688
11670
  {
11689
- class: ae(K(h).e("canvas"))
11671
+ class: ae(X(h).e("canvas"))
11690
11672
  },
11691
11673
  [
11692
- le("div", { id: K(c) }, null, 8, vo),
11674
+ le("div", { id: X(c) }, null, 8, go),
11693
11675
  fe(" CLOSE "),
11694
11676
  le(
11695
11677
  "span",
11696
11678
  {
11697
- class: ae([K(h).e("btn"), K(h).e("close")]),
11679
+ class: ae([X(h).e("btn"), X(h).e("close")]),
11698
11680
  onClick: d
11699
11681
  },
11700
11682
  [
11701
- ke(m, { onClick: d }, {
11683
+ Pe(m, { onClick: d }, {
11702
11684
  default: he(() => [
11703
- ke(K(An))
11685
+ Pe(X(In))
11704
11686
  ]),
11705
11687
  _: 1
11706
11688
  /* STABLE */
@@ -11726,7 +11708,7 @@ const vo = ["id"], mo = /* @__PURE__ */ pe({
11726
11708
  };
11727
11709
  }
11728
11710
  });
11729
- const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(yo), Co = /* @__PURE__ */ pe({
11711
+ const vo = /* @__PURE__ */ gt(po, [["__scopeId", "data-v-b301aa7d"]]), mo = Xe(vo), yo = /* @__PURE__ */ pe({
11730
11712
  __name: "IkPreviewFileDialog",
11731
11713
  props: /* @__PURE__ */ it({
11732
11714
  file: {
@@ -11763,13 +11745,13 @@ const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(y
11763
11745
  }),
11764
11746
  emits: ["update:show"],
11765
11747
  setup(a) {
11766
- const o = a, r = Gt(a, "show"), t = ie(() => ({
11748
+ const o = a, r = zt(a, "show"), t = ie(() => ({
11767
11749
  name: "name",
11768
11750
  url: "url",
11769
11751
  suffix: "suffix",
11770
11752
  size: "fileSize",
11771
11753
  ...o.field
11772
- })), e = nt(null), i = nt(null), n = Tn({
11754
+ })), e = nt(null), i = nt(null), n = bn({
11773
11755
  image: !1,
11774
11756
  office: !1,
11775
11757
  video: !1
@@ -11780,11 +11762,11 @@ const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(y
11780
11762
  if (i.value = {
11781
11763
  ...u,
11782
11764
  name: u[t.value.name],
11783
- url: Nt(o.loadUrl, T)
11784
- }, u && oi(u, t.value) === "image") {
11765
+ url: Ft(o.loadUrl, T)
11766
+ }, u && ri(u, t.value) === "image") {
11785
11767
  n.image = !0;
11786
11768
  return;
11787
- } else if (u && oi(u, t.value) === "video") {
11769
+ } else if (u && ri(u, t.value) === "video") {
11788
11770
  n.video = !0;
11789
11771
  return;
11790
11772
  } else if ((((d = o.onlyOfficeConfig) == null ? void 0 : d.accept) || o.onlyOfficeAccept).includes(b)) {
@@ -11800,13 +11782,13 @@ const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(y
11800
11782
  }
11801
11783
  },
11802
11784
  document: {
11803
- key: Ui(),
11785
+ key: Bi(),
11804
11786
  title: N,
11805
- url: Nt(o.loadUrl, T),
11787
+ url: Ft(o.loadUrl, T),
11806
11788
  fileType: b,
11807
11789
  ...((_ = o.onlyOfficeConfig) == null ? void 0 : _.document) || {}
11808
11790
  },
11809
- documentType: Pn(b)
11791
+ documentType: xn(b)
11810
11792
  };
11811
11793
  return;
11812
11794
  }
@@ -11814,8 +11796,8 @@ const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(y
11814
11796
  console.info("预览错误: ", k);
11815
11797
  }
11816
11798
  };
11817
- Bi([r, o.file], ([u, c]) => {
11818
- u && Hi(() => {
11799
+ Fi([r, o.file], ([u, c]) => {
11800
+ u && Ni(() => {
11819
11801
  s(o.file);
11820
11802
  });
11821
11803
  });
@@ -11825,8 +11807,8 @@ const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(y
11825
11807
  return (u, c) => {
11826
11808
  var d, g, p;
11827
11809
  const h = Ye("el-image-viewer");
11828
- return r.value ? (U(), W(
11829
- wn,
11810
+ return r.value ? (U(), $(
11811
+ Tn,
11830
11812
  { key: 0 },
11831
11813
  [
11832
11814
  (d = i.value) != null && d.url && n.image ? (U(), Ae(h, {
@@ -11838,12 +11820,12 @@ const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(y
11838
11820
  }, null, 8, ["url-list"])) : fe("v-if", !0),
11839
11821
  fe(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
11840
11822
  fe(" 文档类 "),
11841
- ke(K(_o), {
11823
+ Pe(X(mo), {
11842
11824
  modelValue: n.video,
11843
11825
  "onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
11844
11826
  url: (p = i.value) == null ? void 0 : p.url
11845
11827
  }, null, 8, ["modelValue", "url"]),
11846
- ke(K(Yn), {
11828
+ Pe(X(Gn), {
11847
11829
  modelValue: n.office,
11848
11830
  "onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
11849
11831
  draggable: "",
@@ -11861,7 +11843,7 @@ const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(y
11861
11843
  default: he(() => {
11862
11844
  var m;
11863
11845
  return [
11864
- ke(K(ir), {
11846
+ Pe(X(er), {
11865
11847
  "config-options": e.value,
11866
11848
  "document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
11867
11849
  }, null, 8, ["config-options", "document-server-url"])
@@ -11877,8 +11859,8 @@ const yo = /* @__PURE__ */ gt(mo, [["__scopeId", "data-v-b301aa7d"]]), _o = Xe(y
11877
11859
  };
11878
11860
  }
11879
11861
  });
11880
- const wo = Xe(Co);
11862
+ const bo = Xe(yo);
11881
11863
  export {
11882
- wo as IkPreviewFileDialog,
11883
- wo as default
11864
+ bo as IkPreviewFileDialog,
11865
+ bo as default
11884
11866
  };