import{c as fe,g as z}from"./@amap-aca98dec.js";var Z={exports:{}};(function(Y,X){(function(i,d){Y.exports=d()})(fe,function(){return function(b){var i={};function d(r){if(i[r])return i[r].exports;var s=i[r]={i:r,l:!1,exports:{}};return b[r].call(s.exports,s,s.exports,d),s.l=!0,s.exports}return d.m=b,d.c=i,d.d=function(r,s,y){d.o(r,s)||Object.defineProperty(r,s,{enumerable:!0,get:y})},d.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},d.t=function(r,s){if(s&1&&(r=d(r)),s&8||s&4&&typeof r=="object"&&r&&r.__esModule)return r;var y=Object.create(null);if(d.r(y),Object.defineProperty(y,"default",{enumerable:!0,value:r}),s&2&&typeof r!="string")for(var p in r)d.d(y,p,(function(f){return r[f]}).bind(null,p));return y},d.n=function(r){var s=r&&r.__esModule?function(){return r.default}:function(){return r};return d.d(s,"a",s),s},d.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s)},d.p="",d(d.s=175)}([function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0}),i.util=i.PresentationMode=void 0,i.createDom=p,i.hasClass=f,i.addClass=v,i.removeClass=g,i.toggleClass=C,i.findDom=E,i.padStart=T,i.format=_,i.event=L,i.typeOf=k,i.deepCopy=A,i.getBgImage=j,i.copyDom=N,i._setInterval=I,i._clearInterval=R,i.createImgBtn=U,i.isWeiXin=D,i.isUc=F,i.computeWatchDur=M,i.offInDestroy=o,i.on=a,i.once=l,i.getBuffered2=c,i.checkIsBrowser=x,i.setStyle=m,i.checkWebkitSetPresentationMode=e;var r=d(7),s=y(r);function y(t){return t&&t.__esModule?t:{default:t}}function p(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",w=document.createElement(t);return w.className=h,w.innerHTML=n,Object.keys(u).forEach(function(S){var O=S,P=u[S];t==="video"||t==="audio"?P&&w.setAttribute(O,P):w.setAttribute(O,P)}),w}function f(t,n){return t?t.classList?Array.prototype.some.call(t.classList,function(u){return u===n}):t.className?!!t.className.match(new RegExp("(\\s|^)"+n+"(\\s|$)")):!1:!1}function v(t,n){t&&(t.classList?n.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(u){u&&t.classList.add(u)}):f(t,n)||(t.className+=" "+n))}function g(t,n){t&&(t.classList?n.split(/\s+/g).forEach(function(u){t.classList.remove(u)}):f(t,n)&&n.split(/\s+/g).forEach(function(u){var h=new RegExp("(\\s|^)"+u+"(\\s|$)");t.className=t.className.replace(h," ")}))}function C(t,n){t&&n.split(/\s+/g).forEach(function(u){f(t,u)?g(t,u):v(t,u)})}function E(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,n=arguments[1],u=void 0;try{u=t.querySelector(n)}catch{n.indexOf("#")===0&&(u=t.getElementById(n.slice(1)))}return u}function T(t,n,u){for(var h=String(u),w=n>>0,S=Math.ceil(w/h.length),O=[],P=String(t);S--;)O.push(h);return O.join("").substring(0,w-P.length)+P}function _(t){if(window.isNaN(t))return"";var n=T(Math.floor(t/3600),2,0),u=T(Math.floor((t-n*3600)/60),2,0),h=T(Math.floor(t-n*3600-u*60),2,0);return(n==="00"?[u,h]:[n,u,h]).join(":")}function L(t){if(t.touches){var n=t.touches[0]||t.changedTouches[0];t.clientX=n.clientX||0,t.clientY=n.clientY||0,t.offsetX=n.pageX-n.target.offsetLeft,t.offsetY=n.pageY-n.target.offsetTop}t._target=t.target||t.srcElement}function k(t){return Object.prototype.toString.call(t).match(/([^\s.*]+)(?=]$)/g)[0]}function A(t,n){if(k(n)==="Object"&&k(t)==="Object")return Object.keys(n).forEach(function(u){k(n[u])==="Object"&&!(n[u]instanceof Node)?t[u]?A(t[u],n[u]):t[u]=n[u]:k(n[u])==="Array"?t[u]=k(t[u])==="Array"?t[u].concat(n[u]):n[u]:t[u]=n[u]}),t}function j(t){var n=(t.currentStyle||window.getComputedStyle(t,null)).backgroundImage;if(!n||n==="none")return"";var u=document.createElement("a");return u.href=n.replace(/url\("|"\)/g,""),u.href}function N(t){if(t&&t.nodeType===1){var n=document.createElement(t.tagName);return Array.prototype.forEach.call(t.attributes,function(u){n.setAttribute(u.name,u.value)}),t.innerHTML&&(n.innerHTML=t.innerHTML),n}else return""}function I(t,n,u,h){t._interval[n]||(t._interval[n]=setInterval(u.bind(t),h))}function R(t,n){clearInterval(t._interval[n]),t._interval[n]=null}function U(t,n,u,h){var w=p("xg-"+t,"",{},"xgplayer-"+t+"-img");if(w.style.backgroundImage='url("'+n+'")',u&&h){var S=void 0,O=void 0,P=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(B){return u.indexOf(B)>-1&&h.indexOf(B)>-1?(S=Number(u.slice(0,u.indexOf(B)).trim()),O=Number(h.slice(0,h.indexOf(B)).trim()),P=B,!1):!0}),w.style.width=""+S+P,w.style.height=""+O+P,w.style.backgroundSize=""+S+P+" "+O+P,t==="start"?w.style.margin="-"+O/2+P+" auto auto -"+S/2+P:w.style.margin="auto 5px auto 5px"}return w}function D(){var t=window.navigator.userAgent.toLowerCase();return t.indexOf("micromessenger")>-1}function F(){var t=window.navigator.userAgent.toLowerCase();return t.indexOf("ucbrowser")>-1}function M(){for(var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[],u=0;un[h].end){if(h>n.length-2){n.push({begin:w,end:S});break}}else{var O=n[h].begin,P=n[h].end;n[h].begin=Math.min(w,O),n[h].end=Math.max(S,P);break}}for(var B=0,H=0;H1&&arguments[1]!==void 0?arguments[1]:.5,u=[],h=0;hP&&(w[O-1].end=u[S].end):w.push(u[S])}else w.push(u[S])}else w=u;return new s.default(w)}function x(){return!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u")}function m(t,n,u){var h=t.style;try{h[n]=u}catch{h.setProperty(n,u)}}i.PresentationMode={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"};function e(t){return typeof t.webkitSetPresentationMode=="function"}i.util={createDom:p,hasClass:f,addClass:v,removeClass:g,toggleClass:C,findDom:E,padStart:T,format:_,event:L,typeOf:k,deepCopy:A,getBgImage:j,copyDom:N,setInterval:I,clearInterval:R,createImgBtn:U,isWeiXin:D,isUc:F,computeWatchDur:M,offInDestroy:o,on:a,once:l,getBuffered2:c,checkIsBrowser:x,setStyle:m}},function(b,i){b.exports=function(s){var y=[];return y.toString=function(){return this.map(function(f){var v=d(f,s);return f[2]?"@media "+f[2]+"{"+v+"}":v}).join("")},y.i=function(p,f){typeof p=="string"&&(p=[[null,p,""]]);for(var v={},g=0;g"u"&&(o=M.apply(this,arguments)),o}},y=s(function(){return window&&document&&document.all&&!window.atob}),p=function(M){return document.querySelector(M)},f=function(M){var o={};return function(a){if(typeof a=="function")return a();if(typeof o[a]>"u"){var l=p.call(this,a);if(window.HTMLIFrameElement&&l instanceof window.HTMLIFrameElement)try{l=l.contentDocument.head}catch{l=null}o[a]=l}return o[a]}}(),v=null,g=0,C=[],E=d(36);b.exports=function(M,o){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");o=o||{},o.attrs=typeof o.attrs=="object"?o.attrs:{},!o.singleton&&typeof o.singleton!="boolean"&&(o.singleton=y()),o.insertInto||(o.insertInto="head"),o.insertAt||(o.insertAt="bottom");var a=_(M,o);return T(a,o),function(c){for(var x=[],m=0;m=0&&C.splice(o,1)}function A(M){var o=document.createElement("style");return M.attrs.type="text/css",N(o,M.attrs),L(M,o),o}function j(M){var o=document.createElement("link");return M.attrs.type="text/css",M.attrs.rel="stylesheet",N(o,M.attrs),L(M,o),o}function N(M,o){Object.keys(o).forEach(function(a){M.setAttribute(a,o[a])})}function I(M,o){var a,l,c,x;if(o.transform&&M.css)if(x=o.transform(M.css),x)M.css=x;else return function(){};if(o.singleton){var m=g++;a=v||(v=A(o)),l=U.bind(null,a,m,!1),c=U.bind(null,a,m,!0)}else M.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(a=j(o),l=F.bind(null,a,o),c=function(){k(a),a.href&&URL.revokeObjectURL(a.href)}):(a=A(o),l=D.bind(null,a),c=function(){k(a)});return l(M),function(t){if(t){if(t.css===M.css&&t.media===M.media&&t.sourceMap===M.sourceMap)return;l(M=t)}else c()}}var R=function(){var M=[];return function(o,a){return M[o]=a,M.filter(Boolean).join(`
`)}}();function U(M,o,a,l){var c=a?"":l.css;if(M.styleSheet)M.styleSheet.cssText=R(o,c);else{var x=document.createTextNode(c),m=M.childNodes;m[o]&&M.removeChild(m[o]),m.length?M.insertBefore(x,m[o]):M.appendChild(x)}}function D(M,o){var a=o.css,l=o.media;if(l&&M.setAttribute("media",l),M.styleSheet)M.styleSheet.cssText=a;else{for(;M.firstChild;)M.removeChild(M.firstChild);M.appendChild(document.createTextNode(a))}}function F(M,o,a){var l=a.css,c=a.sourceMap,x=o.convertToAbsoluteUrls===void 0&&c;(o.convertToAbsoluteUrls||x)&&(l=E(l)),c&&(l+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(c))))+" */");var m=new Blob([l],{type:"text/css"}),e=M.href;M.href=URL.createObjectURL(m),e&&URL.revokeObjectURL(e)}},function(b,i,d){var r=d(24)();b.exports=function(s){return s!==r&&s!==null}},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=d(8);function s(f,v){if(!(f instanceof v))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:"不可知的错误或被忽略的错误类型"}},p=function f(v,g,C,E,T,_,L,k){var A=arguments.length>8&&arguments[8]!==void 0?arguments[8]:{line:"",handle:"",msg:"",version:""},j=arguments[9],N=arguments[10];s(this,f);var I={};if(arguments.length>1)I.playerVersion=r.version,I.errorType=v,I.domain=document.domain,I.duration=C,I.currentTime=g,I.networkState=E,I.readyState=T,I.currentSrc=L,I.src=_,I.ended=k,I.errd=A,I.ex=(y[v]||{}).msg,I.errorCode=j,I.mediaError=N;else{var R=arguments[0];Object.keys(R).map(function(U){I[U]=R[U]}),I.ex=(R.type&&y[R.type]||{}).msg}return I};i.default=p,b.exports=i.default},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r={};Object.defineProperty(r,"device",{get:function(){var y=r.os;return y.isPc?"pc":"mobile"}}),Object.defineProperty(r,"browser",{get:function(){var y=navigator.userAgent.toLowerCase(),p={ie:/rv:([\d.]+)\) like gecko/,firfox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(p).filter(function(f){return p[f].test(y)}))[0]||""}}),Object.defineProperty(r,"os",{get:function(){var y=navigator.userAgent,p=/(?:Windows Phone)/.test(y),f=/(?:SymbianOS)/.test(y)||p,v=/(?:Android)/.test(y),g=/(?:Firefox)/.test(y),C=/(?:iPad|PlayBook)/.test(y)||v&&!/(?:Mobile)/.test(y)||g&&/(?:Tablet)/.test(y),E=/(?:iPhone)/.test(y)&&!C,T=!E&&!v&&!f&&!C;return{isTablet:C,isPhone:E,isAndroid:v,isPc:T,isSymbian:f,isWindowsPhone:p,isFireFox:g}}}),i.default=r,b.exports=i.default},function(b,i,d){var r=void 0;b.exports=function(s){return s!==r&&s!==null}},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function p(f,v){for(var g=0;gthis.video.videoWidth/this.video.videoHeight?e.root.style.height=this.video.videoHeight/this.video.videoWidth*n.width+"px":e.root.style.width=this.video.videoWidth/this.video.videoHeight*n.height+"px":e.config.fitVideoSize==="fixWidth"?e.root.style.height=this.video.videoHeight/this.video.videoWidth*n.width+"px":e.config.fitVideoSize==="fixHeight"&&(e.root.style.width=this.video.videoWidth/this.video.videoHeight*n.height+"px")}},e.once("loadeddata",l.getVideoSize),setTimeout(function(){l.emit("ready"),l.isReady=!0},0),l.config.videoInit&&(0,f.hasClass)(l.root,"xgplayer-nostart")&&l.start(),e.config.rotate&&(e.on("requestFullscreen",l.updateRotateDeg),e.on("exitFullscreen",l.updateRotateDeg));function t(){e.root.removeEventListener("mousemove",e.mousemoveFunc),e.off("destroy",t)}return e.once("destroy",t),l}return r(o,[{key:"attachVideo",value:function(){var l=this;this.video&&this.video.nodeType===1&&this.root.insertBefore(this.video,this.root.firstChild),setTimeout(function(){l.emit("complete"),l.danmu&&typeof l.danmu.resize=="function"&&l.danmu.resize()},1)}},{key:"start",value:function(){var l=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.config.url;if(this.video){var x=this;if(!c||c===""){this.emit("urlNull");return}this.canPlayFunc=function(){x.off("canplay",x.canPlayFunc);var m=x.video.play();m!==void 0&&m&&m.then(function(){x.emit("autoplay started")}).catch(function(){x.emit("autoplay was prevented"),(0,f.addClass)(x.root,"xgplayer-is-autoplay")})},(0,f.typeOf)(c)!=="Array"?(0,f.typeOf)(c)==="String"&&c.indexOf("blob:")>-1&&c===this.video.src||(this.video.src=c):c.forEach(function(m){l.video.appendChild((0,f.createDom)("source","",{src:""+m.src,type:""+(m.type||"")}))}),this.config.autoplay&&(g.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 l=this.play();l!==void 0&&l&&l.catch(function(c){})},this.once("loadeddata",this.reloadFunc)}},{key:"destroy",value:function(){var l=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,x=this;clearInterval(this.bulletResizeTimer);for(var m in this._interval)clearInterval(this._interval[m]),this._interval[m]=null;this.checkTimer&&clearInterval(this.checkTimer),this.waitTimer&&clearTimeout(this.waitTimer),this.ev.forEach(function(t){var n=Object.keys(t)[0],u=l[t[n]];u&&l.off(n,u)}),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(t){l.off(t,l["on"+t.charAt(0).toUpperCase()+t.slice(1)])}),(!this.config.keyShortcut||this.config.keyShortcut==="on")&&["video","controls"].forEach(function(t){l[t]&&l[t].removeEventListener("keydown",function(n){x.onKeydown(n,x)})});function e(){if(this.emit("destroy"),this.video.removeAttribute("src"),this.video.load(),c){this.root.innerHTML="";var t=this.root.className.split(" ");t.length>0?this.root.className=t.filter(function(u){return u.indexOf("xgplayer")<0}).join(" "):this.root.className=""}for(var n in this)delete this[n];(0,k.default)(this)}e.call(this),s(o.prototype.__proto__||Object.getPrototypeOf(o.prototype),"destroy",this).call(this)}},{key:"replay",value:function(){var l=this._replay;if((0,f.removeClass)(this.root,"xgplayer-ended"),g.default.browser.indexOf("ie")>-1&&(this.emit("play"),this.emit("playing")),l&&l instanceof Function)l();else{this.currentTime=0;var c=this.play();c!==void 0&&c&&c.catch(function(x){})}}},{key:"userGestureTrigEvent",value:function(l,c){var x=this,m=function(t,n){x.emit(t,n)};this.config.userGestureEventMiddleware&&typeof this.config.userGestureEventMiddleware[l]=="function"?this.config.userGestureEventMiddleware[l].call(this,this,l,c,m):m.call(this,l,c)}},{key:"pluginsCall",value:function(){var l=this;o.plugins.s_i18n&&o.plugins.s_i18n.call(this,this);var c=this;if(o.plugins){var x=this.config.ignores;Object.keys(o.plugins).forEach(function(m){var e=o.plugins[m];!e||typeof e!="function"?console.warn("plugin name",m,"is invalid"):!x.some(function(t){return m===t||m==="s_"+t})&&m!=="s_i18n"&&(["pc","tablet","mobile"].some(function(t){return t===m})?m===g.default.device&&setTimeout(function(){c.video&&e.call(c,c)},0):e.call(l,l))})}}},{key:"onFocus",value:function(){var l=this;(0,f.hasClass)(this.root,"xgplayer-inactive")&&l.emit("controlShow"),(0,f.removeClass)(this.root,"xgplayer-inactive"),l.userTimer&&clearTimeout(l.userTimer),l.userTimer=setTimeout(function(){l.emit("blur")},l.config.inactive)}},{key:"onBlur",value:function(){(this.config.enablePausedInactive||!this.paused)&&!this.ended&&!this.config.closeInactive&&((0,f.hasClass)(this.root,"xgplayer-inactive")||this.emit("controlHide"),(0,f.addClass)(this.root,"xgplayer-inactive"))}},{key:"onPlay",value:function(){(0,f.addClass)(this.root,"xgplayer-isloading"),(0,f.addClass)(this.root,"xgplayer-playing"),(0,f.removeClass)(this.root,"xgplayer-pause")}},{key:"onPause",value:function(){(0,f.addClass)(this.root,"xgplayer-pause"),this.userTimer&&clearTimeout(this.userTimer),this.emit("focus")}},{key:"onEnded",value:function(){(0,f.addClass)(this.root,"xgplayer-ended"),(0,f.removeClass)(this.root,"xgplayer-playing")}},{key:"onSeeking",value:function(){this.isSeeking=!0,this.onWaiting()}},{key:"onSeeked",value:function(){var l=this;this.once("timeupdate",function(){l.isSeeking=!1}),this.waitTimer&&clearTimeout(this.waitTimer),(0,f.removeClass)(this.root,"xgplayer-isloading")}},{key:"onWaiting",value:function(){var l=this;l.waitTimer&&clearTimeout(l.waitTimer),l.checkTimer&&(clearInterval(l.checkTimer),l.checkTimer=null);var c=l.currentTime;l.waitTimer=setTimeout(function(){(0,f.addClass)(l.root,"xgplayer-isloading"),l.checkTimer=setInterval(function(){l.currentTime!==c&&((0,f.removeClass)(l.root,"xgplayer-isloading"),clearInterval(l.checkTimer),l.checkTimer=null)},1e3)},500)}},{key:"onPlaying",value:function(){this.paused||(this.isSeeking=!1,this.waitTimer&&clearTimeout(this.waitTimer),(0,f.removeClass)(this.root,"xgplayer-isloading xgplayer-nostart xgplayer-pause xgplayer-ended xgplayer-is-error xgplayer-replay"),(0,f.addClass)(this.root,"xgplayer-playing"))}}],[{key:"install",value:function(l,c){(0,f.checkIsBrowser)()&&(o.plugins||(o.plugins={}),o.plugins[l]||(o.plugins[l]=c))}},{key:"installAll",value:function(l){for(var c=0;c0&&!L.nativeTextTrack.some(function(c){return c.default})&&(L.nativeTextTrack[0].default=!0,this.textTrackShowDefault=!1),L.nativeTextTrack.some(function(c){if(c.src&&c.label&&c.default)return A+='
",{tabindex:9},"xgplayer-pip");s.once("ready",function(){s.controls.appendChild(p)}),["click","touchend"].forEach(function(f){p.addEventListener(f,function(v){v.preventDefault(),v.stopPropagation(),s.userGestureTrigEvent("pipBtnClick")})})}}},b.exports=i.default},function(b,i,d){var r=d(6);typeof r=="string"&&(r=[[b.i,r,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};d(8)(r,s),r.locals&&(b.exports=r.locals)},function(b,i,d){(b.exports=d(7)(!1)).push([b.i,".xgplayer-skin-default .xgplayer-pip{-webkit-order:9;-moz-box-ordinal-group:10;order:9;position:relative;outline:none;display:block;cursor:pointer;height:20px;top:10px}.xgplayer-skin-default .xgplayer-pip .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-pip .name span{width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.lang-is-jp .xgplayer-pip .name span{width:70px;height:20px}",""])},function(b,i){b.exports=function(d){var r=[];return r.toString=function(){return this.map(function(s){var y=function(p,f){var v=p[1]||"",g=p[3];if(!g)return v;if(f&&typeof btoa=="function"){var C=(T=g,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(T))))+" */"),E=g.sources.map(function(_){return"/*# sourceURL="+g.sourceRoot+_+" */"});return[v].concat(E).concat([C]).join(`
`)}var T;return[v].join(`
`)}(s,d);return s[2]?"@media "+s[2]+"{"+y+"}":y}).join("")},r.i=function(s,y){typeof s=="string"&&(s=[[null,s,""]]);for(var p={},f=0;f=0&&E.splice(a,1)}function j(o){var a=document.createElement("style");return o.attrs.type="text/css",N(a,o.attrs),k(o,a),a}function N(o,a){Object.keys(a).forEach(function(l){o.setAttribute(l,a[l])})}function I(o,a){var l,c,x,m;if(a.transform&&o.css){if(!(m=a.transform(o.css)))return function(){};o.css=m}if(a.singleton){var e=C++;l=g||(g=j(a)),c=D.bind(null,l,e,!1),x=D.bind(null,l,e,!0)}else o.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(l=function(t){var n=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",N(n,t.attrs),k(t,n),n}(a),c=M.bind(null,l,a),x=function(){A(l),l.href&&URL.revokeObjectURL(l.href)}):(l=j(a),c=F.bind(null,l),x=function(){A(l)});return c(o),function(t){if(t){if(t.css===o.css&&t.media===o.media&&t.sourceMap===o.sourceMap)return;c(o=t)}else x()}}b.exports=function(o,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||{}).attrs=typeof a.attrs=="object"?a.attrs:{},a.singleton||typeof a.singleton=="boolean"||(a.singleton=p()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var l=L(o,a);return _(l,a),function(c){for(var x=[],m=0;m0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",h=document.createElement(e);return h.className=u,h.innerHTML=t,Object.keys(n).forEach(function(w){var S=w,O=n[w];e==="video"||e==="audio"?O&&h.setAttribute(S,O):h.setAttribute(S,O)}),h}function f(e,t){return!!e&&(e.classList?Array.prototype.some.call(e.classList,function(n){return n===t}):!!e.className&&!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))}function v(e,t){e&&(e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(n){n&&e.classList.add(n)}):f(e,t)||(e.className+=" "+t))}function g(e,t){e&&(e.classList?t.split(/\s+/g).forEach(function(n){e.classList.remove(n)}):f(e,t)&&t.split(/\s+/g).forEach(function(n){var u=new RegExp("(\\s|^)"+n+"(\\s|$)");e.className=e.className.replace(u," ")}))}function C(e,t){e&&t.split(/\s+/g).forEach(function(n){f(e,n)?g(e,n):v(e,n)})}function E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch{t.indexOf("#")===0&&(n=e.getElementById(t.slice(1)))}return n}function T(e,t,n){for(var u=String(n),h=t>>0,w=Math.ceil(h/u.length),S=[],O=String(e);w--;)S.push(u);return S.join("").substring(0,h-O.length)+O}function _(e){if(window.isNaN(e))return"";var t=T(Math.floor(e/3600),2,0),n=T(Math.floor((e-3600*t)/60),2,0),u=T(Math.floor(e-3600*t-60*n),2,0);return(t==="00"?[n,u]:[t,n,u]).join(":")}function L(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement}function k(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]}function A(e,t){if(k(t)==="Object"&&k(e)==="Object")return Object.keys(t).forEach(function(n){k(t[n])!=="Object"||t[n]instanceof Node?k(t[n])==="Array"?e[n]=k(e[n])==="Array"?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?A(e[n],t[n]):e[n]=t[n]}),e}function j(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||t==="none")return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href}function N(e){if(e&&e.nodeType===1){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,function(n){t.setAttribute(n.name,n.value)}),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""}function I(e,t,n,u){e._interval[t]||(e._interval[t]=setInterval(n.bind(e),u))}function R(e,t){clearInterval(e._interval[t]),e._interval[t]=null}function U(e,t,n,u){var h=p("xg-"+e,"",{},"xgplayer-"+e+"-img");if(h.style.backgroundImage='url("'+t+'")',n&&u){var w=void 0,S=void 0,O=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(P){return!(n.indexOf(P)>-1&&u.indexOf(P)>-1)||(w=Number(n.slice(0,n.indexOf(P)).trim()),S=Number(u.slice(0,u.indexOf(P)).trim()),O=P,!1)}),h.style.width=""+w+O,h.style.height=""+S+O,h.style.backgroundSize=""+w+O+" "+S+O,h.style.margin=e==="start"?"-"+S/2+O+" auto auto -"+w/2+O:"auto 5px auto 5px"}return h}function D(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1}function F(){return window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")>-1}function M(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[],n=0;nt[u].end)){var S=t[u].begin,O=t[u].end;t[u].begin=Math.min(h,S),t[u].end=Math.max(w,O);break}if(u>t.length-2){t.push({begin:h,end:w});break}}for(var P=0,B=0;B1&&arguments[1]!==void 0?arguments[1]:.5,n=[],u=0;uO&&(h[S-1].end=n[w].end):h.push(n[w])}else h.push(n[w])}else h=n;return new y.default(h)}function x(){return!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0)}function m(e,t,n){var u=e.style;try{u[t]=n}catch{u.setProperty(t,n)}}i.PresentationMode={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},i.util={createDom:p,hasClass:f,addClass:v,removeClass:g,toggleClass:C,findDom:E,padStart:T,format:_,event:L,typeOf:k,deepCopy:A,getBgImage:j,copyDom:N,setInterval:I,clearInterval:R,createImgBtn:U,isWeiXin:D,isUc:F,computeWatchDur:M,offInDestroy:o,on:a,once:l,getBuffered2:c,checkIsBrowser:x,setStyle:m}},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function y(p,f){for(var v=0;v=0&&E.splice(a,1)}function j(o){var a=document.createElement("style");return o.attrs.type="text/css",N(a,o.attrs),k(o,a),a}function N(o,a){Object.keys(a).forEach(function(l){o.setAttribute(l,a[l])})}function I(o,a){var l,c,x,m;if(a.transform&&o.css){if(!(m=a.transform(o.css)))return function(){};o.css=m}if(a.singleton){var e=C++;l=g||(g=j(a)),c=D.bind(null,l,e,!1),x=D.bind(null,l,e,!0)}else o.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(l=function(t){var n=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",N(n,t.attrs),k(t,n),n}(a),c=M.bind(null,l,a),x=function(){A(l),l.href&&URL.revokeObjectURL(l.href)}):(l=j(a),c=F.bind(null,l),x=function(){A(l)});return c(o),function(t){if(t){if(t.css===o.css&&t.media===o.media&&t.sourceMap===o.sourceMap)return;c(o=t)}else x()}}b.exports=function(o,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||{}).attrs=typeof a.attrs=="object"?a.attrs:{},a.singleton||typeof a.singleton=="boolean"||(a.singleton=p()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var l=L(o,a);return _(l,a),function(c){for(var x=[],m=0;m';var f=(0,r.createDom)("xg-enter",`
`+y+`
`,{},"xgplayer-enter");s.appendChild(f)}},b.exports=i.default},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0}),i.util=i.PresentationMode=void 0,i.createDom=p,i.hasClass=f,i.addClass=v,i.removeClass=g,i.toggleClass=C,i.findDom=E,i.padStart=T,i.format=_,i.event=L,i.typeOf=k,i.deepCopy=A,i.getBgImage=j,i.copyDom=N,i._setInterval=I,i._clearInterval=R,i.createImgBtn=U,i.isWeiXin=D,i.isUc=F,i.computeWatchDur=M,i.offInDestroy=o,i.on=a,i.once=l,i.getBuffered2=c,i.checkIsBrowser=x,i.setStyle=m,i.checkWebkitSetPresentationMode=function(e){return typeof e.webkitSetPresentationMode=="function"};var r,s=d(3),y=(r=s)&&r.__esModule?r:{default:r};function p(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",h=document.createElement(e);return h.className=u,h.innerHTML=t,Object.keys(n).forEach(function(w){var S=w,O=n[w];e==="video"||e==="audio"?O&&h.setAttribute(S,O):h.setAttribute(S,O)}),h}function f(e,t){return!!e&&(e.classList?Array.prototype.some.call(e.classList,function(n){return n===t}):!!e.className&&!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))}function v(e,t){e&&(e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(n){n&&e.classList.add(n)}):f(e,t)||(e.className+=" "+t))}function g(e,t){e&&(e.classList?t.split(/\s+/g).forEach(function(n){e.classList.remove(n)}):f(e,t)&&t.split(/\s+/g).forEach(function(n){var u=new RegExp("(\\s|^)"+n+"(\\s|$)");e.className=e.className.replace(u," ")}))}function C(e,t){e&&t.split(/\s+/g).forEach(function(n){f(e,n)?g(e,n):v(e,n)})}function E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch{t.indexOf("#")===0&&(n=e.getElementById(t.slice(1)))}return n}function T(e,t,n){for(var u=String(n),h=t>>0,w=Math.ceil(h/u.length),S=[],O=String(e);w--;)S.push(u);return S.join("").substring(0,h-O.length)+O}function _(e){if(window.isNaN(e))return"";var t=T(Math.floor(e/3600),2,0),n=T(Math.floor((e-3600*t)/60),2,0),u=T(Math.floor(e-3600*t-60*n),2,0);return(t==="00"?[n,u]:[t,n,u]).join(":")}function L(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement}function k(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]}function A(e,t){if(k(t)==="Object"&&k(e)==="Object")return Object.keys(t).forEach(function(n){k(t[n])!=="Object"||t[n]instanceof Node?k(t[n])==="Array"?e[n]=k(e[n])==="Array"?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?A(e[n],t[n]):e[n]=t[n]}),e}function j(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||t==="none")return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href}function N(e){if(e&&e.nodeType===1){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,function(n){t.setAttribute(n.name,n.value)}),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""}function I(e,t,n,u){e._interval[t]||(e._interval[t]=setInterval(n.bind(e),u))}function R(e,t){clearInterval(e._interval[t]),e._interval[t]=null}function U(e,t,n,u){var h=p("xg-"+e,"",{},"xgplayer-"+e+"-img");if(h.style.backgroundImage='url("'+t+'")',n&&u){var w=void 0,S=void 0,O=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(P){return!(n.indexOf(P)>-1&&u.indexOf(P)>-1)||(w=Number(n.slice(0,n.indexOf(P)).trim()),S=Number(u.slice(0,u.indexOf(P)).trim()),O=P,!1)}),h.style.width=""+w+O,h.style.height=""+S+O,h.style.backgroundSize=""+w+O+" "+S+O,h.style.margin=e==="start"?"-"+S/2+O+" auto auto -"+w/2+O:"auto 5px auto 5px"}return h}function D(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1}function F(){return window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")>-1}function M(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[],n=0;nt[u].end)){var S=t[u].begin,O=t[u].end;t[u].begin=Math.min(h,S),t[u].end=Math.max(w,O);break}if(u>t.length-2){t.push({begin:h,end:w});break}}for(var P=0,B=0;B1&&arguments[1]!==void 0?arguments[1]:.5,n=[],u=0;uO&&(h[S-1].end=n[w].end):h.push(n[w])}else h.push(n[w])}else h=n;return new y.default(h)}function x(){return!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0)}function m(e,t,n){var u=e.style;try{u[t]=n}catch{u.setProperty(t,n)}}i.PresentationMode={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},i.util={createDom:p,hasClass:f,addClass:v,removeClass:g,toggleClass:C,findDom:E,padStart:T,format:_,event:L,typeOf:k,deepCopy:A,getBgImage:j,copyDom:N,setInterval:I,clearInterval:R,createImgBtn:U,isWeiXin:D,isUc:F,computeWatchDur:M,offInDestroy:o,on:a,once:l,getBuffered2:c,checkIsBrowser:x,setStyle:m}},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function y(p,f){for(var v=0;v=0&&E.splice(a,1)}function j(o){var a=document.createElement("style");return o.attrs.type="text/css",N(a,o.attrs),k(o,a),a}function N(o,a){Object.keys(a).forEach(function(l){o.setAttribute(l,a[l])})}function I(o,a){var l,c,x,m;if(a.transform&&o.css){if(!(m=a.transform(o.css)))return function(){};o.css=m}if(a.singleton){var e=C++;l=g||(g=j(a)),c=D.bind(null,l,e,!1),x=D.bind(null,l,e,!0)}else o.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(l=function(t){var n=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",N(n,t.attrs),k(t,n),n}(a),c=M.bind(null,l,a),x=function(){A(l),l.href&&URL.revokeObjectURL(l.href)}):(l=j(a),c=F.bind(null,l),x=function(){A(l)});return c(o),function(t){if(t){if(t.css===o.css&&t.media===o.media&&t.sourceMap===o.sourceMap)return;c(o=t)}else x()}}b.exports=function(o,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||{}).attrs=typeof a.attrs=="object"?a.attrs:{},a.singleton||typeof a.singleton=="boolean"||(a.singleton=p()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var l=L(o,a);return _(l,a),function(c){for(var x=[],m=0;m0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",h=document.createElement(e);return h.className=u,h.innerHTML=t,Object.keys(n).forEach(function(w){var S=w,O=n[w];e==="video"||e==="audio"?O&&h.setAttribute(S,O):h.setAttribute(S,O)}),h}function f(e,t){return!!e&&(e.classList?Array.prototype.some.call(e.classList,function(n){return n===t}):!!e.className&&!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))}function v(e,t){e&&(e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(n){n&&e.classList.add(n)}):f(e,t)||(e.className+=" "+t))}function g(e,t){e&&(e.classList?t.split(/\s+/g).forEach(function(n){e.classList.remove(n)}):f(e,t)&&t.split(/\s+/g).forEach(function(n){var u=new RegExp("(\\s|^)"+n+"(\\s|$)");e.className=e.className.replace(u," ")}))}function C(e,t){e&&t.split(/\s+/g).forEach(function(n){f(e,n)?g(e,n):v(e,n)})}function E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch{t.indexOf("#")===0&&(n=e.getElementById(t.slice(1)))}return n}function T(e,t,n){for(var u=String(n),h=t>>0,w=Math.ceil(h/u.length),S=[],O=String(e);w--;)S.push(u);return S.join("").substring(0,h-O.length)+O}function _(e){if(window.isNaN(e))return"";var t=T(Math.floor(e/3600),2,0),n=T(Math.floor((e-3600*t)/60),2,0),u=T(Math.floor(e-3600*t-60*n),2,0);return(t==="00"?[n,u]:[t,n,u]).join(":")}function L(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement}function k(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]}function A(e,t){if(k(t)==="Object"&&k(e)==="Object")return Object.keys(t).forEach(function(n){k(t[n])!=="Object"||t[n]instanceof Node?k(t[n])==="Array"?e[n]=k(e[n])==="Array"?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?A(e[n],t[n]):e[n]=t[n]}),e}function j(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||t==="none")return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href}function N(e){if(e&&e.nodeType===1){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,function(n){t.setAttribute(n.name,n.value)}),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""}function I(e,t,n,u){e._interval[t]||(e._interval[t]=setInterval(n.bind(e),u))}function R(e,t){clearInterval(e._interval[t]),e._interval[t]=null}function U(e,t,n,u){var h=p("xg-"+e,"",{},"xgplayer-"+e+"-img");if(h.style.backgroundImage='url("'+t+'")',n&&u){var w=void 0,S=void 0,O=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(P){return!(n.indexOf(P)>-1&&u.indexOf(P)>-1)||(w=Number(n.slice(0,n.indexOf(P)).trim()),S=Number(u.slice(0,u.indexOf(P)).trim()),O=P,!1)}),h.style.width=""+w+O,h.style.height=""+S+O,h.style.backgroundSize=""+w+O+" "+S+O,h.style.margin=e==="start"?"-"+S/2+O+" auto auto -"+w/2+O:"auto 5px auto 5px"}return h}function D(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1}function F(){return window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")>-1}function M(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[],n=0;nt[u].end)){var S=t[u].begin,O=t[u].end;t[u].begin=Math.min(h,S),t[u].end=Math.max(w,O);break}if(u>t.length-2){t.push({begin:h,end:w});break}}for(var P=0,B=0;B1&&arguments[1]!==void 0?arguments[1]:.5,n=[],u=0;uO&&(h[S-1].end=n[w].end):h.push(n[w])}else h.push(n[w])}else h=n;return new y.default(h)}function x(){return!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0)}function m(e,t,n){var u=e.style;try{u[t]=n}catch{u.setProperty(t,n)}}i.PresentationMode={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},i.util={createDom:p,hasClass:f,addClass:v,removeClass:g,toggleClass:C,findDom:E,padStart:T,format:_,event:L,typeOf:k,deepCopy:A,getBgImage:j,copyDom:N,setInterval:I,clearInterval:R,createImgBtn:U,isWeiXin:D,isUc:F,computeWatchDur:M,offInDestroy:o,on:a,once:l,getBuffered2:c,checkIsBrowser:x,setStyle:m}},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function y(p,f){for(var v=0;v
`},function(b,i,d){var r=d(6);typeof r=="string"&&(r=[[b.i,r,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};d(8)(r,s),r.locals&&(b.exports=r.locals)},function(b,i,d){(b.exports=d(7)(!1)).push([b.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(b,i){b.exports=function(d){var r=[];return r.toString=function(){return this.map(function(s){var y=function(p,f){var v=p[1]||"",g=p[3];if(!g)return v;if(f&&typeof btoa=="function"){var C=(T=g,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(T))))+" */"),E=g.sources.map(function(_){return"/*# sourceURL="+g.sourceRoot+_+" */"});return[v].concat(E).concat([C]).join(`
`)}var T;return[v].join(`
`)}(s,d);return s[2]?"@media "+s[2]+"{"+y+"}":y}).join("")},r.i=function(s,y){typeof s=="string"&&(s=[[null,s,""]]);for(var p={},f=0;f=0&&E.splice(a,1)}function j(o){var a=document.createElement("style");return o.attrs.type="text/css",N(a,o.attrs),k(o,a),a}function N(o,a){Object.keys(a).forEach(function(l){o.setAttribute(l,a[l])})}function I(o,a){var l,c,x,m;if(a.transform&&o.css){if(!(m=a.transform(o.css)))return function(){};o.css=m}if(a.singleton){var e=C++;l=g||(g=j(a)),c=D.bind(null,l,e,!1),x=D.bind(null,l,e,!0)}else o.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(l=function(t){var n=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",N(n,t.attrs),k(t,n),n}(a),c=M.bind(null,l,a),x=function(){A(l),l.href&&URL.revokeObjectURL(l.href)}):(l=j(a),c=F.bind(null,l),x=function(){A(l)});return c(o),function(t){if(t){if(t.css===o.css&&t.media===o.media&&t.sourceMap===o.sourceMap)return;c(o=t)}else x()}}b.exports=function(o,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||{}).attrs=typeof a.attrs=="object"?a.attrs:{},a.singleton||typeof a.singleton=="boolean"||(a.singleton=p()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var l=L(o,a);return _(l,a),function(c){for(var x=[],m=0;m您上次观看到
'+(0,r.format)(y)+' ,为您自动续播
',{},"xgplayer-memoryplay")).addEventListener("mouseover",function(g){g.stopPropagation()});var v=function(){f&&f.parentNode&&f.parentNode.removeChild(f),f=null};f.querySelector(".xgplayer-progress-tip .btn-close").addEventListener("click",v),s.once("playing",function(){p>0&&s.root.appendChild(f),s.emit("memoryPlayStart",y),p>0&&setTimeout(function(){v()},1e3*p)}),s.once("ended",v)}}},b.exports=i.default},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0}),i.util=i.PresentationMode=void 0,i.createDom=p,i.hasClass=f,i.addClass=v,i.removeClass=g,i.toggleClass=C,i.findDom=E,i.padStart=T,i.format=_,i.event=L,i.typeOf=k,i.deepCopy=A,i.getBgImage=j,i.copyDom=N,i._setInterval=I,i._clearInterval=R,i.createImgBtn=U,i.isWeiXin=D,i.isUc=F,i.computeWatchDur=M,i.offInDestroy=o,i.on=a,i.once=l,i.getBuffered2=c,i.checkIsBrowser=x,i.setStyle=m,i.checkWebkitSetPresentationMode=function(e){return typeof e.webkitSetPresentationMode=="function"};var r,s=d(4),y=(r=s)&&r.__esModule?r:{default:r};function p(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",h=document.createElement(e);return h.className=u,h.innerHTML=t,Object.keys(n).forEach(function(w){var S=w,O=n[w];e==="video"||e==="audio"?O&&h.setAttribute(S,O):h.setAttribute(S,O)}),h}function f(e,t){return!!e&&(e.classList?Array.prototype.some.call(e.classList,function(n){return n===t}):!!e.className&&!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))}function v(e,t){e&&(e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(n){n&&e.classList.add(n)}):f(e,t)||(e.className+=" "+t))}function g(e,t){e&&(e.classList?t.split(/\s+/g).forEach(function(n){e.classList.remove(n)}):f(e,t)&&t.split(/\s+/g).forEach(function(n){var u=new RegExp("(\\s|^)"+n+"(\\s|$)");e.className=e.className.replace(u," ")}))}function C(e,t){e&&t.split(/\s+/g).forEach(function(n){f(e,n)?g(e,n):v(e,n)})}function E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch{t.indexOf("#")===0&&(n=e.getElementById(t.slice(1)))}return n}function T(e,t,n){for(var u=String(n),h=t>>0,w=Math.ceil(h/u.length),S=[],O=String(e);w--;)S.push(u);return S.join("").substring(0,h-O.length)+O}function _(e){if(window.isNaN(e))return"";var t=T(Math.floor(e/3600),2,0),n=T(Math.floor((e-3600*t)/60),2,0),u=T(Math.floor(e-3600*t-60*n),2,0);return(t==="00"?[n,u]:[t,n,u]).join(":")}function L(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement}function k(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]}function A(e,t){if(k(t)==="Object"&&k(e)==="Object")return Object.keys(t).forEach(function(n){k(t[n])!=="Object"||t[n]instanceof Node?k(t[n])==="Array"?e[n]=k(e[n])==="Array"?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?A(e[n],t[n]):e[n]=t[n]}),e}function j(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||t==="none")return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href}function N(e){if(e&&e.nodeType===1){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,function(n){t.setAttribute(n.name,n.value)}),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""}function I(e,t,n,u){e._interval[t]||(e._interval[t]=setInterval(n.bind(e),u))}function R(e,t){clearInterval(e._interval[t]),e._interval[t]=null}function U(e,t,n,u){var h=p("xg-"+e,"",{},"xgplayer-"+e+"-img");if(h.style.backgroundImage='url("'+t+'")',n&&u){var w=void 0,S=void 0,O=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(P){return!(n.indexOf(P)>-1&&u.indexOf(P)>-1)||(w=Number(n.slice(0,n.indexOf(P)).trim()),S=Number(u.slice(0,u.indexOf(P)).trim()),O=P,!1)}),h.style.width=""+w+O,h.style.height=""+S+O,h.style.backgroundSize=""+w+O+" "+S+O,h.style.margin=e==="start"?"-"+S/2+O+" auto auto -"+w/2+O:"auto 5px auto 5px"}return h}function D(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1}function F(){return window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")>-1}function M(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[],n=0;nt[u].end)){var S=t[u].begin,O=t[u].end;t[u].begin=Math.min(h,S),t[u].end=Math.max(w,O);break}if(u>t.length-2){t.push({begin:h,end:w});break}}for(var P=0,B=0;B1&&arguments[1]!==void 0?arguments[1]:.5,n=[],u=0;uO&&(h[S-1].end=n[w].end):h.push(n[w])}else h.push(n[w])}else h=n;return new y.default(h)}function x(){return!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0)}function m(e,t,n){var u=e.style;try{u[t]=n}catch{u.setProperty(t,n)}}i.PresentationMode={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},i.util={createDom:p,hasClass:f,addClass:v,removeClass:g,toggleClass:C,findDom:E,padStart:T,format:_,event:L,typeOf:k,deepCopy:A,getBgImage:j,copyDom:N,setInterval:I,clearInterval:R,createImgBtn:U,isWeiXin:D,isUc:F,computeWatchDur:M,offInDestroy:o,on:a,once:l,getBuffered2:c,checkIsBrowser:x,setStyle:m}},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function y(p,f){for(var v=0;v=0&&E.splice(a,1)}function j(o){var a=document.createElement("style");return o.attrs.type="text/css",N(a,o.attrs),k(o,a),a}function N(o,a){Object.keys(a).forEach(function(l){o.setAttribute(l,a[l])})}function I(o,a){var l,c,x,m;if(a.transform&&o.css){if(!(m=a.transform(o.css)))return function(){};o.css=m}if(a.singleton){var e=C++;l=g||(g=j(a)),c=D.bind(null,l,e,!1),x=D.bind(null,l,e,!0)}else o.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(l=function(t){var n=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",N(n,t.attrs),k(t,n),n}(a),c=M.bind(null,l,a),x=function(){A(l),l.href&&URL.revokeObjectURL(l.href)}):(l=j(a),c=F.bind(null,l),x=function(){A(l)});return c(o),function(t){if(t){if(t.css===o.css&&t.media===o.media&&t.sourceMap===o.sourceMap)return;c(o=t)}else x()}}b.exports=function(o,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||{}).attrs=typeof a.attrs=="object"?a.attrs:{},a.singleton||typeof a.singleton=="boolean"||(a.singleton=p()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var l=L(o,a);return _(l,a),function(c){for(var x=[],m=0;m0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",h=document.createElement(e);return h.className=u,h.innerHTML=t,Object.keys(n).forEach(function(w){var S=w,O=n[w];e==="video"||e==="audio"?O&&h.setAttribute(S,O):h.setAttribute(S,O)}),h}function f(e,t){return!!e&&(e.classList?Array.prototype.some.call(e.classList,function(n){return n===t}):!!e.className&&!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))}function v(e,t){e&&(e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(n){n&&e.classList.add(n)}):f(e,t)||(e.className+=" "+t))}function g(e,t){e&&(e.classList?t.split(/\s+/g).forEach(function(n){e.classList.remove(n)}):f(e,t)&&t.split(/\s+/g).forEach(function(n){var u=new RegExp("(\\s|^)"+n+"(\\s|$)");e.className=e.className.replace(u," ")}))}function C(e,t){e&&t.split(/\s+/g).forEach(function(n){f(e,n)?g(e,n):v(e,n)})}function E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch{t.indexOf("#")===0&&(n=e.getElementById(t.slice(1)))}return n}function T(e,t,n){for(var u=String(n),h=t>>0,w=Math.ceil(h/u.length),S=[],O=String(e);w--;)S.push(u);return S.join("").substring(0,h-O.length)+O}function _(e){if(window.isNaN(e))return"";var t=T(Math.floor(e/3600),2,0),n=T(Math.floor((e-3600*t)/60),2,0),u=T(Math.floor(e-3600*t-60*n),2,0);return(t==="00"?[n,u]:[t,n,u]).join(":")}function L(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement}function k(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]}function A(e,t){if(k(t)==="Object"&&k(e)==="Object")return Object.keys(t).forEach(function(n){k(t[n])!=="Object"||t[n]instanceof Node?k(t[n])==="Array"?e[n]=k(e[n])==="Array"?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?A(e[n],t[n]):e[n]=t[n]}),e}function j(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||t==="none")return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href}function N(e){if(e&&e.nodeType===1){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,function(n){t.setAttribute(n.name,n.value)}),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""}function I(e,t,n,u){e._interval[t]||(e._interval[t]=setInterval(n.bind(e),u))}function R(e,t){clearInterval(e._interval[t]),e._interval[t]=null}function U(e,t,n,u){var h=p("xg-"+e,"",{},"xgplayer-"+e+"-img");if(h.style.backgroundImage='url("'+t+'")',n&&u){var w=void 0,S=void 0,O=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(P){return!(n.indexOf(P)>-1&&u.indexOf(P)>-1)||(w=Number(n.slice(0,n.indexOf(P)).trim()),S=Number(u.slice(0,u.indexOf(P)).trim()),O=P,!1)}),h.style.width=""+w+O,h.style.height=""+S+O,h.style.backgroundSize=""+w+O+" "+S+O,h.style.margin=e==="start"?"-"+S/2+O+" auto auto -"+w/2+O:"auto 5px auto 5px"}return h}function D(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1}function F(){return window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")>-1}function M(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[],n=0;nt[u].end)){var S=t[u].begin,O=t[u].end;t[u].begin=Math.min(h,S),t[u].end=Math.max(w,O);break}if(u>t.length-2){t.push({begin:h,end:w});break}}for(var P=0,B=0;B1&&arguments[1]!==void 0?arguments[1]:.5,n=[],u=0;uO&&(h[S-1].end=n[w].end):h.push(n[w])}else h.push(n[w])}else h=n;return new y.default(h)}function x(){return!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0)}function m(e,t,n){var u=e.style;try{u[t]=n}catch{u.setProperty(t,n)}}i.PresentationMode={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},i.util={createDom:p,hasClass:f,addClass:v,removeClass:g,toggleClass:C,findDom:E,padStart:T,format:_,event:L,typeOf:k,deepCopy:A,getBgImage:j,copyDom:N,setInterval:I,clearInterval:R,createImgBtn:U,isWeiXin:D,isUc:F,computeWatchDur:M,offInDestroy:o,on:a,once:l,getBuffered2:c,checkIsBrowser:x,setStyle:m}},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=y(d(2)),s=y(d(4));function y(p){return p&&p.__esModule?p:{default:p}}i.default={name:"replay",method:function(){r.default.method.call(this),s.default.method.call(this)}},b.exports=i.default},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=d(0);i.default={name:"replay",method:function(){var s=this,y=s.root;function p(){(0,r.removeClass)(y,"xgplayer-is-replay"),s.replay()}s.on("replayBtnClick",p),s.on("ended",function(){s.config.loop||(0,r.addClass)(y,"xgplayer-is-replay")}),s.once("destroy",function f(){s.off("replayBtnClick",p),s.off("destroy",f)})}},b.exports=i.default},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function y(p,f){for(var v=0;v`+g+`
`,{},"xgplayer-replay");function E(){var _=C.querySelector("path");if(_){var L=window.getComputedStyle(_).getPropertyValue("transform");if(typeof L=="string"&&L.indexOf("none")>-1)return;_.setAttribute("transform",L)}}f.once("ready",function(){v.appendChild(C)}),f.on("ended",E),C.addEventListener("click",function(_){_.preventDefault(),_.stopPropagation()});var T=C.querySelector("svg");["click","touchend"].forEach(function(_){T.addEventListener(_,function(L){L.preventDefault(),L.stopPropagation(),f.userGestureTrigEvent("replayBtnClick")})}),f.once("destroy",function _(){f.off("ended",E),f.off("destroy",_)})}},b.exports=i.default},function(b,i,d){d.r(i),i.default=`
`},function(b,i,d){var r=d(7);typeof r=="string"&&(r=[[b.i,r,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};d(9)(r,s),r.locals&&(b.exports=r.locals)},function(b,i,d){(b.exports=d(8)(!1)).push([b.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(b,i){b.exports=function(d){var r=[];return r.toString=function(){return this.map(function(s){var y=function(p,f){var v=p[1]||"",g=p[3];if(!g)return v;if(f&&typeof btoa=="function"){var C=(T=g,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(T))))+" */"),E=g.sources.map(function(_){return"/*# sourceURL="+g.sourceRoot+_+" */"});return[v].concat(E).concat([C]).join(`
`)}var T;return[v].join(`
`)}(s,d);return s[2]?"@media "+s[2]+"{"+y+"}":y}).join("")},r.i=function(s,y){typeof s=="string"&&(s=[[null,s,""]]);for(var p={},f=0;f=0&&E.splice(a,1)}function j(o){var a=document.createElement("style");return o.attrs.type="text/css",N(a,o.attrs),k(o,a),a}function N(o,a){Object.keys(a).forEach(function(l){o.setAttribute(l,a[l])})}function I(o,a){var l,c,x,m;if(a.transform&&o.css){if(!(m=a.transform(o.css)))return function(){};o.css=m}if(a.singleton){var e=C++;l=g||(g=j(a)),c=D.bind(null,l,e,!1),x=D.bind(null,l,e,!0)}else o.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(l=function(t){var n=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",N(n,t.attrs),k(t,n),n}(a),c=M.bind(null,l,a),x=function(){A(l),l.href&&URL.revokeObjectURL(l.href)}):(l=j(a),c=F.bind(null,l),x=function(){A(l)});return c(o),function(t){if(t){if(t.css===o.css&&t.media===o.media&&t.sourceMap===o.sourceMap)return;c(o=t)}else x()}}b.exports=function(o,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||{}).attrs=typeof a.attrs=="object"?a.attrs:{},a.singleton||typeof a.singleton=="boolean"||(a.singleton=p()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var l=L(o,a);return _(l,a),function(c){for(var x=[],m=0;m"];E.forEach(function(j){f.config.defaultPlaybackRate&&f.config.defaultPlaybackRate.toString()===j.name?(j.selected=!0,T=f.config.defaultPlaybackRate,f.once("playing",function(){f.video.playbackRate=f.config.defaultPlaybackRate})):j.name!=="1.0"&&j.name!=="1"||f.config.defaultPlaybackRate&&f.config.defaultPlaybackRate!==1||(j.selected=!0),_.push(""+j.rate+"")}),_.push(""+T+g+"
");var L=f.root.querySelector(".xgplayer-playbackrate");if(L){L.innerHTML=_.join("");var k=L.querySelector(".name");f.config.playbackRateActive&&f.config.playbackRateActive!=="hover"||k.addEventListener("mouseenter",function(j){j.preventDefault(),j.stopPropagation(),(0,s.addClass)(f.root,"xgplayer-playbackrate-active"),L.focus()})}else{C.innerHTML=_.join("");var A=C.querySelector(".name");f.config.playbackRateActive&&f.config.playbackRateActive!=="hover"||A.addEventListener("mouseenter",function(j){j.preventDefault(),j.stopPropagation(),(0,s.addClass)(f.root,"xgplayer-playbackrate-active"),C.focus()}),f.once("ready",function(){f.controls.appendChild(C)})}["touchend","click"].forEach(function(j){C.addEventListener(j,function(N){N.stopPropagation(),N.preventDefault();var I=N.target;if(I&&I.tagName.toLocaleLowerCase()==="li"){var R,U=void 0;E.forEach(function(D){D.selected=!1,I.textContent.replace(/\s+/g,"")===D.rate&&(Array.prototype.forEach.call(I.parentNode.childNodes,function(F){(0,s.hasClass)(F,"selected")&&(U=Number(F.getAttribute("cname")),(0,s.removeClass)(F,"selected"))}),D.selected=!0,f.video.playbackRate=1*D.name,T=1*D.name)}),(0,s.addClass)(I,"selected"),R=Number(I.getAttribute("cname")),I.parentNode.nextSibling.innerHTML=""+I.getAttribute("cname")+g,f.emit("playbackrateChange",{from:U,to:R}),p.default.device==="mobile"&&(0,s.removeClass)(f.root,"xgplayer-playbackrate-active")}else f.config.playbackRateActive!=="click"||!I||I.tagName.toLocaleLowerCase()!=="p"&&I.tagName.toLocaleLowerCase()!=="span"||(p.default.device==="mobile"?(0,s.toggleClass)(f.root,"xgplayer-playbackrate-active"):(0,s.addClass)(f.root,"xgplayer-playbackrate-active"),C.focus());f.emit("focus")},!1)}),C.addEventListener("mouseleave",function(j){j.preventDefault(),j.stopPropagation(),(0,s.removeClass)(f.root,"xgplayer-playbackrate-active")}),f.on("blur",function(){(0,s.removeClass)(f.root,"xgplayer-playbackrate-active")}),f.on("play",function(){f.video.playbackRate.toFixed(1)!==T.toFixed(1)&&(f.video.playbackRate=T)}),f.switchPlaybackRate=function(){for(var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=f.controls.querySelectorAll(".xgplayer-playbackrate ul li"),I=0;I0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",h=document.createElement(e);return h.className=u,h.innerHTML=t,Object.keys(n).forEach(function(w){var S=w,O=n[w];e==="video"||e==="audio"?O&&h.setAttribute(S,O):h.setAttribute(S,O)}),h}function f(e,t){return!!e&&(e.classList?Array.prototype.some.call(e.classList,function(n){return n===t}):!!e.className&&!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)")))}function v(e,t){e&&(e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach(function(n){n&&e.classList.add(n)}):f(e,t)||(e.className+=" "+t))}function g(e,t){e&&(e.classList?t.split(/\s+/g).forEach(function(n){e.classList.remove(n)}):f(e,t)&&t.split(/\s+/g).forEach(function(n){var u=new RegExp("(\\s|^)"+n+"(\\s|$)");e.className=e.className.replace(u," ")}))}function C(e,t){e&&t.split(/\s+/g).forEach(function(n){f(e,n)?g(e,n):v(e,n)})}function E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch{t.indexOf("#")===0&&(n=e.getElementById(t.slice(1)))}return n}function T(e,t,n){for(var u=String(n),h=t>>0,w=Math.ceil(h/u.length),S=[],O=String(e);w--;)S.push(u);return S.join("").substring(0,h-O.length)+O}function _(e){if(window.isNaN(e))return"";var t=T(Math.floor(e/3600),2,0),n=T(Math.floor((e-3600*t)/60),2,0),u=T(Math.floor(e-3600*t-60*n),2,0);return(t==="00"?[n,u]:[t,n,u]).join(":")}function L(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement}function k(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]}function A(e,t){if(k(t)==="Object"&&k(e)==="Object")return Object.keys(t).forEach(function(n){k(t[n])!=="Object"||t[n]instanceof Node?k(t[n])==="Array"?e[n]=k(e[n])==="Array"?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?A(e[n],t[n]):e[n]=t[n]}),e}function j(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||t==="none")return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href}function N(e){if(e&&e.nodeType===1){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,function(n){t.setAttribute(n.name,n.value)}),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""}function I(e,t,n,u){e._interval[t]||(e._interval[t]=setInterval(n.bind(e),u))}function R(e,t){clearInterval(e._interval[t]),e._interval[t]=null}function U(e,t,n,u){var h=p("xg-"+e,"",{},"xgplayer-"+e+"-img");if(h.style.backgroundImage='url("'+t+'")',n&&u){var w=void 0,S=void 0,O=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every(function(P){return!(n.indexOf(P)>-1&&u.indexOf(P)>-1)||(w=Number(n.slice(0,n.indexOf(P)).trim()),S=Number(u.slice(0,u.indexOf(P)).trim()),O=P,!1)}),h.style.width=""+w+O,h.style.height=""+S+O,h.style.backgroundSize=""+w+O+" "+S+O,h.style.margin=e==="start"?"-"+S/2+O+" auto auto -"+w/2+O:"auto 5px auto 5px"}return h}function D(){return window.navigator.userAgent.toLowerCase().indexOf("micromessenger")>-1}function F(){return window.navigator.userAgent.toLowerCase().indexOf("ucbrowser")>-1}function M(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[],n=0;nt[u].end)){var S=t[u].begin,O=t[u].end;t[u].begin=Math.min(h,S),t[u].end=Math.max(w,O);break}if(u>t.length-2){t.push({begin:h,end:w});break}}for(var P=0,B=0;B1&&arguments[1]!==void 0?arguments[1]:.5,n=[],u=0;uO&&(h[S-1].end=n[w].end):h.push(n[w])}else h.push(n[w])}else h=n;return new y.default(h)}function x(){return!(typeof window>"u"||window.document===void 0||window.document.createElement===void 0)}function m(e,t,n){var u=e.style;try{u[t]=n}catch{u.setProperty(t,n)}}i.PresentationMode={PIP:"picture-in-picture",INLINE:"inline",FULLSCREEN:"fullscreen"},i.util={createDom:p,hasClass:f,addClass:v,removeClass:g,toggleClass:C,findDom:E,padStart:T,format:_,event:L,typeOf:k,deepCopy:A,getBgImage:j,copyDom:N,setInterval:I,clearInterval:R,createImgBtn:U,isWeiXin:D,isUc:F,computeWatchDur:M,offInDestroy:o,on:a,once:l,getBuffered2:c,checkIsBrowser:x,setStyle:m}},function(b,i,d){Object.defineProperty(i,"__esModule",{value:!0});var r=function(){function y(p,f){for(var v=0;v=0&&E.splice(a,1)}function j(o){var a=document.createElement("style");return o.attrs.type="text/css",N(a,o.attrs),k(o,a),a}function N(o,a){Object.keys(a).forEach(function(l){o.setAttribute(l,a[l])})}function I(o,a){var l,c,x,m;if(a.transform&&o.css){if(!(m=a.transform(o.css)))return function(){};o.css=m}if(a.singleton){var e=C++;l=g||(g=j(a)),c=D.bind(null,l,e,!1),x=D.bind(null,l,e,!0)}else o.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(l=function(t){var n=document.createElement("link");return t.attrs.type="text/css",t.attrs.rel="stylesheet",N(n,t.attrs),k(t,n),n}(a),c=M.bind(null,l,a),x=function(){A(l),l.href&&URL.revokeObjectURL(l.href)}):(l=j(a),c=F.bind(null,l),x=function(){A(l)});return c(o),function(t){if(t){if(t.css===o.css&&t.media===o.media&&t.sourceMap===o.sourceMap)return;c(o=t)}else x()}}b.exports=function(o,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||{}).attrs=typeof a.attrs=="object"?a.attrs:{},a.singleton||typeof a.singleton=="boolean"||(a.singleton=p()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var l=L(o,a);return _(l,a),function(c){for(var x=[],m=0;m