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 J, computed as X, openBlock as E, createElementBlock as D, createElementVNode as T, inject as lt, ref as ge, resolveComponent as Ge, Fragment as Fe, renderList as
|
|
1
|
+
import { defineComponent as J, computed as X, openBlock as E, createElementBlock as D, createElementVNode as T, inject as lt, ref as ge, resolveComponent as Ge, Fragment as Fe, renderList as kt, normalizeStyle as ce, toDisplayString as xe, normalizeClass as K, createVNode as G, unref as S, withModifiers as ii, createBlock as ae, createCommentVNode as ee, renderSlot as ve, withCtx as Y, mergeModels as wt, useModel as hi, reactive as rr, watch as ft, nextTick as di, createTextVNode as st, h as sr, mergeProps as ni, createSlots as or, getCurrentScope as ar, onScopeDispose as lr, markRaw as Ri, effectScope as ur, shallowRef as cr, onMounted as fr, Teleport as Cn, Transition as kn, resolveDynamicComponent as hr, withDirectives as dr, vShow as gr, useCssVars as pr } from "vue";
|
|
2
2
|
import { useLocale as vr, useNamespace as wn, useZIndex as mr, ElIcon as De, EVENT_CODE as Xe, ElTag as yr } from "element-plus";
|
|
3
3
|
import { paramType as ri, ikFile as _r, buildUUID as bn, ikColor as Cr, _ as zt } from "iking-utils-pro";
|
|
4
4
|
const Le = (a, o) => {
|
|
@@ -751,7 +751,7 @@ var Ss = /* @__PURE__ */ J({
|
|
|
751
751
|
]));
|
|
752
752
|
}
|
|
753
753
|
}), Vs = zs;
|
|
754
|
-
const
|
|
754
|
+
const Ot = (a, o) => {
|
|
755
755
|
const r = a.__vccOpts || a;
|
|
756
756
|
for (const [t, e] of o)
|
|
757
757
|
r[t] = e;
|
|
@@ -953,7 +953,7 @@ const gt = (a, o) => {
|
|
|
953
953
|
a.simple ? (E(!0), D(
|
|
954
954
|
Fe,
|
|
955
955
|
{ key: 0 },
|
|
956
|
-
|
|
956
|
+
kt(p.value, (P, F) => (E(), D("div", {
|
|
957
957
|
class: "iking-privew-annex simple",
|
|
958
958
|
onClick: (U) => c(P),
|
|
959
959
|
style: ce({ width: d.value })
|
|
@@ -998,7 +998,7 @@ const gt = (a, o) => {
|
|
|
998
998
|
(E(!0), D(
|
|
999
999
|
Fe,
|
|
1000
1000
|
null,
|
|
1001
|
-
|
|
1001
|
+
kt(p.value, (P, F) => {
|
|
1002
1002
|
var U;
|
|
1003
1003
|
return E(), D(
|
|
1004
1004
|
"div",
|
|
@@ -1099,7 +1099,7 @@ const gt = (a, o) => {
|
|
|
1099
1099
|
});
|
|
1100
1100
|
const Js = Le(Zs), Qs = /* @__PURE__ */ J({
|
|
1101
1101
|
__name: "IkPreviewFileDialog",
|
|
1102
|
-
props: /* @__PURE__ */
|
|
1102
|
+
props: /* @__PURE__ */ wt({
|
|
1103
1103
|
file: {
|
|
1104
1104
|
type: Object,
|
|
1105
1105
|
default: () => []
|
|
@@ -1200,7 +1200,7 @@ const Js = Le(Zs), Qs = /* @__PURE__ */ J({
|
|
|
1200
1200
|
Fe,
|
|
1201
1201
|
{ key: 0 },
|
|
1202
1202
|
[
|
|
1203
|
-
(h = i.value) != null && h.url && n.image ? (E(), ae(S(
|
|
1203
|
+
(h = i.value) != null && h.url && n.image ? (E(), ae(S(Ho), {
|
|
1204
1204
|
key: 0,
|
|
1205
1205
|
onClose: c[0] || (c[0] = (g) => l()),
|
|
1206
1206
|
ref: "previewImgRef",
|
|
@@ -1208,9 +1208,9 @@ const Js = Le(Zs), Qs = /* @__PURE__ */ J({
|
|
|
1208
1208
|
teleported: "",
|
|
1209
1209
|
"z-index": 9999
|
|
1210
1210
|
}, null, 8, ["url-list"])) : ee("v-if", !0),
|
|
1211
|
-
ee('
|
|
1211
|
+
ee(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1212
1212
|
ee(" 文档类 "),
|
|
1213
|
-
G(S(
|
|
1213
|
+
G(S(tu), {
|
|
1214
1214
|
modelValue: n.video,
|
|
1215
1215
|
"onUpdate:modelValue": c[1] || (c[1] = (g) => n.video = g),
|
|
1216
1216
|
url: (p = i.value) == null ? void 0 : p.url
|
|
@@ -1233,7 +1233,7 @@ const Js = Le(Zs), Qs = /* @__PURE__ */ J({
|
|
|
1233
1233
|
default: Y(() => {
|
|
1234
1234
|
var g;
|
|
1235
1235
|
return [
|
|
1236
|
-
G(S(
|
|
1236
|
+
G(S(bo), {
|
|
1237
1237
|
"config-options": e.value,
|
|
1238
1238
|
"document-server-url": ((g = a.onlyOfficeConfig) == null ? void 0 : g.serverUrl) || a.onlyofficeServer
|
|
1239
1239
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1452,7 +1452,7 @@ const eo = Le(Qs), to = {
|
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
1454
|
});
|
|
1455
|
-
const uo = /* @__PURE__ */
|
|
1455
|
+
const uo = /* @__PURE__ */ Ot(lo, [["__scopeId", "data-v-52806adf"]]), nt = Le(uo), co = /* @__PURE__ */ J({
|
|
1456
1456
|
__name: "CloseIcon",
|
|
1457
1457
|
props: {
|
|
1458
1458
|
showBg: {
|
|
@@ -1483,9 +1483,9 @@ const uo = /* @__PURE__ */ gt(lo, [["__scopeId", "data-v-52806adf"]]), nt = Le(u
|
|
|
1483
1483
|
));
|
|
1484
1484
|
}
|
|
1485
1485
|
});
|
|
1486
|
-
const fo = /* @__PURE__ */
|
|
1486
|
+
const fo = /* @__PURE__ */ Ot(co, [["__scopeId", "data-v-da39e979"]]), ho = { class: "base-header" }, go = /* @__PURE__ */ J({
|
|
1487
1487
|
__name: "IkBaseDialog",
|
|
1488
|
-
props: /* @__PURE__ */
|
|
1488
|
+
props: /* @__PURE__ */ wt({
|
|
1489
1489
|
title: { default: "" },
|
|
1490
1490
|
cancelText: { default: "取消" },
|
|
1491
1491
|
confirmText: { default: "确认" },
|
|
@@ -1924,40 +1924,39 @@ const wo = /* @__PURE__ */ J({
|
|
|
1924
1924
|
/* STYLE */
|
|
1925
1925
|
));
|
|
1926
1926
|
}
|
|
1927
|
-
});
|
|
1928
|
-
const bo = /* @__PURE__ */ gt(wo, [["__scopeId", "data-v-98d51ef9"]]), To = Le(bo);
|
|
1927
|
+
}), bo = Le(wo);
|
|
1929
1928
|
var Bi;
|
|
1930
|
-
const Sn = typeof window < "u",
|
|
1929
|
+
const Sn = typeof window < "u", To = (a) => typeof a == "string", Eo = () => {
|
|
1931
1930
|
};
|
|
1932
1931
|
Sn && ((Bi = window == null ? void 0 : window.navigator) != null && Bi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1933
1932
|
function xn(a) {
|
|
1934
1933
|
return typeof a == "function" ? a() : S(a);
|
|
1935
1934
|
}
|
|
1936
|
-
function
|
|
1935
|
+
function So(a) {
|
|
1937
1936
|
return a;
|
|
1938
1937
|
}
|
|
1939
|
-
function
|
|
1938
|
+
function xo(a) {
|
|
1940
1939
|
return ar() ? (lr(a), !0) : !1;
|
|
1941
1940
|
}
|
|
1942
|
-
function
|
|
1941
|
+
function Io(a) {
|
|
1943
1942
|
var o;
|
|
1944
1943
|
const r = xn(a);
|
|
1945
1944
|
return (o = r == null ? void 0 : r.$el) != null ? o : r;
|
|
1946
1945
|
}
|
|
1947
|
-
const
|
|
1948
|
-
function
|
|
1946
|
+
const Po = Sn ? window : void 0;
|
|
1947
|
+
function vt(...a) {
|
|
1949
1948
|
let o, r, t, e;
|
|
1950
|
-
if (
|
|
1951
|
-
return
|
|
1949
|
+
if (To(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, o = Po) : [o, r, t, e] = a, !o)
|
|
1950
|
+
return Eo;
|
|
1952
1951
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
1953
1952
|
const i = [], n = () => {
|
|
1954
1953
|
i.forEach((c) => c()), i.length = 0;
|
|
1955
|
-
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = ft(() => [
|
|
1954
|
+
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = ft(() => [Io(o), xn(e)], ([c, h]) => {
|
|
1956
1955
|
n(), c && i.push(...r.flatMap((d) => t.map((p) => s(c, d, p, h))));
|
|
1957
1956
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1958
1957
|
l(), n();
|
|
1959
1958
|
};
|
|
1960
|
-
return
|
|
1959
|
+
return xo(u), u;
|
|
1961
1960
|
}
|
|
1962
1961
|
const Hi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ui = "__vueuse_ssr_handlers__";
|
|
1963
1962
|
Hi[Ui] = Hi[Ui] || {};
|
|
@@ -1965,15 +1964,15 @@ var zi;
|
|
|
1965
1964
|
(function(a) {
|
|
1966
1965
|
a.UP = "UP", a.RIGHT = "RIGHT", a.DOWN = "DOWN", a.LEFT = "LEFT", a.NONE = "NONE";
|
|
1967
1966
|
})(zi || (zi = {}));
|
|
1968
|
-
var
|
|
1967
|
+
var Lo = Object.defineProperty, Vi = Object.getOwnPropertySymbols, Ao = Object.prototype.hasOwnProperty, Do = Object.prototype.propertyIsEnumerable, ji = (a, o, r) => o in a ? Lo(a, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[o] = r, Oo = (a, o) => {
|
|
1969
1968
|
for (var r in o || (o = {}))
|
|
1970
|
-
|
|
1969
|
+
Ao.call(o, r) && ji(a, r, o[r]);
|
|
1971
1970
|
if (Vi)
|
|
1972
1971
|
for (var r of Vi(o))
|
|
1973
|
-
|
|
1972
|
+
Do.call(o, r) && ji(a, r, o[r]);
|
|
1974
1973
|
return a;
|
|
1975
1974
|
};
|
|
1976
|
-
const
|
|
1975
|
+
const Ro = {
|
|
1977
1976
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1978
1977
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1979
1978
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1999,10 +1998,10 @@ const Mo = {
|
|
|
1999
1998
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
2000
1999
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
2001
2000
|
};
|
|
2002
|
-
|
|
2003
|
-
linear:
|
|
2004
|
-
},
|
|
2005
|
-
const
|
|
2001
|
+
Oo({
|
|
2002
|
+
linear: So
|
|
2003
|
+
}, Ro);
|
|
2004
|
+
const Mo = {
|
|
2006
2005
|
/**
|
|
2007
2006
|
* @description preview link list.
|
|
2008
2007
|
*/
|
|
@@ -2072,15 +2071,15 @@ const Fo = {
|
|
|
2072
2071
|
crossorigin: {
|
|
2073
2072
|
type: ["anonymous", "use-credentials", ""]
|
|
2074
2073
|
}
|
|
2075
|
-
},
|
|
2074
|
+
}, Fo = {
|
|
2076
2075
|
close: () => !0,
|
|
2077
2076
|
switch: (a) => ri.isNumber(a),
|
|
2078
2077
|
rotate: (a) => ri.isNumber(a)
|
|
2079
|
-
},
|
|
2078
|
+
}, No = ["src", "crossorigin"], Bo = /* @__PURE__ */ J({
|
|
2080
2079
|
name: "ElImageViewer",
|
|
2081
2080
|
__name: "IkImageViewer",
|
|
2082
|
-
props:
|
|
2083
|
-
emits:
|
|
2081
|
+
props: Mo,
|
|
2082
|
+
emits: Fo,
|
|
2084
2083
|
setup(a, { expose: o, emit: r }) {
|
|
2085
2084
|
const t = (N) => Object.keys(N), e = {
|
|
2086
2085
|
CONTAIN: {
|
|
@@ -2152,7 +2151,7 @@ const Fo = {
|
|
|
2152
2151
|
});
|
|
2153
2152
|
});
|
|
2154
2153
|
d.run(() => {
|
|
2155
|
-
|
|
2154
|
+
vt(document, "keydown", N), vt(document, "wheel", W);
|
|
2156
2155
|
});
|
|
2157
2156
|
}
|
|
2158
2157
|
function ne() {
|
|
@@ -2174,8 +2173,8 @@ const Fo = {
|
|
|
2174
2173
|
offsetX: W + at.pageX - pe,
|
|
2175
2174
|
offsetY: q + at.pageY - _e
|
|
2176
2175
|
};
|
|
2177
|
-
}), Ae =
|
|
2178
|
-
|
|
2176
|
+
}), Ae = vt(document, "mousemove", Ce);
|
|
2177
|
+
vt(document, "mouseup", () => {
|
|
2179
2178
|
Ae();
|
|
2180
2179
|
}), N.preventDefault();
|
|
2181
2180
|
}
|
|
@@ -2430,7 +2429,7 @@ const Fo = {
|
|
|
2430
2429
|
(E(!0), D(
|
|
2431
2430
|
Fe,
|
|
2432
2431
|
null,
|
|
2433
|
-
|
|
2432
|
+
kt(N.urlList, (q, pe) => dr((E(), D("img", {
|
|
2434
2433
|
ref_for: !0,
|
|
2435
2434
|
ref: (_e) => h.value[pe] = _e,
|
|
2436
2435
|
key: q,
|
|
@@ -2441,7 +2440,7 @@ const Fo = {
|
|
|
2441
2440
|
onLoad: le,
|
|
2442
2441
|
onError: ue,
|
|
2443
2442
|
onMousedown: be
|
|
2444
|
-
}, null, 46,
|
|
2443
|
+
}, null, 46, No)), [
|
|
2445
2444
|
[gr, pe === g.value]
|
|
2446
2445
|
])),
|
|
2447
2446
|
128
|
|
@@ -2462,7 +2461,7 @@ const Fo = {
|
|
|
2462
2461
|
})
|
|
2463
2462
|
]));
|
|
2464
2463
|
}
|
|
2465
|
-
}),
|
|
2464
|
+
}), Ho = Le(Bo);
|
|
2466
2465
|
function Wi(a, o) {
|
|
2467
2466
|
var r = Object.keys(a);
|
|
2468
2467
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -2538,7 +2537,7 @@ function oi(a, o) {
|
|
|
2538
2537
|
return t.__proto__ = e, t;
|
|
2539
2538
|
}, oi(a, o);
|
|
2540
2539
|
}
|
|
2541
|
-
function
|
|
2540
|
+
function Uo() {
|
|
2542
2541
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2543
2542
|
return !1;
|
|
2544
2543
|
if (typeof Proxy == "function")
|
|
@@ -2563,7 +2562,7 @@ function vi(a, o) {
|
|
|
2563
2562
|
return v(a);
|
|
2564
2563
|
}
|
|
2565
2564
|
function A(a) {
|
|
2566
|
-
var o =
|
|
2565
|
+
var o = Uo();
|
|
2567
2566
|
return function() {
|
|
2568
2567
|
var t = O(a), e;
|
|
2569
2568
|
if (o) {
|
|
@@ -2574,14 +2573,14 @@ function A(a) {
|
|
|
2574
2573
|
return vi(this, e);
|
|
2575
2574
|
};
|
|
2576
2575
|
}
|
|
2577
|
-
function
|
|
2576
|
+
function zo(a, o) {
|
|
2578
2577
|
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = O(a), a !== null); )
|
|
2579
2578
|
;
|
|
2580
2579
|
return a;
|
|
2581
2580
|
}
|
|
2582
2581
|
function M() {
|
|
2583
2582
|
return typeof Reflect < "u" && Reflect.get ? M = Reflect.get.bind() : M = function(o, r, t) {
|
|
2584
|
-
var e =
|
|
2583
|
+
var e = zo(o, r);
|
|
2585
2584
|
if (e) {
|
|
2586
2585
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
2587
2586
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
@@ -2589,17 +2588,17 @@ function M() {
|
|
|
2589
2588
|
}, M.apply(this, arguments);
|
|
2590
2589
|
}
|
|
2591
2590
|
function me(a) {
|
|
2592
|
-
return
|
|
2591
|
+
return Vo(a) || jo(a) || Wo(a) || Go();
|
|
2593
2592
|
}
|
|
2594
|
-
function
|
|
2593
|
+
function Vo(a) {
|
|
2595
2594
|
if (Array.isArray(a))
|
|
2596
2595
|
return ai(a);
|
|
2597
2596
|
}
|
|
2598
|
-
function
|
|
2597
|
+
function jo(a) {
|
|
2599
2598
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
2600
2599
|
return Array.from(a);
|
|
2601
2600
|
}
|
|
2602
|
-
function
|
|
2601
|
+
function Wo(a, o) {
|
|
2603
2602
|
if (a) {
|
|
2604
2603
|
if (typeof a == "string")
|
|
2605
2604
|
return ai(a, o);
|
|
@@ -2616,11 +2615,11 @@ function ai(a, o) {
|
|
|
2616
2615
|
t[r] = a[r];
|
|
2617
2616
|
return t;
|
|
2618
2617
|
}
|
|
2619
|
-
function
|
|
2618
|
+
function Go() {
|
|
2620
2619
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2621
2620
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2622
2621
|
}
|
|
2623
|
-
function
|
|
2622
|
+
function $o(a, o) {
|
|
2624
2623
|
if (typeof a != "object" || a === null)
|
|
2625
2624
|
return a;
|
|
2626
2625
|
var r = a[Symbol.toPrimitive];
|
|
@@ -2633,7 +2632,7 @@ function Ko(a, o) {
|
|
|
2633
2632
|
return (o === "string" ? String : Number)(a);
|
|
2634
2633
|
}
|
|
2635
2634
|
function In(a) {
|
|
2636
|
-
var o =
|
|
2635
|
+
var o = $o(a, "string");
|
|
2637
2636
|
return typeof o == "symbol" ? o : String(o);
|
|
2638
2637
|
}
|
|
2639
2638
|
var Pn = { exports: {} };
|
|
@@ -2749,13 +2748,13 @@ var Pn = { exports: {} };
|
|
|
2749
2748
|
})(Pn);
|
|
2750
2749
|
var Ln = Pn.exports;
|
|
2751
2750
|
const An = /* @__PURE__ */ gi(Ln);
|
|
2752
|
-
var
|
|
2751
|
+
var Ko = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Vt = {
|
|
2753
2752
|
info: "color: #525252; background-color: #90ee90;",
|
|
2754
2753
|
error: "color: #525252; background-color: red;",
|
|
2755
2754
|
warn: "color: #525252; background-color: yellow; "
|
|
2756
2755
|
}, jt = "%c[xgplayer]", H = {
|
|
2757
2756
|
config: {
|
|
2758
|
-
debug:
|
|
2757
|
+
debug: Ko ? 3 : 0
|
|
2759
2758
|
},
|
|
2760
2759
|
logInfo: function(o) {
|
|
2761
2760
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -2776,10 +2775,10 @@ var Yo = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
2776
2775
|
}
|
|
2777
2776
|
}
|
|
2778
2777
|
};
|
|
2779
|
-
function
|
|
2778
|
+
function Yo(a) {
|
|
2780
2779
|
a.logInfo = H.logInfo.bind(a), a.logWarn = H.logWarn.bind(a), a.logError = H.logError.bind(a);
|
|
2781
2780
|
}
|
|
2782
|
-
var
|
|
2781
|
+
var Xo = /* @__PURE__ */ function() {
|
|
2783
2782
|
function a(o) {
|
|
2784
2783
|
x(this, a), this.bufferedList = o;
|
|
2785
2784
|
}
|
|
@@ -3025,7 +3024,7 @@ f.setStyleFromCsstext = function(a, o) {
|
|
|
3025
3024
|
a.style[t] = o[t];
|
|
3026
3025
|
});
|
|
3027
3026
|
};
|
|
3028
|
-
function
|
|
3027
|
+
function qo(a, o) {
|
|
3029
3028
|
for (var r = 0, t = o.length; r < t; r++)
|
|
3030
3029
|
if (a.indexOf(o[r]) > -1)
|
|
3031
3030
|
return !0;
|
|
@@ -3039,7 +3038,7 @@ f.filterStyleFromText = function(a) {
|
|
|
3039
3038
|
return t.map(function(n) {
|
|
3040
3039
|
if (n) {
|
|
3041
3040
|
var s = n.split(":");
|
|
3042
|
-
s.length > 1 && (
|
|
3041
|
+
s.length > 1 && (qo(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
3043
3042
|
}
|
|
3044
3043
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
3045
3044
|
a.style[n] = i[n];
|
|
@@ -3104,7 +3103,7 @@ f.getBuffered2 = function(a) {
|
|
|
3104
3103
|
}
|
|
3105
3104
|
else
|
|
3106
3105
|
e = r;
|
|
3107
|
-
return new
|
|
3106
|
+
return new Xo(e);
|
|
3108
3107
|
};
|
|
3109
3108
|
f.getEventPos = function(a) {
|
|
3110
3109
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -3228,7 +3227,7 @@ function Dn(a) {
|
|
|
3228
3227
|
var o = se(a);
|
|
3229
3228
|
return a !== null && (o === "object" || o === "function");
|
|
3230
3229
|
}
|
|
3231
|
-
function
|
|
3230
|
+
function Zo(a, o, r) {
|
|
3232
3231
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, p = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
3233
3232
|
if (typeof a != "function")
|
|
3234
3233
|
throw new TypeError("Expected a function");
|
|
@@ -3287,21 +3286,21 @@ function Jo(a, o, r) {
|
|
|
3287
3286
|
}
|
|
3288
3287
|
return Q.cancel = U, Q.flush = R, Q.pending = te, Q;
|
|
3289
3288
|
}
|
|
3290
|
-
function
|
|
3289
|
+
function Jo(a, o, r) {
|
|
3291
3290
|
var t = !0, e = !0;
|
|
3292
3291
|
if (typeof a != "function")
|
|
3293
3292
|
throw new TypeError("Expected a function");
|
|
3294
|
-
return Dn(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
3293
|
+
return Dn(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Zo(a, o, {
|
|
3295
3294
|
leading: t,
|
|
3296
3295
|
trailing: e,
|
|
3297
3296
|
maxWait: o
|
|
3298
3297
|
});
|
|
3299
3298
|
}
|
|
3300
|
-
function
|
|
3299
|
+
function Qo() {
|
|
3301
3300
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
3302
3301
|
return a === "zh-cn" && (a = "zh"), a;
|
|
3303
3302
|
}
|
|
3304
|
-
function
|
|
3303
|
+
function ea(a, o, r) {
|
|
3305
3304
|
if (a) {
|
|
3306
3305
|
var t = a.getAttribute(r);
|
|
3307
3306
|
return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
@@ -3310,7 +3309,7 @@ function ta(a, o, r) {
|
|
|
3310
3309
|
var $i = {
|
|
3311
3310
|
android: /(Android)\s([\d.]+)/,
|
|
3312
3311
|
ios: /(Version)\/([\d.]+)/
|
|
3313
|
-
},
|
|
3312
|
+
}, ta = ["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 = {
|
|
3314
3313
|
get device() {
|
|
3315
3314
|
var a = B.os;
|
|
3316
3315
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -3373,7 +3372,7 @@ var $i = {
|
|
|
3373
3372
|
if (this.supportResult)
|
|
3374
3373
|
return this.supportResult;
|
|
3375
3374
|
var r = document.createElement("video");
|
|
3376
|
-
return typeof r.canPlayType == "function" &&
|
|
3375
|
+
return typeof r.canPlayType == "function" && ta.map(function(t) {
|
|
3377
3376
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
|
|
3378
3377
|
}), this.supportResult = o, r = null, o;
|
|
3379
3378
|
},
|
|
@@ -3426,7 +3425,7 @@ var $i = {
|
|
|
3426
3425
|
4: 5104,
|
|
3427
3426
|
5: 5105,
|
|
3428
3427
|
6: 5106
|
|
3429
|
-
},
|
|
3428
|
+
}, bt = /* @__PURE__ */ I(
|
|
3430
3429
|
function a(o) {
|
|
3431
3430
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
3432
3431
|
errorType: "",
|
|
@@ -3468,23 +3467,23 @@ var $i = {
|
|
|
3468
3467
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
3469
3468
|
}
|
|
3470
3469
|
}
|
|
3471
|
-
), de = "play", mi = "playing", $e = "ended", ot = "pause",
|
|
3470
|
+
), de = "play", mi = "playing", $e = "ended", ot = "pause", gt = "error", Rt = "seeking", Ie = "seeked", he = "timeupdate", pt = "waiting", Se = "canplay", ia = "canplaythrough", He = "durationchange", On = "volumechange", Pe = "loadeddata", na = "loadedmetadata", Rn = "ratechange", Mn = "progress", yi = "loadstart", Ke = "emptied", ra = "stalled", sa = "suspend", oa = "abort", aa = "bufferedChange", _i = "focus", Fn = "blur", Ci = "ready", Nn = "urlNull", We = "autoplay_started", ki = "autoplay_was_prevented", Mt = "complete", Tt = "replay", wi = "destroy", Ft = "urlchange", ui = "download_speed_change", Bn = "leaveplayer", Hn = "enterplayer", Un = "loading", Te = "fullscreen_change", Et = "cssFullscreen_change", St = "mini_state_change", bi = "definition_change", la = "before_definition_change", ci = "after_definition_change", ua = "SEI_PARSED", ca = "retry", Ne = "video_resize", fi = "pip_change", zn = "rotate", Vn = "screenShot", xt = "playnext", jn = "shortcut", Wn = "xglog", It = "user_action", Nt = "reset", Gn = "source_error", $n = "source_success", fa = "switch_subtitle", Kn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Yn = {
|
|
3472
3471
|
STATS_INFO: "stats_info",
|
|
3473
3472
|
STATS_DOWNLOAD: "stats_download",
|
|
3474
3473
|
STATS_RESET: "stats_reset"
|
|
3475
3474
|
}, Xn = "fps_stuck";
|
|
3476
|
-
const
|
|
3475
|
+
const ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3477
3476
|
__proto__: null,
|
|
3478
|
-
ABORT:
|
|
3477
|
+
ABORT: oa,
|
|
3479
3478
|
AFTER_DEFINITION_CHANGE: ci,
|
|
3480
3479
|
AUTOPLAY_PREVENTED: ki,
|
|
3481
3480
|
AUTOPLAY_STARTED: We,
|
|
3482
|
-
BEFORE_DEFINITION_CHANGE:
|
|
3483
|
-
BUFFER_CHANGE:
|
|
3481
|
+
BEFORE_DEFINITION_CHANGE: la,
|
|
3482
|
+
BUFFER_CHANGE: aa,
|
|
3484
3483
|
CANPLAY: Se,
|
|
3485
|
-
CANPLAY_THROUGH:
|
|
3484
|
+
CANPLAY_THROUGH: ia,
|
|
3486
3485
|
COMPLETE: Mt,
|
|
3487
|
-
CSS_FULLSCREEN_CHANGE:
|
|
3486
|
+
CSS_FULLSCREEN_CHANGE: Et,
|
|
3488
3487
|
DEFINITION_CHANGE: bi,
|
|
3489
3488
|
DESTROY: wi,
|
|
3490
3489
|
DOWNLOAD_SPEED_CHANGE: ui,
|
|
@@ -3492,54 +3491,54 @@ const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3492
3491
|
EMPTIED: Ke,
|
|
3493
3492
|
ENDED: $e,
|
|
3494
3493
|
ENTER_PLAYER: Hn,
|
|
3495
|
-
ERROR:
|
|
3494
|
+
ERROR: gt,
|
|
3496
3495
|
FPS_STUCK: Xn,
|
|
3497
3496
|
FULLSCREEN_CHANGE: Te,
|
|
3498
3497
|
LEAVE_PLAYER: Bn,
|
|
3499
3498
|
LOADED_DATA: Pe,
|
|
3500
|
-
LOADED_METADATA:
|
|
3499
|
+
LOADED_METADATA: na,
|
|
3501
3500
|
LOADING: Un,
|
|
3502
3501
|
LOAD_START: yi,
|
|
3503
|
-
MINI_STATE_CHANGE:
|
|
3502
|
+
MINI_STATE_CHANGE: St,
|
|
3504
3503
|
PAUSE: ot,
|
|
3505
3504
|
PIP_CHANGE: fi,
|
|
3506
3505
|
PLAY: de,
|
|
3507
3506
|
PLAYER_BLUR: Fn,
|
|
3508
3507
|
PLAYER_FOCUS: _i,
|
|
3509
3508
|
PLAYING: mi,
|
|
3510
|
-
PLAYNEXT:
|
|
3509
|
+
PLAYNEXT: xt,
|
|
3511
3510
|
PROGRESS: Mn,
|
|
3512
3511
|
RATE_CHANGE: Rn,
|
|
3513
3512
|
READY: Ci,
|
|
3514
|
-
REPLAY:
|
|
3513
|
+
REPLAY: Tt,
|
|
3515
3514
|
RESET: Nt,
|
|
3516
|
-
RETRY:
|
|
3515
|
+
RETRY: ca,
|
|
3517
3516
|
ROTATE: zn,
|
|
3518
3517
|
SCREEN_SHOT: Vn,
|
|
3519
3518
|
SEEKED: Ie,
|
|
3520
3519
|
SEEKING: Rt,
|
|
3521
|
-
SEI_PARSED:
|
|
3520
|
+
SEI_PARSED: ua,
|
|
3522
3521
|
SHORTCUT: jn,
|
|
3523
3522
|
SOURCE_ERROR: Gn,
|
|
3524
3523
|
SOURCE_SUCCESS: $n,
|
|
3525
|
-
STALLED:
|
|
3524
|
+
STALLED: ra,
|
|
3526
3525
|
STATS_EVENTS: Yn,
|
|
3527
|
-
SUSPEND:
|
|
3528
|
-
SWITCH_SUBTITLE:
|
|
3526
|
+
SUSPEND: sa,
|
|
3527
|
+
SWITCH_SUBTITLE: fa,
|
|
3529
3528
|
TIME_UPDATE: he,
|
|
3530
3529
|
URL_CHANGE: Ft,
|
|
3531
3530
|
URL_NULL: Nn,
|
|
3532
|
-
USER_ACTION:
|
|
3531
|
+
USER_ACTION: It,
|
|
3533
3532
|
VIDEO_EVENTS: Kn,
|
|
3534
3533
|
VIDEO_RESIZE: Ne,
|
|
3535
3534
|
VOLUME_CHANGE: On,
|
|
3536
|
-
WAITING:
|
|
3535
|
+
WAITING: pt,
|
|
3537
3536
|
XGLOG: Wn
|
|
3538
3537
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3539
3538
|
function Wt(a, o) {
|
|
3540
3539
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
3541
3540
|
}
|
|
3542
|
-
function
|
|
3541
|
+
function da(a, o) {
|
|
3543
3542
|
return function(r, t) {
|
|
3544
3543
|
var e = {
|
|
3545
3544
|
player: o,
|
|
@@ -3574,7 +3573,7 @@ function ga(a, o) {
|
|
|
3574
3573
|
Wt.call(o, a, e);
|
|
3575
3574
|
};
|
|
3576
3575
|
}
|
|
3577
|
-
var
|
|
3576
|
+
var ga = /* @__PURE__ */ function(a) {
|
|
3578
3577
|
L(r, a);
|
|
3579
3578
|
var o = A(r);
|
|
3580
3579
|
function r(t) {
|
|
@@ -3618,7 +3617,7 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
3618
3617
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
3619
3618
|
this._evHandlers || (this._evHandlers = Kn.map(function(n) {
|
|
3620
3619
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
3621
|
-
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n,
|
|
3620
|
+
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, da(n, e));
|
|
3622
3621
|
})), this._evHandlers.forEach(function(n) {
|
|
3623
3622
|
var s = Object.keys(n)[0];
|
|
3624
3623
|
i.addEventListener(s, n[s], !1);
|
|
@@ -3670,7 +3669,7 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
3670
3669
|
l ? l.error(h, p) : n.errorHandler("error", p);
|
|
3671
3670
|
}
|
|
3672
3671
|
var g = Ki[4];
|
|
3673
|
-
n.emit(Gn, new
|
|
3672
|
+
n.emit(Gn, new bt(n, {
|
|
3674
3673
|
errorType: g,
|
|
3675
3674
|
errorCode: 4,
|
|
3676
3675
|
errorMessage: "sources_load_error",
|
|
@@ -3707,7 +3706,7 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
3707
3706
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
3708
3707
|
code: 6,
|
|
3709
3708
|
message: l
|
|
3710
|
-
}), this.emit(e, new
|
|
3709
|
+
}), this.emit(e, new bt(this, {
|
|
3711
3710
|
errorType: s,
|
|
3712
3711
|
errorCode: n.code,
|
|
3713
3712
|
errorMessage: n.message || "",
|
|
@@ -3928,7 +3927,7 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
3928
3927
|
},
|
|
3929
3928
|
set: function(e) {
|
|
3930
3929
|
if (this.media) {
|
|
3931
|
-
if (this.emit(Ft, e), this.emit(
|
|
3930
|
+
if (this.emit(Ft, e), this.emit(pt), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
|
|
3932
3931
|
this.onWaiting();
|
|
3933
3932
|
return;
|
|
3934
3933
|
}
|
|
@@ -3992,7 +3991,7 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
3992
3991
|
M(O(r.prototype), "removeAllListeners", this).call(this);
|
|
3993
3992
|
}
|
|
3994
3993
|
}]), r;
|
|
3995
|
-
}(An),
|
|
3994
|
+
}(An), pa = /* @__PURE__ */ function() {
|
|
3996
3995
|
function a() {
|
|
3997
3996
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3998
3997
|
name: "xgplayer",
|
|
@@ -4071,7 +4070,7 @@ var pa = /* @__PURE__ */ function(a) {
|
|
|
4071
4070
|
}
|
|
4072
4071
|
}]), a;
|
|
4073
4072
|
}(), Xi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], qi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Zi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], je = "data-xgplayerid";
|
|
4074
|
-
function
|
|
4073
|
+
function mt(a, o, r) {
|
|
4075
4074
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
4076
4075
|
e[i - 3] = arguments[i];
|
|
4077
4076
|
var n = o.call.apply(o, [a].concat(e));
|
|
@@ -4081,7 +4080,7 @@ function yt(a, o, r) {
|
|
|
4081
4080
|
r.call.apply(r, [a].concat(l));
|
|
4082
4081
|
}) : r.call.apply(r, [a].concat(e)));
|
|
4083
4082
|
}
|
|
4084
|
-
function
|
|
4083
|
+
function Pt(a, o) {
|
|
4085
4084
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
4086
4085
|
pre: null,
|
|
4087
4086
|
next: null
|
|
@@ -4099,23 +4098,23 @@ function Lt(a, o) {
|
|
|
4099
4098
|
try {
|
|
4100
4099
|
var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
|
|
4101
4100
|
s ? s.then ? s.then(function(l) {
|
|
4102
|
-
l !== !1 &&
|
|
4101
|
+
l !== !1 && mt.apply(void 0, [e, o, r.next].concat(me(t)));
|
|
4103
4102
|
}).catch(function(l) {
|
|
4104
4103
|
throw l;
|
|
4105
|
-
}) :
|
|
4104
|
+
}) : 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)));
|
|
4106
4105
|
} catch (l) {
|
|
4107
4106
|
throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
|
|
4108
4107
|
}
|
|
4109
4108
|
else
|
|
4110
|
-
|
|
4109
|
+
mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
4111
4110
|
}).bind(this);
|
|
4112
4111
|
}
|
|
4113
|
-
function
|
|
4112
|
+
function Lt(a, o) {
|
|
4114
4113
|
var r = this.__hooks;
|
|
4115
4114
|
if (r)
|
|
4116
4115
|
return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
4117
4116
|
}
|
|
4118
|
-
function
|
|
4117
|
+
function At(a, o) {
|
|
4119
4118
|
var r = this.__hooks;
|
|
4120
4119
|
r && delete r[a];
|
|
4121
4120
|
}
|
|
@@ -4300,21 +4299,21 @@ var Be = /* @__PURE__ */ function() {
|
|
|
4300
4299
|
}, {
|
|
4301
4300
|
key: "hook",
|
|
4302
4301
|
value: function(r, t) {
|
|
4303
|
-
return
|
|
4302
|
+
return Pt.call.apply(Pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4304
4303
|
}
|
|
4305
4304
|
}, {
|
|
4306
4305
|
key: "useHooks",
|
|
4307
4306
|
value: function(r, t) {
|
|
4308
4307
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
4309
4308
|
i[n - 2] = arguments[n];
|
|
4310
|
-
return
|
|
4309
|
+
return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4311
4310
|
}
|
|
4312
4311
|
}, {
|
|
4313
4312
|
key: "removeHooks",
|
|
4314
4313
|
value: function(r, t) {
|
|
4315
4314
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
4316
4315
|
i[n - 2] = arguments[n];
|
|
4317
|
-
return
|
|
4316
|
+
return At.call.apply(At, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4318
4317
|
}
|
|
4319
4318
|
}, {
|
|
4320
4319
|
key: "registerPlugin",
|
|
@@ -4356,40 +4355,40 @@ var Be = /* @__PURE__ */ function() {
|
|
|
4356
4355
|
return "pluginName";
|
|
4357
4356
|
}
|
|
4358
4357
|
}]), a;
|
|
4359
|
-
}(),
|
|
4358
|
+
}(), va = 9;
|
|
4360
4359
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
4361
4360
|
var qe = Element.prototype;
|
|
4362
4361
|
qe.matches = qe.matchesSelector || qe.mozMatchesSelector || qe.msMatchesSelector || qe.oMatchesSelector || qe.webkitMatchesSelector;
|
|
4363
4362
|
}
|
|
4364
|
-
function
|
|
4365
|
-
for (; a && a.nodeType !==
|
|
4363
|
+
function ma(a, o) {
|
|
4364
|
+
for (; a && a.nodeType !== va; ) {
|
|
4366
4365
|
if (typeof a.matches == "function" && a.matches(o))
|
|
4367
4366
|
return a;
|
|
4368
4367
|
a = a.parentNode;
|
|
4369
4368
|
}
|
|
4370
4369
|
}
|
|
4371
|
-
var
|
|
4370
|
+
var ya = ma, _a = ya;
|
|
4372
4371
|
function $t(a, o, r, t, e) {
|
|
4373
|
-
var i =
|
|
4372
|
+
var i = ka.apply(this, arguments);
|
|
4374
4373
|
return a.addEventListener(r, i, e), {
|
|
4375
4374
|
destroy: function() {
|
|
4376
4375
|
a.removeEventListener(r, i, e);
|
|
4377
4376
|
}
|
|
4378
4377
|
};
|
|
4379
4378
|
}
|
|
4380
|
-
function
|
|
4379
|
+
function Ca(a, o, r, t, e) {
|
|
4381
4380
|
return typeof a.addEventListener == "function" ? $t.apply(null, arguments) : typeof r == "function" ? $t.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
|
|
4382
4381
|
return $t(i, o, r, t, e);
|
|
4383
4382
|
}));
|
|
4384
4383
|
}
|
|
4385
|
-
function
|
|
4384
|
+
function ka(a, o, r, t) {
|
|
4386
4385
|
return function(e) {
|
|
4387
|
-
e.delegateTarget =
|
|
4386
|
+
e.delegateTarget = _a(e.target, o), e.delegateTarget && t.call(a, e);
|
|
4388
4387
|
};
|
|
4389
4388
|
}
|
|
4390
|
-
var
|
|
4391
|
-
const en = /* @__PURE__ */ gi(
|
|
4392
|
-
var
|
|
4389
|
+
var wa = Ca;
|
|
4390
|
+
const en = /* @__PURE__ */ gi(wa);
|
|
4391
|
+
var ba = {
|
|
4393
4392
|
CONTROLS: "controls",
|
|
4394
4393
|
ROOT: "root"
|
|
4395
4394
|
}, $ = {
|
|
@@ -4409,10 +4408,10 @@ var Ta = {
|
|
|
4409
4408
|
function Kt(a) {
|
|
4410
4409
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
4411
4410
|
}
|
|
4412
|
-
function
|
|
4411
|
+
function Ta(a, o) {
|
|
4413
4412
|
return se(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
|
|
4414
4413
|
}
|
|
4415
|
-
function
|
|
4414
|
+
function Ea(a, o) {
|
|
4416
4415
|
return se(a) === "object" && a.attr && se(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
4417
4416
|
o[r] = a.attr[r];
|
|
4418
4417
|
}), o;
|
|
@@ -4435,14 +4434,14 @@ function nn(a, o) {
|
|
|
4435
4434
|
}
|
|
4436
4435
|
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);
|
|
4437
4436
|
}
|
|
4438
|
-
function
|
|
4437
|
+
function Sa(a, o) {
|
|
4439
4438
|
var r = o.config.icons || o.playerConfig.icons;
|
|
4440
4439
|
Object.keys(a).map(function(t) {
|
|
4441
4440
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
4442
|
-
r && r[t] && (i =
|
|
4441
|
+
r && r[t] && (i = Ta(r[t], i), n = Ea(r[t], n), s = nn(r[t], t, i, n, o.pluginName)), !s && e && (s = nn(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
|
|
4443
4442
|
});
|
|
4444
4443
|
}
|
|
4445
|
-
function
|
|
4444
|
+
function xa(a, o) {
|
|
4446
4445
|
Object.keys(a).map(function(r) {
|
|
4447
4446
|
Object.defineProperty(o.langText, r, {
|
|
4448
4447
|
get: function() {
|
|
@@ -4466,9 +4465,9 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4466
4465
|
var i = e.root, n = null;
|
|
4467
4466
|
this.icons = {}, this.root = null, this.parent = null;
|
|
4468
4467
|
var s = this.registerIcons() || {};
|
|
4469
|
-
|
|
4468
|
+
Sa(s, this), this.langText = {};
|
|
4470
4469
|
var l = this.registerLanguageTexts() || {};
|
|
4471
|
-
|
|
4470
|
+
xa(l, this);
|
|
4472
4471
|
var u = "";
|
|
4473
4472
|
try {
|
|
4474
4473
|
u = this.render();
|
|
@@ -4737,7 +4736,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4737
4736
|
}, {
|
|
4738
4737
|
key: "ROOT_TYPES",
|
|
4739
4738
|
get: function() {
|
|
4740
|
-
return
|
|
4739
|
+
return ba;
|
|
4741
4740
|
}
|
|
4742
4741
|
}, {
|
|
4743
4742
|
key: "POSITIONS",
|
|
@@ -4745,7 +4744,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4745
4744
|
return $;
|
|
4746
4745
|
}
|
|
4747
4746
|
}]), r;
|
|
4748
|
-
}(Be),
|
|
4747
|
+
}(Be), Ia = /* @__PURE__ */ function() {
|
|
4749
4748
|
function a() {
|
|
4750
4749
|
var o = this;
|
|
4751
4750
|
if (x(this, a), _(this, "__trigger", function(r) {
|
|
@@ -4755,7 +4754,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4755
4754
|
o.__runHandler(r[e].target);
|
|
4756
4755
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
4757
4756
|
try {
|
|
4758
|
-
this.observer = new window.ResizeObserver(
|
|
4757
|
+
this.observer = new window.ResizeObserver(Jo(this.__trigger, 100, {
|
|
4759
4758
|
trailing: !0
|
|
4760
4759
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
4761
4760
|
} catch (r) {
|
|
@@ -4810,17 +4809,17 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4810
4809
|
}
|
|
4811
4810
|
}]), a;
|
|
4812
4811
|
}(), ct = null;
|
|
4813
|
-
function
|
|
4814
|
-
return ct || (ct = new
|
|
4812
|
+
function Pa(a, o) {
|
|
4813
|
+
return ct || (ct = new Ia()), ct.addObserver(a, o), ct;
|
|
4815
4814
|
}
|
|
4816
|
-
function
|
|
4815
|
+
function La(a, o) {
|
|
4817
4816
|
ct.unObserver(a, o);
|
|
4818
4817
|
}
|
|
4819
4818
|
var ie = {
|
|
4820
4819
|
pluginGroup: {},
|
|
4821
4820
|
init: function(o) {
|
|
4822
4821
|
var r = o._pluginInfoId;
|
|
4823
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver &&
|
|
4822
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && Pa(o.root, function() {
|
|
4824
4823
|
o.resize();
|
|
4825
4824
|
}), this.pluginGroup[r] = {
|
|
4826
4825
|
_originalOptions: o.config || {},
|
|
@@ -5006,7 +5005,7 @@ var ie = {
|
|
|
5006
5005
|
destroy: function(o) {
|
|
5007
5006
|
var r = o._pluginInfoId;
|
|
5008
5007
|
if (this.pluginGroup[r]) {
|
|
5009
|
-
|
|
5008
|
+
La(o.root);
|
|
5010
5009
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
5011
5010
|
var n = i[e];
|
|
5012
5011
|
this.unRegister(r, n);
|
|
@@ -5092,7 +5091,7 @@ function rn() {
|
|
|
5092
5091
|
ignores: [],
|
|
5093
5092
|
whitelist: [],
|
|
5094
5093
|
inactive: 3e3,
|
|
5095
|
-
lang:
|
|
5094
|
+
lang: Qo(),
|
|
5096
5095
|
controls: !0,
|
|
5097
5096
|
marginControls: !1,
|
|
5098
5097
|
fullscreenTarget: null,
|
|
@@ -5128,7 +5127,7 @@ function rn() {
|
|
|
5128
5127
|
}
|
|
5129
5128
|
};
|
|
5130
5129
|
}
|
|
5131
|
-
var
|
|
5130
|
+
var Aa = function(o, r) {
|
|
5132
5131
|
var t, e, i;
|
|
5133
5132
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
5134
5133
|
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;
|
|
@@ -5137,7 +5136,7 @@ var Da = function(o, r) {
|
|
|
5137
5136
|
});
|
|
5138
5137
|
var m = o.config.i18n || [];
|
|
5139
5138
|
g.push.apply(g, me(m)), o.config.i18n = g;
|
|
5140
|
-
},
|
|
5139
|
+
}, Da = /* @__PURE__ */ function(a) {
|
|
5141
5140
|
L(r, a);
|
|
5142
5141
|
var o = A(r);
|
|
5143
5142
|
function r() {
|
|
@@ -5171,7 +5170,7 @@ var Da = function(o, r) {
|
|
|
5171
5170
|
};
|
|
5172
5171
|
Object.keys(u).map(function(h) {
|
|
5173
5172
|
e.root.style[h] = u[h];
|
|
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(
|
|
5173
|
+
}), 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(St, function(h) {
|
|
5175
5174
|
h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
|
|
5176
5175
|
});
|
|
5177
5176
|
var c = this.playerConfig.isMobileSimulateMode;
|
|
@@ -5298,7 +5297,7 @@ var Da = function(o, r) {
|
|
|
5298
5297
|
};
|
|
5299
5298
|
}
|
|
5300
5299
|
}]), r;
|
|
5301
|
-
}(j),
|
|
5300
|
+
}(j), Oa = {
|
|
5302
5301
|
LANG: "en",
|
|
5303
5302
|
TEXT: {
|
|
5304
5303
|
ERROR_TYPES: {
|
|
@@ -5393,7 +5392,7 @@ function Jn() {
|
|
|
5393
5392
|
fe.textKeys[a] = a;
|
|
5394
5393
|
});
|
|
5395
5394
|
}
|
|
5396
|
-
function
|
|
5395
|
+
function Ra(a, o) {
|
|
5397
5396
|
var r = [];
|
|
5398
5397
|
if (o || (o = fe), !!o.lang) {
|
|
5399
5398
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -5416,7 +5415,7 @@ function Ti(a, o) {
|
|
|
5416
5415
|
r === "zh" && (r = "zh-cn"), o.lang[r] ? dt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), Jn();
|
|
5417
5416
|
}
|
|
5418
5417
|
}
|
|
5419
|
-
function
|
|
5418
|
+
function Ma(a) {
|
|
5420
5419
|
var o, r = {
|
|
5421
5420
|
lang: {},
|
|
5422
5421
|
langKeys: [],
|
|
@@ -5425,7 +5424,7 @@ function Fa(a) {
|
|
|
5425
5424
|
};
|
|
5426
5425
|
return dt(r.lang, fe.lang), (o = r.langKeys).push.apply(o, me(fe.langKeys)), dt(r.textKeys, fe.textKeys), r;
|
|
5427
5426
|
}
|
|
5428
|
-
Ti(
|
|
5427
|
+
Ti(Oa);
|
|
5429
5428
|
var rt = {
|
|
5430
5429
|
get textKeys() {
|
|
5431
5430
|
return fe.textKeys;
|
|
@@ -5439,9 +5438,9 @@ var rt = {
|
|
|
5439
5438
|
a[o] = fe.lang[o];
|
|
5440
5439
|
}), fe.lang["zh-cn"] && (a.zh = fe.lang["zh-cn"] || {}), a;
|
|
5441
5440
|
},
|
|
5442
|
-
extend:
|
|
5441
|
+
extend: Ra,
|
|
5443
5442
|
use: Ti,
|
|
5444
|
-
init:
|
|
5443
|
+
init: Ma
|
|
5445
5444
|
}, V = {
|
|
5446
5445
|
INITIAL: 1,
|
|
5447
5446
|
READY: 2,
|
|
@@ -5538,7 +5537,7 @@ var rt = {
|
|
|
5538
5537
|
}
|
|
5539
5538
|
}]), r;
|
|
5540
5539
|
}(Ln.EventEmitter);
|
|
5541
|
-
function
|
|
5540
|
+
function Fa(a) {
|
|
5542
5541
|
for (var o = Object.keys(oe), r = 0; r < o.length; r++) {
|
|
5543
5542
|
var t = oe[o[r]];
|
|
5544
5543
|
if (t.root === a)
|
|
@@ -5546,7 +5545,7 @@ function Na(a) {
|
|
|
5546
5545
|
}
|
|
5547
5546
|
return null;
|
|
5548
5547
|
}
|
|
5549
|
-
var
|
|
5548
|
+
var Na = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /* @__PURE__ */ function(a) {
|
|
5550
5549
|
L(r, a);
|
|
5551
5550
|
var o = A(r);
|
|
5552
5551
|
function r(t) {
|
|
@@ -5564,7 +5563,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
5564
5563
|
e.resize();
|
|
5565
5564
|
}, 100);
|
|
5566
5565
|
}, k = f.getFullScreenEl();
|
|
5567
|
-
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(
|
|
5566
|
+
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(It, {
|
|
5568
5567
|
eventType: "system",
|
|
5569
5568
|
action: "switch_fullscreen",
|
|
5570
5569
|
pluginName: "player",
|
|
@@ -5576,7 +5575,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
5576
5575
|
to: !1
|
|
5577
5576
|
}]
|
|
5578
5577
|
});
|
|
5579
|
-
var b =
|
|
5578
|
+
var b = ea(k, e.playerId, je);
|
|
5580
5579
|
if (m || k && (k === e._fullscreenEl || b))
|
|
5581
5580
|
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(Te, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5582
5581
|
else if (e.fullscreen) {
|
|
@@ -5596,7 +5595,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
5596
5595
|
e._fullscreenEl = e.media, e.onFullscreenChange(g, !0);
|
|
5597
5596
|
}), _(v(e), "_onWebkitendfullscreen", function(g) {
|
|
5598
5597
|
e.onFullscreenChange(g, !1);
|
|
5599
|
-
}), qn(v(e),
|
|
5598
|
+
}), qn(v(e), Na), e.config = i, e._pluginInfoId = f.generateSessionId(), Yo(v(e));
|
|
5600
5599
|
var n = e.constructor.defaultPreset;
|
|
5601
5600
|
if (e.config.presets.length) {
|
|
5602
5601
|
var s = e.config.presets.indexOf("default");
|
|
@@ -5625,7 +5624,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
5625
5624
|
}, e._offsetInfo = {
|
|
5626
5625
|
currentTime: -1,
|
|
5627
5626
|
duration: 0
|
|
5628
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = rt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
5627
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = rt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new pa(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5629
5628
|
isActiveLocked: !1
|
|
5630
5629
|
}, e.instManager = Oe;
|
|
5631
5630
|
var l = e._initDOM();
|
|
@@ -5651,13 +5650,13 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
5651
5650
|
if (n && n.nodeType === 1)
|
|
5652
5651
|
this.root = n;
|
|
5653
5652
|
else
|
|
5654
|
-
return this.emit(
|
|
5653
|
+
return this.emit(gt, new bt("use", this.config.vid, {
|
|
5655
5654
|
line: 32,
|
|
5656
5655
|
handle: "Constructor",
|
|
5657
5656
|
msg: "container id can't be empty"
|
|
5658
5657
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5659
5658
|
}
|
|
5660
|
-
var s =
|
|
5659
|
+
var s = Fa(this.root);
|
|
5661
5660
|
s && (H.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(je, this.playerId), (e = Oe) === null || e === void 0 || e.add(this), ie.init(this), this._initBaseDoms();
|
|
5662
5661
|
var l = this.constructor.XgVideoProxy;
|
|
5663
5662
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -5667,7 +5666,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
5667
5666
|
this.attachVideoEvents(c), this.media = c;
|
|
5668
5667
|
}
|
|
5669
5668
|
if (this.media.setAttribute(je, this.playerId), this.config.controls) {
|
|
5670
|
-
var h = this.config.controls.root || null, d = ie.register(this,
|
|
5669
|
+
var h = this.config.controls.root || null, d = ie.register(this, Da, {
|
|
5671
5670
|
root: h
|
|
5672
5671
|
});
|
|
5673
5672
|
this.controls = d;
|
|
@@ -5775,7 +5774,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
5775
5774
|
value: function() {
|
|
5776
5775
|
var e = this;
|
|
5777
5776
|
this.config.presets.forEach(function(i) {
|
|
5778
|
-
|
|
5777
|
+
Aa(e, i);
|
|
5779
5778
|
});
|
|
5780
5779
|
}
|
|
5781
5780
|
}, {
|
|
@@ -6075,7 +6074,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
6075
6074
|
i && i.catch && i.catch(function(n) {
|
|
6076
6075
|
console.log(n);
|
|
6077
6076
|
});
|
|
6078
|
-
}), e.emit(
|
|
6077
|
+
}), e.emit(Tt), e.onPlay();
|
|
6079
6078
|
});
|
|
6080
6079
|
}
|
|
6081
6080
|
}, {
|
|
@@ -6154,7 +6153,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
6154
6153
|
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
|
|
6155
6154
|
this.changeFullStyle(this.root, e, i);
|
|
6156
6155
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
6157
|
-
l && (this.fullscreen = !0, this.emit(Te, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(
|
|
6156
|
+
l && (this.fullscreen = !0, this.emit(Te, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Et, !0);
|
|
6158
6157
|
}
|
|
6159
6158
|
}, {
|
|
6160
6159
|
key: "exitCssFullscreen",
|
|
@@ -6166,7 +6165,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
6166
6165
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
6167
6166
|
s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(Te, !1)) : this.removeClass(e);
|
|
6168
6167
|
}
|
|
6169
|
-
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(
|
|
6168
|
+
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Et, !1);
|
|
6170
6169
|
}
|
|
6171
6170
|
}, {
|
|
6172
6171
|
key: "getRotateFullscreen",
|
|
@@ -6331,7 +6330,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
6331
6330
|
value: function(e, i, n) {
|
|
6332
6331
|
if (!(!this.media || !i || !e)) {
|
|
6333
6332
|
var s = f.typeOf(e) === "String" ? e : e.type || "";
|
|
6334
|
-
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(
|
|
6333
|
+
n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(It, Z({
|
|
6335
6334
|
eventType: s,
|
|
6336
6335
|
action: i,
|
|
6337
6336
|
currentTime: this.currentTime,
|
|
@@ -6417,7 +6416,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
6417
6416
|
value: function(e) {
|
|
6418
6417
|
var i = this;
|
|
6419
6418
|
this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Ee(this, "playnext", function() {
|
|
6420
|
-
i.start(), i.emit(
|
|
6419
|
+
i.start(), i.emit(xt, e);
|
|
6421
6420
|
});
|
|
6422
6421
|
}
|
|
6423
6422
|
}, {
|
|
@@ -6656,17 +6655,17 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
6656
6655
|
}, {
|
|
6657
6656
|
key: "hook",
|
|
6658
6657
|
value: function(e, i) {
|
|
6659
|
-
return
|
|
6658
|
+
return Pt.call.apply(Pt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6660
6659
|
}
|
|
6661
6660
|
}, {
|
|
6662
6661
|
key: "useHooks",
|
|
6663
6662
|
value: function(e, i) {
|
|
6664
|
-
return
|
|
6663
|
+
return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6665
6664
|
}
|
|
6666
6665
|
}, {
|
|
6667
6666
|
key: "removeHooks",
|
|
6668
6667
|
value: function(e, i) {
|
|
6669
|
-
return
|
|
6668
|
+
return At.call.apply(At, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6670
6669
|
}
|
|
6671
6670
|
}, {
|
|
6672
6671
|
key: "usePluginHooks",
|
|
@@ -6737,7 +6736,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
|
|
|
6737
6736
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
6738
6737
|
}
|
|
6739
6738
|
}]), r;
|
|
6740
|
-
}(
|
|
6739
|
+
}(ga);
|
|
6741
6740
|
_(Bt, "defaultPreset", null);
|
|
6742
6741
|
_(Bt, "XgVideoProxy", null);
|
|
6743
6742
|
Bt.instManager = Qn.getInstance();
|
|
@@ -6752,7 +6751,7 @@ var Re = {
|
|
|
6752
6751
|
WAIT_END: "waitingEnd",
|
|
6753
6752
|
SEEK_START: "seekStart",
|
|
6754
6753
|
SEEK_END: "seekEnd"
|
|
6755
|
-
},
|
|
6754
|
+
}, Ba = /* @__PURE__ */ function(a) {
|
|
6756
6755
|
L(r, a);
|
|
6757
6756
|
var o = A(r);
|
|
6758
6757
|
function r() {
|
|
@@ -6815,7 +6814,7 @@ var Re = {
|
|
|
6815
6814
|
e.endState("destroy");
|
|
6816
6815
|
}), this.on(Ft, function() {
|
|
6817
6816
|
e.endState("urlChange"), H.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
6818
|
-
}), this.on([mi, Se], this._onPlaying), this.on(
|
|
6817
|
+
}), this.on([mi, Se], this._onPlaying), this.on(pt, this._onWaiting), this.on(gt, this._onError), this.on(Nt, function() {
|
|
6819
6818
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
6820
6819
|
});
|
|
6821
6820
|
}
|
|
@@ -6903,13 +6902,13 @@ var Re = {
|
|
|
6903
6902
|
}
|
|
6904
6903
|
}]), r;
|
|
6905
6904
|
}(j);
|
|
6906
|
-
function
|
|
6905
|
+
function Ha() {
|
|
6907
6906
|
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">
|
|
6908
6907
|
<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>
|
|
6909
6908
|
</svg>
|
|
6910
6909
|
`, "image/svg+xml").firstChild;
|
|
6911
6910
|
}
|
|
6912
|
-
var
|
|
6911
|
+
var Ua = /* @__PURE__ */ function(a) {
|
|
6913
6912
|
L(r, a);
|
|
6914
6913
|
var o = A(r);
|
|
6915
6914
|
function r() {
|
|
@@ -6919,7 +6918,7 @@ var za = /* @__PURE__ */ function(a) {
|
|
|
6919
6918
|
key: "registerIcons",
|
|
6920
6919
|
value: function() {
|
|
6921
6920
|
return {
|
|
6922
|
-
replay:
|
|
6921
|
+
replay: Ha
|
|
6923
6922
|
};
|
|
6924
6923
|
}
|
|
6925
6924
|
}, {
|
|
@@ -6992,7 +6991,7 @@ var za = /* @__PURE__ */ function(a) {
|
|
|
6992
6991
|
};
|
|
6993
6992
|
}
|
|
6994
6993
|
}]), r;
|
|
6995
|
-
}(j),
|
|
6994
|
+
}(j), za = /* @__PURE__ */ function(a) {
|
|
6996
6995
|
L(r, a);
|
|
6997
6996
|
var o = A(r);
|
|
6998
6997
|
function r() {
|
|
@@ -7117,7 +7116,7 @@ function Si() {
|
|
|
7117
7116
|
`, "image/svg+xml").firstChild;
|
|
7118
7117
|
}
|
|
7119
7118
|
var we = {};
|
|
7120
|
-
function
|
|
7119
|
+
function Va(a, o) {
|
|
7121
7120
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
7122
7121
|
start: null,
|
|
7123
7122
|
end: null
|
|
@@ -7135,7 +7134,7 @@ function ln(a) {
|
|
|
7135
7134
|
window.clearTimeout(we[o].id), delete we[o];
|
|
7136
7135
|
});
|
|
7137
7136
|
}
|
|
7138
|
-
var
|
|
7137
|
+
var ja = /* @__PURE__ */ function(a) {
|
|
7139
7138
|
L(r, a);
|
|
7140
7139
|
var o = A(r);
|
|
7141
7140
|
function r(t) {
|
|
@@ -7227,7 +7226,7 @@ var Wa = /* @__PURE__ */ function(a) {
|
|
|
7227
7226
|
key: "animate",
|
|
7228
7227
|
value: function(e) {
|
|
7229
7228
|
var i = this;
|
|
7230
|
-
this._animateId =
|
|
7229
|
+
this._animateId = Va("pauseplay", 400, {
|
|
7231
7230
|
start: function() {
|
|
7232
7231
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
7233
7232
|
},
|
|
@@ -7310,7 +7309,7 @@ var Wa = /* @__PURE__ */ function(a) {
|
|
|
7310
7309
|
};
|
|
7311
7310
|
}
|
|
7312
7311
|
}]), r;
|
|
7313
|
-
}(j),
|
|
7312
|
+
}(j), Wa = /* @__PURE__ */ function(a) {
|
|
7314
7313
|
L(r, a);
|
|
7315
7314
|
var o = A(r);
|
|
7316
7315
|
function r() {
|
|
@@ -7410,7 +7409,7 @@ function cn(a) {
|
|
|
7410
7409
|
return r && o;
|
|
7411
7410
|
}
|
|
7412
7411
|
var xi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], er = xi.length;
|
|
7413
|
-
function
|
|
7412
|
+
function Ga() {
|
|
7414
7413
|
for (var a = {
|
|
7415
7414
|
width: 0,
|
|
7416
7415
|
height: 0,
|
|
@@ -7424,15 +7423,15 @@ function $a() {
|
|
|
7424
7423
|
}
|
|
7425
7424
|
return a;
|
|
7426
7425
|
}
|
|
7427
|
-
function
|
|
7426
|
+
function $a(a) {
|
|
7428
7427
|
var o = window.getComputedStyle(a);
|
|
7429
7428
|
return o;
|
|
7430
7429
|
}
|
|
7431
7430
|
function fn(a) {
|
|
7432
7431
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || se(a) !== "object" || !a.nodeType)) {
|
|
7433
|
-
var o =
|
|
7432
|
+
var o = $a(a);
|
|
7434
7433
|
if (o.display === "none")
|
|
7435
|
-
return
|
|
7434
|
+
return Ga();
|
|
7436
7435
|
var r = {};
|
|
7437
7436
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
7438
7437
|
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < er; e++) {
|
|
@@ -7460,7 +7459,7 @@ var qt = {
|
|
|
7460
7459
|
mousedown: ["mousemove", "mouseup"],
|
|
7461
7460
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
7462
7461
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
7463
|
-
},
|
|
7462
|
+
}, Ka = /* @__PURE__ */ function(a) {
|
|
7464
7463
|
L(r, a);
|
|
7465
7464
|
var o = A(r);
|
|
7466
7465
|
function r(t) {
|
|
@@ -7670,7 +7669,7 @@ var qt = {
|
|
|
7670
7669
|
return parseInt(e, 10);
|
|
7671
7670
|
}
|
|
7672
7671
|
}]), r;
|
|
7673
|
-
}(An),
|
|
7672
|
+
}(An), Ya = /* @__PURE__ */ function(a) {
|
|
7674
7673
|
L(r, a);
|
|
7675
7674
|
var o = A(r);
|
|
7676
7675
|
function r(t) {
|
|
@@ -7726,7 +7725,7 @@ var qt = {
|
|
|
7726
7725
|
i.controls.registerPlugin(un, s, un.pluginName);
|
|
7727
7726
|
}
|
|
7728
7727
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
7729
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
7728
|
+
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Ka(this.player.root, {
|
|
7730
7729
|
handle: this.root
|
|
7731
7730
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
7732
7731
|
}
|
|
@@ -7759,7 +7758,7 @@ var qt = {
|
|
|
7759
7758
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7760
7759
|
this.lastStyle = {}, f.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
|
|
7761
7760
|
e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
|
|
7762
|
-
}), n.fluid && (s.style["padding-top"] = ""), this.emit(
|
|
7761
|
+
}), n.fluid && (s.style["padding-top"] = ""), this.emit(St, !0), i.isMini = this.isMini = !0;
|
|
7763
7762
|
}
|
|
7764
7763
|
}
|
|
7765
7764
|
}, {
|
|
@@ -7771,7 +7770,7 @@ var qt = {
|
|
|
7771
7770
|
var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
|
|
7772
7771
|
f.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
|
|
7773
7772
|
s.style[l] = e.lastStyle[l];
|
|
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(
|
|
7773
|
+
}), 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(St, !1), this.isMini = i.isMini = !1;
|
|
7775
7774
|
}
|
|
7776
7775
|
}, {
|
|
7777
7776
|
key: "destroy",
|
|
@@ -7820,7 +7819,7 @@ var qt = {
|
|
|
7820
7819
|
};
|
|
7821
7820
|
}
|
|
7822
7821
|
}]), r;
|
|
7823
|
-
}(j),
|
|
7822
|
+
}(j), yt = {
|
|
7824
7823
|
mouseenter: "onMouseEnter",
|
|
7825
7824
|
mouseleave: "onMouseLeave",
|
|
7826
7825
|
mousemove: "onMouseMove"
|
|
@@ -7894,8 +7893,8 @@ var qt = {
|
|
|
7894
7893
|
key: "initEvents",
|
|
7895
7894
|
value: function() {
|
|
7896
7895
|
var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
|
|
7897
|
-
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(
|
|
7898
|
-
s.addEventListener(u, e[
|
|
7896
|
+
s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(yt).map(function(u) {
|
|
7897
|
+
s.addEventListener(u, e[yt[u]], !1);
|
|
7899
7898
|
}), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
|
|
7900
7899
|
}
|
|
7901
7900
|
}, {
|
|
@@ -7917,8 +7916,8 @@ var qt = {
|
|
|
7917
7916
|
key: "destroy",
|
|
7918
7917
|
value: function() {
|
|
7919
7918
|
var e = this, i = this.player, n = i.video, s = i.root;
|
|
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(
|
|
7921
|
-
s.removeEventListener(l, e[
|
|
7919
|
+
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) {
|
|
7920
|
+
s.removeEventListener(l, e[yt[l]], !1);
|
|
7922
7921
|
});
|
|
7923
7922
|
}
|
|
7924
7923
|
}], [{
|
|
@@ -7940,12 +7939,12 @@ var qt = {
|
|
|
7940
7939
|
TOUCH_MOVE: "touchmove",
|
|
7941
7940
|
TOUCH_START: "touchstart",
|
|
7942
7941
|
TOUCH_END: "touchend"
|
|
7943
|
-
},
|
|
7942
|
+
}, Xa = {
|
|
7944
7943
|
start: "touchstart",
|
|
7945
7944
|
end: "touchend",
|
|
7946
7945
|
move: "touchmove",
|
|
7947
7946
|
cancel: "touchcancel"
|
|
7948
|
-
},
|
|
7947
|
+
}, qa = {
|
|
7949
7948
|
start: "mousedown",
|
|
7950
7949
|
end: "mouseup",
|
|
7951
7950
|
move: "mousemove",
|
|
@@ -7954,7 +7953,7 @@ var qt = {
|
|
|
7954
7953
|
function dn(a) {
|
|
7955
7954
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
7956
7955
|
}
|
|
7957
|
-
function
|
|
7956
|
+
function Za() {
|
|
7958
7957
|
return {
|
|
7959
7958
|
pressDelay: 600,
|
|
7960
7959
|
dbClickDelay: 200,
|
|
@@ -7964,7 +7963,7 @@ function Ja() {
|
|
|
7964
7963
|
needPreventDefault: !0
|
|
7965
7964
|
};
|
|
7966
7965
|
}
|
|
7967
|
-
var
|
|
7966
|
+
var Ja = /* @__PURE__ */ function() {
|
|
7968
7967
|
function a(o) {
|
|
7969
7968
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7970
7969
|
eventType: "touch"
|
|
@@ -7985,9 +7984,9 @@ var Qa = /* @__PURE__ */ function() {
|
|
|
7985
7984
|
start: !1,
|
|
7986
7985
|
x: 0,
|
|
7987
7986
|
y: 0
|
|
7988
|
-
}, this.config =
|
|
7987
|
+
}, this.config = Za(), Object.keys(t).map(function(e) {
|
|
7989
7988
|
r.config[e] = t[e];
|
|
7990
|
-
}), this.root = o, this.events = t.eventType === "mouse" ?
|
|
7989
|
+
}), this.root = o, this.events = t.eventType === "mouse" ? qa : Xa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7991
7990
|
}
|
|
7992
7991
|
return I(a, [{
|
|
7993
7992
|
key: "_initEvent",
|
|
@@ -8066,7 +8065,7 @@ var Qa = /* @__PURE__ */ function() {
|
|
|
8066
8065
|
}
|
|
8067
8066
|
}]), a;
|
|
8068
8067
|
}();
|
|
8069
|
-
function
|
|
8068
|
+
function Qa() {
|
|
8070
8069
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
8071
8070
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
8072
8071
|
<path opacity="0.54"
|
|
@@ -8080,7 +8079,7 @@ var Ze = {
|
|
|
8080
8079
|
SEEKING: "seeking",
|
|
8081
8080
|
PLAYBACK: "playbackrate",
|
|
8082
8081
|
LIGHT: ""
|
|
8083
|
-
}, Qt = ["videoClick", "videoDbClick"],
|
|
8082
|
+
}, Qt = ["videoClick", "videoDbClick"], el = /* @__PURE__ */ function(a) {
|
|
8084
8083
|
L(r, a);
|
|
8085
8084
|
var o = A(r);
|
|
8086
8085
|
function r(t) {
|
|
@@ -8152,7 +8151,7 @@ var Ze = {
|
|
|
8152
8151
|
value: function() {
|
|
8153
8152
|
return {
|
|
8154
8153
|
seekTipIcon: {
|
|
8155
|
-
icon:
|
|
8154
|
+
icon: Qa,
|
|
8156
8155
|
class: "xg-seek-pre"
|
|
8157
8156
|
}
|
|
8158
8157
|
};
|
|
@@ -8167,7 +8166,7 @@ var Ze = {
|
|
|
8167
8166
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
8168
8167
|
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();
|
|
8169
8168
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
8170
|
-
this.touch = new
|
|
8169
|
+
this.touch = new Ja(this.root, {
|
|
8171
8170
|
eventType: l,
|
|
8172
8171
|
needPreventDefault: !this.config.disableGesture
|
|
8173
8172
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -8509,7 +8508,7 @@ var Ze = {
|
|
|
8509
8508
|
}
|
|
8510
8509
|
}]), r;
|
|
8511
8510
|
}(j);
|
|
8512
|
-
function
|
|
8511
|
+
function tl(a) {
|
|
8513
8512
|
a.preventDefault(), a.returnValue = !1;
|
|
8514
8513
|
}
|
|
8515
8514
|
function gn(a) {
|
|
@@ -8758,7 +8757,7 @@ var pn = /* @__PURE__ */ function(a) {
|
|
|
8758
8757
|
isPress: n
|
|
8759
8758
|
}, this.keyCodeMap[s[l]]));
|
|
8760
8759
|
}
|
|
8761
|
-
|
|
8760
|
+
tl(i), i.stopPropagation();
|
|
8762
8761
|
break;
|
|
8763
8762
|
}
|
|
8764
8763
|
}
|
|
@@ -8800,13 +8799,13 @@ var pn = /* @__PURE__ */ function(a) {
|
|
|
8800
8799
|
}
|
|
8801
8800
|
}]), r;
|
|
8802
8801
|
}(Be);
|
|
8803
|
-
function
|
|
8802
|
+
function il() {
|
|
8804
8803
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
8805
8804
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
8806
8805
|
</svg>
|
|
8807
8806
|
`, "image/svg+xml").firstChild;
|
|
8808
8807
|
}
|
|
8809
|
-
var
|
|
8808
|
+
var nl = /* @__PURE__ */ function(a) {
|
|
8810
8809
|
L(r, a);
|
|
8811
8810
|
var o = A(r);
|
|
8812
8811
|
function r() {
|
|
@@ -8816,7 +8815,7 @@ var rl = /* @__PURE__ */ function(a) {
|
|
|
8816
8815
|
key: "registerIcons",
|
|
8817
8816
|
value: function() {
|
|
8818
8817
|
return {
|
|
8819
|
-
loadingIcon:
|
|
8818
|
+
loadingIcon: il
|
|
8820
8819
|
};
|
|
8821
8820
|
}
|
|
8822
8821
|
}, {
|
|
@@ -8845,7 +8844,7 @@ var rl = /* @__PURE__ */ function(a) {
|
|
|
8845
8844
|
};
|
|
8846
8845
|
}
|
|
8847
8846
|
}]), r;
|
|
8848
|
-
}(j),
|
|
8847
|
+
}(j), rl = [{
|
|
8849
8848
|
tag: "xg-cache",
|
|
8850
8849
|
className: "xgplayer-progress-cache",
|
|
8851
8850
|
styleKey: "cachedColor"
|
|
@@ -8853,7 +8852,7 @@ var rl = /* @__PURE__ */ function(a) {
|
|
|
8853
8852
|
tag: "xg-played",
|
|
8854
8853
|
className: "xgplayer-progress-played",
|
|
8855
8854
|
styleKey: "playedColor"
|
|
8856
|
-
}],
|
|
8855
|
+
}], sl = /* @__PURE__ */ function() {
|
|
8857
8856
|
function a(o) {
|
|
8858
8857
|
x(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8859
8858
|
percent: 1
|
|
@@ -9040,7 +9039,7 @@ var rl = /* @__PURE__ */ function(a) {
|
|
|
9040
9039
|
var l = f.createDom("xg-inner", "", {
|
|
9041
9040
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
9042
9041
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
9043
|
-
return r.root.appendChild(l),
|
|
9042
|
+
return r.root.appendChild(l), rl.forEach(function(u) {
|
|
9044
9043
|
l.appendChild(f.createDom(u.tag, "", {
|
|
9045
9044
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
9046
9045
|
}, u.className));
|
|
@@ -9056,7 +9055,7 @@ var rl = /* @__PURE__ */ function(a) {
|
|
|
9056
9055
|
}(), vn = {
|
|
9057
9056
|
POINT: "inner-focus-point",
|
|
9058
9057
|
HIGHLIGHT: "inner-focus-highlight"
|
|
9059
|
-
},
|
|
9058
|
+
}, ol = /* @__PURE__ */ function(a) {
|
|
9060
9059
|
L(r, a);
|
|
9061
9060
|
var o = A(r);
|
|
9062
9061
|
function r(t) {
|
|
@@ -9186,7 +9185,7 @@ var rl = /* @__PURE__ */ function(a) {
|
|
|
9186
9185
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
9187
9186
|
}
|
|
9188
9187
|
});
|
|
9189
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
9188
|
+
this.innerList ? this.innerList.reset(s) : (this.innerList = new sl(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
|
|
9190
9189
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
9191
9190
|
}));
|
|
9192
9191
|
}
|
|
@@ -9496,7 +9495,7 @@ var rl = /* @__PURE__ */ function(a) {
|
|
|
9496
9495
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
9497
9496
|
}
|
|
9498
9497
|
}]), r;
|
|
9499
|
-
}(j),
|
|
9498
|
+
}(j), al = /* @__PURE__ */ function(a) {
|
|
9500
9499
|
L(r, a);
|
|
9501
9500
|
var o = A(r);
|
|
9502
9501
|
function r() {
|
|
@@ -9508,7 +9507,7 @@ var rl = /* @__PURE__ */ function(a) {
|
|
|
9508
9507
|
var e = this;
|
|
9509
9508
|
M(O(r.prototype), "afterCreate", this).call(this);
|
|
9510
9509
|
var i = this.player, n = this.config;
|
|
9511
|
-
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([ot,
|
|
9510
|
+
n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([ot, gt, Ke], function() {
|
|
9512
9511
|
e.animate(i.paused);
|
|
9513
9512
|
}), this.on(de, function() {
|
|
9514
9513
|
e.animate(i.paused);
|
|
@@ -9584,14 +9583,14 @@ var rl = /* @__PURE__ */ function(a) {
|
|
|
9584
9583
|
}
|
|
9585
9584
|
}]), r;
|
|
9586
9585
|
}(Ye);
|
|
9587
|
-
function
|
|
9586
|
+
function ll() {
|
|
9588
9587
|
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">
|
|
9589
9588
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9590
9589
|
<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>
|
|
9591
9590
|
</g>
|
|
9592
9591
|
</svg>`, "image/svg+xml").firstChild;
|
|
9593
9592
|
}
|
|
9594
|
-
var
|
|
9593
|
+
var ul = /* @__PURE__ */ function(a) {
|
|
9595
9594
|
L(r, a);
|
|
9596
9595
|
var o = A(r);
|
|
9597
9596
|
function r() {
|
|
@@ -9610,7 +9609,7 @@ var cl = /* @__PURE__ */ function(a) {
|
|
|
9610
9609
|
value: function() {
|
|
9611
9610
|
return {
|
|
9612
9611
|
screenBack: {
|
|
9613
|
-
icon:
|
|
9612
|
+
icon: ll,
|
|
9614
9613
|
class: "xg-fullscreen-back"
|
|
9615
9614
|
}
|
|
9616
9615
|
};
|
|
@@ -9652,19 +9651,19 @@ var cl = /* @__PURE__ */ function(a) {
|
|
|
9652
9651
|
}
|
|
9653
9652
|
}]), r;
|
|
9654
9653
|
}(j);
|
|
9655
|
-
function
|
|
9654
|
+
function cl() {
|
|
9656
9655
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9657
9656
|
<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>
|
|
9658
9657
|
</svg>
|
|
9659
9658
|
`, "image/svg+xml").firstChild;
|
|
9660
9659
|
}
|
|
9661
|
-
function
|
|
9660
|
+
function fl() {
|
|
9662
9661
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9663
9662
|
<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>
|
|
9664
9663
|
</svg>
|
|
9665
9664
|
`, "image/svg+xml").firstChild;
|
|
9666
9665
|
}
|
|
9667
|
-
var
|
|
9666
|
+
var hl = /* @__PURE__ */ function(a) {
|
|
9668
9667
|
L(r, a);
|
|
9669
9668
|
var o = A(r);
|
|
9670
9669
|
function r() {
|
|
@@ -9699,7 +9698,7 @@ var dl = /* @__PURE__ */ function(a) {
|
|
|
9699
9698
|
var u = e.find(".xg-tips");
|
|
9700
9699
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
9701
9700
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
9702
|
-
plugin:
|
|
9701
|
+
plugin: ul,
|
|
9703
9702
|
options: {
|
|
9704
9703
|
config: {
|
|
9705
9704
|
onClick: function(u) {
|
|
@@ -9715,11 +9714,11 @@ var dl = /* @__PURE__ */ function(a) {
|
|
|
9715
9714
|
value: function() {
|
|
9716
9715
|
return {
|
|
9717
9716
|
fullscreen: {
|
|
9718
|
-
icon:
|
|
9717
|
+
icon: cl,
|
|
9719
9718
|
class: "xg-get-fullscreen"
|
|
9720
9719
|
},
|
|
9721
9720
|
exitFullscreen: {
|
|
9722
|
-
icon:
|
|
9721
|
+
icon: fl,
|
|
9723
9722
|
class: "xg-exit-fullscreen"
|
|
9724
9723
|
}
|
|
9725
9724
|
};
|
|
@@ -9800,7 +9799,7 @@ var dl = /* @__PURE__ */ function(a) {
|
|
|
9800
9799
|
};
|
|
9801
9800
|
}
|
|
9802
9801
|
}]), r;
|
|
9803
|
-
}(Ye),
|
|
9802
|
+
}(Ye), dl = /* @__PURE__ */ function(a) {
|
|
9804
9803
|
L(r, a);
|
|
9805
9804
|
var o = A(r);
|
|
9806
9805
|
function r(t) {
|
|
@@ -9950,7 +9949,7 @@ var dl = /* @__PURE__ */ function(a) {
|
|
|
9950
9949
|
};
|
|
9951
9950
|
}
|
|
9952
9951
|
}]), r;
|
|
9953
|
-
}(j),
|
|
9952
|
+
}(j), gl = /* @__PURE__ */ function(a) {
|
|
9954
9953
|
L(r, a);
|
|
9955
9954
|
var o = A(r);
|
|
9956
9955
|
function r() {
|
|
@@ -10088,28 +10087,28 @@ var dl = /* @__PURE__ */ function(a) {
|
|
|
10088
10087
|
}
|
|
10089
10088
|
}]), r;
|
|
10090
10089
|
}(Be);
|
|
10091
|
-
function
|
|
10090
|
+
function pl() {
|
|
10092
10091
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10093
10092
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10094
10093
|
<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>
|
|
10095
10094
|
</svg>
|
|
10096
10095
|
`, "image/svg+xml").firstChild;
|
|
10097
10096
|
}
|
|
10098
|
-
function
|
|
10097
|
+
function vl() {
|
|
10099
10098
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10100
10099
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10101
10100
|
<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>
|
|
10102
10101
|
</svg>
|
|
10103
10102
|
`, "image/svg+xml").firstChild;
|
|
10104
10103
|
}
|
|
10105
|
-
function
|
|
10104
|
+
function ml() {
|
|
10106
10105
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10107
10106
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10108
10107
|
<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>
|
|
10109
10108
|
</svg>
|
|
10110
10109
|
`, "image/svg+xml").firstChild;
|
|
10111
10110
|
}
|
|
10112
|
-
var
|
|
10111
|
+
var yl = /* @__PURE__ */ function(a) {
|
|
10113
10112
|
L(r, a);
|
|
10114
10113
|
var o = A(r);
|
|
10115
10114
|
function r() {
|
|
@@ -10157,15 +10156,15 @@ var _l = /* @__PURE__ */ function(a) {
|
|
|
10157
10156
|
value: function() {
|
|
10158
10157
|
return {
|
|
10159
10158
|
volumeSmall: {
|
|
10160
|
-
icon:
|
|
10159
|
+
icon: vl,
|
|
10161
10160
|
class: "xg-volume-small"
|
|
10162
10161
|
},
|
|
10163
10162
|
volumeLarge: {
|
|
10164
|
-
icon:
|
|
10163
|
+
icon: pl,
|
|
10165
10164
|
class: "xg-volume"
|
|
10166
10165
|
},
|
|
10167
10166
|
volumeMuted: {
|
|
10168
|
-
icon:
|
|
10167
|
+
icon: ml,
|
|
10169
10168
|
class: "xg-volume-mute"
|
|
10170
10169
|
}
|
|
10171
10170
|
};
|
|
@@ -10304,7 +10303,7 @@ var _l = /* @__PURE__ */ function(a) {
|
|
|
10304
10303
|
}
|
|
10305
10304
|
}]), r;
|
|
10306
10305
|
}(j);
|
|
10307
|
-
function
|
|
10306
|
+
function _l() {
|
|
10308
10307
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
10309
10308
|
<g clip-path="url(#clip0)">
|
|
10310
10309
|
<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"/>
|
|
@@ -10318,7 +10317,7 @@ function Cl() {
|
|
|
10318
10317
|
</svg>
|
|
10319
10318
|
`, "image/svg+xml").firstChild;
|
|
10320
10319
|
}
|
|
10321
|
-
var
|
|
10320
|
+
var Cl = /* @__PURE__ */ function(a) {
|
|
10322
10321
|
L(r, a);
|
|
10323
10322
|
var o = A(r);
|
|
10324
10323
|
function r(t) {
|
|
@@ -10381,7 +10380,7 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10381
10380
|
key: "registerIcons",
|
|
10382
10381
|
value: function() {
|
|
10383
10382
|
return {
|
|
10384
|
-
rotate:
|
|
10383
|
+
rotate: _l
|
|
10385
10384
|
};
|
|
10386
10385
|
}
|
|
10387
10386
|
}, {
|
|
@@ -10414,14 +10413,14 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10414
10413
|
}
|
|
10415
10414
|
}]), r;
|
|
10416
10415
|
}(Ye);
|
|
10417
|
-
function
|
|
10416
|
+
function kl() {
|
|
10418
10417
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10419
10418
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10420
10419
|
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"
|
|
10421
10420
|
fill="white" />
|
|
10422
10421
|
</svg>`, "image/svg+xml").firstChild;
|
|
10423
10422
|
}
|
|
10424
|
-
function
|
|
10423
|
+
function wl() {
|
|
10425
10424
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10426
10425
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10427
10426
|
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"
|
|
@@ -10435,7 +10434,7 @@ var Je = {
|
|
|
10435
10434
|
PIP: "picture-in-picture",
|
|
10436
10435
|
INLINE: "inline",
|
|
10437
10436
|
FULLSCREEN: "fullscreen"
|
|
10438
|
-
},
|
|
10437
|
+
}, bl = /* @__PURE__ */ function(a) {
|
|
10439
10438
|
L(r, a);
|
|
10440
10439
|
var o = A(r);
|
|
10441
10440
|
function r() {
|
|
@@ -10475,11 +10474,11 @@ var Je = {
|
|
|
10475
10474
|
value: function() {
|
|
10476
10475
|
return {
|
|
10477
10476
|
pipIcon: {
|
|
10478
|
-
icon:
|
|
10477
|
+
icon: kl,
|
|
10479
10478
|
class: "xg-get-pip"
|
|
10480
10479
|
},
|
|
10481
10480
|
pipIconExit: {
|
|
10482
|
-
icon:
|
|
10481
|
+
icon: wl,
|
|
10483
10482
|
class: "xg-exit-pip"
|
|
10484
10483
|
}
|
|
10485
10484
|
};
|
|
@@ -10638,20 +10637,20 @@ var Je = {
|
|
|
10638
10637
|
}
|
|
10639
10638
|
}]), r;
|
|
10640
10639
|
}(Ye);
|
|
10641
|
-
function
|
|
10640
|
+
function Tl() {
|
|
10642
10641
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
10643
10642
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
10644
10643
|
</svg>
|
|
10645
10644
|
`, "image/svg+xml").firstChild;
|
|
10646
10645
|
}
|
|
10647
|
-
var
|
|
10646
|
+
var El = /* @__PURE__ */ function(a) {
|
|
10648
10647
|
L(r, a);
|
|
10649
10648
|
var o = A(r);
|
|
10650
10649
|
function r(t) {
|
|
10651
10650
|
var e;
|
|
10652
10651
|
return x(this, r), e = o.call(this, t), _(v(e), "playNext", function(i) {
|
|
10653
10652
|
var n = v(e), s = n.player;
|
|
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(
|
|
10653
|
+
i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(xt, e.idx + 1)) : (e.nextHandler(), s.emit(xt));
|
|
10655
10654
|
}), e.idx = -1, e;
|
|
10656
10655
|
}
|
|
10657
10656
|
return I(r, [{
|
|
@@ -10663,7 +10662,7 @@ var Sl = /* @__PURE__ */ function(a) {
|
|
|
10663
10662
|
key: "registerIcons",
|
|
10664
10663
|
value: function() {
|
|
10665
10664
|
return {
|
|
10666
|
-
playNext:
|
|
10665
|
+
playNext: Tl
|
|
10667
10666
|
};
|
|
10668
10667
|
}
|
|
10669
10668
|
}, {
|
|
@@ -10785,9 +10784,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10785
10784
|
};
|
|
10786
10785
|
});
|
|
10787
10786
|
})(tr);
|
|
10788
|
-
var
|
|
10789
|
-
const
|
|
10790
|
-
function
|
|
10787
|
+
var Sl = tr.exports;
|
|
10788
|
+
const xl = /* @__PURE__ */ gi(Sl);
|
|
10789
|
+
function Il() {
|
|
10791
10790
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
10792
10791
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10793
10792
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -10804,7 +10803,7 @@ function Pl() {
|
|
|
10804
10803
|
</svg>
|
|
10805
10804
|
`, "image/svg+xml").firstChild;
|
|
10806
10805
|
}
|
|
10807
|
-
var
|
|
10806
|
+
var Pl = /* @__PURE__ */ function(a) {
|
|
10808
10807
|
L(r, a);
|
|
10809
10808
|
var o = A(r);
|
|
10810
10809
|
function r(t) {
|
|
@@ -10815,7 +10814,7 @@ var Ll = /* @__PURE__ */ function(a) {
|
|
|
10815
10814
|
var n = e.playerConfig.url, s = "";
|
|
10816
10815
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
10817
10816
|
var l = e.getAbsoluteURL(s);
|
|
10818
|
-
|
|
10817
|
+
xl(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
10819
10818
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
10820
10819
|
}, 300);
|
|
10821
10820
|
}
|
|
@@ -10834,7 +10833,7 @@ var Ll = /* @__PURE__ */ function(a) {
|
|
|
10834
10833
|
key: "registerIcons",
|
|
10835
10834
|
value: function() {
|
|
10836
10835
|
return {
|
|
10837
|
-
download:
|
|
10836
|
+
download: Il
|
|
10838
10837
|
};
|
|
10839
10838
|
}
|
|
10840
10839
|
}, {
|
|
@@ -10876,7 +10875,7 @@ var Ll = /* @__PURE__ */ function(a) {
|
|
|
10876
10875
|
};
|
|
10877
10876
|
}
|
|
10878
10877
|
}]), r;
|
|
10879
|
-
}(Ye),
|
|
10878
|
+
}(Ye), Ll = /* @__PURE__ */ function(a) {
|
|
10880
10879
|
L(r, a);
|
|
10881
10880
|
var o = A(r);
|
|
10882
10881
|
function r() {
|
|
@@ -11002,7 +11001,7 @@ var Ll = /* @__PURE__ */ function(a) {
|
|
|
11002
11001
|
};
|
|
11003
11002
|
}
|
|
11004
11003
|
}]), r;
|
|
11005
|
-
}(Ye),
|
|
11004
|
+
}(Ye), Al = /* @__PURE__ */ function() {
|
|
11006
11005
|
function a(o) {
|
|
11007
11006
|
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);
|
|
11008
11007
|
var r = this.config.maxHeight;
|
|
@@ -11082,10 +11081,10 @@ var Ll = /* @__PURE__ */ function(a) {
|
|
|
11082
11081
|
CLICK: "click",
|
|
11083
11082
|
HOVER: "hover"
|
|
11084
11083
|
};
|
|
11085
|
-
function
|
|
11084
|
+
function Dl(a, o) {
|
|
11086
11085
|
return a === ke.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
11087
11086
|
}
|
|
11088
|
-
var Ve = B.device === "mobile",
|
|
11087
|
+
var Ve = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
|
|
11089
11088
|
L(r, a);
|
|
11090
11089
|
var o = A(r);
|
|
11091
11090
|
function r(t) {
|
|
@@ -11196,7 +11195,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11196
11195
|
var c = {
|
|
11197
11196
|
config: {
|
|
11198
11197
|
data: e || [],
|
|
11199
|
-
className:
|
|
11198
|
+
className: Dl(s.listType, s.position),
|
|
11200
11199
|
onItemClick: function(m, y) {
|
|
11201
11200
|
n.onItemClick(m, y);
|
|
11202
11201
|
},
|
|
@@ -11206,7 +11205,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11206
11205
|
};
|
|
11207
11206
|
if (this.config.isShowIcon) {
|
|
11208
11207
|
var h = this.player.root.getBoundingClientRect(), d = h.height, p = s.listType === ke.MIDDLE ? d - 50 : d;
|
|
11209
|
-
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new
|
|
11208
|
+
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new Al(c), this.changeCurrentText(), this.show();
|
|
11210
11209
|
}
|
|
11211
11210
|
this._resizeList();
|
|
11212
11211
|
}
|
|
@@ -11257,7 +11256,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11257
11256
|
};
|
|
11258
11257
|
}
|
|
11259
11258
|
}]), r;
|
|
11260
|
-
}(j),
|
|
11259
|
+
}(j), Ol = /* @__PURE__ */ function(a) {
|
|
11261
11260
|
L(r, a);
|
|
11262
11261
|
var o = A(r);
|
|
11263
11262
|
function r(t) {
|
|
@@ -11346,7 +11345,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11346
11345
|
}, {
|
|
11347
11346
|
key: "defaultConfig",
|
|
11348
11347
|
get: function() {
|
|
11349
|
-
return Z(Z({},
|
|
11348
|
+
return Z(Z({}, Dt.defaultConfig), {}, {
|
|
11350
11349
|
position: $.CONTROLS_RIGHT,
|
|
11351
11350
|
index: 3,
|
|
11352
11351
|
list: [],
|
|
@@ -11358,7 +11357,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11358
11357
|
});
|
|
11359
11358
|
}
|
|
11360
11359
|
}]), r;
|
|
11361
|
-
}(
|
|
11360
|
+
}(Dt), Rl = /* @__PURE__ */ function(a) {
|
|
11362
11361
|
L(r, a);
|
|
11363
11362
|
var o = A(r);
|
|
11364
11363
|
function r(t) {
|
|
@@ -11440,7 +11439,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11440
11439
|
}, {
|
|
11441
11440
|
key: "defaultConfig",
|
|
11442
11441
|
get: function() {
|
|
11443
|
-
return Z(Z({},
|
|
11442
|
+
return Z(Z({}, Dt.defaultConfig), {}, {
|
|
11444
11443
|
position: $.CONTROLS_RIGHT,
|
|
11445
11444
|
index: 4,
|
|
11446
11445
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
@@ -11450,14 +11449,14 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11450
11449
|
});
|
|
11451
11450
|
}
|
|
11452
11451
|
}]), r;
|
|
11453
|
-
}(
|
|
11454
|
-
function
|
|
11452
|
+
}(Dt);
|
|
11453
|
+
function Ml() {
|
|
11455
11454
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11456
11455
|
<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>
|
|
11457
11456
|
</svg>
|
|
11458
11457
|
`, "image/svg+xml").firstChild;
|
|
11459
11458
|
}
|
|
11460
|
-
function
|
|
11459
|
+
function Fl() {
|
|
11461
11460
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11462
11461
|
<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>
|
|
11463
11462
|
</svg>
|
|
@@ -11478,7 +11477,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11478
11477
|
key: "afterCreate",
|
|
11479
11478
|
value: function() {
|
|
11480
11479
|
var e = this;
|
|
11481
|
-
M(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(
|
|
11480
|
+
M(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(Et, function(i) {
|
|
11482
11481
|
e.animate(i);
|
|
11483
11482
|
}), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
|
|
11484
11483
|
pre: function(n) {
|
|
@@ -11517,11 +11516,11 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11517
11516
|
value: function() {
|
|
11518
11517
|
return {
|
|
11519
11518
|
cssFullscreen: {
|
|
11520
|
-
icon:
|
|
11519
|
+
icon: Ml,
|
|
11521
11520
|
class: "xg-get-cssfull"
|
|
11522
11521
|
},
|
|
11523
11522
|
exitCssFullscreen: {
|
|
11524
|
-
icon:
|
|
11523
|
+
icon: Fl,
|
|
11525
11524
|
class: "xg-exit-cssfull"
|
|
11526
11525
|
}
|
|
11527
11526
|
};
|
|
@@ -11557,7 +11556,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11557
11556
|
};
|
|
11558
11557
|
}
|
|
11559
11558
|
}]), r;
|
|
11560
|
-
}(Ye),
|
|
11559
|
+
}(Ye), Nl = /* @__PURE__ */ function(a) {
|
|
11561
11560
|
L(r, a);
|
|
11562
11561
|
var o = A(r);
|
|
11563
11562
|
function r() {
|
|
@@ -11571,7 +11570,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11571
11570
|
pre: function(n) {
|
|
11572
11571
|
n.preventDefault(), n.stopPropagation();
|
|
11573
11572
|
}
|
|
11574
|
-
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(
|
|
11573
|
+
}), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(gt, function(i) {
|
|
11575
11574
|
e.onError(i);
|
|
11576
11575
|
});
|
|
11577
11576
|
}
|
|
@@ -11618,7 +11617,7 @@ var mn = /* @__PURE__ */ function(a) {
|
|
|
11618
11617
|
return "error";
|
|
11619
11618
|
}
|
|
11620
11619
|
}]), r;
|
|
11621
|
-
}(j),
|
|
11620
|
+
}(j), Bl = /* @__PURE__ */ function(a) {
|
|
11622
11621
|
L(r, a);
|
|
11623
11622
|
var o = A(r);
|
|
11624
11623
|
function r() {
|
|
@@ -11848,7 +11847,7 @@ var _n = {
|
|
|
11848
11847
|
return r.find('xg-spot[data-id="'.concat(o, '"]'));
|
|
11849
11848
|
}
|
|
11850
11849
|
};
|
|
11851
|
-
function
|
|
11850
|
+
function Hl(a) {
|
|
11852
11851
|
var o = a.config, r = a.player;
|
|
11853
11852
|
Object.keys(_n).map(function(e) {
|
|
11854
11853
|
a[e] = _n[e].bind(a);
|
|
@@ -11872,7 +11871,7 @@ var et = {
|
|
|
11872
11871
|
click: "onProgressClick",
|
|
11873
11872
|
mouseover: "onProgressMouseOver",
|
|
11874
11873
|
mouseenter: "onProgressMouseOver"
|
|
11875
|
-
},
|
|
11874
|
+
}, Ul = /* @__PURE__ */ function(a) {
|
|
11876
11875
|
L(r, a);
|
|
11877
11876
|
var o = A(r);
|
|
11878
11877
|
function r(t) {
|
|
@@ -11923,7 +11922,7 @@ var et = {
|
|
|
11923
11922
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11924
11923
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11925
11924
|
e.setTimeContent(f.format(i));
|
|
11926
|
-
}),
|
|
11925
|
+
}), Hl(this), this.on(He, function() {
|
|
11927
11926
|
e.show();
|
|
11928
11927
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11929
11928
|
}
|
|
@@ -12147,7 +12146,7 @@ var et = {
|
|
|
12147
12146
|
};
|
|
12148
12147
|
}
|
|
12149
12148
|
}]), r;
|
|
12150
|
-
}(j),
|
|
12149
|
+
}(j), zl = /* @__PURE__ */ function(a) {
|
|
12151
12150
|
L(r, a);
|
|
12152
12151
|
var o = A(r);
|
|
12153
12152
|
function r(t) {
|
|
@@ -12285,7 +12284,7 @@ var et = {
|
|
|
12285
12284
|
function ei(a) {
|
|
12286
12285
|
return a ? "background:".concat(a, ";") : "";
|
|
12287
12286
|
}
|
|
12288
|
-
var
|
|
12287
|
+
var Vl = /* @__PURE__ */ function(a) {
|
|
12289
12288
|
L(r, a);
|
|
12290
12289
|
var o = A(r);
|
|
12291
12290
|
function r() {
|
|
@@ -12373,14 +12372,14 @@ var jl = /* @__PURE__ */ function(a) {
|
|
|
12373
12372
|
FRAME_RATE: "framerate",
|
|
12374
12373
|
POSTER: "poster"
|
|
12375
12374
|
};
|
|
12376
|
-
function
|
|
12375
|
+
function jl() {
|
|
12377
12376
|
try {
|
|
12378
12377
|
return parseInt(window.performance.now(), 10);
|
|
12379
12378
|
} catch {
|
|
12380
12379
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
12381
12380
|
}
|
|
12382
12381
|
}
|
|
12383
|
-
function
|
|
12382
|
+
function Wl() {
|
|
12384
12383
|
try {
|
|
12385
12384
|
var a = document.createElement("canvas").getContext;
|
|
12386
12385
|
return !!a;
|
|
@@ -12388,7 +12387,7 @@ function Gl() {
|
|
|
12388
12387
|
return !1;
|
|
12389
12388
|
}
|
|
12390
12389
|
}
|
|
12391
|
-
var
|
|
12390
|
+
var _t = null, Gl = /* @__PURE__ */ function(a) {
|
|
12392
12391
|
L(r, a);
|
|
12393
12392
|
var o = A(r);
|
|
12394
12393
|
function r() {
|
|
@@ -12409,7 +12408,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
|
|
|
12409
12408
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
12410
12409
|
}
|
|
12411
12410
|
}), _(v(t), "start", function(s, l) {
|
|
12412
|
-
var u = t.player.video, c =
|
|
12411
|
+
var u = t.player.video, c = jl(), h = t.checkVideoIsSupport(u);
|
|
12413
12412
|
!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(v(t), t.start, l) : f.requestAnimationFrame(t.start));
|
|
12414
12413
|
}), _(v(t), "stop", function() {
|
|
12415
12414
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -12582,7 +12581,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
|
|
|
12582
12581
|
}, {
|
|
12583
12582
|
key: "isSupport",
|
|
12584
12583
|
get: function() {
|
|
12585
|
-
return typeof
|
|
12584
|
+
return typeof _t == "boolean" || (_t = Wl()), _t;
|
|
12586
12585
|
}
|
|
12587
12586
|
}, {
|
|
12588
12587
|
key: "supportCanvasFilter",
|
|
@@ -12590,7 +12589,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
|
|
|
12590
12589
|
return !(B.browser === "safari" || B.browser === "firefox");
|
|
12591
12590
|
}
|
|
12592
12591
|
}]), r;
|
|
12593
|
-
}(j),
|
|
12592
|
+
}(j), $l = {
|
|
12594
12593
|
LANG: "zh-cn",
|
|
12595
12594
|
TEXT: {
|
|
12596
12595
|
ERROR_TYPES: {
|
|
@@ -12665,7 +12664,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
|
|
|
12665
12664
|
FORWARD: "快进中",
|
|
12666
12665
|
LIVE_TIP: "直播"
|
|
12667
12666
|
}
|
|
12668
|
-
}, ut = "info", ti = Yn,
|
|
12667
|
+
}, ut = "info", ti = Yn, Kl = /* @__PURE__ */ function(a) {
|
|
12669
12668
|
L(r, a);
|
|
12670
12669
|
var o = A(r);
|
|
12671
12670
|
function r() {
|
|
@@ -12704,7 +12703,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
|
|
|
12704
12703
|
}, {
|
|
12705
12704
|
key: "afterCreate",
|
|
12706
12705
|
value: function() {
|
|
12707
|
-
this.reset(), this.on(
|
|
12706
|
+
this.reset(), this.on(It, this._recordUserActions), this.on(ti.STATS_INFO, this._recordInfo), this.on(ti.STATS_DOWNLOAD, this._downloadStats), this.on(ti.STATS_RESET, this._onReset);
|
|
12708
12707
|
}
|
|
12709
12708
|
}, {
|
|
12710
12709
|
key: "destroy",
|
|
@@ -12850,7 +12849,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
|
|
|
12850
12849
|
key: "afterCreate",
|
|
12851
12850
|
value: function() {
|
|
12852
12851
|
var e = this, i = this.config.useGapJump;
|
|
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(
|
|
12852
|
+
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() {
|
|
12854
12853
|
e.hasPlayed = !0;
|
|
12855
12854
|
}), this.on(Rt, function() {
|
|
12856
12855
|
e.seekingEventReceived = !0;
|
|
@@ -12899,7 +12898,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
|
|
|
12899
12898
|
}]), r;
|
|
12900
12899
|
}(j);
|
|
12901
12900
|
nr.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12902
|
-
var
|
|
12901
|
+
var Yl = /* @__PURE__ */ function(a) {
|
|
12903
12902
|
L(r, a);
|
|
12904
12903
|
var o = A(r);
|
|
12905
12904
|
function r() {
|
|
@@ -12923,7 +12922,7 @@ var Xl = /* @__PURE__ */ function(a) {
|
|
|
12923
12922
|
key: "afterCreate",
|
|
12924
12923
|
value: function() {
|
|
12925
12924
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
|
|
12926
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(
|
|
12925
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(pt, this.onWaiting), this.on([mi, Se], function() {
|
|
12927
12926
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
12928
12927
|
}), this.on(de, function() {
|
|
12929
12928
|
e.hasPlayed = !0;
|
|
@@ -12945,7 +12944,7 @@ var Xl = /* @__PURE__ */ function(a) {
|
|
|
12945
12944
|
};
|
|
12946
12945
|
}
|
|
12947
12946
|
}]), r;
|
|
12948
|
-
}(j), it = "cdn",
|
|
12947
|
+
}(j), it = "cdn", Ct = ["cdn"], Xl = /* @__PURE__ */ function(a) {
|
|
12949
12948
|
L(r, a);
|
|
12950
12949
|
var o = A(r);
|
|
12951
12950
|
function r() {
|
|
@@ -12964,7 +12963,7 @@ var Xl = /* @__PURE__ */ function(a) {
|
|
|
12964
12963
|
}), _(v(t), "startTimer", function() {
|
|
12965
12964
|
f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
12966
12965
|
}), _(v(t), "initSpeedList", function() {
|
|
12967
|
-
t.speedListCache = {},
|
|
12966
|
+
t.speedListCache = {}, Ct.forEach(function(s) {
|
|
12968
12967
|
t.speedListCache[s] = [];
|
|
12969
12968
|
});
|
|
12970
12969
|
}), _(v(t), "_onRealSpeedChange", function(s) {
|
|
@@ -13021,7 +13020,7 @@ var Xl = /* @__PURE__ */ function(a) {
|
|
|
13021
13020
|
key: "afterCreate",
|
|
13022
13021
|
value: function() {
|
|
13023
13022
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
13024
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
13023
|
+
(n == null ? void 0 : n.length) > 0 && Ct.push.apply(Ct, me(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Pe, Tt], this.startTimer);
|
|
13025
13024
|
}
|
|
13026
13025
|
}, {
|
|
13027
13026
|
key: "getSpeedName",
|
|
@@ -13048,7 +13047,7 @@ var Xl = /* @__PURE__ */ function(a) {
|
|
|
13048
13047
|
key: "destroy",
|
|
13049
13048
|
value: function() {
|
|
13050
13049
|
var e = this;
|
|
13051
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([Pe,
|
|
13050
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Pe, Tt], this.startTimer), Ct.forEach(function(i) {
|
|
13052
13051
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
13053
13052
|
}), 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);
|
|
13054
13053
|
}
|
|
@@ -13071,7 +13070,7 @@ var Xl = /* @__PURE__ */ function(a) {
|
|
|
13071
13070
|
};
|
|
13072
13071
|
}
|
|
13073
13072
|
}]), r;
|
|
13074
|
-
}(j),
|
|
13073
|
+
}(j), ql = /* @__PURE__ */ function(a) {
|
|
13075
13074
|
L(r, a);
|
|
13076
13075
|
var o = A(r);
|
|
13077
13076
|
function r() {
|
|
@@ -13181,24 +13180,24 @@ var Xl = /* @__PURE__ */ function(a) {
|
|
|
13181
13180
|
}
|
|
13182
13181
|
}]), r;
|
|
13183
13182
|
}(j);
|
|
13184
|
-
rt.use(
|
|
13185
|
-
var
|
|
13183
|
+
rt.use($l);
|
|
13184
|
+
var Zl = /* @__PURE__ */ I(function a(o, r) {
|
|
13186
13185
|
var t, e, i;
|
|
13187
13186
|
x(this, a);
|
|
13188
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
13189
|
-
this.plugins = [
|
|
13187
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [gl, ol, Vl, Ul, dl], u = [].concat(l, [al, hl, Cl, El, Ol, Rl, Pl, Ll, yl, bl]), c = [Ua, za, ja, nl, Wa, Nl, Bl, zl, Ya];
|
|
13188
|
+
this.plugins = [Kl, Ba].concat(me(u), c, [nr, Yl]);
|
|
13190
13189
|
var h = n ? "mobile" : B.device;
|
|
13191
13190
|
switch (h) {
|
|
13192
13191
|
case "pc":
|
|
13193
|
-
(t = this.plugins).push.apply(t, [pn, Jt, mn,
|
|
13192
|
+
(t = this.plugins).push.apply(t, [pn, Jt, mn, Xl, ql]);
|
|
13194
13193
|
break;
|
|
13195
13194
|
case "mobile":
|
|
13196
|
-
(e = this.plugins).push.apply(e, [
|
|
13195
|
+
(e = this.plugins).push.apply(e, [el]);
|
|
13197
13196
|
break;
|
|
13198
13197
|
default:
|
|
13199
13198
|
(i = this.plugins).push.apply(i, [pn, Jt, mn]);
|
|
13200
13199
|
}
|
|
13201
|
-
(B.os.isIpad || h === "pc") && this.plugins.push(
|
|
13200
|
+
(B.os.isIpad || h === "pc") && this.plugins.push(Gl), B.os.isIpad && this.plugins.push(Jt), this.ignores = [], this.i18n = [];
|
|
13202
13201
|
}), ye = /* @__PURE__ */ function(a) {
|
|
13203
13202
|
L(r, a);
|
|
13204
13203
|
var o = A(r);
|
|
@@ -13207,20 +13206,20 @@ var Jl = /* @__PURE__ */ I(function a(o, r) {
|
|
|
13207
13206
|
}
|
|
13208
13207
|
return I(r);
|
|
13209
13208
|
}(Bt);
|
|
13210
|
-
_(ye, "defaultPreset",
|
|
13209
|
+
_(ye, "defaultPreset", Zl);
|
|
13211
13210
|
_(ye, "Util", f);
|
|
13212
13211
|
_(ye, "Sniffer", B);
|
|
13213
|
-
_(ye, "Errors",
|
|
13214
|
-
_(ye, "Events",
|
|
13212
|
+
_(ye, "Errors", bt);
|
|
13213
|
+
_(ye, "Events", ha);
|
|
13215
13214
|
_(ye, "Plugin", j);
|
|
13216
13215
|
_(ye, "BasePlugin", Be);
|
|
13217
13216
|
_(ye, "I18N", rt);
|
|
13218
13217
|
_(ye, "STATE_CLASS", C);
|
|
13219
13218
|
_(ye, "InstManager", Qn);
|
|
13220
|
-
const
|
|
13219
|
+
const Jl = ["id"], Ql = /* @__PURE__ */ J({
|
|
13221
13220
|
name: "ElImageViewer",
|
|
13222
13221
|
__name: "Player",
|
|
13223
|
-
props: /* @__PURE__ */
|
|
13222
|
+
props: /* @__PURE__ */ wt({
|
|
13224
13223
|
url: {
|
|
13225
13224
|
type: String,
|
|
13226
13225
|
default: ""
|
|
@@ -13241,7 +13240,7 @@ const Ql = ["id"], eu = /* @__PURE__ */ J({
|
|
|
13241
13240
|
},
|
|
13242
13241
|
modelModifiers: {}
|
|
13243
13242
|
}),
|
|
13244
|
-
emits: /* @__PURE__ */
|
|
13243
|
+
emits: /* @__PURE__ */ wt({
|
|
13245
13244
|
close: () => !0
|
|
13246
13245
|
}, ["update:modelValue"]),
|
|
13247
13246
|
setup(a, { emit: o }) {
|
|
@@ -13315,7 +13314,7 @@ const Ql = ["id"], eu = /* @__PURE__ */ J({
|
|
|
13315
13314
|
class: K(S(h).e("canvas"))
|
|
13316
13315
|
},
|
|
13317
13316
|
[
|
|
13318
|
-
T("div", { id: S(c) }, null, 8,
|
|
13317
|
+
T("div", { id: S(c) }, null, 8, Jl),
|
|
13319
13318
|
ee(" CLOSE "),
|
|
13320
13319
|
T(
|
|
13321
13320
|
"span",
|
|
@@ -13352,7 +13351,7 @@ const Ql = ["id"], eu = /* @__PURE__ */ J({
|
|
|
13352
13351
|
};
|
|
13353
13352
|
}
|
|
13354
13353
|
});
|
|
13355
|
-
const
|
|
13354
|
+
const eu = /* @__PURE__ */ Ot(Ql, [["__scopeId", "data-v-b301aa7d"]]), tu = Le(eu), iu = /* @__PURE__ */ J({
|
|
13356
13355
|
__name: "IkDescription",
|
|
13357
13356
|
props: {
|
|
13358
13357
|
showIcon: {
|
|
@@ -13417,7 +13416,7 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Le(t
|
|
|
13417
13416
|
(E(!0), D(
|
|
13418
13417
|
Fe,
|
|
13419
13418
|
null,
|
|
13420
|
-
|
|
13419
|
+
kt(a.listData, (l) => (E(), ae(
|
|
13421
13420
|
n,
|
|
13422
13421
|
ni({
|
|
13423
13422
|
key: l[r.id],
|
|
@@ -13487,8 +13486,8 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Le(t
|
|
|
13487
13486
|
};
|
|
13488
13487
|
}
|
|
13489
13488
|
});
|
|
13490
|
-
const
|
|
13489
|
+
const nu = /* @__PURE__ */ Ot(iu, [["__scopeId", "data-v-8171d392"]]), au = Le(nu);
|
|
13491
13490
|
export {
|
|
13492
|
-
|
|
13493
|
-
|
|
13491
|
+
au as IkDescriptions,
|
|
13492
|
+
au as default
|
|
13494
13493
|
};
|