iking-web-ui-pro 0.2.45 → 0.2.46
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.
- package/dist/IKPreviewFile/ik.index.es.js +352 -353
- package/dist/IKPreviewFile/ik.index.umd.js +44 -44
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +2 -1
- package/dist/IKSearch/ik.index.umd.js +1 -1
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +111 -98
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.umd.js +1 -1
- package/dist/{IKApprovalProcess → IkApprovalProcess}/style.css +1 -1
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.es.js +359 -360
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.umd.js +44 -44
- package/dist/IkApprovalProcessDetail/style.css +1 -0
- package/dist/{IKCalendar → IkCalendar}/ik.index.es.js +4 -3
- package/dist/{IKCalendar → IkCalendar}/ik.index.umd.js +1 -1
- package/dist/{IKCalendar → IkCalendar}/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +299 -300
- package/dist/IkDescription/ik.index.umd.js +44 -44
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +307 -308
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +44 -44
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkOnlyOffice/ik.index.es.js +13 -19
- package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
- package/dist/IkPageFull/ik.index.es.js +2 -1
- package/dist/IkPageFull/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/ik.index.es.js +2 -1
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +343 -344
- package/dist/IkPreviewFileDialog/ik.index.umd.js +44 -44
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +77 -78
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkTinymce/ik.index.es.js +8802 -8740
- package/dist/IkTinymce/ik.index.umd.js +38 -38
- package/dist/IkTinymce/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +333 -334
- package/dist/IkUploadFile/ik.index.umd.js +46 -46
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +378 -378
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12343 -12329
- package/dist/index.umd.js +109 -109
- package/dist/src/components/IkApprovalProcess/index.d.ts +9 -0
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +9 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/IKApprovalProcessDetail/style.css +0 -1
- package/dist/IkOnlyOffice/style.css +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Z, computed as Y, openBlock as E, createElementBlock as P, createElementVNode as T, inject as lt, ref as se, resolveComponent as rt, Fragment as Ee, renderList as ft, normalizeStyle as oe, toDisplayString as Ne, normalizeClass as K, createVNode as j, unref as S, withModifiers as ti, createBlock as pe, createCommentVNode as ee, renderSlot as Fe, withCtx as Q, mergeModels as
|
|
1
|
+
import { defineComponent as Z, computed as Y, openBlock as E, createElementBlock as P, createElementVNode as T, inject as lt, ref as se, resolveComponent as rt, Fragment as Ee, renderList as ft, normalizeStyle as oe, toDisplayString as Ne, normalizeClass as K, createVNode as j, unref as S, withModifiers as ti, createBlock as pe, createCommentVNode as ee, renderSlot as Fe, withCtx as Q, mergeModels as Ct, useModel as fi, reactive as nr, watch as st, nextTick as hi, createTextVNode as ii, h as rr, mergeProps as sr, createSlots as or, getCurrentScope as ar, onScopeDispose as lr, markRaw as Oi, effectScope as ur, shallowRef as cr, onMounted as fr, Teleport as _n, Transition as kn, resolveDynamicComponent as hr, withDirectives as dr, vShow as gr, pushScopeId as pr, popScopeId as vr } from "vue";
|
|
2
2
|
import { paramType as ni, ikFile as mr, buildUUID as Cn, ikColor as yr, _ as Ut, ikUrl as _r } from "iking-utils-pro";
|
|
3
3
|
import { useLocale as kr, useNamespace as wn, useZIndex as Cr, ElIcon as Ae, EVENT_CODE as Xe } from "element-plus";
|
|
4
4
|
const Pe = (a, o) => {
|
|
@@ -751,7 +751,7 @@ var xs = /* @__PURE__ */ Z({
|
|
|
751
751
|
]));
|
|
752
752
|
}
|
|
753
753
|
}), js = Vs;
|
|
754
|
-
const
|
|
754
|
+
const Dt = (a, o) => {
|
|
755
755
|
const r = a.__vccOpts || a;
|
|
756
756
|
for (const [t, e] of o)
|
|
757
757
|
r[t] = e;
|
|
@@ -1100,7 +1100,7 @@ const Fi = [
|
|
|
1100
1100
|
});
|
|
1101
1101
|
const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
1102
1102
|
__name: "IkPreviewFileDialog",
|
|
1103
|
-
props: /* @__PURE__ */
|
|
1103
|
+
props: /* @__PURE__ */ Ct({
|
|
1104
1104
|
file: {
|
|
1105
1105
|
type: Object,
|
|
1106
1106
|
default: () => []
|
|
@@ -1201,7 +1201,7 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1201
1201
|
Ee,
|
|
1202
1202
|
{ key: 0 },
|
|
1203
1203
|
[
|
|
1204
|
-
(h = i.value) != null && h.url && n.image ? (E(), pe(S(
|
|
1204
|
+
(h = i.value) != null && h.url && n.image ? (E(), pe(S(Uo), {
|
|
1205
1205
|
key: 0,
|
|
1206
1206
|
onClose: c[0] || (c[0] = (g) => l()),
|
|
1207
1207
|
ref: "previewImgRef",
|
|
@@ -1209,9 +1209,9 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1209
1209
|
teleported: "",
|
|
1210
1210
|
"z-index": 9999
|
|
1211
1211
|
}, null, 8, ["url-list"])) : ee("v-if", !0),
|
|
1212
|
-
ee('
|
|
1212
|
+
ee(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1213
1213
|
ee(" 文档类 "),
|
|
1214
|
-
j(S(
|
|
1214
|
+
j(S(iu), {
|
|
1215
1215
|
modelValue: n.video,
|
|
1216
1216
|
"onUpdate:modelValue": c[1] || (c[1] = (g) => n.video = g),
|
|
1217
1217
|
url: (p = i.value) == null ? void 0 : p.url
|
|
@@ -1234,7 +1234,7 @@ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
|
|
|
1234
1234
|
default: Q(() => {
|
|
1235
1235
|
var g;
|
|
1236
1236
|
return [
|
|
1237
|
-
j(S(
|
|
1237
|
+
j(S(To), {
|
|
1238
1238
|
"config-options": e.value,
|
|
1239
1239
|
"document-server-url": ((g = a.onlyOfficeConfig) == null ? void 0 : g.serverUrl) || a.onlyofficeServer
|
|
1240
1240
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1453,7 +1453,7 @@ const to = Pe(eo), io = {
|
|
|
1453
1453
|
};
|
|
1454
1454
|
}
|
|
1455
1455
|
});
|
|
1456
|
-
const co = /* @__PURE__ */
|
|
1456
|
+
const co = /* @__PURE__ */ Dt(uo, [["__scopeId", "data-v-52806adf"]]), Me = Pe(co), fo = /* @__PURE__ */ Z({
|
|
1457
1457
|
__name: "CloseIcon",
|
|
1458
1458
|
props: {
|
|
1459
1459
|
showBg: {
|
|
@@ -1484,9 +1484,9 @@ const co = /* @__PURE__ */ gt(uo, [["__scopeId", "data-v-52806adf"]]), Me = Pe(c
|
|
|
1484
1484
|
));
|
|
1485
1485
|
}
|
|
1486
1486
|
});
|
|
1487
|
-
const ho = /* @__PURE__ */
|
|
1487
|
+
const ho = /* @__PURE__ */ Dt(fo, [["__scopeId", "data-v-da39e979"]]), go = { class: "base-header" }, po = /* @__PURE__ */ Z({
|
|
1488
1488
|
__name: "IkBaseDialog",
|
|
1489
|
-
props: /* @__PURE__ */
|
|
1489
|
+
props: /* @__PURE__ */ Ct({
|
|
1490
1490
|
title: { default: "" },
|
|
1491
1491
|
cancelText: { default: "取消" },
|
|
1492
1492
|
confirmText: { default: "确认" },
|
|
@@ -1925,40 +1925,39 @@ const bo = /* @__PURE__ */ Z({
|
|
|
1925
1925
|
/* STYLE */
|
|
1926
1926
|
));
|
|
1927
1927
|
}
|
|
1928
|
-
});
|
|
1929
|
-
const To = /* @__PURE__ */ gt(bo, [["__scopeId", "data-v-98d51ef9"]]), Eo = Pe(To);
|
|
1928
|
+
}), To = Pe(bo);
|
|
1930
1929
|
var Ni;
|
|
1931
|
-
const En = typeof window < "u",
|
|
1930
|
+
const En = typeof window < "u", Eo = (a) => typeof a == "string", So = () => {
|
|
1932
1931
|
};
|
|
1933
1932
|
En && ((Ni = window == null ? void 0 : window.navigator) != null && Ni.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1934
1933
|
function Sn(a) {
|
|
1935
1934
|
return typeof a == "function" ? a() : S(a);
|
|
1936
1935
|
}
|
|
1937
|
-
function
|
|
1936
|
+
function xo(a) {
|
|
1938
1937
|
return a;
|
|
1939
1938
|
}
|
|
1940
|
-
function
|
|
1939
|
+
function Io(a) {
|
|
1941
1940
|
return ar() ? (lr(a), !0) : !1;
|
|
1942
1941
|
}
|
|
1943
|
-
function
|
|
1942
|
+
function Po(a) {
|
|
1944
1943
|
var o;
|
|
1945
1944
|
const r = Sn(a);
|
|
1946
1945
|
return (o = r == null ? void 0 : r.$el) != null ? o : r;
|
|
1947
1946
|
}
|
|
1948
|
-
const
|
|
1949
|
-
function
|
|
1947
|
+
const Lo = En ? window : void 0;
|
|
1948
|
+
function vt(...a) {
|
|
1950
1949
|
let o, r, t, e;
|
|
1951
|
-
if (
|
|
1952
|
-
return
|
|
1950
|
+
if (Eo(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, o = Lo) : [o, r, t, e] = a, !o)
|
|
1951
|
+
return So;
|
|
1953
1952
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
1954
1953
|
const i = [], n = () => {
|
|
1955
1954
|
i.forEach((c) => c()), i.length = 0;
|
|
1956
|
-
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = st(() => [
|
|
1955
|
+
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = st(() => [Po(o), Sn(e)], ([c, h]) => {
|
|
1957
1956
|
n(), c && i.push(...r.flatMap((d) => t.map((p) => s(c, d, p, h))));
|
|
1958
1957
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1959
1958
|
l(), n();
|
|
1960
1959
|
};
|
|
1961
|
-
return
|
|
1960
|
+
return Io(u), u;
|
|
1962
1961
|
}
|
|
1963
1962
|
const Bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Hi = "__vueuse_ssr_handlers__";
|
|
1964
1963
|
Bi[Hi] = Bi[Hi] || {};
|
|
@@ -1966,15 +1965,15 @@ var Ui;
|
|
|
1966
1965
|
(function(a) {
|
|
1967
1966
|
a.UP = "UP", a.RIGHT = "RIGHT", a.DOWN = "DOWN", a.LEFT = "LEFT", a.NONE = "NONE";
|
|
1968
1967
|
})(Ui || (Ui = {}));
|
|
1969
|
-
var
|
|
1968
|
+
var Ao = Object.defineProperty, zi = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Oo = Object.prototype.propertyIsEnumerable, Vi = (a, o, r) => o in a ? Ao(a, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[o] = r, Ro = (a, o) => {
|
|
1970
1969
|
for (var r in o || (o = {}))
|
|
1971
|
-
|
|
1970
|
+
Do.call(o, r) && Vi(a, r, o[r]);
|
|
1972
1971
|
if (zi)
|
|
1973
1972
|
for (var r of zi(o))
|
|
1974
|
-
|
|
1973
|
+
Oo.call(o, r) && Vi(a, r, o[r]);
|
|
1975
1974
|
return a;
|
|
1976
1975
|
};
|
|
1977
|
-
const
|
|
1976
|
+
const Fo = {
|
|
1978
1977
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1979
1978
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1980
1979
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -2000,10 +1999,10 @@ const Mo = {
|
|
|
2000
1999
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
2001
2000
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
2002
2001
|
};
|
|
2003
|
-
|
|
2004
|
-
linear:
|
|
2005
|
-
},
|
|
2006
|
-
const
|
|
2002
|
+
Ro({
|
|
2003
|
+
linear: xo
|
|
2004
|
+
}, Fo);
|
|
2005
|
+
const Mo = {
|
|
2007
2006
|
/**
|
|
2008
2007
|
* @description preview link list.
|
|
2009
2008
|
*/
|
|
@@ -2073,15 +2072,15 @@ const No = {
|
|
|
2073
2072
|
crossorigin: {
|
|
2074
2073
|
type: ["anonymous", "use-credentials", ""]
|
|
2075
2074
|
}
|
|
2076
|
-
},
|
|
2075
|
+
}, No = {
|
|
2077
2076
|
close: () => !0,
|
|
2078
2077
|
switch: (a) => ni.isNumber(a),
|
|
2079
2078
|
rotate: (a) => ni.isNumber(a)
|
|
2080
|
-
},
|
|
2079
|
+
}, Bo = ["src", "crossorigin"], Ho = /* @__PURE__ */ Z({
|
|
2081
2080
|
name: "ElImageViewer",
|
|
2082
2081
|
__name: "IkImageViewer",
|
|
2083
|
-
props:
|
|
2084
|
-
emits:
|
|
2082
|
+
props: Mo,
|
|
2083
|
+
emits: No,
|
|
2085
2084
|
setup(a, { expose: o, emit: r }) {
|
|
2086
2085
|
const t = (N) => Object.keys(N), e = {
|
|
2087
2086
|
CONTAIN: {
|
|
@@ -2153,7 +2152,7 @@ const No = {
|
|
|
2153
2152
|
});
|
|
2154
2153
|
});
|
|
2155
2154
|
d.run(() => {
|
|
2156
|
-
|
|
2155
|
+
vt(document, "keydown", N), vt(document, "wheel", G);
|
|
2157
2156
|
});
|
|
2158
2157
|
}
|
|
2159
2158
|
function ne() {
|
|
@@ -2175,8 +2174,8 @@ const No = {
|
|
|
2175
2174
|
offsetX: G + at.pageX - ge,
|
|
2176
2175
|
offsetY: X + at.pageY - ye
|
|
2177
2176
|
};
|
|
2178
|
-
}), Le =
|
|
2179
|
-
|
|
2177
|
+
}), Le = vt(document, "mousemove", _e);
|
|
2178
|
+
vt(document, "mouseup", () => {
|
|
2180
2179
|
Le();
|
|
2181
2180
|
}), N.preventDefault();
|
|
2182
2181
|
}
|
|
@@ -2442,7 +2441,7 @@ const No = {
|
|
|
2442
2441
|
onLoad: ue,
|
|
2443
2442
|
onError: ce,
|
|
2444
2443
|
onMousedown: we
|
|
2445
|
-
}, null, 46,
|
|
2444
|
+
}, null, 46, Bo)), [
|
|
2446
2445
|
[gr, ge === g.value]
|
|
2447
2446
|
])),
|
|
2448
2447
|
128
|
|
@@ -2463,7 +2462,7 @@ const No = {
|
|
|
2463
2462
|
})
|
|
2464
2463
|
]));
|
|
2465
2464
|
}
|
|
2466
|
-
}),
|
|
2465
|
+
}), Uo = Pe(Ho);
|
|
2467
2466
|
function ji(a, o) {
|
|
2468
2467
|
var r = Object.keys(a);
|
|
2469
2468
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2539,7 +2538,7 @@ function si(a, o) {
|
|
|
2539
2538
|
return t.__proto__ = e, t;
|
|
2540
2539
|
}, si(a, o);
|
|
2541
2540
|
}
|
|
2542
|
-
function
|
|
2541
|
+
function zo() {
|
|
2543
2542
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2544
2543
|
return !1;
|
|
2545
2544
|
if (typeof Proxy == "function")
|
|
@@ -2564,7 +2563,7 @@ function pi(a, o) {
|
|
|
2564
2563
|
return m(a);
|
|
2565
2564
|
}
|
|
2566
2565
|
function D(a) {
|
|
2567
|
-
var o =
|
|
2566
|
+
var o = zo();
|
|
2568
2567
|
return function() {
|
|
2569
2568
|
var t = O(a), e;
|
|
2570
2569
|
if (o) {
|
|
@@ -2575,14 +2574,14 @@ function D(a) {
|
|
|
2575
2574
|
return pi(this, e);
|
|
2576
2575
|
};
|
|
2577
2576
|
}
|
|
2578
|
-
function
|
|
2577
|
+
function Vo(a, o) {
|
|
2579
2578
|
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = O(a), a !== null); )
|
|
2580
2579
|
;
|
|
2581
2580
|
return a;
|
|
2582
2581
|
}
|
|
2583
2582
|
function F() {
|
|
2584
2583
|
return typeof Reflect < "u" && Reflect.get ? F = Reflect.get.bind() : F = function(o, r, t) {
|
|
2585
|
-
var e =
|
|
2584
|
+
var e = Vo(o, r);
|
|
2586
2585
|
if (e) {
|
|
2587
2586
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
2588
2587
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
@@ -2590,17 +2589,17 @@ function F() {
|
|
|
2590
2589
|
}, F.apply(this, arguments);
|
|
2591
2590
|
}
|
|
2592
2591
|
function ve(a) {
|
|
2593
|
-
return
|
|
2592
|
+
return jo(a) || Wo(a) || Go(a) || $o();
|
|
2594
2593
|
}
|
|
2595
|
-
function
|
|
2594
|
+
function jo(a) {
|
|
2596
2595
|
if (Array.isArray(a))
|
|
2597
2596
|
return oi(a);
|
|
2598
2597
|
}
|
|
2599
|
-
function
|
|
2598
|
+
function Wo(a) {
|
|
2600
2599
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
2601
2600
|
return Array.from(a);
|
|
2602
2601
|
}
|
|
2603
|
-
function
|
|
2602
|
+
function Go(a, o) {
|
|
2604
2603
|
if (a) {
|
|
2605
2604
|
if (typeof a == "string")
|
|
2606
2605
|
return oi(a, o);
|
|
@@ -2617,11 +2616,11 @@ function oi(a, o) {
|
|
|
2617
2616
|
t[r] = a[r];
|
|
2618
2617
|
return t;
|
|
2619
2618
|
}
|
|
2620
|
-
function
|
|
2619
|
+
function $o() {
|
|
2621
2620
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2622
2621
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2623
2622
|
}
|
|
2624
|
-
function
|
|
2623
|
+
function Ko(a, o) {
|
|
2625
2624
|
if (typeof a != "object" || a === null)
|
|
2626
2625
|
return a;
|
|
2627
2626
|
var r = a[Symbol.toPrimitive];
|
|
@@ -2634,7 +2633,7 @@ function Yo(a, o) {
|
|
|
2634
2633
|
return (o === "string" ? String : Number)(a);
|
|
2635
2634
|
}
|
|
2636
2635
|
function xn(a) {
|
|
2637
|
-
var o =
|
|
2636
|
+
var o = Ko(a, "string");
|
|
2638
2637
|
return typeof o == "symbol" ? o : String(o);
|
|
2639
2638
|
}
|
|
2640
2639
|
var In = { exports: {} };
|
|
@@ -2750,13 +2749,13 @@ var In = { exports: {} };
|
|
|
2750
2749
|
})(In);
|
|
2751
2750
|
var Pn = In.exports;
|
|
2752
2751
|
const Ln = /* @__PURE__ */ di(Pn);
|
|
2753
|
-
var
|
|
2752
|
+
var Yo = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, zt = {
|
|
2754
2753
|
info: "color: #525252; background-color: #90ee90;",
|
|
2755
2754
|
error: "color: #525252; background-color: red;",
|
|
2756
2755
|
warn: "color: #525252; background-color: yellow; "
|
|
2757
2756
|
}, Vt = "%c[xgplayer]", H = {
|
|
2758
2757
|
config: {
|
|
2759
|
-
debug:
|
|
2758
|
+
debug: Yo ? 3 : 0
|
|
2760
2759
|
},
|
|
2761
2760
|
logInfo: function(o) {
|
|
2762
2761
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -2777,10 +2776,10 @@ var Xo = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
2777
2776
|
}
|
|
2778
2777
|
}
|
|
2779
2778
|
};
|
|
2780
|
-
function
|
|
2779
|
+
function Xo(a) {
|
|
2781
2780
|
a.logInfo = H.logInfo.bind(a), a.logWarn = H.logWarn.bind(a), a.logError = H.logError.bind(a);
|
|
2782
2781
|
}
|
|
2783
|
-
var
|
|
2782
|
+
var qo = /* @__PURE__ */ function() {
|
|
2784
2783
|
function a(o) {
|
|
2785
2784
|
x(this, a), this.bufferedList = o;
|
|
2786
2785
|
}
|
|
@@ -3026,7 +3025,7 @@ f.setStyleFromCsstext = function(a, o) {
|
|
|
3026
3025
|
a.style[t] = o[t];
|
|
3027
3026
|
});
|
|
3028
3027
|
};
|
|
3029
|
-
function
|
|
3028
|
+
function Zo(a, o) {
|
|
3030
3029
|
for (var r = 0, t = o.length; r < t; r++)
|
|
3031
3030
|
if (a.indexOf(o[r]) > -1)
|
|
3032
3031
|
return !0;
|
|
@@ -3040,7 +3039,7 @@ f.filterStyleFromText = function(a) {
|
|
|
3040
3039
|
return t.map(function(n) {
|
|
3041
3040
|
if (n) {
|
|
3042
3041
|
var s = n.split(":");
|
|
3043
|
-
s.length > 1 && (
|
|
3042
|
+
s.length > 1 && (Zo(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
3044
3043
|
}
|
|
3045
3044
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
3046
3045
|
a.style[n] = i[n];
|
|
@@ -3105,7 +3104,7 @@ f.getBuffered2 = function(a) {
|
|
|
3105
3104
|
}
|
|
3106
3105
|
else
|
|
3107
3106
|
e = r;
|
|
3108
|
-
return new
|
|
3107
|
+
return new qo(e);
|
|
3109
3108
|
};
|
|
3110
3109
|
f.getEventPos = function(a) {
|
|
3111
3110
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -3229,7 +3228,7 @@ function An(a) {
|
|
|
3229
3228
|
var o = ae(a);
|
|
3230
3229
|
return a !== null && (o === "object" || o === "function");
|
|
3231
3230
|
}
|
|
3232
|
-
function
|
|
3231
|
+
function Jo(a, o, r) {
|
|
3233
3232
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, p = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
3234
3233
|
if (typeof a != "function")
|
|
3235
3234
|
throw new TypeError("Expected a function");
|
|
@@ -3288,21 +3287,21 @@ function Qo(a, o, r) {
|
|
|
3288
3287
|
}
|
|
3289
3288
|
return J.cancel = U, J.flush = R, J.pending = te, J;
|
|
3290
3289
|
}
|
|
3291
|
-
function
|
|
3290
|
+
function Qo(a, o, r) {
|
|
3292
3291
|
var t = !0, e = !0;
|
|
3293
3292
|
if (typeof a != "function")
|
|
3294
3293
|
throw new TypeError("Expected a function");
|
|
3295
|
-
return An(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
3294
|
+
return An(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Jo(a, o, {
|
|
3296
3295
|
leading: t,
|
|
3297
3296
|
trailing: e,
|
|
3298
3297
|
maxWait: o
|
|
3299
3298
|
});
|
|
3300
3299
|
}
|
|
3301
|
-
function
|
|
3300
|
+
function ea() {
|
|
3302
3301
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
3303
3302
|
return a === "zh-cn" && (a = "zh"), a;
|
|
3304
3303
|
}
|
|
3305
|
-
function
|
|
3304
|
+
function ta(a, o, r) {
|
|
3306
3305
|
if (a) {
|
|
3307
3306
|
var t = a.getAttribute(r);
|
|
3308
3307
|
return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
@@ -3311,7 +3310,7 @@ function ia(a, o, r) {
|
|
|
3311
3310
|
var Gi = {
|
|
3312
3311
|
android: /(Android)\s([\d.]+)/,
|
|
3313
3312
|
ios: /(Version)\/([\d.]+)/
|
|
3314
|
-
},
|
|
3313
|
+
}, ia = ["avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "avc1.42E01E", "mp4v.20.8", "avc1.42E01E, mp4a.40.2", "avc1.58A01E, mp4a.40.2", "avc1.4D401E, mp4a.40.2", "avc1.64001E, mp4a.40.2", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], B = {
|
|
3315
3314
|
get device() {
|
|
3316
3315
|
var a = B.os;
|
|
3317
3316
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -3374,7 +3373,7 @@ var Gi = {
|
|
|
3374
3373
|
if (this.supportResult)
|
|
3375
3374
|
return this.supportResult;
|
|
3376
3375
|
var r = document.createElement("video");
|
|
3377
|
-
return typeof r.canPlayType == "function" &&
|
|
3376
|
+
return typeof r.canPlayType == "function" && ia.map(function(t) {
|
|
3378
3377
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
|
|
3379
3378
|
}), this.supportResult = o, r = null, o;
|
|
3380
3379
|
},
|
|
@@ -3427,7 +3426,7 @@ var Gi = {
|
|
|
3427
3426
|
4: 5104,
|
|
3428
3427
|
5: 5105,
|
|
3429
3428
|
6: 5106
|
|
3430
|
-
},
|
|
3429
|
+
}, wt = /* @__PURE__ */ I(
|
|
3431
3430
|
function a(o) {
|
|
3432
3431
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
3433
3432
|
errorType: "",
|
|
@@ -3469,23 +3468,23 @@ var Gi = {
|
|
|
3469
3468
|
return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
|
|
3470
3469
|
}
|
|
3471
3470
|
}
|
|
3472
|
-
), de = "play", vi = "playing", $e = "ended", ot = "pause",
|
|
3471
|
+
), de = "play", vi = "playing", $e = "ended", ot = "pause", gt = "error", Ot = "seeking", xe = "seeked", he = "timeupdate", pt = "waiting", Se = "canplay", na = "canplaythrough", Ue = "durationchange", Dn = "volumechange", Ie = "loadeddata", ra = "loadedmetadata", On = "ratechange", Rn = "progress", mi = "loadstart", Ke = "emptied", sa = "stalled", oa = "suspend", aa = "abort", la = "bufferedChange", yi = "focus", Fn = "blur", _i = "ready", Mn = "urlNull", Ge = "autoplay_started", ki = "autoplay_was_prevented", Rt = "complete", bt = "replay", Ci = "destroy", Ft = "urlchange", li = "download_speed_change", Nn = "leaveplayer", Bn = "enterplayer", Hn = "loading", be = "fullscreen_change", Tt = "cssFullscreen_change", Et = "mini_state_change", wi = "definition_change", ua = "before_definition_change", ui = "after_definition_change", ca = "SEI_PARSED", fa = "retry", Be = "video_resize", ci = "pip_change", Un = "rotate", zn = "screenShot", St = "playnext", Vn = "shortcut", jn = "xglog", xt = "user_action", Mt = "reset", Wn = "source_error", Gn = "source_success", ha = "switch_subtitle", $n = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Kn = {
|
|
3473
3472
|
STATS_INFO: "stats_info",
|
|
3474
3473
|
STATS_DOWNLOAD: "stats_download",
|
|
3475
3474
|
STATS_RESET: "stats_reset"
|
|
3476
3475
|
}, Yn = "fps_stuck";
|
|
3477
|
-
const
|
|
3476
|
+
const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3478
3477
|
__proto__: null,
|
|
3479
|
-
ABORT:
|
|
3478
|
+
ABORT: aa,
|
|
3480
3479
|
AFTER_DEFINITION_CHANGE: ui,
|
|
3481
3480
|
AUTOPLAY_PREVENTED: ki,
|
|
3482
3481
|
AUTOPLAY_STARTED: Ge,
|
|
3483
|
-
BEFORE_DEFINITION_CHANGE:
|
|
3484
|
-
BUFFER_CHANGE:
|
|
3482
|
+
BEFORE_DEFINITION_CHANGE: ua,
|
|
3483
|
+
BUFFER_CHANGE: la,
|
|
3485
3484
|
CANPLAY: Se,
|
|
3486
|
-
CANPLAY_THROUGH:
|
|
3485
|
+
CANPLAY_THROUGH: na,
|
|
3487
3486
|
COMPLETE: Rt,
|
|
3488
|
-
CSS_FULLSCREEN_CHANGE:
|
|
3487
|
+
CSS_FULLSCREEN_CHANGE: Tt,
|
|
3489
3488
|
DEFINITION_CHANGE: wi,
|
|
3490
3489
|
DESTROY: Ci,
|
|
3491
3490
|
DOWNLOAD_SPEED_CHANGE: li,
|
|
@@ -3493,54 +3492,54 @@ const ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3493
3492
|
EMPTIED: Ke,
|
|
3494
3493
|
ENDED: $e,
|
|
3495
3494
|
ENTER_PLAYER: Bn,
|
|
3496
|
-
ERROR:
|
|
3495
|
+
ERROR: gt,
|
|
3497
3496
|
FPS_STUCK: Yn,
|
|
3498
3497
|
FULLSCREEN_CHANGE: be,
|
|
3499
3498
|
LEAVE_PLAYER: Nn,
|
|
3500
3499
|
LOADED_DATA: Ie,
|
|
3501
|
-
LOADED_METADATA:
|
|
3500
|
+
LOADED_METADATA: ra,
|
|
3502
3501
|
LOADING: Hn,
|
|
3503
3502
|
LOAD_START: mi,
|
|
3504
|
-
MINI_STATE_CHANGE:
|
|
3503
|
+
MINI_STATE_CHANGE: Et,
|
|
3505
3504
|
PAUSE: ot,
|
|
3506
3505
|
PIP_CHANGE: ci,
|
|
3507
3506
|
PLAY: de,
|
|
3508
3507
|
PLAYER_BLUR: Fn,
|
|
3509
3508
|
PLAYER_FOCUS: yi,
|
|
3510
3509
|
PLAYING: vi,
|
|
3511
|
-
PLAYNEXT:
|
|
3510
|
+
PLAYNEXT: St,
|
|
3512
3511
|
PROGRESS: Rn,
|
|
3513
3512
|
RATE_CHANGE: On,
|
|
3514
3513
|
READY: _i,
|
|
3515
|
-
REPLAY:
|
|
3514
|
+
REPLAY: bt,
|
|
3516
3515
|
RESET: Mt,
|
|
3517
|
-
RETRY:
|
|
3516
|
+
RETRY: fa,
|
|
3518
3517
|
ROTATE: Un,
|
|
3519
3518
|
SCREEN_SHOT: zn,
|
|
3520
3519
|
SEEKED: xe,
|
|
3521
3520
|
SEEKING: Ot,
|
|
3522
|
-
SEI_PARSED:
|
|
3521
|
+
SEI_PARSED: ca,
|
|
3523
3522
|
SHORTCUT: Vn,
|
|
3524
3523
|
SOURCE_ERROR: Wn,
|
|
3525
3524
|
SOURCE_SUCCESS: Gn,
|
|
3526
|
-
STALLED:
|
|
3525
|
+
STALLED: sa,
|
|
3527
3526
|
STATS_EVENTS: Kn,
|
|
3528
|
-
SUSPEND:
|
|
3529
|
-
SWITCH_SUBTITLE:
|
|
3527
|
+
SUSPEND: oa,
|
|
3528
|
+
SWITCH_SUBTITLE: ha,
|
|
3530
3529
|
TIME_UPDATE: he,
|
|
3531
3530
|
URL_CHANGE: Ft,
|
|
3532
3531
|
URL_NULL: Mn,
|
|
3533
|
-
USER_ACTION:
|
|
3532
|
+
USER_ACTION: xt,
|
|
3534
3533
|
VIDEO_EVENTS: $n,
|
|
3535
3534
|
VIDEO_RESIZE: Be,
|
|
3536
3535
|
VOLUME_CHANGE: Dn,
|
|
3537
|
-
WAITING:
|
|
3536
|
+
WAITING: pt,
|
|
3538
3537
|
XGLOG: jn
|
|
3539
3538
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3540
3539
|
function jt(a, o) {
|
|
3541
3540
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
3542
3541
|
}
|
|
3543
|
-
function
|
|
3542
|
+
function ga(a, o) {
|
|
3544
3543
|
return function(r, t) {
|
|
3545
3544
|
var e = {
|
|
3546
3545
|
player: o,
|
|
@@ -3575,7 +3574,7 @@ function pa(a, o) {
|
|
|
3575
3574
|
jt.call(o, a, e);
|
|
3576
3575
|
};
|
|
3577
3576
|
}
|
|
3578
|
-
var
|
|
3577
|
+
var pa = /* @__PURE__ */ function(a) {
|
|
3579
3578
|
A(r, a);
|
|
3580
3579
|
var o = D(r);
|
|
3581
3580
|
function r(t) {
|
|
@@ -3619,7 +3618,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3619
3618
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
3620
3619
|
this._evHandlers || (this._evHandlers = $n.map(function(n) {
|
|
3621
3620
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
3622
|
-
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n,
|
|
3621
|
+
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, ga(n, e));
|
|
3623
3622
|
})), this._evHandlers.forEach(function(n) {
|
|
3624
3623
|
var s = Object.keys(n)[0];
|
|
3625
3624
|
i.addEventListener(s, n[s], !1);
|
|
@@ -3671,7 +3670,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3671
3670
|
l ? l.error(h, p) : n.errorHandler("error", p);
|
|
3672
3671
|
}
|
|
3673
3672
|
var g = $i[4];
|
|
3674
|
-
n.emit(Wn, new
|
|
3673
|
+
n.emit(Wn, new wt(n, {
|
|
3675
3674
|
errorType: g,
|
|
3676
3675
|
errorCode: 4,
|
|
3677
3676
|
errorMessage: "sources_load_error",
|
|
@@ -3708,7 +3707,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3708
3707
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
3709
3708
|
code: 6,
|
|
3710
3709
|
message: l
|
|
3711
|
-
}), this.emit(e, new
|
|
3710
|
+
}), this.emit(e, new wt(this, {
|
|
3712
3711
|
errorType: s,
|
|
3713
3712
|
errorCode: n.code,
|
|
3714
3713
|
errorMessage: n.message || "",
|
|
@@ -3929,7 +3928,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3929
3928
|
},
|
|
3930
3929
|
set: function(e) {
|
|
3931
3930
|
if (this.media) {
|
|
3932
|
-
if (this.emit(Ft, e), this.emit(
|
|
3931
|
+
if (this.emit(Ft, e), this.emit(pt), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
|
|
3933
3932
|
this.onWaiting();
|
|
3934
3933
|
return;
|
|
3935
3934
|
}
|
|
@@ -3993,7 +3992,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
3993
3992
|
F(O(r.prototype), "removeAllListeners", this).call(this);
|
|
3994
3993
|
}
|
|
3995
3994
|
}]), r;
|
|
3996
|
-
}(Ln),
|
|
3995
|
+
}(Ln), va = /* @__PURE__ */ function() {
|
|
3997
3996
|
function a() {
|
|
3998
3997
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3999
3998
|
name: "xgplayer",
|
|
@@ -4072,7 +4071,7 @@ var va = /* @__PURE__ */ function(a) {
|
|
|
4072
4071
|
}
|
|
4073
4072
|
}]), a;
|
|
4074
4073
|
}(), Yi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Xi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], We = "data-xgplayerid";
|
|
4075
|
-
function
|
|
4074
|
+
function mt(a, o, r) {
|
|
4076
4075
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
4077
4076
|
e[i - 3] = arguments[i];
|
|
4078
4077
|
var n = o.call.apply(o, [a].concat(e));
|
|
@@ -4082,7 +4081,7 @@ function yt(a, o, r) {
|
|
|
4082
4081
|
r.call.apply(r, [a].concat(l));
|
|
4083
4082
|
}) : r.call.apply(r, [a].concat(e)));
|
|
4084
4083
|
}
|
|
4085
|
-
function
|
|
4084
|
+
function It(a, o) {
|
|
4086
4085
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
4087
4086
|
pre: null,
|
|
4088
4087
|
next: null
|
|
@@ -4100,23 +4099,23 @@ function Pt(a, o) {
|
|
|
4100
4099
|
try {
|
|
4101
4100
|
var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
|
|
4102
4101
|
s ? s.then ? s.then(function(l) {
|
|
4103
|
-
l !== !1 &&
|
|
4102
|
+
l !== !1 && mt.apply(void 0, [e, o, r.next].concat(ve(t)));
|
|
4104
4103
|
}).catch(function(l) {
|
|
4105
4104
|
throw l;
|
|
4106
|
-
}) :
|
|
4105
|
+
}) : mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
4107
4106
|
} catch (l) {
|
|
4108
4107
|
throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
|
|
4109
4108
|
}
|
|
4110
4109
|
else
|
|
4111
|
-
|
|
4110
|
+
mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
4112
4111
|
}).bind(this);
|
|
4113
4112
|
}
|
|
4114
|
-
function
|
|
4113
|
+
function Pt(a, o) {
|
|
4115
4114
|
var r = this.__hooks;
|
|
4116
4115
|
if (r)
|
|
4117
4116
|
return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
4118
4117
|
}
|
|
4119
|
-
function
|
|
4118
|
+
function Lt(a, o) {
|
|
4120
4119
|
var r = this.__hooks;
|
|
4121
4120
|
r && delete r[a];
|
|
4122
4121
|
}
|
|
@@ -4301,21 +4300,21 @@ var He = /* @__PURE__ */ function() {
|
|
|
4301
4300
|
}, {
|
|
4302
4301
|
key: "hook",
|
|
4303
4302
|
value: function(r, t) {
|
|
4304
|
-
return
|
|
4303
|
+
return It.call.apply(It, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4305
4304
|
}
|
|
4306
4305
|
}, {
|
|
4307
4306
|
key: "useHooks",
|
|
4308
4307
|
value: function(r, t) {
|
|
4309
4308
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
4310
4309
|
i[n - 2] = arguments[n];
|
|
4311
|
-
return
|
|
4310
|
+
return Pt.call.apply(Pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4312
4311
|
}
|
|
4313
4312
|
}, {
|
|
4314
4313
|
key: "removeHooks",
|
|
4315
4314
|
value: function(r, t) {
|
|
4316
4315
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
4317
4316
|
i[n - 2] = arguments[n];
|
|
4318
|
-
return
|
|
4317
|
+
return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4319
4318
|
}
|
|
4320
4319
|
}, {
|
|
4321
4320
|
key: "registerPlugin",
|
|
@@ -4357,40 +4356,40 @@ var He = /* @__PURE__ */ function() {
|
|
|
4357
4356
|
return "pluginName";
|
|
4358
4357
|
}
|
|
4359
4358
|
}]), a;
|
|
4360
|
-
}(),
|
|
4359
|
+
}(), ma = 9;
|
|
4361
4360
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
4362
4361
|
var qe = Element.prototype;
|
|
4363
4362
|
qe.matches = qe.matchesSelector || qe.mozMatchesSelector || qe.msMatchesSelector || qe.oMatchesSelector || qe.webkitMatchesSelector;
|
|
4364
4363
|
}
|
|
4365
|
-
function
|
|
4366
|
-
for (; a && a.nodeType !==
|
|
4364
|
+
function ya(a, o) {
|
|
4365
|
+
for (; a && a.nodeType !== ma; ) {
|
|
4367
4366
|
if (typeof a.matches == "function" && a.matches(o))
|
|
4368
4367
|
return a;
|
|
4369
4368
|
a = a.parentNode;
|
|
4370
4369
|
}
|
|
4371
4370
|
}
|
|
4372
|
-
var
|
|
4371
|
+
var _a = ya, ka = _a;
|
|
4373
4372
|
function Gt(a, o, r, t, e) {
|
|
4374
|
-
var i =
|
|
4373
|
+
var i = wa.apply(this, arguments);
|
|
4375
4374
|
return a.addEventListener(r, i, e), {
|
|
4376
4375
|
destroy: function() {
|
|
4377
4376
|
a.removeEventListener(r, i, e);
|
|
4378
4377
|
}
|
|
4379
4378
|
};
|
|
4380
4379
|
}
|
|
4381
|
-
function
|
|
4380
|
+
function Ca(a, o, r, t, e) {
|
|
4382
4381
|
return typeof a.addEventListener == "function" ? Gt.apply(null, arguments) : typeof r == "function" ? Gt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
4383
4382
|
return Gt(i, o, r, t, e);
|
|
4384
4383
|
}));
|
|
4385
4384
|
}
|
|
4386
|
-
function
|
|
4385
|
+
function wa(a, o, r, t) {
|
|
4387
4386
|
return function(e) {
|
|
4388
|
-
e.delegateTarget =
|
|
4387
|
+
e.delegateTarget = ka(e.target, o), e.delegateTarget && t.call(a, e);
|
|
4389
4388
|
};
|
|
4390
4389
|
}
|
|
4391
|
-
var
|
|
4392
|
-
const Qi = /* @__PURE__ */ di(
|
|
4393
|
-
var
|
|
4390
|
+
var ba = Ca;
|
|
4391
|
+
const Qi = /* @__PURE__ */ di(ba);
|
|
4392
|
+
var Ta = {
|
|
4394
4393
|
CONTROLS: "controls",
|
|
4395
4394
|
ROOT: "root"
|
|
4396
4395
|
}, $ = {
|
|
@@ -4410,10 +4409,10 @@ var Ea = {
|
|
|
4410
4409
|
function $t(a) {
|
|
4411
4410
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
4412
4411
|
}
|
|
4413
|
-
function
|
|
4412
|
+
function Ea(a, o) {
|
|
4414
4413
|
return ae(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
|
|
4415
4414
|
}
|
|
4416
|
-
function
|
|
4415
|
+
function Sa(a, o) {
|
|
4417
4416
|
return ae(a) === "object" && a.attr && ae(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
4418
4417
|
o[r] = a.attr[r];
|
|
4419
4418
|
}), o;
|
|
@@ -4436,14 +4435,14 @@ function tn(a, o) {
|
|
|
4436
4435
|
}
|
|
4437
4436
|
return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (H.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
4438
4437
|
}
|
|
4439
|
-
function
|
|
4438
|
+
function xa(a, o) {
|
|
4440
4439
|
var r = o.config.icons || o.playerConfig.icons;
|
|
4441
4440
|
Object.keys(a).map(function(t) {
|
|
4442
4441
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
4443
|
-
r && r[t] && (i =
|
|
4442
|
+
r && r[t] && (i = Ea(r[t], i), n = Sa(r[t], n), s = tn(r[t], t, i, n, o.pluginName)), !s && e && (s = tn(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
|
|
4444
4443
|
});
|
|
4445
4444
|
}
|
|
4446
|
-
function
|
|
4445
|
+
function Ia(a, o) {
|
|
4447
4446
|
Object.keys(a).map(function(r) {
|
|
4448
4447
|
Object.defineProperty(o.langText, r, {
|
|
4449
4448
|
get: function() {
|
|
@@ -4467,9 +4466,9 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4467
4466
|
var i = e.root, n = null;
|
|
4468
4467
|
this.icons = {}, this.root = null, this.parent = null;
|
|
4469
4468
|
var s = this.registerIcons() || {};
|
|
4470
|
-
|
|
4469
|
+
xa(s, this), this.langText = {};
|
|
4471
4470
|
var l = this.registerLanguageTexts() || {};
|
|
4472
|
-
|
|
4471
|
+
Ia(l, this);
|
|
4473
4472
|
var u = "";
|
|
4474
4473
|
try {
|
|
4475
4474
|
u = this.render();
|
|
@@ -4738,7 +4737,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4738
4737
|
}, {
|
|
4739
4738
|
key: "ROOT_TYPES",
|
|
4740
4739
|
get: function() {
|
|
4741
|
-
return
|
|
4740
|
+
return Ta;
|
|
4742
4741
|
}
|
|
4743
4742
|
}, {
|
|
4744
4743
|
key: "POSITIONS",
|
|
@@ -4746,7 +4745,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4746
4745
|
return $;
|
|
4747
4746
|
}
|
|
4748
4747
|
}]), r;
|
|
4749
|
-
}(He),
|
|
4748
|
+
}(He), Pa = /* @__PURE__ */ function() {
|
|
4750
4749
|
function a() {
|
|
4751
4750
|
var o = this;
|
|
4752
4751
|
if (x(this, a), _(this, "__trigger", function(r) {
|
|
@@ -4756,7 +4755,7 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4756
4755
|
o.__runHandler(r[e].target);
|
|
4757
4756
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
4758
4757
|
try {
|
|
4759
|
-
this.observer = new window.ResizeObserver(
|
|
4758
|
+
this.observer = new window.ResizeObserver(Qo(this.__trigger, 100, {
|
|
4760
4759
|
trailing: !0
|
|
4761
4760
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
4762
4761
|
} catch (r) {
|
|
@@ -4811,17 +4810,17 @@ var W = /* @__PURE__ */ function(a) {
|
|
|
4811
4810
|
}
|
|
4812
4811
|
}]), a;
|
|
4813
4812
|
}(), ct = null;
|
|
4814
|
-
function
|
|
4815
|
-
return ct || (ct = new
|
|
4813
|
+
function La(a, o) {
|
|
4814
|
+
return ct || (ct = new Pa()), ct.addObserver(a, o), ct;
|
|
4816
4815
|
}
|
|
4817
|
-
function
|
|
4816
|
+
function Aa(a, o) {
|
|
4818
4817
|
ct.unObserver(a, o);
|
|
4819
4818
|
}
|
|
4820
4819
|
var ie = {
|
|
4821
4820
|
pluginGroup: {},
|
|
4822
4821
|
init: function(o) {
|
|
4823
4822
|
var r = o._pluginInfoId;
|
|
4824
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver &&
|
|
4823
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && La(o.root, function() {
|
|
4825
4824
|
o.resize();
|
|
4826
4825
|
}), this.pluginGroup[r] = {
|
|
4827
4826
|
_originalOptions: o.config || {},
|
|
@@ -5007,7 +5006,7 @@ var ie = {
|
|
|
5007
5006
|
destroy: function(o) {
|
|
5008
5007
|
var r = o._pluginInfoId;
|
|
5009
5008
|
if (this.pluginGroup[r]) {
|
|
5010
|
-
|
|
5009
|
+
Aa(o.root);
|
|
5011
5010
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
5012
5011
|
var n = i[e];
|
|
5013
5012
|
this.unRegister(r, n);
|
|
@@ -5093,7 +5092,7 @@ function nn() {
|
|
|
5093
5092
|
ignores: [],
|
|
5094
5093
|
whitelist: [],
|
|
5095
5094
|
inactive: 3e3,
|
|
5096
|
-
lang:
|
|
5095
|
+
lang: ea(),
|
|
5097
5096
|
controls: !0,
|
|
5098
5097
|
marginControls: !1,
|
|
5099
5098
|
fullscreenTarget: null,
|
|
@@ -5129,7 +5128,7 @@ function nn() {
|
|
|
5129
5128
|
}
|
|
5130
5129
|
};
|
|
5131
5130
|
}
|
|
5132
|
-
var
|
|
5131
|
+
var Da = function(o, r) {
|
|
5133
5132
|
var t, e, i;
|
|
5134
5133
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
5135
5134
|
var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, p = n.i18n, g = p === void 0 ? [] : p;
|
|
@@ -5138,7 +5137,7 @@ var Oa = function(o, r) {
|
|
|
5138
5137
|
});
|
|
5139
5138
|
var v = o.config.i18n || [];
|
|
5140
5139
|
g.push.apply(g, ve(v)), o.config.i18n = g;
|
|
5141
|
-
},
|
|
5140
|
+
}, Oa = /* @__PURE__ */ function(a) {
|
|
5142
5141
|
A(r, a);
|
|
5143
5142
|
var o = D(r);
|
|
5144
5143
|
function r() {
|
|
@@ -5172,7 +5171,7 @@ var Oa = function(o, r) {
|
|
|
5172
5171
|
};
|
|
5173
5172
|
Object.keys(u).map(function(h) {
|
|
5174
5173
|
e.root.style[h] = u[h];
|
|
5175
|
-
}), 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(
|
|
5174
|
+
}), 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(Et, function(h) {
|
|
5176
5175
|
h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
|
|
5177
5176
|
});
|
|
5178
5177
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -5299,7 +5298,7 @@ var Oa = function(o, r) {
|
|
|
5299
5298
|
};
|
|
5300
5299
|
}
|
|
5301
5300
|
}]), r;
|
|
5302
|
-
}(W),
|
|
5301
|
+
}(W), Ra = {
|
|
5303
5302
|
LANG: "en",
|
|
5304
5303
|
TEXT: {
|
|
5305
5304
|
ERROR_TYPES: {
|
|
@@ -5394,7 +5393,7 @@ function Zn() {
|
|
|
5394
5393
|
fe.textKeys[a] = a;
|
|
5395
5394
|
});
|
|
5396
5395
|
}
|
|
5397
|
-
function
|
|
5396
|
+
function Fa(a, o) {
|
|
5398
5397
|
var r = [];
|
|
5399
5398
|
if (o || (o = fe), !!o.lang) {
|
|
5400
5399
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -5417,7 +5416,7 @@ function bi(a, o) {
|
|
|
5417
5416
|
r === "zh" && (r = "zh-cn"), o.lang[r] ? dt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), Zn();
|
|
5418
5417
|
}
|
|
5419
5418
|
}
|
|
5420
|
-
function
|
|
5419
|
+
function Ma(a) {
|
|
5421
5420
|
var o, r = {
|
|
5422
5421
|
lang: {},
|
|
5423
5422
|
langKeys: [],
|
|
@@ -5426,7 +5425,7 @@ function Na(a) {
|
|
|
5426
5425
|
};
|
|
5427
5426
|
return dt(r.lang, fe.lang), (o = r.langKeys).push.apply(o, ve(fe.langKeys)), dt(r.textKeys, fe.textKeys), r;
|
|
5428
5427
|
}
|
|
5429
|
-
bi(
|
|
5428
|
+
bi(Ra);
|
|
5430
5429
|
var nt = {
|
|
5431
5430
|
get textKeys() {
|
|
5432
5431
|
return fe.textKeys;
|
|
@@ -5440,9 +5439,9 @@ var nt = {
|
|
|
5440
5439
|
a[o] = fe.lang[o];
|
|
5441
5440
|
}), fe.lang["zh-cn"] && (a.zh = fe.lang["zh-cn"] || {}), a;
|
|
5442
5441
|
},
|
|
5443
|
-
extend:
|
|
5442
|
+
extend: Fa,
|
|
5444
5443
|
use: bi,
|
|
5445
|
-
init:
|
|
5444
|
+
init: Ma
|
|
5446
5445
|
}, V = {
|
|
5447
5446
|
INITIAL: 1,
|
|
5448
5447
|
READY: 2,
|
|
@@ -5539,7 +5538,7 @@ var nt = {
|
|
|
5539
5538
|
}
|
|
5540
5539
|
}]), r;
|
|
5541
5540
|
}(Pn.EventEmitter);
|
|
5542
|
-
function
|
|
5541
|
+
function Na(a) {
|
|
5543
5542
|
for (var o = Object.keys(le), r = 0; r < o.length; r++) {
|
|
5544
5543
|
var t = le[o[r]];
|
|
5545
5544
|
if (t.root === a)
|
|
@@ -5547,7 +5546,7 @@ function Ba(a) {
|
|
|
5547
5546
|
}
|
|
5548
5547
|
return null;
|
|
5549
5548
|
}
|
|
5550
|
-
var
|
|
5549
|
+
var Ba = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /* @__PURE__ */ function(a) {
|
|
5551
5550
|
A(r, a);
|
|
5552
5551
|
var o = D(r);
|
|
5553
5552
|
function r(t) {
|
|
@@ -5565,7 +5564,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5565
5564
|
e.resize();
|
|
5566
5565
|
}, 100);
|
|
5567
5566
|
}, C = f.getFullScreenEl();
|
|
5568
|
-
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(
|
|
5567
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(xt, {
|
|
5569
5568
|
eventType: "system",
|
|
5570
5569
|
action: "switch_fullscreen",
|
|
5571
5570
|
pluginName: "player",
|
|
@@ -5577,7 +5576,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5577
5576
|
to: !1
|
|
5578
5577
|
}]
|
|
5579
5578
|
});
|
|
5580
|
-
var b =
|
|
5579
|
+
var b = ta(C, e.playerId, We);
|
|
5581
5580
|
if (v || C && (C === e._fullscreenEl || b))
|
|
5582
5581
|
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5583
5582
|
else if (e.fullscreen) {
|
|
@@ -5597,7 +5596,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5597
5596
|
e._fullscreenEl = e.media, e.onFullscreenChange(g, !0);
|
|
5598
5597
|
}), _(m(e), "_onWebkitendfullscreen", function(g) {
|
|
5599
5598
|
e.onFullscreenChange(g, !1);
|
|
5600
|
-
}), Xn(m(e),
|
|
5599
|
+
}), Xn(m(e), Ba), e.config = i, e._pluginInfoId = f.generateSessionId(), Xo(m(e));
|
|
5601
5600
|
var n = e.constructor.defaultPreset;
|
|
5602
5601
|
if (e.config.presets.length) {
|
|
5603
5602
|
var s = e.config.presets.indexOf("default");
|
|
@@ -5626,7 +5625,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5626
5625
|
}, e._offsetInfo = {
|
|
5627
5626
|
currentTime: -1,
|
|
5628
5627
|
duration: 0
|
|
5629
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = nt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
5628
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = nt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new va(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5630
5629
|
isActiveLocked: !1
|
|
5631
5630
|
}, e.instManager = De;
|
|
5632
5631
|
var l = e._initDOM();
|
|
@@ -5652,13 +5651,13 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5652
5651
|
if (n && n.nodeType === 1)
|
|
5653
5652
|
this.root = n;
|
|
5654
5653
|
else
|
|
5655
|
-
return this.emit(
|
|
5654
|
+
return this.emit(gt, new wt("use", this.config.vid, {
|
|
5656
5655
|
line: 32,
|
|
5657
5656
|
handle: "Constructor",
|
|
5658
5657
|
msg: "container id can't be empty"
|
|
5659
5658
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5660
5659
|
}
|
|
5661
|
-
var s =
|
|
5660
|
+
var s = Na(this.root);
|
|
5662
5661
|
s && (H.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(We, this.playerId), (e = De) === null || e === void 0 || e.add(this), ie.init(this), this._initBaseDoms();
|
|
5663
5662
|
var l = this.constructor.XgVideoProxy;
|
|
5664
5663
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -5668,7 +5667,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5668
5667
|
this.attachVideoEvents(c), this.media = c;
|
|
5669
5668
|
}
|
|
5670
5669
|
if (this.media.setAttribute(We, this.playerId), this.config.controls) {
|
|
5671
|
-
var h = this.config.controls.root || null, d = ie.register(this,
|
|
5670
|
+
var h = this.config.controls.root || null, d = ie.register(this, Oa, {
|
|
5672
5671
|
root: h
|
|
5673
5672
|
});
|
|
5674
5673
|
this.controls = d;
|
|
@@ -5776,7 +5775,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
5776
5775
|
value: function() {
|
|
5777
5776
|
var e = this;
|
|
5778
5777
|
this.config.presets.forEach(function(i) {
|
|
5779
|
-
|
|
5778
|
+
Da(e, i);
|
|
5780
5779
|
});
|
|
5781
5780
|
}
|
|
5782
5781
|
}, {
|
|
@@ -6076,7 +6075,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6076
6075
|
i && i.catch && i.catch(function(n) {
|
|
6077
6076
|
console.log(n);
|
|
6078
6077
|
});
|
|
6079
|
-
}), e.emit(
|
|
6078
|
+
}), e.emit(bt), e.onPlay();
|
|
6080
6079
|
});
|
|
6081
6080
|
}
|
|
6082
6081
|
}, {
|
|
@@ -6155,7 +6154,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6155
6154
|
var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.CSS_FULLSCREEN) : k.CSS_FULLSCREEN;
|
|
6156
6155
|
this.changeFullStyle(this.root, e, i);
|
|
6157
6156
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
6158
|
-
l && (this.fullscreen = !0, this.emit(be, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(
|
|
6157
|
+
l && (this.fullscreen = !0, this.emit(be, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Tt, !0);
|
|
6159
6158
|
}
|
|
6160
6159
|
}, {
|
|
6161
6160
|
key: "exitCssFullscreen",
|
|
@@ -6167,7 +6166,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6167
6166
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
6168
6167
|
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(be, !1)) : this.removeClass(e);
|
|
6169
6168
|
}
|
|
6170
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
6169
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Tt, !1);
|
|
6171
6170
|
}
|
|
6172
6171
|
}, {
|
|
6173
6172
|
key: "getRotateFullscreen",
|
|
@@ -6332,7 +6331,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6332
6331
|
value: function(e, i, n) {
|
|
6333
6332
|
if (!(!this.media || !i || !e)) {
|
|
6334
6333
|
var s = f.typeOf(e) === "String" ? e : e.type || "";
|
|
6335
|
-
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(
|
|
6334
|
+
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(xt, q({
|
|
6336
6335
|
eventType: s,
|
|
6337
6336
|
action: i,
|
|
6338
6337
|
currentTime: this.currentTime,
|
|
@@ -6418,7 +6417,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6418
6417
|
value: function(e) {
|
|
6419
6418
|
var i = this;
|
|
6420
6419
|
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Te(this, "playnext", function() {
|
|
6421
|
-
i.start(), i.emit(
|
|
6420
|
+
i.start(), i.emit(St, e);
|
|
6422
6421
|
});
|
|
6423
6422
|
}
|
|
6424
6423
|
}, {
|
|
@@ -6657,17 +6656,17 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6657
6656
|
}, {
|
|
6658
6657
|
key: "hook",
|
|
6659
6658
|
value: function(e, i) {
|
|
6660
|
-
return
|
|
6659
|
+
return It.call.apply(It, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6661
6660
|
}
|
|
6662
6661
|
}, {
|
|
6663
6662
|
key: "useHooks",
|
|
6664
6663
|
value: function(e, i) {
|
|
6665
|
-
return
|
|
6664
|
+
return Pt.call.apply(Pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6666
6665
|
}
|
|
6667
6666
|
}, {
|
|
6668
6667
|
key: "removeHooks",
|
|
6669
6668
|
value: function(e, i) {
|
|
6670
|
-
return
|
|
6669
|
+
return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6671
6670
|
}
|
|
6672
6671
|
}, {
|
|
6673
6672
|
key: "usePluginHooks",
|
|
@@ -6738,7 +6737,7 @@ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /
|
|
|
6738
6737
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
6739
6738
|
}
|
|
6740
6739
|
}]), r;
|
|
6741
|
-
}(
|
|
6740
|
+
}(pa);
|
|
6742
6741
|
_(Nt, "defaultPreset", null);
|
|
6743
6742
|
_(Nt, "XgVideoProxy", null);
|
|
6744
6743
|
Nt.instManager = Jn.getInstance();
|
|
@@ -6753,7 +6752,7 @@ var Oe = {
|
|
|
6753
6752
|
WAIT_END: "waitingEnd",
|
|
6754
6753
|
SEEK_START: "seekStart",
|
|
6755
6754
|
SEEK_END: "seekEnd"
|
|
6756
|
-
},
|
|
6755
|
+
}, Ha = /* @__PURE__ */ function(a) {
|
|
6757
6756
|
A(r, a);
|
|
6758
6757
|
var o = D(r);
|
|
6759
6758
|
function r() {
|
|
@@ -6816,7 +6815,7 @@ var Oe = {
|
|
|
6816
6815
|
e.endState("destroy");
|
|
6817
6816
|
}), this.on(Ft, function() {
|
|
6818
6817
|
e.endState("urlChange"), H.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6819
|
-
}), this.on([vi, Se], this._onPlaying), this.on(
|
|
6818
|
+
}), this.on([vi, Se], this._onPlaying), this.on(pt, this._onWaiting), this.on(gt, this._onError), this.on(Mt, function() {
|
|
6820
6819
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6821
6820
|
});
|
|
6822
6821
|
}
|
|
@@ -6904,13 +6903,13 @@ var Oe = {
|
|
|
6904
6903
|
}
|
|
6905
6904
|
}]), r;
|
|
6906
6905
|
}(W);
|
|
6907
|
-
function
|
|
6906
|
+
function Ua() {
|
|
6908
6907
|
return new DOMParser().parseFromString(`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 78 78" width="78" height="78">
|
|
6909
6908
|
<path fill="#fff" transform="translate(20, 20)" d="M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"></path>
|
|
6910
6909
|
</svg>
|
|
6911
6910
|
`, "image/svg+xml").firstChild;
|
|
6912
6911
|
}
|
|
6913
|
-
var
|
|
6912
|
+
var za = /* @__PURE__ */ function(a) {
|
|
6914
6913
|
A(r, a);
|
|
6915
6914
|
var o = D(r);
|
|
6916
6915
|
function r() {
|
|
@@ -6920,7 +6919,7 @@ var Va = /* @__PURE__ */ function(a) {
|
|
|
6920
6919
|
key: "registerIcons",
|
|
6921
6920
|
value: function() {
|
|
6922
6921
|
return {
|
|
6923
|
-
replay:
|
|
6922
|
+
replay: Ua
|
|
6924
6923
|
};
|
|
6925
6924
|
}
|
|
6926
6925
|
}, {
|
|
@@ -6993,7 +6992,7 @@ var Va = /* @__PURE__ */ function(a) {
|
|
|
6993
6992
|
};
|
|
6994
6993
|
}
|
|
6995
6994
|
}]), r;
|
|
6996
|
-
}(W),
|
|
6995
|
+
}(W), Va = /* @__PURE__ */ function(a) {
|
|
6997
6996
|
A(r, a);
|
|
6998
6997
|
var o = D(r);
|
|
6999
6998
|
function r() {
|
|
@@ -7118,7 +7117,7 @@ function Ei() {
|
|
|
7118
7117
|
`, "image/svg+xml").firstChild;
|
|
7119
7118
|
}
|
|
7120
7119
|
var Ce = {};
|
|
7121
|
-
function
|
|
7120
|
+
function ja(a, o) {
|
|
7122
7121
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
7123
7122
|
start: null,
|
|
7124
7123
|
end: null
|
|
@@ -7136,7 +7135,7 @@ function an(a) {
|
|
|
7136
7135
|
window.clearTimeout(Ce[o].id), delete Ce[o];
|
|
7137
7136
|
});
|
|
7138
7137
|
}
|
|
7139
|
-
var
|
|
7138
|
+
var Wa = /* @__PURE__ */ function(a) {
|
|
7140
7139
|
A(r, a);
|
|
7141
7140
|
var o = D(r);
|
|
7142
7141
|
function r(t) {
|
|
@@ -7228,7 +7227,7 @@ var Ga = /* @__PURE__ */ function(a) {
|
|
|
7228
7227
|
key: "animate",
|
|
7229
7228
|
value: function(e) {
|
|
7230
7229
|
var i = this;
|
|
7231
|
-
this._animateId =
|
|
7230
|
+
this._animateId = ja("pauseplay", 400, {
|
|
7232
7231
|
start: function() {
|
|
7233
7232
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
7234
7233
|
},
|
|
@@ -7311,7 +7310,7 @@ var Ga = /* @__PURE__ */ function(a) {
|
|
|
7311
7310
|
};
|
|
7312
7311
|
}
|
|
7313
7312
|
}]), r;
|
|
7314
|
-
}(W),
|
|
7313
|
+
}(W), Ga = /* @__PURE__ */ function(a) {
|
|
7315
7314
|
A(r, a);
|
|
7316
7315
|
var o = D(r);
|
|
7317
7316
|
function r() {
|
|
@@ -7411,7 +7410,7 @@ function un(a) {
|
|
|
7411
7410
|
return r && o;
|
|
7412
7411
|
}
|
|
7413
7412
|
var Si = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], Qn = Si.length;
|
|
7414
|
-
function
|
|
7413
|
+
function $a() {
|
|
7415
7414
|
for (var a = {
|
|
7416
7415
|
width: 0,
|
|
7417
7416
|
height: 0,
|
|
@@ -7425,15 +7424,15 @@ function Ka() {
|
|
|
7425
7424
|
}
|
|
7426
7425
|
return a;
|
|
7427
7426
|
}
|
|
7428
|
-
function
|
|
7427
|
+
function Ka(a) {
|
|
7429
7428
|
var o = window.getComputedStyle(a);
|
|
7430
7429
|
return o;
|
|
7431
7430
|
}
|
|
7432
7431
|
function cn(a) {
|
|
7433
7432
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || ae(a) !== "object" || !a.nodeType)) {
|
|
7434
|
-
var o =
|
|
7433
|
+
var o = Ka(a);
|
|
7435
7434
|
if (o.display === "none")
|
|
7436
|
-
return
|
|
7435
|
+
return $a();
|
|
7437
7436
|
var r = {};
|
|
7438
7437
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
7439
7438
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < Qn; e++) {
|
|
@@ -7461,7 +7460,7 @@ var Xt = {
|
|
|
7461
7460
|
mousedown: ["mousemove", "mouseup"],
|
|
7462
7461
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
7463
7462
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
7464
|
-
},
|
|
7463
|
+
}, Ya = /* @__PURE__ */ function(a) {
|
|
7465
7464
|
A(r, a);
|
|
7466
7465
|
var o = D(r);
|
|
7467
7466
|
function r(t) {
|
|
@@ -7671,7 +7670,7 @@ var Xt = {
|
|
|
7671
7670
|
return parseInt(e, 10);
|
|
7672
7671
|
}
|
|
7673
7672
|
}]), r;
|
|
7674
|
-
}(Ln),
|
|
7673
|
+
}(Ln), Xa = /* @__PURE__ */ function(a) {
|
|
7675
7674
|
A(r, a);
|
|
7676
7675
|
var o = D(r);
|
|
7677
7676
|
function r(t) {
|
|
@@ -7727,7 +7726,7 @@ var Xt = {
|
|
|
7727
7726
|
i.controls.registerPlugin(ln, s, ln.pluginName);
|
|
7728
7727
|
}
|
|
7729
7728
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
7730
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
7729
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Ya(this.player.root, {
|
|
7731
7730
|
handle: this.root
|
|
7732
7731
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
7733
7732
|
}
|
|
@@ -7760,7 +7759,7 @@ var Xt = {
|
|
|
7760
7759
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7761
7760
|
this.lastStyle = {}, f.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
|
|
7762
7761
|
e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
|
|
7763
|
-
}), n.fluid && (s.style["padding-top"] = ""), this.emit(
|
|
7762
|
+
}), n.fluid && (s.style["padding-top"] = ""), this.emit(Et, !0), i.isMini = this.isMini = !0;
|
|
7764
7763
|
}
|
|
7765
7764
|
}
|
|
7766
7765
|
}, {
|
|
@@ -7772,7 +7771,7 @@ var Xt = {
|
|
|
7772
7771
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7773
7772
|
f.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
|
|
7774
7773
|
s.style[l] = e.lastStyle[l];
|
|
7775
|
-
}), 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(
|
|
7774
|
+
}), 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(Et, !1), this.isMini = i.isMini = !1;
|
|
7776
7775
|
}
|
|
7777
7776
|
}, {
|
|
7778
7777
|
key: "destroy",
|
|
@@ -7821,7 +7820,7 @@ var Xt = {
|
|
|
7821
7820
|
};
|
|
7822
7821
|
}
|
|
7823
7822
|
}]), r;
|
|
7824
|
-
}(W),
|
|
7823
|
+
}(W), yt = {
|
|
7825
7824
|
mouseenter: "onMouseEnter",
|
|
7826
7825
|
mouseleave: "onMouseLeave",
|
|
7827
7826
|
mousemove: "onMouseMove"
|
|
@@ -7895,8 +7894,8 @@ var Xt = {
|
|
|
7895
7894
|
key: "initEvents",
|
|
7896
7895
|
value: function() {
|
|
7897
7896
|
var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
|
|
7898
|
-
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
7899
|
-
s.addEventListener(u, e[
|
|
7897
|
+
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(yt).map(function(u) {
|
|
7898
|
+
s.addEventListener(u, e[yt[u]], !1);
|
|
7900
7899
|
}), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
7901
7900
|
}
|
|
7902
7901
|
}, {
|
|
@@ -7918,8 +7917,8 @@ var Xt = {
|
|
|
7918
7917
|
key: "destroy",
|
|
7919
7918
|
value: function() {
|
|
7920
7919
|
var e = this, i = this.player, n = i.video, s = i.root;
|
|
7921
|
-
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(
|
|
7922
|
-
s.removeEventListener(l, e[
|
|
7920
|
+
this.clickTimer && clearTimeout(this.clickTimer), s.removeEventListener("click", this.onVideoClick, !1), s.removeEventListener("dblclick", this.onVideoDblClick, !1), n.removeEventListener("contextmenu", this.onContextmenu, !1), Object.keys(yt).map(function(l) {
|
|
7921
|
+
s.removeEventListener(l, e[yt[l]], !1);
|
|
7923
7922
|
});
|
|
7924
7923
|
}
|
|
7925
7924
|
}], [{
|
|
@@ -7941,12 +7940,12 @@ var Xt = {
|
|
|
7941
7940
|
TOUCH_MOVE: "touchmove",
|
|
7942
7941
|
TOUCH_START: "touchstart",
|
|
7943
7942
|
TOUCH_END: "touchend"
|
|
7944
|
-
},
|
|
7943
|
+
}, qa = {
|
|
7945
7944
|
start: "touchstart",
|
|
7946
7945
|
end: "touchend",
|
|
7947
7946
|
move: "touchmove",
|
|
7948
7947
|
cancel: "touchcancel"
|
|
7949
|
-
},
|
|
7948
|
+
}, Za = {
|
|
7950
7949
|
start: "mousedown",
|
|
7951
7950
|
end: "mouseup",
|
|
7952
7951
|
move: "mousemove",
|
|
@@ -7955,7 +7954,7 @@ var Xt = {
|
|
|
7955
7954
|
function hn(a) {
|
|
7956
7955
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
7957
7956
|
}
|
|
7958
|
-
function
|
|
7957
|
+
function Ja() {
|
|
7959
7958
|
return {
|
|
7960
7959
|
pressDelay: 600,
|
|
7961
7960
|
dbClickDelay: 200,
|
|
@@ -7965,7 +7964,7 @@ function Qa() {
|
|
|
7965
7964
|
needPreventDefault: !0
|
|
7966
7965
|
};
|
|
7967
7966
|
}
|
|
7968
|
-
var
|
|
7967
|
+
var Qa = /* @__PURE__ */ function() {
|
|
7969
7968
|
function a(o) {
|
|
7970
7969
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7971
7970
|
eventType: "touch"
|
|
@@ -7986,9 +7985,9 @@ var el = /* @__PURE__ */ function() {
|
|
|
7986
7985
|
start: !1,
|
|
7987
7986
|
x: 0,
|
|
7988
7987
|
y: 0
|
|
7989
|
-
}, this.config =
|
|
7988
|
+
}, this.config = Ja(), Object.keys(t).map(function(e) {
|
|
7990
7989
|
r.config[e] = t[e];
|
|
7991
|
-
}), this.root = o, this.events = t.eventType === "mouse" ?
|
|
7990
|
+
}), this.root = o, this.events = t.eventType === "mouse" ? Za : qa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7992
7991
|
}
|
|
7993
7992
|
return I(a, [{
|
|
7994
7993
|
key: "_initEvent",
|
|
@@ -8067,7 +8066,7 @@ var el = /* @__PURE__ */ function() {
|
|
|
8067
8066
|
}
|
|
8068
8067
|
}]), a;
|
|
8069
8068
|
}();
|
|
8070
|
-
function
|
|
8069
|
+
function el() {
|
|
8071
8070
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
8072
8071
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
8073
8072
|
<path opacity="0.54"
|
|
@@ -8081,7 +8080,7 @@ var Ze = {
|
|
|
8081
8080
|
SEEKING: "seeking",
|
|
8082
8081
|
PLAYBACK: "playbackrate",
|
|
8083
8082
|
LIGHT: ""
|
|
8084
|
-
}, Jt = ["videoClick", "videoDbClick"],
|
|
8083
|
+
}, Jt = ["videoClick", "videoDbClick"], tl = /* @__PURE__ */ function(a) {
|
|
8085
8084
|
A(r, a);
|
|
8086
8085
|
var o = D(r);
|
|
8087
8086
|
function r(t) {
|
|
@@ -8153,7 +8152,7 @@ var Ze = {
|
|
|
8153
8152
|
value: function() {
|
|
8154
8153
|
return {
|
|
8155
8154
|
seekTipIcon: {
|
|
8156
|
-
icon:
|
|
8155
|
+
icon: el,
|
|
8157
8156
|
class: "xg-seek-pre"
|
|
8158
8157
|
}
|
|
8159
8158
|
};
|
|
@@ -8168,7 +8167,7 @@ var Ze = {
|
|
|
8168
8167
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
8169
8168
|
i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
8170
8169
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
8171
|
-
this.touch = new
|
|
8170
|
+
this.touch = new Qa(this.root, {
|
|
8172
8171
|
eventType: l,
|
|
8173
8172
|
needPreventDefault: !this.config.disableGesture
|
|
8174
8173
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -8510,7 +8509,7 @@ var Ze = {
|
|
|
8510
8509
|
}
|
|
8511
8510
|
}]), r;
|
|
8512
8511
|
}(W);
|
|
8513
|
-
function
|
|
8512
|
+
function il(a) {
|
|
8514
8513
|
a.preventDefault(), a.returnValue = !1;
|
|
8515
8514
|
}
|
|
8516
8515
|
function dn(a) {
|
|
@@ -8759,7 +8758,7 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8759
8758
|
isPress: n
|
|
8760
8759
|
}, this.keyCodeMap[s[l]]));
|
|
8761
8760
|
}
|
|
8762
|
-
|
|
8761
|
+
il(i), i.stopPropagation();
|
|
8763
8762
|
break;
|
|
8764
8763
|
}
|
|
8765
8764
|
}
|
|
@@ -8801,13 +8800,13 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8801
8800
|
}
|
|
8802
8801
|
}]), r;
|
|
8803
8802
|
}(He);
|
|
8804
|
-
function
|
|
8803
|
+
function nl() {
|
|
8805
8804
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
8806
8805
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
8807
8806
|
</svg>
|
|
8808
8807
|
`, "image/svg+xml").firstChild;
|
|
8809
8808
|
}
|
|
8810
|
-
var
|
|
8809
|
+
var rl = /* @__PURE__ */ function(a) {
|
|
8811
8810
|
A(r, a);
|
|
8812
8811
|
var o = D(r);
|
|
8813
8812
|
function r() {
|
|
@@ -8817,7 +8816,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
8817
8816
|
key: "registerIcons",
|
|
8818
8817
|
value: function() {
|
|
8819
8818
|
return {
|
|
8820
|
-
loadingIcon:
|
|
8819
|
+
loadingIcon: nl
|
|
8821
8820
|
};
|
|
8822
8821
|
}
|
|
8823
8822
|
}, {
|
|
@@ -8846,7 +8845,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
8846
8845
|
};
|
|
8847
8846
|
}
|
|
8848
8847
|
}]), r;
|
|
8849
|
-
}(W),
|
|
8848
|
+
}(W), sl = [{
|
|
8850
8849
|
tag: "xg-cache",
|
|
8851
8850
|
className: "xgplayer-progress-cache",
|
|
8852
8851
|
styleKey: "cachedColor"
|
|
@@ -8854,7 +8853,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
8854
8853
|
tag: "xg-played",
|
|
8855
8854
|
className: "xgplayer-progress-played",
|
|
8856
8855
|
styleKey: "playedColor"
|
|
8857
|
-
}],
|
|
8856
|
+
}], ol = /* @__PURE__ */ function() {
|
|
8858
8857
|
function a(o) {
|
|
8859
8858
|
x(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8860
8859
|
percent: 1
|
|
@@ -9041,7 +9040,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9041
9040
|
var l = f.createDom("xg-inner", "", {
|
|
9042
9041
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
9043
9042
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
9044
|
-
return r.root.appendChild(l),
|
|
9043
|
+
return r.root.appendChild(l), sl.forEach(function(u) {
|
|
9045
9044
|
l.appendChild(f.createDom(u.tag, "", {
|
|
9046
9045
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
9047
9046
|
}, u.className));
|
|
@@ -9057,7 +9056,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9057
9056
|
}(), pn = {
|
|
9058
9057
|
POINT: "inner-focus-point",
|
|
9059
9058
|
HIGHLIGHT: "inner-focus-highlight"
|
|
9060
|
-
},
|
|
9059
|
+
}, al = /* @__PURE__ */ function(a) {
|
|
9061
9060
|
A(r, a);
|
|
9062
9061
|
var o = D(r);
|
|
9063
9062
|
function r(t) {
|
|
@@ -9187,7 +9186,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9187
9186
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
9188
9187
|
}
|
|
9189
9188
|
});
|
|
9190
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
9189
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new ol(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
9191
9190
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
9192
9191
|
}));
|
|
9193
9192
|
}
|
|
@@ -9497,7 +9496,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9497
9496
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
9498
9497
|
}
|
|
9499
9498
|
}]), r;
|
|
9500
|
-
}(W),
|
|
9499
|
+
}(W), ll = /* @__PURE__ */ function(a) {
|
|
9501
9500
|
A(r, a);
|
|
9502
9501
|
var o = D(r);
|
|
9503
9502
|
function r() {
|
|
@@ -9509,7 +9508,7 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9509
9508
|
var e = this;
|
|
9510
9509
|
F(O(r.prototype), "afterCreate", this).call(this);
|
|
9511
9510
|
var i = this.player, n = this.config;
|
|
9512
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([ot,
|
|
9511
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([ot, gt, Ke], function() {
|
|
9513
9512
|
e.animate(i.paused);
|
|
9514
9513
|
}), this.on(de, function() {
|
|
9515
9514
|
e.animate(i.paused);
|
|
@@ -9585,14 +9584,14 @@ var sl = /* @__PURE__ */ function(a) {
|
|
|
9585
9584
|
}
|
|
9586
9585
|
}]), r;
|
|
9587
9586
|
}(Ye);
|
|
9588
|
-
function
|
|
9587
|
+
function ul() {
|
|
9589
9588
|
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">
|
|
9590
9589
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9591
9590
|
<path d="M11.2374369,14 L17.6187184,7.61871843 C17.9604272,7.27700968 17.9604272,6.72299032 17.6187184,6.38128157 C17.2770097,6.03957281 16.7229903,6.03957281 16.3812816,6.38128157 L9.38128157,13.3812816 C9.03957281,13.7229903 9.03957281,14.2770097 9.38128157,14.6187184 L16.3812816,21.6187184 C16.7229903,21.9604272 17.2770097,21.9604272 17.6187184,21.6187184 C17.9604272,21.2770097 17.9604272,20.7229903 17.6187184,20.3812816 L11.2374369,14 L11.2374369,14 Z" fill="#FFFFFF"></path>
|
|
9592
9591
|
</g>
|
|
9593
9592
|
</svg>`, "image/svg+xml").firstChild;
|
|
9594
9593
|
}
|
|
9595
|
-
var
|
|
9594
|
+
var cl = /* @__PURE__ */ function(a) {
|
|
9596
9595
|
A(r, a);
|
|
9597
9596
|
var o = D(r);
|
|
9598
9597
|
function r() {
|
|
@@ -9611,7 +9610,7 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
9611
9610
|
value: function() {
|
|
9612
9611
|
return {
|
|
9613
9612
|
screenBack: {
|
|
9614
|
-
icon:
|
|
9613
|
+
icon: ul,
|
|
9615
9614
|
class: "xg-fullscreen-back"
|
|
9616
9615
|
}
|
|
9617
9616
|
};
|
|
@@ -9653,19 +9652,19 @@ var fl = /* @__PURE__ */ function(a) {
|
|
|
9653
9652
|
}
|
|
9654
9653
|
}]), r;
|
|
9655
9654
|
}(W);
|
|
9656
|
-
function
|
|
9655
|
+
function fl() {
|
|
9657
9656
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9658
9657
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"></path>
|
|
9659
9658
|
</svg>
|
|
9660
9659
|
`, "image/svg+xml").firstChild;
|
|
9661
9660
|
}
|
|
9662
|
-
function
|
|
9661
|
+
function hl() {
|
|
9663
9662
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9664
9663
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"></path>
|
|
9665
9664
|
</svg>
|
|
9666
9665
|
`, "image/svg+xml").firstChild;
|
|
9667
9666
|
}
|
|
9668
|
-
var
|
|
9667
|
+
var dl = /* @__PURE__ */ function(a) {
|
|
9669
9668
|
A(r, a);
|
|
9670
9669
|
var o = D(r);
|
|
9671
9670
|
function r() {
|
|
@@ -9700,7 +9699,7 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9700
9699
|
var u = e.find(".xg-tips");
|
|
9701
9700
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
9702
9701
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
9703
|
-
plugin:
|
|
9702
|
+
plugin: cl,
|
|
9704
9703
|
options: {
|
|
9705
9704
|
config: {
|
|
9706
9705
|
onClick: function(u) {
|
|
@@ -9716,11 +9715,11 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9716
9715
|
value: function() {
|
|
9717
9716
|
return {
|
|
9718
9717
|
fullscreen: {
|
|
9719
|
-
icon:
|
|
9718
|
+
icon: fl,
|
|
9720
9719
|
class: "xg-get-fullscreen"
|
|
9721
9720
|
},
|
|
9722
9721
|
exitFullscreen: {
|
|
9723
|
-
icon:
|
|
9722
|
+
icon: hl,
|
|
9724
9723
|
class: "xg-exit-fullscreen"
|
|
9725
9724
|
}
|
|
9726
9725
|
};
|
|
@@ -9801,7 +9800,7 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9801
9800
|
};
|
|
9802
9801
|
}
|
|
9803
9802
|
}]), r;
|
|
9804
|
-
}(Ye),
|
|
9803
|
+
}(Ye), gl = /* @__PURE__ */ function(a) {
|
|
9805
9804
|
A(r, a);
|
|
9806
9805
|
var o = D(r);
|
|
9807
9806
|
function r(t) {
|
|
@@ -9951,7 +9950,7 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
9951
9950
|
};
|
|
9952
9951
|
}
|
|
9953
9952
|
}]), r;
|
|
9954
|
-
}(W),
|
|
9953
|
+
}(W), pl = /* @__PURE__ */ function(a) {
|
|
9955
9954
|
A(r, a);
|
|
9956
9955
|
var o = D(r);
|
|
9957
9956
|
function r() {
|
|
@@ -10089,28 +10088,28 @@ var gl = /* @__PURE__ */ function(a) {
|
|
|
10089
10088
|
}
|
|
10090
10089
|
}]), r;
|
|
10091
10090
|
}(He);
|
|
10092
|
-
function
|
|
10091
|
+
function vl() {
|
|
10093
10092
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10094
10093
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10095
10094
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
10096
10095
|
</svg>
|
|
10097
10096
|
`, "image/svg+xml").firstChild;
|
|
10098
10097
|
}
|
|
10099
|
-
function
|
|
10098
|
+
function ml() {
|
|
10100
10099
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10101
10100
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10102
10101
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"></path>
|
|
10103
10102
|
</svg>
|
|
10104
10103
|
`, "image/svg+xml").firstChild;
|
|
10105
10104
|
}
|
|
10106
|
-
function
|
|
10105
|
+
function yl() {
|
|
10107
10106
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10108
10107
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10109
10108
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z"></path>
|
|
10110
10109
|
</svg>
|
|
10111
10110
|
`, "image/svg+xml").firstChild;
|
|
10112
10111
|
}
|
|
10113
|
-
var
|
|
10112
|
+
var _l = /* @__PURE__ */ function(a) {
|
|
10114
10113
|
A(r, a);
|
|
10115
10114
|
var o = D(r);
|
|
10116
10115
|
function r() {
|
|
@@ -10158,15 +10157,15 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10158
10157
|
value: function() {
|
|
10159
10158
|
return {
|
|
10160
10159
|
volumeSmall: {
|
|
10161
|
-
icon:
|
|
10160
|
+
icon: ml,
|
|
10162
10161
|
class: "xg-volume-small"
|
|
10163
10162
|
},
|
|
10164
10163
|
volumeLarge: {
|
|
10165
|
-
icon:
|
|
10164
|
+
icon: vl,
|
|
10166
10165
|
class: "xg-volume"
|
|
10167
10166
|
},
|
|
10168
10167
|
volumeMuted: {
|
|
10169
|
-
icon:
|
|
10168
|
+
icon: yl,
|
|
10170
10169
|
class: "xg-volume-mute"
|
|
10171
10170
|
}
|
|
10172
10171
|
};
|
|
@@ -10305,7 +10304,7 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10305
10304
|
}
|
|
10306
10305
|
}]), r;
|
|
10307
10306
|
}(W);
|
|
10308
|
-
function
|
|
10307
|
+
function kl() {
|
|
10309
10308
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
10310
10309
|
<g clip-path="url(#clip0)">
|
|
10311
10310
|
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"/>
|
|
@@ -10319,7 +10318,7 @@ function Cl() {
|
|
|
10319
10318
|
</svg>
|
|
10320
10319
|
`, "image/svg+xml").firstChild;
|
|
10321
10320
|
}
|
|
10322
|
-
var
|
|
10321
|
+
var Cl = /* @__PURE__ */ function(a) {
|
|
10323
10322
|
A(r, a);
|
|
10324
10323
|
var o = D(r);
|
|
10325
10324
|
function r(t) {
|
|
@@ -10382,7 +10381,7 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10382
10381
|
key: "registerIcons",
|
|
10383
10382
|
value: function() {
|
|
10384
10383
|
return {
|
|
10385
|
-
rotate:
|
|
10384
|
+
rotate: kl
|
|
10386
10385
|
};
|
|
10387
10386
|
}
|
|
10388
10387
|
}, {
|
|
@@ -10415,14 +10414,14 @@ var wl = /* @__PURE__ */ function(a) {
|
|
|
10415
10414
|
}
|
|
10416
10415
|
}]), r;
|
|
10417
10416
|
}(Ye);
|
|
10418
|
-
function
|
|
10417
|
+
function wl() {
|
|
10419
10418
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10420
10419
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10421
10420
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
10422
10421
|
fill="white" />
|
|
10423
10422
|
</svg>`, "image/svg+xml").firstChild;
|
|
10424
10423
|
}
|
|
10425
|
-
function
|
|
10424
|
+
function bl() {
|
|
10426
10425
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10427
10426
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10428
10427
|
d="M16.5 4.3H3.5C3.38954 4.3 3.3 4.38954 3.3 4.5V15.5C3.3 15.6105 3.38954 15.7 3.5 15.7H8.50005L8.50006 17.5H3.5C2.39543 17.5 1.5 16.6046 1.5 15.5V4.5C1.5 3.39543 2.39543 2.5 3.5 2.5H16.5C17.6046 2.5 18.5 3.39543 18.5 4.5V8.5H16.7V4.5C16.7 4.38954 16.6105 4.3 16.5 4.3ZM12 11.5C11.4477 11.5 11 11.9477 11 12.5L11 16.5C11 17.0523 11.4478 17.5 12 17.5H17.5C18.0523 17.5 18.5 17.0523 18.5 16.5L18.5 12.5C18.5 11.9477 18.0523 11.5 17.5 11.5H12Z"
|
|
@@ -10436,7 +10435,7 @@ var Je = {
|
|
|
10436
10435
|
PIP: "picture-in-picture",
|
|
10437
10436
|
INLINE: "inline",
|
|
10438
10437
|
FULLSCREEN: "fullscreen"
|
|
10439
|
-
},
|
|
10438
|
+
}, Tl = /* @__PURE__ */ function(a) {
|
|
10440
10439
|
A(r, a);
|
|
10441
10440
|
var o = D(r);
|
|
10442
10441
|
function r() {
|
|
@@ -10476,11 +10475,11 @@ var Je = {
|
|
|
10476
10475
|
value: function() {
|
|
10477
10476
|
return {
|
|
10478
10477
|
pipIcon: {
|
|
10479
|
-
icon:
|
|
10478
|
+
icon: wl,
|
|
10480
10479
|
class: "xg-get-pip"
|
|
10481
10480
|
},
|
|
10482
10481
|
pipIconExit: {
|
|
10483
|
-
icon:
|
|
10482
|
+
icon: bl,
|
|
10484
10483
|
class: "xg-exit-pip"
|
|
10485
10484
|
}
|
|
10486
10485
|
};
|
|
@@ -10639,20 +10638,20 @@ var Je = {
|
|
|
10639
10638
|
}
|
|
10640
10639
|
}]), r;
|
|
10641
10640
|
}(Ye);
|
|
10642
|
-
function
|
|
10641
|
+
function El() {
|
|
10643
10642
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
10644
10643
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
10645
10644
|
</svg>
|
|
10646
10645
|
`, "image/svg+xml").firstChild;
|
|
10647
10646
|
}
|
|
10648
|
-
var
|
|
10647
|
+
var Sl = /* @__PURE__ */ function(a) {
|
|
10649
10648
|
A(r, a);
|
|
10650
10649
|
var o = D(r);
|
|
10651
10650
|
function r(t) {
|
|
10652
10651
|
var e;
|
|
10653
10652
|
return x(this, r), e = o.call(this, t), _(m(e), "playNext", function(i) {
|
|
10654
10653
|
var n = m(e), s = n.player;
|
|
10655
|
-
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(
|
|
10654
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(St, e.idx + 1)) : (e.nextHandler(), s.emit(St));
|
|
10656
10655
|
}), e.idx = -1, e;
|
|
10657
10656
|
}
|
|
10658
10657
|
return I(r, [{
|
|
@@ -10664,7 +10663,7 @@ var xl = /* @__PURE__ */ function(a) {
|
|
|
10664
10663
|
key: "registerIcons",
|
|
10665
10664
|
value: function() {
|
|
10666
10665
|
return {
|
|
10667
|
-
playNext:
|
|
10666
|
+
playNext: El
|
|
10668
10667
|
};
|
|
10669
10668
|
}
|
|
10670
10669
|
}, {
|
|
@@ -10786,9 +10785,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10786
10785
|
};
|
|
10787
10786
|
});
|
|
10788
10787
|
})(er);
|
|
10789
|
-
var
|
|
10790
|
-
const
|
|
10791
|
-
function
|
|
10788
|
+
var xl = er.exports;
|
|
10789
|
+
const Il = /* @__PURE__ */ di(xl);
|
|
10790
|
+
function Pl() {
|
|
10792
10791
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
10793
10792
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10794
10793
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -10805,7 +10804,7 @@ function Ll() {
|
|
|
10805
10804
|
</svg>
|
|
10806
10805
|
`, "image/svg+xml").firstChild;
|
|
10807
10806
|
}
|
|
10808
|
-
var
|
|
10807
|
+
var Ll = /* @__PURE__ */ function(a) {
|
|
10809
10808
|
A(r, a);
|
|
10810
10809
|
var o = D(r);
|
|
10811
10810
|
function r(t) {
|
|
@@ -10816,7 +10815,7 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
10816
10815
|
var n = e.playerConfig.url, s = "";
|
|
10817
10816
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
10818
10817
|
var l = e.getAbsoluteURL(s);
|
|
10819
|
-
|
|
10818
|
+
Il(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
10820
10819
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
10821
10820
|
}, 300);
|
|
10822
10821
|
}
|
|
@@ -10835,7 +10834,7 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
10835
10834
|
key: "registerIcons",
|
|
10836
10835
|
value: function() {
|
|
10837
10836
|
return {
|
|
10838
|
-
download:
|
|
10837
|
+
download: Pl
|
|
10839
10838
|
};
|
|
10840
10839
|
}
|
|
10841
10840
|
}, {
|
|
@@ -10877,7 +10876,7 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
10877
10876
|
};
|
|
10878
10877
|
}
|
|
10879
10878
|
}]), r;
|
|
10880
|
-
}(Ye),
|
|
10879
|
+
}(Ye), Al = /* @__PURE__ */ function(a) {
|
|
10881
10880
|
A(r, a);
|
|
10882
10881
|
var o = D(r);
|
|
10883
10882
|
function r() {
|
|
@@ -11003,7 +11002,7 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
11003
11002
|
};
|
|
11004
11003
|
}
|
|
11005
11004
|
}]), r;
|
|
11006
|
-
}(Ye),
|
|
11005
|
+
}(Ye), Dl = /* @__PURE__ */ function() {
|
|
11007
11006
|
function a(o) {
|
|
11008
11007
|
x(this, a), this.config = o.config, this.parent = o.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
|
|
11009
11008
|
var r = this.config.maxHeight;
|
|
@@ -11083,10 +11082,10 @@ var Al = /* @__PURE__ */ function(a) {
|
|
|
11083
11082
|
CLICK: "click",
|
|
11084
11083
|
HOVER: "hover"
|
|
11085
11084
|
};
|
|
11086
|
-
function
|
|
11085
|
+
function Ol(a, o) {
|
|
11087
11086
|
return a === ke.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
11088
11087
|
}
|
|
11089
|
-
var je = B.device === "mobile",
|
|
11088
|
+
var je = B.device === "mobile", At = /* @__PURE__ */ function(a) {
|
|
11090
11089
|
A(r, a);
|
|
11091
11090
|
var o = D(r);
|
|
11092
11091
|
function r(t) {
|
|
@@ -11197,7 +11196,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11197
11196
|
var c = {
|
|
11198
11197
|
config: {
|
|
11199
11198
|
data: e || [],
|
|
11200
|
-
className:
|
|
11199
|
+
className: Ol(s.listType, s.position),
|
|
11201
11200
|
onItemClick: function(v, y) {
|
|
11202
11201
|
n.onItemClick(v, y);
|
|
11203
11202
|
},
|
|
@@ -11207,7 +11206,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11207
11206
|
};
|
|
11208
11207
|
if (this.config.isShowIcon) {
|
|
11209
11208
|
var h = this.player.root.getBoundingClientRect(), d = h.height, p = s.listType === ke.MIDDLE ? d - 50 : d;
|
|
11210
|
-
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new
|
|
11209
|
+
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new Dl(c), this.changeCurrentText(), this.show();
|
|
11211
11210
|
}
|
|
11212
11211
|
this._resizeList();
|
|
11213
11212
|
}
|
|
@@ -11258,7 +11257,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11258
11257
|
};
|
|
11259
11258
|
}
|
|
11260
11259
|
}]), r;
|
|
11261
|
-
}(W),
|
|
11260
|
+
}(W), Rl = /* @__PURE__ */ function(a) {
|
|
11262
11261
|
A(r, a);
|
|
11263
11262
|
var o = D(r);
|
|
11264
11263
|
function r(t) {
|
|
@@ -11347,7 +11346,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11347
11346
|
}, {
|
|
11348
11347
|
key: "defaultConfig",
|
|
11349
11348
|
get: function() {
|
|
11350
|
-
return q(q({},
|
|
11349
|
+
return q(q({}, At.defaultConfig), {}, {
|
|
11351
11350
|
position: $.CONTROLS_RIGHT,
|
|
11352
11351
|
index: 3,
|
|
11353
11352
|
list: [],
|
|
@@ -11359,7 +11358,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11359
11358
|
});
|
|
11360
11359
|
}
|
|
11361
11360
|
}]), r;
|
|
11362
|
-
}(
|
|
11361
|
+
}(At), Fl = /* @__PURE__ */ function(a) {
|
|
11363
11362
|
A(r, a);
|
|
11364
11363
|
var o = D(r);
|
|
11365
11364
|
function r(t) {
|
|
@@ -11441,7 +11440,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11441
11440
|
}, {
|
|
11442
11441
|
key: "defaultConfig",
|
|
11443
11442
|
get: function() {
|
|
11444
|
-
return q(q({},
|
|
11443
|
+
return q(q({}, At.defaultConfig), {}, {
|
|
11445
11444
|
position: $.CONTROLS_RIGHT,
|
|
11446
11445
|
index: 4,
|
|
11447
11446
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -11451,14 +11450,14 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
|
11451
11450
|
});
|
|
11452
11451
|
}
|
|
11453
11452
|
}]), r;
|
|
11454
|
-
}(
|
|
11455
|
-
function
|
|
11453
|
+
}(At);
|
|
11454
|
+
function Ml() {
|
|
11456
11455
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11457
11456
|
<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>
|
|
11458
11457
|
</svg>
|
|
11459
11458
|
`, "image/svg+xml").firstChild;
|
|
11460
11459
|
}
|
|
11461
|
-
function
|
|
11460
|
+
function Nl() {
|
|
11462
11461
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11463
11462
|
<path fill="#fff" transform="scale(1.3, 1.3)" d="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"></path>
|
|
11464
11463
|
</svg>
|
|
@@ -11479,7 +11478,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11479
11478
|
key: "afterCreate",
|
|
11480
11479
|
value: function() {
|
|
11481
11480
|
var e = this;
|
|
11482
|
-
F(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(
|
|
11481
|
+
F(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(Tt, function(i) {
|
|
11483
11482
|
e.animate(i);
|
|
11484
11483
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
11485
11484
|
pre: function(n) {
|
|
@@ -11518,11 +11517,11 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11518
11517
|
value: function() {
|
|
11519
11518
|
return {
|
|
11520
11519
|
cssFullscreen: {
|
|
11521
|
-
icon:
|
|
11520
|
+
icon: Ml,
|
|
11522
11521
|
class: "xg-get-cssfull"
|
|
11523
11522
|
},
|
|
11524
11523
|
exitCssFullscreen: {
|
|
11525
|
-
icon:
|
|
11524
|
+
icon: Nl,
|
|
11526
11525
|
class: "xg-exit-cssfull"
|
|
11527
11526
|
}
|
|
11528
11527
|
};
|
|
@@ -11558,7 +11557,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11558
11557
|
};
|
|
11559
11558
|
}
|
|
11560
11559
|
}]), r;
|
|
11561
|
-
}(Ye),
|
|
11560
|
+
}(Ye), Bl = /* @__PURE__ */ function(a) {
|
|
11562
11561
|
A(r, a);
|
|
11563
11562
|
var o = D(r);
|
|
11564
11563
|
function r() {
|
|
@@ -11572,7 +11571,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11572
11571
|
pre: function(n) {
|
|
11573
11572
|
n.preventDefault(), n.stopPropagation();
|
|
11574
11573
|
}
|
|
11575
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(
|
|
11574
|
+
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(gt, function(i) {
|
|
11576
11575
|
e.onError(i);
|
|
11577
11576
|
});
|
|
11578
11577
|
}
|
|
@@ -11619,7 +11618,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11619
11618
|
return "error";
|
|
11620
11619
|
}
|
|
11621
11620
|
}]), r;
|
|
11622
|
-
}(W),
|
|
11621
|
+
}(W), Hl = /* @__PURE__ */ function(a) {
|
|
11623
11622
|
A(r, a);
|
|
11624
11623
|
var o = D(r);
|
|
11625
11624
|
function r() {
|
|
@@ -11849,7 +11848,7 @@ var yn = {
|
|
|
11849
11848
|
return r.find('xg-spot[data-id="'.concat(o, '"]'));
|
|
11850
11849
|
}
|
|
11851
11850
|
};
|
|
11852
|
-
function
|
|
11851
|
+
function Ul(a) {
|
|
11853
11852
|
var o = a.config, r = a.player;
|
|
11854
11853
|
Object.keys(yn).map(function(e) {
|
|
11855
11854
|
a[e] = yn[e].bind(a);
|
|
@@ -11873,7 +11872,7 @@ var et = {
|
|
|
11873
11872
|
click: "onProgressClick",
|
|
11874
11873
|
mouseover: "onProgressMouseOver",
|
|
11875
11874
|
mouseenter: "onProgressMouseOver"
|
|
11876
|
-
},
|
|
11875
|
+
}, zl = /* @__PURE__ */ function(a) {
|
|
11877
11876
|
A(r, a);
|
|
11878
11877
|
var o = D(r);
|
|
11879
11878
|
function r(t) {
|
|
@@ -11924,7 +11923,7 @@ var et = {
|
|
|
11924
11923
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11925
11924
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11926
11925
|
e.setTimeContent(f.format(i));
|
|
11927
|
-
}),
|
|
11926
|
+
}), Ul(this), this.on(Ue, function() {
|
|
11928
11927
|
e.show();
|
|
11929
11928
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11930
11929
|
}
|
|
@@ -12148,7 +12147,7 @@ var et = {
|
|
|
12148
12147
|
};
|
|
12149
12148
|
}
|
|
12150
12149
|
}]), r;
|
|
12151
|
-
}(W),
|
|
12150
|
+
}(W), Vl = /* @__PURE__ */ function(a) {
|
|
12152
12151
|
A(r, a);
|
|
12153
12152
|
var o = D(r);
|
|
12154
12153
|
function r(t) {
|
|
@@ -12286,7 +12285,7 @@ var et = {
|
|
|
12286
12285
|
function Qt(a) {
|
|
12287
12286
|
return a ? "background:".concat(a, ";") : "";
|
|
12288
12287
|
}
|
|
12289
|
-
var
|
|
12288
|
+
var jl = /* @__PURE__ */ function(a) {
|
|
12290
12289
|
A(r, a);
|
|
12291
12290
|
var o = D(r);
|
|
12292
12291
|
function r() {
|
|
@@ -12374,14 +12373,14 @@ var Wl = /* @__PURE__ */ function(a) {
|
|
|
12374
12373
|
FRAME_RATE: "framerate",
|
|
12375
12374
|
POSTER: "poster"
|
|
12376
12375
|
};
|
|
12377
|
-
function
|
|
12376
|
+
function Wl() {
|
|
12378
12377
|
try {
|
|
12379
12378
|
return parseInt(window.performance.now(), 10);
|
|
12380
12379
|
} catch {
|
|
12381
12380
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
12382
12381
|
}
|
|
12383
12382
|
}
|
|
12384
|
-
function
|
|
12383
|
+
function Gl() {
|
|
12385
12384
|
try {
|
|
12386
12385
|
var a = document.createElement("canvas").getContext;
|
|
12387
12386
|
return !!a;
|
|
@@ -12389,7 +12388,7 @@ function $l() {
|
|
|
12389
12388
|
return !1;
|
|
12390
12389
|
}
|
|
12391
12390
|
}
|
|
12392
|
-
var
|
|
12391
|
+
var _t = null, $l = /* @__PURE__ */ function(a) {
|
|
12393
12392
|
A(r, a);
|
|
12394
12393
|
var o = D(r);
|
|
12395
12394
|
function r() {
|
|
@@ -12410,7 +12409,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12410
12409
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
12411
12410
|
}
|
|
12412
12411
|
}), _(m(t), "start", function(s, l) {
|
|
12413
|
-
var u = t.player.video, c =
|
|
12412
|
+
var u = t.player.video, c = Wl(), h = t.checkVideoIsSupport(u);
|
|
12414
12413
|
!h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === tt.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(m(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
12415
12414
|
}), _(m(t), "stop", function() {
|
|
12416
12415
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(m(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -12583,7 +12582,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12583
12582
|
}, {
|
|
12584
12583
|
key: "isSupport",
|
|
12585
12584
|
get: function() {
|
|
12586
|
-
return typeof
|
|
12585
|
+
return typeof _t == "boolean" || (_t = Gl()), _t;
|
|
12587
12586
|
}
|
|
12588
12587
|
}, {
|
|
12589
12588
|
key: "supportCanvasFilter",
|
|
@@ -12591,7 +12590,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12591
12590
|
return !(B.browser === "safari" || B.browser === "firefox");
|
|
12592
12591
|
}
|
|
12593
12592
|
}]), r;
|
|
12594
|
-
}(W),
|
|
12593
|
+
}(W), Kl = {
|
|
12595
12594
|
LANG: "zh-cn",
|
|
12596
12595
|
TEXT: {
|
|
12597
12596
|
ERROR_TYPES: {
|
|
@@ -12666,7 +12665,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12666
12665
|
FORWARD: "快进中",
|
|
12667
12666
|
LIVE_TIP: "直播"
|
|
12668
12667
|
}
|
|
12669
|
-
}, ut = "info", ei = Kn,
|
|
12668
|
+
}, ut = "info", ei = Kn, Yl = /* @__PURE__ */ function(a) {
|
|
12670
12669
|
A(r, a);
|
|
12671
12670
|
var o = D(r);
|
|
12672
12671
|
function r() {
|
|
@@ -12705,7 +12704,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12705
12704
|
}, {
|
|
12706
12705
|
key: "afterCreate",
|
|
12707
12706
|
value: function() {
|
|
12708
|
-
this.reset(), this.on(
|
|
12707
|
+
this.reset(), this.on(xt, this._recordUserActions), this.on(ei.STATS_INFO, this._recordInfo), this.on(ei.STATS_DOWNLOAD, this._downloadStats), this.on(ei.STATS_RESET, this._onReset);
|
|
12709
12708
|
}
|
|
12710
12709
|
}, {
|
|
12711
12710
|
key: "destroy",
|
|
@@ -12851,7 +12850,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12851
12850
|
key: "afterCreate",
|
|
12852
12851
|
value: function() {
|
|
12853
12852
|
var e = this, i = this.config.useGapJump;
|
|
12854
|
-
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(
|
|
12853
|
+
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(pt, this.onGapJump), this.on(de, function() {
|
|
12855
12854
|
e.hasPlayed = !0;
|
|
12856
12855
|
}), this.on(Ot, function() {
|
|
12857
12856
|
e.seekingEventReceived = !0;
|
|
@@ -12900,7 +12899,7 @@ var kt = null, Kl = /* @__PURE__ */ function(a) {
|
|
|
12900
12899
|
}]), r;
|
|
12901
12900
|
}(W);
|
|
12902
12901
|
ir.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12903
|
-
var
|
|
12902
|
+
var Xl = /* @__PURE__ */ function(a) {
|
|
12904
12903
|
A(r, a);
|
|
12905
12904
|
var o = D(r);
|
|
12906
12905
|
function r() {
|
|
@@ -12924,7 +12923,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
12924
12923
|
key: "afterCreate",
|
|
12925
12924
|
value: function() {
|
|
12926
12925
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12927
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(
|
|
12926
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(pt, this.onWaiting), this.on([vi, Se], function() {
|
|
12928
12927
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12929
12928
|
}), this.on(de, function() {
|
|
12930
12929
|
e.hasPlayed = !0;
|
|
@@ -12946,7 +12945,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
12946
12945
|
};
|
|
12947
12946
|
}
|
|
12948
12947
|
}]), r;
|
|
12949
|
-
}(W), it = "cdn",
|
|
12948
|
+
}(W), it = "cdn", kt = ["cdn"], ql = /* @__PURE__ */ function(a) {
|
|
12950
12949
|
A(r, a);
|
|
12951
12950
|
var o = D(r);
|
|
12952
12951
|
function r() {
|
|
@@ -12965,7 +12964,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
12965
12964
|
}), _(m(t), "startTimer", function() {
|
|
12966
12965
|
f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
12967
12966
|
}), _(m(t), "initSpeedList", function() {
|
|
12968
|
-
t.speedListCache = {},
|
|
12967
|
+
t.speedListCache = {}, kt.forEach(function(s) {
|
|
12969
12968
|
t.speedListCache[s] = [];
|
|
12970
12969
|
});
|
|
12971
12970
|
}), _(m(t), "_onRealSpeedChange", function(s) {
|
|
@@ -13022,7 +13021,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
13022
13021
|
key: "afterCreate",
|
|
13023
13022
|
value: function() {
|
|
13024
13023
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
13025
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
13024
|
+
(n == null ? void 0 : n.length) > 0 && kt.push.apply(kt, ve(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Ie, bt], this.startTimer);
|
|
13026
13025
|
}
|
|
13027
13026
|
}, {
|
|
13028
13027
|
key: "getSpeedName",
|
|
@@ -13049,7 +13048,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
13049
13048
|
key: "destroy",
|
|
13050
13049
|
value: function() {
|
|
13051
13050
|
var e = this;
|
|
13052
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ie,
|
|
13051
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Ie, bt], this.startTimer), kt.forEach(function(i) {
|
|
13053
13052
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
13054
13053
|
}), 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);
|
|
13055
13054
|
}
|
|
@@ -13072,7 +13071,7 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
13072
13071
|
};
|
|
13073
13072
|
}
|
|
13074
13073
|
}]), r;
|
|
13075
|
-
}(W),
|
|
13074
|
+
}(W), Zl = /* @__PURE__ */ function(a) {
|
|
13076
13075
|
A(r, a);
|
|
13077
13076
|
var o = D(r);
|
|
13078
13077
|
function r() {
|
|
@@ -13182,24 +13181,24 @@ var ql = /* @__PURE__ */ function(a) {
|
|
|
13182
13181
|
}
|
|
13183
13182
|
}]), r;
|
|
13184
13183
|
}(W);
|
|
13185
|
-
nt.use(
|
|
13186
|
-
var
|
|
13184
|
+
nt.use(Kl);
|
|
13185
|
+
var Jl = /* @__PURE__ */ I(function a(o, r) {
|
|
13187
13186
|
var t, e, i;
|
|
13188
13187
|
x(this, a);
|
|
13189
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
13190
|
-
this.plugins = [
|
|
13188
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [pl, al, jl, zl, gl], u = [].concat(l, [ll, dl, Cl, Sl, Rl, Fl, Ll, Al, _l, Tl]), c = [za, Va, Wa, rl, Ga, Bl, Hl, Vl, Xa];
|
|
13189
|
+
this.plugins = [Yl, Ha].concat(ve(u), c, [ir, Xl]);
|
|
13191
13190
|
var h = n ? "mobile" : B.device;
|
|
13192
13191
|
switch (h) {
|
|
13193
13192
|
case "pc":
|
|
13194
|
-
(t = this.plugins).push.apply(t, [gn, Zt, vn,
|
|
13193
|
+
(t = this.plugins).push.apply(t, [gn, Zt, vn, ql, Zl]);
|
|
13195
13194
|
break;
|
|
13196
13195
|
case "mobile":
|
|
13197
|
-
(e = this.plugins).push.apply(e, [
|
|
13196
|
+
(e = this.plugins).push.apply(e, [tl]);
|
|
13198
13197
|
break;
|
|
13199
13198
|
default:
|
|
13200
13199
|
(i = this.plugins).push.apply(i, [gn, Zt, vn]);
|
|
13201
13200
|
}
|
|
13202
|
-
(B.os.isIpad || h === "pc") && this.plugins.push(
|
|
13201
|
+
(B.os.isIpad || h === "pc") && this.plugins.push($l), B.os.isIpad && this.plugins.push(Zt), this.ignores = [], this.i18n = [];
|
|
13203
13202
|
}), me = /* @__PURE__ */ function(a) {
|
|
13204
13203
|
A(r, a);
|
|
13205
13204
|
var o = D(r);
|
|
@@ -13208,20 +13207,20 @@ var Ql = /* @__PURE__ */ I(function a(o, r) {
|
|
|
13208
13207
|
}
|
|
13209
13208
|
return I(r);
|
|
13210
13209
|
}(Nt);
|
|
13211
|
-
_(me, "defaultPreset",
|
|
13210
|
+
_(me, "defaultPreset", Jl);
|
|
13212
13211
|
_(me, "Util", f);
|
|
13213
13212
|
_(me, "Sniffer", B);
|
|
13214
|
-
_(me, "Errors",
|
|
13215
|
-
_(me, "Events",
|
|
13213
|
+
_(me, "Errors", wt);
|
|
13214
|
+
_(me, "Events", da);
|
|
13216
13215
|
_(me, "Plugin", W);
|
|
13217
13216
|
_(me, "BasePlugin", He);
|
|
13218
13217
|
_(me, "I18N", nt);
|
|
13219
13218
|
_(me, "STATE_CLASS", k);
|
|
13220
13219
|
_(me, "InstManager", Jn);
|
|
13221
|
-
const
|
|
13220
|
+
const Ql = ["id"], eu = /* @__PURE__ */ Z({
|
|
13222
13221
|
name: "ElImageViewer",
|
|
13223
13222
|
__name: "Player",
|
|
13224
|
-
props: /* @__PURE__ */
|
|
13223
|
+
props: /* @__PURE__ */ Ct({
|
|
13225
13224
|
url: {
|
|
13226
13225
|
type: String,
|
|
13227
13226
|
default: ""
|
|
@@ -13242,7 +13241,7 @@ const eu = ["id"], tu = /* @__PURE__ */ Z({
|
|
|
13242
13241
|
},
|
|
13243
13242
|
modelModifiers: {}
|
|
13244
13243
|
}),
|
|
13245
|
-
emits: /* @__PURE__ */
|
|
13244
|
+
emits: /* @__PURE__ */ Ct({
|
|
13246
13245
|
close: () => !0
|
|
13247
13246
|
}, ["update:modelValue"]),
|
|
13248
13247
|
setup(a, { emit: o }) {
|
|
@@ -13316,7 +13315,7 @@ const eu = ["id"], tu = /* @__PURE__ */ Z({
|
|
|
13316
13315
|
class: K(S(h).e("canvas"))
|
|
13317
13316
|
},
|
|
13318
13317
|
[
|
|
13319
|
-
T("div", { id: S(c) }, null, 8,
|
|
13318
|
+
T("div", { id: S(c) }, null, 8, Ql),
|
|
13320
13319
|
ee(" CLOSE "),
|
|
13321
13320
|
T(
|
|
13322
13321
|
"span",
|
|
@@ -13353,22 +13352,22 @@ const eu = ["id"], tu = /* @__PURE__ */ Z({
|
|
|
13353
13352
|
};
|
|
13354
13353
|
}
|
|
13355
13354
|
});
|
|
13356
|
-
const
|
|
13355
|
+
const tu = /* @__PURE__ */ Dt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Pe(tu), nu = (a) => (pr("data-v-6a92bbab"), a = a(), vr(), a), ru = {
|
|
13357
13356
|
key: 0,
|
|
13358
13357
|
class: "preview-files"
|
|
13359
|
-
},
|
|
13358
|
+
}, su = {
|
|
13360
13359
|
class: "flex",
|
|
13361
13360
|
style: { width: "80%", "align-items": "center" }
|
|
13362
|
-
},
|
|
13361
|
+
}, ou = ["onClick"], au = ["title"], lu = { style: { color: "#b8c6d9" } }, uu = ["onClick"], cu = /* @__PURE__ */ nu(() => /* @__PURE__ */ T(
|
|
13363
13362
|
"span",
|
|
13364
13363
|
null,
|
|
13365
13364
|
"预览",
|
|
13366
13365
|
-1
|
|
13367
13366
|
/* HOISTED */
|
|
13368
|
-
)),
|
|
13367
|
+
)), fu = {
|
|
13369
13368
|
key: 1,
|
|
13370
13369
|
class: "flex preview-img"
|
|
13371
|
-
},
|
|
13370
|
+
}, hu = /* @__PURE__ */ Z({
|
|
13372
13371
|
__name: "IkDetailPreviewFiles",
|
|
13373
13372
|
props: {
|
|
13374
13373
|
// 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
|
|
@@ -13426,7 +13425,7 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13426
13425
|
var d, p;
|
|
13427
13426
|
const h = rt("el-image");
|
|
13428
13427
|
return E(), P("div", null, [
|
|
13429
|
-
o.fileType === "file" ? (E(), P("div",
|
|
13428
|
+
o.fileType === "file" ? (E(), P("div", ru, [
|
|
13430
13429
|
(E(!0), P(
|
|
13431
13430
|
Ee,
|
|
13432
13431
|
null,
|
|
@@ -13441,7 +13440,7 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13441
13440
|
})
|
|
13442
13441
|
},
|
|
13443
13442
|
[
|
|
13444
|
-
T("div",
|
|
13443
|
+
T("div", su, [
|
|
13445
13444
|
j(S(Me), {
|
|
13446
13445
|
name: n(g),
|
|
13447
13446
|
style: oe(`color:${s(g)}`),
|
|
@@ -13453,23 +13452,23 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13453
13452
|
}, [
|
|
13454
13453
|
T("p", {
|
|
13455
13454
|
title: g.name
|
|
13456
|
-
}, Ne(g.name), 9,
|
|
13455
|
+
}, Ne(g.name), 9, au),
|
|
13457
13456
|
T(
|
|
13458
13457
|
"p",
|
|
13459
|
-
|
|
13458
|
+
lu,
|
|
13460
13459
|
Ne((g.size / 1024).toFixed(2)) + "KB",
|
|
13461
13460
|
1
|
|
13462
13461
|
/* TEXT */
|
|
13463
13462
|
)
|
|
13464
|
-
], 8,
|
|
13463
|
+
], 8, ou)
|
|
13465
13464
|
]),
|
|
13466
13465
|
T("div", {
|
|
13467
13466
|
class: "file-preview",
|
|
13468
13467
|
onClick: (y) => i(g)
|
|
13469
13468
|
}, [
|
|
13470
13469
|
j(S(Me), { name: "iksvg_yulan" }),
|
|
13471
|
-
|
|
13472
|
-
], 8,
|
|
13470
|
+
cu
|
|
13471
|
+
], 8, uu)
|
|
13473
13472
|
],
|
|
13474
13473
|
4
|
|
13475
13474
|
/* STYLE */
|
|
@@ -13478,7 +13477,7 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13478
13477
|
/* KEYED_FRAGMENT */
|
|
13479
13478
|
))
|
|
13480
13479
|
])) : ee("v-if", !0),
|
|
13481
|
-
o.fileType === "img" ? (E(), P("div",
|
|
13480
|
+
o.fileType === "img" ? (E(), P("div", fu, [
|
|
13482
13481
|
(E(!0), P(
|
|
13483
13482
|
Ee,
|
|
13484
13483
|
null,
|
|
@@ -13509,8 +13508,8 @@ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(i
|
|
|
13509
13508
|
};
|
|
13510
13509
|
}
|
|
13511
13510
|
});
|
|
13512
|
-
const
|
|
13511
|
+
const du = /* @__PURE__ */ Dt(hu, [["__scopeId", "data-v-6a92bbab"]]), mu = Pe(du);
|
|
13513
13512
|
export {
|
|
13514
|
-
|
|
13515
|
-
|
|
13513
|
+
mu as IKDetailPreviewFiles,
|
|
13514
|
+
mu as default
|
|
13516
13515
|
};
|