mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 17:37:24 +08:00
105 lines
134 KiB
JavaScript
105 lines
134 KiB
JavaScript
import{g as re,c as le}from"./_commonjsHelpers-042e6b4d.js";import{R as se}from"./index-8c77f9cd.js";import{u as ue}from"./hooks-8de8f790.js";import{_ as fe}from"./_plugin-vue_export-helper-c27b6911.js";import"./index-02c38b19.js";var ne={},ce={get exports(){return ne},set exports(V){ne=V}};(function(V,Q){(function(s,r){V.exports=r()})(le,function(){return function(g){var s={};function r(e){if(s[e])return s[e].exports;var o=s[e]={i:e,l:!1,exports:{}};return g[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=g,r.c=s,r.d=function(e,o,y){r.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:y})},r.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,o){if(o&1&&(e=r(e)),o&8||o&4&&typeof e=="object"&&e&&e.__esModule)return e;var y=Object.create(null);if(r.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:e}),o&2&&typeof e!="string")for(var n in e)r.d(y,n,function(p){return e[p]}.bind(null,n));return y},r.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(o,"a",o),o},r.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r.p="",r(r.s=173)}([function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0}),s.util=s.PresentationMode=void 0,s.createDom=n,s.hasClass=p,s.addClass=m,s.removeClass=v,s.toggleClass=l,s.findDom=f,s.padStart=d,s.format=b,s.event=h,s.typeOf=x,s.deepCopy=w,s.getBgImage=O,s.copyDom=A,s._setInterval=R,s._clearInterval=L,s.createImgBtn=_,s.isWeiXin=N,s.isUc=U,s.computeWatchDur=C,s.offInDestroy=a,s.on=i,s.once=t,s.getBuffered2=c,s.checkIsBrowser=E,s.setStyle=k,s.checkWebkitSetPresentationMode=P;var e=r(7),o=y(e);function y(u){return u&&u.__esModule?u:{default:u}}function n(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",F=document.createElement(u);return F.className=I,F.innerHTML=T,Object.keys(S).forEach(function(M){var D=M,B=S[M];u==="video"||u==="audio"?B&&F.setAttribute(D,B):F.setAttribute(D,B)}),F}function p(u,T){return u?u.classList?Array.prototype.some.call(u.classList,function(S){return S===T}):u.className?!!u.className.match(new RegExp("(\\s|^)"+T+"(\\s|$)")):!1:!1}function m(u,T){u&&(u.classList?T.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(S){S&&u.classList.add(S)}):p(u,T)||(u.className+=" "+T))}function v(u,T){u&&(u.classList?T.split(/\s+/g).forEach(function(S){u.classList.remove(S)}):p(u,T)&&T.split(/\s+/g).forEach(function(S){var I=new RegExp("(\\s|^)"+S+"(\\s|$)");u.className=u.className.replace(I," ")}))}function l(u,T){u&&T.split(/\s+/g).forEach(function(S){p(u,S)?v(u,S):m(u,S)})}function f(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,T=arguments[1],S=void 0;try{S=u.querySelector(T)}catch{T.indexOf("#")===0&&(S=u.getElementById(T.slice(1)))}return S}function d(u,T,S){for(var I=String(S),F=T>>0,M=Math.ceil(F/I.length),D=[],B=String(u);M--;)D.push(I);return D.join("").substring(0,F-B.length)+B}function b(u){if(window.isNaN(u))return"";var T=d(Math.floor(u/3600),2,0),S=d(Math.floor((u-T*3600)/60),2,0),I=d(Math.floor(u-T*3600-S*60),2,0);return(T==="00"?[S,I]:[T,S,I]).join(":")}function h(u){if(u.touches){var T=u.touches[0]||u.changedTouches[0];u.clientX=T.clientX||0,u.clientY=T.clientY||0,u.offsetX=T.pageX-T.target.offsetLeft,u.offsetY=T.pageY-T.target.offsetTop}u._target=u.target||u.srcElement}function x(u){return Object.prototype.toString.call(u).match(/([^\s.*]+)(?=]$)/g)[0]}function w(u,T){if(x(T)==="Object"&&x(u)==="Object")return Object.keys(T).forEach(function(S){x(T[S])==="Object"&&!(T[S]instanceof Node)?u[S]?w(u[S],T[S]):u[S]=T[S]:x(T[S])==="Array"?u[S]=x(u[S])==="Array"?u[S].concat(T[S]):T[S]:u[S]=T[S]}),u}function O(u){var T=(u.currentStyle||window.getComputedStyle(u,null)).backgroundImage;if(!T||T==="none")return"";var S=document.createElement("a");return S.href=T.replace(/url\("|"\)/g,""),S.href}function A(u){if(u&&u.nodeType===1){var T=document.createElement(u.tagName);return Array.prototype.forEach.call(u.attributes,function(S){T.setAttribute(S.name,S.value)}),u.innerHTML&&(T.innerHTML=u.innerHTML),T}else return""}function R(u,T,S,I){u._interval[T]||(u._interval[T]=setInterval(S.bind(u),I))}function L(u,T){clearInterval(u._interval[T]),u._interval[T]=null}function _(u,T,S,I){var F=n("xg-"+u,"",{},"xgplayer-"+u+"-img");if(F.style.backgroundImage='url("'+T+'")',S&&I){var M=void 0,D=void 0,B=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(j){return S.indexOf(j)>-1&&I.indexOf(j)>-1?(M=Number(S.slice(0,S.indexOf(j)).trim()),D=Number(I.slice(0,I.indexOf(j)).trim()),B=j,!1):!0}),F.style.width=""+M+B,F.style.height=""+D+B,F.style.backgroundSize=""+M+B+" "+D+B,u==="start"?F.style.margin="-"+D/2+B+" auto auto -"+M/2+B:F.style.margin="auto 5px auto 5px"}return F}function N(){var u=window.navigator.userAgent.toLowerCase();return u.indexOf("micromessenger")>-1}function U(){var u=window.navigator.userAgent.toLowerCase();return u.indexOf("ucbrowser")>-1}function C(){for(var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],T=[],S=0;S<u.length;S++)if(!(!u[S].end||u[S].begin<0||u[S].end<0||u[S].end<u[S].begin))if(T.length<1)T.push({begin:u[S].begin,end:u[S].end});else for(var I=0;I<T.length;I++){var F=u[S].begin,M=u[S].end;if(M<T[I].begin){T.splice(I,0,{begin:F,end:M});break}else if(F>T[I].end){if(I>T.length-2){T.push({begin:F,end:M});break}}else{var D=T[I].begin,B=T[I].end;T[I].begin=Math.min(F,D),T[I].end=Math.max(M,B);break}}for(var j=0,z=0;z<T.length;z++)j+=T[z].end-T[z].begin;return j}function a(u,T,S,I){function F(){u.off(T,S),u.off(I,F)}u.once(I,F)}function i(u,T,S,I){if(I)u.on(T,S),a(u,T,S,I);else{var F=function M(D){S(D),u.off(T,M)};u.on(T,F)}}function t(u,T,S,I){if(I)u.once(T,S),a(u,T,S,I);else{var F=function M(D){S(D),u.off(T,M)};u.once(T,F)}}function c(u){for(var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.5,S=[],I=0;I<u.length;I++)S.push({start:u.start(I)<.5?0:u.start(I),end:u.end(I)});S.sort(function(j,z){var W=j.start-z.start;return W||z.end-j.end});var F=[];if(T)for(var M=0;M<S.length;M++){var D=F.length;if(D){var B=F[D-1].end;S[M].start-B<T?S[M].end>B&&(F[D-1].end=S[M].end):F.push(S[M])}else F.push(S[M])}else F=S;return new o.default(F)}function E(){return!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u")}function k(u,T,S){var I=u.style;try{I[T]=S}catch{I.setProperty(T,S)}}s.PresentationMode={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"};function P(u){return typeof u.webkitSetPresentationMode=="function"}s.util={createDom:n,hasClass:p,addClass:m,removeClass:v,toggleClass:l,findDom:f,padStart:d,format:b,event:h,typeOf:x,deepCopy:w,getBgImage:O,copyDom:A,setInterval:R,clearInterval:L,createImgBtn:_,isWeiXin:N,isUc:U,computeWatchDur:C,offInDestroy:a,on:i,once:t,getBuffered2:c,checkIsBrowser:E,setStyle:k}},function(g,s){g.exports=function(o){var y=[];return y.toString=function(){return this.map(function(p){var m=r(p,o);return p[2]?"@media "+p[2]+"{"+m+"}":m}).join("")},y.i=function(n,p){typeof n=="string"&&(n=[[null,n,""]]);for(var m={},v=0;v<this.length;v++){var l=this[v][0];typeof l=="number"&&(m[l]=!0)}for(v=0;v<n.length;v++){var f=n[v];(typeof f[0]!="number"||!m[f[0]])&&(p&&!f[2]?f[2]=p:p&&(f[2]="("+f[2]+") and ("+p+")"),y.push(f))}},y};function r(o,y){var n=o[1]||"",p=o[3];if(!p)return n;if(y&&typeof btoa=="function"){var m=e(p),v=p.sources.map(function(l){return"/*# sourceURL="+p.sourceRoot+l+" */"});return[n].concat(v).concat([m]).join(`
|
||
`)}return[n].join(`
|
||
`)}function e(o){var y=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+y;return"/*# "+n+" */"}},function(g,s,r){var e={},o=function(C){var a;return function(){return typeof a>"u"&&(a=C.apply(this,arguments)),a}},y=o(function(){return window&&document&&document.all&&!window.atob}),n=function(C){return document.querySelector(C)},p=function(C){var a={};return function(i){if(typeof i=="function")return i();if(typeof a[i]>"u"){var t=n.call(this,i);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch{t=null}a[i]=t}return a[i]}}(),m=null,v=0,l=[],f=r(36);g.exports=function(C,a){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");a=a||{},a.attrs=typeof a.attrs=="object"?a.attrs:{},!a.singleton&&typeof a.singleton!="boolean"&&(a.singleton=y()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var i=b(C,a);return d(i,a),function(c){for(var E=[],k=0;k<i.length;k++){var P=i[k],u=e[P.id];u.refs--,E.push(u)}if(c){var T=b(c,a);d(T,a)}for(var k=0;k<E.length;k++){var u=E[k];if(u.refs===0){for(var S=0;S<u.parts.length;S++)u.parts[S]();delete e[u.id]}}}};function d(C,a){for(var i=0;i<C.length;i++){var t=C[i],c=e[t.id];if(c){c.refs++;for(var E=0;E<c.parts.length;E++)c.parts[E](t.parts[E]);for(;E<t.parts.length;E++)c.parts.push(R(t.parts[E],a))}else{for(var k=[],E=0;E<t.parts.length;E++)k.push(R(t.parts[E],a));e[t.id]={id:t.id,refs:1,parts:k}}}}function b(C,a){for(var i=[],t={},c=0;c<C.length;c++){var E=C[c],k=a.base?E[0]+a.base:E[0],P=E[1],u=E[2],T=E[3],S={css:P,media:u,sourceMap:T};t[k]?t[k].parts.push(S):i.push(t[k]={id:k,parts:[S]})}return i}function h(C,a){var i=p(C.insertInto);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var t=l[l.length-1];if(C.insertAt==="top")t?t.nextSibling?i.insertBefore(a,t.nextSibling):i.appendChild(a):i.insertBefore(a,i.firstChild),l.push(a);else if(C.insertAt==="bottom")i.appendChild(a);else if(typeof C.insertAt=="object"&&C.insertAt.before){var c=p(C.insertInto+" "+C.insertAt.before);i.insertBefore(a,c)}else throw new Error(`[Style Loader]
|
||
|
||
Invalid value for parameter 'insertAt' ('options.insertAt') found.
|
||
Must be 'top', 'bottom', or Object.
|
||
(https://github.com/webpack-contrib/style-loader#insertat)
|
||
`)}function x(C){if(C.parentNode===null)return!1;C.parentNode.removeChild(C);var a=l.indexOf(C);a>=0&&l.splice(a,1)}function w(C){var a=document.createElement("style");return C.attrs.type="text/css",A(a,C.attrs),h(C,a),a}function O(C){var a=document.createElement("link");return C.attrs.type="text/css",C.attrs.rel="stylesheet",A(a,C.attrs),h(C,a),a}function A(C,a){Object.keys(a).forEach(function(i){C.setAttribute(i,a[i])})}function R(C,a){var i,t,c,E;if(a.transform&&C.css)if(E=a.transform(C.css),E)C.css=E;else return function(){};if(a.singleton){var k=v++;i=m||(m=w(a)),t=_.bind(null,i,k,!1),c=_.bind(null,i,k,!0)}else C.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(i=O(a),t=U.bind(null,i,a),c=function(){x(i),i.href&&URL.revokeObjectURL(i.href)}):(i=w(a),t=N.bind(null,i),c=function(){x(i)});return t(C),function(u){if(u){if(u.css===C.css&&u.media===C.media&&u.sourceMap===C.sourceMap)return;t(C=u)}else c()}}var L=function(){var C=[];return function(a,i){return C[a]=i,C.filter(Boolean).join(`
|
||
`)}}();function _(C,a,i,t){var c=i?"":t.css;if(C.styleSheet)C.styleSheet.cssText=L(a,c);else{var E=document.createTextNode(c),k=C.childNodes;k[a]&&C.removeChild(k[a]),k.length?C.insertBefore(E,k[a]):C.appendChild(E)}}function N(C,a){var i=a.css,t=a.media;if(t&&C.setAttribute("media",t),C.styleSheet)C.styleSheet.cssText=i;else{for(;C.firstChild;)C.removeChild(C.firstChild);C.appendChild(document.createTextNode(i))}}function U(C,a,i){var t=i.css,c=i.sourceMap,E=a.convertToAbsoluteUrls===void 0&&c;(a.convertToAbsoluteUrls||E)&&(t=f(t)),c&&(t+=`
|
||
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(c))))+" */");var k=new Blob([t],{type:"text/css"}),P=C.href;C.href=URL.createObjectURL(k),P&&URL.revokeObjectURL(P)}},function(g,s,r){var e=r(24)();g.exports=function(o){return o!==e&&o!==null}},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(8);function o(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}var y={network:{code:1,msg:"视频下载错误",remark:"只要视频下载错误就使用此类型,无论是video本身的超时还是xhr的分段请求超时或者资源不存在"},mse:{code:2,msg:"流追加错误",remark:"追加流的时候如果类型不对、无法被正确解码则会触发此类错误"},parse:{code:3,msg:"解析错误",remark:"mp4、hls、flv我们都是使用js进行格式解析,如果解析失败则会触发此类错误"},format:{code:4,msg:"格式错误",remark:"如果浏览器不支持的格式导致播放错误"},decoder:{code:5,msg:"解码错误",remark:"浏览器解码异常会抛出此类型错误"},runtime:{code:6,msg:"语法错误",remark:"播放器语法错误"},timeout:{code:7,msg:"播放超时",remark:"播放过程中无法正常请求下一个分段导致播放中断"},other:{code:8,msg:"其他错误",remark:"不可知的错误或被忽略的错误类型"}},n=function p(m,v,l,f,d,b,h,x){var w=arguments.length>8&&arguments[8]!==void 0?arguments[8]:{line:"",handle:"",msg:"",version:""},O=arguments[9],A=arguments[10];o(this,p);var R={};if(arguments.length>1)R.playerVersion=e.version,R.errorType=m,R.domain=document.domain,R.duration=l,R.currentTime=v,R.networkState=f,R.readyState=d,R.currentSrc=h,R.src=b,R.ended=x,R.errd=w,R.ex=(y[m]||{}).msg,R.errorCode=O,R.mediaError=A;else{var L=arguments[0];Object.keys(L).map(function(_){R[_]=L[_]}),R.ex=(L.type&&y[L.type]||{}).msg}return R};s.default=n,g.exports=s.default},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e={};Object.defineProperty(e,"device",{get:function(){var y=e.os;return y.isPc?"pc":"mobile"}}),Object.defineProperty(e,"browser",{get:function(){var y=navigator.userAgent.toLowerCase(),n={ie:/rv:([\d.]+)\) like gecko/,firfox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(n).filter(function(p){return n[p].test(y)}))[0]||""}}),Object.defineProperty(e,"os",{get:function(){var y=navigator.userAgent,n=/(?:Windows Phone)/.test(y),p=/(?:SymbianOS)/.test(y)||n,m=/(?:Android)/.test(y),v=/(?:Firefox)/.test(y),l=/(?:iPad|PlayBook)/.test(y)||m&&!/(?:Mobile)/.test(y)||v&&/(?:Tablet)/.test(y),f=/(?:iPhone)/.test(y)&&!l,d=!f&&!m&&!p&&!l;return{isTablet:l,isPhone:f,isAndroid:m,isPc:d,isSymbian:p,isWindowsPhone:n,isFireFox:v}}}),s.default=e,g.exports=s.default},function(g,s,r){var e=void 0;g.exports=function(o){return o!==e&&o!==null}},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=function(){function n(p,m){for(var v=0;v<m.length;v++){var l=m[v];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(p,l.key,l)}}return function(p,m,v){return m&&n(p.prototype,m),v&&n(p,v),p}}();function o(n,p){if(!(n instanceof p))throw new TypeError("Cannot call a class as a function")}var y=function(){function n(p){o(this,n),this.bufferedList=p}return e(n,[{key:"start",value:function(m){return this.bufferedList[m].start}},{key:"end",value:function(m){return this.bufferedList[m].end}},{key:"length",get:function(){return this.bufferedList.length}}]),n}();s.default=y,g.exports=s.default},function(g){g.exports=JSON.parse('{"version":"2.32.2"}')},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=function(){function C(a,i){for(var t=0;t<i.length;t++){var c=i[t];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}}return function(a,i,t){return i&&C(a.prototype,i),t&&C(a,t),a}}(),o=function C(a,i,t){a===null&&(a=Function.prototype);var c=Object.getOwnPropertyDescriptor(a,i);if(c===void 0){var E=Object.getPrototypeOf(a);return E===null?void 0:C(E,i,t)}else{if("value"in c)return c.value;var k=c.get;return k===void 0?void 0:k.call(t)}},y=r(11),n=R(y),p=r(0),m=r(5),v=R(m),l=r(7),f=R(l),d=r(4),b=R(d),h=r(31),x=R(h),w=r(10),O=R(w);r(34);var A=r(8);function R(C){return C&&C.__esModule?C:{default:C}}function L(C,a){if(!(C instanceof a))throw new TypeError("Cannot call a class as a function")}function _(C,a){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:C}function N(C,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);C.prototype=Object.create(a&&a.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(C,a):C.__proto__=a)}var U=function(C){N(a,C);function a(i){L(this,a);var t=_(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,i));if(t.config=(0,p.deepCopy)({width:600,height:337.5,ignores:[],whitelist:[],lang:(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase(),inactive:3e3,volume:.6,controls:!0,controlsList:["nodownload"]},i),t.version=A.version,t.userTimer=null,t.waitTimer=null,t.history=[],t.isProgressMoving=!1,t.root=(0,p.findDom)(document,"#"+t.config.id),t.controls=(0,p.createDom)("xg-controls","",{unselectable:"on",onselectstart:"return false"},"xgplayer-controls"),t.config.isShowControl&&(t.controls.style.display="none"),!t.root){var c=t.config.el;if(c&&c.nodeType===1)t.root=c;else{var E;return t.emit("error",new b.default({type:"use",errd:{line:45,handle:"Constructor",msg:"container id can't be empty"},vid:t.config.vid})),console.error("container id can't be empty"),E=!1,_(t,E)}}if((0,p.addClass)(t.root,"xgplayer xgplayer-"+v.default.device+" xgplayer-nostart xgplayer-pause "+(t.config.controls?"":"xgplayer-no-controls")),t.root.appendChild(t.controls),t.config.fluid?(t.root.style["max-width"]="100%",t.root.style.width="100%",t.root.style.height="0",t.root.style["padding-top"]=t.config.height*100/t.config.width+"%",t.video.style.position="absolute",t.video.style.top="0",t.video.style.left="0"):(t.config.width&&(typeof t.config.width!="number"?t.root.style.width=t.config.width:t.root.style.width=t.config.width+"px"),t.config.height&&(typeof t.config.height!="number"?t.root.style.height=t.config.height:t.root.style.height=t.config.height+"px")),t.config.execBeforePluginsCall&&t.config.execBeforePluginsCall.forEach(function(T){T.call(t,t)}),t.config.closeI18n||a.install(O.default.name,O.default.method),t.config.controlStyle&&(0,p.typeOf)(t.config.controlStyle)==="String"){var k=t;fetch(k.config.controlStyle,{method:"GET",headers:{Accept:"application/json"}}).then(function(T){T.ok&&T.json().then(function(S){for(var I in S)S.hasOwnProperty(I)&&(k.config[I]=S[I]);k.pluginsCall()})}).catch(function(T){console.log("Fetch错误:"+T)})}else t.pluginsCall();t.config.controlPlugins&&a.controlsRun(t.config.controlPlugins,t),t.ev.forEach(function(T){var S=Object.keys(T)[0],I=t[T[S]];I&&t.on(S,I)}),["focus","blur"].forEach(function(T){t.on(T,t["on"+T.charAt(0).toUpperCase()+T.slice(1)])});var P=t;t.mousemoveFunc=function(){P.emit("focus"),P.config.closeFocusVideoFocus||P.video.focus()},t.root.addEventListener("mousemove",t.mousemoveFunc),t.playFunc=function(){P.emit("focus"),P.config.closePlayVideoFocus||P.video.focus()},P.once("play",t.playFunc),t.getVideoSize=function(){if(this.video.videoWidth&&this.video.videoHeight){var T=P.root.getBoundingClientRect();P.config.fitVideoSize==="auto"?T.width/T.height>this.video.videoWidth/this.video.videoHeight?P.root.style.height=this.video.videoHeight/this.video.videoWidth*T.width+"px":P.root.style.width=this.video.videoWidth/this.video.videoHeight*T.height+"px":P.config.fitVideoSize==="fixWidth"?P.root.style.height=this.video.videoHeight/this.video.videoWidth*T.width+"px":P.config.fitVideoSize==="fixHeight"&&(P.root.style.width=this.video.videoWidth/this.video.videoHeight*T.height+"px")}},P.once("loadeddata",t.getVideoSize),setTimeout(function(){t.emit("ready"),t.isReady=!0},0),t.config.videoInit&&(0,p.hasClass)(t.root,"xgplayer-nostart")&&t.start(),P.config.rotate&&(P.on("requestFullscreen",t.updateRotateDeg),P.on("exitFullscreen",t.updateRotateDeg));function u(){P.root.removeEventListener("mousemove",P.mousemoveFunc),P.off("destroy",u)}return P.once("destroy",u),t}return e(a,[{key:"attachVideo",value:function(){var t=this;this.video&&this.video.nodeType===1&&this.root.insertBefore(this.video,this.root.firstChild),setTimeout(function(){t.emit("complete"),t.danmu&&typeof t.danmu.resize=="function"&&t.danmu.resize()},1)}},{key:"start",value:function(){var t=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.url;if(this.video){var E=this;if(!c||c===""){this.emit("urlNull");return}this.canPlayFunc=function(){E.off("canplay",E.canPlayFunc);var k=E.video.play();k!==void 0&&k&&k.then(function(){E.emit("autoplay started")}).catch(function(){E.emit("autoplay was prevented"),(0,p.addClass)(E.root,"xgplayer-is-autoplay")})},(0,p.typeOf)(c)!=="Array"?(0,p.typeOf)(c)==="String"&&c.indexOf("blob:")>-1&&c===this.video.src||(this.video.src=c):c.forEach(function(k){t.video.appendChild((0,p.createDom)("source","",{src:""+k.src,type:""+(k.type||"")}))}),this.config.autoplay&&(v.default.os.isPhone?this.canPlayFunc():this.on("canplay",this.canPlayFunc)),this.config.disableStartLoad||this.video.load(),this.attachVideo()}}},{key:"reload",value:function(){this.video.load(),this.reloadFunc=function(){var t=this.play();t!==void 0&&t&&t.catch(function(c){})},this.once("loadeddata",this.reloadFunc)}},{key:"destroy",value:function(){var t=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,E=this;clearInterval(this.bulletResizeTimer);for(var k in this._interval)clearInterval(this._interval[k]),this._interval[k]=null;this.checkTimer&&clearInterval(this.checkTimer),this.waitTimer&&clearTimeout(this.waitTimer),this.ev.forEach(function(u){var T=Object.keys(u)[0],S=t[u[T]];S&&t.off(T,S)}),this.loadeddataFunc&&this.off("loadeddata",this.loadeddataFunc),this.reloadFunc&&this.off("loadeddata",this.reloadFunc),this.replayFunc&&this.off("play",this.replayFunc),this.playFunc&&this.off("play",this.playFunc),this.getVideoSize&&this.off("loadeddata",this.getVideoSize),["focus","blur"].forEach(function(u){t.off(u,t["on"+u.charAt(0).toUpperCase()+u.slice(1)])}),(!this.config.keyShortcut||this.config.keyShortcut==="on")&&["video","controls"].forEach(function(u){t[u]&&t[u].removeEventListener("keydown",function(T){E.onKeydown(T,E)})});function P(){if(this.emit("destroy"),this.video.removeAttribute("src"),this.video.load(),c){this.root.innerHTML="";var u=this.root.className.split(" ");u.length>0?this.root.className=u.filter(function(S){return S.indexOf("xgplayer")<0}).join(" "):this.root.className=""}for(var T in this)delete this[T];(0,x.default)(this)}P.call(this),o(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"destroy",this).call(this)}},{key:"replay",value:function(){var t=this._replay;if((0,p.removeClass)(this.root,"xgplayer-ended"),v.default.browser.indexOf("ie")>-1&&(this.emit("play"),this.emit("playing")),t&&t instanceof Function)t();else{this.currentTime=0;var c=this.play();c!==void 0&&c&&c.catch(function(E){})}}},{key:"userGestureTrigEvent",value:function(t,c){var E=this,k=function(u,T){E.emit(u,T)};this.config.userGestureEventMiddleware&&typeof this.config.userGestureEventMiddleware[t]=="function"?this.config.userGestureEventMiddleware[t].call(this,this,t,c,k):k.call(this,t,c)}},{key:"pluginsCall",value:function(){var t=this;a.plugins.s_i18n&&a.plugins.s_i18n.call(this,this);var c=this;if(a.plugins){var E=this.config.ignores;Object.keys(a.plugins).forEach(function(k){var P=a.plugins[k];!P||typeof P!="function"?console.warn("plugin name",k,"is invalid"):!E.some(function(u){return k===u||k==="s_"+u})&&k!=="s_i18n"&&(["pc","tablet","mobile"].some(function(u){return u===k})?k===v.default.device&&setTimeout(function(){c.video&&P.call(c,c)},0):P.call(t,t))})}}},{key:"onFocus",value:function(){var t=this;(0,p.hasClass)(this.root,"xgplayer-inactive")&&t.emit("controlShow"),(0,p.removeClass)(this.root,"xgplayer-inactive"),t.userTimer&&clearTimeout(t.userTimer),t.userTimer=setTimeout(function(){t.emit("blur")},t.config.inactive)}},{key:"onBlur",value:function(){(this.config.enablePausedInactive||!this.paused)&&!this.ended&&!this.config.closeInactive&&((0,p.hasClass)(this.root,"xgplayer-inactive")||this.emit("controlHide"),(0,p.addClass)(this.root,"xgplayer-inactive"))}},{key:"onPlay",value:function(){(0,p.addClass)(this.root,"xgplayer-isloading"),(0,p.addClass)(this.root,"xgplayer-playing"),(0,p.removeClass)(this.root,"xgplayer-pause")}},{key:"onPause",value:function(){(0,p.addClass)(this.root,"xgplayer-pause"),this.userTimer&&clearTimeout(this.userTimer),this.emit("focus")}},{key:"onEnded",value:function(){(0,p.addClass)(this.root,"xgplayer-ended"),(0,p.removeClass)(this.root,"xgplayer-playing")}},{key:"onSeeking",value:function(){this.isSeeking=!0,this.onWaiting()}},{key:"onSeeked",value:function(){var t=this;this.once("timeupdate",function(){t.isSeeking=!1}),this.waitTimer&&clearTimeout(this.waitTimer),(0,p.removeClass)(this.root,"xgplayer-isloading")}},{key:"onWaiting",value:function(){var t=this;t.waitTimer&&clearTimeout(t.waitTimer),t.checkTimer&&(clearInterval(t.checkTimer),t.checkTimer=null);var c=t.currentTime;t.waitTimer=setTimeout(function(){(0,p.addClass)(t.root,"xgplayer-isloading"),t.checkTimer=setInterval(function(){t.currentTime!==c&&((0,p.removeClass)(t.root,"xgplayer-isloading"),clearInterval(t.checkTimer),t.checkTimer=null)},1e3)},500)}},{key:"onPlaying",value:function(){this.paused||(this.isSeeking=!1,this.waitTimer&&clearTimeout(this.waitTimer),(0,p.removeClass)(this.root,"xgplayer-isloading xgplayer-nostart xgplayer-pause xgplayer-ended xgplayer-is-error xgplayer-replay"),(0,p.addClass)(this.root,"xgplayer-playing"))}}],[{key:"install",value:function(t,c){(0,p.checkIsBrowser)()&&(a.plugins||(a.plugins={}),a.plugins[t]||(a.plugins[t]=c))}},{key:"installAll",value:function(t){for(var c=0;c<t.length;c++)a.install(t[c].name,t[c].method)}},{key:"use",value:function(t,c){a.plugins||(a.plugins={}),a.plugins[t]=c}},{key:"useAll",value:function(t){for(var c in t)a.use(t[c].name,t[c].method)}},{key:"controlsRun",value:function(t,c){t.forEach(function(E){E.method.call(c)})}}]),a}(n.default);U.util=p.util,U.sniffer=v.default,U.Errors=b.default,U.XgplayerTimeRange=f.default,s.default=U,g.exports=s.default},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=function(){var n=this,p={};p.en={HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"Audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"Network is offline",PLAY_TIPS:"Play",PAUSE_TIPS:"Pause",PLAYNEXT_TIPS:"Play next",DOWNLOAD_TIPS:"Download",ROTATE_TIPS:"Rotate",RELOAD_TIPS:"Reload",FULLSCREEN_TIPS:"Fullscreen",EXITFULLSCREEN_TIPS:"Exit fullscreen",CSSFULLSCREEN_TIPS:"Cssfullscreen",EXITCSSFULLSCREEN_TIPS:"Exit cssfullscreen",TEXTTRACK:"Caption",PIP:"Pip",MINIPLAYER:"Miniplayer",SCREENSHOT:"Screenshot",LIVE:"LIVE",OFF:"Off",MINIPLAYER_DRAG:"Click and hold to drag",AIRPLAY_TIPS:"Airplay"},p["zh-cn"]={HAVE_NOTHING:"没有关于音频/视频是否就绪的信息",HAVE_METADATA:"音频/视频的元数据已就绪",HAVE_CURRENT_DATA:"关于当前播放位置的数据是可用的,但没有足够的数据来播放下一帧/毫秒",HAVE_FUTURE_DATA:"当前及至少下一帧的数据是可用的",HAVE_ENOUGH_DATA:"可用数据足以开始播放",NETWORK_EMPTY:"音频/视频尚未初始化",NETWORK_IDLE:"音频/视频是活动的且已选取资源,但并未使用网络",NETWORK_LOADING:"浏览器正在下载数据",NETWORK_NO_SOURCE:"未找到音频/视频来源",MEDIA_ERR_ABORTED:"取回过程被用户中止",MEDIA_ERR_NETWORK:"当下载时发生错误",MEDIA_ERR_DECODE:"当解码时发生错误",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式",REPLAY:"重播",ERROR:"网络连接似乎出现了问题",PLAY_TIPS:"播放",PAUSE_TIPS:"暂停",PLAYNEXT_TIPS:"下一集",DOWNLOAD_TIPS:"下载",ROTATE_TIPS:"旋转",RELOAD_TIPS:"重新载入",FULLSCREEN_TIPS:"进入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"进入样式全屏",EXITCSSFULLSCREEN_TIPS:"退出样式全屏",TEXTTRACK:"字幕",PIP:"画中画",MINIPLAYER:"迷你播放器",SCREENSHOT:"截图",LIVE:"正在直播",OFF:"关闭",MINIPLAYER_DRAG:"点击按住可拖动视频",AIRPLAY_TIPS:"隔空播放"},p["zh-hk"]={HAVE_NOTHING:"沒有關於音頻/視頻是否就緒的信息",HAVE_METADATA:"音頻/視頻的元數據已就緒",HAVE_CURRENT_DATA:"關於當前播放位置的數據是可用的,但沒有足夠的數據來播放下壹幀/毫秒",HAVE_FUTURE_DATA:"當前及至少下壹幀的數據是可用的",HAVE_ENOUGH_DATA:"可用數據足以開始播放",NETWORK_EMPTY:"音頻/視頻尚未初始化",NETWORK_IDLE:"音頻/視頻是活動的且已選取資源,但並未使用網絡",NETWORK_LOADING:"瀏覽器正在下載數據",NETWORK_NO_SOURCE:"未找到音頻/視頻來源",MEDIA_ERR_ABORTED:"取回過程被用戶中止",MEDIA_ERR_NETWORK:"當下載時發生錯誤",MEDIA_ERR_DECODE:"當解碼時發生錯誤",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音頻/視頻格式",REPLAY:"重播",ERROR:"網絡連接似乎出現了問題",PLAY_TIPS:"播放",PAUSE_TIPS:"暫停",PLAYNEXT_TIPS:"下壹集",DOWNLOAD_TIPS:"下載",ROTATE_TIPS:"旋轉",RELOAD_TIPS:"重新載入",FULLSCREEN_TIPS:"進入全屏",EXITFULLSCREEN_TIPS:"退出全屏",CSSFULLSCREEN_TIPS:"進入樣式全屏",EXITCSSFULLSCREEN_TIPS:"退出樣式全屏",TEXTTRACK:"字幕",PIP:"畫中畫",MINIPLAYER:"迷妳播放器",SCREENSHOT:"截圖",LIVE:"正在直播",OFF:"關閉",MINIPLAYER_DRAG:"點擊按住可拖動視頻",AIRPLAY_TIPS:"隔空播放"},p.jp={HAVE_NOTHING:"オーディオ/ビデオが準備できているか情報がありません",HAVE_METADATA:"オーディオ/ビデオのメタデータは準備できています",HAVE_CURRENT_DATA:"現在の再生位置に関するデータは利用可能ですが、次のフレーム/ミリ秒を再生するのに十分なデータがありません",HAVE_FUTURE_DATA:"現在、少なくとも次のフレームのデータが利用可能です",HAVE_ENOUGH_DATA:"利用可能なデータは再生を開始するのに十分です",NETWORK_EMPTY:"オーディオ/ビデオが初期化されていません",NETWORK_IDLE:"オーディオ/ビデオはアクティブでリソースが選択されていますが、ネットワークが使用されていません",NETWORK_LOADING:"ブラウザーはデータをダウンロードしています",NETWORK_NO_SOURCE:"オーディオ/ビデオ のソースが見つかりません",MEDIA_ERR_ABORTED:"ユーザーによってフェッチプロセスが中止されました",MEDIA_ERR_NETWORK:"ダウンロード中にエラーが発生しました",MEDIA_ERR_DECODE:"デコード中にエラーが発生しました",MEDIA_ERR_SRC_NOT_SUPPORTED:"オーディオ/ビデオ の形式がサポートされていません",REPLAY:"リプレイ",ERROR:"ネットワークの接続に問題が発生しました",PLAY_TIPS:"プレイ",PAUSE_TIPS:"一時停止",PLAYNEXT_TIPS:"次をプレイ",DOWNLOAD_TIPS:"ダウンロード",ROTATE_TIPS:"回転",RELOAD_TIPS:"再読み込み",FULLSCREEN_TIPS:"フルスクリーン",EXITFULLSCREEN_TIPS:"フルスクリーンを終了",CSSFULLSCREEN_TIPS:"シアターモード",EXITCSSFULLSCREEN_TIPS:"シアターモードを終了",TEXTTRACK:"字幕",PIP:"ミニプレーヤー",MINIPLAYER:"ミニプレーヤー",SCREENSHOT:"スクリーンショット",LIVE:"生放送",OFF:"オフ",MINIPLAYER_DRAG:"ボタンを押して働画をドラッグする",AIRPLAY_TIPS:"隔空放送"},Object.defineProperty(n,"lang",{get:function(){return n.config&&p[n.config.lang]||p.en},set:function(v){(0,e.typeOf)(v)==="Object"&&Object.keys(v).forEach(function(l){p[l]=v[l]})}})};s.default={name:"s_i18n",method:o},g.exports=s.default},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=function(){function b(h,x){for(var w=0;w<x.length;w++){var O=x[w];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(h,O.key,O)}}return function(h,x,w){return x&&b(h.prototype,x),w&&b(h,w),h}}(),o=r(12),y=v(o),n=r(0),p=r(4),m=v(p);function v(b){return b&&b.__esModule?b:{default:b}}function l(b,h,x){return h in b?Object.defineProperty(b,h,{value:x,enumerable:!0,configurable:!0,writable:!0}):b[h]=x,b}function f(b,h){if(!(b instanceof h))throw new TypeError("Cannot call a class as a function")}var d=function(){function b(h){var x=this;f(this,b),this._hasStart=!1,this.videoConfig={controls:!!h.isShowControl,autoplay:h.autoplay,playsinline:h.playsinline,"webkit-playsinline":h.playsinline,"x5-playsinline":h.playsinline,"x5-video-player-type":h["x5-video-player-type"]||h.x5VideoPlayerType,"x5-video-player-fullscreen":h["x5-video-player-fullscreen"]||h.x5VideoPlayerFullscreen,"x5-video-orientation":h["x5-video-orientation"]||h.x5VideoOrientation,airplay:h.airplay,"webkit-airplay":h.airplay,tabindex:2,mediaType:h.mediaType||"video"},h.muted&&(this.videoConfig.muted="muted"),h.loop&&(this.videoConfig.loop="loop");var w="";if(this.textTrackShowDefault=!0,h.nativeTextTrack&&Array.isArray(h.nativeTextTrack)&&(h.nativeTextTrack.length>0&&!h.nativeTextTrack.some(function(c){return c.default})&&(h.nativeTextTrack[0].default=!0,this.textTrackShowDefault=!1),h.nativeTextTrack.some(function(c){if(c.src&&c.label&&c.default)return w+='<track src="'+c.src+'" ',c.kind&&(w+='kind="'+c.kind+'" '),w+='label="'+c.label+'" ',c.srclang&&(w+='srclang="'+c.srclang+'" '),w+=(c.default?"default":"")+">",!0}),this.videoConfig.crossorigin="anonymous"),h.textTrackStyle){var O=document.createElement("style");this.textTrackStyle=O,document.head.appendChild(O);var A="";for(var R in h.textTrackStyle)A+=R+": "+h.textTrackStyle[R]+";";var L=h.id?"#"+h.id:h.el.id?"#"+h.el.id:"."+h.el.className;O.sheet.insertRule?O.sheet.insertRule(L+" video::cue { "+A+" }",0):O.sheet.addRule&&O.sheet.addRule(L+" video::cue",A)}var _=h.el?h.el:(0,n.findDom)(document,"#"+h.id),N=this.constructor.XgVideoProxy;if(N&&this.videoConfig.mediaType===N.mediaType?this.video=new N(_,h):this.video=(0,n.createDom)(this.videoConfig.mediaType,w,this.videoConfig,""),h.videoStyle&&Object.keys(h.videoStyle).forEach(function(c){(0,n.setStyle)(x.video,c,h.videoStyle[c])}),!this.textTrackShowDefault&&w){var U=this.video.getElementsByTagName("Track");U[0].track.mode="hidden"}h.autoplay&&(this.video.autoplay=!0,h.autoplayMuted&&(this.video.muted=!0)),this.ev=["play","playing","pause","ended","error","seeking","seeked","progress","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","ratechange","loadedmetadata","loadeddata","loadstart"].map(function(c){return l({},c,"on"+c.charAt(0).toUpperCase()+c.slice(1))}),(0,y.default)(this),this._interval={};var C="0,0",a=this,i=function(E){x&&(E==="play"?x.hasStart=!0:E==="canplay"?(0,n.removeClass)(x.root,"xgplayer-is-enter"):E==="waiting"?x.inWaitingStart=new Date().getTime():E==="playing"&&((0,n.removeClass)(x.root,"xgplayer-is-enter"),x.inWaitingStart&&(x.inWaitingStart=void 0)),E==="error"?x._onError(E):x.emit(E,x),x.hasOwnProperty("_interval")&&(["ended","error","timeupdate"].indexOf(E)<0?((0,n._clearInterval)(x,"bufferedChange"),(0,n._setInterval)(x,"bufferedChange",function(){if(this.video&&this.video.buffered){for(var k=[],P=0,u=this.video.buffered.length;P<u;P++)k.push([this.video.buffered.start(P),this.video.buffered.end(P)]);k.toString()!==C&&(C=k.toString(),this.emit("bufferedChange",k))}},200)):E!=="timeupdate"&&(0,n._clearInterval)(x,"bufferedChange")))},t=function(E){h.videoEventMiddleware&&typeof h.videoEventMiddleware[E]=="function"?h.videoEventMiddleware[E].call(x,x,E,i):i.call(x,E)};this.ev.forEach(function(c){a.evItem=Object.keys(c)[0];var E=Object.keys(c)[0];a.video.addEventListener(Object.keys(c)[0],t.bind(a,E))})}return e(b,[{key:"_onError",value:function(x){this.video&&this.video.error&&this.emit(x,new m.default("other",this.currentTime,this.duration,this.networkState,this.readyState,this.currentSrc,this.src,this.ended,{line:162,msg:this.error,handle:"Constructor"},this.video.error.code,this.video.error))}},{key:"destroy",value:function(){this.textTrackStyle&&this.textTrackStyle.parentNode.removeChild(this.textTrackStyle)}},{key:"play",value:function(){return this.video.play()}},{key:"pause",value:function(){this.video.pause()}},{key:"canPlayType",value:function(x){return this.video.canPlayType(x)}},{key:"getBufferedRange",value:function(x){var w=[0,0],O=this.video;x||(x=O.buffered);var A=O.currentTime;if(x)for(var R=0,L=x.length;R<L&&(w[0]=x.start(R),w[1]=x.end(R),!(w[0]<=A&&A<=w[1]));R++);return w[0]-A<=0&&A-w[1]<=0?w:[0,0]}},{key:"proxyOn",value:function(x,w){(0,n.on)(this,x,w,"destroy")}},{key:"proxyOnce",value:function(x,w){(0,n.once)(this,x,w,"destroy")}},{key:"hasStart",get:function(){return this._hasStart},set:function(x){typeof x=="boolean"&&x===!0&&!this._hasStart&&(this._hasStart=!0,this.emit("hasstart"))}},{key:"autoplay",set:function(x){this.video&&(this.video.autoplay=x)},get:function(){return this.video?this.video.autoplay:!1}},{key:"buffered",get:function(){if(this.video)return this.video.buffered}},{key:"buffered2",get:function(){return(0,n.getBuffered2)(this.video.buffered)}},{key:"crossOrigin",get:function(){return this.video?this.video.crossOrigin:!1},set:function(x){this.video&&(this.video.crossOrigin=x)}},{key:"currentSrc",get:function(){if(this.video)return this.video.currentSrc}},{key:"currentTime",get:function(){return this.video&&this.video.currentTime||0},set:function(x){var w=this;typeof isFinite=="function"&&!isFinite(x)||((0,n.hasClass)(this.root,"xgplayer-ended")?(this.once("playing",function(){w.video.currentTime=x}),this.replay()):this.video.currentTime=x,this.emit("currentTimeChange",x))}},{key:"defaultMuted",get:function(){return this.video?this.video.defaultMuted:!1},set:function(x){this.video&&(this.video.defaultMuted=x)}},{key:"duration",get:function(){return this.config.duration?this.video?Math.min(this.config.duration,this.video.duration):this.config.duration:this.video?this.video.duration:null}},{key:"ended",get:function(){return this.video?this.video.ended||!1:!0}},{key:"error",get:function(){var x=this.video.error;if(!x)return null;var w=[{en:"MEDIA_ERR_ABORTED",cn:"取回过程被用户中止"},{en:"MEDIA_ERR_NETWORK",cn:"当下载时发生错误"},{en:"MEDIA_ERR_DECODE",cn:"当解码时发生错误"},{en:"MEDIA_ERR_SRC_NOT_SUPPORTED",cn:"不支持音频/视频"}];return this.lang?this.lang[w[x.code-1].en]:w[x.code-1].en}},{key:"loop",get:function(){return this.video?this.video.loop:!1},set:function(x){this.video&&(this.video.loop=x)}},{key:"muted",get:function(){return this.video?this.video.muted:!1},set:function(x){this.video&&(this.video.muted=x)}},{key:"networkState",get:function(){var x=[{en:"NETWORK_EMPTY",cn:"音频/视频尚未初始化"},{en:"NETWORK_IDLE",cn:"音频/视频是活动的且已选取资源,但并未使用网络"},{en:"NETWORK_LOADING",cn:"浏览器正在下载数据"},{en:"NETWORK_NO_SOURCE",cn:"未找到音频/视频来源"}];return this.lang?this.lang[x[this.video.networkState].en]:x[this.video.networkState].en}},{key:"paused",get:function(){return(0,n.hasClass)(this.root,"xgplayer-pause")}},{key:"playbackRate",get:function(){return this.video?this.video.playbackRate:1},set:function(x){this.video&&(this.video.playbackRate=x)}},{key:"played",get:function(){if(this.video)return this.video.played}},{key:"preload",get:function(){return this.video?this.video.preload:!1},set:function(x){this.video&&(this.video.preload=x)}},{key:"readyState",get:function(){var x=[{en:"HAVE_NOTHING",cn:"没有关于音频/视频是否就绪的信息"},{en:"HAVE_METADATA",cn:"关于音频/视频就绪的元数据"},{en:"HAVE_CURRENT_DATA",cn:"关于当前播放位置的数据是可用的,但没有足够的数据来播放下一帧/毫秒"},{en:"HAVE_FUTURE_DATA",cn:"当前及至少下一帧的数据是可用的"},{en:"HAVE_ENOUGH_DATA",cn:"可用数据足以开始播放"}];return this.lang?this.lang[x[this.video.readyState].en]:x[this.video.readyState]}},{key:"seekable",get:function(){return this.video?this.video.seekable:!1}},{key:"seeking",get:function(){return this.video?this.video.seeking:!1}},{key:"src",get:function(){if(this.video)return this.video.src},set:function(x){(0,n.hasClass)(this.root,"xgplayer-ended")||this.emit("urlchange",this.video.src),(0,n.removeClass)(this.root,"xgplayer-ended xgplayer-is-replay xgplayer-is-error"),this.video.pause(),this.emit("pause"),this.video.src=x,this.emit("srcChange")}},{key:"poster",set:function(x){var w=(0,n.findDom)(this.root,".xgplayer-poster");w&&(w.style.backgroundImage="url("+x+")")}},{key:"volume",get:function(){return this.video?this.video.volume:1},set:function(x){this.video&&(this.video.volume=x)}},{key:"fullscreen",get:function(){return(0,n.hasClass)(this.root,"xgplayer-is-fullscreen")||(0,n.hasClass)(this.root,"xgplayer-fullscreen-active")}},{key:"bullet",get:function(){return(0,n.findDom)(this.root,"xg-danmu")?(0,n.hasClass)((0,n.findDom)(this.root,"xg-danmu"),"xgplayer-has-danmu"):!1}},{key:"textTrack",get:function(){return(0,n.hasClass)(this.root,"xgplayer-is-textTrack")}},{key:"pip",get:function(){return(0,n.hasClass)(this.root,"xgplayer-pip-active")}},{key:"isMiniPlayer",get:function(){return(0,n.hasClass)(this.root,"xgplayer-miniplayer-active")}}]),b}();s.default=d,g.exports=s.default},function(g,s,r){var e=r(13),o=r(30),y=Function.prototype.apply,n=Function.prototype.call,p=Object.create,m=Object.defineProperty,v=Object.defineProperties,l=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},d,b,h,x,w,O,A;d=function(R,L){var _;return o(L),l.call(this,"__ee__")?_=this.__ee__:(_=f.value=p(null),m(this,"__ee__",f),f.value=null),_[R]?typeof _[R]=="object"?_[R].push(L):_[R]=[_[R],L]:_[R]=L,this},b=function(R,L){var _,N;return o(L),N=this,d.call(this,R,_=function(){h.call(N,R,_),y.call(L,this,arguments)}),_.__eeOnceListener__=L,this},h=function(R,L){var _,N,U,C;if(o(L),!l.call(this,"__ee__"))return this;if(_=this.__ee__,!_[R])return this;if(N=_[R],typeof N=="object")for(C=0;U=N[C];++C)(U===L||U.__eeOnceListener__===L)&&(N.length===2?_[R]=N[C?0:1]:N.splice(C,1));else(N===L||N.__eeOnceListener__===L)&&delete _[R];return this},x=function(R){var L,_,N,U,C;if(l.call(this,"__ee__")&&(U=this.__ee__[R],!!U))if(typeof U=="object"){for(_=arguments.length,C=new Array(_-1),L=1;L<_;++L)C[L-1]=arguments[L];for(U=U.slice(),L=0;N=U[L];++L)y.call(N,this,C)}else switch(arguments.length){case 1:n.call(U,this);break;case 2:n.call(U,this,arguments[1]);break;case 3:n.call(U,this,arguments[1],arguments[2]);break;default:for(_=arguments.length,C=new Array(_-1),L=1;L<_;++L)C[L-1]=arguments[L];y.call(U,this,C)}},w={on:d,once:b,off:h,emit:x},O={on:e(d),once:e(b),off:e(h),emit:e(x)},A=v({},O),g.exports=s=function(R){return R==null?p(A):v(Object(R),O)},s.methods=w},function(g,s,r){var e=r(6),o=r(14),y=r(18),n=r(26),p=r(27),m=g.exports=function(v,l){var f,d,b,h,x;return arguments.length<2||typeof v!="string"?(h=l,l=v,v=null):h=arguments[2],e(v)?(f=p.call(v,"c"),d=p.call(v,"e"),b=p.call(v,"w")):(f=b=!0,d=!1),x={value:l,configurable:f,enumerable:d,writable:b},h?y(n(h),x):x};m.gs=function(v,l,f){var d,b,h,x;return typeof v!="string"?(h=f,f=l,l=v,v=null):h=arguments[3],e(l)?o(l)?e(f)?o(f)||(h=f,f=void 0):f=void 0:(h=l,l=f=void 0):l=void 0,e(v)?(d=p.call(v,"c"),b=p.call(v,"e")):(d=!0,b=!1),x={get:l,set:f,configurable:d,enumerable:b},h?y(n(h),x):x}},function(g,s,r){var e=r(15),o=/^\s*class[\s{/}]/,y=Function.prototype.toString;g.exports=function(n){return!(!e(n)||o.test(y.call(n)))}},function(g,s,r){var e=r(16);g.exports=function(o){if(typeof o!="function"||!hasOwnProperty.call(o,"length"))return!1;try{if(typeof o.length!="number"||typeof o.call!="function"||typeof o.apply!="function")return!1}catch{return!1}return!e(o)}},function(g,s,r){var e=r(17);g.exports=function(o){if(!e(o))return!1;try{return o.constructor?o.constructor.prototype===o:!1}catch{return!1}}},function(g,s,r){var e=r(6),o={object:!0,function:!0,undefined:!0};g.exports=function(y){return e(y)?hasOwnProperty.call(o,typeof y):!1}},function(g,s,r){g.exports=r(19)()?Object.assign:r(20)},function(g,s,r){g.exports=function(){var e=Object.assign,o;return typeof e!="function"?!1:(o={foo:"raz"},e(o,{bar:"dwa"},{trzy:"trzy"}),o.foo+o.bar+o.trzy==="razdwatrzy")}},function(g,s,r){var e=r(21),o=r(25),y=Math.max;g.exports=function(n,p){var m,v,l=y(arguments.length,2),f;for(n=Object(o(n)),f=function(d){try{n[d]=p[d]}catch(b){m||(m=b)}},v=1;v<l;++v)p=arguments[v],e(p).forEach(f);if(m!==void 0)throw m;return n}},function(g,s,r){g.exports=r(22)()?Object.keys:r(23)},function(g,s,r){g.exports=function(){try{return Object.keys("primitive"),!0}catch{return!1}}},function(g,s,r){var e=r(3),o=Object.keys;g.exports=function(y){return o(e(y)?Object(y):y)}},function(g,s,r){g.exports=function(){}},function(g,s,r){var e=r(3);g.exports=function(o){if(!e(o))throw new TypeError("Cannot use null or undefined");return o}},function(g,s,r){var e=r(3),o=Array.prototype.forEach,y=Object.create,n=function(p,m){var v;for(v in p)m[v]=p[v]};g.exports=function(p){var m=y(null);return o.call(arguments,function(v){e(v)&&n(Object(v),m)}),m}},function(g,s,r){g.exports=r(28)()?String.prototype.contains:r(29)},function(g,s,r){var e="razdwatrzy";g.exports=function(){return typeof e.contains!="function"?!1:e.contains("dwa")===!0&&e.contains("foo")===!1}},function(g,s,r){var e=String.prototype.indexOf;g.exports=function(o){return e.call(this,o,arguments[1])>-1}},function(g,s,r){g.exports=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e}},function(g,s,r){var e=r(32),o=Object.prototype.hasOwnProperty;g.exports=function(y){var n=arguments[1],p;if(e(y),n!==void 0){if(p=o.call(y,"__ee__")&&y.__ee__,!p)return;p[n]&&delete p[n];return}o.call(y,"__ee__")&&delete y.__ee__}},function(g,s,r){var e=r(33);g.exports=function(o){if(!e(o))throw new TypeError(o+" is not an Object");return o}},function(g,s,r){var e=r(3),o={function:!0,object:!0};g.exports=function(y){return e(y)&&o[typeof y]||!1}},function(g,s,r){var e=r(35);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,".xgplayer-skin-default{background:#000;width:100%;height:100%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;-ms-user-select:none}.xgplayer-skin-default *{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.xgplayer-skin-default.xgplayer-rotate-fullscreen{position:absolute;top:0;left:100%;bottom:0;right:0;height:100vw!important;width:100vh!important;-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.xgplayer-skin-default.xgplayer-is-fullscreen{width:100%!important;height:100%!important;padding-top:0!important;z-index:9999}.xgplayer-skin-default.xgplayer-is-fullscreen.xgplayer-inactive{cursor:none}.xgplayer-skin-default video{width:100%;height:100%;outline:none}.xgplayer-skin-default .xgplayer-none{display:none}@-webkit-keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}@keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}.xgplayer-skin-default .xgplayer-controls{display:-webkit-flex;display:-moz-box;display:flex;position:absolute;bottom:0;left:0;right:0;height:40px;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.37),rgba(0,0,0,.75),rgba(0,0,0,.75));z-index:10}.xgplayer-skin-default.xgplayer-inactive .xgplayer-controls,.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-progress,.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-time,.xgplayer-skin-default.xgplayer-no-controls .xgplayer-controls,.xgplayer-skin-default.xgplayer-nostart .xgplayer-controls{display:none}.xgplayer-skin-default.xgplayer-is-live .xgplayer-controls .xgplayer-live{display:block}.xgplayer-skin-default .xgplayer-live{display:block;font-size:12px;color:#fff;line-height:40px;-webkit-order:1;-moz-box-ordinal-group:2;order:1}.xgplayer-skin-default .xgplayer-icon{display:block;width:40px;height:40px;overflow:hidden;fill:#fff}.xgplayer-skin-default .xgplayer-icon svg{position:absolute}.xgplayer-skin-default .xgplayer-tips{background:rgba(0,0,0,.54);border-radius:1px;display:none;position:absolute;font-family:PingFangSC-Regular;font-size:11px;color:#fff;padding:2px 4px;text-align:center;top:-30px;left:50%;margin-left:-16px;width:auto;white-space:nowrap}.xgplayer-skin-default.xgplayer-mobile .xgplayer-tips{display:none!important}.xgplayer-skin-default .xgplayer-screen-container{display:block;width:100%}",""])},function(g,s){g.exports=function(r){var e=typeof window<"u"&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!r||typeof r!="string")return r;var o=e.protocol+"//"+e.host,y=o+e.pathname.replace(/\/[^\/]*$/,"/"),n=r.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(p,m){var v=m.trim().replace(/^"(.*)"$/,function(f,d){return d}).replace(/^'(.*)'$/,function(f,d){return d});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(v))return p;var l;return v.indexOf("//")===0?l=v:v.indexOf("/")===0?l=o+v:l=y+v.replace(/^\.\//,""),"url("+JSON.stringify(l)+")"});return n}},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=function(){var n=this,p=n.root,m=0,v=void 0,l={first:"",second:""};n.onElementTouchend=function(b,h){this.config.closeVideoPreventDefault||b.preventDefault(),this.config.closeVideoStopPropagation||b.stopPropagation();var x=this;if((0,e.hasClass)(p,"xgplayer-inactive")?x.emit("focus"):x.emit("blur"),!x.config.closeVideoTouch&&!x.isTouchMove){var w=function(){v=setTimeout(function(){if((0,e.hasClass)(x.root,"xgplayer-nostart"))return!1;if(!x.ended)if(x.paused){var A=x.play();A!==void 0&&A&&A.catch(function(R){})}else x.pause();m=0},200)};x.config.closeVideoClick||(m++,v&&clearTimeout(v),m===1?x.config.enableVideoDbltouch?l.first=new Date:w():m===2&&x.config.enableVideoDbltouch?(l.second=new Date,Math.abs(l.first-l.second)<400?w():(l.first=new Date,m=1)):m=0)}};function f(b){n.video.addEventListener("touchend",function(h){n.onElementTouchend(h,n.video)}),n.video.addEventListener("touchstart",function(){n.isTouchMove=!1}),n.video.addEventListener("touchmove",function(){n.isTouchMove=!0}),n.config.autoplay&&n.start()}n.once("ready",f);function d(){n.off("ready",f),n.off("destroy",d)}n.once("destroy",d)};s.default={name:"mobile",method:o},g.exports=s.default},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=function(){var n=this;if(!n.controls||!n.video)return;var p=n.controls,m=n.root,v=0,l=void 0;n.onElementClick=function(A,R){this.config.closeVideoPreventDefault||A.preventDefault(),this.config.closeVideoStopPropagation||A.stopPropagation();var L=this;L.config.closeVideoClick||(v++,l&&clearTimeout(l),v===1?l=setTimeout(function(){if((0,e.hasClass)(L.root,"xgplayer-nostart"))return!1;if(!L.ended)if(L.paused){var _=L.play();_!==void 0&&_&&_.catch(function(N){})}else L.pause();v=0},200):v=0)},n.video.addEventListener("click",function(A){n.onElementClick(A,n.video)},!1),n.onElementDblclick=function(A,R){this.config.closeVideoPreventDefault||A.preventDefault(),this.config.closeVideoStopPropagation||A.stopPropagation();var L=this;if(!L.config.closeVideoDblclick){var _=p.querySelector(".xgplayer-fullscreen");if(_){var N=void 0;document.createEvent?(N=document.createEvent("Event"),N.initEvent("click",!0,!0)):N=new Event("click"),_.dispatchEvent(N)}}},n.video.addEventListener("dblclick",function(A){n.onElementDblclick(A,n.video)},!1);function f(){clearTimeout(n.leavePlayerTimer),n.emit("focus",n)}m.addEventListener("mouseenter",f);function d(){n.config.closePlayerBlur||(n.leavePlayerTimer=setTimeout(function(){n.emit("blur",n)},n.config.leavePlayerTime||0))}m.addEventListener("mouseleave",d);function b(A){n.userTimer&&clearTimeout(n.userTimer)}p.addEventListener("mouseenter",b);function h(A){n.config.closeControlsBlur||n.emit("focus",n)}p.addEventListener("mouseleave",h);function x(A){A.preventDefault(),A.stopPropagation()}p.addEventListener("click",x);function w(A){n.config.autoplay&&n.start()}n.once("ready",w);function O(){m.removeEventListener("mouseenter",f),m.removeEventListener("mouseleave",d),n.off("ready",w),n.off("destroy",O)}n.once("destroy",O)};s.default={name:"pc",method:o},g.exports=s.default},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=function(){var n=this,p=n.root;function m(){n.off("canplay",m);var f=n.play();f!==void 0&&f&&f.catch(function(d){})}function v(){(0,e.hasClass)(p,"xgplayer-nostart")?((0,e.removeClass)(p,"xgplayer-nostart"),(0,e.addClass)(p,"xgplayer-is-enter"),typeof p.contains=="function"?n.video&&n.video.nodeType===1&&!p.contains(n.video)||n.video&&n.video.nodeType!==1&&n.video.mediaSource===void 0?(n.once("canplay",m),n.start()):m():n.video&&n.video.nodeType===1&&!p.querySelector(this.videoConfig.mediaType)||n.video&&n.video.nodeType!==1&&n.video.mediaSource===void 0?(n.once("canplay",m),n.start()):m()):n.paused&&((0,e.removeClass)(p,"xgplayer-nostart xgplayer-isloading"),setTimeout(function(){var f=n.play();f!==void 0&&f&&f.catch(function(d){})},10))}n.on("startBtnClick",v);function l(){n.off("startBtnClick",v),n.off("canplay",m),n.off("destroy",l)}n.once("destroy",l)};s.default={name:"start",method:o},g.exports=s.default},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=r(41),y=m(o),n=r(42),p=m(n);r(43);function m(l){return l&&l.__esModule?l:{default:l}}var v=function(){var f=this,d=f.root,b=(0,e.createDom)("xg-start",'<div class="xgplayer-icon-play">'+y.default+`</div>
|
||
<div class="xgplayer-icon-pause">`+p.default+"</div>",{},"xgplayer-start");function h(x){(0,e.addClass)(x.root,"xgplayer-skin-default"),x.config&&(x.config.autoplay&&!(0,e.isWeiXin)()&&!(0,e.isUc)()&&(0,e.addClass)(x.root,"xgplayer-is-enter"),x.config.lang&&x.config.lang==="en"?(0,e.addClass)(x.root,"xgplayer-lang-is-en"):x.config.lang==="jp"&&(0,e.addClass)(x.root,"xgplayer-lang-is-jp"),x.config.enableContextmenu||x.video.addEventListener("contextmenu",function(w){w.preventDefault(),w.stopPropagation()}))}f.config&&f.config.hideStartBtn&&(0,e.addClass)(d,"xgplayer-start-hide"),f.isReady?(d.appendChild(b),h(f)):f.once("ready",function(){d.appendChild(b),h(f)}),f.once("autoplay was prevented",function(){(0,e.removeClass)(f.root,"xgplayer-is-enter"),(0,e.addClass)(f.root,"xgplayer-nostart")}),f.once("canplay",function(){(0,e.removeClass)(f.root,"xgplayer-is-enter")}),b.onclick=function(x){x.preventDefault(),x.stopPropagation(),f.userGestureTrigEvent("startBtnClick")}};s.default={name:"s_start",method:v},g.exports=s.default},function(g,s,r){r.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">
|
||
<path transform="translate(15,15) scale(0.04,0.04)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
||
</svg>
|
||
`},function(g,s,r){r.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="70" height="70" viewBox="0 0 70 70">
|
||
<path transform="translate(15,15) scale(0.04 0.04)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
||
</svg>
|
||
`},function(g,s,r){var e=r(44);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,".xgplayer-skin-default .xgplayer-start{border-radius:50%;display:inline-block;width:70px;height:70px;background:rgba(0,0,0,.38);overflow:hidden;text-align:center;line-height:70px;vertical-align:middle;position:absolute;left:50%;top:50%;z-index:115;margin:-35px auto auto -35px;cursor:pointer}.xgplayer-skin-default .xgplayer-start div{position:absolute}.xgplayer-skin-default .xgplayer-start div svg{fill:hsla(0,0%,100%,.7)}.xgplayer-skin-default .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default .xgplayer-start .xgplayer-icon-pause{display:none}.xgplayer-skin-default .xgplayer-start:hover{opacity:.85}.xgplayer-skin-default.xgplayer-pause.xgplayer-start-hide .xgplayer-start,.xgplayer-skin-default.xgplayer-playing .xgplayer-start,.xgplayer-skin-default.xgplayer-playing .xgplayer-start .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-start-hide .xgplayer-start{display:none}.xgplayer-skin-default.xgplayer-playing .xgplayer-start .xgplayer-icon-pause{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-start{display:inline-block}.xgplayer-skin-default.xgplayer-pause .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start,.xgplayer-skin-default.xgplayer-pause .xgplayer-start .xgplayer-icon-pause{display:none}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start .xgplayer-icon-play{display:block}.xgplayer-skin-default.xgplayer-is-replay .xgplayer-start .xgplayer-icon-pause{display:none}",""])},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=function(){var n=this,p=n.root;function m(){n.config.rotateFullscreen?(0,e.hasClass)(p,"xgplayer-rotate-fullscreen")?n.exitRotateFullscreen():n.getRotateFullscreen():(0,e.hasClass)(p,"xgplayer-is-fullscreen")?n.exitFullscreen(p):n.getFullscreen(p)}n.on("fullscreenBtnClick",m);function v(){var d=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;d&&d===p?((0,e.addClass)(p,"xgplayer-is-fullscreen"),n.emit("requestFullscreen")):(0,e.hasClass)(p,"xgplayer-is-fullscreen")&&((0,e.removeClass)(p,"xgplayer-is-fullscreen"),n.emit("exitFullscreen")),n.danmu&&typeof n.danmu.resize=="function"&&n.danmu.resize()}["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach(function(d){document.addEventListener(d,v)}),n.video.addEventListener("webkitbeginfullscreen",function(){(0,e.addClass)(p,"xgplayer-is-fullscreen"),n.emit("requestFullscreen")}),n.video.addEventListener("webkitendfullscreen",function(){(0,e.removeClass)(p,"xgplayer-is-fullscreen"),n.emit("exitFullscreen")});function l(d){var b=n.video.webkitPresentationMode;b!==e.PresentationMode.FULLSCREEN&&((0,e.removeClass)(p,"xgplayer-is-fullscreen"),n.emit("exitFullscreen"))}(0,e.checkWebkitSetPresentationMode)(n.video)&&n.video.addEventListener("webkitpresentationmodechanged",l);function f(){n.off("fullscreenBtnClick",m),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach(function(d){document.removeEventListener(d,v)}),(0,e.checkWebkitSetPresentationMode)(n.video)&&n.video.removeEventListener("webkitpresentationmodechanged",l),n.off("destroy",f)}n.once("destroy",f),n.getFullscreen=function(d){var b=this;if(d.requestFullscreen){var h=d.requestFullscreen();h&&h.catch(function(){b.emit("fullscreen error")})}else d.mozRequestFullScreen?d.mozRequestFullScreen():d.webkitRequestFullscreen?d.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT):b.video.webkitSupportsFullscreen?b.video.webkitEnterFullscreen():d.msRequestFullscreen?d.msRequestFullscreen():(0,e.addClass)(d,"xgplayer-is-cssfullscreen")},n.exitFullscreen=function(d){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen(),(0,e.removeClass)(d,"xgplayer-is-cssfullscreen")},n.getRotateFullscreen=function(){var d=this;document.documentElement.style.width="100%",document.documentElement.style.height="100%",d.config.fluid&&(d.root.style["padding-top"]="",d.root.style["max-width"]="unset"),d.root&&!(0,e.hasClass)(d.root,"xgplayer-rotate-fullscreen")&&(0,e.addClass)(d.root,"xgplayer-rotate-fullscreen"),d.emit("getRotateFullscreen")},n.exitRotateFullscreen=function(){var d=this;document.documentElement.style.width="unset",document.documentElement.style.height="unset",d.config.fluid&&(d.root.style.width="100%",d.root.style.height="0",d.root.style["padding-top"]=d.config.height*100/d.config.width+"%",d.root.style["max-width"]="100%"),d.root&&(0,e.hasClass)(d.root,"xgplayer-rotate-fullscreen")&&(0,e.removeClass)(d.root,"xgplayer-rotate-fullscreen"),d.emit("exitRotateFullscreen")}};s.default={name:"fullscreen",method:o},g.exports=s.default},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=function(){var n=this;function p(){if(!(!n.config.allowPlayAfterEnded&&n.ended))if((0,e.hasClass)(n.root,"xgplayer-nostart")&&n.start(),n.paused){var v=n.play();v!==void 0&&v&&v.catch(function(l){})}else n.pause()}n.on("playBtnClick",p);function m(){n.off("playBtnClick",p),n.off("destroy",m)}n.once("destroy",m)};s.default={name:"play",method:o},g.exports=s.default},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=function(){var n=this,p=n.root;function m(){(0,e.removeClass)(p,"xgplayer-is-replay"),n.replay()}n.on("replayBtnClick",m);function v(){n.config.loop||(0,e.addClass)(p,"xgplayer-is-replay")}n.on("ended",v);function l(){n.off("replayBtnClick",m),n.off("destroy",l)}n.once("destroy",l)};s.default={name:"replay",method:o},g.exports=s.default},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=r(49),y=m(o),n=r(50),p=m(n);r(51);function m(l){return l&&l.__esModule?l:{default:l}}var v=function(){var f=this,d=f.config.playBtn?f.config.playBtn:{},b=void 0;d.type==="img"?b=(0,e.createImgBtn)("play",d.url.play,d.width,d.height):b=(0,e.createDom)("xg-play",`<xg-icon class="xgplayer-icon">
|
||
<div class="xgplayer-icon-play">`+y.default+`</div>
|
||
<div class="xgplayer-icon-pause">`+p.default+`</div>
|
||
</xg-icon>`,{},"xgplayer-play");var h={};h.play=f.lang.PLAY_TIPS,h.pause=f.lang.PAUSE_TIPS;var x=(0,e.createDom)("xg-tips",'<span class="xgplayer-tip-play">'+h.play+`</span>
|
||
<span class="xgplayer-tip-pause">`+h.pause+"</span>",{},"xgplayer-tips");b.appendChild(x),f.once("ready",function(){f.controls&&f.controls.appendChild(b)}),["click","touchend"].forEach(function(w){b.addEventListener(w,function(O){O.preventDefault(),O.stopPropagation(),f.userGestureTrigEvent("playBtnClick")})})};s.default={name:"s_play",method:v},g.exports=s.default},function(g,s,r){r.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
|
||
<path transform="translate(2,2) scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
||
</svg>
|
||
`},function(g,s,r){r.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
|
||
<path transform="translate(2,2) scale(0.0320625 0.0320625)" d="M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"></path>
|
||
</svg>
|
||
`},function(g,s,r){var e=r(52);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,".xgplayer-skin-default .xgplayer-play,.xgplayer-skin-default .xgplayer-play-img{width:40px;position:relative;-webkit-order:0;-moz-box-ordinal-group:1;order:0;display:block;cursor:pointer;margin-left:3px}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-play .xgplayer-icon{margin-top:3px;width:32px}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-play .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default .xgplayer-play .xgplayer-icon .xgplayer-icon-play{display:block}.xgplayer-skin-default .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:none}.xgplayer-skin-default .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:block}.xgplayer-skin-default .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:none}.xgplayer-skin-default .xgplayer-play-img:hover,.xgplayer-skin-default .xgplayer-play:hover{opacity:.85}.xgplayer-skin-default .xgplayer-play-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-play:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-icon .xgplayer-icon-play{display:none}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:block}.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-icon .xgplayer-icon-play,.xgplayer-skin-default.xgplayer-playing .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default.xgplayer-playing .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-icon .xgplayer-icon-pause,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-icon .xgplayer-icon-pause{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-tips .xgplayer-tip-play,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-tips .xgplayer-tip-play{display:block}.xgplayer-skin-default.xgplayer-pause .xgplayer-play-img .xgplayer-tips .xgplayer-tip-pause,.xgplayer-skin-default.xgplayer-pause .xgplayer-play .xgplayer-tips .xgplayer-tip-pause{display:none}",""])},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0);r(54);var o=function(){var n=this,p=n.root;if(n.config.poster){var m=(0,e.createDom)("xg-poster","",{},"xgplayer-poster");m.style.backgroundImage="url("+n.config.poster+")",p.appendChild(m)}};s.default={name:"s_poster",method:o},g.exports=s.default},function(g,s,r){var e=r(55);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,".xgplayer-skin-default .xgplayer-poster{display:none;position:absolute;left:0;top:0;width:100%;height:100%;z-index:100;background-size:cover;background-position:50%}.xgplayer-skin-default.xgplayer-nostart .xgplayer-poster{display:block}",""])},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0);r(57);var o=function(){var n=this,p=(0,e.createDom)("xg-placeholder","",{},"xgplayer-placeholder");n.controls.appendChild(p)};s.default={name:"s_flex",method:o},g.exports=s.default},function(g,s,r){var e=r(58);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,".xgplayer-skin-default .xgplayer-placeholder{-webkit-flex:1;-moz-box-flex:1;flex:1;-webkit-order:3;-moz-box-ordinal-group:4;order:3;display:block}",""])},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=r(60),y=m(o),n=r(61),p=m(n);r(62);function m(l){return l&&l.__esModule?l:{default:l}}var v=function(){var f=this,d=f.config.fullscreenBtn?f.config.fullscreenBtn:{},b=void 0;d.type==="img"?b=(0,e.createImgBtn)("fullscreen",d.url.request,d.width,d.height):b=(0,e.createDom)("xg-fullscreen",`<xg-icon class="xgplayer-icon">
|
||
<div class="xgplayer-icon-requestfull">`+y.default+`</div>
|
||
<div class="xgplayer-icon-exitfull">`+p.default+`</div>
|
||
</xg-icon>`,{},"xgplayer-fullscreen");var h={};h.requestfull=f.lang.FULLSCREEN_TIPS,h.exitfull=f.lang.EXITFULLSCREEN_TIPS;var x=(0,e.createDom)("xg-tips",'<span class="xgplayer-tip-requestfull">'+h.requestfull+`</span>
|
||
<span class="xgplayer-tip-exitfull">`+h.exitfull+"</span>",{},"xgplayer-tips");b.appendChild(x),f.once("ready",function(){f.controls&&f.controls.appendChild(b)}),["click","touchend"].forEach(function(w){b.addEventListener(w,function(O){O.preventDefault(),O.stopPropagation(),f.userGestureTrigEvent("fullscreenBtnClick")})})};s.default={name:"s_fullscreen",method:v},g.exports=s.default},function(g,s,r){r.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
|
||
<path 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>
|
||
</svg>
|
||
`},function(g,s,r){r.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40">
|
||
<path 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>
|
||
</svg>
|
||
`},function(g,s,r){var e=r(63);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,".xgplayer-skin-default .xgplayer-fullscreen,.xgplayer-skin-default .xgplayer-fullscreen-img{position:relative;-webkit-order:13;-moz-box-ordinal-group:14;order:13;display:block;cursor:pointer;margin-left:5px;margin-right:3px}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon{margin-top:3px}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon div,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:block}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:none}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips{position:absolute;right:0;left:auto}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:block}.xgplayer-skin-default .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:none}.xgplayer-skin-default .xgplayer-fullscreen-img:hover,.xgplayer-skin-default .xgplayer-fullscreen:hover{opacity:.85}.xgplayer-skin-default .xgplayer-fullscreen-img:hover .xgplayer-tips,.xgplayer-skin-default .xgplayer-fullscreen:hover .xgplayer-tips{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-icon .xgplayer-icon-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-icon .xgplayer-icon-exitfull{display:block}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-requestfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-requestfull{display:none}.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-is-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen-img .xgplayer-tips .xgplayer-tip-exitfull,.xgplayer-skin-default.xgplayer-rotate-fullscreen .xgplayer-fullscreen .xgplayer-tips .xgplayer-tip-exitfull{display:block}",""])},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=r(65),y=n(o);r(66);function n(m){return m&&m.__esModule?m:{default:m}}var p=function(){var v=this,l=v.root,f=(0,e.createDom)("xg-loading",""+y.default,{},"xgplayer-loading");v.once("ready",function(){l.appendChild(f)})};s.default={name:"s_loading",method:p},g.exports=s.default},function(g,s,r){r.r(s),s.default=`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewbox="0 0 100 100">
|
||
<path d="M100,50A50,50,0,1,1,50,0"></path>
|
||
</svg>
|
||
`},function(g,s,r){var e=r(67);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,".xgplayer-skin-default .xgplayer-loading{display:none;width:100px;height:100px;overflow:hidden;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7);position:absolute;left:50%;top:50%;margin:-50px auto auto -50px}.xgplayer-skin-default .xgplayer-loading svg{border-radius:50%;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-animation:loadingRotate 1s linear infinite;animation:loadingRotate 1s linear infinite}.xgplayer-skin-default .xgplayer-loading svg path{stroke:#ddd;stroke-dasharray:236;-webkit-animation:loadingDashOffset 2s linear infinite;animation:loadingDashOffset 2s linear infinite;animation-direction:alternate-reverse;fill:none;stroke-width:12px}.xgplayer-skin-default.xgplayer-nostart .xgplayer-loading{display:none}.xgplayer-skin-default.xgplayer-pause .xgplayer-loading{display:none!important}.xgplayer-skin-default.xgplayer-isloading .xgplayer-loading{display:block}",""])},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=r(5),y=n(o);r(69);function n(v){return v&&v.__esModule?v:{default:v}}var p=function(l){return(0,e.hasClass)(l.root,"xgplayer-rotate-fullscreen")},m=function(){var l=this,f=(0,e.createDom)("xg-progress",`<xg-outer class="xgplayer-progress-outer">
|
||
<xg-cache class="xgplayer-progress-cache"></xg-cache>
|
||
<xg-played class="xgplayer-progress-played">
|
||
<xg-progress-btn class="xgplayer-progress-btn"></xg-progress-btn>
|
||
<xg-point class="xgplayer-progress-point xgplayer-tips"></xg-point>
|
||
<xg-thumbnail class="xgplayer-progress-thumbnail xgplayer-tips"></xg-thumbnail>
|
||
</xg-played>
|
||
</xg-outer>`,{tabindex:1},"xgplayer-progress"),d=void 0;l.controls.appendChild(f);var b=f.querySelector(".xgplayer-progress-played"),h=f.querySelector(".xgplayer-progress-outer"),x=f.querySelector(".xgplayer-progress-cache"),w=f.querySelector(".xgplayer-progress-point"),O=f.querySelector(".xgplayer-progress-thumbnail");l.dotArr={};function A(M,D){M.addEventListener("mouseenter",function(B){D&&((0,e.addClass)(M,"xgplayer-progress-dot-show"),(0,e.addClass)(f,"xgplayer-progress-dot-active"))}),M.addEventListener("mouseleave",function(B){D&&((0,e.removeClass)(M,"xgplayer-progress-dot-show"),(0,e.removeClass)(f,"xgplayer-progress-dot-active"))}),M.addEventListener("touchend",function(B){B.stopPropagation(),D&&((0,e.hasClass)(M,"xgplayer-progress-dot-show")||Object.keys(l.dotArr).forEach(function(j){l.dotArr[j]&&(0,e.removeClass)(l.dotArr[j],"xgplayer-progress-dot-show")}),(0,e.toggleClass)(M,"xgplayer-progress-dot-show"),(0,e.toggleClass)(f,"xgplayer-progress-dot-active"))})}function R(){l.config.progressDot&&(0,e.typeOf)(l.config.progressDot)==="Array"&&l.config.progressDot.forEach(function(M){if(M.time>=0&&M.time<=l.duration){var D=(0,e.createDom)("xg-progress-dot",M.text?'<span class="xgplayer-progress-tip">'+M.text+"</span>":"",{},"xgplayer-progress-dot");if(D.style.left=M.time/l.duration*100+"%",M.duration>=0&&(D.style.width=Math.min(M.duration,l.duration-M.time)/l.duration*100+"%"),M.style)for(var B in M.style)D.style[B]=M.style[B];h.appendChild(D),l.dotArr[M.time]=D,A(D,M.text)}})}l.once("canplay",R),l.addProgressDot=function(M,D,B,j){if(!l.dotArr[M]&&M>=0&&M<=l.duration){var z=(0,e.createDom)("xg-progress-dot",D?'<span class="xgplayer-progress-tip">'+D+"</span>":"",{},"xgplayer-progress-dot");if(z.style.left=M/l.duration*100+"%",B>=0&&(z.style.width=Math.min(B,l.duration-M)/l.duration*100+"%"),j)for(var W in j)z.style[W]=j[W];h.appendChild(z),l.dotArr[M]=z,A(z,D)}},l.removeProgressDot=function(M){if(M>=0&&M<=l.duration&&l.dotArr[M]){var D=l.dotArr[M];D.parentNode.removeChild(D),D=null,l.dotArr[M]=null}},l.removeAllProgressDot=function(){Object.keys(l.dotArr).forEach(function(M){if(l.dotArr[M]){var D=l.dotArr[M];D.parentNode.removeChild(D),D=null,l.dotArr[M]=null}})};var L=0,_=0,N=0,U=0,C=0,a=0,i=[],t=void 0,c=void 0,E=function(){l.config.thumbnail&&(l.config.thumbnail.isShowCoverPreview&&!t&&(b.removeChild(O),t=(0,e.createDom)("xg-coverpreview",`<xg-outer class="xgplayer-coverpreview-outer">
|
||
<xg-thumbnail class="xgplayer-coverpreview-thumbnail"></xg-thumbnail>
|
||
<xg-point class="xgplayer-coverpreview-point"></xg-point>
|
||
</xg-outer>`,{tabindex:1},"xgplayer-coverpreview"),t.querySelector(".xgplayer-coverpreview-outer"),c=t.querySelector(".xgplayer-coverpreview-point"),O=t.querySelector(".xgplayer-coverpreview-thumbnail"),l.root.appendChild(t)),L=l.config.thumbnail.pic_num,_=l.config.thumbnail.width,N=l.config.thumbnail.height,U=l.config.thumbnail.col,C=l.config.thumbnail.row,i=l.config.thumbnail.urls,O.style.width=_+"px",O.style.height=N+"px")};l.on("loadedmetadata",E),typeof l.config.disableSwipeHandler=="function"&&typeof l.config.enableSwipeHandler=="function"&&(l.root.addEventListener("touchmove",function(M){M.preventDefault(),l.disableSwipe||(l.disableSwipe=!0,l.config.disableSwipeHandler.call(l))}),l.root.addEventListener("touchstart",function(M){l.disableSwipe=!0,l.config.disableSwipeHandler.call(l)}),l.root.addEventListener("touchend",function(M){l.disableSwipe=!1,l.config.enableSwipeHandler.call(l)}));var k=["touchstart","mousedown"];y.default.device==="mobile"&&k.pop(),k.forEach(function(M){f.addEventListener(M,function(D){if(!l.config.disableProgress){if(D.stopPropagation(),(0,e.event)(D),D._target===w||!l.config.allowSeekAfterEnded&&l.ended)return!0;f.focus();var B=b.getBoundingClientRect(),j=B.left,z=p(l);z?(j=b.getBoundingClientRect().top,d=f.getBoundingClientRect().height):(d=f.getBoundingClientRect().width,j=b.getBoundingClientRect().left);var W=function(H){H.stopPropagation(),(0,e.event)(H),l.isProgressMoving=!0;var X=(z?H.clientY:H.clientX)-j;X>d&&(X=d);var Y=X/d*l.duration;if(Y<0&&(Y=0),!(l.config.allowSeekPlayed&&Number(Y).toFixed(1)>l.maxPlayedTime))if(b.style.width=X*100/d+"%",l.videoConfig.mediaType==="video"&&!l.dash&&!l.config.closeMoveSeek)console.log("trigger touchmove"),l.currentTime=Number(Y).toFixed(1);else{var q=(0,e.findDom)(l.controls,".xgplayer-time");q&&(q.innerHTML='<span class="xgplayer-time-current">'+(0,e.format)(Y||0)+"</span><span>"+(0,e.format)(l.duration)+"</span>")}if(l.config.thumbnail&&l.config.thumbnail.isShowCoverPreview){c.innerHTML="<span>"+(0,e.format)(Y)+"</span> / "+(0,e.format)(l.duration||0),a=l.duration/L;var J=Math.floor(Y/a);O.style.backgroundImage="url("+i[Math.ceil((J+1)/(U*C))-1]+")";var Z=J+1-U*C*(Math.ceil((J+1)/(U*C))-1),te=Math.ceil(Z/C)-1,G=Z-te*C-1;O.style["background-position"]="-"+G*_+"px -"+te*N+"px",t.style.display="block"}l.emit("focus")},ee=function $(H){if(console.log("up event",H),H.stopPropagation(),(0,e.event)(H),window.removeEventListener("mousemove",W),window.removeEventListener("touchmove",W,{passive:!1}),window.removeEventListener("mouseup",$),window.removeEventListener("touchend",$),y.default.browser.indexOf("ie")<0&&f.blur(),!l.isProgressMoving||l.videoConfig&&l.videoConfig.mediaType==="audio"||l.dash||l.config.closeMoveSeek){var X=(z?H.clientY:H.clientX)-j;X>d&&(X=d);var Y=X/d*l.duration;Y<0&&(Y=0),l.config.allowSeekPlayed&&Number(Y).toFixed(1)>l.maxPlayedTime||(b.style.width=X*100/d+"%",console.warn("trigger touchup"),l.currentTime=Number(Y).toFixed(1))}l.config.thumbnail&&l.config.thumbnail.isShowCoverPreview&&(t.style.display="none"),l.emit("focus"),l.isProgressMoving=!1};return window.addEventListener("touchmove",W,{passive:!1}),window.addEventListener("touchend",ee),window.addEventListener("mousemove",W),window.addEventListener("mouseup",ee),!0}})}),f.addEventListener("mouseenter",function(M){if(!l.config.allowSeekAfterEnded&&l.ended)return!0;var D=p(l),B=D?f.getBoundingClientRect().top:f.getBoundingClientRect().left,j=D?f.getBoundingClientRect().height:f.getBoundingClientRect().width,z=function(H){var X=((D?H.clientY:H.clientX)-B)/j*l.duration;X=X<0?0:X,w.textContent=(0,e.format)(X);var Y=w.getBoundingClientRect().width;if(l.config.thumbnail&&!l.config.thumbnail.isShowCoverPreview){a=l.duration/L;var q=Math.floor(X/a);O.style.backgroundImage="url("+i[Math.ceil((q+1)/(U*C))-1]+")";var J=q+1-U*C*(Math.ceil((q+1)/(U*C))-1),Z=Math.ceil(J/C)-1,te=J-Z*C-1;O.style["background-position"]="-"+te*_+"px -"+Z*N+"px";var G=(D?H.clientY:H.clientX)-B-_/2;G=G>0?G:0,G=G<j-_?G:j-_,O.style.left=G+"px",O.style.top=-10-N+"px",O.style.display="block",w.style.left=G+_/2-Y/2+"px"}else{var K=H.clientX-B-Y/2;K=K>0?K:0,K=K>j-Y?j-Y:K,w.style.left=K+"px"}(0,e.hasClass)(f,"xgplayer-progress-dot-active")?w.style.display="none":w.style.display="block"},W=function(H){z(H)},ee=function $(H){f.removeEventListener("mousemove",W,!1),f.removeEventListener("mouseleave",$,!1),z(H),w.style.display="none",l.config.thumbnail&&!l.config.thumbnail.isShowCoverPreview&&(O.style.display="none")};f.addEventListener("mousemove",W,!1),f.addEventListener("mouseleave",ee,!1),z(M)},!1);var P=function(){if(l.maxPlayedTime===void 0&&(l.maxPlayedTime=0),l.maxPlayedTime<l.currentTime&&(l.maxPlayedTime=l.currentTime),!d&&f&&(d=f.getBoundingClientRect().width),!l.isProgressMoving&&!l.isSeeking&&!l.seeking){var D=l.currentTime/l.duration,B=Number(b.style.width.replace("%","")||"0")/Number(f.style.width||"100");Math.abs(D-B)<=1&&(b.style.width=l.currentTime*100/l.duration+"%")}};l.on("timeupdate",P);var u=function(D){b.style.width=D*100/l.duration+"%"};l.on("currentTimeChange",u);var T=function(){b.style.width="0%"};l.on("srcChange",T);var S=function(){var D=l.buffered;if(D&&D.length>0){for(var B=D.end(D.length-1),j=0,z=D.length;j<z;j++)if(l.currentTime>=D.start(j)&&l.currentTime<=D.end(j)){B=D.end(j);for(var W=j+1;W<D.length;W++)if(D.start(W)-D.end(W-1)>=2){B=D.end(W-1);break}break}x.style.width=B/l.duration*100+"%"}},I=["bufferedChange","cacheupdate","ended","timeupdate"];I.forEach(function(M){l.on(M,S)});function F(){l.removeAllProgressDot(),l.off("canplay",R),l.off("timeupdate",P),l.off("currentTimeChange",u),l.off("srcChange",T),l.off("loadedmetadata",E),I.forEach(function(M){l.off(M,S)}),l.off("destroy",F)}l.once("destroy",F)};s.default={name:"s_progress",method:m},g.exports=s.default},function(g,s,r){var e=r(70);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,".xgplayer-skin-default .xgplayer-progress{display:block;position:absolute;height:20px;line-height:20px;left:12px;right:12px;outline:none;top:-15px;z-index:35}.xgplayer-skin-default .xgplayer-progress-outer{background:hsla(0,0%,100%,.3);display:block;height:3px;line-height:3px;margin-top:8.5px;width:100%;position:relative;cursor:pointer}.xgplayer-skin-default .xgplayer-progress-cache,.xgplayer-skin-default .xgplayer-progress-played{display:block;height:100%;line-height:1;position:absolute;left:0;top:0}.xgplayer-skin-default .xgplayer-progress-cache{width:0;background:hsla(0,0%,100%,.5)}.xgplayer-skin-default .xgplayer-progress-played{display:block;width:0;background-image:linear-gradient(-90deg,#fa1f41,#e31106);border-radius:0 1.5px 1.5px 0}.xgplayer-skin-default .xgplayer-progress-btn{display:none;position:absolute;left:0;top:-5px;width:13px;height:13px;border-radius:30px;background:#fff;box-shadow:0 0 2px 0 rgba(0,0,0,.26);left:100%;-webkit-transform:translate(-50%);-ms-transform:translate(-50%);transform:translate(-50%);z-index:36}.xgplayer-skin-default .xgplayer-progress-point{position:absolute}.xgplayer-skin-default .xgplayer-progress-point.xgplayer-tips{margin-left:0;top:-25px;display:none;z-index:100}.xgplayer-skin-default .xgplayer-progress-dot{display:inline-block;position:absolute;height:3px;width:5px;top:0;background:#fff;border-radius:6px;z-index:16}.xgplayer-skin-default .xgplayer-progress-dot .xgplayer-progress-tip{position:absolute;bottom:200%;right:50%;-webkit-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);height:auto;line-height:30px;width:auto;background:rgba(0,0,0,.3);border-radius:6px;border:1px solid rgba(0,0,0,.8);cursor:default;white-space:nowrap;display:none}.xgplayer-skin-default .xgplayer-progress-dot-show .xgplayer-progress-tip{display:block}.xgplayer-skin-default .xgplayer-progress-thumbnail{position:absolute;-moz-box-sizing:border-box;box-sizing:border-box}.xgplayer-skin-default .xgplayer-progress-thumbnail.xgplayer-tips{margin-left:0;display:none;z-index:99}.xgplayer-skin-default .xgplayer-coverpreview{position:absolute;width:100%;height:100%;top:0;left:0;display:none}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer{position:absolute;display:block;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer .xgplayer-coverpreview-thumbnail{display:block}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer .xgplayer-coverpreview-point{display:block;text-align:center;font-family:PingFangSC-Regular;font-size:11px;color:#ccc;padding:2px 4px}.xgplayer-skin-default .xgplayer-coverpreview .xgplayer-coverpreview-outer .xgplayer-coverpreview-point span{color:#fff}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-outer,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-outer{height:6px;margin-top:7px}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-dot,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-dot{height:6px}.xgplayer-skin-default .xgplayer-progress:focus .xgplayer-progress-btn,.xgplayer-skin-default .xgplayer-progress:hover .xgplayer-progress-btn{display:block;top:-3px}.xgplayer-skin-default.xgplayer-definition-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-playbackrate-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-texttrack-active .xgplayer-progress,.xgplayer-skin-default.xgplayer-volume-active .xgplayer-progress{z-index:15}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress-btn{display:block!important}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:focus .xgplayer-progress-outer,.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:hover .xgplayer-progress-outer{height:3px!important;margin-top:8.5px!important}.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:focus .xgplayer-progress-btn,.xgplayer-skin-default.xgplayer-mobile .xgplayer-progress:hover .xgplayer-progress-btn{display:block!important;top:-5px!important}",""])},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0);r(72);var o=function(){var n=this,p=(0,e.createDom)("xg-time",'<span class="xgplayer-time-current">'+(n.currentTime||(0,e.format)(0))+`</span>
|
||
<span>`+(n.duration||(0,e.format)(0))+"</span>",{},"xgplayer-time");n.once("ready",function(){n.controls&&n.controls.appendChild(p)});var m=function(){(n.videoConfig.mediaType!=="audio"||!n.isProgressMoving||!n.dash)&&(p.innerHTML='<span class="xgplayer-time-current">'+(0,e.format)(n.currentTime||0)+"</span>"+("<span>"+(0,e.format)(n.duration)+"</span>"))};n.on("durationchange",m),n.on("timeupdate",m);function v(){n.off("durationchange",m),n.off("timeupdate",m),n.off("destroy",v)}n.once("destroy",v)};s.default={name:"s_time",method:o},g.exports=s.default},function(g,s,r){var e=r(73);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,'.xgplayer-skin-default .xgplayer-time{-webkit-order:2;-moz-box-ordinal-group:3;order:2;font-family:ArialMT;font-size:13px;color:#fff;line-height:40px;height:40px;text-align:center;display:inline-block;margin:auto 8px}.xgplayer-skin-default .xgplayer-time span{color:hsla(0,0%,100%,.5)}.xgplayer-skin-default .xgplayer-time .xgplayer-time-current{color:#fff}.xgplayer-skin-default .xgplayer-time .xgplayer-time-current:after{content:"/";display:inline-block;padding:0 3px}',""])},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(0),o=r(75),y=n(o);r(76);function n(m){return m&&m.__esModule?m:{default:m}}var p=function(){var v=this,l=v.root,f=v.lang.REPLAY,d=(0,e.createDom)("xg-replay",y.default+`
|
||
<xg-replay-txt class="xgplayer-replay-txt">`+f+`</xg-replay-txt>
|
||
`,{},"xgplayer-replay");v.once("ready",function(){l.appendChild(d)});function b(){var O=d.querySelector("path");if(O){var A=window.getComputedStyle(O).getPropertyValue("transform");if(typeof A=="string"&&A.indexOf("none")>-1)return;O.setAttribute("transform",A)}}v.on("ended",b);function h(O){O.preventDefault(),O.stopPropagation()}d.addEventListener("click",h);var x=d.querySelector("svg");["click","touchend"].forEach(function(O){x.addEventListener(O,function(A){A.preventDefault(),A.stopPropagation(),v.userGestureTrigEvent("replayBtnClick")})});function w(){v.off("ended",b),v.off("destroy",w)}v.once("destroy",w)};s.default={name:"s_replay",method:p},g.exports=s.default},function(g,s,r){r.r(s),s.default=`<svg class="xgplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" width="78" height="78" viewbox="0 0 78 78">
|
||
<path 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>
|
||
</svg>
|
||
`},function(g,s,r){var e=r(77);typeof e=="string"&&(e=[[g.i,e,""]]);var o,y={hmr:!0};y.transform=o,y.insertInto=void 0,r(2)(e,y),e.locals&&(g.exports=e.locals)},function(g,s,r){s=g.exports=r(1)(!1),s.push([g.i,".xgplayer-skin-default .xgplayer-replay{position:absolute;left:0;top:0;width:100%;height:100%;z-index:105;display:none;-webkit-justify-content:center;-moz-box-pack:center;justify-content:center;-webkit-align-items:center;-moz-box-align:center;align-items:center;background:rgba(0,0,0,.54);-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;flex-direction:column}.xgplayer-skin-default .xgplayer-replay svg{background:rgba(0,0,0,.58);border-radius:100%;cursor:pointer}.xgplayer-skin-default .xgplayer-replay svg path{-webkit-transform:translate(20px,21px);-ms-transform:translate(20px,21px);transform:translate(20px,21px);fill:#ddd}.xgplayer-skin-default .xgplayer-replay svg:hover{background:rgba(0,0,0,.38)}.xgplayer-skin-default .xgplayer-replay svg:hover path{fill:#fff}.xgplayer-skin-default .xgplayer-replay .xgplayer-replay-txt{display:inline-block;font-family:PingFangSC-Regular;font-size:14px;color:#fff;line-height:34px}.xgplayer-skin-default.xgplayer.xgplayer-ended .xgplayer-controls{display:none}.xgplayer-skin-default.xgplayer.xgplayer-ended .xgplayer-replay{display:-webkit-flex;display:-moz-box;display:flex}",""])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(g,s,r){g.exports=r(174)},function(g,s,r){Object.defineProperty(s,"__esModule",{value:!0});var e=r(9),o=I(e),y=r(56),n=I(y),p=r(45),m=I(p),v=r(59),l=I(v),f=r(64),d=I(f),b=r(37),h=I(b),x=r(38),w=I(x),O=r(46),A=I(O),R=r(48),L=I(R),_=r(68),N=I(_),U=r(53),C=I(U),a=r(71),i=I(a),t=r(39),c=I(t),E=r(40),k=I(E),P=r(47),u=I(P),T=r(74),S=I(T);function I(M){return M&&M.__esModule?M:{default:M}}var F=[n.default,m.default,l.default,d.default,h.default,w.default,A.default,L.default,N.default,C.default,i.default,c.default,k.default,u.default,S.default];F.forEach(function(M){o.default.install(M.name,M.method)}),s.default=o.default,g.exports=s.default}])})})(ce);const pe=re(ne);var ae={},de={get exports(){return ae},set exports(V){ae=V}};(function(V,Q){(function(g,s){V.exports=s()})(window,function(){return function(g){var s={};function r(e){if(s[e])return s[e].exports;var o=s[e]={i:e,l:!1,exports:{}};return g[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=g,r.c=s,r.d=function(e,o,y){r.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:y})},r.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,o){if(1&o&&(e=r(e)),8&o||4&o&&typeof e=="object"&&e&&e.__esModule)return e;var y=Object.create(null);if(r.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:e}),2&o&&typeof e!="string")for(var n in e)r.d(y,n,function(p){return e[p]}.bind(null,n));return y},r.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(o,"a",o),o},r.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r.p="",r(r.s=5)}([function(g,s,r){var e=r(1);typeof e=="string"&&(e=[[g.i,e,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(3)(e,o),e.locals&&(g.exports=e.locals)},function(g,s,r){(g.exports=r(2)(!1)).push([g.i,'.xgplayer-skin-default .xgplayer-volume{outline:none;-webkit-order:4;-moz-box-ordinal-group:5;order:4;width:40px;height:40px;display:block;position:relative;z-index:18}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon{margin-top:8px;cursor:pointer;position:absolute;bottom:-9px}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon div{position:absolute}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon .xgplayer-icon-large{display:block}.xgplayer-skin-default .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted,.xgplayer-skin-default .xgplayer-volume .xgplayer-icon .xgplayer-icon-small{display:none}.xgplayer-skin-default .xgplayer-slider{display:none;position:absolute;width:28px;height:92px;background:rgba(0,0,0,.54);border-radius:1px;bottom:42px;outline:none}.xgplayer-skin-default .xgplayer-slider:after{content:" ";display:block;height:15px;width:28px;position:absolute;bottom:-15px;left:0;z-index:20}.xgplayer-skin-default .xgplayer-bar,.xgplayer-skin-default .xgplayer-drag{display:block;position:absolute;bottom:6px;left:12px;background:hsla(0,0%,100%,.3);border-radius:100px;width:4px;height:76px;outline:none;cursor:pointer}.xgplayer-skin-default .xgplayer-drag{bottom:0;left:0;background:#fa1f41;max-height:76px}.xgplayer-skin-default .xgplayer-drag:after{content:" ";display:inline-block;width:8px;height:8px;background:#fff;box-shadow:0 0 5px 0 rgba(0,0,0,.26);position:absolute;border-radius:50%;left:-2px;top:-6px}.xgplayer-skin-default.xgplayer-volume-active .xgplayer-slider,.xgplayer-skin-default.xgplayer-volume-large .xgplayer-volume .xgplayer-icon .xgplayer-icon-large{display:block}.xgplayer-skin-default.xgplayer-volume-large .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted,.xgplayer-skin-default.xgplayer-volume-large .xgplayer-volume .xgplayer-icon .xgplayer-icon-small,.xgplayer-skin-default.xgplayer-volume-small .xgplayer-volume .xgplayer-icon .xgplayer-icon-large{display:none}.xgplayer-skin-default.xgplayer-volume-small .xgplayer-volume .xgplayer-icon .xgplayer-icon-small{display:block}.xgplayer-skin-default.xgplayer-volume-muted .xgplayer-volume .xgplayer-icon .xgplayer-icon-large,.xgplayer-skin-default.xgplayer-volume-muted .xgplayer-volume .xgplayer-icon .xgplayer-icon-small,.xgplayer-skin-default.xgplayer-volume-small .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted{display:none}.xgplayer-skin-default.xgplayer-volume-muted .xgplayer-volume .xgplayer-icon .xgplayer-icon-muted{display:block}.xgplayer-skin-default.xgplayer-mobile .xgplayer-volume .xgplayer-slider{display:none}',""])},function(g,s){g.exports=function(r){var e=[];return e.toString=function(){return this.map(function(o){var y=function(n,p){var m=n[1]||"",v=n[3];if(!v)return m;if(p&&typeof btoa=="function"){var l=(d=v,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(d))))+" */"),f=v.sources.map(function(b){return"/*# sourceURL="+v.sourceRoot+b+" */"});return[m].concat(f).concat([l]).join(`
|
||
`)}var d;return[m].join(`
|
||
`)}(o,r);return o[2]?"@media "+o[2]+"{"+y+"}":y}).join("")},e.i=function(o,y){typeof o=="string"&&(o=[[null,o,""]]);for(var n={},p=0;p<this.length;p++){var m=this[p][0];typeof m=="number"&&(n[m]=!0)}for(p=0;p<o.length;p++){var v=o[p];typeof v[0]=="number"&&n[v[0]]||(y&&!v[2]?v[2]=y:y&&(v[2]="("+v[2]+") and ("+y+")"),e.push(v))}},e}},function(g,s,r){var e,o,y={},n=(e=function(){return window&&document&&document.all&&!window.atob},function(){return o===void 0&&(o=e.apply(this,arguments)),o}),p=function(a){return document.querySelector(a)},m=function(a){var i={};return function(t){if(typeof t=="function")return t();if(i[t]===void 0){var c=p.call(this,t);if(window.HTMLIFrameElement&&c instanceof window.HTMLIFrameElement)try{c=c.contentDocument.head}catch{c=null}i[t]=c}return i[t]}}(),v=null,l=0,f=[],d=r(4);function b(a,i){for(var t=0;t<a.length;t++){var c=a[t],E=y[c.id];if(E){E.refs++;for(var k=0;k<E.parts.length;k++)E.parts[k](c.parts[k]);for(;k<c.parts.length;k++)E.parts.push(R(c.parts[k],i))}else{var P=[];for(k=0;k<c.parts.length;k++)P.push(R(c.parts[k],i));y[c.id]={id:c.id,refs:1,parts:P}}}}function h(a,i){for(var t=[],c={},E=0;E<a.length;E++){var k=a[E],P=i.base?k[0]+i.base:k[0],u={css:k[1],media:k[2],sourceMap:k[3]};c[P]?c[P].parts.push(u):t.push(c[P]={id:P,parts:[u]})}return t}function x(a,i){var t=m(a.insertInto);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var c=f[f.length-1];if(a.insertAt==="top")c?c.nextSibling?t.insertBefore(i,c.nextSibling):t.appendChild(i):t.insertBefore(i,t.firstChild),f.push(i);else if(a.insertAt==="bottom")t.appendChild(i);else{if(typeof a.insertAt!="object"||!a.insertAt.before)throw new Error(`[Style Loader]
|
||
|
||
Invalid value for parameter 'insertAt' ('options.insertAt') found.
|
||
Must be 'top', 'bottom', or Object.
|
||
(https://github.com/webpack-contrib/style-loader#insertat)
|
||
`);var E=m(a.insertInto+" "+a.insertAt.before);t.insertBefore(i,E)}}function w(a){if(a.parentNode===null)return!1;a.parentNode.removeChild(a);var i=f.indexOf(a);i>=0&&f.splice(i,1)}function O(a){var i=document.createElement("style");return a.attrs.type="text/css",A(i,a.attrs),x(a,i),i}function A(a,i){Object.keys(i).forEach(function(t){a.setAttribute(t,i[t])})}function R(a,i){var t,c,E,k;if(i.transform&&a.css){if(!(k=i.transform(a.css)))return function(){};a.css=k}if(i.singleton){var P=l++;t=v||(v=O(i)),c=N.bind(null,t,P,!1),E=N.bind(null,t,P,!0)}else a.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(t=function(u){var T=document.createElement("link");return u.attrs.type="text/css",u.attrs.rel="stylesheet",A(T,u.attrs),x(u,T),T}(i),c=C.bind(null,t,i),E=function(){w(t),t.href&&URL.revokeObjectURL(t.href)}):(t=O(i),c=U.bind(null,t),E=function(){w(t)});return c(a),function(u){if(u){if(u.css===a.css&&u.media===a.media&&u.sourceMap===a.sourceMap)return;c(a=u)}else E()}}g.exports=function(a,i){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(i=i||{}).attrs=typeof i.attrs=="object"?i.attrs:{},i.singleton||typeof i.singleton=="boolean"||(i.singleton=n()),i.insertInto||(i.insertInto="head"),i.insertAt||(i.insertAt="bottom");var t=h(a,i);return b(t,i),function(c){for(var E=[],k=0;k<t.length;k++){var P=t[k];(u=y[P.id]).refs--,E.push(u)}for(c&&b(h(c,i),i),k=0;k<E.length;k++){var u;if((u=E[k]).refs===0){for(var T=0;T<u.parts.length;T++)u.parts[T]();delete y[u.id]}}}};var L,_=(L=[],function(a,i){return L[a]=i,L.filter(Boolean).join(`
|
||
`)});function N(a,i,t,c){var E=t?"":c.css;if(a.styleSheet)a.styleSheet.cssText=_(i,E);else{var k=document.createTextNode(E),P=a.childNodes;P[i]&&a.removeChild(P[i]),P.length?a.insertBefore(k,P[i]):a.appendChild(k)}}function U(a,i){var t=i.css,c=i.media;if(c&&a.setAttribute("media",c),a.styleSheet)a.styleSheet.cssText=t;else{for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(t))}}function C(a,i,t){var c=t.css,E=t.sourceMap,k=i.convertToAbsoluteUrls===void 0&&E;(i.convertToAbsoluteUrls||k)&&(c=d(c)),E&&(c+=`
|
||
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(E))))+" */");var P=new Blob([c],{type:"text/css"}),u=a.href;a.href=URL.createObjectURL(P),u&&URL.revokeObjectURL(u)}},function(g,s){g.exports=function(r){var e=typeof window<"u"&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!r||typeof r!="string")return r;var o=e.protocol+"//"+e.host,y=o+e.pathname.replace(/\/[^\/]*$/,"/");return r.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,p){var m,v=p.trim().replace(/^"(.*)"$/,function(l,f){return f}).replace(/^'(.*)'$/,function(l,f){return f});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(v)?n:(m=v.indexOf("//")===0?v:v.indexOf("/")===0?o+v:y+v.replace(/^\.\//,""),"url("+JSON.stringify(m)+")")})}},function(g,s,r){r.r(s);function e(d="div",b="",h={},x=""){let w=document.createElement(d);return w.className=x,w.innerHTML=b,Object.keys(h).forEach(O=>{let A=O,R=h[O];d==="video"||d==="audio"?R&&w.setAttribute(A,R):w.setAttribute(A,R)}),w}function o(d,b){return!!d&&(d.classList?Array.prototype.some.call(d.classList,h=>h===b):!!d.className&&!!d.className.match(new RegExp("(\\s|^)"+b+"(\\s|$)")))}function y(d,b){d&&(d.classList?b.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(h=>{h&&d.classList.add(h)}):o(d,b)||(d.className+=" "+b))}function n(d,b){d&&(d.classList?b.split(/\s+/g).forEach(h=>{d.classList.remove(h)}):o(d,b)&&b.split(/\s+/g).forEach(h=>{let x=new RegExp("(\\s|^)"+h+"(\\s|$)");d.className=d.className.replace(x," ")}))}function p(d){if(d.touches){let b=d.touches[0]||d.changedTouches[0];d.clientX=b.clientX||0,d.clientY=b.clientY||0,d.offsetX=b.pageX-b.target.offsetLeft,d.offsetY=b.pageY-b.target.offsetTop}d._target=d.target||d.srcElement}let m={};Object.defineProperty(m,"device",{get:function(){return m.os.isPc?"pc":"mobile"}}),Object.defineProperty(m,"browser",{get:function(){let d=navigator.userAgent.toLowerCase(),b={ie:/rv:([\d.]+)\) like gecko/,firfox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(b).filter(h=>b[h].test(d)))[0]||""}}),Object.defineProperty(m,"os",{get:function(){let d=navigator.userAgent,b=/(?:Windows Phone)/.test(d),h=/(?:SymbianOS)/.test(d)||b,x=/(?:Android)/.test(d),w=/(?:Firefox)/.test(d),O=/(?:iPad|PlayBook)/.test(d)||x&&!/(?:Mobile)/.test(d)||w&&/(?:Tablet)/.test(d),A=/(?:iPhone)/.test(d)&&!O;return{isTablet:O,isPhone:A,isAndroid:x,isPc:!(A||x||h||O),isSymbian:h,isWindowsPhone:b,isFireFox:w}}});var v=m,l={name:"volume",method:function(){let d,b,h,x,w=this,O=w.root;function A(){w.controls&&(w.volume=w.config.volume,d=w.controls.querySelector(".xgplayer-volume"),d&&(b=d.querySelector(".xgplayer-slider"),h=d.querySelector(".xgplayer-bar"),x=d.querySelector(".xgplayer-drag"),v.device==="mobile"&&(w.volume===0&&(w.video.muted=!0),C())))}function R(a){if(!b)return;w.video.muted=!1,b.focus(),p(a);let i=h.getBoundingClientRect(),t=(a.clientX,a.clientY),c=x.getBoundingClientRect().height,E=!1,k=function(u){u.preventDefault(),u.stopPropagation(),p(u),E=!0;let T=c-u.clientY+t,S=T/i.height;x.style.height=T+"px",w.volume=Math.max(Math.min(S,1),0)},P=function(u){if(u.preventDefault(),u.stopPropagation(),p(u),window.removeEventListener("mousemove",k),window.removeEventListener("touchmove",k),window.removeEventListener("mouseup",P),window.removeEventListener("touchend",P),!E){let T=i.height-(u.clientY-i.top),S=T/i.height;x.style.height=T+"px",S<=0&&(w.volume>0?x.volume=w.video.volume:S=x.volume),w.volume=Math.max(Math.min(S,1),0)}b.volume=w.volume,E=!1};return window.addEventListener("mousemove",k),window.addEventListener("touchmove",k),window.addEventListener("mouseup",P),window.addEventListener("touchend",P),!1}function L(){if(v.device==="mobile")w.video.muted?(w.video.muted=!1,w.emit("unmute"),w.volume=1):(w.video.muted=!0,w.emit("mute"),w.volume=0);else{if(!b)return;w.video.muted=!1,w.volume<.1?(b.volume<.1?w.volume=.6:w.volume=b.volume,w.emit("unmute")):(w.volume=0,w.emit("mute"))}}function _(){y(O,"xgplayer-volume-active"),d&&d.focus()}function N(){n(O,"xgplayer-volume-active")}w.once("canplay",A),w.on("volumeBarClick",R),w.on("volumeIconClick",L),w.on("volumeIconEnter",_),w.on("volumeIconLeave",N);let U=null;function C(){U&&clearTimeout(U),U=setTimeout(()=>{if(v.device==="mobile")n(O,"xgplayer-volume-muted"),n(O,"xgplayer-volume-large"),w.video.muted||w.video.defaultMuted?(w.video.muted||(w.video.muted=!0),w.video.defaultMuted=!1,y(O,"xgplayer-volume-muted")):y(O,"xgplayer-volume-large");else{if(n(O,"xgplayer-volume-muted"),n(O,"xgplayer-volume-small"),n(O,"xgplayer-volume-large"),w.volume===0||w.muted?y(O,"xgplayer-volume-muted"):w.volume<.5?y(O,"xgplayer-volume-small"):y(O,"xgplayer-volume-large"),!h)return;let a=h.getBoundingClientRect().height||76;x.style.height=w.volume*a+"px"}},50)}w.on("volumechange",C),w.once("destroy",function a(){w.off("canplay",A),w.off("volumeBarClick",R),w.off("volumeIconClick",L),w.off("volumeIconEnter",_),w.off("volumeIconLeave",N),w.off("volumechange",C),w.off("destroy",a),U&&(clearTimeout(U),U=null)})}};r(0);var f={name:"s_volume",method:function(){let d=this,b=e("xg-volume",`<xg-icon class="xgplayer-icon">
|
||
<div class="xgplayer-icon-large"><svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
|
||
<path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
||
<path 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>
|
||
</svg>
|
||
</div>
|
||
<div class="xgplayer-icon-small"><svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
|
||
<path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
||
<path 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>
|
||
</svg>
|
||
</div>
|
||
<div class="xgplayer-icon-muted"><svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28">
|
||
<path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
||
<path 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>
|
||
</svg>
|
||
</div>
|
||
</xg-icon>
|
||
<xg-slider class="xgplayer-slider" tabindex="2">
|
||
<xg-bar class="xgplayer-bar">
|
||
<xg-drag class="xgplayer-drag"></xg-drag>
|
||
</xg-bar>
|
||
</xg-slider>`,{},"xgplayer-volume");d.once("ready",()=>{d.controls&&d.controls.appendChild(b)});let h=b.querySelector(".xgplayer-slider"),x=b.querySelector(".xgplayer-bar"),w=b.querySelector(".xgplayer-drag"),O=b.querySelector(".xgplayer-icon");w.style.height=100*d.config.volume+"%",h.volume=d.config.volume,x.addEventListener("mousedown",A=>{A.preventDefault(),A.stopPropagation(),d.userGestureTrigEvent("volumeBarClick",A)}),["click","touchend"].forEach(A=>{O.addEventListener(A,R=>{R.preventDefault(),R.stopPropagation(),d.userGestureTrigEvent("volumeIconClick")})}),O.addEventListener("mouseenter",A=>{A.preventDefault(),A.stopPropagation(),d.userGestureTrigEvent("volumeIconEnter")}),["blur","mouseleave"].forEach(A=>{b.addEventListener(A,R=>{R.preventDefault(),R.stopPropagation(),d.userGestureTrigEvent("volumeIconLeave")})})}};s.default={name:"volume",method:function(){l.method.call(this),f.method.call(this)}}}])})})(de);const ge=re(ae);var ie={},ye={get exports(){return ie},set exports(V){ie=V}};(function(V,Q){(function(g,s){V.exports=s()})(window,function(){return function(g){var s={};function r(e){if(s[e])return s[e].exports;var o=s[e]={i:e,l:!1,exports:{}};return g[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=g,r.c=s,r.d=function(e,o,y){r.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:y})},r.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,o){if(1&o&&(e=r(e)),8&o||4&o&&typeof e=="object"&&e&&e.__esModule)return e;var y=Object.create(null);if(r.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:e}),2&o&&typeof e!="string")for(var n in e)r.d(y,n,function(p){return e[p]}.bind(null,n));return y},r.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(o,"a",o),o},r.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r.p="",r(r.s=5)}([function(g,s,r){var e=r(1);typeof e=="string"&&(e=[[g.i,e,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(3)(e,o),e.locals&&(g.exports=e.locals)},function(g,s,r){(g.exports=r(2)(!1)).push([g.i,".xgplayer-skin-default .xgplayer-screenshot{-webkit-order:11;-moz-box-ordinal-group:12;order:11;position:relative;outline:none;display:block;cursor:pointer;height:20px;top:10px}.xgplayer-skin-default .xgplayer-screenshot .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;line-height:20px;height:20px;color:hsla(0,0%,100%,.8)}.xgplayer-skin-default .xgplayer-screenshot .name span{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:0 10px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.xgplayer-lang-is-en .xgplayer-screenshot .name span,.xgplayer-lang-is-jp .xgplayer-screenshot .name span{width:75px;height:20px}",""])},function(g,s){g.exports=function(r){var e=[];return e.toString=function(){return this.map(function(o){var y=function(n,p){var m=n[1]||"",v=n[3];if(!v)return m;if(p&&typeof btoa=="function"){var l=(d=v,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(d))))+" */"),f=v.sources.map(function(b){return"/*# sourceURL="+v.sourceRoot+b+" */"});return[m].concat(f).concat([l]).join(`
|
||
`)}var d;return[m].join(`
|
||
`)}(o,r);return o[2]?"@media "+o[2]+"{"+y+"}":y}).join("")},e.i=function(o,y){typeof o=="string"&&(o=[[null,o,""]]);for(var n={},p=0;p<this.length;p++){var m=this[p][0];typeof m=="number"&&(n[m]=!0)}for(p=0;p<o.length;p++){var v=o[p];typeof v[0]=="number"&&n[v[0]]||(y&&!v[2]?v[2]=y:y&&(v[2]="("+v[2]+") and ("+y+")"),e.push(v))}},e}},function(g,s,r){var e,o,y={},n=(e=function(){return window&&document&&document.all&&!window.atob},function(){return o===void 0&&(o=e.apply(this,arguments)),o}),p=function(a){return document.querySelector(a)},m=function(a){var i={};return function(t){if(typeof t=="function")return t();if(i[t]===void 0){var c=p.call(this,t);if(window.HTMLIFrameElement&&c instanceof window.HTMLIFrameElement)try{c=c.contentDocument.head}catch{c=null}i[t]=c}return i[t]}}(),v=null,l=0,f=[],d=r(4);function b(a,i){for(var t=0;t<a.length;t++){var c=a[t],E=y[c.id];if(E){E.refs++;for(var k=0;k<E.parts.length;k++)E.parts[k](c.parts[k]);for(;k<c.parts.length;k++)E.parts.push(R(c.parts[k],i))}else{var P=[];for(k=0;k<c.parts.length;k++)P.push(R(c.parts[k],i));y[c.id]={id:c.id,refs:1,parts:P}}}}function h(a,i){for(var t=[],c={},E=0;E<a.length;E++){var k=a[E],P=i.base?k[0]+i.base:k[0],u={css:k[1],media:k[2],sourceMap:k[3]};c[P]?c[P].parts.push(u):t.push(c[P]={id:P,parts:[u]})}return t}function x(a,i){var t=m(a.insertInto);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var c=f[f.length-1];if(a.insertAt==="top")c?c.nextSibling?t.insertBefore(i,c.nextSibling):t.appendChild(i):t.insertBefore(i,t.firstChild),f.push(i);else if(a.insertAt==="bottom")t.appendChild(i);else{if(typeof a.insertAt!="object"||!a.insertAt.before)throw new Error(`[Style Loader]
|
||
|
||
Invalid value for parameter 'insertAt' ('options.insertAt') found.
|
||
Must be 'top', 'bottom', or Object.
|
||
(https://github.com/webpack-contrib/style-loader#insertat)
|
||
`);var E=m(a.insertInto+" "+a.insertAt.before);t.insertBefore(i,E)}}function w(a){if(a.parentNode===null)return!1;a.parentNode.removeChild(a);var i=f.indexOf(a);i>=0&&f.splice(i,1)}function O(a){var i=document.createElement("style");return a.attrs.type="text/css",A(i,a.attrs),x(a,i),i}function A(a,i){Object.keys(i).forEach(function(t){a.setAttribute(t,i[t])})}function R(a,i){var t,c,E,k;if(i.transform&&a.css){if(!(k=i.transform(a.css)))return function(){};a.css=k}if(i.singleton){var P=l++;t=v||(v=O(i)),c=N.bind(null,t,P,!1),E=N.bind(null,t,P,!0)}else a.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(t=function(u){var T=document.createElement("link");return u.attrs.type="text/css",u.attrs.rel="stylesheet",A(T,u.attrs),x(u,T),T}(i),c=C.bind(null,t,i),E=function(){w(t),t.href&&URL.revokeObjectURL(t.href)}):(t=O(i),c=U.bind(null,t),E=function(){w(t)});return c(a),function(u){if(u){if(u.css===a.css&&u.media===a.media&&u.sourceMap===a.sourceMap)return;c(a=u)}else E()}}g.exports=function(a,i){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(i=i||{}).attrs=typeof i.attrs=="object"?i.attrs:{},i.singleton||typeof i.singleton=="boolean"||(i.singleton=n()),i.insertInto||(i.insertInto="head"),i.insertAt||(i.insertAt="bottom");var t=h(a,i);return b(t,i),function(c){for(var E=[],k=0;k<t.length;k++){var P=t[k];(u=y[P.id]).refs--,E.push(u)}for(c&&b(h(c,i),i),k=0;k<E.length;k++){var u;if((u=E[k]).refs===0){for(var T=0;T<u.parts.length;T++)u.parts[T]();delete y[u.id]}}}};var L,_=(L=[],function(a,i){return L[a]=i,L.filter(Boolean).join(`
|
||
`)});function N(a,i,t,c){var E=t?"":c.css;if(a.styleSheet)a.styleSheet.cssText=_(i,E);else{var k=document.createTextNode(E),P=a.childNodes;P[i]&&a.removeChild(P[i]),P.length?a.insertBefore(k,P[i]):a.appendChild(k)}}function U(a,i){var t=i.css,c=i.media;if(c&&a.setAttribute("media",c),a.styleSheet)a.styleSheet.cssText=t;else{for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(t))}}function C(a,i,t){var c=t.css,E=t.sourceMap,k=i.convertToAbsoluteUrls===void 0&&E;(i.convertToAbsoluteUrls||k)&&(c=d(c)),E&&(c+=`
|
||
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(E))))+" */");var P=new Blob([c],{type:"text/css"}),u=a.href;a.href=URL.createObjectURL(P),u&&URL.revokeObjectURL(u)}},function(g,s){g.exports=function(r){var e=typeof window<"u"&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!r||typeof r!="string")return r;var o=e.protocol+"//"+e.host,y=o+e.pathname.replace(/\/[^\/]*$/,"/");return r.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,p){var m,v=p.trim().replace(/^"(.*)"$/,function(l,f){return f}).replace(/^'(.*)'$/,function(l,f){return f});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(v)?n:(m=v.indexOf("//")===0?v:v.indexOf("/")===0?o+v:y+v.replace(/^\.\//,""),"url("+JSON.stringify(m)+")")})}},function(g,s,r){r.r(s);var e={name:"screenShot",method:function(){let n=this,p=n.config.screenShot,m=null;if(!p)return;n.video.setAttribute("crossOrigin","anonymous");let v=.92;(p.quality||p.quality===0)&&(v=p.quality);let l=p.type===void 0?"image/png":p.type,f=p.format===void 0?".png":p.format,d=document.createElement("canvas"),b=d.getContext("2d"),h=new Image;d.width=this.config.width||600,d.height=this.config.height||337.5,n.screenShot=function(x=!0){x=p.saveImg===void 0?x:p.saveImg,d.width=n.video.videoWidth||600,d.height=n.video.videoHeight||337.5,m=p.callBack,h.onload=function(){b.drawImage(n.video,0,0,d.width,d.height),h.src=d.toDataURL(l,v).replace(l,"image/octet-stream");let w=h.src.replace(/^data:image\/[^;]+/,"data:application/octet-stream"),O=p.fileName||n.lang.SCREENSHOT;n.emit("screenShot",w),x&&m?m(w,O,f):x&&function(A,R){let L=document.createElement("a");L.href=A,L.download=R;let _=document.createEvent("MouseEvents");_.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),L.dispatchEvent(_)}(w,O+f)}()},n.on("screenShotBtnClick",n.screenShot),n.once("destroy",function x(){n.off("screenShotBtnClick",n.screenShot),n.off("destroy",x)})}};function o(n="div",p="",m={},v=""){let l=document.createElement(n);return l.className=v,l.innerHTML=p,Object.keys(m).forEach(f=>{let d=f,b=m[f];n==="video"||n==="audio"?b&&l.setAttribute(d,b):l.setAttribute(d,b)}),l}r(0);var y={name:"s_screenShot",method:function(){let n=this;if(!n.config.screenShot||n.config.screenShot.hideButton)return;let p=n.lang.SCREENSHOT,m=o("xg-screenshot",`<p class="name"><span>${n.config.screenShot.iconText||p}</span></p>`,{tabindex:11},"xgplayer-screenshot");n.once("ready",()=>{n.controls.appendChild(m)}),["click","touchend"].forEach(v=>{m.addEventListener(v,l=>{l.preventDefault(),l.stopPropagation(),n.userGestureTrigEvent("screenShotBtnClick")})})}};s.default={name:"screenShot",method:function(){e.method.call(this),y.method.call(this)}}}])})})(ye);const ve=re(ie);var oe={},he={get exports(){return oe},set exports(V){oe=V}};(function(V,Q){(function(g,s){V.exports=s()})(window,function(){return function(g){var s={};function r(e){if(s[e])return s[e].exports;var o=s[e]={i:e,l:!1,exports:{}};return g[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=g,r.c=s,r.d=function(e,o,y){r.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:y})},r.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,o){if(1&o&&(e=r(e)),8&o||4&o&&typeof e=="object"&&e&&e.__esModule)return e;var y=Object.create(null);if(r.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:e}),2&o&&typeof e!="string")for(var n in e)r.d(y,n,function(p){return e[p]}.bind(null,n));return y},r.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(o,"a",o),o},r.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},r.p="",r(r.s=5)}([function(g,s,r){var e=r(1);typeof e=="string"&&(e=[[g.i,e,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};r(3)(e,o),e.locals&&(g.exports=e.locals)},function(g,s,r){(g.exports=r(2)(!1)).push([g.i,".xgplayer-skin-default .xgplayer-playbackrate{-webkit-order:8;-moz-box-ordinal-group:9;order:8;width:60px;height:150px;z-index:18;position:relative;display:inline-block;cursor:default;margin-top:-119px}.xgplayer-skin-default .xgplayer-playbackrate ul{display:none;list-style:none;width:78px;background:rgba(0,0,0,.54);border-radius:1px;position:absolute;bottom:30px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);text-align:left;white-space:nowrap;z-index:26;cursor:pointer}.xgplayer-skin-default .xgplayer-playbackrate ul li{opacity:.7;font-family:PingFangSC-Regular;font-size:11px;color:hsla(0,0%,100%,.8);position:relative;padding:4px 0;text-align:center}.xgplayer-skin-default .xgplayer-playbackrate ul li.selected,.xgplayer-skin-default .xgplayer-playbackrate ul li:hover{color:#fff;opacity:1}.xgplayer-skin-default .xgplayer-playbackrate ul li:first-child{position:relative;margin-top:12px}.xgplayer-skin-default .xgplayer-playbackrate ul li:last-child{position:relative;margin-bottom:12px}.xgplayer-skin-default .xgplayer-playbackrate .name{width:60px;height:20px;position:absolute;bottom:0;text-align:center;font-family:PingFangSC-Regular;font-size:13px;background:rgba(0,0,0,.38);color:hsla(0,0%,100%,.8);border-radius:10px;line-height:20px}.xgplayer-skin-default .xgplayer-playbackrate span{position:relative;top:19px;font-weight:700;text-shadow:0 0 4px rgba(0,0,0,.6)}.xgplayer-skin-default .xgplayer-playbackrate:hover{opacity:1}.xgplayer-skin-default.xgplayer-playbackrate-active .xgplayer-playbackrate ul{display:block}",""])},function(g,s){g.exports=function(r){var e=[];return e.toString=function(){return this.map(function(o){var y=function(n,p){var m=n[1]||"",v=n[3];if(!v)return m;if(p&&typeof btoa=="function"){var l=(d=v,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(d))))+" */"),f=v.sources.map(function(b){return"/*# sourceURL="+v.sourceRoot+b+" */"});return[m].concat(f).concat([l]).join(`
|
||
`)}var d;return[m].join(`
|
||
`)}(o,r);return o[2]?"@media "+o[2]+"{"+y+"}":y}).join("")},e.i=function(o,y){typeof o=="string"&&(o=[[null,o,""]]);for(var n={},p=0;p<this.length;p++){var m=this[p][0];typeof m=="number"&&(n[m]=!0)}for(p=0;p<o.length;p++){var v=o[p];typeof v[0]=="number"&&n[v[0]]||(y&&!v[2]?v[2]=y:y&&(v[2]="("+v[2]+") and ("+y+")"),e.push(v))}},e}},function(g,s,r){var e,o,y={},n=(e=function(){return window&&document&&document.all&&!window.atob},function(){return o===void 0&&(o=e.apply(this,arguments)),o}),p=function(a){return document.querySelector(a)},m=function(a){var i={};return function(t){if(typeof t=="function")return t();if(i[t]===void 0){var c=p.call(this,t);if(window.HTMLIFrameElement&&c instanceof window.HTMLIFrameElement)try{c=c.contentDocument.head}catch{c=null}i[t]=c}return i[t]}}(),v=null,l=0,f=[],d=r(4);function b(a,i){for(var t=0;t<a.length;t++){var c=a[t],E=y[c.id];if(E){E.refs++;for(var k=0;k<E.parts.length;k++)E.parts[k](c.parts[k]);for(;k<c.parts.length;k++)E.parts.push(R(c.parts[k],i))}else{var P=[];for(k=0;k<c.parts.length;k++)P.push(R(c.parts[k],i));y[c.id]={id:c.id,refs:1,parts:P}}}}function h(a,i){for(var t=[],c={},E=0;E<a.length;E++){var k=a[E],P=i.base?k[0]+i.base:k[0],u={css:k[1],media:k[2],sourceMap:k[3]};c[P]?c[P].parts.push(u):t.push(c[P]={id:P,parts:[u]})}return t}function x(a,i){var t=m(a.insertInto);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var c=f[f.length-1];if(a.insertAt==="top")c?c.nextSibling?t.insertBefore(i,c.nextSibling):t.appendChild(i):t.insertBefore(i,t.firstChild),f.push(i);else if(a.insertAt==="bottom")t.appendChild(i);else{if(typeof a.insertAt!="object"||!a.insertAt.before)throw new Error(`[Style Loader]
|
||
|
||
Invalid value for parameter 'insertAt' ('options.insertAt') found.
|
||
Must be 'top', 'bottom', or Object.
|
||
(https://github.com/webpack-contrib/style-loader#insertat)
|
||
`);var E=m(a.insertInto+" "+a.insertAt.before);t.insertBefore(i,E)}}function w(a){if(a.parentNode===null)return!1;a.parentNode.removeChild(a);var i=f.indexOf(a);i>=0&&f.splice(i,1)}function O(a){var i=document.createElement("style");return a.attrs.type="text/css",A(i,a.attrs),x(a,i),i}function A(a,i){Object.keys(i).forEach(function(t){a.setAttribute(t,i[t])})}function R(a,i){var t,c,E,k;if(i.transform&&a.css){if(!(k=i.transform(a.css)))return function(){};a.css=k}if(i.singleton){var P=l++;t=v||(v=O(i)),c=N.bind(null,t,P,!1),E=N.bind(null,t,P,!0)}else a.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(t=function(u){var T=document.createElement("link");return u.attrs.type="text/css",u.attrs.rel="stylesheet",A(T,u.attrs),x(u,T),T}(i),c=C.bind(null,t,i),E=function(){w(t),t.href&&URL.revokeObjectURL(t.href)}):(t=O(i),c=U.bind(null,t),E=function(){w(t)});return c(a),function(u){if(u){if(u.css===a.css&&u.media===a.media&&u.sourceMap===a.sourceMap)return;c(a=u)}else E()}}g.exports=function(a,i){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(i=i||{}).attrs=typeof i.attrs=="object"?i.attrs:{},i.singleton||typeof i.singleton=="boolean"||(i.singleton=n()),i.insertInto||(i.insertInto="head"),i.insertAt||(i.insertAt="bottom");var t=h(a,i);return b(t,i),function(c){for(var E=[],k=0;k<t.length;k++){var P=t[k];(u=y[P.id]).refs--,E.push(u)}for(c&&b(h(c,i),i),k=0;k<E.length;k++){var u;if((u=E[k]).refs===0){for(var T=0;T<u.parts.length;T++)u.parts[T]();delete y[u.id]}}}};var L,_=(L=[],function(a,i){return L[a]=i,L.filter(Boolean).join(`
|
||
`)});function N(a,i,t,c){var E=t?"":c.css;if(a.styleSheet)a.styleSheet.cssText=_(i,E);else{var k=document.createTextNode(E),P=a.childNodes;P[i]&&a.removeChild(P[i]),P.length?a.insertBefore(k,P[i]):a.appendChild(k)}}function U(a,i){var t=i.css,c=i.media;if(c&&a.setAttribute("media",c),a.styleSheet)a.styleSheet.cssText=t;else{for(;a.firstChild;)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(t))}}function C(a,i,t){var c=t.css,E=t.sourceMap,k=i.convertToAbsoluteUrls===void 0&&E;(i.convertToAbsoluteUrls||k)&&(c=d(c)),E&&(c+=`
|
||
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(E))))+" */");var P=new Blob([c],{type:"text/css"}),u=a.href;a.href=URL.createObjectURL(P),u&&URL.revokeObjectURL(u)}},function(g,s){g.exports=function(r){var e=typeof window<"u"&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!r||typeof r!="string")return r;var o=e.protocol+"//"+e.host,y=o+e.pathname.replace(/\/[^\/]*$/,"/");return r.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(n,p){var m,v=p.trim().replace(/^"(.*)"$/,function(l,f){return f}).replace(/^'(.*)'$/,function(l,f){return f});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(v)?n:(m=v.indexOf("//")===0?v:v.indexOf("/")===0?o+v:y+v.replace(/^\.\//,""),"url("+JSON.stringify(m)+")")})}},function(g,s,r){r.r(s);function e(f="div",d="",b={},h=""){let x=document.createElement(f);return x.className=h,x.innerHTML=d,Object.keys(b).forEach(w=>{let O=w,A=b[w];f==="video"||f==="audio"?A&&x.setAttribute(O,A):x.setAttribute(O,A)}),x}function o(f,d){return!!f&&(f.classList?Array.prototype.some.call(f.classList,b=>b===d):!!f.className&&!!f.className.match(new RegExp("(\\s|^)"+d+"(\\s|$)")))}function y(f,d){f&&(f.classList?d.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(b=>{b&&f.classList.add(b)}):o(f,d)||(f.className+=" "+d))}function n(f,d){f&&(f.classList?d.split(/\s+/g).forEach(b=>{f.classList.remove(b)}):o(f,d)&&d.split(/\s+/g).forEach(b=>{let h=new RegExp("(\\s|^)"+b+"(\\s|$)");f.className=f.className.replace(h," ")}))}function p(f,d){f&&d.split(/\s+/g).forEach(b=>{o(f,b)?n(f,b):y(f,b)})}let m={};Object.defineProperty(m,"device",{get:function(){return m.os.isPc?"pc":"mobile"}}),Object.defineProperty(m,"browser",{get:function(){let f=navigator.userAgent.toLowerCase(),d={ie:/rv:([\d.]+)\) like gecko/,firfox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(d).filter(b=>d[b].test(f)))[0]||""}}),Object.defineProperty(m,"os",{get:function(){let f=navigator.userAgent,d=/(?:Windows Phone)/.test(f),b=/(?:SymbianOS)/.test(f)||d,h=/(?:Android)/.test(f),x=/(?:Firefox)/.test(f),w=/(?:iPad|PlayBook)/.test(f)||h&&!/(?:Mobile)/.test(f)||x&&/(?:Tablet)/.test(f),O=/(?:iPhone)/.test(f)&&!w;return{isTablet:w,isPhone:O,isAndroid:h,isPc:!(O||h||b||w),isSymbian:b,isWindowsPhone:d,isFireFox:x}}});var v=m;r(0);var l={name:"s_playbackRate",method:function(){let f=this,d=[];if(!f.config.playbackRate)return!1;d=[].concat(f.config.playbackRate),d.sort((R,L)=>L-R);let b=f.config.playbackRateUnit!==void 0?f.config.playbackRateUnit:"x",h=e("xg-playbackrate"," ",{},"xgplayer-playbackrate");v.device==="mobile"&&(f.config.playbackRateActive="click");let x=[];d.forEach(R=>{x.push({name:""+R,rate:`${R}${b}`,selected:!1})});let w=1,O=["<ul>"];x.forEach(R=>{f.config.defaultPlaybackRate&&f.config.defaultPlaybackRate.toString()===R.name?(R.selected=!0,w=f.config.defaultPlaybackRate,f.once("playing",()=>{f.video.playbackRate=f.config.defaultPlaybackRate})):R.name!=="1.0"&&R.name!=="1"||f.config.defaultPlaybackRate&&f.config.defaultPlaybackRate!==1||(R.selected=!0),O.push(`<li cname='${R.name}' class='${R.selected?"selected":""}'>${R.rate}</li>`)}),O.push(`</ul><p class='name'>${w}${b}</p>`);let A=f.root.querySelector(".xgplayer-playbackrate");if(A){A.innerHTML=O.join("");let R=A.querySelector(".name");f.config.playbackRateActive&&f.config.playbackRateActive!=="hover"||R.addEventListener("mouseenter",L=>{L.preventDefault(),L.stopPropagation(),y(f.root,"xgplayer-playbackrate-active"),A.focus()})}else{h.innerHTML=O.join("");let R=h.querySelector(".name");f.config.playbackRateActive&&f.config.playbackRateActive!=="hover"||R.addEventListener("mouseenter",L=>{L.preventDefault(),L.stopPropagation(),y(f.root,"xgplayer-playbackrate-active"),h.focus()}),f.once("ready",()=>{f.controls.appendChild(h)})}["touchend","click"].forEach(R=>{h.addEventListener(R,L=>{L.stopPropagation(),L.preventDefault();let _=L.target;if(_&&_.tagName.toLocaleLowerCase()==="li"){let N,U;x.forEach(C=>{C.selected=!1,_.textContent.replace(/\s+/g,"")===C.rate&&(Array.prototype.forEach.call(_.parentNode.childNodes,a=>{o(a,"selected")&&(N=Number(a.getAttribute("cname")),n(a,"selected"))}),C.selected=!0,f.video.playbackRate=1*C.name,w=1*C.name)}),y(_,"selected"),U=Number(_.getAttribute("cname")),_.parentNode.nextSibling.innerHTML=`${_.getAttribute("cname")}${b}`,f.emit("playbackrateChange",{from:N,to:U}),v.device==="mobile"&&n(f.root,"xgplayer-playbackrate-active")}else f.config.playbackRateActive!=="click"||!_||_.tagName.toLocaleLowerCase()!=="p"&&_.tagName.toLocaleLowerCase()!=="span"||(v.device==="mobile"?p(f.root,"xgplayer-playbackrate-active"):y(f.root,"xgplayer-playbackrate-active"),h.focus());f.emit("focus")},!1)}),h.addEventListener("mouseleave",R=>{R.preventDefault(),R.stopPropagation(),n(f.root,"xgplayer-playbackrate-active")}),f.on("blur",function(){n(f.root,"xgplayer-playbackrate-active")}),f.on("play",()=>{f.video.playbackRate.toFixed(1)!==w.toFixed(1)&&(f.video.playbackRate=w)}),f.switchPlaybackRate=function(R={}){let L=f.controls.querySelectorAll(".xgplayer-playbackrate ul li");for(let _=0;_<L.length;_++)o(L[_],"selected")||L[_].getAttribute("cname")!==""+R.playbackRate&&_!==R.index||L[_].click()},f.on("ratechange",()=>{f.switchPlaybackRate({playbackRate:f.playbackRate})})}};s.default={name:"playbackRate",method:function(){l.method.call(this)}}}])})})(he);const xe=re(oe),me={width:1024,height:1024,body:'<path fill="currentColor" d="M512 64a448 448 0 1 1 0 896a448 448 0 0 1 0-896zm0 832a384 384 0 0 0 0-768a384 384 0 0 0 0 768zm-48-247.616L668.608 512L464 375.616v272.768zm10.624-342.656l249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"/>'},be=me,ke=V=>(Vue.pushScopeId("data-v-0bd4e950"),V=V(),Vue.popScopeId(),V),Ee={class:"card-header"},we={class:"font-medium"},Te=ke(()=>Vue.createElementVNode("div",{id:"mse"},null,-1)),Ce=Vue.defineComponent({name:"Video"}),Se=Vue.defineComponent({...Ce,setup(V){return Vue.onMounted(()=>{new pe({id:"mse",volume:0,autoplay:!1,screenShot:!0,url:"https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-720p.mp4",poster:"https://s2.pstatp.com/cdn/expire-1-M/byted-player-videos/1.0.0/poster.jpg",fluid:se(),controlPlugins:[ge,xe,ve],playbackRate:[.5,.75,1,1.5,2]})}),(Q,g)=>{const s=Vue.resolveComponent("el-link"),r=Vue.resolveComponent("el-card");return Vue.openBlock(),Vue.createBlock(r,null,{header:Vue.withCtx(()=>[Vue.createElementVNode("div",Ee,[Vue.createElementVNode("span",we,[Vue.createTextVNode(" 视频组件,采用开源的 "),Vue.createVNode(s,{href:"https://v2.h5player.bytedance.com",target:"_blank",icon:Vue.unref(ue)(Vue.unref(be)),style:{"font-size":"16px",margin:"0 4px 5px"}},{default:Vue.withCtx(()=>[Vue.createTextVNode(" 西瓜播放器 ")]),_:1},8,["icon"])])])]),default:Vue.withCtx(()=>[Te]),_:1})}}});const Me=fe(Se,[["__scopeId","data-v-0bd4e950"]]);export{Me as default};
|