iking-web-ui-pro 0.3.4 → 0.3.5

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 (40) hide show
  1. package/dist/IkApprovalProcessDetail/ik.index.es.js +612 -640
  2. package/dist/IkApprovalProcessDetail/iking-web-ui-pro.css +1 -1
  3. package/dist/IkBaseDialog/ik.index.es.js +151 -179
  4. package/dist/IkBaseDialog/iking-web-ui-pro.css +1 -1
  5. package/dist/IkBtnSetting/ik.index.es.js +274 -302
  6. package/dist/IkBtnSetting/iking-web-ui-pro.css +1 -1
  7. package/dist/IkCollapseCard/ik.index.es.js +148 -176
  8. package/dist/IkCollapseCard/iking-web-ui-pro.css +1 -1
  9. package/dist/IkDescription/ik.index.es.js +1494 -1522
  10. package/dist/IkDescription/iking-web-ui-pro.css +1 -1
  11. package/dist/IkDetailPreviewFiles/ik.index.es.js +1462 -1490
  12. package/dist/IkDetailPreviewFiles/iking-web-ui-pro.css +1 -1
  13. package/dist/IkExpandCollapse/ik.index.es.js +142 -170
  14. package/dist/IkExpandCollapse/iking-web-ui-pro.css +1 -1
  15. package/dist/IkIconPicker/ik.index.es.js +210 -238
  16. package/dist/IkIconPicker/iking-web-ui-pro.css +1 -1
  17. package/dist/IkMonacoEditor/ik.index.es.js +356 -384
  18. package/dist/IkMonacoEditor/iking-web-ui-pro.css +1 -1
  19. package/dist/IkPageFull/ik.index.es.js +624 -652
  20. package/dist/IkPageFull/iking-web-ui-pro.css +1 -1
  21. package/dist/IkPreviewFile/ik.index.es.js +1438 -1466
  22. package/dist/IkPreviewFile/iking-web-ui-pro.css +1 -1
  23. package/dist/IkPreviewFileDialog/ik.index.es.js +571 -599
  24. package/dist/IkPreviewFileDialog/iking-web-ui-pro.css +1 -1
  25. package/dist/IkSchedule/ik.index.es.js +324 -352
  26. package/dist/IkSchedule/iking-web-ui-pro.css +1 -1
  27. package/dist/IkSideText/ik.index.es.js +163 -191
  28. package/dist/IkSideText/iking-web-ui-pro.css +1 -1
  29. package/dist/IkSvgIcon/ik.index.es.js +129 -157
  30. package/dist/IkSvgIcon/iking-web-ui-pro.css +1 -1
  31. package/dist/IkUploadFile/ik.index.es.js +690 -718
  32. package/dist/IkUploadFile/iking-web-ui-pro.css +1 -1
  33. package/dist/IkUploadImage/ik.index.es.js +353 -381
  34. package/dist/IkUploadImage/iking-web-ui-pro.css +1 -1
  35. package/dist/IkVerticalStepBar/ik.index.es.js +199 -227
  36. package/dist/IkVerticalStepBar/iking-web-ui-pro.css +1 -1
  37. package/dist/iking-web-ui-pro.css +1 -1
  38. package/dist/index.es.js +6833 -6861
  39. package/dist/index.umd.js +1 -1
  40. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- import { defineComponent as ie, openBlock as S, createElementBlock as I, createElementVNode as A, computed as se, inject as dt, mergeModels as ct, useModel as Ut, ref as me, reactive as mr, watch as mt, nextTick as yt, Fragment as Le, createBlock as ne, unref as k, createCommentVNode as J, createVNode as B, withCtx as Y, resolveComponent as xt, normalizeClass as te, normalizeStyle as De, createTextVNode as qe, toDisplayString as we, h as yr, mergeProps as di, createSlots as Dn, renderSlot as Oe, getCurrentScope as _r, onScopeDispose as kr, markRaw as Fi, effectScope as Cr, shallowRef as wr, onMounted as br, Teleport as Rn, Transition as On, withModifiers as pt, resolveDynamicComponent as Tr, renderList as Mn, withDirectives as Er, vShow as Sr } from "vue";
2
- import { useLocale as Ar, useNamespace as Fn, useZIndex as xr, ElIcon as be, EVENT_CODE as it, ElUpload as Ni, ElButton as Ir, ElProgress as Bi, ElTooltip as Hi, ElMessage as Yt } from "element-plus";
3
- import { buildUUID as Nn, ikColor as Pr, paramType as Ui, _ as Xt, ikFile as Lr } from "iking-utils-pro";
1
+ import { defineComponent as te, openBlock as E, createElementBlock as I, createElementVNode as A, computed as se, inject as ht, mergeModels as ut, useModel as zt, ref as me, reactive as mr, watch as vt, nextTick as mt, Fragment as Ae, createBlock as ie, unref as k, createCommentVNode as J, createVNode as B, withCtx as Y, resolveComponent as xt, normalizeClass as ne, normalizeStyle as yt, mergeProps as It, createTextVNode as Xe, toDisplayString as we, h as yr, createSlots as Dn, renderSlot as Re, getCurrentScope as _r, onScopeDispose as kr, markRaw as Fi, effectScope as Cr, shallowRef as wr, onMounted as br, Teleport as Rn, Transition as On, withModifiers as gt, resolveDynamicComponent as Tr, renderList as Mn, withDirectives as Er, vShow as Sr } from "vue";
2
+ import { useLocale as Ar, useNamespace as Fn, useZIndex as xr, ElIcon as be, EVENT_CODE as tt, ElUpload as Ni, ElButton as Ir, ElProgress as Bi, ElTooltip as Hi, ElMessage as Xt } from "element-plus";
3
+ import { buildUUID as Nn, ikColor as Pr, paramType as Ui, _ as qt, ikFile as Lr } from "iking-utils-pro";
4
4
  import Dr from "axios";
5
- const $e = (a, o) => (a.install = (r) => {
5
+ const Ge = (a, o) => (a.install = (r) => {
6
6
  for (const t of [a, ...Object.values({})])
7
7
  r.component(t.name, t);
8
8
  }, a), Rr = "data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=";
9
9
  /*! Element Plus Icons Vue v2.3.1 */
10
- var Or = /* @__PURE__ */ ie({
10
+ var Or = /* @__PURE__ */ te({
11
11
  name: "ArrowLeft",
12
12
  __name: "arrow-left",
13
13
  setup(a) {
14
- return (o, r) => (S(), I("svg", {
14
+ return (o, r) => (E(), I("svg", {
15
15
  xmlns: "http://www.w3.org/2000/svg",
16
16
  viewBox: "0 0 1024 1024"
17
17
  }, [
@@ -21,11 +21,11 @@ var Or = /* @__PURE__ */ ie({
21
21
  })
22
22
  ]));
23
23
  }
24
- }), Mr = Or, Fr = /* @__PURE__ */ ie({
24
+ }), Mr = Or, Fr = /* @__PURE__ */ te({
25
25
  name: "ArrowRight",
26
26
  __name: "arrow-right",
27
27
  setup(a) {
28
- return (o, r) => (S(), I("svg", {
28
+ return (o, r) => (E(), I("svg", {
29
29
  xmlns: "http://www.w3.org/2000/svg",
30
30
  viewBox: "0 0 1024 1024"
31
31
  }, [
@@ -35,11 +35,11 @@ var Or = /* @__PURE__ */ ie({
35
35
  })
36
36
  ]));
37
37
  }
38
- }), Nr = Fr, Br = /* @__PURE__ */ ie({
38
+ }), Nr = Fr, Br = /* @__PURE__ */ te({
39
39
  name: "Close",
40
40
  __name: "close",
41
41
  setup(a) {
42
- return (o, r) => (S(), I("svg", {
42
+ return (o, r) => (E(), I("svg", {
43
43
  xmlns: "http://www.w3.org/2000/svg",
44
44
  viewBox: "0 0 1024 1024"
45
45
  }, [
@@ -49,11 +49,11 @@ var Or = /* @__PURE__ */ ie({
49
49
  })
50
50
  ]));
51
51
  }
52
- }), Bn = Br, Hr = /* @__PURE__ */ ie({
52
+ }), Bn = Br, Hr = /* @__PURE__ */ te({
53
53
  name: "Download",
54
54
  __name: "download",
55
55
  setup(a) {
56
- return (o, r) => (S(), I("svg", {
56
+ return (o, r) => (E(), I("svg", {
57
57
  xmlns: "http://www.w3.org/2000/svg",
58
58
  viewBox: "0 0 1024 1024"
59
59
  }, [
@@ -63,11 +63,11 @@ var Or = /* @__PURE__ */ ie({
63
63
  })
64
64
  ]));
65
65
  }
66
- }), Ur = Hr, zr = /* @__PURE__ */ ie({
66
+ }), Ur = Hr, zr = /* @__PURE__ */ te({
67
67
  name: "FullScreen",
68
68
  __name: "full-screen",
69
69
  setup(a) {
70
- return (o, r) => (S(), I("svg", {
70
+ return (o, r) => (E(), I("svg", {
71
71
  xmlns: "http://www.w3.org/2000/svg",
72
72
  viewBox: "0 0 1024 1024"
73
73
  }, [
@@ -77,11 +77,11 @@ var Or = /* @__PURE__ */ ie({
77
77
  })
78
78
  ]));
79
79
  }
80
- }), Vr = zr, jr = /* @__PURE__ */ ie({
80
+ }), Vr = zr, jr = /* @__PURE__ */ te({
81
81
  name: "QuestionFilled",
82
82
  __name: "question-filled",
83
83
  setup(a) {
84
- return (o, r) => (S(), I("svg", {
84
+ return (o, r) => (E(), I("svg", {
85
85
  xmlns: "http://www.w3.org/2000/svg",
86
86
  viewBox: "0 0 1024 1024"
87
87
  }, [
@@ -91,11 +91,11 @@ var Or = /* @__PURE__ */ ie({
91
91
  })
92
92
  ]));
93
93
  }
94
- }), zi = jr, Wr = /* @__PURE__ */ ie({
94
+ }), zi = jr, Wr = /* @__PURE__ */ te({
95
95
  name: "RefreshLeft",
96
96
  __name: "refresh-left",
97
97
  setup(a) {
98
- return (o, r) => (S(), I("svg", {
98
+ return (o, r) => (E(), I("svg", {
99
99
  xmlns: "http://www.w3.org/2000/svg",
100
100
  viewBox: "0 0 1024 1024"
101
101
  }, [
@@ -105,11 +105,11 @@ var Or = /* @__PURE__ */ ie({
105
105
  })
106
106
  ]));
107
107
  }
108
- }), Gr = Wr, $r = /* @__PURE__ */ ie({
108
+ }), Gr = Wr, $r = /* @__PURE__ */ te({
109
109
  name: "RefreshRight",
110
110
  __name: "refresh-right",
111
111
  setup(a) {
112
- return (o, r) => (S(), I("svg", {
112
+ return (o, r) => (E(), I("svg", {
113
113
  xmlns: "http://www.w3.org/2000/svg",
114
114
  viewBox: "0 0 1024 1024"
115
115
  }, [
@@ -119,11 +119,11 @@ var Or = /* @__PURE__ */ ie({
119
119
  })
120
120
  ]));
121
121
  }
122
- }), Kr = $r, Yr = /* @__PURE__ */ ie({
122
+ }), Kr = $r, Yr = /* @__PURE__ */ te({
123
123
  name: "ScaleToOriginal",
124
124
  __name: "scale-to-original",
125
125
  setup(a) {
126
- return (o, r) => (S(), I("svg", {
126
+ return (o, r) => (E(), I("svg", {
127
127
  xmlns: "http://www.w3.org/2000/svg",
128
128
  viewBox: "0 0 1024 1024"
129
129
  }, [
@@ -133,11 +133,11 @@ var Or = /* @__PURE__ */ ie({
133
133
  })
134
134
  ]));
135
135
  }
136
- }), Xr = Yr, qr = /* @__PURE__ */ ie({
136
+ }), Xr = Yr, qr = /* @__PURE__ */ te({
137
137
  name: "View",
138
138
  __name: "view",
139
139
  setup(a) {
140
- return (o, r) => (S(), I("svg", {
140
+ return (o, r) => (E(), I("svg", {
141
141
  xmlns: "http://www.w3.org/2000/svg",
142
142
  viewBox: "0 0 1024 1024"
143
143
  }, [
@@ -147,11 +147,11 @@ var Or = /* @__PURE__ */ ie({
147
147
  })
148
148
  ]));
149
149
  }
150
- }), Zr = qr, Jr = /* @__PURE__ */ ie({
150
+ }), Zr = qr, Jr = /* @__PURE__ */ te({
151
151
  name: "WarningFilled",
152
152
  __name: "warning-filled",
153
153
  setup(a) {
154
- return (o, r) => (S(), I("svg", {
154
+ return (o, r) => (E(), I("svg", {
155
155
  xmlns: "http://www.w3.org/2000/svg",
156
156
  viewBox: "0 0 1024 1024"
157
157
  }, [
@@ -161,11 +161,11 @@ var Or = /* @__PURE__ */ ie({
161
161
  })
162
162
  ]));
163
163
  }
164
- }), Qr = Jr, es = /* @__PURE__ */ ie({
164
+ }), Qr = Jr, es = /* @__PURE__ */ te({
165
165
  name: "ZoomIn",
166
166
  __name: "zoom-in",
167
167
  setup(a) {
168
- return (o, r) => (S(), I("svg", {
168
+ return (o, r) => (E(), I("svg", {
169
169
  xmlns: "http://www.w3.org/2000/svg",
170
170
  viewBox: "0 0 1024 1024"
171
171
  }, [
@@ -175,11 +175,11 @@ var Or = /* @__PURE__ */ ie({
175
175
  })
176
176
  ]));
177
177
  }
178
- }), ts = es, is = /* @__PURE__ */ ie({
178
+ }), ts = es, is = /* @__PURE__ */ te({
179
179
  name: "ZoomOut",
180
180
  __name: "zoom-out",
181
181
  setup(a) {
182
- return (o, r) => (S(), I("svg", {
182
+ return (o, r) => (E(), I("svg", {
183
183
  xmlns: "http://www.w3.org/2000/svg",
184
184
  viewBox: "0 0 1024 1024"
185
185
  }, [
@@ -423,7 +423,7 @@ const ue = (a, o) => {
423
423
  "p-id": "7515",
424
424
  width: "200",
425
425
  height: "200"
426
- }, ys = /* @__PURE__ */ ie({
426
+ }, ys = /* @__PURE__ */ te({
427
427
  __name: "IkFileIcon",
428
428
  props: {
429
429
  type: {
@@ -445,7 +445,7 @@ const ue = (a, o) => {
445
445
  },
446
446
  setup(a) {
447
447
  const o = a, r = se(() => o.file ? ue(o.file, o.fields) : o.type);
448
- return (t, e) => r.value === "image" ? (S(), I("svg", as, e[0] || (e[0] = [
448
+ return (t, e) => r.value === "image" ? (E(), I("svg", as, e[0] || (e[0] = [
449
449
  A(
450
450
  "path",
451
451
  {
@@ -490,7 +490,7 @@ const ue = (a, o) => {
490
490
  -1
491
491
  /* HOISTED */
492
492
  )
493
- ]))) : r.value === "zip" ? (S(), I("svg", os, e[1] || (e[1] = [
493
+ ]))) : r.value === "zip" ? (E(), I("svg", os, e[1] || (e[1] = [
494
494
  A(
495
495
  "path",
496
496
  {
@@ -513,7 +513,7 @@ const ue = (a, o) => {
513
513
  -1
514
514
  /* HOISTED */
515
515
  )
516
- ]))) : r.value === "ppt" ? (S(), I("svg", ls, e[2] || (e[2] = [
516
+ ]))) : r.value === "ppt" ? (E(), I("svg", ls, e[2] || (e[2] = [
517
517
  A(
518
518
  "path",
519
519
  {
@@ -536,7 +536,7 @@ const ue = (a, o) => {
536
536
  -1
537
537
  /* HOISTED */
538
538
  )
539
- ]))) : r.value === "word" ? (S(), I("svg", us, e[3] || (e[3] = [
539
+ ]))) : r.value === "word" ? (E(), I("svg", us, e[3] || (e[3] = [
540
540
  A(
541
541
  "path",
542
542
  {
@@ -559,7 +559,7 @@ const ue = (a, o) => {
559
559
  -1
560
560
  /* HOISTED */
561
561
  )
562
- ]))) : r.value === "pdf" ? (S(), I("svg", cs, e[4] || (e[4] = [
562
+ ]))) : r.value === "pdf" ? (E(), I("svg", cs, e[4] || (e[4] = [
563
563
  A(
564
564
  "path",
565
565
  {
@@ -582,7 +582,7 @@ const ue = (a, o) => {
582
582
  -1
583
583
  /* HOISTED */
584
584
  )
585
- ]))) : r.value === "txt" ? (S(), I("svg", fs, e[5] || (e[5] = [
585
+ ]))) : r.value === "txt" ? (E(), I("svg", fs, e[5] || (e[5] = [
586
586
  A(
587
587
  "path",
588
588
  {
@@ -605,7 +605,7 @@ const ue = (a, o) => {
605
605
  -1
606
606
  /* HOISTED */
607
607
  )
608
- ]))) : r.value === "audio" ? (S(), I("svg", hs, e[6] || (e[6] = [
608
+ ]))) : r.value === "audio" ? (E(), I("svg", hs, e[6] || (e[6] = [
609
609
  A(
610
610
  "path",
611
611
  {
@@ -628,7 +628,7 @@ const ue = (a, o) => {
628
628
  -1
629
629
  /* HOISTED */
630
630
  )
631
- ]))) : r.value === "video" ? (S(), I("svg", ds, e[7] || (e[7] = [
631
+ ]))) : r.value === "video" ? (E(), I("svg", ds, e[7] || (e[7] = [
632
632
  A(
633
633
  "path",
634
634
  {
@@ -651,7 +651,7 @@ const ue = (a, o) => {
651
651
  -1
652
652
  /* HOISTED */
653
653
  )
654
- ]))) : r.value === "excel" ? (S(), I("svg", gs, e[8] || (e[8] = [
654
+ ]))) : r.value === "excel" ? (E(), I("svg", gs, e[8] || (e[8] = [
655
655
  A(
656
656
  "path",
657
657
  {
@@ -686,7 +686,7 @@ const ue = (a, o) => {
686
686
  -1
687
687
  /* HOISTED */
688
688
  )
689
- ]))) : r.value === "exe" ? (S(), I("svg", ps, e[9] || (e[9] = [
689
+ ]))) : r.value === "exe" ? (E(), I("svg", ps, e[9] || (e[9] = [
690
690
  A(
691
691
  "path",
692
692
  {
@@ -732,7 +732,7 @@ const ue = (a, o) => {
732
732
  -1
733
733
  /* HOISTED */
734
734
  )
735
- ]))) : r.value === "json" ? (S(), I("svg", vs, e[10] || (e[10] = [
735
+ ]))) : r.value === "json" ? (E(), I("svg", vs, e[10] || (e[10] = [
736
736
  A(
737
737
  "path",
738
738
  {
@@ -767,7 +767,7 @@ const ue = (a, o) => {
767
767
  -1
768
768
  /* HOISTED */
769
769
  )
770
- ]))) : (S(), I("svg", ms, e[11] || (e[11] = [
770
+ ]))) : (E(), I("svg", ms, e[11] || (e[11] = [
771
771
  A(
772
772
  "path",
773
773
  {
@@ -803,12 +803,12 @@ const ue = (a, o) => {
803
803
  )
804
804
  ])));
805
805
  }
806
- }), ji = $e(ys), zt = (a, o) => {
806
+ }), ji = Ge(ys), Vt = (a, o) => {
807
807
  const r = a.__vccOpts || a;
808
808
  for (const [t, e] of o)
809
809
  r[t] = e;
810
810
  return r;
811
- }, qt = (a) => a % 1 === 0 ? a.toString() : a.toFixed(2), It = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Wi = [
811
+ }, Zt = (a) => a % 1 === 0 ? a.toString() : a.toFixed(2), Pt = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Wi = [
812
812
  "csv",
813
813
  "djvu",
814
814
  "doc",
@@ -864,7 +864,7 @@ const ue = (a, o) => {
864
864
  "flv",
865
865
  "tls"
866
866
  ], Hn = (a) => {
867
- const o = dt("loadUrl"), r = se(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = dt("uploadUrl"), e = se(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = dt("token"), n = se(() => a.token || (i == null ? void 0 : i.value)), s = dt("onlyofficeConfig"), l = se(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = dt("userInfo"), c = se(() => a.userInfo || (u == null ? void 0 : u.value)), f = [...Wi, ...Wi.map((d) => d.toLocaleUpperCase())];
867
+ const o = ht("loadUrl"), r = se(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = ht("uploadUrl"), e = se(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ht("token"), n = se(() => a.token || (i == null ? void 0 : i.value)), s = ht("onlyofficeConfig"), l = se(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = ht("userInfo"), c = se(() => a.userInfo || (u == null ? void 0 : u.value)), f = [...Wi, ...Wi.map((d) => d.toLocaleUpperCase())];
868
868
  return {
869
869
  cLoadUrl: r,
870
870
  cUploadUrl: e,
@@ -873,9 +873,9 @@ const ue = (a, o) => {
873
873
  cUserInfo: c,
874
874
  cOnlyofficePreviewType: f
875
875
  };
876
- }, _s = /* @__PURE__ */ ie({
876
+ }, _s = /* @__PURE__ */ te({
877
877
  __name: "IkPreviewFileDialog",
878
- props: /* @__PURE__ */ ct({
878
+ props: /* @__PURE__ */ ut({
879
879
  file: {
880
880
  type: Object,
881
881
  default: () => []
@@ -910,7 +910,7 @@ const ue = (a, o) => {
910
910
  }),
911
911
  emits: ["update:show"],
912
912
  setup(a) {
913
- const o = a, r = Ut(a, "show"), t = se(() => ({
913
+ const o = a, r = zt(a, "show"), t = se(() => ({
914
914
  name: "name",
915
915
  url: "url",
916
916
  suffix: "suffix",
@@ -923,11 +923,11 @@ const ue = (a, o) => {
923
923
  }), s = (u) => {
924
924
  var c, f, d, g, p, m, y;
925
925
  try {
926
- const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, E = C[t.value.url] || (C == null ? void 0 : C.id) || C.attachmentId, T = (f = C[t.value.suffix] || C.attachmentSuffix) == null ? void 0 : f.toLowerCase(), W = C[t.value.name] || (C == null ? void 0 : C.attachmentName) || (C == null ? void 0 : C.originName);
926
+ const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, S = C[t.value.url] || (C == null ? void 0 : C.id) || C.attachmentId, T = (f = C[t.value.suffix] || C.attachmentSuffix) == null ? void 0 : f.toLowerCase(), W = C[t.value.name] || (C == null ? void 0 : C.attachmentName) || (C == null ? void 0 : C.originName);
927
927
  if (i.value = {
928
928
  ...u,
929
929
  name: u[t.value.name],
930
- url: It(o.loadUrl, E)
930
+ url: Pt(o.loadUrl, S)
931
931
  }, u && ue(u, t.value) === "image") {
932
932
  n.image = !0;
933
933
  return;
@@ -949,7 +949,7 @@ const ue = (a, o) => {
949
949
  document: {
950
950
  key: Nn(),
951
951
  title: W,
952
- url: It(o.loadUrl, E),
952
+ url: Pt(o.loadUrl, S),
953
953
  fileType: T,
954
954
  ...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
955
955
  },
@@ -962,8 +962,8 @@ const ue = (a, o) => {
962
962
  console.info("预览错误: ", C);
963
963
  }
964
964
  };
965
- mt([r, o.file], ([u, c]) => {
966
- u && yt(() => {
965
+ vt([r, o.file], ([u, c]) => {
966
+ u && mt(() => {
967
967
  s(o.file);
968
968
  });
969
969
  });
@@ -972,11 +972,11 @@ const ue = (a, o) => {
972
972
  };
973
973
  return (u, c) => {
974
974
  var f, d, g;
975
- return r.value ? (S(), I(
976
- Le,
975
+ return r.value ? (E(), I(
976
+ Ae,
977
977
  { key: 0 },
978
978
  [
979
- (f = i.value) != null && f.url && n.image ? (S(), ne(k(ia), {
979
+ (f = i.value) != null && f.url && n.image ? (E(), ie(k(ia), {
980
980
  key: 0,
981
981
  onClose: c[0] || (c[0] = (p) => l()),
982
982
  ref: "previewImgRef",
@@ -1024,7 +1024,7 @@ const ue = (a, o) => {
1024
1024
  )) : J("v-if", !0);
1025
1025
  };
1026
1026
  }
1027
- }), ks = $e(_s), Cs = {
1027
+ }), ks = Ge(_s), Cs = {
1028
1028
  key: 1,
1029
1029
  class: "h-[1em] w-[1em]",
1030
1030
  "aria-hidden": "true"
@@ -1032,7 +1032,7 @@ const ue = (a, o) => {
1032
1032
  key: 1,
1033
1033
  class: "h-[1em] w-[1em]",
1034
1034
  "aria-hidden": "true"
1035
- }, Es = ["xlink:href"], Ss = ["src"], As = /* @__PURE__ */ ie({
1035
+ }, Es = ["xlink:href"], Ss = ["src"], As = /* @__PURE__ */ te({
1036
1036
  name: "IkSvgIcon",
1037
1037
  __name: "index",
1038
1038
  props: {
@@ -1080,7 +1080,6 @@ const ue = (a, o) => {
1080
1080
  }
1081
1081
  t.value.rotate && f.push(`rotate(${t.value.rotate % 360}deg)`);
1082
1082
  const d = {
1083
- pointerEvents: t.value.disabled ? "none" : "auto",
1084
1083
  ...t.value.color && { color: t.value.color },
1085
1084
  ...t.value.size && { fontSize: typeof t.value.size == "number" ? `${t.value.size}px` : t.value.size },
1086
1085
  ...f.length && { transform: f.join(" ") },
@@ -1102,161 +1101,134 @@ const ue = (a, o) => {
1102
1101
  };
1103
1102
  return (f, d) => {
1104
1103
  const g = xt("el-tooltip"), p = xt("el-button");
1105
- return t.value.tableIconType === "icon" || !t.value.tableIconType ? (S(), I(
1106
- Le,
1107
- { key: 0 },
1104
+ return E(), I(
1105
+ "i",
1106
+ {
1107
+ class: ne(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1108
+ [f.iconClass]: !0,
1109
+ [f.name]: e.value === "unocss",
1110
+ "show-bg": t.value.showBg || t.value.bg,
1111
+ default: t.value.size === "default",
1112
+ small: t.value.size === "small",
1113
+ big: t.value.size === "big",
1114
+ warning: t.value.warning || t.value.type === "warning",
1115
+ primary: t.value.primary || t.value.type === "primary",
1116
+ success: f.success || t.value.type === "success",
1117
+ error: t.value.error || t.value.type === "error",
1118
+ active: t.value.active,
1119
+ disabled: t.value.disabled
1120
+ }]),
1121
+ style: yt(i.value),
1122
+ onClick: s,
1123
+ onDblclick: c,
1124
+ onMouseenter: l,
1125
+ onMouseleave: u
1126
+ },
1108
1127
  [
1109
- t.value.notip || !t.value.title ? (S(), I(
1110
- "i",
1111
- {
1112
- key: 0,
1113
- class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1114
- [f.iconClass]: !0,
1115
- [f.name]: e.value === "unocss",
1116
- "show-bg": t.value.showBg || t.value.bg,
1117
- default: t.value.size === "default",
1118
- small: t.value.size === "small",
1119
- big: t.value.size === "big",
1120
- warning: t.value.warning || t.value.type === "warning",
1121
- primary: t.value.primary || t.value.type === "primary",
1122
- success: f.success || t.value.type === "success",
1123
- error: t.value.error || t.value.type === "error",
1124
- active: t.value.active,
1125
- disabled: t.value.disabled
1126
- }]),
1127
- style: De(i.value),
1128
- onClick: s,
1129
- onDblclick: c,
1130
- onMouseenter: l,
1131
- onMouseleave: u
1132
- },
1128
+ t.value.tableIconType === "icon" || !t.value.tableIconType ? (E(), I(
1129
+ Ae,
1130
+ { key: 0 },
1133
1131
  [
1134
- e.value === "iksig" ? (S(), I(
1135
- "i",
1136
- {
1137
- key: 0,
1138
- class: te(`iksig ${t.value.name}`),
1139
- style: De(i.value)
1140
- },
1141
- null,
1142
- 6
1143
- /* CLASS, STYLE */
1144
- )) : e.value === "svg" ? (S(), I("svg", Cs, [
1145
- A("use", {
1146
- "xlink:href": `#${t.value.name}`
1147
- }, null, 8, ws)
1148
- ])) : e.value === "img" ? (S(), I("img", {
1149
- key: 2,
1150
- src: t.value.name,
1151
- class: "h-[1em] w-[1em]"
1152
- }, null, 8, bs)) : (S(), I(
1153
- "i",
1154
- {
1155
- key: 3,
1156
- class: te(t.value.name),
1157
- style: De(i.value)
1158
- },
1159
- null,
1160
- 6
1161
- /* CLASS, STYLE */
1162
- ))
1163
- ],
1164
- 38
1165
- /* CLASS, STYLE, NEED_HYDRATION */
1166
- )) : (S(), ne(g, {
1167
- key: 1,
1168
- content: t.value.title,
1169
- placement: "top",
1170
- "popper-class": "ik-svg-icon-tooltip",
1171
- "hide-after": 0
1172
- }, {
1173
- default: Y(() => [
1174
- A(
1175
- "i",
1176
- {
1177
- class: te(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
1178
- [f.iconClass]: !0,
1179
- [f.name]: e.value === "unocss",
1180
- "show-bg": t.value.showBg || t.value.bg,
1181
- default: t.value.size === "default",
1182
- small: t.value.size === "small",
1183
- big: t.value.size === "big",
1184
- warning: t.value.warning || t.value.type === "warning",
1185
- primary: f.primary || t.value.type === "primary",
1186
- success: f.success || t.value.type === "success",
1187
- error: t.value.error || t.value.type === "error",
1188
- active: t.value.active,
1189
- disabled: t.value.disabled,
1190
- ...f.$attrs.class || {}
1191
- }]),
1192
- style: De(i.value),
1193
- onClick: s,
1194
- onDblclick: c,
1195
- onMouseenter: l,
1196
- onMouseleave: u
1197
- },
1132
+ t.value.notip || !t.value.title ? (E(), I(
1133
+ Ae,
1134
+ { key: 0 },
1198
1135
  [
1199
- e.value === "iksig" ? (S(), I(
1136
+ e.value === "iksig" ? (E(), I(
1200
1137
  "i",
1201
1138
  {
1202
1139
  key: 0,
1203
- class: te(`iksig ${t.value.name}`),
1204
- style: De(i.value)
1140
+ class: ne(`iksig ${t.value.name}`)
1205
1141
  },
1206
1142
  null,
1207
- 6
1208
- /* CLASS, STYLE */
1209
- )) : e.value === "svg" ? (S(), I("svg", Ts, [
1143
+ 2
1144
+ /* CLASS */
1145
+ )) : e.value === "svg" ? (E(), I("svg", Cs, [
1210
1146
  A("use", {
1211
1147
  "xlink:href": `#${t.value.name}`
1212
- }, null, 8, Es)
1213
- ])) : e.value === "img" ? (S(), I("img", {
1148
+ }, null, 8, ws)
1149
+ ])) : e.value === "img" ? (E(), I("img", {
1214
1150
  key: 2,
1215
1151
  src: t.value.name,
1216
1152
  class: "h-[1em] w-[1em]"
1217
- }, null, 8, Ss)) : (S(), I(
1153
+ }, null, 8, bs)) : (E(), I(
1218
1154
  "i",
1219
1155
  {
1220
1156
  key: 3,
1221
- class: te(t.value.name),
1222
- style: De(i.value)
1157
+ class: ne(t.value.name)
1223
1158
  },
1224
1159
  null,
1225
- 6
1226
- /* CLASS, STYLE */
1160
+ 2
1161
+ /* CLASS */
1227
1162
  ))
1228
1163
  ],
1229
- 38
1230
- /* CLASS, STYLE, NEED_HYDRATION */
1164
+ 64
1165
+ /* STABLE_FRAGMENT */
1166
+ )) : (E(), ie(g, {
1167
+ key: 1,
1168
+ content: t.value.title,
1169
+ placement: "top",
1170
+ "popper-class": "ik-svg-icon-tooltip",
1171
+ "hide-after": 0
1172
+ }, {
1173
+ default: Y(() => [
1174
+ e.value === "iksig" ? (E(), I(
1175
+ "i",
1176
+ {
1177
+ key: 0,
1178
+ class: ne(`iksig ${t.value.name}`)
1179
+ },
1180
+ null,
1181
+ 2
1182
+ /* CLASS */
1183
+ )) : e.value === "svg" ? (E(), I("svg", Ts, [
1184
+ A("use", {
1185
+ "xlink:href": `#${t.value.name}`
1186
+ }, null, 8, Es)
1187
+ ])) : e.value === "img" ? (E(), I("img", {
1188
+ key: 2,
1189
+ src: t.value.name,
1190
+ class: "h-[1em] w-[1em]"
1191
+ }, null, 8, Ss)) : (E(), I(
1192
+ "i",
1193
+ {
1194
+ key: 3,
1195
+ class: ne(t.value.name)
1196
+ },
1197
+ null,
1198
+ 2
1199
+ /* CLASS */
1200
+ ))
1201
+ ]),
1202
+ _: 1
1203
+ /* STABLE */
1204
+ }, 8, ["content"]))
1205
+ ],
1206
+ 64
1207
+ /* STABLE_FRAGMENT */
1208
+ )) : (E(), ie(p, It({ key: 1 }, f.$attrs, {
1209
+ type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
1210
+ }), {
1211
+ default: Y(() => [
1212
+ Xe(
1213
+ we(t.value.title),
1214
+ 1
1215
+ /* TEXT */
1231
1216
  )
1232
1217
  ]),
1233
1218
  _: 1
1234
1219
  /* STABLE */
1235
- }, 8, ["content"]))
1220
+ }, 16, ["type"]))
1236
1221
  ],
1237
- 64
1238
- /* STABLE_FRAGMENT */
1239
- )) : (S(), ne(p, {
1240
- key: 1,
1241
- type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
1242
- }, {
1243
- default: Y(() => [
1244
- qe(
1245
- we(t.value.title),
1246
- 1
1247
- /* TEXT */
1248
- )
1249
- ]),
1250
- _: 1
1251
- /* STABLE */
1252
- }, 8, ["type"]));
1222
+ 38
1223
+ /* CLASS, STYLE, NEED_HYDRATION */
1224
+ );
1253
1225
  };
1254
1226
  }
1255
- }), xs = /* @__PURE__ */ zt(As, [["__scopeId", "data-v-64b61696"]]), Ce = $e(xs);
1227
+ }), xs = /* @__PURE__ */ Vt(As, [["__scopeId", "data-v-2648e369"]]), Ce = Ge(xs);
1256
1228
  function ki(a) {
1257
1229
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
1258
1230
  }
1259
- const Is = /* @__PURE__ */ ie({
1231
+ const Is = /* @__PURE__ */ te({
1260
1232
  __name: "CloseIcon",
1261
1233
  props: {
1262
1234
  showBg: {
@@ -1269,10 +1241,10 @@ const Is = /* @__PURE__ */ ie({
1269
1241
  }
1270
1242
  },
1271
1243
  setup(a) {
1272
- return (o, r) => (S(), I(
1244
+ return (o, r) => (E(), I(
1273
1245
  "div",
1274
1246
  {
1275
- class: te({ "exit-main-page-maximize": a.showBg && a.fullscreen })
1247
+ class: ne({ "exit-main-page-maximize": a.showBg && a.fullscreen })
1276
1248
  },
1277
1249
  [
1278
1250
  B(k(Ce), {
@@ -1285,9 +1257,9 @@ const Is = /* @__PURE__ */ ie({
1285
1257
  /* CLASS */
1286
1258
  ));
1287
1259
  }
1288
- }), Ps = /* @__PURE__ */ zt(Is, [["__scopeId", "data-v-d9a4ea3c"]]), Ls = { class: "base-header" }, Ds = /* @__PURE__ */ ie({
1260
+ }), Ps = /* @__PURE__ */ Vt(Is, [["__scopeId", "data-v-d9a4ea3c"]]), Ls = { class: "base-header" }, Ds = /* @__PURE__ */ te({
1289
1261
  __name: "IkBaseDialog",
1290
- props: /* @__PURE__ */ ct({
1262
+ props: /* @__PURE__ */ ut({
1291
1263
  title: { default: "" },
1292
1264
  cancelText: { default: "取消" },
1293
1265
  confirmText: { default: "确认" },
@@ -1306,9 +1278,9 @@ const Is = /* @__PURE__ */ ie({
1306
1278
  }),
1307
1279
  emits: ["update:modelValue"],
1308
1280
  setup(a) {
1309
- const o = a, r = Ut(a, "modelValue"), t = me(o.fullscreen), e = () => {
1281
+ const o = a, r = zt(a, "modelValue"), t = me(o.fullscreen), e = () => {
1310
1282
  t.value = !t.value;
1311
- }, i = ie({
1283
+ }, i = te({
1312
1284
  setup() {
1313
1285
  return () => yr(Ps, {
1314
1286
  showBg: o.showCloseBg,
@@ -1318,7 +1290,7 @@ const Is = /* @__PURE__ */ ie({
1318
1290
  });
1319
1291
  return (n, s) => {
1320
1292
  const l = xt("el-dialog");
1321
- return S(), ne(l, di({
1293
+ return E(), ie(l, It({
1322
1294
  modelValue: r.value,
1323
1295
  "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
1324
1296
  "align-center": ""
@@ -1329,8 +1301,8 @@ const Is = /* @__PURE__ */ ie({
1329
1301
  "modal-class": "baseDialog"
1330
1302
  }), Dn({
1331
1303
  icon: Y(() => [
1332
- Oe(n.$slots, "title", {}, () => [
1333
- qe(
1304
+ Re(n.$slots, "title", {}, () => [
1305
+ Xe(
1334
1306
  we(n.title),
1335
1307
  1
1336
1308
  /* TEXT */
@@ -1339,15 +1311,15 @@ const Is = /* @__PURE__ */ ie({
1339
1311
  ]),
1340
1312
  header: Y(() => [
1341
1313
  A("div", Ls, [
1342
- Oe(n.$slots, "header", {}, () => [
1343
- qe(
1314
+ Re(n.$slots, "header", {}, () => [
1315
+ Xe(
1344
1316
  we(n.title),
1345
1317
  1
1346
1318
  /* TEXT */
1347
1319
  )
1348
1320
  ])
1349
1321
  ]),
1350
- n.$attrs.showClose ? (S(), ne(k(Ce), {
1322
+ n.$attrs.showClose ? (E(), ie(k(Ce), {
1351
1323
  key: 0,
1352
1324
  onClick: e,
1353
1325
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -1356,7 +1328,7 @@ const Is = /* @__PURE__ */ ie({
1356
1328
  }, null, 8, ["name", "title"])) : J("v-if", !0)
1357
1329
  ]),
1358
1330
  default: Y(() => [
1359
- Oe(n.$slots, "default")
1331
+ Re(n.$slots, "default")
1360
1332
  ]),
1361
1333
  _: 2
1362
1334
  /* DYNAMIC */
@@ -1364,14 +1336,14 @@ const Is = /* @__PURE__ */ ie({
1364
1336
  n.$slots.footer ? {
1365
1337
  name: "footer",
1366
1338
  fn: Y(() => [
1367
- Oe(n.$slots, "footer")
1339
+ Re(n.$slots, "footer")
1368
1340
  ]),
1369
1341
  key: "0"
1370
1342
  } : void 0
1371
1343
  ]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
1372
1344
  };
1373
1345
  }
1374
- }), Rs = $e(Ds);
1346
+ }), Rs = Ge(Ds);
1375
1347
  function Os(a, o, r, t) {
1376
1348
  function e(i) {
1377
1349
  return i instanceof r ? i : new r(function(n) {
@@ -1494,7 +1466,7 @@ var Fs = function(a, o) {
1494
1466
  }, e.onerror = function(i) {
1495
1467
  e.removeAttribute("loading"), t(i);
1496
1468
  }, e.setAttribute("loading", ""), e;
1497
- }, Ci = ie({
1469
+ }, Ci = te({
1498
1470
  name: "DocumentEditor",
1499
1471
  props: {
1500
1472
  id: {
@@ -1665,11 +1637,11 @@ var Fs = function(a, o) {
1665
1637
  });
1666
1638
  const Ns = ["id"];
1667
1639
  function Bs(a, o, r, t, e, i) {
1668
- return S(), I("div", { id: a.id }, null, 8, Ns);
1640
+ return E(), I("div", { id: a.id }, null, 8, Ns);
1669
1641
  }
1670
1642
  Ci.render = Bs;
1671
1643
  Ci.__file = "src/components/DocumentEditor.vue";
1672
- const Hs = /* @__PURE__ */ ie({
1644
+ const Hs = /* @__PURE__ */ te({
1673
1645
  __name: "IkOnlyOffice",
1674
1646
  props: {
1675
1647
  // 文件服务器的服务的地址
@@ -1698,10 +1670,10 @@ const Hs = /* @__PURE__ */ ie({
1698
1670
  }), t = () => {
1699
1671
  console.info("文档加载完成", o.configOptions);
1700
1672
  };
1701
- return (e, i) => (S(), I(
1673
+ return (e, i) => (E(), I(
1702
1674
  "div",
1703
1675
  {
1704
- style: De({ height: o.officeHeight })
1676
+ style: yt({ height: o.officeHeight })
1705
1677
  },
1706
1678
  [
1707
1679
  B(k(Ci), {
@@ -1716,7 +1688,7 @@ const Hs = /* @__PURE__ */ ie({
1716
1688
  /* STYLE */
1717
1689
  ));
1718
1690
  }
1719
- }), Us = $e(Hs);
1691
+ }), Us = Ge(Hs);
1720
1692
  var $i;
1721
1693
  const Un = typeof window < "u", zs = (a) => typeof a == "string", Vs = () => {
1722
1694
  };
@@ -1743,7 +1715,7 @@ function wt(...a) {
1743
1715
  Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
1744
1716
  const i = [], n = () => {
1745
1717
  i.forEach((c) => c()), i.length = 0;
1746
- }, s = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), l = mt(() => [Gs(o), zn(e)], ([c, f]) => {
1718
+ }, s = (c, f, d, g) => (c.addEventListener(f, d, g), () => c.removeEventListener(f, d, g)), l = vt(() => [Gs(o), zn(e)], ([c, f]) => {
1747
1719
  n(), c && i.push(...r.flatMap((d) => t.map((g) => s(c, d, g, f))));
1748
1720
  }, { immediate: !0, flush: "post" }), u = () => {
1749
1721
  l(), n();
@@ -1867,7 +1839,7 @@ const Js = {
1867
1839
  close: () => !0,
1868
1840
  switch: (a) => Ui.isNumber(a),
1869
1841
  rotate: (a) => Ui.isNumber(a)
1870
- }, ea = ["src", "crossorigin"], ta = /* @__PURE__ */ ie({
1842
+ }, ea = ["src", "crossorigin"], ta = /* @__PURE__ */ te({
1871
1843
  name: "ElImageViewer",
1872
1844
  __name: "IkImageViewer",
1873
1845
  props: Js,
@@ -1888,7 +1860,7 @@ const Js = {
1888
1860
  offsetX: 0,
1889
1861
  offsetY: 0,
1890
1862
  enableTransition: !1
1891
- }), C = me(i.zIndex ?? u()), E = se(() => {
1863
+ }), C = me(i.zIndex ?? u()), S = se(() => {
1892
1864
  const { urlList: D } = i;
1893
1865
  return D.length <= 1;
1894
1866
  }), T = se(() => p.value === 0), W = se(() => p.value === i.urlList.length - 1), U = se(() => i.urlList[p.value]), X = se(() => [
@@ -1901,47 +1873,47 @@ const Js = {
1901
1873
  l.is("disabled", !i.infinite && W.value)
1902
1874
  ]), oe = se(() => {
1903
1875
  const { scale: D, deg: z, offsetX: Q, offsetY: pe, enableTransition: _e } = y.value;
1904
- let ke = Q / D, Ue = pe / D;
1905
- const ht = z * Math.PI / 180, Oi = Math.cos(ht), Mi = Math.sin(ht);
1906
- ke = ke * Oi + Ue * Mi, Ue = Ue * Oi - Q / D * Mi;
1907
- const Kt = {
1908
- transform: `scale(${D}) rotate(${z}deg) translate(${ke}px, ${Ue}px)`,
1876
+ let ke = Q / D, He = pe / D;
1877
+ const ft = z * Math.PI / 180, Oi = Math.cos(ft), Mi = Math.sin(ft);
1878
+ ke = ke * Oi + He * Mi, He = He * Oi - Q / D * Mi;
1879
+ const Yt = {
1880
+ transform: `scale(${D}) rotate(${z}deg) translate(${ke}px, ${He}px)`,
1909
1881
  transition: _e ? "transform .3s" : ""
1910
1882
  };
1911
- return m.value.name === e.CONTAIN.name && (Kt.maxWidth = Kt.maxHeight = "100%"), Kt;
1883
+ return m.value.name === e.CONTAIN.name && (Yt.maxWidth = Yt.maxHeight = "100%"), Yt;
1912
1884
  });
1913
1885
  function re() {
1914
1886
  ce(), n("close");
1915
1887
  }
1916
1888
  function j() {
1917
- const D = Xt.throttle((Q) => {
1889
+ const D = qt.throttle((Q) => {
1918
1890
  switch (Q.code) {
1919
1891
  // ESC
1920
- case it.esc:
1892
+ case tt.esc:
1921
1893
  i.closeOnPressEscape && re();
1922
1894
  break;
1923
1895
  // SPACE
1924
- case it.space:
1896
+ case tt.space:
1925
1897
  b();
1926
1898
  break;
1927
1899
  // LEFT_ARROW
1928
- case it.left:
1900
+ case tt.left:
1929
1901
  q();
1930
1902
  break;
1931
1903
  // UP_ARROW
1932
- case it.up:
1904
+ case tt.up:
1933
1905
  G("zoomIn");
1934
1906
  break;
1935
1907
  // RIGHT_ARROW
1936
- case it.right:
1908
+ case tt.right:
1937
1909
  x();
1938
1910
  break;
1939
1911
  // DOWN_ARROW
1940
- case it.down:
1912
+ case tt.down:
1941
1913
  G("zoomOut");
1942
1914
  break;
1943
1915
  }
1944
- }), z = Xt.throttle((Q) => {
1916
+ }), z = qt.throttle((Q) => {
1945
1917
  const pe = Q.deltaY || Q.deltaX;
1946
1918
  G(pe < 0 ? "zoomIn" : "zoomOut", {
1947
1919
  zoomRate: i.zoomRate,
@@ -1964,18 +1936,18 @@ const Js = {
1964
1936
  function ye(D) {
1965
1937
  if (g.value || D.button !== 0 || !c.value) return;
1966
1938
  y.value.enableTransition = !1;
1967
- const { offsetX: z, offsetY: Q } = y.value, pe = D.pageX, _e = D.pageY, ke = Xt.throttle((ht) => {
1939
+ const { offsetX: z, offsetY: Q } = y.value, pe = D.pageX, _e = D.pageY, ke = qt.throttle((ft) => {
1968
1940
  y.value = {
1969
1941
  ...y.value,
1970
- offsetX: z + ht.pageX - pe,
1971
- offsetY: Q + ht.pageY - _e
1942
+ offsetX: z + ft.pageX - pe,
1943
+ offsetY: Q + ft.pageY - _e
1972
1944
  };
1973
- }), Ue = wt(document, "mousemove", ke);
1945
+ }), He = wt(document, "mousemove", ke);
1974
1946
  wt(document, "mouseup", () => {
1975
- Ue();
1947
+ He();
1976
1948
  }), D.preventDefault();
1977
1949
  }
1978
- function tt() {
1950
+ function et() {
1979
1951
  y.value = {
1980
1952
  scale: 1,
1981
1953
  deg: 0,
@@ -1987,7 +1959,7 @@ const Js = {
1987
1959
  function b() {
1988
1960
  if (g.value) return;
1989
1961
  const D = t(e), z = Object.values(e), Q = m.value.name, _e = ((z == null ? void 0 : z.findIndex((ke) => ke.name === Q)) + 1) % D.length;
1990
- m.value = e[D[_e]], tt();
1962
+ m.value = e[D[_e]], et();
1991
1963
  }
1992
1964
  function H(D) {
1993
1965
  const z = i.urlList.length;
@@ -2001,7 +1973,7 @@ const Js = {
2001
1973
  }
2002
1974
  function G(D, z = {}) {
2003
1975
  if (g.value) return;
2004
- const { minScale: Q, maxScale: pe } = i, { zoomRate: _e, rotateDeg: ke, enableTransition: Ue } = {
1976
+ const { minScale: Q, maxScale: pe } = i, { zoomRate: _e, rotateDeg: ke, enableTransition: He } = {
2005
1977
  zoomRate: i.zoomRate,
2006
1978
  rotateDeg: 90,
2007
1979
  enableTransition: !0,
@@ -2025,15 +1997,15 @@ const Js = {
2025
1997
  y.value.deg -= ke, n("rotate", y.value.deg);
2026
1998
  break;
2027
1999
  }
2028
- y.value.enableTransition = Ue;
2000
+ y.value.enableTransition = He;
2029
2001
  }
2030
- return mt(U, () => {
2031
- yt(() => {
2002
+ return vt(U, () => {
2003
+ mt(() => {
2032
2004
  const D = f.value[0];
2033
2005
  D != null && D.complete || (g.value = !0);
2034
2006
  });
2035
- }), mt(p, (D) => {
2036
- tt(), n("switch", D);
2007
+ }), vt(p, (D) => {
2008
+ et(), n("switch", D);
2037
2009
  }), br(() => {
2038
2010
  var D, z;
2039
2011
  j(), (z = (D = c.value) == null ? void 0 : D.focus) == null || z.call(D);
@@ -2042,7 +2014,7 @@ const Js = {
2042
2014
  * @description manually switch image
2043
2015
  */
2044
2016
  setActiveItem: H
2045
- }), (D, z) => (S(), ne(Rn, { to: "body" }, [
2017
+ }), (D, z) => (E(), ie(Rn, { to: "body" }, [
2046
2018
  B(On, {
2047
2019
  name: "viewer-fade",
2048
2020
  appear: ""
@@ -2054,15 +2026,15 @@ const Js = {
2054
2026
  ref_key: "wrapper",
2055
2027
  ref: c,
2056
2028
  tabindex: -1,
2057
- class: te(k(l).e("wrapper")),
2058
- style: De({ zIndex: C.value })
2029
+ class: ne(k(l).e("wrapper")),
2030
+ style: yt({ zIndex: C.value })
2059
2031
  },
2060
2032
  [
2061
2033
  A(
2062
2034
  "div",
2063
2035
  {
2064
- class: te(k(l).e("mask")),
2065
- onClick: z[0] || (z[0] = pt((Q) => D.hideOnClickModal && re(), ["self"]))
2036
+ class: ne(k(l).e("mask")),
2037
+ onClick: z[0] || (z[0] = gt((Q) => D.hideOnClickModal && re(), ["self"]))
2066
2038
  },
2067
2039
  null,
2068
2040
  2
@@ -2072,7 +2044,7 @@ const Js = {
2072
2044
  A(
2073
2045
  "span",
2074
2046
  {
2075
- class: te([k(l).e("btn"), k(l).e("close")]),
2047
+ class: ne([k(l).e("btn"), k(l).e("close")]),
2076
2048
  onClick: re
2077
2049
  },
2078
2050
  [
@@ -2088,14 +2060,14 @@ const Js = {
2088
2060
  /* CLASS */
2089
2061
  ),
2090
2062
  J(" ARROW "),
2091
- E.value ? J("v-if", !0) : (S(), I(
2092
- Le,
2063
+ S.value ? J("v-if", !0) : (E(), I(
2064
+ Ae,
2093
2065
  { key: 0 },
2094
2066
  [
2095
2067
  A(
2096
2068
  "span",
2097
2069
  {
2098
- class: te(X.value),
2070
+ class: ne(X.value),
2099
2071
  onClick: q
2100
2072
  },
2101
2073
  [
@@ -2113,7 +2085,7 @@ const Js = {
2113
2085
  A(
2114
2086
  "span",
2115
2087
  {
2116
- class: te(M.value),
2088
+ class: ne(M.value),
2117
2089
  onClick: x
2118
2090
  },
2119
2091
  [
@@ -2136,13 +2108,13 @@ const Js = {
2136
2108
  A(
2137
2109
  "div",
2138
2110
  {
2139
- class: te([k(l).e("btn"), k(l).e("actions")])
2111
+ class: ne([k(l).e("btn"), k(l).e("actions")])
2140
2112
  },
2141
2113
  [
2142
2114
  A(
2143
2115
  "div",
2144
2116
  {
2145
- class: te(k(l).e("actions__inner"))
2117
+ class: ne(k(l).e("actions__inner"))
2146
2118
  },
2147
2119
  [
2148
2120
  B(k(be), {
@@ -2166,7 +2138,7 @@ const Js = {
2166
2138
  A(
2167
2139
  "i",
2168
2140
  {
2169
- class: te(k(l).e("actions__divider"))
2141
+ class: ne(k(l).e("actions__divider"))
2170
2142
  },
2171
2143
  null,
2172
2144
  2
@@ -2174,7 +2146,7 @@ const Js = {
2174
2146
  ),
2175
2147
  B(k(be), { onClick: b }, {
2176
2148
  default: Y(() => [
2177
- (S(), ne(Tr(m.value.icon)))
2149
+ (E(), ie(Tr(m.value.icon)))
2178
2150
  ]),
2179
2151
  _: 1
2180
2152
  /* STABLE */
@@ -2182,7 +2154,7 @@ const Js = {
2182
2154
  A(
2183
2155
  "i",
2184
2156
  {
2185
- class: te(k(l).e("actions__divider"))
2157
+ class: ne(k(l).e("actions__divider"))
2186
2158
  },
2187
2159
  null,
2188
2160
  2
@@ -2218,19 +2190,19 @@ const Js = {
2218
2190
  A(
2219
2191
  "div",
2220
2192
  {
2221
- class: te(k(l).e("canvas"))
2193
+ class: ne(k(l).e("canvas"))
2222
2194
  },
2223
2195
  [
2224
- (S(!0), I(
2225
- Le,
2196
+ (E(!0), I(
2197
+ Ae,
2226
2198
  null,
2227
- Mn(D.urlList, (Q, pe) => Er((S(), I("img", {
2199
+ Mn(D.urlList, (Q, pe) => Er((E(), I("img", {
2228
2200
  ref_for: !0,
2229
2201
  ref: (_e) => f.value[pe] = _e,
2230
2202
  key: Q,
2231
2203
  src: Q,
2232
- style: De(oe.value),
2233
- class: te(k(l).e("img")),
2204
+ style: yt(oe.value),
2205
+ class: ne(k(l).e("img")),
2234
2206
  crossorigin: D.crossorigin,
2235
2207
  onLoad: le,
2236
2208
  onError: he,
@@ -2245,7 +2217,7 @@ const Js = {
2245
2217
  2
2246
2218
  /* CLASS */
2247
2219
  ),
2248
- Oe(D.$slots, "default")
2220
+ Re(D.$slots, "default")
2249
2221
  ],
2250
2222
  6
2251
2223
  /* CLASS, STYLE */
@@ -2256,7 +2228,7 @@ const Js = {
2256
2228
  })
2257
2229
  ]));
2258
2230
  }
2259
- }), ia = $e(ta);
2231
+ }), ia = Ge(ta);
2260
2232
  function Ji(a, o) {
2261
2233
  var r = Object.keys(a);
2262
2234
  if (Object.getOwnPropertySymbols) {
@@ -2382,7 +2354,7 @@ function N() {
2382
2354
  }
2383
2355
  }, N.apply(this, arguments);
2384
2356
  }
2385
- function Ae(a) {
2357
+ function xe(a) {
2386
2358
  return sa(a) || aa(a) || oa(a) || la();
2387
2359
  }
2388
2360
  function sa(a) {
@@ -2430,7 +2402,7 @@ function Vn(a) {
2430
2402
  var o = ua(a, "string");
2431
2403
  return typeof o == "symbol" ? o : String(o);
2432
2404
  }
2433
- var Zt = { exports: {} }, en;
2405
+ var Jt = { exports: {} }, en;
2434
2406
  function ca() {
2435
2407
  return en || (en = 1, function(a) {
2436
2408
  var o = Object.prototype.hasOwnProperty, r = "~";
@@ -2471,7 +2443,7 @@ function ca() {
2471
2443
  }, s.prototype.emit = function(u, c, f, d, g, p) {
2472
2444
  var m = r ? r + u : u;
2473
2445
  if (!this._events[m]) return !1;
2474
- var y = this._events[m], C = arguments.length, E, T;
2446
+ var y = this._events[m], C = arguments.length, S, T;
2475
2447
  if (y.fn) {
2476
2448
  switch (y.once && this.removeListener(u, y.fn, void 0, !0), C) {
2477
2449
  case 1:
@@ -2487,9 +2459,9 @@ function ca() {
2487
2459
  case 6:
2488
2460
  return y.fn.call(y.context, c, f, d, g, p), !0;
2489
2461
  }
2490
- for (T = 1, E = new Array(C - 1); T < C; T++)
2491
- E[T - 1] = arguments[T];
2492
- y.fn.apply(y.context, E);
2462
+ for (T = 1, S = new Array(C - 1); T < C; T++)
2463
+ S[T - 1] = arguments[T];
2464
+ y.fn.apply(y.context, S);
2493
2465
  } else {
2494
2466
  var W = y.length, U;
2495
2467
  for (T = 0; T < W; T++)
@@ -2507,9 +2479,9 @@ function ca() {
2507
2479
  y[T].fn.call(y[T].context, c, f, d);
2508
2480
  break;
2509
2481
  default:
2510
- if (!E) for (U = 1, E = new Array(C - 1); U < C; U++)
2511
- E[U - 1] = arguments[U];
2512
- y[T].fn.apply(y[T].context, E);
2482
+ if (!S) for (U = 1, S = new Array(C - 1); U < C; U++)
2483
+ S[U - 1] = arguments[U];
2484
+ y[T].fn.apply(y[T].context, S);
2513
2485
  }
2514
2486
  }
2515
2487
  return !0;
@@ -2535,34 +2507,34 @@ function ca() {
2535
2507
  var c;
2536
2508
  return u ? (c = r ? r + u : u, this._events[c] && n(this, c)) : (this._events = new t(), this._eventsCount = 0), this;
2537
2509
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
2538
- }(Zt)), Zt.exports;
2510
+ }(Jt)), Jt.exports;
2539
2511
  }
2540
2512
  var jn = ca();
2541
2513
  const Wn = /* @__PURE__ */ ki(jn);
2542
- var fa = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Jt = {
2514
+ var fa = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Qt = {
2543
2515
  info: "color: #525252; background-color: #90ee90;",
2544
2516
  error: "color: #525252; background-color: red;",
2545
2517
  warn: "color: #525252; background-color: yellow; "
2546
- }, Qt = "%c[xgplayer]", $ = {
2518
+ }, ei = "%c[xgplayer]", $ = {
2547
2519
  config: {
2548
2520
  debug: fa ? 3 : 0
2549
2521
  },
2550
2522
  logInfo: function(o) {
2551
2523
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
2552
2524
  e[i - 1] = arguments[i];
2553
- this.config.debug >= 3 && (r = console).log.apply(r, [Qt, Jt.info, o].concat(e));
2525
+ this.config.debug >= 3 && (r = console).log.apply(r, [ei, Qt.info, o].concat(e));
2554
2526
  },
2555
2527
  logWarn: function(o) {
2556
2528
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
2557
2529
  e[i - 1] = arguments[i];
2558
- this.config.debug >= 1 && (r = console).warn.apply(r, [Qt, Jt.warn, o].concat(e));
2530
+ this.config.debug >= 1 && (r = console).warn.apply(r, [ei, Qt.warn, o].concat(e));
2559
2531
  },
2560
2532
  logError: function(o) {
2561
2533
  var r;
2562
2534
  if (!(this.config.debug < 1)) {
2563
2535
  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++)
2564
2536
  i[n - 1] = arguments[n];
2565
- (r = console)[t].apply(r, [Qt, Jt.error, o].concat(i));
2537
+ (r = console)[t].apply(r, [ei, Qt.error, o].concat(i));
2566
2538
  }
2567
2539
  }
2568
2540
  };
@@ -2704,7 +2676,7 @@ h.deepMerge = function(a, o) {
2704
2676
  if (h.typeOf(o[r]) === "Array" && h.typeOf(a[r]) === "Array") {
2705
2677
  if (h.typeOf(a[r]) === "Array") {
2706
2678
  var t;
2707
- (t = a[r]).push.apply(t, Ae(o[r]));
2679
+ (t = a[r]).push.apply(t, xe(o[r]));
2708
2680
  }
2709
2681
  } else h.typeOf(a[r]) === h.typeOf(o[r]) && a[r] !== null && h.typeOf(a[r]) === "Object" && !(o[r] instanceof window.Node) ? h.deepMerge(a[r], o[r]) : o[r] !== null && (a[r] = o[r]);
2710
2682
  }), a;
@@ -3037,7 +3009,7 @@ function pa(a, o, r) {
3037
3009
  function C(j) {
3038
3010
  return u = j, s = m(W, o), c ? p(j) : n;
3039
3011
  }
3040
- function E(j) {
3012
+ function S(j) {
3041
3013
  var ce = j - l, le = j - u, he = o - ce;
3042
3014
  return f ? Math.min(he, i - le) : he;
3043
3015
  }
@@ -3049,7 +3021,7 @@ function pa(a, o, r) {
3049
3021
  var j = Date.now();
3050
3022
  if (T(j))
3051
3023
  return U(j);
3052
- s = m(W, E(j));
3024
+ s = m(W, S(j));
3053
3025
  }
3054
3026
  function U(j) {
3055
3027
  return s = void 0, d && t ? p(j) : (t = e = void 0, n);
@@ -3215,7 +3187,7 @@ var tn = {
3215
3187
  4: 5104,
3216
3188
  5: 5105,
3217
3189
  6: 5106
3218
- }, Pt = /* @__PURE__ */ L(
3190
+ }, Lt = /* @__PURE__ */ L(
3219
3191
  function a(o) {
3220
3192
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
3221
3193
  errorType: "",
@@ -3245,8 +3217,8 @@ var tn = {
3245
3217
  originError: r.originError ? r.originError.stack : "",
3246
3218
  host: h.getHostFromUrl(l || u)
3247
3219
  };
3248
- return r.ext && Object.keys(r.ext).map(function(E) {
3249
- p[E] = r.ext[E];
3220
+ return r.ext && Object.keys(r.ext).map(function(S) {
3221
+ p[S] = r.ext[S];
3250
3222
  }), p;
3251
3223
  } else if (arguments.length > 1) {
3252
3224
  for (var m = {
@@ -3257,7 +3229,7 @@ var tn = {
3257
3229
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
3258
3230
  }
3259
3231
  }
3260
- ), Se = "play", bi = "playing", Je = "ended", ft = "pause", kt = "error", Vt = "seeking", Ne = "seeked", Ee = "timeupdate", Ct = "waiting", Fe = "canplay", ka = "canplaythrough", He = "durationchange", $n = "volumechange", Be = "loadeddata", Ca = "loadedmetadata", Kn = "ratechange", Yn = "progress", Ti = "loadstart", Qe = "emptied", wa = "stalled", ba = "suspend", Ta = "abort", Ea = "bufferedChange", Ei = "focus", Xn = "blur", Si = "ready", qn = "urlNull", Ze = "autoplay_started", Ai = "autoplay_was_prevented", jt = "complete", Lt = "replay", xi = "destroy", Wt = "urlchange", mi = "download_speed_change", Zn = "leaveplayer", Jn = "enterplayer", Qn = "loading", Me = "fullscreen_change", Dt = "cssFullscreen_change", Rt = "mini_state_change", Ii = "definition_change", Sa = "before_definition_change", yi = "after_definition_change", Aa = "SEI_PARSED", xa = "retry", We = "video_resize", _i = "pip_change", er = "rotate", tr = "screenShot", Ot = "playnext", ir = "shortcut", nr = "xglog", Mt = "user_action", Gt = "reset", rr = "source_error", sr = "source_success", Ia = "switch_subtitle", ar = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], or = {
3232
+ ), Se = "play", bi = "playing", Ze = "ended", ct = "pause", kt = "error", jt = "seeking", Fe = "seeked", Ee = "timeupdate", Ct = "waiting", Me = "canplay", ka = "canplaythrough", Be = "durationchange", $n = "volumechange", Ne = "loadeddata", Ca = "loadedmetadata", Kn = "ratechange", Yn = "progress", Ti = "loadstart", Je = "emptied", wa = "stalled", ba = "suspend", Ta = "abort", Ea = "bufferedChange", Ei = "focus", Xn = "blur", Si = "ready", qn = "urlNull", qe = "autoplay_started", Ai = "autoplay_was_prevented", Wt = "complete", Dt = "replay", xi = "destroy", Gt = "urlchange", mi = "download_speed_change", Zn = "leaveplayer", Jn = "enterplayer", Qn = "loading", Oe = "fullscreen_change", Rt = "cssFullscreen_change", Ot = "mini_state_change", Ii = "definition_change", Sa = "before_definition_change", yi = "after_definition_change", Aa = "SEI_PARSED", xa = "retry", je = "video_resize", _i = "pip_change", er = "rotate", tr = "screenShot", Mt = "playnext", ir = "shortcut", nr = "xglog", Ft = "user_action", $t = "reset", rr = "source_error", sr = "source_success", Ia = "switch_subtitle", ar = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], or = {
3261
3233
  STATS_INFO: "stats_info",
3262
3234
  STATS_DOWNLOAD: "stats_download",
3263
3235
  STATS_RESET: "stats_reset"
@@ -3267,46 +3239,46 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3267
3239
  ABORT: Ta,
3268
3240
  AFTER_DEFINITION_CHANGE: yi,
3269
3241
  AUTOPLAY_PREVENTED: Ai,
3270
- AUTOPLAY_STARTED: Ze,
3242
+ AUTOPLAY_STARTED: qe,
3271
3243
  BEFORE_DEFINITION_CHANGE: Sa,
3272
3244
  BUFFER_CHANGE: Ea,
3273
- CANPLAY: Fe,
3245
+ CANPLAY: Me,
3274
3246
  CANPLAY_THROUGH: ka,
3275
- COMPLETE: jt,
3276
- CSS_FULLSCREEN_CHANGE: Dt,
3247
+ COMPLETE: Wt,
3248
+ CSS_FULLSCREEN_CHANGE: Rt,
3277
3249
  DEFINITION_CHANGE: Ii,
3278
3250
  DESTROY: xi,
3279
3251
  DOWNLOAD_SPEED_CHANGE: mi,
3280
- DURATION_CHANGE: He,
3281
- EMPTIED: Qe,
3282
- ENDED: Je,
3252
+ DURATION_CHANGE: Be,
3253
+ EMPTIED: Je,
3254
+ ENDED: Ze,
3283
3255
  ENTER_PLAYER: Jn,
3284
3256
  ERROR: kt,
3285
3257
  FPS_STUCK: lr,
3286
- FULLSCREEN_CHANGE: Me,
3258
+ FULLSCREEN_CHANGE: Oe,
3287
3259
  LEAVE_PLAYER: Zn,
3288
- LOADED_DATA: Be,
3260
+ LOADED_DATA: Ne,
3289
3261
  LOADED_METADATA: Ca,
3290
3262
  LOADING: Qn,
3291
3263
  LOAD_START: Ti,
3292
- MINI_STATE_CHANGE: Rt,
3293
- PAUSE: ft,
3264
+ MINI_STATE_CHANGE: Ot,
3265
+ PAUSE: ct,
3294
3266
  PIP_CHANGE: _i,
3295
3267
  PLAY: Se,
3296
3268
  PLAYER_BLUR: Xn,
3297
3269
  PLAYER_FOCUS: Ei,
3298
3270
  PLAYING: bi,
3299
- PLAYNEXT: Ot,
3271
+ PLAYNEXT: Mt,
3300
3272
  PROGRESS: Yn,
3301
3273
  RATE_CHANGE: Kn,
3302
3274
  READY: Si,
3303
- REPLAY: Lt,
3304
- RESET: Gt,
3275
+ REPLAY: Dt,
3276
+ RESET: $t,
3305
3277
  RETRY: xa,
3306
3278
  ROTATE: er,
3307
3279
  SCREEN_SHOT: tr,
3308
- SEEKED: Ne,
3309
- SEEKING: Vt,
3280
+ SEEKED: Fe,
3281
+ SEEKING: jt,
3310
3282
  SEI_PARSED: Aa,
3311
3283
  SHORTCUT: ir,
3312
3284
  SOURCE_ERROR: rr,
@@ -3316,16 +3288,16 @@ const Pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3316
3288
  SUSPEND: ba,
3317
3289
  SWITCH_SUBTITLE: Ia,
3318
3290
  TIME_UPDATE: Ee,
3319
- URL_CHANGE: Wt,
3291
+ URL_CHANGE: Gt,
3320
3292
  URL_NULL: qn,
3321
- USER_ACTION: Mt,
3293
+ USER_ACTION: Ft,
3322
3294
  VIDEO_EVENTS: ar,
3323
- VIDEO_RESIZE: We,
3295
+ VIDEO_RESIZE: je,
3324
3296
  VOLUME_CHANGE: $n,
3325
3297
  WAITING: Ct,
3326
3298
  XGLOG: nr
3327
3299
  }, Symbol.toStringTag, { value: "Module" }));
3328
- function ei(a, o) {
3300
+ function ti(a, o) {
3329
3301
  !this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
3330
3302
  }
3331
3303
  function La(a, o) {
@@ -3353,14 +3325,14 @@ function La(a, o) {
3353
3325
  o._rate = o.media && o.media.playbackRate;
3354
3326
  }
3355
3327
  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]) {
3356
- var n = ei.bind(o, a, e);
3328
+ var n = ti.bind(o, a, e);
3357
3329
  try {
3358
3330
  o.mediaEventMiddleware[a].call(o, e, n);
3359
3331
  } catch (s) {
3360
- throw ei.call(o, a, e), s;
3332
+ throw ti.call(o, a, e), s;
3361
3333
  }
3362
3334
  } else
3363
- ei.call(o, a, e);
3335
+ ti.call(o, a, e);
3364
3336
  };
3365
3337
  }
3366
3338
  var Da = /* @__PURE__ */ function(a) {
@@ -3459,7 +3431,7 @@ var Da = /* @__PURE__ */ function(a) {
3459
3431
  l ? l.error(f, g) : n.errorHandler("error", g);
3460
3432
  }
3461
3433
  var p = nn[4];
3462
- n.emit(rr, new Pt(n, {
3434
+ n.emit(rr, new Lt(n, {
3463
3435
  errorType: p,
3464
3436
  errorCode: 4,
3465
3437
  errorMessage: "sources_load_error",
@@ -3496,7 +3468,7 @@ var Da = /* @__PURE__ */ function(a) {
3496
3468
  this.media.currentSrc || (l = "empty_src", n = {
3497
3469
  code: 6,
3498
3470
  message: l
3499
- }), this.emit(e, new Pt(this, {
3471
+ }), this.emit(e, new Lt(this, {
3500
3472
  errorType: s,
3501
3473
  errorCode: n.code,
3502
3474
  errorMessage: n.message || "",
@@ -3717,7 +3689,7 @@ var Da = /* @__PURE__ */ function(a) {
3717
3689
  },
3718
3690
  set: function(e) {
3719
3691
  if (this.media) {
3720
- if (this.emit(Wt, e), this.emit(Ct), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
3692
+ if (this.emit(Gt, e), this.emit(Ct), this._currentTime = 0, this._duration = 0, h.isMSE(this.media)) {
3721
3693
  this.onWaiting();
3722
3694
  return;
3723
3695
  }
@@ -3859,7 +3831,7 @@ var Da = /* @__PURE__ */ function(a) {
3859
3831
  t.clear();
3860
3832
  }
3861
3833
  }]), a;
3862
- }(), sn = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], an = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], on = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Xe = "data-xgplayerid";
3834
+ }(), sn = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], an = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], on = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Ye = "data-xgplayerid";
3863
3835
  function bt(a, o, r) {
3864
3836
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
3865
3837
  e[i - 3] = arguments[i];
@@ -3870,7 +3842,7 @@ function bt(a, o, r) {
3870
3842
  r.call.apply(r, [a].concat(l));
3871
3843
  }) : r.call.apply(r, [a].concat(e)));
3872
3844
  }
3873
- function Ft(a, o) {
3845
+ function Nt(a, o) {
3874
3846
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
3875
3847
  pre: null,
3876
3848
  next: null
@@ -3886,9 +3858,9 @@ function Ft(a, o) {
3886
3858
  }
3887
3859
  if (this.__hooks && this.__hooks[a])
3888
3860
  try {
3889
- var n = Re(this, a, o);
3861
+ var n = De(this, a, o);
3890
3862
  n ? n.then ? n.then(function(s) {
3891
- s !== !1 && bt.apply(void 0, [e, o, r.next].concat(Ae(t)));
3863
+ s !== !1 && bt.apply(void 0, [e, o, r.next].concat(xe(t)));
3892
3864
  }).catch(function(s) {
3893
3865
  throw s;
3894
3866
  }) : bt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : n === void 0 && bt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
@@ -3908,12 +3880,12 @@ function ur(a, o) {
3908
3880
  return e;
3909
3881
  return -1;
3910
3882
  }
3911
- function Nt(a, o) {
3883
+ function Bt(a, o) {
3912
3884
  var r = this.__hooks;
3913
3885
  if (r)
3914
3886
  return r.hasOwnProperty(a) ? (Array.isArray(r[a]) || (r[a] = []), ur.call(this, a, o) === -1 && r[a].push(o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
3915
3887
  }
3916
- function Bt(a, o) {
3888
+ function Ht(a, o) {
3917
3889
  var r = this.__hooks;
3918
3890
  if (r) {
3919
3891
  if (Array.isArray(r[a])) {
@@ -3956,7 +3928,7 @@ function cr(a) {
3956
3928
  function fr(a) {
3957
3929
  a.__hooks = null;
3958
3930
  }
3959
- function Re(a, o, r) {
3931
+ function De(a, o, r) {
3960
3932
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
3961
3933
  e[i - 3] = arguments[i];
3962
3934
  if (a.__hooks && Array.isArray(a.__hooks[o])) {
@@ -3967,10 +3939,10 @@ function Re(a, o, r) {
3967
3939
  return d.call.apply(d, [c, c].concat(p));
3968
3940
  var y = n[s], C = y.call.apply(y, [c, c].concat(p));
3969
3941
  if (C && C.then)
3970
- return C.then(function(E) {
3971
- return E === !1 ? null : u.apply(void 0, [c, f, d].concat(p));
3972
- }).catch(function(E) {
3973
- console.warn("[runHooks]".concat(f, " reject"), E.message);
3942
+ return C.then(function(S) {
3943
+ return S === !1 ? null : u.apply(void 0, [c, f, d].concat(p));
3944
+ }).catch(function(S) {
3945
+ console.warn("[runHooks]".concat(f, " reject"), S.message);
3974
3946
  });
3975
3947
  if (C !== !1)
3976
3948
  return u.apply(void 0, [c, f, d].concat(p));
@@ -3979,10 +3951,10 @@ function Re(a, o, r) {
3979
3951
  } else
3980
3952
  return r.call.apply(r, [a, a].concat(e));
3981
3953
  }
3982
- function ti(a, o) {
3954
+ function ii(a, o) {
3983
3955
  $.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
3984
3956
  }
3985
- var Ge = /* @__PURE__ */ function() {
3957
+ var We = /* @__PURE__ */ function() {
3986
3958
  function a(o) {
3987
3959
  P(this, a), h.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), cr(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
3988
3960
  }
@@ -4046,7 +4018,7 @@ var Ge = /* @__PURE__ */ function() {
4046
4018
  value: function(r, t) {
4047
4019
  var e = this;
4048
4020
  if (!r || !t || !this.player) {
4049
- ti(this.pluginName, "plugin.on(event, callback)");
4021
+ ii(this.pluginName, "plugin.on(event, callback)");
4050
4022
  return;
4051
4023
  }
4052
4024
  typeof r == "string" ? (this.__events[r] = t, this.player.on(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -4058,7 +4030,7 @@ var Ge = /* @__PURE__ */ function() {
4058
4030
  value: function(r, t) {
4059
4031
  var e = this;
4060
4032
  if (!r || !t || !this.player) {
4061
- ti(this.pluginName, "plugin.once(event, callback)");
4033
+ ii(this.pluginName, "plugin.once(event, callback)");
4062
4034
  return;
4063
4035
  }
4064
4036
  typeof r == "string" ? (this.__onceEvents[r] = t, this.player.once(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -4070,7 +4042,7 @@ var Ge = /* @__PURE__ */ function() {
4070
4042
  value: function(r, t) {
4071
4043
  var e = this;
4072
4044
  if (!r || !t || !this.player) {
4073
- ti(this.pluginName, "plugin.off(event, callback)");
4045
+ ii(this.pluginName, "plugin.off(event, callback)");
4074
4046
  return;
4075
4047
  }
4076
4048
  typeof r == "string" ? (delete this.__events[r], this.player.off(r, t)) : Array.isArray(r) && r.forEach(function(i) {
@@ -4111,21 +4083,21 @@ var Ge = /* @__PURE__ */ function() {
4111
4083
  }, {
4112
4084
  key: "hook",
4113
4085
  value: function(r, t) {
4114
- return Ft.call.apply(Ft, [this].concat(Array.prototype.slice.call(arguments)));
4086
+ return Nt.call.apply(Nt, [this].concat(Array.prototype.slice.call(arguments)));
4115
4087
  }
4116
4088
  }, {
4117
4089
  key: "useHooks",
4118
4090
  value: function(r, t) {
4119
4091
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
4120
4092
  i[n - 2] = arguments[n];
4121
- return Nt.call.apply(Nt, [this].concat(Array.prototype.slice.call(arguments)));
4093
+ return Bt.call.apply(Bt, [this].concat(Array.prototype.slice.call(arguments)));
4122
4094
  }
4123
4095
  }, {
4124
4096
  key: "removeHooks",
4125
4097
  value: function(r, t) {
4126
4098
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
4127
4099
  i[n - 2] = arguments[n];
4128
- return Bt.call.apply(Bt, [this].concat(Array.prototype.slice.call(arguments)));
4100
+ return Ht.call.apply(Ht, [this].concat(Array.prototype.slice.call(arguments)));
4129
4101
  }
4130
4102
  }, {
4131
4103
  key: "registerPlugin",
@@ -4176,9 +4148,9 @@ var Ge = /* @__PURE__ */ function() {
4176
4148
  return "pluginName";
4177
4149
  }
4178
4150
  }]), a;
4179
- }(), ii, cn;
4151
+ }(), ni, cn;
4180
4152
  function Oa() {
4181
- if (cn) return ii;
4153
+ if (cn) return ni;
4182
4154
  cn = 1;
4183
4155
  var a = 9;
4184
4156
  if (typeof Element < "u" && !Element.prototype.matches) {
@@ -4192,11 +4164,11 @@ function Oa() {
4192
4164
  t = t.parentNode;
4193
4165
  }
4194
4166
  }
4195
- return ii = r, ii;
4167
+ return ni = r, ni;
4196
4168
  }
4197
- var ni, fn;
4169
+ var ri, fn;
4198
4170
  function Ma() {
4199
- if (fn) return ni;
4171
+ if (fn) return ri;
4200
4172
  fn = 1;
4201
4173
  var a = Oa();
4202
4174
  function o(e, i, n, s, l) {
@@ -4217,7 +4189,7 @@ function Ma() {
4217
4189
  l.delegateTarget = a(l.target, i), l.delegateTarget && s.call(e, l);
4218
4190
  };
4219
4191
  }
4220
- return ni = r, ni;
4192
+ return ri = r, ri;
4221
4193
  }
4222
4194
  var Fa = Ma();
4223
4195
  const hn = /* @__PURE__ */ ki(Fa);
@@ -4238,7 +4210,7 @@ var Na = {
4238
4210
  ICON_DISABLE: "xg-icon-disable",
4239
4211
  ICON_HIDE: "xg-icon-hide"
4240
4212
  };
4241
- function ri(a) {
4213
+ function si(a) {
4242
4214
  return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
4243
4215
  }
4244
4216
  function Ba(a, o) {
@@ -4255,8 +4227,8 @@ function gn(a, o) {
4255
4227
  return h.addClass(a, r), Object.keys(t).map(function(n) {
4256
4228
  a.setAttribute(n, t[n]);
4257
4229
  }), a;
4258
- if (ri(a) || ri(a.url))
4259
- return t.src = ri(a) ? a : a.url || "", i = h.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
4230
+ if (si(a) || si(a.url))
4231
+ return t.src = si(a) ? a : a.url || "", i = h.createDom(a.tag || "img", "", t, "xg-img ".concat(r)), i;
4260
4232
  if (typeof a == "function")
4261
4233
  try {
4262
4234
  return i = a(), i instanceof window.Element ? (h.addClass(i, r), Object.keys(t).map(function(n) {
@@ -4576,7 +4548,7 @@ var Z = /* @__PURE__ */ function(a) {
4576
4548
  return ee;
4577
4549
  }
4578
4550
  }]), r;
4579
- }(Ge), Va = /* @__PURE__ */ function() {
4551
+ }(We), Va = /* @__PURE__ */ function() {
4580
4552
  function a() {
4581
4553
  var o = this;
4582
4554
  if (P(this, a), _(this, "__trigger", function(r) {
@@ -4598,7 +4570,7 @@ var Z = /* @__PURE__ */ function(a) {
4598
4570
  value: function(r, t) {
4599
4571
  if (this.observer) {
4600
4572
  this.observer.observe(r);
4601
- for (var e = r.getAttribute(Xe), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
4573
+ for (var e = r.getAttribute(Ye), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
4602
4574
  i[s] && r === i[s].target && (n = s);
4603
4575
  n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
4604
4576
  target: r,
@@ -4642,13 +4614,13 @@ var Z = /* @__PURE__ */ function(a) {
4642
4614
  return !1;
4643
4615
  }
4644
4616
  }]), a;
4645
- }(), vt = null;
4617
+ }(), pt = null;
4646
4618
  function ja(a, o) {
4647
- return vt || (vt = new Va()), vt.addObserver(a, o), vt;
4619
+ return pt || (pt = new Va()), pt.addObserver(a, o), pt;
4648
4620
  }
4649
4621
  function Wa(a, o) {
4650
4622
  var r;
4651
- (r = vt) === null || r === void 0 || r.unObserver(a, o);
4623
+ (r = pt) === null || r === void 0 || r.unObserver(a, o);
4652
4624
  }
4653
4625
  var fe = {
4654
4626
  pluginGroup: {},
@@ -4966,11 +4938,11 @@ var Ga = function(o, r) {
4966
4938
  var t, e, i;
4967
4939
  r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
4968
4940
  var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, f = n.icons, d = f === void 0 ? {} : f, g = n.i18n, p = g === void 0 ? [] : g;
4969
- o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, Ae(l)), (e = o.config.ignores).push.apply(e, Ae(c)), Object.keys(d).map(function(y) {
4941
+ o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, xe(l)), (e = o.config.ignores).push.apply(e, xe(c)), Object.keys(d).map(function(y) {
4970
4942
  o.config.icons[y] || (o.config.icons[y] = d[y]);
4971
4943
  });
4972
4944
  var m = o.config.i18n || [];
4973
- p.push.apply(p, Ae(m)), o.config.i18n = p;
4945
+ p.push.apply(p, xe(m)), o.config.i18n = p;
4974
4946
  }, $a = /* @__PURE__ */ function(a) {
4975
4947
  R(r, a);
4976
4948
  var o = O(r);
@@ -5005,7 +4977,7 @@ var Ga = function(o, r) {
5005
4977
  };
5006
4978
  Object.keys(u).map(function(f) {
5007
4979
  e.root.style[f] = u[f];
5008
- }), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(Rt, function(f) {
4980
+ }), this.left = this.find("xg-left-grid"), this.center = this.find("xg-center-grid"), this.right = this.find("xg-right-grid"), this.innerRoot = this.find("xg-inner-controls"), this.on(Ot, function(f) {
5009
4981
  f ? h.addClass(e.root, "mini-controls") : h.removeClass(e.root, "mini-controls");
5010
4982
  });
5011
4983
  var c = this.playerConfig.isMobileSimulateMode;
@@ -5217,7 +5189,7 @@ function _t(a, o) {
5217
5189
  var t = h.typeOf(o[r]), e = h.typeOf(a[r]);
5218
5190
  if (t === "Array") {
5219
5191
  var i;
5220
- e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, Ae(o[r]));
5192
+ e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, xe(o[r]));
5221
5193
  } else t === "Object" ? (e !== "Object" && (a[r] = {}), _t(a[r], o[r])) : a[r] = o[r];
5222
5194
  }), a;
5223
5195
  }
@@ -5256,10 +5228,10 @@ function Xa(a) {
5256
5228
  textKeys: {},
5257
5229
  pId: a
5258
5230
  };
5259
- return _t(r.lang, Te.lang), (o = r.langKeys).push.apply(o, Ae(Te.langKeys)), _t(r.textKeys, Te.textKeys), r;
5231
+ return _t(r.lang, Te.lang), (o = r.langKeys).push.apply(o, xe(Te.langKeys)), _t(r.textKeys, Te.textKeys), r;
5260
5232
  }
5261
5233
  Pi(Ka);
5262
- var ut = {
5234
+ var lt = {
5263
5235
  get textKeys() {
5264
5236
  return Te.textKeys;
5265
5237
  },
@@ -5284,7 +5256,7 @@ var ut = {
5284
5256
  RUNNING: 6,
5285
5257
  ENDED: 7,
5286
5258
  DESTROYED: 8
5287
- }, vn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ve = {}, si = null, dr = /* @__PURE__ */ function(a) {
5259
+ }, vn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], ve = {}, ai = null, dr = /* @__PURE__ */ function(a) {
5288
5260
  R(r, a);
5289
5261
  var o = O(r);
5290
5262
  function r() {
@@ -5367,7 +5339,7 @@ var ut = {
5367
5339
  }], [{
5368
5340
  key: "getInstance",
5369
5341
  value: function() {
5370
- return si || (si = new r()), si;
5342
+ return ai || (ai = new r()), ai;
5371
5343
  }
5372
5344
  }]), r;
5373
5345
  }(jn.EventEmitter);
@@ -5379,7 +5351,7 @@ function qa(a) {
5379
5351
  }
5380
5352
  return null;
5381
5353
  }
5382
- var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /* @__PURE__ */ function(a) {
5354
+ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, Ue = null, Kt = /* @__PURE__ */ function(a) {
5383
5355
  R(r, a);
5384
5356
  var o = O(r);
5385
5357
  function r(t) {
@@ -5389,7 +5361,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5389
5361
  e = o.call(this, i), _(v(e), "canPlayFunc", function() {
5390
5362
  if (e.config) {
5391
5363
  var p = e.config, m = p.autoplay, y = p.defaultPlaybackRate;
5392
- $.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(Fe, e.canPlayFunc), e.removeClass(w.ENTER);
5364
+ $.logInfo("player", "canPlayFunc, startTime", e.__startTime), e._seekToStartTime(), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(Me, e.canPlayFunc), e.removeClass(w.ENTER);
5393
5365
  }
5394
5366
  }), _(v(e), "onFullscreenChange", function(p, m) {
5395
5367
  var y = function() {
@@ -5397,7 +5369,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5397
5369
  e.resize();
5398
5370
  }, 100);
5399
5371
  }, C = h.getFullScreenEl();
5400
- e._fullActionFrom ? e._fullActionFrom = "" : e.emit(Mt, {
5372
+ e._fullActionFrom ? e._fullActionFrom = "" : e.emit(Ft, {
5401
5373
  eventType: "system",
5402
5374
  action: "switch_fullscreen",
5403
5375
  pluginName: "player",
@@ -5409,9 +5381,9 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5409
5381
  to: !1
5410
5382
  }]
5411
5383
  });
5412
- var E = ya(C, e.playerId, Xe);
5413
- if (m || C && (C === e._fullscreenEl || E))
5414
- y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, w.FULLSCREEN), e.emit(Me, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
5384
+ var S = ya(C, e.playerId, Ye);
5385
+ if (m || C && (C === e._fullscreenEl || S))
5386
+ y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, w.FULLSCREEN), e.emit(Oe, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
5415
5387
  else if (e.fullscreen) {
5416
5388
  y();
5417
5389
  var T = v(e), W = T._fullScreenOffset, U = T.config;
@@ -5423,7 +5395,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5423
5395
  var X = e._fullscreenEl;
5424
5396
  !X && (e.root.contains(p.target) || p.target === e.root) && (X = p.target), e.recoverFullStyle(e.root, X, w.FULLSCREEN);
5425
5397
  }
5426
- e._fullscreenEl = null, e.emit(Me, !1);
5398
+ e._fullscreenEl = null, e.emit(Oe, !1);
5427
5399
  }
5428
5400
  }), _(v(e), "_onWebkitbeginfullscreen", function(p) {
5429
5401
  e._fullscreenEl = e.media, e.onFullscreenChange(p, !0);
@@ -5457,9 +5429,9 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5457
5429
  }, e._offsetInfo = {
5458
5430
  currentTime: -1,
5459
5431
  duration: 0
5460
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = ut.init(e._pluginInfoId), V.os.isAndroid && V.osVersion > 0 && V.osVersion < 6 && (e.config.autoplay = !1), e.database = new Ra(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
5432
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = lt.init(e._pluginInfoId), V.os.isAndroid && V.osVersion > 0 && V.osVersion < 6 && (e.config.autoplay = !1), e.database = new Ra(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
5461
5433
  isActiveLocked: !1
5462
- }, e.instManager = ze;
5434
+ }, e.instManager = Ue;
5463
5435
  var l = e._initDOM();
5464
5436
  if (!l)
5465
5437
  return console.error(new Error("can't find the dom which id is ".concat(e.config.id, " or this.config.el does not exist"))), wi(e);
@@ -5483,14 +5455,14 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5483
5455
  if (n && n.nodeType === 1)
5484
5456
  this.root = n;
5485
5457
  else
5486
- return this.emit(kt, new Pt("use", this.config.vid, {
5458
+ return this.emit(kt, new Lt("use", this.config.vid, {
5487
5459
  line: 32,
5488
5460
  handle: "Constructor",
5489
5461
  msg: "container id can't be empty"
5490
5462
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
5491
5463
  }
5492
5464
  var s = qa(this.root);
5493
- s && ($.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Xe, this.playerId), (e = ze) === null || e === void 0 || e.add(this), fe.init(this), this._initBaseDoms();
5465
+ s && ($.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Ye, this.playerId), (e = Ue) === null || e === void 0 || e.add(this), fe.init(this), this._initBaseDoms();
5494
5466
  var l = this.constructor.XgVideoProxy;
5495
5467
  if (l && this.mediaConfig.mediaType === l.mediaType) {
5496
5468
  var u = this.innerContainer || this.root;
@@ -5498,7 +5470,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5498
5470
  var c = new l(u, this.config, this.mediaConfig);
5499
5471
  this.attachVideoEvents(c), this.media = c;
5500
5472
  }
5501
- if (this.media.setAttribute(Xe, this.playerId), this.config.controls) {
5473
+ if (this.media.setAttribute(Ye, this.playerId), this.config.controls) {
5502
5474
  var f = this.config.controls.root || null, d = fe.register(this, $a, {
5503
5475
  root: f
5504
5476
  });
@@ -5521,7 +5493,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5521
5493
  ["width", "height"].forEach(function(M) {
5522
5494
  i.config[M] && (typeof i.config[M] != "number" ? i.root.style[M] = i.config[M] : i.root.style[M] = "".concat(i.config[M], "px"));
5523
5495
  });
5524
- var E = this.root.getBoundingClientRect(), T = E.width, W = E.height, U = E.left, X = E.top;
5496
+ var S = this.root.getBoundingClientRect(), T = S.width, W = S.height, U = S.left, X = S.top;
5525
5497
  return this.sizeInfo.width = T, this.sizeInfo.height = W, this.sizeInfo.left = U, this.sizeInfo.top = X, !0;
5526
5498
  }
5527
5499
  }, {
@@ -5539,7 +5511,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5539
5511
  e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
5540
5512
  }), sn.forEach(function(i) {
5541
5513
  document && document.addEventListener(i, e.onFullscreenChange);
5542
- }), V.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Be, this.resize), this.playFunc = function() {
5514
+ }), V.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ne, this.resize), this.playFunc = function() {
5543
5515
  e.config.closeFocusVideoFocus || e.media.focus();
5544
5516
  }, this.once(Se, this.playFunc);
5545
5517
  }
@@ -5549,7 +5521,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5549
5521
  var e = this;
5550
5522
  this.root.removeEventListener("mousemove", this.mousemoveFunc), sn.forEach(function(i) {
5551
5523
  document.removeEventListener(i, e.onFullscreenChange);
5552
- }), this.playFunc && this.off(Se, this.playFunc), this.off(Fe, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
5524
+ }), this.playFunc && this.off(Se, this.playFunc), this.off(Me, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
5553
5525
  }
5554
5526
  }, {
5555
5527
  key: "_clearUserTimer",
@@ -5567,8 +5539,8 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5567
5539
  var s = this.media.readyState;
5568
5540
  $.logInfo("_startInit readyState", s), this.config.autoplay && (!h.isMSE(this.media) && this.load(), (V.os.isIpad || V.os.isPhone) && this.mediaPlay());
5569
5541
  var l = this.config.startTime;
5570
- this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Fe, this.canPlayFunc), (!this.hasStart || this.state < K.ATTACHED) && fe.afterInit(this), this.hasStart = !0, this.setState(K.ATTACHED), h.setTimeout(this, function() {
5571
- i.emit(jt);
5542
+ this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, s >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(Me, this.canPlayFunc), (!this.hasStart || this.state < K.ATTACHED) && fe.afterInit(this), this.hasStart = !0, this.setState(K.ATTACHED), h.setTimeout(this, function() {
5543
+ i.emit(Wt);
5572
5544
  }, 0);
5573
5545
  }
5574
5546
  }
@@ -5578,7 +5550,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5578
5550
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
5579
5551
  this._loadingPlugins = [];
5580
5552
  var n = this.config.ignores || [], s = this.config.plugins || [], l = this.config.i18n || [];
5581
- i && ut.extend(l, this.__i18n);
5553
+ i && lt.extend(l, this.__i18n);
5582
5554
  var u = n.join("||").toLowerCase().split("||"), c = this.plugins;
5583
5555
  s.forEach(function(f) {
5584
5556
  try {
@@ -5647,7 +5619,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5647
5619
  }, {
5648
5620
  key: "deregister",
5649
5621
  value: function(e) {
5650
- typeof e == "string" ? fe.unRegister(this, e) : e instanceof Ge && fe.unRegister(this, e.pluginName);
5622
+ typeof e == "string" ? fe.unRegister(this, e) : e instanceof We && fe.unRegister(this, e.pluginName);
5651
5623
  }
5652
5624
  }, {
5653
5625
  key: "unRegisterPlugin",
@@ -5659,7 +5631,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5659
5631
  key: "removePluginFromConfig",
5660
5632
  value: function(e) {
5661
5633
  var i;
5662
- if (typeof e == "string" ? i = e : e instanceof Ge && (i = e.pluginName), !!i)
5634
+ if (typeof e == "string" ? i = e : e instanceof We && (i = e.pluginName), !!i)
5663
5635
  for (var n = this.config.plugins.length - 1; n > -1; n--) {
5664
5636
  var s = this.config.plugins[n];
5665
5637
  if (s.pluginName.toLowerCase() === i.toLowerCase()) {
@@ -5760,7 +5732,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5760
5732
  this.state < K.RUNNING && (this.removeClass(w.NO_START), !this.isCanplay && this.addClass(w.ENTER));
5761
5733
  var i = N(F(r.prototype), "play", this).call(this);
5762
5734
  return i !== void 0 && i && i.then ? i.then(function() {
5763
- e.removeClass(w.NOT_ALLOW_AUTOPLAY), e.addClass(w.PLAYING), e.state < K.RUNNING && ($.logInfo(">>>>playPromise.then"), e.setState(K.RUNNING), e.emit(Ze));
5735
+ e.removeClass(w.NOT_ALLOW_AUTOPLAY), e.addClass(w.PLAYING), e.state < K.RUNNING && ($.logInfo(">>>>playPromise.then"), e.setState(K.RUNNING), e.emit(qe));
5764
5736
  }).catch(function(n) {
5765
5737
  if ($.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
5766
5738
  e.onError(), e.removeClass(w.ENTER);
@@ -5769,7 +5741,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5769
5741
  n.name === "NotAllowedError" && (e._errorTimer = h.setTimeout(e, function() {
5770
5742
  e._errorTimer = null, e.emit(Ai), e.addClass(w.NOT_ALLOW_AUTOPLAY), e.removeClass(w.ENTER), e.pause(), e.setState(K.NOTALLOW);
5771
5743
  }, 0));
5772
- }) : ($.logWarn("video.play not return promise"), this.state < K.RUNNING && (this.setState(K.RUNNING), this.removeClass(w.NOT_ALLOW_AUTOPLAY), this.removeClass(w.NO_START), this.removeClass(w.ENTER), this.addClass(w.PLAYING), this.emit(Ze))), i;
5744
+ }) : ($.logWarn("video.play not return promise"), this.state < K.RUNNING && (this.setState(K.RUNNING), this.removeClass(w.NOT_ALLOW_AUTOPLAY), this.removeClass(w.NO_START), this.removeClass(w.ENTER), this.addClass(w.PLAYING), this.emit(qe))), i;
5773
5745
  }
5774
5746
  }, {
5775
5747
  key: "mediaPause",
@@ -5785,7 +5757,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5785
5757
  key: "play",
5786
5758
  value: function() {
5787
5759
  var e = this;
5788
- return this.removeClass(w.PAUSED), Re(this, "play", function() {
5760
+ return this.removeClass(w.PAUSED), De(this, "play", function() {
5789
5761
  return e.mediaPlay();
5790
5762
  });
5791
5763
  }
@@ -5793,7 +5765,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5793
5765
  key: "pause",
5794
5766
  value: function() {
5795
5767
  var e = this;
5796
- Re(this, "pause", function() {
5768
+ De(this, "pause", function() {
5797
5769
  N(F(r.prototype), "pause", e).call(e);
5798
5770
  });
5799
5771
  }
@@ -5803,7 +5775,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5803
5775
  var n = this;
5804
5776
  if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
5805
5777
  var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
5806
- e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Ne, this._onceSeekCanplay), this._onceSeekCanplay = function() {
5778
+ e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Fe, this._onceSeekCanplay), this._onceSeekCanplay = function() {
5807
5779
  switch (n.removeClass(w.ENTER), n.isSeeking = !1, c) {
5808
5780
  case "play":
5809
5781
  n.play();
@@ -5815,7 +5787,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5815
5787
  n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
5816
5788
  }
5817
5789
  n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
5818
- }, this.once(Ne, this._onceSeekCanplay), this.state < K.RUNNING ? (this.removeClass(w.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5790
+ }, this.once(Fe, this._onceSeekCanplay), this.state < K.RUNNING ? (this.removeClass(w.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
5819
5791
  }
5820
5792
  }
5821
5793
  }, {
@@ -5857,7 +5829,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5857
5829
  value: function() {
5858
5830
  this.load(), this.reloadFunc = function() {
5859
5831
  this.play();
5860
- }, this.once(Be, this.reloadFunc);
5832
+ }, this.once(Ne, this.reloadFunc);
5861
5833
  }
5862
5834
  }, {
5863
5835
  key: "resetState",
@@ -5865,7 +5837,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5865
5837
  var e = this, i = w.NOT_ALLOW_AUTOPLAY, n = w.PLAYING, s = w.NO_START, l = w.PAUSED, u = w.REPLAY, c = w.ENTER, f = w.ENDED, d = w.ERROR, g = w.LOADING, p = [i, n, s, l, u, c, f, d, g];
5866
5838
  this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, p.forEach(function(m) {
5867
5839
  e.removeClass(m);
5868
- }), this.addClass(w.NO_START), this.emit(Gt);
5840
+ }), this.addClass(w.NO_START), this.emit($t);
5869
5841
  }
5870
5842
  }, {
5871
5843
  key: "reset",
@@ -5887,7 +5859,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5887
5859
  value: function() {
5888
5860
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
5889
5861
  if (!(!s || !l)) {
5890
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Xe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(xi), (e = ze) === null || e === void 0 || e.remove(this), fe.destroy(this), fr(this), N(F(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5862
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Ye), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), h.clearAllTimers(this), this.emit(xi), (e = Ue) === null || e === void 0 || e.remove(this), fe.destroy(this), fr(this), N(F(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
5891
5863
  for (var u = n.children, c = 0; c < u.length; c++)
5892
5864
  n.removeChild(u[c]);
5893
5865
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -5905,24 +5877,24 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5905
5877
  key: "replay",
5906
5878
  value: function() {
5907
5879
  var e = this;
5908
- this.removeClass(w.ENDED), this.currentTime = 0, this.isSeeking = !1, Re(this, "replay", function() {
5909
- e.once(Ne, function() {
5880
+ this.removeClass(w.ENDED), this.currentTime = 0, this.isSeeking = !1, De(this, "replay", function() {
5881
+ e.once(Fe, function() {
5910
5882
  var i = e.mediaPlay();
5911
5883
  i && i.catch && i.catch(function(n) {
5912
5884
  console.log(n);
5913
5885
  });
5914
- }), e.emit(Lt), e.onPlay();
5886
+ }), e.emit(Dt), e.onPlay();
5915
5887
  });
5916
5888
  }
5917
5889
  }, {
5918
5890
  key: "retry",
5919
5891
  value: function() {
5920
5892
  var e = this;
5921
- this.removeClass(w.ERROR), this.addClass(w.LOADING), Re(this, "retry", function() {
5893
+ this.removeClass(w.ERROR), this.addClass(w.LOADING), De(this, "retry", function() {
5922
5894
  var i = e.currentTime, n = e.config.url, s = h.isMSE(e.media) ? {
5923
5895
  url: n
5924
5896
  } : e._preProcessUrl(n);
5925
- e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(Fe, function() {
5897
+ e.src = s.url, !e.config.isLive && (e.currentTime = i), e.once(Me, function() {
5926
5898
  e.mediaPlay();
5927
5899
  });
5928
5900
  });
@@ -5930,12 +5902,12 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5930
5902
  }, {
5931
5903
  key: "changeFullStyle",
5932
5904
  value: function(e, i, n, s) {
5933
- e && (s || (s = w.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, s), i.setAttribute(Xe, this.playerId)));
5905
+ e && (s || (s = w.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = h.filterStyleFromText(e)), h.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = h.filterStyleFromText(i), h.addClass(i, s), i.setAttribute(Ye, this.playerId)));
5934
5906
  }
5935
5907
  }, {
5936
5908
  key: "recoverFullStyle",
5937
5909
  value: function(e, i, n, s) {
5938
- s || (s = w.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, s), i.removeAttribute(Xe));
5910
+ s || (s = w.PARENT_FULLSCREEN), this._orgCss && (h.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), h.removeClass(e, n), i && i !== e && this._orgPCss && (h.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", h.removeClass(i, s), i.removeAttribute(Ye));
5939
5911
  }
5940
5912
  }, {
5941
5913
  key: "getFullscreen",
@@ -5990,7 +5962,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
5990
5962
  var i = e ? "".concat(w.INNER_FULLSCREEN, " ").concat(w.CSS_FULLSCREEN) : w.CSS_FULLSCREEN;
5991
5963
  this.changeFullStyle(this.root, e, i);
5992
5964
  var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
5993
- l && (this.fullscreen = !0, this.emit(Me, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Dt, !0);
5965
+ l && (this.fullscreen = !0, this.emit(Oe, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Rt, !0);
5994
5966
  }
5995
5967
  }, {
5996
5968
  key: "exitCssFullscreen",
@@ -6000,9 +5972,9 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6000
5972
  this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
6001
5973
  else {
6002
5974
  var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
6003
- s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(Me, !1)) : this.removeClass(e);
5975
+ s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(Oe, !1)) : this.removeClass(e);
6004
5976
  }
6005
- this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Dt, !1);
5977
+ this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Rt, !1);
6006
5978
  }
6007
5979
  }, {
6008
5980
  key: "getRotateFullscreen",
@@ -6010,13 +5982,13 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6010
5982
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
6011
5983
  this.cssfullscreen && this.exitCssFullscreen(e);
6012
5984
  var i = e ? "".concat(w.INNER_FULLSCREEN, " ").concat(w.ROTATE_FULLSCREEN) : w.ROTATE_FULLSCREEN;
6013
- this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, w.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(Me, !0);
5985
+ this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, w.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(Oe, !0);
6014
5986
  }
6015
5987
  }, {
6016
5988
  key: "exitRotateFullscreen",
6017
5989
  value: function(e) {
6018
5990
  var i = this._fullscreenEl !== this.root ? "".concat(w.INNER_FULLSCREEN, " ").concat(w.ROTATE_FULLSCREEN) : w.ROTATE_FULLSCREEN;
6019
- this.recoverFullStyle(this.root, this._fullscreenEl, i, w.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(Me, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
5991
+ this.recoverFullStyle(this.root, this._fullscreenEl, i, w.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(Oe, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
6020
5992
  }
6021
5993
  }, {
6022
5994
  key: "setRotateDeg",
@@ -6093,7 +6065,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6093
6065
  key: "onLoadeddata",
6094
6066
  value: function() {
6095
6067
  var e = this;
6096
- this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(He, function() {
6068
+ this.isError = !1, this.isSeeking = !1, this.__startTime > 0 && (this.duration > 0 ? this._seekToStartTime() : this.once(Be, function() {
6097
6069
  e._seekToStartTime();
6098
6070
  }));
6099
6071
  }
@@ -6153,7 +6125,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6153
6125
  }, {
6154
6126
  key: "onTimeupdate",
6155
6127
  value: function() {
6156
- !this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(w.LOADING)) && this.media.readyState > 2 && (this.removeClass(w.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === K.NOTALLOW && this.duration && (this.setState(K.RUNNING), this.emit(Ze)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
6128
+ !this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(w.LOADING)) && this.media.readyState > 2 && (this.removeClass(w.LOADING), h.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === K.NOTALLOW && this.duration && (this.setState(K.RUNNING), this.emit(qe)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
6157
6129
  }
6158
6130
  }, {
6159
6131
  key: "onVolumechange",
@@ -6170,7 +6142,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6170
6142
  value: function(e, i, n) {
6171
6143
  if (!(!this.media || !i || !e)) {
6172
6144
  var s = h.typeOf(e) === "String" ? e : e.type || "";
6173
- n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(Mt, ae({
6145
+ n.props && h.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(Ft, ae({
6174
6146
  eventType: s,
6175
6147
  action: i,
6176
6148
  currentTime: this.currentTime,
@@ -6212,12 +6184,12 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6212
6184
  this.videoPos.pi = c, u = u < 0 ? 0 : u;
6213
6185
  var f = {
6214
6186
  rotate: u
6215
- }, d = 0, g = 0, p = 1, m = Math.abs(u / 90), y = this.root, C = this.innerContainer, E = y.offsetWidth, T = C ? C.offsetHeight : y.offsetHeight, W = T, U = E;
6187
+ }, d = 0, g = 0, p = 1, m = Math.abs(u / 90), y = this.root, C = this.innerContainer, S = y.offsetWidth, T = C ? C.offsetHeight : y.offsetHeight, W = T, U = S;
6216
6188
  if (m % 2 === 0)
6217
6189
  p = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, f.scale = p, d = i > 0 ? (100 - s) / 2 - i : 0, f.y = m === 2 ? 0 - d : d, g = n > 0 ? (100 - l) / 2 - n : 0, f.x = m === 2 ? 0 - g : g, this.media.style.width = "".concat(U, "px"), this.media.style.height = "".concat(W, "px");
6218
6190
  else if (m % 2 === 1) {
6219
- U = T, W = E;
6220
- var X = T - E;
6191
+ U = T, W = S;
6192
+ var X = T - S;
6221
6193
  g = -X / 2 / U * 100, f.x = m === 3 ? g + i / 2 : g - i / 2, d = X / 2 / W * 100, f.y = m === 3 ? d + n / 2 : d - n / 2, f.scale = p, this.media.style.width = "".concat(U, "px"), this.media.style.height = "".concat(W, "px");
6222
6194
  }
6223
6195
  var M = h.getTransformStyle(f, this.media.style.transform || this.media.style.webkitTransform);
@@ -6255,8 +6227,8 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6255
6227
  key: "playNext",
6256
6228
  value: function(e) {
6257
6229
  var i = this;
6258
- this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Re(this, "playnext", function() {
6259
- i.start(), i.emit(Ot, e);
6230
+ this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, De(this, "playnext", function() {
6231
+ i.start(), i.emit(Mt, e);
6260
6232
  });
6261
6233
  }
6262
6234
  }, {
@@ -6269,18 +6241,18 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6269
6241
  var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, f = u.videoFillMode;
6270
6242
  if ((f === "fill" || f === "cover" || f === "contain") && this.setAttribute("data-xgfill", f), !(!l || !s)) {
6271
6243
  this._videoHeight = l, this._videoWidth = s;
6272
- var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), y = parseInt(g / p * 1e3, 10), C = g, E = p, T = {};
6273
- c === "auto" && y > m || c === "fixWidth" ? (E = g / m * 1e3, this.config.fluid ? T.paddingTop = "".concat(E * 100 / C, "%") : T.height = "".concat(E + d, "px")) : (c === "auto" && y < m || c === "fixHeight") && (C = m * p / 1e3, T.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(T).forEach(function(U) {
6244
+ var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, g = i.width, p = i.height - d, m = parseInt(s / l * 1e3, 10), y = parseInt(g / p * 1e3, 10), C = g, S = p, T = {};
6245
+ c === "auto" && y > m || c === "fixWidth" ? (S = g / m * 1e3, this.config.fluid ? T.paddingTop = "".concat(S * 100 / C, "%") : T.height = "".concat(S + d, "px")) : (c === "auto" && y < m || c === "fixHeight") && (C = m * p / 1e3, T.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(T).forEach(function(U) {
6274
6246
  e.root.style[U] = T[U];
6275
6247
  }), (f === "fillHeight" && y < m || f === "fillWidth" && y > m) && this.setAttribute("data-xgfill", "cover");
6276
6248
  var W = {
6277
6249
  videoScale: m,
6278
6250
  vWidth: C,
6279
- vHeight: E,
6251
+ vHeight: S,
6280
6252
  cWidth: C,
6281
- cHeight: E + d
6253
+ cHeight: S + d
6282
6254
  };
6283
- this.resizePosition(), this.emit(We, W);
6255
+ this.resizePosition(), this.emit(je, W);
6284
6256
  }
6285
6257
  }
6286
6258
  }
@@ -6376,11 +6348,11 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6376
6348
  return this.config.lang;
6377
6349
  },
6378
6350
  set: function(e) {
6379
- var i = ut.langKeys.filter(function(n) {
6351
+ var i = lt.langKeys.filter(function(n) {
6380
6352
  return n === e;
6381
6353
  });
6382
6354
  if (i.length === 0 && e !== "zh") {
6383
- console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(ut.langKeys.join(), "] "));
6355
+ console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(lt.langKeys.join(), "] "));
6384
6356
  return;
6385
6357
  }
6386
6358
  this.config.lang = e, fe.setLang(e, this);
@@ -6500,17 +6472,17 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6500
6472
  }, {
6501
6473
  key: "hook",
6502
6474
  value: function(e, i) {
6503
- return Ft.call.apply(Ft, [this].concat(Array.prototype.slice.call(arguments)));
6475
+ return Nt.call.apply(Nt, [this].concat(Array.prototype.slice.call(arguments)));
6504
6476
  }
6505
6477
  }, {
6506
6478
  key: "useHooks",
6507
6479
  value: function(e, i) {
6508
- return Nt.call.apply(Nt, [this].concat(Array.prototype.slice.call(arguments)));
6480
+ return Bt.call.apply(Bt, [this].concat(Array.prototype.slice.call(arguments)));
6509
6481
  }
6510
6482
  }, {
6511
6483
  key: "removeHooks",
6512
6484
  value: function(e, i) {
6513
- return Bt.call.apply(Bt, [this].concat(Array.prototype.slice.call(arguments)));
6485
+ return Ht.call.apply(Ht, [this].concat(Array.prototype.slice.call(arguments)));
6514
6486
  }
6515
6487
  }, {
6516
6488
  key: "usePluginHooks",
@@ -6530,7 +6502,7 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6530
6502
  key: "setUserActive",
6531
6503
  value: function(e, i) {
6532
6504
  var n;
6533
- typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n = ze) === null || n === void 0 || n.setActive(this.playerId, e);
6505
+ typeof i == "boolean" && i !== this.muted && (this.addInnerOP("volumechange"), h.typeOf(i) === Boolean && (this.muted = i)), (n = Ue) === null || n === void 0 || n.setActive(this.playerId, e);
6534
6506
  }
6535
6507
  }], [{
6536
6508
  key: "debugger",
@@ -6543,22 +6515,22 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6543
6515
  }, {
6544
6516
  key: "instManager",
6545
6517
  get: function() {
6546
- return ze;
6518
+ return Ue;
6547
6519
  },
6548
6520
  set: function(e) {
6549
- ze = e;
6521
+ Ue = e;
6550
6522
  }
6551
6523
  }, {
6552
6524
  key: "getCurrentUserActivePlayerId",
6553
6525
  value: function() {
6554
6526
  var e;
6555
- return (e = ze) === null || e === void 0 ? void 0 : e.getActiveId();
6527
+ return (e = Ue) === null || e === void 0 ? void 0 : e.getActiveId();
6556
6528
  }
6557
6529
  }, {
6558
6530
  key: "setCurrentUserActive",
6559
6531
  value: function(e, i) {
6560
6532
  var n;
6561
- (n = ze) === null || n === void 0 || n.setActive(e, i);
6533
+ (n = Ue) === null || n === void 0 || n.setActive(e, i);
6562
6534
  }
6563
6535
  }, {
6564
6536
  key: "isHevcSupported",
@@ -6582,13 +6554,13 @@ var Za = ["play", "pause", "replay", "retry"], mn = 0, yn = 0, ze = null, $t = /
6582
6554
  }
6583
6555
  }]), r;
6584
6556
  }(Da);
6585
- _($t, "defaultPreset", null);
6586
- _($t, "XgVideoProxy", null);
6587
- $t.instManager = dr.getInstance();
6557
+ _(Kt, "defaultPreset", null);
6558
+ _(Kt, "XgVideoProxy", null);
6559
+ Kt.instManager = dr.getInstance();
6588
6560
  function de() {
6589
6561
  return (/* @__PURE__ */ new Date()).getTime();
6590
6562
  }
6591
- var Ve = {
6563
+ var ze = {
6592
6564
  LOAD_START: "loadstart",
6593
6565
  LOADED_DATA: "loadeddata",
6594
6566
  FIRST_FRAME: "firstFrame",
@@ -6617,13 +6589,13 @@ var Ve = {
6617
6589
  isLs: !1
6618
6590
  }, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = de(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && h.clearTimeout(v(t), t._waitTimer), t._waittTimer && h.clearTimeout(v(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
6619
6591
  }), _(v(t), "_onSeeking", function() {
6620
- t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = de(), t.emitLog(Ve.SEEK_START, {
6592
+ t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = de(), t.emitLog(ze.SEEK_START, {
6621
6593
  start: de()
6622
6594
  }));
6623
6595
  }), _(v(t), "_onSeeked", function() {
6624
6596
  t.suspendSeekingStatus("seeked");
6625
6597
  }), _(v(t), "_onWaitingLoadStart", function() {
6626
- t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = de(), t.fixedWaitingStart = de(), t._waitType = 1, t.emitLog(Ve.WAIT_START, {
6598
+ t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = de(), t.fixedWaitingStart = de(), t._waitType = 1, t.emitLog(ze.WAIT_START, {
6627
6599
  fixedStart: t.fixedWaitingStart,
6628
6600
  start: t.waitingStart,
6629
6601
  type: 1,
@@ -6631,7 +6603,7 @@ var Ve = {
6631
6603
  }));
6632
6604
  }), _(v(t), "_onWaiting", function() {
6633
6605
  t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = de(), t._waitTimer = h.setTimeout(v(t), function() {
6634
- t._isWaiting && (t.waitingStart = de(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Ve.WAIT_START, {
6606
+ t._isWaiting && (t.waitingStart = de(), h.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(ze.WAIT_START, {
6635
6607
  fixedStart: t.fixedWaitingStart,
6636
6608
  start: t.waitingStart,
6637
6609
  type: t._waitType,
@@ -6650,30 +6622,30 @@ var Ve = {
6650
6622
  var e = this;
6651
6623
  this._onReset(), this._waitType = "firstFrame", this._initOnceEvents(), this.newPointTime = de(), this.loadedCostTime = 0, this.startCostTime = 0, this.on(Ti, function() {
6652
6624
  var i = e._state, n = i.autoplayStart, s = i.isFFSend;
6653
- e.startCostTime = de() - e.newPointTime, $.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(Ve.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = de(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
6654
- }), this.on(Be, function() {
6625
+ e.startCostTime = de() - e.newPointTime, $.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(ze.LOAD_START, {}), i.isLs = !0, i.isTimeUpdate = !1, i.isFFLoading = !0, e.pt = de(), e.vt = 0, e.fvt = 0, e._initOnceEvents(), e._onWaitingLoadStart());
6626
+ }), this.on(Ne, function() {
6655
6627
  e.vt = de(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
6656
6628
  var i = e._state, n = i.isTimeUpdate, s = i.isFFSend, l = i.autoplayStart;
6657
- $.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(Ve.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
6658
- }), this.on(Vt, this._onSeeking), this.on(Ne, this._onSeeked), this.on(xi, function() {
6629
+ $.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(ze.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
6630
+ }), this.on(jt, this._onSeeking), this.on(Fe, this._onSeeked), this.on(xi, function() {
6659
6631
  e.endState("destroy");
6660
- }), this.on(Wt, function() {
6632
+ }), this.on(Gt, function() {
6661
6633
  e.endState("urlChange"), $.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
6662
- }), this.on([bi, Fe], this._onPlaying), this.on(Ct, this._onWaiting), this.on(kt, this._onError), this.on(Gt, function() {
6634
+ }), this.on([bi, Me], this._onPlaying), this.on(Ct, this._onWaiting), this.on(kt, this._onError), this.on($t, function() {
6663
6635
  $.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
6664
6636
  });
6665
6637
  }
6666
6638
  }, {
6667
6639
  key: "_initOnceEvents",
6668
6640
  value: function() {
6669
- this.off(Ze, this._onAutoplayStart), this.off(Ee, this._onTimeupdate), this.once(Ze, this._onAutoplayStart), this.once(Ee, this._onTimeupdate);
6641
+ this.off(qe, this._onAutoplayStart), this.off(Ee, this._onTimeupdate), this.once(qe, this._onAutoplayStart), this.once(Ee, this._onTimeupdate);
6670
6642
  }
6671
6643
  }, {
6672
6644
  key: "_sendFF",
6673
6645
  value: function(e) {
6674
6646
  this.s = de();
6675
6647
  var i = this._state, n = i.isFFLoading, s = i.isFFSend;
6676
- $.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && ($.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(Ve.FIRST_FRAME, {
6648
+ $.logInfo("[xgLogger]".concat(this.player.playerId, " _sendFF"), "".concat(e, " fvt:").concat(this.fvt, " isFFLoading:").concat(n, " !isFFSend:").concat(!s)), this.vt > 0 && n && !s && ($.logInfo("[xgLogger]".concat(this.player.playerId, " emitLog_firstFrame"), e), this._state.isFFLoading = !1, this._state.isFFSend = !0, this.emitLog(ze.FIRST_FRAME, {
6677
6649
  fvt: this.fvt,
6678
6650
  costTime: this.fvt,
6679
6651
  vt: this.vt,
@@ -6699,7 +6671,7 @@ var Ve = {
6699
6671
  value: function(e) {
6700
6672
  if (this.seekingStart) {
6701
6673
  var i = de(), n = i - this.seekingStart;
6702
- this.seekingStart = 0, this.emitLog(Ve.SEEK_END, {
6674
+ this.seekingStart = 0, this.emitLog(ze.SEEK_END, {
6703
6675
  end: i,
6704
6676
  costTime: n,
6705
6677
  endType: e
@@ -6711,7 +6683,7 @@ var Ve = {
6711
6683
  value: function(e) {
6712
6684
  if (this._waitTimer && (h.clearTimeout(this, this._waitTimer), this._waitTimer = null), this._waittTimer && (h.clearTimeout(this, this._waittTimer), this._waittTimer = null), this._isWaiting = !1, !!this.waitingStart) {
6713
6685
  var i = de(), n = i - this.waitingStart, s = i - this.fixedWaitingStart, l = this.config.waitTimeout;
6714
- this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(Ve.WAIT_END, {
6686
+ this._isWaiting = !1, this.waitingStart = 0, this.fixedWaitingStart = 0, this.emitLog(ze.WAIT_END, {
6715
6687
  fixedCostTime: s > l ? l : s,
6716
6688
  costTime: n > l ? l : n,
6717
6689
  type: e === "loadeddata" ? 1 : this._waitType,
@@ -6776,7 +6748,7 @@ var eo = /* @__PURE__ */ function(a) {
6776
6748
  pre: function(n) {
6777
6749
  n.preventDefault(), n.stopPropagation();
6778
6750
  }
6779
- }), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Je, function() {
6751
+ }), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Ze, function() {
6780
6752
  if (e.playerConfig.loop || h.addClass(e.player.root, "replay"), !e.config.disable) {
6781
6753
  e.show();
6782
6754
  var i = e.root.querySelector("path");
@@ -6869,11 +6841,11 @@ var eo = /* @__PURE__ */ function(a) {
6869
6841
  key: "afterCreate",
6870
6842
  value: function() {
6871
6843
  var e = this;
6872
- this.on(Je, function() {
6844
+ this.on(Ze, function() {
6873
6845
  e.isEndedShow && h.removeClass(e.root, "hide");
6874
6846
  }), this.config.hideCanplay ? (this.once(Ee, function() {
6875
6847
  e.onTimeUpdate();
6876
- }), this.on(Wt, function() {
6848
+ }), this.on(Gt, function() {
6877
6849
  h.removeClass(e.root, "hide"), h.addClass(e.root, "xg-showplay"), e.once(Ee, function() {
6878
6850
  e.onTimeUpdate();
6879
6851
  });
@@ -6960,23 +6932,23 @@ function Di() {
6960
6932
  </svg>
6961
6933
  `, "image/svg+xml").firstChild;
6962
6934
  }
6963
- var Pe = {};
6935
+ var Le = {};
6964
6936
  function io(a, o) {
6965
6937
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
6966
6938
  start: null,
6967
6939
  end: null
6968
6940
  };
6969
- return Pe[a] && window.clearTimeout(Pe[a].id), Pe[a] = {}, r.start && r.start(), Pe[a].id = window.setTimeout(function() {
6970
- r.end && r.end(), window.clearTimeout(Pe[a].id), delete Pe[a];
6971
- }, o), Pe[a].id;
6941
+ return Le[a] && window.clearTimeout(Le[a].id), Le[a] = {}, r.start && r.start(), Le[a].id = window.setTimeout(function() {
6942
+ r.end && r.end(), window.clearTimeout(Le[a].id), delete Le[a];
6943
+ }, o), Le[a].id;
6972
6944
  }
6973
6945
  function _n(a) {
6974
6946
  if (a) {
6975
6947
  window.clearTimeout(a);
6976
6948
  return;
6977
6949
  }
6978
- Object.keys(Pe).map(function(o) {
6979
- window.clearTimeout(Pe[o].id), delete Pe[o];
6950
+ Object.keys(Le).map(function(o) {
6951
+ window.clearTimeout(Le[o].id), delete Le[o];
6980
6952
  });
6981
6953
  }
6982
6954
  var no = /* @__PURE__ */ function(a) {
@@ -7007,14 +6979,14 @@ var no = /* @__PURE__ */ function(a) {
7007
6979
  var e = this, i = this.player, n = this.playerConfig;
7008
6980
  this.once(Si, function() {
7009
6981
  n && (n.lang && n.lang === "en" ? h.addClass(i.root, "lang-is-en") : n.lang === "jp" && h.addClass(i.root, "lang-is-jp"));
7010
- }), this.on(Ze, this.onAutoplayStart), this.on(Ai, function() {
6982
+ }), this.on(qe, this.onAutoplayStart), this.on(Ai, function() {
7011
6983
  var s = e.config.mode === "auto" ? "auto-hide" : "hide";
7012
6984
  e.setAttr("data-state", "play"), h.removeClass(e.root, s), e.show();
7013
6985
  }), this.on(Se, function() {
7014
6986
  e.toggleTo("play");
7015
- }), this.on(ft, function() {
6987
+ }), this.on(ct, function() {
7016
6988
  e.toggleTo("pause");
7017
- }), this.on(Gt, function() {
6989
+ }), this.on($t, function() {
7018
6990
  e.onPlayerReset();
7019
6991
  });
7020
6992
  }
@@ -7207,7 +7179,7 @@ var no = /* @__PURE__ */ function(a) {
7207
7179
  }
7208
7180
  }]), r;
7209
7181
  }(Z);
7210
- function Ke(a, o, r) {
7182
+ function $e(a, o, r) {
7211
7183
  try {
7212
7184
  return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(a.i18nKeys[o], `">
7213
7185
  `).concat(a.i18n[o], `
@@ -7306,14 +7278,14 @@ function wn(a) {
7306
7278
  return y !== !1 && (r.height = y + (p ? 0 : u + g)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + g), r.outerWidth = r.width + c, r.outerHeight = r.height + f, r;
7307
7279
  }
7308
7280
  }
7309
- function ai(a, o) {
7281
+ function oi(a, o) {
7310
7282
  for (var r = 0; r < a.length; r++) {
7311
7283
  var t = a[r];
7312
7284
  if (t.identifier === o)
7313
7285
  return t;
7314
7286
  }
7315
7287
  }
7316
- var oi = {
7288
+ var li = {
7317
7289
  START: "dragStart",
7318
7290
  MOVE: "dragMove",
7319
7291
  ENDED: "dragEnded"
@@ -7424,19 +7396,19 @@ var oi = {
7424
7396
  }, {
7425
7397
  key: "ontouchmove",
7426
7398
  value: function(e) {
7427
- var i = ai(e.changedTouches, this.touchIdentifier);
7399
+ var i = oi(e.changedTouches, this.touchIdentifier);
7428
7400
  i && this.dragMove(e, i);
7429
7401
  }
7430
7402
  }, {
7431
7403
  key: "ontouchend",
7432
7404
  value: function(e) {
7433
- var i = ai(e.changedTouches, this.touchIdentifier);
7405
+ var i = oi(e.changedTouches, this.touchIdentifier);
7434
7406
  i && this.dragEnd(e, i), e.preventDefault();
7435
7407
  }
7436
7408
  }, {
7437
7409
  key: "ontouchcancel",
7438
7410
  value: function(e) {
7439
- var i = ai(e.changedTouches, this.touchIdentifier);
7411
+ var i = oi(e.changedTouches, this.touchIdentifier);
7440
7412
  i && this.dragCancel(e, i);
7441
7413
  }
7442
7414
  }, {
@@ -7451,12 +7423,12 @@ var oi = {
7451
7423
  }, {
7452
7424
  key: "dragRealStart",
7453
7425
  value: function(e, i) {
7454
- this.isDragging = !0, this.animate(), this.emit(oi.START, this.startPos);
7426
+ this.isDragging = !0, this.animate(), this.emit(li.START, this.startPos);
7455
7427
  }
7456
7428
  }, {
7457
7429
  key: "dragEnd",
7458
7430
  value: function(e, i) {
7459
- this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(oi.ENDED)), this.presetInfo());
7431
+ this._root && (this._unbindPostStartEvents(), this.isDragging && (this._root.style.transform = "", this.setLeftTop(), this.emit(li.ENDED)), this.presetInfo());
7460
7432
  }
7461
7433
  }, {
7462
7434
  key: "_dragPointerMove",
@@ -7472,7 +7444,7 @@ var oi = {
7472
7444
  value: function(e, i) {
7473
7445
  if (e = e || window.event, !!this.isDown) {
7474
7446
  var n = this.startPos, s = n.x, l = n.y, u = this._dragPointerMove(e, i), c = u.x, f = u.y;
7475
- c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(oi.MOVE, this.position);
7447
+ c = this.checkContain("x", c, s), f = this.checkContain("y", f, l), this.position.x = s + c, this.position.y = l + f, this.dragPoint.x = c, this.dragPoint.y = f, this.emit(li.MOVE, this.position);
7476
7448
  }
7477
7449
  }
7478
7450
  }, {
@@ -7565,7 +7537,7 @@ var oi = {
7565
7537
  key: "afterCreate",
7566
7538
  value: function() {
7567
7539
  var e = this;
7568
- this.initIcons(), this.on(ft, function() {
7540
+ this.initIcons(), this.on(ct, function() {
7569
7541
  e.setAttr("data-state", "pause");
7570
7542
  }), this.on(Se, function() {
7571
7543
  e.setAttr("data-state", "play");
@@ -7620,7 +7592,7 @@ var oi = {
7620
7592
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
7621
7593
  this.lastStyle = {}, h.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
7622
7594
  e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
7623
- }), n.fluid && (s.style["padding-top"] = ""), this.emit(Rt, !0), i.isMini = this.isMini = !0;
7595
+ }), n.fluid && (s.style["padding-top"] = ""), this.emit(Ot, !0), i.isMini = this.isMini = !0;
7624
7596
  }
7625
7597
  }
7626
7598
  }, {
@@ -7632,7 +7604,7 @@ var oi = {
7632
7604
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
7633
7605
  h.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
7634
7606
  s.style[l] = e.lastStyle[l];
7635
- }), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(Rt, !1), this.isMini = i.isMini = !1;
7607
+ }), this.lastStyle = null, n.fluid && (i.root.style.width = "100%", i.root.style.height = "0", i.root.style["padding-top"] = "".concat(n.height * 100 / n.width, "%")), this.emit(Ot, !1), this.isMini = i.isMini = !1;
7636
7608
  }
7637
7609
  }, {
7638
7610
  key: "destroy",
@@ -7648,7 +7620,7 @@ var oi = {
7648
7620
  return `
7649
7621
  <xg-mini-layer class="xg-mini-layer">
7650
7622
  <xg-mini-header class="xgplayer-mini-header">
7651
- `.concat(Ke(this, "MINI_DRAG", this.playerConfig.isHideTips), `
7623
+ `.concat($e(this, "MINI_DRAG", this.playerConfig.isHideTips), `
7652
7624
  </xg-mini-header>
7653
7625
  <div class="mini-cancel-btn">
7654
7626
  <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
@@ -7685,7 +7657,7 @@ var oi = {
7685
7657
  mouseenter: "onMouseEnter",
7686
7658
  mouseleave: "onMouseLeave",
7687
7659
  mousemove: "onMouseMove"
7688
- }, li = ["videoClick", "videoDbClick"], ui = /* @__PURE__ */ function(a) {
7660
+ }, ui = ["videoClick", "videoDbClick"], ci = /* @__PURE__ */ function(a) {
7689
7661
  R(r, a);
7690
7662
  var o = O(r);
7691
7663
  function r() {
@@ -7714,7 +7686,7 @@ var oi = {
7714
7686
  }), _(v(t), "onVideoClick", function(s) {
7715
7687
  var l = v(t), u = l.player, c = l.playerConfig;
7716
7688
  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() {
7717
- t._clickCount && (t._clickCount--, Re(v(t), li[0], function(f, d) {
7689
+ t._clickCount && (t._clickCount--, De(v(t), ui[0], function(f, d) {
7718
7690
  t.switchPlayPause(d.e);
7719
7691
  }, {
7720
7692
  e: s,
@@ -7728,7 +7700,7 @@ var oi = {
7728
7700
  t._clickCount = 0;
7729
7701
  return;
7730
7702
  }
7731
- t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Re(v(t), li[1], function(f, d) {
7703
+ t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), De(v(t), ui[1], function(f, d) {
7732
7704
  t.emitUserAction(d.e, "switch_fullscreen", {
7733
7705
  props: "fullscreen",
7734
7706
  from: u.fullscreen,
@@ -7745,7 +7717,7 @@ var oi = {
7745
7717
  key: "afterCreate",
7746
7718
  value: function() {
7747
7719
  var e = this;
7748
- this._clickCount = 0, li.map(function(n) {
7720
+ this._clickCount = 0, ui.map(function(n) {
7749
7721
  e.__hooks[n] = null;
7750
7722
  });
7751
7723
  var i = this.playerConfig.isMobileSimulateMode;
@@ -7793,7 +7765,7 @@ var oi = {
7793
7765
  return {};
7794
7766
  }
7795
7767
  }]), r;
7796
- }(Ge), je = {
7768
+ }(We), Ve = {
7797
7769
  PRESS: "press",
7798
7770
  PRESS_END: "pressend",
7799
7771
  DOUBlE_CLICK: "doubleclick",
@@ -7832,15 +7804,15 @@ var ho = /* @__PURE__ */ function() {
7832
7804
  };
7833
7805
  P(this, a), _(this, "onTouchStart", function(e) {
7834
7806
  var i = r._pos, n = r.root, s = Tn(e.touches);
7835
- 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(je.TOUCH_START, e);
7807
+ 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(Ve.TOUCH_START, e);
7836
7808
  }), _(this, "onTouchCancel", function(e) {
7837
7809
  r.onTouchEnd(e);
7838
7810
  }), _(this, "onTouchEnd", function(e) {
7839
7811
  var i = r._pos, n = r.root;
7840
- 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(je.PRESS_END, e), r.trigger(je.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
7812
+ 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(Ve.PRESS_END, e), r.trigger(Ve.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
7841
7813
  }), _(this, "onTouchMove", function(e) {
7842
7814
  var i = r._pos, n = r.config, s = Tn(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, f = u - i.y;
7843
- Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(je.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(je.TOUCH_MOVE, e));
7815
+ Math.abs(f) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(Ve.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(Ve.TOUCH_MOVE, e));
7844
7816
  }), this._pos = {
7845
7817
  moving: !1,
7846
7818
  start: !1,
@@ -7860,7 +7832,7 @@ var ho = /* @__PURE__ */ function() {
7860
7832
  value: function(r) {
7861
7833
  var t = this, e = this.config;
7862
7834
  this.pressIntrvalId && this.__clearPress(), this.pressIntrvalId = setTimeout(function() {
7863
- t.trigger(je.PRESS, r), t._pos.press = !0, t.__clearPress();
7835
+ t.trigger(Ve.PRESS, r), t._pos.press = !0, t.__clearPress();
7864
7836
  }, e.pressDelay);
7865
7837
  }
7866
7838
  }, {
@@ -7873,11 +7845,11 @@ var ho = /* @__PURE__ */ function() {
7873
7845
  value: function(r) {
7874
7846
  var t = this, e = this.config;
7875
7847
  if (this.dbIntrvalId) {
7876
- this.__clearDb(), this.trigger(je.DOUBlE_CLICK, r);
7848
+ this.__clearDb(), this.trigger(Ve.DOUBlE_CLICK, r);
7877
7849
  return;
7878
7850
  }
7879
7851
  this.dbIntrvalId = setTimeout(function() {
7880
- t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(je.CLICK, r);
7852
+ t.__clearDb(), !t._pos.start && !t._pos.press && !t._pos.moving && t.trigger(Ve.CLICK, r);
7881
7853
  }, e.dbClickDelay);
7882
7854
  }
7883
7855
  }, {
@@ -7936,12 +7908,12 @@ function go() {
7936
7908
  <path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
7937
7909
  </svg>`, "image/svg+xml").firstChild;
7938
7910
  }
7939
- var nt = {
7911
+ var it = {
7940
7912
  AUTO: "auto",
7941
7913
  SEEKING: "seeking",
7942
7914
  PLAYBACK: "playbackrate",
7943
7915
  LIGHT: ""
7944
- }, ci = ["videoClick", "videoDbClick"], po = /* @__PURE__ */ function(a) {
7916
+ }, fi = ["videoClick", "videoDbClick"], po = /* @__PURE__ */ function(a) {
7945
7917
  R(r, a);
7946
7918
  var o = O(r);
7947
7919
  function r(t) {
@@ -7960,12 +7932,12 @@ var nt = {
7960
7932
  if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
7961
7933
  var f = u.miniMoveStep, d = u.hideControlsActive, g = parseInt(n.pageX - l.left, 10), p = parseInt(n.pageY - l.top, 10), m = c.rotateDeg === 90 ? p : g, y = c.rotateDeg === 90 ? g : p;
7962
7934
  if (Math.abs(m - l.x) > f || Math.abs(y - l.y) > f) {
7963
- var C = m - l.x, E = y - l.y, T = l.scope;
7964
- if (T === -1 && (T = e.checkScope(m, y, C, E, l), T === 0 && (d ? c.blur() : c.focus({
7935
+ var C = m - l.x, S = y - l.y, T = l.scope;
7936
+ if (T === -1 && (T = e.checkScope(m, y, C, S, l), T === 0 && (d ? c.blur() : c.focus({
7965
7937
  autoHide: !1
7966
7938
  }), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = T), T === -1 || T > 0 && !u.gestureY || T === 0 && !u.gestureX)
7967
7939
  return;
7968
- e.executeMove(C, E, T, l.width, l.height), l.x = m, l.y = y;
7940
+ e.executeMove(C, S, T, l.width, l.height), l.x = m, l.y = y;
7969
7941
  }
7970
7942
  }
7971
7943
  }), _(v(e), "onTouchEnd", function(i) {
@@ -7975,7 +7947,7 @@ var nt = {
7975
7947
  }, 10), !!l.isStart) {
7976
7948
  l.scope > -1 && i.cancelable && i.preventDefault();
7977
7949
  var c = e.config, f = c.disableGesture, d = c.gestureX;
7978
- !f && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(nt.AUTO);
7950
+ !f && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), h.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(it.AUTO);
7979
7951
  }
7980
7952
  }), _(v(e), "onRootTouchMove", function(i) {
7981
7953
  e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
@@ -8022,7 +7994,7 @@ var nt = {
8022
7994
  key: "afterCreate",
8023
7995
  value: function() {
8024
7996
  var e = this;
8025
- ci.map(function(d) {
7997
+ fi.map(function(d) {
8026
7998
  e.__hooks[d] = null;
8027
7999
  });
8028
8000
  var i = this.playerConfig, n = this.config, s = this.player;
@@ -8035,10 +8007,10 @@ var nt = {
8035
8007
  d.preventDefault();
8036
8008
  }), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
8037
8009
  var u = this.player.controls;
8038
- 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(He, function() {
8010
+ 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(Be, function() {
8039
8011
  var d = e.player, g = e.config;
8040
8012
  d.duration > 0 && d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
8041
- }), this.on([Fe, Je], function() {
8013
+ }), this.on([Me, Ze], function() {
8042
8014
  var d = e.pos, g = d.time, p = d.isStart;
8043
8015
  !p && g > 0 && (e.pos.time = 0);
8044
8016
  });
@@ -8061,7 +8033,7 @@ var nt = {
8061
8033
  e.activeSeekNote(d.currentTime, d.forward);
8062
8034
  }), ["dragend", "click"].forEach(function(d) {
8063
8035
  f.addCallBack(d, function() {
8064
- e.changeAction(nt.AUTO);
8036
+ e.changeAction(it.AUTO);
8065
8037
  });
8066
8038
  }));
8067
8039
  }
@@ -8167,7 +8139,7 @@ var nt = {
8167
8139
  }, 500);
8168
8140
  break;
8169
8141
  }
8170
- this.changeAction(nt.AUTO);
8142
+ this.changeAction(it.AUTO);
8171
8143
  }
8172
8144
  }, {
8173
8145
  key: "checkIsRootTarget",
@@ -8205,7 +8177,7 @@ var nt = {
8205
8177
  key: "onClick",
8206
8178
  value: function(e) {
8207
8179
  var i = this, n = this.player;
8208
- Re(this, ci[0], function(s, l) {
8180
+ De(this, fi[0], function(s, l) {
8209
8181
  i.clickHandler(l.e);
8210
8182
  }, {
8211
8183
  e,
@@ -8216,7 +8188,7 @@ var nt = {
8216
8188
  key: "onDbClick",
8217
8189
  value: function(e) {
8218
8190
  var i = this, n = this.player;
8219
- Re(this, ci[1], function(s, l) {
8191
+ De(this, fi[1], function(s, l) {
8220
8192
  i.dbClickHandler(l.e);
8221
8193
  }, {
8222
8194
  e,
@@ -8231,7 +8203,7 @@ var nt = {
8231
8203
  prop: "playbackRate",
8232
8204
  from: s.playbackRate,
8233
8205
  to: n.pressRate
8234
- }), s.playbackRate = n.pressRate, this.changeAction(nt.PLAYBACK));
8206
+ }), s.playbackRate = n.pressRate, this.changeAction(it.PLAYBACK));
8235
8207
  }
8236
8208
  }, {
8237
8209
  key: "onPressEnd",
@@ -8241,7 +8213,7 @@ var nt = {
8241
8213
  prop: "playbackRate",
8242
8214
  from: s.playbackRate,
8243
8215
  to: i.rate
8244
- }), s.playbackRate = i.rate, i.rate = 1, this.changeAction(nt.AUTO));
8216
+ }), s.playbackRate = i.rate, i.rate = 1, this.changeAction(it.AUTO));
8245
8217
  }
8246
8218
  }, {
8247
8219
  key: "updateTime",
@@ -8276,7 +8248,7 @@ var nt = {
8276
8248
  value: function(e) {
8277
8249
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = this.player, s = this.config, l = !(this.duration !== 1 / 0 && this.duration > 0);
8278
8250
  if (!(!e || typeof e != "number" || l || s.disableActive)) {
8279
- e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(nt.SEEKING);
8251
+ e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(it.SEEKING);
8280
8252
  var u = n.plugins.start;
8281
8253
  u && u.focusHide(), this.find(".xg-dur").innerHTML = h.format(this.duration), this.find(".xg-cur").innerHTML = h.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? h.removeClass(this.find(".xg-seek-show"), "xg-back") : h.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
8282
8254
  }
@@ -8663,7 +8635,7 @@ var Sn = /* @__PURE__ */ function(a) {
8663
8635
  };
8664
8636
  }
8665
8637
  }]), r;
8666
- }(Ge);
8638
+ }(We);
8667
8639
  function mo() {
8668
8640
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
8669
8641
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
@@ -9084,19 +9056,19 @@ var yo = /* @__PURE__ */ function(a) {
9084
9056
  key: "listenEvents",
9085
9057
  value: function() {
9086
9058
  var e = this;
9087
- this.on(He, function() {
9059
+ this.on(Be, function() {
9088
9060
  e.onMouseLeave();
9089
9061
  }), this.on(Ee, function() {
9090
9062
  e.onTimeupdate();
9091
- }), this.on(Ne, function() {
9063
+ }), this.on(Fe, function() {
9092
9064
  e.onTimeupdate(), e.onCacheUpdate();
9093
9065
  }), this.on(Yn, function() {
9094
9066
  e.onCacheUpdate();
9095
- }), this.on(Je, function() {
9067
+ }), this.on(Ze, function() {
9096
9068
  e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
9097
- }), this.on(Qe, function() {
9069
+ }), this.on(Je, function() {
9098
9070
  e.onReset();
9099
- }), this.on(We, function() {
9071
+ }), this.on(je, function() {
9100
9072
  e.onVideoResize();
9101
9073
  });
9102
9074
  }
@@ -9200,11 +9172,11 @@ var yo = /* @__PURE__ */ function(a) {
9200
9172
  m = m > d ? d : m < 0 ? 0 : m;
9201
9173
  var y = m / d;
9202
9174
  y = y < 0 ? 0 : y > 1 ? 1 : y;
9203
- var C = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3, E = h.getCurrentTimeByOffset(C, n.timeSegments);
9175
+ var C = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3, S = h.getCurrentTimeByOffset(C, n.timeSegments);
9204
9176
  return {
9205
9177
  percent: y,
9206
9178
  currentTime: C,
9207
- seekTime: E,
9179
+ seekTime: S,
9208
9180
  offset: m,
9209
9181
  width: d,
9210
9182
  left: g,
@@ -9336,7 +9308,7 @@ var yo = /* @__PURE__ */ function(a) {
9336
9308
  return An;
9337
9309
  }
9338
9310
  }]), r;
9339
- }(Z), et = /* @__PURE__ */ function(a) {
9311
+ }(Z), Qe = /* @__PURE__ */ function(a) {
9340
9312
  R(r, a);
9341
9313
  var o = O(r);
9342
9314
  function r() {
@@ -9394,7 +9366,7 @@ var yo = /* @__PURE__ */ function(a) {
9394
9366
  key: "listenEvents",
9395
9367
  value: function() {
9396
9368
  var e = this, i = this.player;
9397
- this.on([Se, ft, kt, Qe], function() {
9369
+ this.on([Se, ct, kt, Je], function() {
9398
9370
  e.animate(i.paused);
9399
9371
  });
9400
9372
  }
@@ -9438,7 +9410,7 @@ var yo = /* @__PURE__ */ function(a) {
9438
9410
  return `<xg-icon class="xgplayer-play">
9439
9411
  <div class="xgplayer-icon">
9440
9412
  </div>
9441
- `.concat(Ke(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
9413
+ `.concat($e(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
9442
9414
  </xg-icon>`);
9443
9415
  }
9444
9416
  }], [{
@@ -9456,7 +9428,7 @@ var yo = /* @__PURE__ */ function(a) {
9456
9428
  };
9457
9429
  }
9458
9430
  }]), r;
9459
- }(et);
9431
+ }(Qe);
9460
9432
  function bo() {
9461
9433
  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">
9462
9434
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
@@ -9568,7 +9540,7 @@ var Ao = /* @__PURE__ */ function(a) {
9568
9540
  to: !c
9569
9541
  });
9570
9542
  }
9571
- }), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(Me, function(l) {
9543
+ }), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(Oe, function(l) {
9572
9544
  var u = e.find(".xg-tips");
9573
9545
  u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
9574
9546
  }), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
@@ -9629,7 +9601,7 @@ var Ao = /* @__PURE__ */ function(a) {
9629
9601
  return `<xg-icon class="xgplayer-fullscreen">
9630
9602
  <div class="xgplayer-icon">
9631
9603
  </div>
9632
- `.concat(Ke(this, e, this.playerConfig.isHideTips), `
9604
+ `.concat($e(this, e, this.playerConfig.isHideTips), `
9633
9605
  </xg-icon>`);
9634
9606
  }
9635
9607
  }
@@ -9673,7 +9645,7 @@ var Ao = /* @__PURE__ */ function(a) {
9673
9645
  };
9674
9646
  }
9675
9647
  }]), r;
9676
- }(et), xo = /* @__PURE__ */ function(a) {
9648
+ }(Qe), xo = /* @__PURE__ */ function(a) {
9677
9649
  R(r, a);
9678
9650
  var o = O(r);
9679
9651
  function r(t) {
@@ -9707,11 +9679,11 @@ var Ao = /* @__PURE__ */ function(a) {
9707
9679
  key: "listenEvents",
9708
9680
  value: function() {
9709
9681
  var e = this;
9710
- this.on([He, Ne, Ee], function(i) {
9682
+ this.on([Be, Fe, Ee], function(i) {
9711
9683
  i.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
9712
- }), this.on(Je, function() {
9684
+ }), this.on(Ze, function() {
9713
9685
  e.onTimeUpdate(!0);
9714
- }), this.on(Qe, function() {
9686
+ }), this.on(Je, function() {
9715
9687
  e.onReset();
9716
9688
  });
9717
9689
  }
@@ -9795,7 +9767,7 @@ var Ao = /* @__PURE__ */ function(a) {
9795
9767
  var e = this, i = this.player, n = function() {
9796
9768
  e.isActiving = !1;
9797
9769
  };
9798
- this.off(Ne, n), i.isSeeking && i.media.seeking ? this.once(Ne, n) : this.isActiving = !1;
9770
+ this.off(Fe, n), i.isSeeking && i.media.seeking ? this.once(Fe, n) : this.isActiving = !1;
9799
9771
  }
9800
9772
  }, {
9801
9773
  key: "destroy",
@@ -9885,7 +9857,7 @@ var Ao = /* @__PURE__ */ function(a) {
9885
9857
  return L(r, [{
9886
9858
  key: "afterCreate",
9887
9859
  value: function() {
9888
- this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(He, this._onDurationChange), this.on(Be, this._onLoadedData), this.on(Ee, this._onTimeupdate), this.on(Vt, this._onSeeking), this.on(Se, this._onPlay);
9860
+ this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Be, this._onDurationChange), this.on(Ne, this._onLoadedData), this.on(Ee, this._onTimeupdate), this.on(jt, this._onSeeking), this.on(Se, this._onPlay);
9889
9861
  }
9890
9862
  }, {
9891
9863
  key: "setConfig",
@@ -9966,7 +9938,7 @@ var Ao = /* @__PURE__ */ function(a) {
9966
9938
  };
9967
9939
  }
9968
9940
  }]), r;
9969
- }(Ge);
9941
+ }(We);
9970
9942
  function Po() {
9971
9943
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
9972
9944
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
@@ -10066,7 +10038,7 @@ var Ro = /* @__PURE__ */ function(a) {
10066
10038
  pre: function(u) {
10067
10039
  u.preventDefault(), u.stopPropagation();
10068
10040
  }
10069
- }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), V.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($n, this.onVolumeChange), this.once(Be, this.onVolumeChange), h.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
10041
+ }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), V.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($n, this.onVolumeChange), this.once(Ne, this.onVolumeChange), h.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
10070
10042
  }
10071
10043
  }
10072
10044
  }, {
@@ -10209,7 +10181,7 @@ var Mo = /* @__PURE__ */ function(a) {
10209
10181
  value: function() {
10210
10182
  var e = this;
10211
10183
  if (!this.config.disable) {
10212
- N(F(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(We, function() {
10184
+ N(F(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(je, function() {
10213
10185
  e.rotateDeg && e.config.innerRotate && h.setTimeout(e, function() {
10214
10186
  e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
10215
10187
  }, 100);
@@ -10237,10 +10209,10 @@ var Mo = /* @__PURE__ */ function(a) {
10237
10209
  }
10238
10210
  var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, f = n.media, d = u.offsetWidth, g = c && i ? c.offsetHeight : u.offsetHeight, p = s, m = l, y = 0, C = 0;
10239
10211
  (e === 0.75 || e === 0.25) && (p = "".concat(g, "px"), m = "".concat(d, "px"), y = -(g - d) / 2, C = -(d - g) / 2);
10240
- var E = "translate(".concat(y, "px,").concat(C, "px) rotate(").concat(e, "turn)"), T = {
10212
+ var S = "translate(".concat(y, "px,").concat(C, "px) rotate(").concat(e, "turn)"), T = {
10241
10213
  transformOrigin: "center center",
10242
- transform: E,
10243
- webKitTransform: E,
10214
+ transform: S,
10215
+ webKitTransform: S,
10244
10216
  height: m,
10245
10217
  width: p
10246
10218
  }, W = i ? f : u, U = i ? n.getPlugin("poster") : null;
@@ -10271,7 +10243,7 @@ var Mo = /* @__PURE__ */ function(a) {
10271
10243
  <xg-icon class="xgplayer-rotate">
10272
10244
  <div class="xgplayer-icon">
10273
10245
  </div>
10274
- `.concat(Ke(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
10246
+ `.concat($e(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
10275
10247
  </xg-icon>`);
10276
10248
  }
10277
10249
  }], [{
@@ -10292,7 +10264,7 @@ var Mo = /* @__PURE__ */ function(a) {
10292
10264
  };
10293
10265
  }
10294
10266
  }]), r;
10295
- }(et);
10267
+ }(Qe);
10296
10268
  function Fo() {
10297
10269
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
10298
10270
  <path fill-rule="evenodd" clip-rule="evenodd"
@@ -10310,7 +10282,7 @@ function No() {
10310
10282
  fill="white" />
10311
10283
  </svg>`, "image/svg+xml").firstChild;
10312
10284
  }
10313
- var rt = {
10285
+ var nt = {
10314
10286
  PIP: "picture-in-picture",
10315
10287
  INLINE: "inline",
10316
10288
  FULLSCREEN: "fullscreen"
@@ -10345,7 +10317,7 @@ var rt = {
10345
10317
  key: "afterCreate",
10346
10318
  value: function() {
10347
10319
  var e = this;
10348
- this.isPIPAvailable() && (N(F(r.prototype), "afterCreate", this).call(this), this.pMode = rt.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(jt, function() {
10320
+ this.isPIPAvailable() && (N(F(r.prototype), "afterCreate", this).call(this), this.pMode = nt.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(Wt, function() {
10349
10321
  e.config.showIcon && (h.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
10350
10322
  }));
10351
10323
  }
@@ -10382,15 +10354,15 @@ var rt = {
10382
10354
  i.emit(_i, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
10383
10355
  }, this.onWebkitpresentationmodechanged = function(n) {
10384
10356
  var s = i.media.webkitPresentationMode;
10385
- e.pMode === rt.FULLSCREEN && s !== rt.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === rt.PIP ? e.enterPIPCallback(n) : s === rt.INLINE && e.leavePIPCallback(n);
10357
+ e.pMode === nt.FULLSCREEN && s !== nt.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === nt.PIP ? e.enterPIPCallback(n) : s === nt.INLINE && e.leavePIPCallback(n);
10386
10358
  }, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
10387
10359
  }
10388
10360
  }, {
10389
10361
  key: "copyStyleIntoPiPWindow",
10390
10362
  value: function(e) {
10391
- var i = Ae(document.styleSheets).map(function(s) {
10363
+ var i = xe(document.styleSheets).map(function(s) {
10392
10364
  try {
10393
- return Ae(s.cssRules).map(function(u) {
10365
+ return xe(s.cssRules).map(function(u) {
10394
10366
  return u.cssText;
10395
10367
  }).join("");
10396
10368
  } catch {
@@ -10422,14 +10394,14 @@ var rt = {
10422
10394
  e.enterPIPCallback();
10423
10395
  var p = d || i.root, m = p.parentElement, y = p.previousSibling, C = p.nextSibling;
10424
10396
  e.copyStyleIntoPiPWindow(f);
10425
- var E = document.createElement("style");
10426
- if (E.append("body{padding:0; margin:0;}"), g) {
10397
+ var S = document.createElement("style");
10398
+ if (S.append("body{padding:0; margin:0;}"), g) {
10427
10399
  var T = "";
10428
- typeof g == "string" ? T = g : typeof g == "function" && (T = g.call(s)), T && E.append(T);
10429
- } else p === i.root && E.append(`
10400
+ typeof g == "string" ? T = g : typeof g == "function" && (T = g.call(s)), T && S.append(T);
10401
+ } else p === i.root && S.append(`
10430
10402
  .xgplayer{width: 100%!important; height: 100%!important;}
10431
10403
  `);
10432
- f.document.head.append(E), f.document.body.append(p), f.addEventListener("pagehide", function(W) {
10404
+ f.document.head.append(S), f.document.body.append(p), f.addEventListener("pagehide", function(W) {
10433
10405
  m && (C ? m.insertBefore(p, C) : y ? m.insertBefore(p, y.nextSibling) : m.appendChild(p)), e.leavePIPCallback();
10434
10406
  }, {
10435
10407
  once: !0
@@ -10459,7 +10431,7 @@ var rt = {
10459
10431
  key: "isPip",
10460
10432
  get: function() {
10461
10433
  var e, i = this.player;
10462
- return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === rt.PIP;
10434
+ return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === nt.PIP;
10463
10435
  }
10464
10436
  }, {
10465
10437
  key: "isPIPAvailable",
@@ -10486,7 +10458,7 @@ var rt = {
10486
10458
  return `<xg-icon class="xgplayer-pip">
10487
10459
  <div class="xgplayer-icon xg-icon-disable">
10488
10460
  </div>
10489
- `.concat(Ke(this, "PIP", this.playerConfig.isHideTips), `
10461
+ `.concat($e(this, "PIP", this.playerConfig.isHideTips), `
10490
10462
  </xg-icon>`);
10491
10463
  }
10492
10464
  }], [{
@@ -10514,7 +10486,7 @@ var rt = {
10514
10486
  return typeof e.webkitSetPresentationMode == "function";
10515
10487
  }
10516
10488
  }]), r;
10517
- }(et);
10489
+ }(Qe);
10518
10490
  function Ho() {
10519
10491
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
10520
10492
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
@@ -10528,7 +10500,7 @@ var Uo = /* @__PURE__ */ function(a) {
10528
10500
  var e;
10529
10501
  return P(this, r), e = o.call(this, t), _(v(e), "playNext", function(i) {
10530
10502
  var n = v(e), s = n.player;
10531
- i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(Ot, e.idx + 1)) : (e.nextHandler(), s.emit(Ot));
10503
+ i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(Mt, e.idx + 1)) : (e.nextHandler(), s.emit(Mt));
10532
10504
  }), e.idx = -1, e;
10533
10505
  }
10534
10506
  return L(r, [{
@@ -10569,7 +10541,7 @@ var Uo = /* @__PURE__ */ function(a) {
10569
10541
  <xg-icon class="xgplayer-playnext">
10570
10542
  <div class="xgplayer-icon">
10571
10543
  </div>
10572
- `.concat(Ke(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
10544
+ `.concat($e(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
10573
10545
  </xg-icon>
10574
10546
  `);
10575
10547
  }
@@ -10616,8 +10588,8 @@ function Vo() {
10616
10588
  navigator.msSaveBlob(U(u), p)
10617
10589
  ) : X(u);
10618
10590
  else if (/([\x80-\xff])/.test(u)) {
10619
- var E = 0, T = new Uint8Array(u.length), W = T.length;
10620
- for (E; E < W; ++E) T[E] = u.charCodeAt(E);
10591
+ var S = 0, T = new Uint8Array(u.length), W = T.length;
10592
+ for (S; S < W; ++S) T[S] = u.charCodeAt(S);
10621
10593
  u = new g([T], { type: l });
10622
10594
  }
10623
10595
  m = u instanceof g ? u : new g([u], { type: l });
@@ -10735,7 +10707,7 @@ var $o = /* @__PURE__ */ function(a) {
10735
10707
  return `<xg-icon class="xgplayer-download">
10736
10708
  <div class="xgplayer-icon">
10737
10709
  </div>
10738
- `.concat(Ke(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
10710
+ `.concat($e(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
10739
10711
  </xg-icon>`);
10740
10712
  }
10741
10713
  }], [{
@@ -10753,7 +10725,7 @@ var $o = /* @__PURE__ */ function(a) {
10753
10725
  };
10754
10726
  }
10755
10727
  }]), r;
10756
- }(et), Ko = /* @__PURE__ */ function(a) {
10728
+ }(Qe), Ko = /* @__PURE__ */ function(a) {
10757
10729
  R(r, a);
10758
10730
  var o = O(r);
10759
10731
  function r() {
@@ -10771,7 +10743,7 @@ var $o = /* @__PURE__ */ function(a) {
10771
10743
  var e = this.config;
10772
10744
  this.initSize = function(i) {
10773
10745
  e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
10774
- }, this.once(We, this.initSize);
10746
+ }, this.once(je, this.initSize);
10775
10747
  }
10776
10748
  }, {
10777
10749
  key: "onPluginsReady",
@@ -10824,8 +10796,8 @@ var $o = /* @__PURE__ */ function(a) {
10824
10796
  p = u.media.canvas;
10825
10797
  else {
10826
10798
  n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
10827
- var y = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, E = 0, T = 0, W = u.media.videoWidth, U = u.media.videoHeight, X, M, oe, re;
10828
- y > C ? (oe = p.width, re = p.width / y, X = 0, M = Math.round((p.height - re) / 2)) : y === C ? (oe = p.width, re = p.height, X = 0, M = 0) : y < C && (oe = p.height * y, re = p.height, X = Math.round((p.width - oe) / 2), M = 0), m.drawImage(u.media, E, T, W, U, X, M, oe, re);
10799
+ var y = u.media.videoWidth / u.media.videoHeight, C = p.width / p.height, S = 0, T = 0, W = u.media.videoWidth, U = u.media.videoHeight, X, M, oe, re;
10800
+ y > C ? (oe = p.width, re = p.width / y, X = 0, M = Math.round((p.height - re) / 2)) : y === C ? (oe = p.width, re = p.height, X = 0, M = 0) : y < C && (oe = p.height * y, re = p.height, X = Math.round((p.width - oe) / 2), M = 0), m.drawImage(u.media, S, T, W, U, X, M, oe, re);
10829
10801
  }
10830
10802
  var j = p.toDataURL(f, c).replace(f, "image/octet-stream");
10831
10803
  j = j.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(j);
@@ -10841,7 +10813,7 @@ var $o = /* @__PURE__ */ function(a) {
10841
10813
  }, {
10842
10814
  key: "destroy",
10843
10815
  value: function() {
10844
- N(F(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(We, this.initSize);
10816
+ N(F(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(je, this.initSize);
10845
10817
  }
10846
10818
  }, {
10847
10819
  key: "render",
@@ -10879,7 +10851,7 @@ var $o = /* @__PURE__ */ function(a) {
10879
10851
  };
10880
10852
  }
10881
10853
  }]), r;
10882
- }(et), Yo = /* @__PURE__ */ function() {
10854
+ }(Qe), Yo = /* @__PURE__ */ function() {
10883
10855
  function a(o) {
10884
10856
  P(this, a), this.config = o.config, this.parent = o.root, this.root = h.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
10885
10857
  var r = this.config.maxHeight;
@@ -10951,18 +10923,18 @@ var $o = /* @__PURE__ */ function(a) {
10951
10923
  }), this._delegates = null), this.root.innerHTML = null, this.parent.removeChild(this.root), this.root = null;
10952
10924
  }
10953
10925
  }]), a;
10954
- }(), Ie = {
10926
+ }(), Pe = {
10955
10927
  SIDE: "side",
10956
10928
  MIDDLE: "middle",
10957
10929
  DEFAULT: "default"
10958
- }, st = {
10930
+ }, rt = {
10959
10931
  CLICK: "click",
10960
10932
  HOVER: "hover"
10961
10933
  };
10962
10934
  function Xo(a, o) {
10963
- return a === Ie.SIDE ? o === ee.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10935
+ return a === Pe.SIDE ? o === ee.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
10964
10936
  }
10965
- var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
10937
+ var Ke = V.device === "mobile", Ut = /* @__PURE__ */ function(a) {
10966
10938
  R(r, a);
10967
10939
  var o = O(r);
10968
10940
  function r(t) {
@@ -10974,11 +10946,11 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
10974
10946
  }), _(v(e), "switchActiveState", function(i) {
10975
10947
  i.stopPropagation();
10976
10948
  var n = e.config.toggleMode;
10977
- n === st.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
10949
+ n === rt.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
10978
10950
  }), _(v(e), "onLeave", function(i) {
10979
10951
  i.stopPropagation(), e.emit("icon_mouseleave", {
10980
10952
  pluginName: e.pluginName
10981
- }), e.config.listType !== Ie.SIDE && e.isActive && e.toggle(!1);
10953
+ }), e.config.listType !== Pe.SIDE && e.isActive && e.toggle(!1);
10982
10954
  }), _(v(e), "onListEnter", function(i) {
10983
10955
  e.enterType = 2;
10984
10956
  }), _(v(e), "onListLeave", function(i) {
@@ -10994,13 +10966,13 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
10994
10966
  key: "afterCreate",
10995
10967
  value: function() {
10996
10968
  var e = this, i = this.config;
10997
- this.initIcons(), Ye = Ye || this.domEventType === "touch", Ye && V.device === "mobile" && i.listType === Ie.DEFAULT && (i.listType = Ie.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([We, Me], function() {
10969
+ this.initIcons(), Ke = Ke || this.domEventType === "touch", Ke && V.device === "mobile" && i.listType === Pe.DEFAULT && (i.listType = Pe.SIDE), i.hidePortrait && h.addClass(this.root, "portrait"), this.on([je, Oe], function() {
10998
10970
  e._resizeList();
10999
- }), this.once(Fe, function() {
10971
+ }), this.once(Me, function() {
11000
10972
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
11001
- }), Ye && this.on(Ei, function() {
10973
+ }), Ke && this.on(Ei, function() {
11002
10974
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
11003
- }), Ye ? (i.toggleMode = st.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === st.CLICK ? "click" : "mouseenter", i.toggleMode === st.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);
10975
+ }), Ke ? (i.toggleMode = rt.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === rt.CLICK ? "click" : "mouseenter", i.toggleMode === rt.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);
11004
10976
  }
11005
10977
  }, {
11006
10978
  key: "initIcons",
@@ -11038,7 +11010,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11038
11010
  value: function(e) {
11039
11011
  if (!(e === this.isActive || this.config.disable)) {
11040
11012
  var i = this.player.controls, n = this.config.listType;
11041
- e ? (n === Ie.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === Ie.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
11013
+ e ? (n === Pe.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === Pe.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
11042
11014
  }
11043
11015
  }
11044
11016
  }, {
@@ -11048,7 +11020,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11048
11020
  var n = this.config, s = n.listType, l = n.list;
11049
11021
  this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
11050
11022
  var u = this.config.isItemClickHide;
11051
- (u || Ye || s === Ie.SIDE) && this.toggle(!1);
11023
+ (u || Ke || s === Pe.SIDE) && this.toggle(!1);
11052
11024
  }
11053
11025
  }, {
11054
11026
  key: "onIconClick",
@@ -11077,12 +11049,12 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11077
11049
  onItemClick: function(m, y) {
11078
11050
  n.onItemClick(m, y);
11079
11051
  },
11080
- domEventType: Ye ? "touch" : "mouse"
11052
+ domEventType: Ke ? "touch" : "mouse"
11081
11053
  },
11082
- root: s.listType === Ie.SIDE ? u.innerContainer || u.root : this.root
11054
+ root: s.listType === Pe.SIDE ? u.innerContainer || u.root : this.root
11083
11055
  };
11084
11056
  if (this.config.isShowIcon) {
11085
- var f = this.player.root.getBoundingClientRect(), d = f.height, g = s.listType === Ie.MIDDLE ? d - 50 : d;
11057
+ var f = this.player.root.getBoundingClientRect(), d = f.height, g = s.listType === Pe.MIDDLE ? d - 50 : d;
11086
11058
  g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new Yo(c), this.changeCurrentText(), this.show();
11087
11059
  }
11088
11060
  this._resizeList();
@@ -11091,7 +11063,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11091
11063
  key: "_resizeList",
11092
11064
  value: function() {
11093
11065
  if (this.config.heightLimit) {
11094
- var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === Ie.MIDDLE ? i - 50 : i;
11066
+ var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === Pe.MIDDLE ? i - 50 : i;
11095
11067
  this.optionsList && this.optionsList.setStyle({
11096
11068
  maxHeight: "".concat(n, "px")
11097
11069
  });
@@ -11101,7 +11073,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11101
11073
  key: "destroy",
11102
11074
  value: function() {
11103
11075
  var e = this.config;
11104
- e.toggleMode === st.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
11076
+ e.toggleMode === rt.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
11105
11077
  }
11106
11078
  }, {
11107
11079
  key: "render",
@@ -11129,7 +11101,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11129
11101
  hidePortrait: !0,
11130
11102
  isShowIcon: !1,
11131
11103
  isItemClickHide: !0,
11132
- toggleMode: st.HOVER,
11104
+ toggleMode: rt.HOVER,
11133
11105
  heightLimit: !0
11134
11106
  };
11135
11107
  }
@@ -11223,7 +11195,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11223
11195
  }, {
11224
11196
  key: "defaultConfig",
11225
11197
  get: function() {
11226
- return ae(ae({}, Ht.defaultConfig), {}, {
11198
+ return ae(ae({}, Ut.defaultConfig), {}, {
11227
11199
  position: ee.CONTROLS_RIGHT,
11228
11200
  index: 3,
11229
11201
  list: [],
@@ -11235,7 +11207,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11235
11207
  });
11236
11208
  }
11237
11209
  }]), r;
11238
- }(Ht), Zo = /* @__PURE__ */ function(a) {
11210
+ }(Ut), Zo = /* @__PURE__ */ function(a) {
11239
11211
  R(r, a);
11240
11212
  var o = O(r);
11241
11213
  function r(t) {
@@ -11317,7 +11289,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11317
11289
  }, {
11318
11290
  key: "defaultConfig",
11319
11291
  get: function() {
11320
- return ae(ae({}, Ht.defaultConfig), {}, {
11292
+ return ae(ae({}, Ut.defaultConfig), {}, {
11321
11293
  position: ee.CONTROLS_RIGHT,
11322
11294
  index: 4,
11323
11295
  list: [2, 1.5, 1, 0.75, 0.5],
@@ -11327,7 +11299,7 @@ var Ye = V.device === "mobile", Ht = /* @__PURE__ */ function(a) {
11327
11299
  });
11328
11300
  }
11329
11301
  }]), r;
11330
- }(Ht);
11302
+ }(Ut);
11331
11303
  function Jo() {
11332
11304
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
11333
11305
  <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>
@@ -11355,7 +11327,7 @@ var In = /* @__PURE__ */ function(a) {
11355
11327
  key: "afterCreate",
11356
11328
  value: function() {
11357
11329
  var e = this;
11358
- N(F(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(Dt, function(i) {
11330
+ N(F(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(Rt, function(i) {
11359
11331
  e.animate(i);
11360
11332
  }), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
11361
11333
  pre: function(n) {
@@ -11415,7 +11387,7 @@ var In = /* @__PURE__ */ function(a) {
11415
11387
  return `<xg-icon class='xgplayer-cssfullscreen'>
11416
11388
  <div class="xgplayer-icon">
11417
11389
  </div>
11418
- `.concat(Ke(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
11390
+ `.concat($e(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
11419
11391
  </xg-icon>`);
11420
11392
  }
11421
11393
  }], [{
@@ -11434,7 +11406,7 @@ var In = /* @__PURE__ */ function(a) {
11434
11406
  };
11435
11407
  }
11436
11408
  }]), r;
11437
- }(et), el = /* @__PURE__ */ function(a) {
11409
+ }(Qe), el = /* @__PURE__ */ function(a) {
11438
11410
  R(r, a);
11439
11411
  var o = O(r);
11440
11412
  function r() {
@@ -11736,13 +11708,13 @@ function il(a) {
11736
11708
  }), a.ispotsInit = !1, a.playerSize = {
11737
11709
  left: r.sizeInfo.left,
11738
11710
  width: r.sizeInfo.width
11739
- }, a.on(He, function() {
11711
+ }, a.on(Be, function() {
11740
11712
  a.ispotsInit ? a.updateDuration() : a.initDots();
11741
- }), a.on(We, function() {
11713
+ }), a.on(je, function() {
11742
11714
  a.positionDots();
11743
11715
  });
11744
11716
  }
11745
- var at = {
11717
+ var st = {
11746
11718
  dragmove: "onProgressMove",
11747
11719
  dragstart: "onProgressDragStart",
11748
11720
  dragend: "onProgressDragEnd",
@@ -11800,7 +11772,7 @@ var at = {
11800
11772
  n.seekTime && e.player.seek(n.seekTime);
11801
11773
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
11802
11774
  e.setTimeContent(h.format(i));
11803
- }), il(this), this.on(He, function() {
11775
+ }), il(this), this.on(Be, function() {
11804
11776
  e.show();
11805
11777
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
11806
11778
  }
@@ -11822,8 +11794,8 @@ var at = {
11822
11794
  key: "bindEvents",
11823
11795
  value: function() {
11824
11796
  var e = this, i = this.player.plugins.progress;
11825
- if (i && (Object.keys(at).map(function(s) {
11826
- e[at[s]] = e[at[s]].bind(e), i.addCallBack(s, e[at[s]]);
11797
+ if (i && (Object.keys(st).map(function(s) {
11798
+ e[st[s]] = e[st[s]].bind(e), i.addCallBack(s, e[st[s]]);
11827
11799
  }), V.device !== "mobile")) {
11828
11800
  this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
11829
11801
  var n = this.hook("previewClick", function() {
@@ -11981,8 +11953,8 @@ var at = {
11981
11953
  key: "destroy",
11982
11954
  value: function() {
11983
11955
  var e = this, i = this.player.plugins.progress;
11984
- i && Object.keys(at).map(function(n) {
11985
- i.removeCallBack(n, e[at[n]]);
11956
+ i && Object.keys(st).map(function(n) {
11957
+ i.removeCallBack(n, e[st[n]]);
11986
11958
  }), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
11987
11959
  }
11988
11960
  }, {
@@ -12035,7 +12007,7 @@ var at = {
12035
12007
  key: "afterCreate",
12036
12008
  value: function() {
12037
12009
  var e = this;
12038
- this.usable && this.initThumbnail(), this.on([He], function() {
12010
+ this.usable && this.initThumbnail(), this.on([Be], function() {
12039
12011
  var i = e.config, n = i.pic_num, s = i.interval;
12040
12012
  e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
12041
12013
  });
@@ -12088,11 +12060,11 @@ var at = {
12088
12060
  this.interval = Math.round(this.player.duration / l);
12089
12061
  var g = Math.ceil(e / this.interval);
12090
12062
  g = g > l ? l : g;
12091
- var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), y = m > 0 ? Math.ceil(m / c) - 1 : 0, C = m > 0 ? m - y * c - 1 : 0, E = 0, T = 0;
12063
+ var p = g < u * c ? 0 : Math.ceil(g / (u * c)) - 1, m = g - p * (c * u), y = m > 0 ? Math.ceil(m / c) - 1 : 0, C = m > 0 ? m - y * c - 1 : 0, S = 0, T = 0;
12092
12064
  if (i && n) {
12093
12065
  var W = i / n;
12094
- W < f / d ? (T = n, E = T * (f / d)) : (E = i, T = E / (f / d));
12095
- } else n ? i || (T = n || d, E = T * (f / d)) : (E = i || f, T = E / (f / d));
12066
+ W < f / d ? (T = n, S = T * (f / d)) : (S = i, T = S / (f / d));
12067
+ } else n ? i || (T = n || d, S = T * (f / d)) : (S = i || f, T = S / (f / d));
12096
12068
  var U = this.getUrlByIndex(p);
12097
12069
  return {
12098
12070
  urlIndex: p,
@@ -12100,12 +12072,12 @@ var at = {
12100
12072
  colIndex: C,
12101
12073
  url: U,
12102
12074
  height: T,
12103
- width: E,
12075
+ width: S,
12104
12076
  style: {
12105
12077
  backgroundImage: "url(".concat(U, ")"),
12106
- backgroundSize: "".concat(E * c, "px auto"),
12107
- backgroundPosition: "-".concat(C * E, "px -").concat(y * T, "px"),
12108
- width: "".concat(E, "px"),
12078
+ backgroundSize: "".concat(S * c, "px auto"),
12079
+ backgroundPosition: "-".concat(C * S, "px -").concat(y * T, "px"),
12080
+ width: "".concat(S, "px"),
12109
12081
  height: "".concat(T, "px")
12110
12082
  }
12111
12083
  };
@@ -12158,7 +12130,7 @@ var at = {
12158
12130
  }
12159
12131
  }]), r;
12160
12132
  }(Z);
12161
- function fi(a) {
12133
+ function hi(a) {
12162
12134
  return a ? "background:".concat(a, ";") : "";
12163
12135
  }
12164
12136
  var sl = /* @__PURE__ */ function(a) {
@@ -12191,7 +12163,7 @@ var sl = /* @__PURE__ */ function(a) {
12191
12163
  key: "afterCreate",
12192
12164
  value: function() {
12193
12165
  var e = this;
12194
- this.root && (this.on(Ee, this.onTimeupdate), this.on(Qe, function() {
12166
+ this.root && (this.on(Ee, this.onTimeupdate), this.on(Je, function() {
12195
12167
  e.reset();
12196
12168
  }));
12197
12169
  }
@@ -12218,9 +12190,9 @@ var sl = /* @__PURE__ */ function(a) {
12218
12190
  var e = this.playerConfig, i = e.commonStyle, n = e.miniprogress;
12219
12191
  if (n) {
12220
12192
  var s = this.config, l = s.mode, u = s.height, c = {
12221
- cached: fi(i.cachedColor),
12222
- played: fi(i.playedColor),
12223
- progress: fi(i.progressColor),
12193
+ cached: hi(i.cachedColor),
12194
+ played: hi(i.playedColor),
12195
+ progress: hi(i.progressColor),
12224
12196
  height: u > 0 && u !== 2 ? "height: ".concat(u, "px;") : ""
12225
12197
  }, f = l === "show" ? "xg-mini-progress-show" : "";
12226
12198
  return '<xg-mini-progress class="xg-mini-progress '.concat(f, '" style="').concat(c.progress, " ").concat(c.height, `">
@@ -12243,7 +12215,7 @@ var sl = /* @__PURE__ */ function(a) {
12243
12215
  };
12244
12216
  }
12245
12217
  }]), r;
12246
- }(Z), ot = {
12218
+ }(Z), at = {
12247
12219
  REAL_TIME: "realtime",
12248
12220
  FIRST_FRAME: "firstframe",
12249
12221
  FRAME_RATE: "framerate",
@@ -12286,7 +12258,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12286
12258
  }
12287
12259
  }), _(v(t), "start", function(s, l) {
12288
12260
  var u = t.player.video, c = al(), f = t.checkVideoIsSupport(u);
12289
- !f || !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 === ot.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(v(t), t.start, l) : h.requestAnimationFrame(t.start));
12261
+ !f || !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 === at.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(f, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? h.setTimeout(v(t), t.start, l) : h.requestAnimationFrame(t.start));
12290
12262
  }), _(v(t), "stop", function() {
12291
12263
  t.frameId && (t._loopType === "timer" ? h.clearTimeout(v(t), t.frameId) : h.cancelAnimationFrame(t.frameId), t.frameId = null);
12292
12264
  }), t;
@@ -12305,16 +12277,16 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12305
12277
  x: 0,
12306
12278
  y: 0,
12307
12279
  pi: 0
12308
- }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== ot.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(jt, function() {
12280
+ }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== at.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(Wt, function() {
12309
12281
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
12310
- }), s !== ot.POSTER && (s !== ot.FIRST_FRAME && (this.on(Qe, function() {
12282
+ }), s !== at.POSTER && (s !== at.FIRST_FRAME && (this.on(Je, function() {
12311
12283
  e.stop();
12312
12284
  }), this.on(Se, function() {
12313
12285
  var u = e.config.startInterval;
12314
12286
  e._checkIfCanStart() && e.start(0, u);
12315
- }), this.on(ft, function() {
12287
+ }), this.on(ct, function() {
12316
12288
  e.stop();
12317
- })), this.on(Be, this.onLoadedData), this.on(Ti, function() {
12289
+ })), this.on(Ne, this.onLoadedData), this.on(Ti, function() {
12318
12290
  e._isLoaded = !1, e.stop();
12319
12291
  }), document.addEventListener("visibilitychange", this.onVisibilitychange)));
12320
12292
  }
@@ -12379,7 +12351,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12379
12351
  key: "_checkIfCanStart",
12380
12352
  value: function() {
12381
12353
  var e = this.config.mode;
12382
- return this._isLoaded && !this.player.paused && e !== ot.FIRST_FRAME && e !== ot.POSTER;
12354
+ return this._isLoaded && !this.player.paused && e !== at.FIRST_FRAME && e !== at.POSTER;
12383
12355
  }
12384
12356
  }, {
12385
12357
  key: "renderOnce",
@@ -12541,7 +12513,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12541
12513
  FORWARD: "快进中",
12542
12514
  LIVE_TIP: "直播"
12543
12515
  }
12544
- }, gt = "info", hi = or, cl = /* @__PURE__ */ function(a) {
12516
+ }, dt = "info", di = or, cl = /* @__PURE__ */ function(a) {
12545
12517
  R(r, a);
12546
12518
  var o = O(r);
12547
12519
  function r() {
@@ -12553,7 +12525,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12553
12525
  var l = t._getTime(), u = Object.assign({}, s, {
12554
12526
  msg: s.msg || s.action
12555
12527
  });
12556
- t._stats[gt].push(ae(ae({
12528
+ t._stats[dt].push(ae(ae({
12557
12529
  type: "userAction"
12558
12530
  }, l), {}, {
12559
12531
  payload: u
@@ -12580,7 +12552,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12580
12552
  }, {
12581
12553
  key: "afterCreate",
12582
12554
  value: function() {
12583
- this.reset(), this.on(Mt, this._recordUserActions), this.on(hi.STATS_INFO, this._recordInfo), this.on(hi.STATS_DOWNLOAD, this._downloadStats), this.on(hi.STATS_RESET, this._onReset);
12555
+ this.reset(), this.on(Ft, this._recordUserActions), this.on(di.STATS_INFO, this._recordInfo), this.on(di.STATS_DOWNLOAD, this._downloadStats), this.on(di.STATS_RESET, this._onReset);
12584
12556
  }
12585
12557
  }, {
12586
12558
  key: "destroy",
@@ -12601,7 +12573,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12601
12573
  key: "_info",
12602
12574
  value: function(e) {
12603
12575
  var i = this._getTime();
12604
- this._stats[gt].push(ae(ae({}, i), {}, {
12576
+ this._stats[dt].push(ae(ae({}, i), {}, {
12605
12577
  payload: e
12606
12578
  }));
12607
12579
  }
@@ -12627,7 +12599,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12627
12599
  key: "reset",
12628
12600
  value: function() {
12629
12601
  var e;
12630
- this._stats = (e = {}, _(e, gt, []), _(e, "media", {}), e);
12602
+ this._stats = (e = {}, _(e, dt, []), _(e, "media", {}), e);
12631
12603
  }
12632
12604
  }, {
12633
12605
  key: "getStats",
@@ -12653,7 +12625,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12653
12625
  }, {
12654
12626
  key: "_getTimeStats",
12655
12627
  value: function() {
12656
- var e = this._stats[gt], i = e.map(function(n) {
12628
+ var e = this._stats[dt], i = e.map(function(n) {
12657
12629
  var s = n.payload.data, l = "";
12658
12630
  try {
12659
12631
  s instanceof Error ? l = s.msg : s !== void 0 && (l = JSON.stringify(s));
@@ -12669,7 +12641,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12669
12641
  value: function() {
12670
12642
  var e = {
12671
12643
  traceEvents: []
12672
- }, i = this._stats[gt];
12644
+ }, i = this._stats[dt];
12673
12645
  return i.forEach(function(n) {
12674
12646
  n.payload.profile && e.traceEvents.push(n.payload);
12675
12647
  }), e;
@@ -12685,7 +12657,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12685
12657
  return {};
12686
12658
  }
12687
12659
  }]), r;
12688
- }(Ge), vr = /* @__PURE__ */ function(a) {
12660
+ }(We), vr = /* @__PURE__ */ function(a) {
12689
12661
  R(r, a);
12690
12662
  var o = O(r);
12691
12663
  function r() {
@@ -12707,8 +12679,8 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12707
12679
  console.log("GapJump bufferRange ", c.start(p), c.end(p));
12708
12680
  var m = c.start(p) + 0.1, y = l.media.duration;
12709
12681
  if (!(m > y)) {
12710
- var C = m - g, E = C <= f;
12711
- C < r.BROWSER_GAP_TOLERANCE || E && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", E, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
12682
+ var C = m - g, S = C <= f;
12683
+ C < r.BROWSER_GAP_TOLERANCE || S && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", p, " isGapSamll:", S, " currentTime:", l.media.currentTime, " jumpSize:", g - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
12712
12684
  type: "oneevent",
12713
12685
  end_type: "gap",
12714
12686
  vid: l.config.vid,
@@ -12728,7 +12700,7 @@ var Et = null, ll = /* @__PURE__ */ function(a) {
12728
12700
  var e = this, i = this.config.useGapJump;
12729
12701
  i !== !1 && (this.hasPlayed = !1, this.seekingEventReceived = !1, this.isSafari = /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform), this.on(Ct, this.onGapJump), this.on(Se, function() {
12730
12702
  e.hasPlayed = !0;
12731
- }), this.on(Vt, function() {
12703
+ }), this.on(jt, function() {
12732
12704
  e.seekingEventReceived = !0;
12733
12705
  }));
12734
12706
  }
@@ -12799,7 +12771,7 @@ var fl = /* @__PURE__ */ function(a) {
12799
12771
  key: "afterCreate",
12800
12772
  value: function() {
12801
12773
  var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
12802
- n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(Ct, this.onWaiting), this.on([bi, Fe], function() {
12774
+ n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(Ct, this.onWaiting), this.on([bi, Me], function() {
12803
12775
  clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
12804
12776
  }), this.on(Se, function() {
12805
12777
  e.hasPlayed = !0;
@@ -12821,7 +12793,7 @@ var fl = /* @__PURE__ */ function(a) {
12821
12793
  };
12822
12794
  }
12823
12795
  }]), r;
12824
- }(Z), lt = "cdn", St = ["cdn"], hl = /* @__PURE__ */ function(a) {
12796
+ }(Z), ot = "cdn", St = ["cdn"], hl = /* @__PURE__ */ function(a) {
12825
12797
  R(r, a);
12826
12798
  var o = O(r);
12827
12799
  function r() {
@@ -12830,7 +12802,7 @@ var fl = /* @__PURE__ */ function(a) {
12830
12802
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
12831
12803
  i[n] = arguments[n];
12832
12804
  return t = o.call.apply(o, [this].concat(i)), _(v(t), "getSpeed", function() {
12833
- var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lt;
12805
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ot;
12834
12806
  if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
12835
12807
  return 0;
12836
12808
  var l = 0;
@@ -12844,7 +12816,7 @@ var fl = /* @__PURE__ */ function(a) {
12844
12816
  t.speedListCache[s] = [];
12845
12817
  });
12846
12818
  }), _(v(t), "_onRealSpeedChange", function(s) {
12847
- s.speed && t.appendList(s.speed, s.type || lt);
12819
+ s.speed && t.appendList(s.speed, s.type || ot);
12848
12820
  }), _(v(t), "testSpeed", function() {
12849
12821
  if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
12850
12822
  var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, f = s.testTimeStep, d = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
@@ -12854,32 +12826,32 @@ var fl = /* @__PURE__ */ function(a) {
12854
12826
  var g = (/* @__PURE__ */ new Date()).getTime(), p = null, m = new XMLHttpRequest();
12855
12827
  t.xhr = m, m.open("GET", d);
12856
12828
  var y = {}, C = Math.floor(Math.random() * 10);
12857
- y.Range = "bytes=" + C + "-" + (u + C), y && Object.keys(y).forEach(function(E) {
12858
- m.setRequestHeader(E, y[E]);
12829
+ y.Range = "bytes=" + C + "-" + (u + C), y && Object.keys(y).forEach(function(S) {
12830
+ m.setRequestHeader(S, y[S]);
12859
12831
  }), m.onreadystatechange = function() {
12860
12832
  if (m.readyState === 4) {
12861
12833
  t.xhr = null, p = (/* @__PURE__ */ new Date()).getTime();
12862
- var E = m.getResponseHeader("Content-Length") / 1024 * 8, T = Math.round(E * 1e3 / (p - g));
12834
+ var S = m.getResponseHeader("Content-Length") / 1024 * 8, T = Math.round(S * 1e3 / (p - g));
12863
12835
  t.appendList(T), t.timer = setTimeout(t.testSpeed, f);
12864
12836
  }
12865
12837
  }, m.send();
12866
- } catch (E) {
12867
- console.error(E);
12838
+ } catch (S) {
12839
+ console.error(S);
12868
12840
  }
12869
12841
  }
12870
12842
  }
12871
12843
  }), _(v(t), "appendList", function(s) {
12872
- var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : lt;
12844
+ var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ot;
12873
12845
  if (!(!t.speedListCache || !t.speedListCache[l])) {
12874
12846
  var u = t.config.saveSpeedMax;
12875
12847
  t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
12876
12848
  var c = v(t), f = c.player;
12877
- f && (l === lt ? f.realTimeSpeed = s : f[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
12849
+ f && (l === ot ? f.realTimeSpeed = s : f[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
12878
12850
  }
12879
12851
  }), _(v(t), "updateSpeed", function() {
12880
- var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : lt, l = t.getSpeed(s), u = v(t), c = u.player;
12852
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ot, l = t.getSpeed(s), u = v(t), c = u.player;
12881
12853
  if (c)
12882
- if (s === lt)
12854
+ if (s === ot)
12883
12855
  (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(mi, {
12884
12856
  speed: l,
12885
12857
  realTimeSpeed: c.realTimeSpeed
@@ -12897,7 +12869,7 @@ var fl = /* @__PURE__ */ function(a) {
12897
12869
  key: "afterCreate",
12898
12870
  value: function() {
12899
12871
  var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
12900
- (n == null ? void 0 : n.length) > 0 && St.push.apply(St, Ae(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Be, Lt], this.startTimer);
12872
+ (n == null ? void 0 : n.length) > 0 && St.push.apply(St, xe(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ne, Dt], this.startTimer);
12901
12873
  }
12902
12874
  }, {
12903
12875
  key: "getSpeedName",
@@ -12924,7 +12896,7 @@ var fl = /* @__PURE__ */ function(a) {
12924
12896
  key: "destroy",
12925
12897
  value: function() {
12926
12898
  var e = this;
12927
- this.off("real_time_speed", this._onRealSpeedChange), this.off([Be, Lt], this.startTimer), St.forEach(function(i) {
12899
+ this.off("real_time_speed", this._onRealSpeedChange), this.off([Ne, Dt], this.startTimer), St.forEach(function(i) {
12928
12900
  e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
12929
12901
  }), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
12930
12902
  }
@@ -12961,11 +12933,11 @@ var fl = /* @__PURE__ */ function(a) {
12961
12933
  var l = s.getVideoPlaybackQuality;
12962
12934
  l && (this.on(Se, function() {
12963
12935
  e._startTick();
12964
- }), this.on(ft, function() {
12936
+ }), this.on(ct, function() {
12965
12937
  e._stopTick();
12966
- }), this.on(Je, function() {
12938
+ }), this.on(Ze, function() {
12967
12939
  e._stopTick();
12968
- }), this.on(Qe, function() {
12940
+ }), this.on(Je, function() {
12969
12941
  e._stopTick();
12970
12942
  }));
12971
12943
  }
@@ -13057,46 +13029,46 @@ var fl = /* @__PURE__ */ function(a) {
13057
13029
  }
13058
13030
  }]), r;
13059
13031
  }(Z);
13060
- ut.use(ul);
13032
+ lt.use(ul);
13061
13033
  var gl = /* @__PURE__ */ L(function a(o, r) {
13062
13034
  var t, e, i;
13063
13035
  P(this, a);
13064
13036
  var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Io, Co, sl, nl, xo], u = [].concat(l, [wo, Ao, Mo, Uo, qo, Zo, $o, Ko, Ro, Bo]), c = [eo, to, no, yo, ro, el, tl, rl, lo];
13065
- this.plugins = [cl, Ja].concat(Ae(u), c, [vr, fl]);
13037
+ this.plugins = [cl, Ja].concat(xe(u), c, [vr, fl]);
13066
13038
  var f = n ? "mobile" : V.device;
13067
13039
  switch (f) {
13068
13040
  case "pc":
13069
- (t = this.plugins).push.apply(t, [Sn, ui, In, hl, dl]);
13041
+ (t = this.plugins).push.apply(t, [Sn, ci, In, hl, dl]);
13070
13042
  break;
13071
13043
  case "mobile":
13072
13044
  (e = this.plugins).push.apply(e, [po]);
13073
13045
  break;
13074
13046
  default:
13075
- (i = this.plugins).push.apply(i, [Sn, ui, In]);
13047
+ (i = this.plugins).push.apply(i, [Sn, ci, In]);
13076
13048
  }
13077
- (V.os.isIpad || f === "pc") && this.plugins.push(ll), V.os.isIpad && this.plugins.push(ui), this.ignores = [], this.i18n = [];
13078
- }), xe = /* @__PURE__ */ function(a) {
13049
+ (V.os.isIpad || f === "pc") && this.plugins.push(ll), V.os.isIpad && this.plugins.push(ci), this.ignores = [], this.i18n = [];
13050
+ }), Ie = /* @__PURE__ */ function(a) {
13079
13051
  R(r, a);
13080
13052
  var o = O(r);
13081
13053
  function r() {
13082
13054
  return P(this, r), o.apply(this, arguments);
13083
13055
  }
13084
13056
  return L(r);
13085
- }($t);
13086
- _(xe, "defaultPreset", gl);
13087
- _(xe, "Util", h);
13088
- _(xe, "Sniffer", V);
13089
- _(xe, "Errors", Pt);
13090
- _(xe, "Events", Pa);
13091
- _(xe, "Plugin", Z);
13092
- _(xe, "BasePlugin", Ge);
13093
- _(xe, "I18N", ut);
13094
- _(xe, "STATE_CLASS", w);
13095
- _(xe, "InstManager", dr);
13096
- const pl = ["id"], vl = /* @__PURE__ */ ie({
13057
+ }(Kt);
13058
+ _(Ie, "defaultPreset", gl);
13059
+ _(Ie, "Util", h);
13060
+ _(Ie, "Sniffer", V);
13061
+ _(Ie, "Errors", Lt);
13062
+ _(Ie, "Events", Pa);
13063
+ _(Ie, "Plugin", Z);
13064
+ _(Ie, "BasePlugin", We);
13065
+ _(Ie, "I18N", lt);
13066
+ _(Ie, "STATE_CLASS", w);
13067
+ _(Ie, "InstManager", dr);
13068
+ const pl = ["id"], vl = /* @__PURE__ */ te({
13097
13069
  name: "ElImageViewer",
13098
13070
  __name: "Player",
13099
- props: /* @__PURE__ */ ct({
13071
+ props: /* @__PURE__ */ ut({
13100
13072
  url: {
13101
13073
  type: String,
13102
13074
  default: ""
@@ -13117,12 +13089,12 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13117
13089
  },
13118
13090
  modelModifiers: {}
13119
13091
  }),
13120
- emits: /* @__PURE__ */ ct({
13092
+ emits: /* @__PURE__ */ ut({
13121
13093
  close: () => !0
13122
13094
  }, ["update:modelValue"]),
13123
13095
  setup(a, { emit: o }) {
13124
13096
  let r = null;
13125
- const t = a, { cLoadUrl: e } = Hn(t), i = se(() => It(e.value, t.url)), n = {
13097
+ const t = a, { cLoadUrl: e } = Hn(t), i = se(() => Pt(e.value, t.url)), n = {
13126
13098
  width: "100%",
13127
13099
  height: "100%",
13128
13100
  // 是否自动播放
@@ -13143,13 +13115,13 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13143
13115
  }, s = se(() => ({
13144
13116
  ...n,
13145
13117
  ...t.config
13146
- })), l = o, u = Ut(a, "modelValue"), c = Nn(), f = Fn("image-viewer");
13118
+ })), l = o, u = zt(a, "modelValue"), c = Nn(), f = Fn("image-viewer");
13147
13119
  function d() {
13148
13120
  l("close"), u.value = !1, r.destroy();
13149
13121
  }
13150
- return mt(() => u.value, (g) => {
13151
- g && yt(() => {
13152
- r = new xe({
13122
+ return vt(() => u.value, (g) => {
13123
+ g && mt(() => {
13124
+ r = new Ie({
13153
13125
  id: c,
13154
13126
  url: i.value,
13155
13127
  ...s.value
@@ -13157,7 +13129,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13157
13129
  });
13158
13130
  }), (g, p) => {
13159
13131
  const m = xt("el-icon");
13160
- return u.value ? (S(), ne(Rn, {
13132
+ return u.value ? (E(), ie(Rn, {
13161
13133
  key: 0,
13162
13134
  to: "body"
13163
13135
  }, [
@@ -13171,14 +13143,14 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13171
13143
  {
13172
13144
  ref: "wrapper",
13173
13145
  tabindex: -1,
13174
- class: te(k(f).e("wrapper")),
13175
- style: De({ zIndex: a.zIndex })
13146
+ class: ne(k(f).e("wrapper")),
13147
+ style: yt({ zIndex: a.zIndex })
13176
13148
  },
13177
13149
  [
13178
13150
  A(
13179
13151
  "div",
13180
13152
  {
13181
- class: te(k(f).e("mask"))
13153
+ class: ne(k(f).e("mask"))
13182
13154
  },
13183
13155
  null,
13184
13156
  2
@@ -13188,7 +13160,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13188
13160
  A(
13189
13161
  "div",
13190
13162
  {
13191
- class: te(k(f).e("canvas"))
13163
+ class: ne(k(f).e("canvas"))
13192
13164
  },
13193
13165
  [
13194
13166
  A("div", { id: k(c) }, null, 8, pl),
@@ -13196,7 +13168,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13196
13168
  A(
13197
13169
  "span",
13198
13170
  {
13199
- class: te([k(f).e("btn"), k(f).e("close")]),
13171
+ class: ne([k(f).e("btn"), k(f).e("close")]),
13200
13172
  onClick: d
13201
13173
  },
13202
13174
  [
@@ -13215,7 +13187,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13215
13187
  2
13216
13188
  /* CLASS */
13217
13189
  ),
13218
- Oe(g.$slots, "default", {}, void 0, !0)
13190
+ Re(g.$slots, "default", {}, void 0, !0)
13219
13191
  ],
13220
13192
  6
13221
13193
  /* CLASS, STYLE */
@@ -13227,15 +13199,15 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13227
13199
  ])) : J("v-if", !0);
13228
13200
  };
13229
13201
  }
13230
- }), ml = /* @__PURE__ */ zt(vl, [["__scopeId", "data-v-b301aa7d"]]), yl = $e(ml), _l = { class: "ik-flie-list" }, kl = { class: "name" }, Cl = { key: 1 }, wl = ["src"], bl = { class: "file-icon" }, Tl = { class: "file-name-loading" }, El = { class: "file-name" }, Sl = { key: 0 }, Al = {
13202
+ }), ml = /* @__PURE__ */ Vt(vl, [["__scopeId", "data-v-b301aa7d"]]), yl = Ge(ml), _l = { class: "ik-flie-list" }, kl = { class: "name" }, Cl = { key: 1 }, wl = ["src"], bl = { class: "file-icon" }, Tl = { class: "file-name-loading" }, El = { class: "file-name" }, Sl = { key: 0 }, Al = {
13231
13203
  key: 0,
13232
13204
  class: "file-size"
13233
13205
  }, xl = { class: "name" }, Il = { class: "file-name-loading" }, Pl = { class: "file-name" }, Ll = { class: "file-size" }, Dl = { class: "operate-btn" }, Rl = { class: "card" }, Ol = { class: "title" }, Ml = { class: "ik-flie-list" }, Fl = { class: "name" }, Nl = { key: 1 }, Bl = ["src"], Hl = { class: "file-icon" }, Ul = { class: "file-name-loading" }, zl = { class: "file-name" }, Vl = { key: 0 }, jl = {
13234
13206
  key: 0,
13235
13207
  class: "file-size"
13236
- }, Wl = { key: 0 }, Gl = /* @__PURE__ */ ie({
13208
+ }, Wl = { key: 0 }, Gl = /* @__PURE__ */ te({
13237
13209
  __name: "index",
13238
- props: /* @__PURE__ */ ct({
13210
+ props: /* @__PURE__ */ ut({
13239
13211
  // 显示图标
13240
13212
  showIcon: {
13241
13213
  type: Boolean,
@@ -13380,9 +13352,9 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13380
13352
  },
13381
13353
  modelModifiers: {}
13382
13354
  }),
13383
- emits: /* @__PURE__ */ ct(["delete", "exceed", "handPreview", "success", "error", "outSize"], ["update:modelValue"]),
13355
+ emits: /* @__PURE__ */ ut(["delete", "exceed", "handPreview", "success", "error", "outSize"], ["update:modelValue"]),
13384
13356
  setup(a, { emit: o }) {
13385
- const r = a, t = o, e = Ut(a, "modelValue"), n = {
13357
+ const r = a, t = o, e = zt(a, "modelValue"), n = {
13386
13358
  ...{
13387
13359
  name: "name",
13388
13360
  url: "url",
@@ -13392,7 +13364,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13392
13364
  ...r.defaultFileds
13393
13365
  }, { cLoadUrl: s, cUploadUrl: l, cOnlyofficeConfig: u, cOnlyofficePreviewType: c } = Hn(r), f = se(() => r.size), d = me(null), g = me([]), p = me({}), m = me(!1), y = (b) => {
13394
13366
  const H = b.size / 1024 / 1024;
13395
- return H < f.value ? !0 : (t("outSize"), Yt({
13367
+ return H < f.value ? !0 : (t("outSize"), Xt({
13396
13368
  message: `上传文件大小(${H.toFixed(4)}MB)超出允许最大值(${r.size}MB),请重新选择`,
13397
13369
  type: "warning",
13398
13370
  showClose: !0,
@@ -13401,20 +13373,20 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13401
13373
  }, C = se(() => {
13402
13374
  const { accept: b } = r;
13403
13375
  return b === "*" ? "*" : `${b.toLowerCase()},${b.toUpperCase()}`;
13404
- }), E = (b, H) => {
13376
+ }), S = (b, H) => {
13405
13377
  var G, D, z, Q, pe;
13406
- if (b.size / 1024 / 1024 < f.value || yt(() => {
13378
+ if (b.size / 1024 / 1024 < f.value || mt(() => {
13407
13379
  e.value.pop();
13408
13380
  }), r.accept !== "*") {
13409
13381
  let _e = !1;
13410
13382
  C.value.includes("/") && (_e = ((D = (G = b == null ? void 0 : b.raw) == null ? void 0 : G.type) == null ? void 0 : D.split("/").shift()) === ((z = C.value) == null ? void 0 : z.split("/").shift()));
13411
13383
  const ke = (Q = C.value) == null ? void 0 : Q.split(",");
13412
- !ke.includes((pe = b == null ? void 0 : b.raw) == null ? void 0 : pe.type) && !ke.includes(`.${b.name.split(".").pop()}`) && !_e && (Yt({
13384
+ !ke.includes((pe = b == null ? void 0 : b.raw) == null ? void 0 : pe.type) && !ke.includes(`.${b.name.split(".").pop()}`) && !_e && (Xt({
13413
13385
  message: `不允许的文件格式(${b.name}),请重新选择`,
13414
13386
  type: "warning",
13415
13387
  showClose: !0,
13416
13388
  duration: 5e3
13417
- }), yt(() => {
13389
+ }), mt(() => {
13418
13390
  e.value.pop();
13419
13391
  }));
13420
13392
  }
@@ -13426,7 +13398,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13426
13398
  b.splice(r.limit === 1 ? 1 : r.limit), b.forEach((x) => {
13427
13399
  var G;
13428
13400
  (G = d.value) == null || G.handleStart(x);
13429
- }), (q = d.value) == null || q.submit(), Yt({
13401
+ }), (q = d.value) == null || q.submit(), Xt({
13430
13402
  message: (r == null ? void 0 : r.limitText) || `最大可上传${r.limit}个文件,已忽略超出文件`,
13431
13403
  type: "warning",
13432
13404
  showClose: !0,
@@ -13441,7 +13413,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13441
13413
  p.value = {
13442
13414
  ...b,
13443
13415
  name: b[n.name],
13444
- url: It(
13416
+ url: Pt(
13445
13417
  s.value,
13446
13418
  b[n.url] || ((q = (H = b == null ? void 0 : b.response) == null ? void 0 : H.data) == null ? void 0 : q.id)
13447
13419
  )
@@ -13473,22 +13445,22 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13473
13445
  g.value.splice(H, 1);
13474
13446
  }, ye = se(
13475
13447
  () => e.value.length >= r.limit || r.disabled
13476
- ), tt = (b) => {
13448
+ ), et = (b) => {
13477
13449
  var q, x, G;
13478
13450
  const H = ((x = (q = b == null ? void 0 : b.response) == null ? void 0 : q.data) == null ? void 0 : x[n.suffix]) || ((G = b == null ? void 0 : b.data) == null ? void 0 : G[n.suffix]) || (b == null ? void 0 : b[n.suffix]);
13479
13451
  return c.includes(H);
13480
13452
  };
13481
13453
  return (b, H) => {
13482
13454
  var q;
13483
- return S(), I(
13484
- Le,
13455
+ return E(), I(
13456
+ Ae,
13485
13457
  null,
13486
13458
  [
13487
- a.preview ? J("v-if", !0) : (S(), I(
13488
- Le,
13459
+ a.preview ? J("v-if", !0) : (E(), I(
13460
+ Ae,
13489
13461
  { key: 0 },
13490
13462
  [
13491
- a.type === "button" ? (S(), ne(k(Ni), di({
13463
+ a.type === "button" ? (E(), ie(k(Ni), It({
13492
13464
  key: 0,
13493
13465
  class: "ik-file-upload"
13494
13466
  }, b.$attrs, {
@@ -13502,7 +13474,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13502
13474
  "before-upload": y,
13503
13475
  "before-remove": T,
13504
13476
  "on-exceed": U,
13505
- "on-change": E,
13477
+ "on-change": S,
13506
13478
  multiple: a.multiple,
13507
13479
  headers: a.headers,
13508
13480
  limit: a.limit,
@@ -13510,12 +13482,12 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13510
13482
  "on-error": M
13511
13483
  }), {
13512
13484
  trigger: Y(() => [
13513
- b.$slots.trigger ? Oe(b.$slots, "trigger", { key: 0 }, void 0, !0) : (S(), ne(k(Ir), {
13485
+ b.$slots.trigger ? Re(b.$slots, "trigger", { key: 0 }, void 0, !0) : (E(), ie(k(Ir), {
13514
13486
  key: 1,
13515
13487
  disabled: ye.value
13516
13488
  }, Dn({
13517
13489
  default: Y(() => [
13518
- qe(
13490
+ Xe(
13519
13491
  " " + we(a.title),
13520
13492
  1
13521
13493
  /* TEXT */
@@ -13539,20 +13511,20 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13539
13511
  file: Y(({ file: x }) => [
13540
13512
  A("div", _l, [
13541
13513
  A("div", kl, [
13542
- !b.$slots.fileIcon && (!a.customIconData[k(ue)(x, n)] || !a.customIconData[k(ue)(x, n)][a.customIconFields.icon]) ? (S(), ne(k(ji), {
13514
+ !b.$slots.fileIcon && (!a.customIconData[k(ue)(x, n)] || !a.customIconData[k(ue)(x, n)][a.customIconFields.icon]) ? (E(), ie(k(ji), {
13543
13515
  key: 0,
13544
13516
  type: k(ue)(x, n)
13545
- }, null, 8, ["type"])) : !b.$slots.fileIcon && a.customIconData[k(ue)(x, n)] && a.customIconData[k(ue)(x, n)][a.customIconFields.icon] ? (S(), I("div", Cl, [
13546
- a.customIconData[k(ue)(x, n)][a.customIconFields.type] === "img" ? (S(), I("img", {
13517
+ }, null, 8, ["type"])) : !b.$slots.fileIcon && a.customIconData[k(ue)(x, n)] && a.customIconData[k(ue)(x, n)][a.customIconFields.icon] ? (E(), I("div", Cl, [
13518
+ a.customIconData[k(ue)(x, n)][a.customIconFields.type] === "img" ? (E(), I("img", {
13547
13519
  key: 0,
13548
13520
  src: a.customIconData[k(ue)(x, n)][a.customIconFields.icon],
13549
13521
  alt: "",
13550
13522
  class: "file-img-icon"
13551
- }, null, 8, wl)) : (S(), I(
13523
+ }, null, 8, wl)) : (E(), I(
13552
13524
  "span",
13553
13525
  {
13554
13526
  key: 1,
13555
- class: te([
13527
+ class: ne([
13556
13528
  a.customIconData[k(ue)(x, n)][a.customIconFields.icon],
13557
13529
  "file-icon-size"
13558
13530
  ])
@@ -13563,16 +13535,16 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13563
13535
  ))
13564
13536
  ])) : J("v-if", !0),
13565
13537
  A("div", bl, [
13566
- Oe(b.$slots, "fileIcon", { file: x }, void 0, !0)
13538
+ Re(b.$slots, "fileIcon", { file: x }, void 0, !0)
13567
13539
  ]),
13568
13540
  A("div", Tl, [
13569
13541
  A("p", El, [
13570
- qe(
13542
+ Xe(
13571
13543
  we(x[n.name] || x.name) + " ",
13572
13544
  1
13573
13545
  /* TEXT */
13574
13546
  ),
13575
- x.percentage && x.status === "uploading" ? (S(), I(
13547
+ x.percentage && x.status === "uploading" ? (E(), I(
13576
13548
  "span",
13577
13549
  Sl,
13578
13550
  "(" + we(x.percentage) + "%)",
@@ -13580,14 +13552,14 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13580
13552
  /* TEXT */
13581
13553
  )) : J("v-if", !0)
13582
13554
  ]),
13583
- x.status === "success" ? (S(), I(
13555
+ x.status === "success" ? (E(), I(
13584
13556
  "p",
13585
13557
  Al,
13586
- we(k(qt)((x[n.size] || x.size) / 1024 / 1024)) + "MB ",
13558
+ we(k(Zt)((x[n.size] || x.size) / 1024 / 1024)) + "MB ",
13587
13559
  1
13588
13560
  /* TEXT */
13589
13561
  )) : J("v-if", !0),
13590
- x.percentage && x.status === "uploading" ? (S(), ne(k(Bi), {
13562
+ x.percentage && x.status === "uploading" ? (E(), ie(k(Bi), {
13591
13563
  key: 1,
13592
13564
  "text-inside": "",
13593
13565
  percentage: x.percentage,
@@ -13597,11 +13569,11 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13597
13569
  ])
13598
13570
  ]),
13599
13571
  A("div", null, [
13600
- x.status === "success" ? (S(), I(
13601
- Le,
13572
+ x.status === "success" ? (E(), I(
13573
+ Ae,
13602
13574
  { key: 0 },
13603
13575
  [
13604
- tt(x) ? (S(), ne(k(Ce), {
13576
+ et(x) ? (E(), ie(k(Ce), {
13605
13577
  key: 0,
13606
13578
  onClick: (G) => oe(x),
13607
13579
  name: "iksvg_yulan",
@@ -13610,7 +13582,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13610
13582
  size: "default"
13611
13583
  }, null, 8, ["onClick"])) : J("v-if", !0),
13612
13584
  B(k(Ce), {
13613
- onClick: pt((G) => le(x), ["stop"]),
13585
+ onClick: gt((G) => le(x), ["stop"]),
13614
13586
  error: "",
13615
13587
  name: "iksvg_shanchu",
13616
13588
  title: "删除",
@@ -13620,9 +13592,9 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13620
13592
  ],
13621
13593
  64
13622
13594
  /* STABLE_FRAGMENT */
13623
- )) : (S(), ne(k(Ce), {
13595
+ )) : (E(), ie(k(Ce), {
13624
13596
  key: 1,
13625
- onClick: pt((G) => le(x), ["stop"]),
13597
+ onClick: gt((G) => le(x), ["stop"]),
13626
13598
  error: "",
13627
13599
  name: "iksvg_guanbi",
13628
13600
  size: "default",
@@ -13635,7 +13607,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13635
13607
  default: Y(() => {
13636
13608
  var x;
13637
13609
  return [
13638
- !a.preview && a.tip ? (S(), ne(k(Hi), {
13610
+ !a.preview && a.tip ? (E(), ie(k(Hi), {
13639
13611
  key: 0,
13640
13612
  effect: "dark",
13641
13613
  content: r.tipText || "",
@@ -13656,10 +13628,10 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13656
13628
  _: 1
13657
13629
  /* STABLE */
13658
13630
  }, 8, ["content"])) : J("v-if", !0),
13659
- (x = g.value) != null && x.length ? (S(!0), I(
13660
- Le,
13631
+ (x = g.value) != null && x.length ? (E(!0), I(
13632
+ Ae,
13661
13633
  { key: 1 },
13662
- Mn(g.value, (G, D) => (S(), I("div", {
13634
+ Mn(g.value, (G, D) => (E(), I("div", {
13663
13635
  class: "ik-error-flie-list",
13664
13636
  key: G.uid
13665
13637
  }, [
@@ -13686,7 +13658,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13686
13658
  A(
13687
13659
  "p",
13688
13660
  Ll,
13689
- we(k(qt)(G.size / 1024 / 1024)) + "MB ",
13661
+ we(k(Zt)(G.size / 1024 / 1024)) + "MB ",
13690
13662
  1
13691
13663
  /* TEXT */
13692
13664
  )
@@ -13694,14 +13666,14 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13694
13666
  ]),
13695
13667
  A("div", Dl, [
13696
13668
  B(k(Ce), {
13697
- onClick: pt((z) => W(G, D), ["stop"]),
13669
+ onClick: gt((z) => W(G, D), ["stop"]),
13698
13670
  name: "iksvg_zhongzhi",
13699
13671
  title: "重新上传",
13700
13672
  bg: "",
13701
13673
  size: "default"
13702
13674
  }, null, 8, ["onClick"]),
13703
13675
  B(k(Ce), {
13704
- onClick: pt((z) => he(G, D), ["stop"]),
13676
+ onClick: gt((z) => he(G, D), ["stop"]),
13705
13677
  error: "",
13706
13678
  name: "iksvg_shanchu",
13707
13679
  title: "删除",
@@ -13717,7 +13689,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13717
13689
  }),
13718
13690
  _: 3
13719
13691
  /* FORWARDED */
13720
- }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (S(), ne(k(Ni), di({
13692
+ }, 16, ["accept", "action", "file-list", "multiple", "headers", "limit"])) : (E(), ie(k(Ni), It({
13721
13693
  key: 1,
13722
13694
  "file-list": e.value,
13723
13695
  "onUpdate:fileList": H[1] || (H[1] = (x) => e.value = x),
@@ -13737,25 +13709,25 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13737
13709
  limit: a.limit,
13738
13710
  "on-success": X,
13739
13711
  "on-error": M,
13740
- "on-change": E
13712
+ "on-change": S
13741
13713
  }), {
13742
13714
  file: Y(({ file: x }) => [
13743
13715
  A("div", Ml, [
13744
13716
  A("div", Fl, [
13745
- !b.$slots.fileIcon && (!a.customIconData[k(ue)(x, n)] || !a.customIconData[k(ue)(x, n)][a.customIconFields.icon]) ? (S(), ne(k(ji), {
13717
+ !b.$slots.fileIcon && (!a.customIconData[k(ue)(x, n)] || !a.customIconData[k(ue)(x, n)][a.customIconFields.icon]) ? (E(), ie(k(ji), {
13746
13718
  key: 0,
13747
13719
  type: k(ue)(x, n)
13748
- }, null, 8, ["type"])) : !b.$slots.fileIcon && a.customIconData[k(ue)(x, n)] && a.customIconData[k(ue)(x, n)][a.customIconFields.icon] ? (S(), I("div", Nl, [
13749
- a.customIconData[k(ue)(x, n)][a.customIconFields.type] === "img" ? (S(), I("img", {
13720
+ }, null, 8, ["type"])) : !b.$slots.fileIcon && a.customIconData[k(ue)(x, n)] && a.customIconData[k(ue)(x, n)][a.customIconFields.icon] ? (E(), I("div", Nl, [
13721
+ a.customIconData[k(ue)(x, n)][a.customIconFields.type] === "img" ? (E(), I("img", {
13750
13722
  key: 0,
13751
13723
  src: a.customIconData[k(ue)(x, n)][a.customIconFields.icon],
13752
13724
  alt: "",
13753
13725
  class: "file-img-icon"
13754
- }, null, 8, Bl)) : (S(), I(
13726
+ }, null, 8, Bl)) : (E(), I(
13755
13727
  "span",
13756
13728
  {
13757
13729
  key: 1,
13758
- class: te([
13730
+ class: ne([
13759
13731
  a.customIconData[k(ue)(x, n)][a.customIconFields.icon],
13760
13732
  "file-icon-size"
13761
13733
  ])
@@ -13766,16 +13738,16 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13766
13738
  ))
13767
13739
  ])) : J("v-if", !0),
13768
13740
  A("div", Hl, [
13769
- Oe(b.$slots, "fileIcon", { file: x }, void 0, !0)
13741
+ Re(b.$slots, "fileIcon", { file: x }, void 0, !0)
13770
13742
  ]),
13771
13743
  A("div", Ul, [
13772
13744
  A("p", zl, [
13773
- qe(
13745
+ Xe(
13774
13746
  we(x[n.name] || x.name) + " ",
13775
13747
  1
13776
13748
  /* TEXT */
13777
13749
  ),
13778
- x.percentage && x.status === "uploading" ? (S(), I(
13750
+ x.percentage && x.status === "uploading" ? (E(), I(
13779
13751
  "span",
13780
13752
  Vl,
13781
13753
  "(" + we(x.percentage) + "%)",
@@ -13783,14 +13755,14 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13783
13755
  /* TEXT */
13784
13756
  )) : J("v-if", !0)
13785
13757
  ]),
13786
- x.status === "success" ? (S(), I(
13758
+ x.status === "success" ? (E(), I(
13787
13759
  "p",
13788
13760
  jl,
13789
- we(k(qt)((x[n.size] || x.size) / 1024 / 1024)) + "MB ",
13761
+ we(k(Zt)((x[n.size] || x.size) / 1024 / 1024)) + "MB ",
13790
13762
  1
13791
13763
  /* TEXT */
13792
13764
  )) : J("v-if", !0),
13793
- x.percentage && x.status === "uploading" ? (S(), ne(k(Bi), {
13765
+ x.percentage && x.status === "uploading" ? (E(), ie(k(Bi), {
13794
13766
  key: 1,
13795
13767
  "text-inside": "",
13796
13768
  percentage: x.percentage,
@@ -13799,11 +13771,11 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13799
13771
  }, null, 8, ["percentage"])) : J("v-if", !0)
13800
13772
  ])
13801
13773
  ]),
13802
- a.preview ? (S(), I(
13803
- Le,
13774
+ a.preview ? (E(), I(
13775
+ Ae,
13804
13776
  { key: 1 },
13805
13777
  [
13806
- (a.preview || x.percentage === 100) && tt(x) ? (S(), ne(
13778
+ (a.preview || x.percentage === 100) && et(x) ? (E(), ie(
13807
13779
  k(be),
13808
13780
  {
13809
13781
  key: 0,
@@ -13843,12 +13815,12 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13843
13815
  ],
13844
13816
  64
13845
13817
  /* STABLE_FRAGMENT */
13846
- )) : (S(), I("div", Wl, [
13847
- x.status === "success" ? (S(), I(
13848
- Le,
13818
+ )) : (E(), I("div", Wl, [
13819
+ x.status === "success" ? (E(), I(
13820
+ Ae,
13849
13821
  { key: 0 },
13850
13822
  [
13851
- tt(x) ? (S(), ne(k(Ce), {
13823
+ et(x) ? (E(), ie(k(Ce), {
13852
13824
  key: 0,
13853
13825
  onClick: (G) => oe(x),
13854
13826
  name: "iksvg_yulan",
@@ -13867,7 +13839,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13867
13839
  ],
13868
13840
  64
13869
13841
  /* STABLE_FRAGMENT */
13870
- )) : (S(), ne(k(Ce), {
13842
+ )) : (E(), ie(k(Ce), {
13871
13843
  key: 1,
13872
13844
  onClick: (G) => le(x),
13873
13845
  error: "",
@@ -13882,7 +13854,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13882
13854
  default: Y(() => [
13883
13855
  A("div", Rl, [
13884
13856
  A("div", Ol, [
13885
- a.imageMode ? Oe(b.$slots, "image", { key: 0 }, () => [
13857
+ a.imageMode ? Re(b.$slots, "image", { key: 0 }, () => [
13886
13858
  H[3] || (H[3] = A(
13887
13859
  "img",
13888
13860
  {
@@ -13893,7 +13865,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13893
13865
  -1
13894
13866
  /* HOISTED */
13895
13867
  ))
13896
- ], !0) : a.showIcon ? (S(), ne(k(Ce), {
13868
+ ], !0) : a.showIcon ? (E(), ie(k(Ce), {
13897
13869
  key: 1,
13898
13870
  name: "iksvg_img_shangchuanhetongfujianbeifen",
13899
13871
  type: "primary",
@@ -13901,12 +13873,12 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13901
13873
  size: 40
13902
13874
  })) : J("v-if", !0),
13903
13875
  A("span", null, [
13904
- qe(
13876
+ Xe(
13905
13877
  we(a.title) + " ",
13906
13878
  1
13907
13879
  /* TEXT */
13908
13880
  ),
13909
- !a.preview && a.tip ? (S(), ne(k(Hi), {
13881
+ !a.preview && a.tip ? (E(), ie(k(Hi), {
13910
13882
  key: 0,
13911
13883
  effect: "dark",
13912
13884
  content: r.tipText || "",
@@ -13959,7 +13931,7 @@ const pl = ["id"], vl = /* @__PURE__ */ ie({
13959
13931
  );
13960
13932
  };
13961
13933
  }
13962
- }), $l = /* @__PURE__ */ zt(Gl, [["__scopeId", "data-v-2f840f62"]]), Zl = $e($l);
13934
+ }), $l = /* @__PURE__ */ Vt(Gl, [["__scopeId", "data-v-2f840f62"]]), Zl = Ge($l);
13963
13935
  export {
13964
13936
  Zl as IkUploadFile,
13965
13937
  Zl as default