import{r as Z}from"./index.LFf77hJu.js";var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ve(F){return F&&F.__esModule&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F}var ye={exports:{}},de={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Le=Z,Ce=Symbol.for("react.element"),Be=Symbol.for("react.fragment"),Fe=Object.prototype.hasOwnProperty,He=Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ae={key:!0,ref:!0,__self:!0,__source:!0};function be(F,A,o){var h,s={},e=null,t=null;o!==void 0&&(e=""+o),A.key!==void 0&&(e=""+A.key),A.ref!==void 0&&(t=A.ref);for(h in A)Fe.call(A,h)&&!Ae.hasOwnProperty(h)&&(s[h]=A[h]);if(F&&F.defaultProps)for(h in A=F.defaultProps,A)s[h]===void 0&&(s[h]=A[h]);return{$$typeof:Ce,type:F,key:e,ref:t,props:s,_owner:He.current}}de.Fragment=Be;de.jsx=be;de.jsxs=be;ye.exports=de;var z=ye.exports,we={exports:{}};(function(F,A){(function(o,h){F.exports=h()})(window,function(){return function(o){var h={};function s(e){if(h[e])return h[e].exports;var t=h[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}return s.m=o,s.c=h,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},s.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/",s(s.s=41)}([function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=/mobile/i.test(window.navigator.userAgent),t={secondToTime:function(r){var n=Math.floor(r/3600),i=Math.floor((r-3600*n)/60),u=Math.floor(r-3600*n-60*i);return(n>0?[n,i,u]:[i,u]).map(function(a){return a<10?"0"+a:""+a}).join(":")},getElementViewLeft:function(r){var n=r.offsetLeft,i=r.offsetParent,u=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;i!==null&&i!==r;)n+=i.offsetLeft,i=i.offsetParent;else for(;i!==null;)n+=i.offsetLeft,i=i.offsetParent;return n-u},getElementViewTop:function(r,n){for(var i,u=r.offsetTop,a=r.offsetParent;a!==null;)u+=a.offsetTop,a=a.offsetParent;return i=document.body.scrollTop+document.documentElement.scrollTop,n?u:u-i},isMobile:e,storage:{set:function(r,n){localStorage.setItem(r,n)},get:function(r){return localStorage.getItem(r)}},nameMap:{dragStart:e?"touchstart":"mousedown",dragMove:e?"touchmove":"mousemove",dragEnd:e?"touchend":"mouseup"},randomOrder:function(r){return function(n){for(var i=n.length-1;i>=0;i--){var u=Math.floor(Math.random()*(i+1)),a=n[u];n[u]=n[i],n[i]=a}return n}([].concat(function(n){if(Array.isArray(n)){for(var i=0,u=Array(n.length);i `,r+=u(p+l),r+=` `,r+=u(c.name),r+=` `,r+=u(c.artist),r+=` `}),r}},function(o,h,s){o.exports=s(15)},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=b(s(33)),t=b(s(32)),r=b(s(31)),n=b(s(30)),i=b(s(29)),u=b(s(28)),a=b(s(27)),l=b(s(26)),c=b(s(25)),p=b(s(24)),d=b(s(23)),y=b(s(22)),m=b(s(21)),w=b(s(20)),x=b(s(19));function b(f){return f&&f.__esModule?f:{default:f}}var g={play:e.default,pause:t.default,volumeUp:r.default,volumeDown:n.default,volumeOff:i.default,orderRandom:u.default,orderList:a.default,menu:l.default,loopAll:c.default,loopOne:p.default,loopNone:d.default,loading:y.default,right:m.default,skip:w.default,lrc:x.default};h.default=g},function(o,h,s){var e,t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch{(typeof window>"u"?"undefined":t(window))==="object"&&(e=window)}o.exports=e},function(o,h,s){var e,t,r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};(t=typeof(e=function(){if((typeof window>"u"?"undefined":r(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var n=function(a,l,c,p){return c>p?l:a+(l-a)*((d=c/p)<.5?4*d*d*d:(d-1)*(2*d-2)*(2*d-2)+1);var d},i=function(a,l,c,p){l=l||500;var d=(p=p||window).scrollTop||window.pageYOffset;if(typeof a=="number")var y=parseInt(a);else var y=function(x,b){return x.nodeName==="HTML"?-b:x.getBoundingClientRect().top+b}(a,d);var m=Date.now(),w=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(x){window.setTimeout(x,15)};(function x(){var b=Date.now()-m;p!==window?p.scrollTop=n(d,y,b,l):window.scroll(0,n(d,y,b,l)),b>l?typeof c=="function"&&c(a):w(x)})()},u=function(a){if(!a.defaultPrevented){a.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var l=document.getElementById(this.hash.substring(1));if(!l)return;i(l,500,function(c){location.replace("#"+c.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var a,l=document.querySelectorAll('a[href^="#"]:not([href="#"])'),c=l.length;a=l[--c];)a.addEventListener("click",u,!1)}),i}})=="function"?e.call(h,s,h,o):e)===void 0||(o.exports=t)},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function a(l,c){for(var p=0;p1),p=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,t.default)({theme:this.player.options.theme,audio:l,index:this.audios.length+1}),this.audios=this.audios.concat(l),c&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=r.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=l.theme||this.player.options.theme,p&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(l){if(this.player.events.trigger("listremove",{index:l}),this.audios[l])if(this.audios.length>1){var c=this.player.container.querySelectorAll(".aplayer-list li");c[l].remove(),this.audios.splice(l,1),this.player.lrc&&this.player.lrc.remove(l),l===this.index&&(this.audios[l]?this.switch(l):this.switch(l-1)),this.index>l&&this.index--;for(var p=l;pi&&!n.player.audio.paused&&(n.player.container.classList.remove("aplayer-loading"),a=!1),i=u)},100)}},{key:"enable",value:function(n){this["enable"+n+"Checker"]=!0,n==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(n){this["enable"+n+"Checker"]=!1}},{key:"destroy",value:function(){var n=this;this.types.forEach(function(i){n["enable"+i+"Checker"]=!1,n[i+"Checker"]&&clearInterval(n[i+"Checker"])})}}]),r}();h.default=t},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function u(a,l){for(var c=0;c1?a.player.options.loop==="one"?(a.player.options.loop="none",a.player.template.loop.innerHTML=r.default.loopNone):a.player.options.loop==="none"?(a.player.options.loop="all",a.player.template.loop.innerHTML=r.default.loopAll):a.player.options.loop==="all"&&(a.player.options.loop="one",a.player.template.loop.innerHTML=r.default.loopOne):a.player.options.loop==="one"||a.player.options.loop==="all"?(a.player.options.loop="none",a.player.template.loop.innerHTML=r.default.loopNone):a.player.options.loop==="none"&&(a.player.options.loop="all",a.player.template.loop.innerHTML=r.default.loopAll)})}},{key:"initMenuButton",value:function(){var a=this;this.player.template.menu.addEventListener("click",function(){a.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var a=this;this.player.template.miniSwitcher.addEventListener("click",function(){a.player.setMode(a.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var a=this;this.player.template.skipBackButton.addEventListener("click",function(){a.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){a.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){a.player.toggle()})}},{key:"initLrcButton",value:function(){var a=this;this.player.template.lrcButton.addEventListener("click",function(){a.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(a.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),a.player.lrc&&a.player.lrc.show()):(a.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),a.player.lrc&&a.player.lrc.hide())})}}]),u}();h.default=i},function(o,h,s){var e=s(2);o.exports=function(t){t=t||{};var r="",n=e.$each,i=t.lyrics,u=(t.$value,t.$index,e.$escape);return n(i,function(a,l){r+=` `}),r}},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e,t=function(){function u(a,l){for(var c=0;c0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||a=this.current[this.index+1][0])for(var l=0;l=this.current[l][0]&&(!this.current[l+1]||a=200&&c.status<300||c.status===304?l.parsed[a]=l.parse(c.responseText):(l.player.notice("LRC file request fails: status "+c.status),l.parsed[a]=[["00:00","Not available"]]),l.container.innerHTML=(0,n.default)({lyrics:l.parsed[a]}),l.update(0),l.current=l.parsed[a])};var p=this.player.list.audios[a].lrc;c.open("get",p,!0),c.send(null)}else this.player.list.audios[a].lrc?this.parsed[a]=this.parse(this.player.list.audios[a].lrc):this.parsed[a]=[["00:00","Not available"]];this.container.innerHTML=(0,n.default)({lyrics:this.parsed[a]}),this.update(0),this.current=this.parsed[a]}},{key:"parse",value:function(a){if(a){for(var l=(a=a.replace(/([^\]^\n])\[/g,function(f,v){return v+` [`})).split(` `),c=[],p=l.length,d=0;d/g,"").replace(/^\s+|\s+$/g,"");if(y)for(var w=y.length,x=0;x]/;r.$escape=function(i){return function(u){var a=""+u,l=n.exec(a);if(!l)return u;var c="",p=void 0,d=void 0,y=void 0;for(p=l.index,d=0;p `,l(s(1)(c({theme:n.theme,audio:n.audio,index:1}))),r+=`
`,r+=a.play,r+=`
`):(r+=`
`,r+=a.play,r+=`
No audio
`,r+=a.loading,r+=`
00:00 / 00:00 `,r+=a.skip,r+=` `,r+=a.play,r+=` `,r+=a.skip,r+=`
`,l(s(1)(c({theme:n.theme,audio:n.audio,index:1}))),r+=`
`),r}},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function u(a,l){for(var c=0;c'},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h){o.exports=''},function(o,h,s){var e,t,r=o.exports={};function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(x){if(e===setTimeout)return setTimeout(x,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(x,0);try{return e(x,0)}catch{try{return e.call(null,x,0)}catch{return e.call(this,x,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:n}catch{e=n}try{t=typeof clearTimeout=="function"?clearTimeout:i}catch{t=i}})();var a,l=[],c=!1,p=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):p=-1,l.length&&y())}function y(){if(!c){var x=u(d);c=!0;for(var b=l.length;b;){for(a=l,l=[];++p1)for(var g=1;g"u"?e===void 0?void 0:e:self)}).call(this,s(4),s(34))},function(o,h,s){var e=Function.prototype.apply;function t(r,n){this._id=r,this._clearFn=n}h.setTimeout=function(){return new t(e.call(setTimeout,window,arguments),clearTimeout)},h.setInterval=function(){return new t(e.call(setInterval,window,arguments),clearInterval)},h.clearTimeout=h.clearInterval=function(r){r&&r.close()},t.prototype.unref=t.prototype.ref=function(){},t.prototype.close=function(){this._clearFn.call(window,this._id)},h.enroll=function(r,n){clearTimeout(r._idleTimeoutId),r._idleTimeout=n},h.unenroll=function(r){clearTimeout(r._idleTimeoutId),r._idleTimeout=-1},h._unrefActive=h.active=function(r){clearTimeout(r._idleTimeoutId);var n=r._idleTimeout;n>=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},n))},s(35),h.setImmediate=setImmediate,h.clearImmediate=clearImmediate},function(o,h,s){(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},r=setTimeout;function n(){}function i(d){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if(typeof d!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(d,this)}function u(d,y){for(;d._state===3;)d=d._value;d._state!==0?(d._handled=!0,i._immediateFn(function(){var m=d._state===1?y.onFulfilled:y.onRejected;if(m!==null){var w;try{w=m(d._value)}catch(x){return void l(y.promise,x)}a(y.promise,w)}else(d._state===1?a:l)(y.promise,d._value)})):d._deferreds.push(y)}function a(d,y){try{if(y===d)throw new TypeError("A promise cannot be resolved with itself.");if(y&&((y===void 0?"undefined":t(y))==="object"||typeof y=="function")){var m=y.then;if(y instanceof i)return d._state=3,d._value=y,void c(d);if(typeof m=="function")return void p((w=m,x=y,function(){w.apply(x,arguments)}),d)}d._state=1,d._value=y,c(d)}catch(b){l(d,b)}var w,x}function l(d,y){d._state=2,d._value=y,c(d)}function c(d){d._state===2&&d._deferreds.length===0&&i._immediateFn(function(){d._handled||i._unhandledRejectionFn(d._value)});for(var y=0,m=d._deferreds.length;y1&&this.container.classList.add("aplayer-withlist"),r.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,this.options.lrcType===2||this.options.lrcType===!0)for(var v=this.container.getElementsByClassName("aplayer-lrc-content"),k=0;k1?(f.notice("An audio error has occurred, player will skip forward in 2 seconds."),v=setTimeout(function(){f.skipForward(),f.paused||f.play()},2e3)):f.list.audios.length===1&&f.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){v&&clearTimeout(v)}),this.on("ended",function(){f.options.loop==="none"?f.options.order==="list"?f.list.index0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[v]&&(this.list.audios[v].theme=f),this.template.listCurs[v]&&(this.template.listCurs[v].style.backgroundColor=f),v===this.list.index&&(this.template.pic.style.backgroundColor=f,this.template.played.style.background=f,this.template.thumb.style.background=f,this.template.volume.style.background=f)}},{key:"seek",value:function(f){f=Math.max(f,0),f=Math.min(f,this.duration),this.audio.currentTime=f,this.bar.set("played",f/this.duration,"width"),this.template.ptime.innerHTML=r.default.secondToTime(f)}},{key:"setUIPlaying",value:function(){var f=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){f.template.button.innerHTML=n.default.pause},100),this.template.skipPlayButton.innerHTML=n.default.pause),this.timer.enable("loading"),this.options.mutex)for(var v=0;v=.95?this.template.volumeButton.innerHTML=n.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=n.default.volumeDown:this.template.volumeButton.innerHTML=n.default.volumeOff}},{key:"volume",value:function(f,v){return f=parseFloat(f),isNaN(f)||(f=Math.max(f,0),f=Math.min(f,1),this.bar.set("volume",f,"height"),v||this.storage.set("volume",f),this.audio.volume=f,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(f,v){this.events.on(f,v)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(f){this.list.switch(f)}},{key:"addAudio",value:function(f){this.list.add(f)}},{key:"removeAudio",value:function(f){this.list.remove(f)}},{key:"destroy",value:function(){x.splice(x.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=f,f==="mini"?this.container.classList.add("aplayer-narrow"):f==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(f){var v=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=f,this.template.notice.style.opacity=T,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:f}),k&&(this.noticeTime=setTimeout(function(){v.template.notice.style.opacity=0,v.events.trigger("noticehide")},k))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var f=this.randomOrder.indexOf(this.list.index);return f===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[f-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var f=this.randomOrder.indexOf(this.list.index);return f===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[f+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),g}();h.default=b},,function(o,h,s){},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0}),s(40);var e,t=s(38),r=(e=t)&&e.__esModule?e:{default:e};console.log(` %c APlayer v1.10.1 af84efb %c http://aplayer.js.org `,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),h.default=r.default}]).default})})(we);var _e=we.exports;const Re=ve(_e);function ge(F){throw new Error('Could not dynamically require "'+F+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pe={exports:{}};/*! * artplayer.js v5.1.1 * Github: https://github.com/zhw2590582/ArtPlayer * (c) 2017-2024 Harvey Zack * Released under the MIT License. */pe.exports;(function(F,A){(function(o,h,s,e,t){var r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof me<"u"?me:{},n=typeof r[e]=="function"&&r[e],i=n.cache||{},u=typeof ge=="function"&&ge.bind(F);function a(p,d){if(!i[p]){if(!o[p]){var y=typeof r[e]=="function"&&r[e];if(!d&&y)return y(p,!0);if(n)return n(p,!0);if(u&&typeof p=="string")return u(p);var m=new Error("Cannot find module '"+p+"'");throw m.code="MODULE_NOT_FOUND",m}x.resolve=function(b){var g=o[p][1][b];return g??b},x.cache={};var w=i[p]=new a.Module(p);o[p][0].call(w.exports,x,w,w.exports,this)}return i[p].exports;function x(b){var g=x.resolve(b);return g===!1?{}:a(g)}}a.isParcelRequire=!0,a.Module=function(p){this.id=p,this.bundle=a,this.exports={}},a.modules=o,a.cache=i,a.parent=n,a.register=function(p,d){o[p]=[function(y,m){m.exports=d},{}]},Object.defineProperty(a,"root",{get:function(){return r[e]}}),r[e]=a;for(var l=0;lW.call(this,this)),O.DEBUG){const V=q=>console.log(`[ART.${this.id}] -> ${q}`);V("Version@"+O.version),V("Env@"+O.env),V("Build@"+O.build);for(let q=0;qV("Event@"+le.type))}N.push(this)}static get instances(){return N}static get version(){return"5.1.1"}static get env(){return"production"}static get build(){return"2024-01-11 10:39:44"}static get config(){return y.default}static get utils(){return l}static get scheme(){return p.default}static get Emitter(){return a.default}static get validator(){return i.default}static get kindOf(){return i.default.kindOf}static get html(){return w.default.html}static get option(){return{id:"",container:"#artplayer",url:"",poster:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,airplay:!1,layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],thumbnails:{url:"",number:60,column:10,width:0,height:0},subtitle:{url:"",type:"",style:{},name:"",escape:!0,encoding:"utf-8",onVttLoad:P=>P},moreVideoAttr:{controls:!1,preload:l.isSafari?"auto":"metadata"},i18n:{},icons:{},cssVar:{},customType:{},lang:navigator.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}get video(){return this.template.$video}destroy(P=!0){this.events.destroy(),this.template.destroy(P),N.splice(N.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}s.default=O,O.DEBUG=!1,O.CONTEXTMENU=!0,O.NOTICE_TIME=2e3,O.SETTING_WIDTH=250,O.SETTING_ITEM_WIDTH=200,O.SETTING_ITEM_HEIGHT=35,O.RESIZE_TIME=200,O.SCROLL_TIME=200,O.SCROLL_GAP=50,O.AUTO_PLAYBACK_MAX=10,O.AUTO_PLAYBACK_MIN=5,O.AUTO_PLAYBACK_TIMEOUT=3e3,O.RECONNECT_TIME_MAX=5,O.RECONNECT_SLEEP_TIME=1e3,O.CONTROL_HIDE_TIME=3e3,O.DBCLICK_TIME=300,O.DBCLICK_FULLSCREEN=!0,O.MOBILE_DBCLICK_PLAY=!0,O.MOBILE_CLICK_PLAY=!1,O.AUTO_ORIENTATION_TIME=200,O.INFO_LOOP_TIME=1e3,O.FAST_FORWARD_VALUE=3,O.FAST_FORWARD_TIME=1e3,O.TOUCH_MOVE_RATIO=.5,O.VOLUME_STEP=.1,O.SEEK_STEP=5,O.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2],O.ASPECT_RATIO=["default","4:3","16:9"],O.FLIP=["normal","horizontal","vertical"],O.FULLSCREEN_WEB_IN_BODY=!1,O.LOG_VERSION=!0,O.USE_RAF=!1,l.isBrowser&&(window.Artplayer=O,l.setStyleText("artplayer-style",r.default),setTimeout(()=>{O.LOG_VERSION&&console.log(`%c ArtPlayer %c ${O.version} %c https://artplayer.org`,"color: #fff; background: #5f5f5f","color: #fff; background: #4bc729","")},100))},{"bundle-text:./style/index.less":"kfOe8","option-validator":"bAWi2","./utils/emitter":"2bGVu","./utils":"h3rH9","./scheme":"AdvwB","./config":"9Xmqu","./template":"2gKYH","./i18n":"1AdeF","./player":"556MW","./control":"14IBq","./contextmenu":"7iUum","./info":"hD2Lg","./subtitle":"lum0D","./events":"1Epl5","./hotkey":"eTow4","./layer":"4fDoD","./loading":"fE0Sp","./notice":"9PuGy","./mask":"2etr0","./icons":"6dYSr","./setting":"bRHiA","./storage":"f2Thp","./plugins":"96ThS","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kfOe8:[function(o,h,s){h.exports='.art-video-player{--art-theme:red;--art-font-color:#fff;--art-background-color:#000;--art-text-shadow-color:#00000080;--art-transition-duration:.2s;--art-padding:10px;--art-border-radius:3px;--art-progress-height:6px;--art-progress-color:#fff3;--art-hover-color:#fff3;--art-loaded-color:#fff3;--art-state-size:80px;--art-state-opacity:.8;--art-bottom-height:100px;--art-bottom-offset:20px;--art-bottom-gap:5px;--art-highlight-width:8px;--art-highlight-color:#ffffff80;--art-control-height:46px;--art-control-opacity:.75;--art-control-icon-size:36px;--art-control-icon-scale:1.1;--art-volume-height:120px;--art-volume-handle-size:14px;--art-lock-size:36px;--art-indicator-scale:0;--art-indicator-size:16px;--art-fullscreen-web-index:9999;--art-settings-icon-size:24px;--art-settings-max-height:300px;--art-selector-max-height:300px;--art-contextmenus-min-width:250px;--art-subtitle-font-size:20px;--art-subtitle-gap:5px;--art-subtitle-bottom:15px;--art-subtitle-border:#000;--art-widget-background:#000000d9;--art-tip-background:#00000080;--art-scrollbar-size:4px;--art-scrollbar-background:#ffffff40;--art-scrollbar-background-hover:#ffffff80;--art-mini-progress-height:2px}.art-bg-cover{background-position:50%;background-repeat:no-repeat;background-size:cover}.art-bottom-gradient{background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x}.art-backdrop-filter{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.art-video-player{width:100%;height:100%;zoom:1;text-align:left;direction:ltr;user-select:none;box-sizing:border-box;color:var(--art-font-color);background-color:var(--art-background-color);text-shadow:0 0 2px var(--art-text-shadow-color);-webkit-tap-highlight-color:#0000;-ms-touch-action:manipulation;touch-action:manipulation;-ms-high-contrast-adjust:none;outline:0;margin:0 auto;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft YaHei,Roboto,Arial,sans-serif;font-size:14px;line-height:1.3;position:relative}.art-video-player *,.art-video-player :before,.art-video-player :after{box-sizing:border-box}.art-video-player ::-webkit-scrollbar{width:var(--art-scrollbar-size);height:var(--art-scrollbar-size)}.art-video-player ::-webkit-scrollbar-thumb{background-color:var(--art-scrollbar-background)}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:var(--art-scrollbar-background-hover)}.art-video-player img{max-width:100%;vertical-align:top}.art-video-player svg{fill:var(--art-font-color)}.art-video-player a{color:var(--art-font-color);text-decoration:none}.art-icon{justify-content:center;align-items:center;line-height:1;display:flex}.art-video-player.art-backdrop .art-contextmenus,.art-video-player.art-backdrop .art-info,.art-video-player.art-backdrop .art-settings,.art-video-player.art-backdrop .art-layer-auto-playback,.art-video-player.art-backdrop .art-selector-list,.art-video-player.art-backdrop .art-volume-inner{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-video{z-index:10;width:100%;height:100%;cursor:pointer;position:absolute;inset:0}.art-poster{z-index:11;width:100%;height:100%;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:0}.art-video-player .art-subtitle{z-index:20;width:100%;text-align:center;pointer-events:none;justify-content:center;align-items:center;gap:var(--art-subtitle-gap);bottom:var(--art-subtitle-bottom);font-size:var(--art-subtitle-font-size);transition:bottom var(--art-transition-duration)ease;text-shadow:var(--art-subtitle-border)1px 0 1px,var(--art-subtitle-border)0 1px 1px,var(--art-subtitle-border)-1px 0 1px,var(--art-subtitle-border)0 -1px 1px,var(--art-subtitle-border)1px 1px 1px,var(--art-subtitle-border)-1px -1px 1px,var(--art-subtitle-border)1px -1px 1px,var(--art-subtitle-border)-1px 1px 1px;flex-direction:column;padding:0 5%;display:none;position:absolute}.art-video-player.art-subtitle-show .art-subtitle{display:flex}.art-video-player.art-control-show .art-subtitle{bottom:calc(var(--art-control-height) + var(--art-subtitle-bottom))}.art-danmuku{z-index:30;width:100%;height:100%;pointer-events:none;position:absolute;inset:0;overflow:hidden}.art-video-player .art-layers{z-index:40;width:100%;height:100%;pointer-events:none;display:none;position:absolute;inset:0}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:flex}.art-video-player .art-mask{z-index:50;width:100%;height:100%;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.art-video-player .art-mask .art-state{opacity:0;width:var(--art-state-size);height:var(--art-state-size);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;display:flex;transform:scale(2)}.art-video-player.art-mask-show .art-state{cursor:pointer;pointer-events:auto;opacity:var(--art-state-opacity);transform:scale(1)}.art-video-player.art-loading-show .art-state{display:none}.art-video-player .art-loading{z-index:70;width:100%;height:100%;pointer-events:none;justify-content:center;align-items:center;display:none;position:absolute;inset:0}.art-video-player.art-loading-show .art-loading{display:flex}.art-video-player .art-bottom{z-index:60;width:100%;height:100%;opacity:0;pointer-events:none;padding:0 var(--art-padding);transition:all var(--art-transition-duration)ease;background-size:100% var(--art-bottom-height);background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x;flex-direction:column;justify-content:flex-end;display:flex;position:absolute;inset:0;overflow:hidden}.art-video-player .art-bottom .art-controls,.art-video-player .art-bottom .art-progress{transform:translateY(var(--art-bottom-offset));transition:transform var(--art-transition-duration)ease}.art-video-player.art-control-show .art-bottom,.art-video-player.art-hover .art-bottom{opacity:1}.art-video-player.art-control-show .art-bottom .art-controls,.art-video-player.art-hover .art-bottom .art-controls,.art-video-player.art-control-show .art-bottom .art-progress,.art-video-player.art-hover .art-bottom .art-progress{transform:translateY(0)}.art-bottom .art-progress{z-index:0;pointer-events:auto;padding-bottom:var(--art-bottom-gap);position:relative}.art-bottom .art-progress .art-control-progress{cursor:pointer;height:var(--art-progress-height);justify-content:center;align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner{height:50%;width:100%;transition:height var(--art-transition-duration)ease;background-color:var(--art-progress-color);align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-hover{z-index:0;width:100%;height:100%;width:0%;background-color:var(--art-hover-color);display:none;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded{z-index:10;width:100%;height:100%;width:0%;background-color:var(--art-loaded-color);position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played{z-index:20;width:100%;height:100%;width:0%;background-color:var(--art-theme);position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight{z-index:30;width:100%;height:100%;pointer-events:none;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight span{z-index:0;width:100%;height:100%;pointer-events:auto;transform:translateX(calc(var(--art-highlight-width)/-2));background-color:var(--art-highlight-color);position:absolute;inset:0 auto 0 0;width:var(--art-highlight-width)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{z-index:40;width:var(--art-indicator-size);height:var(--art-indicator-size);transform:scale(var(--art-indicator-scale));margin-left:calc(var(--art-indicator-size)/-2);transition:transform var(--art-transition-duration)ease;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;left:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator .art-icon{width:100%;height:100%;pointer-events:none}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:hover{transform:scale(1.2)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:active{transform:scale(1)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-tip{z-index:50;border-radius:var(--art-border-radius);white-space:nowrap;background-color:var(--art-tip-background);padding:3px 5px;font-size:12px;line-height:1;display:none;position:absolute;top:-25px;left:0}.art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner{height:100%}.art-bottom .art-progress .art-control-thumbnails{bottom:calc(var(--art-bottom-gap) + 10px);border-radius:var(--art-border-radius);pointer-events:none;background-color:var(--art-widget-background);display:none;position:absolute;left:0;box-shadow:0 1px 3px #0003,0 1px 2px -1px #0003}.art-bottom:hover .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{transform:scale(1)}.art-controls{z-index:10;pointer-events:auto;height:var(--art-control-height);justify-content:space-between;align-items:center;display:flex;position:relative}.art-controls .art-controls-left,.art-controls .art-controls-right{height:100%;display:flex}.art-controls .art-controls-center{height:100%;flex:1;justify-content:center;align-items:center;padding:0 10px;display:none}.art-controls .art-controls-right{justify-content:flex-end}.art-controls .art-control{cursor:pointer;white-space:nowrap;opacity:var(--art-control-opacity);min-height:var(--art-control-height);min-width:var(--art-control-height);transition:opacity var(--art-transition-duration)ease;flex-shrink:0;justify-content:center;align-items:center;display:flex}.art-controls .art-control .art-icon{height:var(--art-control-icon-size);width:var(--art-control-icon-size);transform:scale(var(--art-control-icon-scale));transition:transform var(--art-transition-duration)ease}.art-controls .art-control .art-icon:active{transform:scale(calc(var(--art-control-icon-scale)*.8))}.art-controls .art-control:hover{opacity:1}.art-control-volume{position:relative}.art-control-volume .art-volume-panel{text-align:center;cursor:default;opacity:0;pointer-events:none;left:0;right:0;bottom:var(--art-control-height);width:var(--art-control-height);height:var(--art-volume-height);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;padding:0 5px;font-size:12px;display:flex;position:absolute;transform:translateY(10px)}.art-control-volume .art-volume-panel .art-volume-inner{height:100%;width:100%;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);flex-direction:column;align-items:center;gap:10px;padding:10px 0 12px;display:flex}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider{width:100%;cursor:pointer;flex:1;justify-content:center;display:flex;position:relative}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle{width:2px;border-radius:var(--art-border-radius);background-color:#ffffff40;justify-content:center;display:flex;position:relative;overflow:hidden}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle .art-volume-loaded{z-index:0;width:100%;height:100%;background-color:var(--art-theme);position:absolute;inset:0}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-indicator{width:var(--art-volume-handle-size);height:var(--art-volume-handle-size);margin-top:calc(var(--art-volume-handle-size)/-2);background-color:var(--art-theme);transition:transform var(--art-transition-duration)ease;border-radius:100%;flex-shrink:0;position:absolute;transform:scale(1)}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider:active .art-volume-indicator{transform:scale(.9)}.art-control-volume:hover .art-volume-panel{opacity:1;pointer-events:auto;transform:translateY(0)}.art-video-player .art-notice{z-index:80;width:100%;height:100%;height:auto;padding:var(--art-padding);pointer-events:none;display:none;position:absolute;inset:0 0 auto}.art-video-player .art-notice .art-notice-inner{border-radius:var(--art-border-radius);background-color:var(--art-tip-background);padding:5px;line-height:1;display:inline-flex}.art-video-player.art-notice-show .art-notice{display:flex}.art-video-player .art-contextmenus{z-index:120;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);min-width:var(--art-contextmenus-min-width);flex-direction:column;padding:5px 0;font-size:12px;display:none;position:absolute}.art-video-player .art-contextmenus .art-contextmenu{cursor:pointer;border-bottom:1px solid #ffffff1a;padding:10px 15px;display:flex}.art-video-player .art-contextmenus .art-contextmenu span{padding:0 8px}.art-video-player .art-contextmenus .art-contextmenu span:hover,.art-video-player .art-contextmenus .art-contextmenu span.art-current{color:var(--art-theme)}.art-video-player .art-contextmenus .art-contextmenu:hover{background-color:#ffffff1a}.art-video-player .art-contextmenus .art-contextmenu:last-child{border-bottom:none}.art-video-player.art-contextmenu-show .art-contextmenus{display:flex}.art-video-player .art-settings{z-index:90;border-radius:var(--art-border-radius);transform-origin:100% 100%;max-height:var(--art-settings-max-height);left:auto;right:var(--art-padding);bottom:var(--art-control-height);transform:scale(var(--art-settings-scale));transition:all var(--art-transition-duration)ease;background-color:var(--art-widget-background);flex-direction:column;display:none;position:absolute;overflow:hidden auto}.art-video-player .art-settings .art-setting-panel{flex-direction:column;display:none}.art-video-player .art-settings .art-setting-panel.art-current{display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item{cursor:pointer;transition:background-color var(--art-transition-duration)ease;justify-content:space-between;align-items:center;padding:0 5px;display:flex;overflow:hidden}.art-video-player .art-settings .art-setting-panel .art-setting-item:hover{background-color:#ffffff1a}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current{color:var(--art-theme)}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-icon-check{visibility:hidden;height:15px}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current .art-icon-check{visibility:visible}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left{justify-content:center;align-items:center;gap:5px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left .art-setting-item-left-icon{height:var(--art-settings-icon-size);width:var(--art-settings-icon-size);justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right{justify-content:center;align-items:center;gap:5px;font-size:12px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-tooltip{white-space:nowrap;color:#ffffff80}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-icon{min-width:32px;height:24px;justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-range{height:3px;width:80px;appearance:none;background-color:#fff3;outline:none}.art-video-player .art-settings .art-setting-panel .art-setting-item-back{border-bottom:1px solid #ffffff1a}.art-video-player.art-setting-show .art-settings{display:flex}.art-video-player .art-info{left:var(--art-padding);top:var(--art-padding);z-index:100;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);padding:10px;font-size:12px;display:none;position:absolute}.art-video-player .art-info .art-info-panel{flex-direction:column;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item{align-items:center;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item .art-info-title{width:100px;text-align:right}.art-video-player .art-info .art-info-panel .art-info-item .art-info-content{width:250px;text-overflow:ellipsis;white-space:nowrap;user-select:all;overflow:hidden}.art-video-player .art-info .art-info-close{cursor:pointer;position:absolute;top:5px;right:5px}.art-video-player.art-info-show .art-info{display:flex}.art-hide-cursor *{cursor:none!important}.art-video-player[data-aspect-ratio]{overflow:hidden}.art-video-player[data-aspect-ratio] .art-video{object-fit:fill;box-sizing:content-box}.art-fullscreen{--art-control-height:60px;--art-control-icon-scale:1.3}.art-fullscreen-web{--art-control-height:60px;--art-control-icon-scale:1.3;z-index:var(--art-fullscreen-web-index);width:100%;height:100%;position:fixed;inset:0}.art-mini-popup{z-index:9999;width:320px;height:180px;border-radius:var(--art-border-radius);cursor:move;user-select:none;background:#000;transition:opacity .2s;position:fixed;overflow:hidden;box-shadow:0 0 5px #00000080}.art-mini-popup svg{fill:#fff}.art-mini-popup .art-video{pointer-events:none}.art-mini-popup .art-mini-close{z-index:20;cursor:pointer;opacity:0;transition:opacity .2s;position:absolute;top:10px;right:10px}.art-mini-popup .art-mini-state{z-index:30;width:100%;height:100%;pointer-events:none;opacity:0;background-color:#00000040;justify-content:center;align-items:center;transition:opacity .2s;display:flex;position:absolute;inset:0}.art-mini-popup .art-mini-state .art-icon{opacity:.75;cursor:pointer;pointer-events:auto;transition:transform .2s;transform:scale(3)}.art-mini-popup .art-mini-state .art-icon:active{transform:scale(2.5)}.art-mini-popup.art-mini-droging{opacity:.9}.art-mini-popup:hover .art-mini-close,.art-mini-popup:hover .art-mini-state{opacity:1}.art-video-player[data-flip=horizontal] .art-video{transform:scaleX(-1)}.art-video-player[data-flip=vertical] .art-video{transform:scaleY(-1)}.art-video-player .art-layer-lock{height:var(--art-lock-size);width:var(--art-lock-size);top:50%;left:var(--art-padding);background-color:var(--art-tip-background);border-radius:50%;justify-content:center;align-items:center;display:none;position:absolute;transform:translateY(-50%)}.art-video-player .art-layer-auto-playback{border-radius:var(--art-border-radius);left:var(--art-padding);bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + 10px);background-color:var(--art-widget-background);align-items:center;gap:10px;padding:10px;line-height:1;display:none;position:absolute}.art-video-player .art-layer-auto-playback .art-auto-playback-close{cursor:pointer;justify-content:center;align-items:center;display:flex}.art-video-player .art-layer-auto-playback .art-auto-playback-close svg{width:15px;height:15px;fill:var(--art-theme)}.art-video-player .art-layer-auto-playback .art-auto-playback-jump{color:var(--art-theme);cursor:pointer}.art-video-player.art-lock .art-subtitle{bottom:var(--art-subtitle-bottom)!important}.art-video-player.art-mini-progress-bar .art-bottom,.art-video-player.art-lock .art-bottom{opacity:1;background-image:none;padding:0}.art-video-player.art-mini-progress-bar .art-bottom .art-controls,.art-video-player.art-lock .art-bottom .art-controls,.art-video-player.art-mini-progress-bar .art-bottom .art-progress,.art-video-player.art-lock .art-bottom .art-progress{transform:translateY(calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height)/4))}.art-video-player.art-mini-progress-bar .art-bottom .art-progress-indicator,.art-video-player.art-lock .art-bottom .art-progress-indicator{display:none!important}.art-video-player.art-control-show .art-layer-lock{display:flex}.art-control-selector{position:relative}.art-control-selector .art-selector-list{text-align:center;border-radius:var(--art-border-radius);opacity:0;pointer-events:none;bottom:var(--art-control-height);max-height:var(--art-selector-max-height);background-color:var(--art-widget-background);transition:all var(--art-transition-duration)ease;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden auto;transform:translateY(10px)}.art-control-selector .art-selector-list .art-selector-item{width:100%;flex-shrink:0;justify-content:center;align-items:center;padding:10px 15px;line-height:1;display:flex}.art-control-selector .art-selector-list .art-selector-item:hover{background-color:#ffffff1a}.art-control-selector .art-selector-list .art-selector-item:hover,.art-control-selector .art-selector-list .art-selector-item.art-current{color:var(--art-theme)}.art-control-selector:hover .art-selector-list{opacity:1;pointer-events:auto;transform:translateY(0)}[class*=hint--]{font-style:normal;display:inline-block;position:relative}[class*=hint--]:before,[class*=hint--]:after{visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;transition:all .3s;position:absolute;transform:translate(0,0)}[class*=hint--]:hover:before,[class*=hint--]:hover:after{visibility:visible;opacity:1;transition-delay:.1s}[class*=hint--]:before{content:"";z-index:1000001;background:0 0;border:6px solid #0000;position:absolute}[class*=hint--]:after{color:#fff;white-space:nowrap;background:#000;padding:8px 10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;line-height:12px}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label=""]:before,[aria-label=""]:after,[data-hint=""]:before,[data-hint=""]:after{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#000}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#000}.hint--left:before{border-left-color:#000}.hint--right:before{border-right-color:#000}.hint--top:before{margin-bottom:-11px}.hint--top:before,.hint--top:after{bottom:100%;left:50%}.hint--top:before{left:calc(50% - 6px)}.hint--top:after{transform:translate(-50%)}.hint--top:hover:before{transform:translateY(-8px)}.hint--top:hover:after{transform:translate(-50%)translateY(-8px)}.hint--bottom:before{margin-top:-11px}.hint--bottom:before,.hint--bottom:after{top:100%;left:50%}.hint--bottom:before{left:calc(50% - 6px)}.hint--bottom:after{transform:translate(-50%)}.hint--bottom:hover:before{transform:translateY(8px)}.hint--bottom:hover:after{transform:translate(-50%)translateY(8px)}.hint--right:before{margin-bottom:-6px;margin-left:-11px}.hint--right:after{margin-bottom:-14px}.hint--right:before,.hint--right:after{bottom:50%;left:100%}.hint--right:hover:before,.hint--right:hover:after{transform:translate(8px)}.hint--left:before{margin-bottom:-6px;margin-right:-11px}.hint--left:after{margin-bottom:-14px}.hint--left:before,.hint--left:after{bottom:50%;right:100%}.hint--left:hover:before,.hint--left:hover:after{transform:translate(-8px)}.hint--top-left:before{margin-bottom:-11px}.hint--top-left:before,.hint--top-left:after{bottom:100%;left:50%}.hint--top-left:before{left:calc(50% - 6px)}.hint--top-left:after{margin-left:12px;transform:translate(-100%)}.hint--top-left:hover:before{transform:translateY(-8px)}.hint--top-left:hover:after{transform:translate(-100%)translateY(-8px)}.hint--top-right:before{margin-bottom:-11px}.hint--top-right:before,.hint--top-right:after{bottom:100%;left:50%}.hint--top-right:before{left:calc(50% - 6px)}.hint--top-right:after{margin-left:-12px;transform:translate(0)}.hint--top-right:hover:before,.hint--top-right:hover:after{transform:translateY(-8px)}.hint--bottom-left:before{margin-top:-11px}.hint--bottom-left:before,.hint--bottom-left:after{top:100%;left:50%}.hint--bottom-left:before{left:calc(50% - 6px)}.hint--bottom-left:after{margin-left:12px;transform:translate(-100%)}.hint--bottom-left:hover:before{transform:translateY(8px)}.hint--bottom-left:hover:after{transform:translate(-100%)translateY(8px)}.hint--bottom-right:before{margin-top:-11px}.hint--bottom-right:before,.hint--bottom-right:after{top:100%;left:50%}.hint--bottom-right:before{left:calc(50% - 6px)}.hint--bottom-right:after{margin-left:-12px;transform:translate(0)}.hint--bottom-right:hover:before,.hint--bottom-right:hover:after{transform:translateY(8px)}.hint--small:after,.hint--medium:after,.hint--large:after{white-space:normal;word-wrap:break-word;line-height:1.4em}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}[class*=hint--]:after{text-shadow:0 -1px #000;box-shadow:4px 4px 8px #0000004d}.hint--error:after{text-shadow:0 -1px #592726;background-color:#b34e4d}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{text-shadow:0 -1px #6c5328;background-color:#c09854}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{text-shadow:0 -1px #1a3c4d;background-color:#3986ac}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{text-shadow:0 -1px #1a321a;background-color:#458746}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{transform:translateY(-8px)}.hint--always.hint--top:after{transform:translate(-50%)translateY(-8px)}.hint--always.hint--top-left:before{transform:translateY(-8px)}.hint--always.hint--top-left:after{transform:translate(-100%)translateY(-8px)}.hint--always.hint--top-right:before,.hint--always.hint--top-right:after{transform:translateY(-8px)}.hint--always.hint--bottom:before{transform:translateY(8px)}.hint--always.hint--bottom:after{transform:translate(-50%)translateY(8px)}.hint--always.hint--bottom-left:before{transform:translateY(8px)}.hint--always.hint--bottom-left:after{transform:translate(-100%)translateY(8px)}.hint--always.hint--bottom-right:before,.hint--always.hint--bottom-right:after{transform:translateY(8px)}.hint--always.hint--left:before,.hint--always.hint--left:after{transform:translate(-8px)}.hint--always.hint--right:before,.hint--always.hint--right:after{transform:translate(8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:before,.hint--no-animate:after{transition-duration:0s}.hint--bounce:before,.hint--bounce:after{-webkit-transition:opacity .3s,visibility .3s,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s,visibility .3s,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s,visibility .3s,transform .3s cubic-bezier(.71,1.7,.77,1.24)}.hint--no-shadow:before,.hint--no-shadow:after{text-shadow:initial;box-shadow:initial}.hint--no-arrow:before{display:none}.art-video-player.art-mobile{--art-bottom-gap:10px;--art-control-height:38px;--art-control-icon-scale:1;--art-state-size:60px;--art-settings-max-height:180px;--art-selector-max-height:180px;--art-indicator-scale:1;--art-control-opacity:1}.art-video-player.art-mobile .art-controls-left{margin-left:calc(var(--art-padding)/-1)}.art-video-player.art-mobile .art-controls-right{margin-right:calc(var(--art-padding)/-1)}'},{}],bAWi2:[function(o,h,s){h.exports=function(){function e(l){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var t=Object.prototype.toString,r=function(l){if(l===void 0)return"undefined";if(l===null)return"null";var c=e(l);if(c==="boolean")return"boolean";if(c==="string")return"string";if(c==="number")return"number";if(c==="symbol")return"symbol";if(c==="function")return function(p){return n(p)==="GeneratorFunction"}(l)?"generatorfunction":"function";if(function(p){return Array.isArray?Array.isArray(p):p instanceof Array}(l))return"array";if(function(p){return!(!p.constructor||typeof p.constructor.isBuffer!="function")&&p.constructor.isBuffer(p)}(l))return"buffer";if(function(p){try{if(typeof p.length=="number"&&typeof p.callee=="function")return!0}catch(d){if(d.message.indexOf("callee")!==-1)return!0}return!1}(l))return"arguments";if(function(p){return p instanceof Date||typeof p.toDateString=="function"&&typeof p.getDate=="function"&&typeof p.setDate=="function"}(l))return"date";if(function(p){return p instanceof Error||typeof p.message=="string"&&p.constructor&&typeof p.constructor.stackTraceLimit=="number"}(l))return"error";if(function(p){return p instanceof RegExp||typeof p.flags=="string"&&typeof p.ignoreCase=="boolean"&&typeof p.multiline=="boolean"&&typeof p.global=="boolean"}(l))return"regexp";switch(n(l)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(p){return typeof p.throw=="function"&&typeof p.return=="function"&&typeof p.next=="function"}(l))return"generator";switch(c=t.call(l)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return c.slice(8,-1).toLowerCase().replace(/\s/g,"")};function n(l){return l.constructor?l.constructor.name:null}function i(l,c){var p=2r),e.export(s,"queryAll",()=>n),e.export(s,"addClass",()=>i),e.export(s,"removeClass",()=>u),e.export(s,"hasClass",()=>a),e.export(s,"append",()=>l),e.export(s,"remove",()=>c),e.export(s,"setStyle",()=>p),e.export(s,"setStyles",()=>d),e.export(s,"getStyle",()=>y),e.export(s,"sublings",()=>m),e.export(s,"inverseClass",()=>w),e.export(s,"tooltip",()=>x),e.export(s,"isInViewport",()=>b),e.export(s,"includeFromEvent",()=>g),e.export(s,"replaceElement",()=>f),e.export(s,"createElement",()=>v),e.export(s,"getIcon",()=>k),e.export(s,"setStyleText",()=>T);var t=o("./compatibility");function r(j,M=document){return M.querySelector(j)}function n(j,M=document){return Array.from(M.querySelectorAll(j))}function i(j,M){return j.classList.add(M)}function u(j,M){return j.classList.remove(M)}function a(j,M){return j.classList.contains(M)}function l(j,M){return M instanceof Element?j.appendChild(M):j.insertAdjacentHTML("beforeend",String(M)),j.lastElementChild||j.lastChild}function c(j){return j.parentNode.removeChild(j)}function p(j,M,S){return j.style[M]=S,j}function d(j,M){for(const S in M)p(j,S,M[S]);return j}function y(j,M,S=!0){const $=window.getComputedStyle(j,null).getPropertyValue(M);return S?parseFloat($):$}function m(j){return Array.from(j.parentElement.children).filter(M=>M!==j)}function w(j,M){m(j).forEach(S=>u(S,M)),i(j,M)}function x(j,M,S="top"){t.isMobile||(j.setAttribute("aria-label",M),i(j,"hint--rounded"),i(j,`hint--${S}`))}function b(j,M=0){const S=j.getBoundingClientRect(),$=window.innerHeight||document.documentElement.clientHeight,B=window.innerWidth||document.documentElement.clientWidth,I=S.top-M<=$&&S.top+S.height+M>=0,C=S.left-M<=B+M&&S.left+S.width+M>=0;return I&&C}function g(j,M){return j.composedPath&&j.composedPath().indexOf(M)>-1}function f(j,M){return M.parentNode.replaceChild(j,M),j}function v(j){return document.createElement(j)}function k(j="",M=""){const S=v("i");return i(S,"art-icon"),i(S,`art-icon-${j}`),l(S,M),S}function T(j,M){const S=document.getElementById(j);if(S)S.textContent=M;else{const $=v("style");$.id=j,$.textContent=M,document.head.appendChild($)}}},{"./compatibility":"luXC1","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],luXC1:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"userAgent",()=>t),e.export(s,"isSafari",()=>r),e.export(s,"isWechat",()=>n),e.export(s,"isIE",()=>i),e.export(s,"isAndroid",()=>u),e.export(s,"isIOS",()=>a),e.export(s,"isIOS13",()=>l),e.export(s,"isMobile",()=>c),e.export(s,"isBrowser",()=>p);const t=typeof navigator<"u"?navigator.userAgent:"",r=/^((?!chrome|android).)*safari/i.test(t),n=/MicroMessenger/i.test(t),i=/MSIE|Trident/i.test(t),u=/android/i.test(t),a=/iPad|iPhone|iPod/i.test(t)&&!window.MSStream,l=a||t.includes("Macintosh")&&navigator.maxTouchPoints>=1,c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)||l,p=typeof window<"u"},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2nFlF":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"ArtPlayerError",()=>t),e.export(s,"errorHandle",()=>r);class t extends Error{constructor(i,u){super(i),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,u||this.constructor),this.name="ArtPlayerError"}}function r(n,i){if(!n)throw new t(i);return n}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],yqFoT:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(i){return`WEBVTT \r \r `.concat((u=i,u.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,(a,l,c)=>{let p=c.slice(0,3);return c.length===1&&(p=c+"00"),c.length===2&&(p=c+"0"),`${l},${p}`})).replace(/\{\\([ibu])\}/g,"").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/{[\s\S]*?}/g,"").concat(`\r \r `));var u}function r(i){return URL.createObjectURL(new Blob([i],{type:"text/vtt"}))}function n(i){const u=new RegExp("Dialogue:\\s\\d,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}([\\s\\S]*)$","i");function a(l=""){return l.split(/[:.]/).map((c,p,d)=>{if(p===d.length-1){if(c.length===1)return`.${c}00`;if(c.length===2)return`.${c}0`}else if(c.length===1)return(p===0?"0":":0")+c;return p===0?c:p===d.length-1?`.${c}`:`:${c}`}).join("")}return`WEBVTT ${i.split(/\r?\n/).map(l=>{const c=l.match(u);return c?{start:a(c[1].trim()),end:a(c[2].trim()),text:c[5].replace(/{[\s\S]*?}/g,"").replace(/(\\N)/g,` `).trim().split(/\r?\n/).map(p=>p.trim()).join(` `)}:null}).filter(l=>l).map((l,c)=>l?`${c+1} ${l.start} --> ${l.end} ${l.text}`:"").filter(l=>l.trim()).join(` `)}`}e.defineInteropFlag(s),e.export(s,"srtToVtt",()=>t),e.export(s,"vttToBlob",()=>r),e.export(s,"assToVtt",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1VRQn":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(n){return n.includes("?")?t(n.split("?")[0]):n.includes("#")?t(n.split("#")[0]):n.trim().toLowerCase().split(".").pop()}function r(n,i){const u=document.createElement("a");u.style.display="none",u.href=n,u.download=i,document.body.appendChild(u),u.click(),document.body.removeChild(u)}e.defineInteropFlag(s),e.export(s,"getExt",()=>t),e.export(s,"download",()=>r)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3weX2":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"def",()=>t),e.export(s,"has",()=>n),e.export(s,"get",()=>i),e.export(s,"mergeDeep",()=>u);const t=Object.defineProperty,{hasOwnProperty:r}=Object.prototype;function n(a,l){return r.call(a,l)}function i(a,l){return Object.getOwnPropertyDescriptor(a,l)}function u(...a){const l=c=>c&&typeof c=="object"&&!Array.isArray(c);return a.reduce((c,p)=>(Object.keys(p).forEach(d=>{const y=c[d],m=p[d];Array.isArray(y)&&Array.isArray(m)?c[d]=y.concat(...m):l(y)&&l(m)?c[d]=u(y,m):c[d]=m}),c),{})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7kBIx":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(i=0){return new Promise(u=>setTimeout(u,i))}function r(i,u){let a;return function(...l){clearTimeout(a),a=setTimeout(()=>(a=null,i.apply(this,l)),u)}}function n(i,u){let a=!1;return function(...l){a||(i.apply(this,l),a=!0,setTimeout(function(){a=!1},u))}}e.defineInteropFlag(s),e.export(s,"sleep",()=>t),e.export(s,"debounce",()=>r),e.export(s,"throttle",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"13atT":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(l,c,p){return Math.max(Math.min(l,Math.max(c,p)),Math.min(c,p))}function r(l){return l.charAt(0).toUpperCase()+l.slice(1)}function n(l){return["string","number"].includes(typeof l)}function i(l){if(!l)return"00:00";const c=Math.floor(l/3600),p=Math.floor((l-3600*c)/60),d=Math.floor(l-3600*c-60*p);return(c>0?[c,p,d]:[p,d]).map(y=>y<10?`0${y}`:String(y)).join(":")}function u(l){return l.replace(/[&<>'"]/g,c=>({"&":"&","<":"<",">":">","'":"'",'"':"""})[c]||c)}function a(l){const c={"&":"&","<":"<",">":">","'":"'",""":'"'},p=new RegExp(`(${Object.keys(c).join("|")})`,"g");return l.replace(p,d=>c[d]||d)}e.defineInteropFlag(s),e.export(s,"clamp",()=>t),e.export(s,"capitalize",()=>r),e.export(s,"isStringOrNumber",()=>n),e.export(s,"secondToTime",()=>i),e.export(s,"escape",()=>u),e.export(s,"unescape",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],AdvwB:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"ComponentOption",()=>p);var t=o("../utils");const r="array",n="boolean",i="string",u="number",a="object",l="function";function c(d,y,m){return(0,t.errorHandle)(y===i||y===u||d instanceof Element,`${m.join(".")} require '${i}' or 'Element' type`)}const p={html:c,disable:`?${n}`,name:`?${i}`,index:`?${u}`,style:`?${a}`,click:`?${l}`,mounted:`?${l}`,tooltip:`?${i}|${u}`,width:`?${u}`,selector:`?${r}`,onSelect:`?${l}`,switch:`?${n}`,onSwitch:`?${l}`,range:`?${r}`,onRange:`?${l}`,onChange:`?${l}`};s.default={id:i,container:c,url:i,poster:i,type:i,theme:i,lang:i,volume:u,isLive:n,muted:n,autoplay:n,autoSize:n,autoMini:n,loop:n,flip:n,playbackRate:n,aspectRatio:n,screenshot:n,setting:n,hotkey:n,pip:n,mutex:n,backdrop:n,fullscreen:n,fullscreenWeb:n,subtitleOffset:n,miniProgressBar:n,useSSR:n,playsInline:n,lock:n,fastForward:n,autoPlayback:n,autoOrientation:n,airplay:n,plugins:[l],layers:[p],contextmenu:[p],settings:[p],controls:[{...p,position:(d,y,m)=>{const w=["top","left","right"];return(0,t.errorHandle)(w.includes(d),`${m.join(".")} only accept ${w.toString()} as parameters`)}}],quality:[{default:`?${n}`,html:i,url:i}],highlight:[{time:u,text:i}],thumbnails:{url:i,number:u,column:u,width:u,height:u},subtitle:{url:i,name:i,type:i,style:a,escape:n,encoding:i,onVttLoad:l},moreVideoAttr:a,i18n:a,icons:a,cssVar:a,customType:a}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9Xmqu":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default={propertys:["audioTracks","autoplay","buffered","controller","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","mediaGroup","muted","networkState","paused","playbackRate","played","preload","readyState","seekable","seeking","src","startDate","textTracks","videoTracks","volume"],methods:["addTextTrack","canPlayType","load","play","pause"],events:["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],prototypes:["width","height","videoWidth","videoHeight","poster","webkitDecodedFrameCount","webkitDroppedFrameCount","playsInline","webkitSupportsFullscreen","webkitDisplayingFullscreen","onenterpictureinpicture","onleavepictureinpicture","disablePictureInPicture","cancelVideoFrameCallback","requestVideoFrameCallback","getVideoPlaybackQuality","requestPictureInPicture","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen"]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2gKYH":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("./utils");class t{constructor(n){this.art=n;const{option:i,constructor:u}=n;i.container instanceof Element?this.$container=i.container:(this.$container=(0,e.query)(i.container),(0,e.errorHandle)(this.$container,`No container element found by ${i.container}`));const a=this.$container.tagName.toLowerCase();(0,e.errorHandle)(a==="div",`Unsupported container element type, only support 'div' but got '${a}'`),(0,e.errorHandle)(u.instances.every(l=>l.template.$container!==this.$container),"Cannot mount multiple instances on the same dom element"),this.query=this.query.bind(this),this.$container.dataset.artId=n.id,this.init()}static get html(){return'
Player version:
5.1.1
Video url:
Video volume:
Video time:
Video duration:
Video resolution:
x
[x]
'}query(n){return(0,e.query)(n,this.$container)}init(){const{option:n}=this.art;n.useSSR||(this.$container.innerHTML=t.html),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$track=this.query("track"),this.$poster=this.query(".art-poster"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsCenter=this.query(".art-controls-center"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$contextmenu=this.query(".art-contextmenus"),n.backdrop&&(0,e.addClass)(this.$player,"art-backdrop"),e.isMobile&&(0,e.addClass)(this.$player,"art-mobile")}destroy(n){n?this.$container.innerHTML="":(0,e.addClass)(this.$player,"art-destroy")}}s.default=t},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1AdeF":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("./zh-cn"),n=e.interopDefault(r);s.default=class{constructor(i){this.art=i,this.languages={"zh-cn":n.default},this.language={},this.update(i.option.i18n)}init(){const i=this.art.option.lang.toLowerCase();this.language=this.languages[i]||{}}get(i){return this.language[i]||i}update(i){this.languages=(0,t.mergeDeep)(this.languages,i),this.init()}}},{"../utils":"h3rH9","./zh-cn":"3ZSKq","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3ZSKq":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);const e={"Video Info":"统计信息",Close:"关闭","Video Load Failed":"加载失败",Volume:"音量",Play:"播放",Pause:"暂停",Rate:"速度",Mute:"静音","Video Flip":"画面翻转",Horizontal:"水平",Vertical:"垂直",Reconnect:"重新连接","Show Setting":"显示设置","Hide Setting":"隐藏设置",Screenshot:"截图","Play Speed":"播放速度","Aspect Ratio":"画面比例",Default:"默认",Normal:"正常",Open:"打开","Switch Video":"切换","Switch Subtitle":"切换字幕",Fullscreen:"全屏","Exit Fullscreen":"退出全屏","Web Fullscreen":"网页全屏","Exit Web Fullscreen":"退出网页全屏","Mini Player":"迷你播放器","PIP Mode":"开启画中画","Exit PIP Mode":"退出画中画","PIP Not Supported":"不支持画中画","Fullscreen Not Supported":"不支持全屏","Subtitle Offset":"字幕偏移","Last Seen":"上次看到","Jump Play":"跳转播放",AirPlay:"隔空播放","AirPlay Not Available":"隔空播放不可用"};s.default=e,typeof window<"u"&&(window["artplayer-i18n-zh-cn"]=e)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"556MW":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./urlMix"),r=e.interopDefault(t),n=o("./attrMix"),i=e.interopDefault(n),u=o("./playMix"),a=e.interopDefault(u),l=o("./pauseMix"),c=e.interopDefault(l),p=o("./toggleMix"),d=e.interopDefault(p),y=o("./seekMix"),m=e.interopDefault(y),w=o("./volumeMix"),x=e.interopDefault(w),b=o("./currentTimeMix"),g=e.interopDefault(b),f=o("./durationMix"),v=e.interopDefault(f),k=o("./switchMix"),T=e.interopDefault(k),j=o("./playbackRateMix"),M=e.interopDefault(j),S=o("./aspectRatioMix"),$=e.interopDefault(S),B=o("./screenshotMix"),I=e.interopDefault(B),C=o("./fullscreenMix"),E=e.interopDefault(C),H=o("./fullscreenWebMix"),_=e.interopDefault(H),R=o("./pipMix"),D=e.interopDefault(R),Y=o("./loadedMix"),K=e.interopDefault(Y),G=o("./playedMix"),X=e.interopDefault(G),J=o("./playingMix"),Q=e.interopDefault(J),ee=o("./autoSizeMix"),te=e.interopDefault(ee),re=o("./rectMix"),ae=e.interopDefault(re),ne=o("./flipMix"),oe=e.interopDefault(ne),ie=o("./miniMix"),se=e.interopDefault(ie),N=o("./posterMix"),O=e.interopDefault(N),he=o("./autoHeightMix"),P=e.interopDefault(he),W=o("./cssVarMix"),U=e.interopDefault(W),V=o("./themeMix"),q=e.interopDefault(V),le=o("./typeMix"),fe=e.interopDefault(le),ue=o("./stateMix"),ce=e.interopDefault(ue),xe=o("./subtitleOffsetMix"),ke=e.interopDefault(xe),je=o("./airplayMix"),Te=e.interopDefault(je),Me=o("./qualityMix"),Se=e.interopDefault(Me),Ee=o("./optionInit"),Oe=e.interopDefault(Ee),Ie=o("./eventInit"),$e=e.interopDefault(Ie);s.default=class{constructor(L){(0,r.default)(L),(0,i.default)(L),(0,a.default)(L),(0,c.default)(L),(0,d.default)(L),(0,m.default)(L),(0,x.default)(L),(0,g.default)(L),(0,v.default)(L),(0,T.default)(L),(0,M.default)(L),(0,$.default)(L),(0,I.default)(L),(0,E.default)(L),(0,_.default)(L),(0,D.default)(L),(0,K.default)(L),(0,X.default)(L),(0,Q.default)(L),(0,te.default)(L),(0,ae.default)(L),(0,oe.default)(L),(0,se.default)(L),(0,O.default)(L),(0,P.default)(L),(0,U.default)(L),(0,q.default)(L),(0,fe.default)(L),(0,ce.default)(L),(0,ke.default)(L),(0,Te.default)(L),(0,Se.default)(L),(0,$e.default)(L),(0,Oe.default)(L)}}},{"./urlMix":"2mRAc","./attrMix":"2EA19","./playMix":"fD2Tc","./pauseMix":"c3LGJ","./toggleMix":"fVsAa","./seekMix":"dmROF","./volumeMix":"9jtfB","./currentTimeMix":"7NCDR","./durationMix":"YS7JL","./switchMix":"dzUqN","./playbackRateMix":"5I2mT","./aspectRatioMix":"7m6R8","./screenshotMix":"2dgtR","./fullscreenMix":"fKDW8","./fullscreenWebMix":"lNvYI","./pipMix":"8j7oC","./loadedMix":"dwVOT","./playedMix":"dDeLx","./playingMix":"ceoBp","./autoSizeMix":"lcWXX","./rectMix":"f7y88","./flipMix":"l4qt5","./miniMix":"9ZPBQ","./posterMix":"5K8hA","./autoHeightMix":"3T5ls","./cssVarMix":"6KfHs","./themeMix":"7lcSc","./typeMix":"8JgTw","./stateMix":"cebt1","./subtitleOffsetMix":"hJvIy","./airplayMix":"4Tp0U","./qualityMix":"3wZgN","./optionInit":"iPdgW","./eventInit":"3mj0J","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2mRAc":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{option:r,template:{$video:n}}=t;(0,e.def)(t,"url",{get:()=>n.src,async set(i){if(i){const u=t.url,a=r.type||(0,e.getExt)(i),l=r.customType[a];a&&l?(await(0,e.sleep)(),t.loading.show=!0,l.call(t,n,i,t)):(URL.revokeObjectURL(u),n.src=i),u!==t.url&&(t.option.url=i,t.isReady&&u&&t.once("video:canplay",()=>{t.emit("restart",i)}))}else await(0,e.sleep)(),t.loading.show=!0}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2EA19":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$video:r}}=t;(0,e.def)(t,"attr",{value(n,i){if(i===void 0)return r[n];r[n]=i}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fD2Tc:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,notice:n,option:i,constructor:{instances:u},template:{$video:a}}=t;(0,e.def)(t,"play",{value:async function(){const l=await a.play();if(n.show=r.get("Play"),t.emit("play"),i.mutex)for(let c=0;ct.playing?t.pause():t.play()})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dmROF:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{notice:r}=t;(0,e.def)(t,"seek",{set(n){t.currentTime=n,t.emit("seek",t.currentTime),t.duration&&(r.show=`${(0,e.secondToTime)(t.currentTime)} / ${(0,e.secondToTime)(t.duration)}`)}}),(0,e.def)(t,"forward",{set(n){t.seek=t.currentTime+n}}),(0,e.def)(t,"backward",{set(n){t.seek=t.currentTime-n}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9jtfB":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$video:r},i18n:n,notice:i,storage:u}=t;(0,e.def)(t,"volume",{get:()=>r.volume||0,set:a=>{r.volume=(0,e.clamp)(a,0,1),i.show=`${n.get("Volume")}: ${parseInt(100*r.volume,10)}`,r.volume!==0&&u.set("volume",r.volume)}}),(0,e.def)(t,"muted",{get:()=>r.muted,set:a=>{r.muted=a,t.emit("muted",a)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7NCDR":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$video:r}=t.template;(0,e.def)(t,"currentTime",{get:()=>r.currentTime||0,set:n=>{n=parseFloat(n),Number.isNaN(n)||(r.currentTime=(0,e.clamp)(n,0,t.duration))}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],YS7JL:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"duration",{get:()=>{const{duration:r}=t.template.$video;return r===1/0?0:r||0}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dzUqN:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){function r(n,i){return new Promise((u,a)=>{if(n===t.url)return;const{playing:l,aspectRatio:c,playbackRate:p}=t;t.pause(),t.url=n,t.notice.show="",t.once("video:error",a),t.once("video:canplay",async()=>{t.playbackRate=p,t.aspectRatio=c,t.currentTime=i,l&&await t.play(),t.notice.show="",u()})})}(0,e.def)(t,"switchQuality",{value:n=>r(n,t.currentTime)}),(0,e.def)(t,"switchUrl",{value:n=>r(n,0)}),(0,e.def)(t,"switch",{set:t.switchUrl})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5I2mT":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$video:r},i18n:n,notice:i}=t;(0,e.def)(t,"playbackRate",{get:()=>r.playbackRate,set(u){if(u){if(u===r.playbackRate)return;r.playbackRate=u,i.show=`${n.get("Rate")}: ${u===1?n.get("Normal"):`${u}x`}`}else t.playbackRate=1}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7m6R8":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,notice:n,template:{$video:i,$player:u}}=t;(0,e.def)(t,"aspectRatio",{get:()=>u.dataset.aspectRatio||"default",set(a){if(a||(a="default"),a==="default")(0,e.setStyle)(i,"width",null),(0,e.setStyle)(i,"height",null),(0,e.setStyle)(i,"margin",null),delete u.dataset.aspectRatio;else{const l=a.split(":").map(Number),{clientWidth:c,clientHeight:p}=u,d=c/p,y=l[0]/l[1];d>y?((0,e.setStyle)(i,"width",y*p+"px"),(0,e.setStyle)(i,"height","100%"),(0,e.setStyle)(i,"margin","0 auto")):((0,e.setStyle)(i,"width","100%"),(0,e.setStyle)(i,"height",c/y+"px"),(0,e.setStyle)(i,"margin","auto 0")),u.dataset.aspectRatio=a}n.show=`${r.get("Aspect Ratio")}: ${a==="default"?r.get("Default"):a}`,t.emit("aspectRatio",a)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2dgtR":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{notice:r,template:{$video:n}}=t,i=(0,e.createElement)("canvas");(0,e.def)(t,"getDataURL",{value:()=>new Promise((u,a)=>{try{i.width=n.videoWidth,i.height=n.videoHeight,i.getContext("2d").drawImage(n,0,0),u(i.toDataURL("image/png"))}catch(l){r.show=l,a(l)}})}),(0,e.def)(t,"getBlobUrl",{value:()=>new Promise((u,a)=>{try{i.width=n.videoWidth,i.height=n.videoHeight,i.getContext("2d").drawImage(n,0,0),i.toBlob(l=>{u(URL.createObjectURL(l))})}catch(l){r.show=l,a(l)}})}),(0,e.def)(t,"screenshot",{value:async()=>{const u=await t.getDataURL();return(0,e.download)(u,`artplayer_${(0,e.secondToTime)(n.currentTime)}.png`),t.emit("screenshot",u),u}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fKDW8:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../libs/screenfull"),r=e.interopDefault(t),n=o("../utils");s.default=function(i){const{i18n:u,notice:a,template:{$video:l,$player:c}}=i;i.once("video:loadedmetadata",()=>{r.default.isEnabled?(p=>{r.default.on("change",()=>{p.emit("fullscreen",r.default.isFullscreen)}),(0,n.def)(p,"fullscreen",{get:()=>r.default.isFullscreen,async set(d){d?(p.state="fullscreen",await r.default.request(c),(0,n.addClass)(c,"art-fullscreen")):(await r.default.exit(),(0,n.removeClass)(c,"art-fullscreen")),p.emit("resize")}})})(i):document.fullscreenEnabled||l.webkitSupportsFullscreen?(p=>{(0,n.def)(p,"fullscreen",{get:()=>l.webkitDisplayingFullscreen,set(d){d?(p.state="fullscreen",l.webkitEnterFullscreen(),p.emit("fullscreen",!0)):(l.webkitExitFullscreen(),p.emit("fullscreen",!1)),p.emit("resize")}})})(i):(0,n.def)(i,"fullscreen",{get:()=>!1,set(){a.show=u.get("Fullscreen Not Supported")}}),(0,n.def)(i,"fullscreen",(0,n.get)(i,"fullscreen"))})}},{"../libs/screenfull":"lUahW","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lUahW:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);const e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],t=(()=>{if(typeof document>"u")return!1;const i=e[0],u={};for(const a of e)if(a[1]in document){for(const[l,c]of a.entries())u[i[l]]=c;return u}return!1})(),r={change:t.fullscreenchange,error:t.fullscreenerror};let n={request:(i=document.documentElement,u)=>new Promise((a,l)=>{const c=()=>{n.off("change",c),a()};n.on("change",c);const p=i[t.requestFullscreen](u);p instanceof Promise&&p.then(c).catch(l)}),exit:()=>new Promise((i,u)=>{if(!n.isFullscreen)return void i();const a=()=>{n.off("change",a),i()};n.on("change",a);const l=document[t.exitFullscreen]();l instanceof Promise&&l.then(a).catch(u)}),toggle:(i,u)=>n.isFullscreen?n.exit():n.request(i,u),onchange(i){n.on("change",i)},onerror(i){n.on("error",i)},on(i,u){const a=r[i];a&&document.addEventListener(a,u,!1)},off(i,u){const a=r[i];a&&document.removeEventListener(a,u,!1)},raw:t};Object.defineProperties(n,{isFullscreen:{get:()=>!!document[t.fullscreenElement]},element:{enumerable:!0,get:()=>document[t.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>!!document[t.fullscreenEnabled]}}),t||(n={isEnabled:!1}),s.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lNvYI:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{constructor:r,template:{$container:n,$player:i}}=t;let u="";(0,e.def)(t,"fullscreenWeb",{get:()=>(0,e.hasClass)(i,"art-fullscreen-web"),set(a){a?(u=i.style.cssText,r.FULLSCREEN_WEB_IN_BODY&&(0,e.append)(document.body,i),t.state="fullscreenWeb",(0,e.setStyle)(i,"width","100%"),(0,e.setStyle)(i,"height","100%"),(0,e.addClass)(i,"art-fullscreen-web"),t.emit("fullscreenWeb",!0)):(r.FULLSCREEN_WEB_IN_BODY&&(0,e.append)(n,i),u&&(i.style.cssText=u,u=""),(0,e.removeClass)(i,"art-fullscreen-web"),t.emit("fullscreenWeb",!1)),t.emit("resize")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8j7oC":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,notice:n,template:{$video:i}}=t;document.pictureInPictureEnabled?function(u){const{template:{$video:a},proxy:l,notice:c}=u;a.disablePictureInPicture=!1,(0,e.def)(u,"pip",{get:()=>document.pictureInPictureElement,set(p){p?(u.state="pip",a.requestPictureInPicture().catch(d=>{throw c.show=d,d})):document.exitPictureInPicture().catch(d=>{throw c.show=d,d})}}),l(a,"enterpictureinpicture",()=>{u.emit("pip",!0)}),l(a,"leavepictureinpicture",()=>{u.emit("pip",!1)})}(t):i.webkitSupportsPresentationMode?function(u){const{$video:a}=u.template;a.webkitSetPresentationMode("inline"),(0,e.def)(u,"pip",{get:()=>a.webkitPresentationMode==="picture-in-picture",set(l){l?(u.state="pip",a.webkitSetPresentationMode("picture-in-picture"),u.emit("pip",!0)):(a.webkitSetPresentationMode("inline"),u.emit("pip",!1))}})}(t):(0,e.def)(t,"pip",{get:()=>!1,set(){n.show=r.get("PIP Not Supported")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dwVOT:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$video:r}=t.template;(0,e.def)(t,"loaded",{get:()=>t.loadedTime/r.duration}),(0,e.def)(t,"loadedTime",{get:()=>r.buffered.length?r.buffered.end(r.buffered.length-1):0})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dDeLx:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"played",{get:()=>t.currentTime/t.duration})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],ceoBp:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$video:r}=t.template;(0,e.def)(t,"playing",{get:()=>r.currentTime>0&&!r.paused&&!r.ended&&r.readyState>2})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lcWXX:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$container:r,$player:n,$video:i}=t.template;(0,e.def)(t,"autoSize",{value(){const{videoWidth:u,videoHeight:a}=i,{width:l,height:c}=r.getBoundingClientRect(),p=u/a;if(l/c>p){const d=c*p/l*100;(0,e.setStyle)(n,"width",`${d}%`),(0,e.setStyle)(n,"height","100%")}else{const d=l/p/c*100;(0,e.setStyle)(n,"width","100%"),(0,e.setStyle)(n,"height",`${d}%`)}t.emit("autoSize",{width:t.width,height:t.height})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f7y88:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"rect",{get:()=>t.template.$player.getBoundingClientRect()});const r=["bottom","height","left","right","top","width"];for(let n=0;nt.rect[i]})}(0,e.def)(t,"x",{get:()=>t.left+window.pageXOffset}),(0,e.def)(t,"y",{get:()=>t.top+window.pageYOffset})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],l4qt5:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$player:r},i18n:n,notice:i}=t;(0,e.def)(t,"flip",{get:()=>r.dataset.flip||"normal",set(u){u||(u="normal"),u==="normal"?delete r.dataset.flip:r.dataset.flip=u,i.show=`${n.get("Video Flip")}: ${n.get((0,e.capitalize)(u))}`,t.emit("flip",u)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9ZPBQ":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{icons:r,proxy:n,storage:i,template:{$player:u,$video:a}}=t;let l=!1,c=0,p=0;function d(){const{$mini:w}=t.template;w&&((0,e.removeClass)(u,"art-mini"),(0,e.setStyle)(w,"display","none"),u.prepend(a),t.emit("mini",!1))}function y(w,x){t.playing?((0,e.setStyle)(w,"display","none"),(0,e.setStyle)(x,"display","flex")):((0,e.setStyle)(w,"display","flex"),(0,e.setStyle)(x,"display","none"))}function m(){const{$mini:w}=t.template,x=w.getBoundingClientRect(),b=window.innerHeight-x.height-50,g=window.innerWidth-x.width-50;i.set("top",b),i.set("left",g),(0,e.setStyle)(w,"top",`${b}px`),(0,e.setStyle)(w,"left",`${g}px`)}(0,e.def)(t,"mini",{get:()=>(0,e.hasClass)(u,"art-mini"),set(w){if(w){t.state="mini",(0,e.addClass)(u,"art-mini");const x=function(){const{$mini:f}=t.template;if(f)return(0,e.append)(f,a),(0,e.setStyle)(f,"display","flex");{const v=(0,e.createElement)("div");(0,e.addClass)(v,"art-mini-popup"),(0,e.append)(document.body,v),t.template.$mini=v,(0,e.append)(v,a);const k=(0,e.append)(v,'
');(0,e.append)(k,r.close),n(k,"click",d);const T=(0,e.append)(v,'
'),j=(0,e.append)(T,r.play),M=(0,e.append)(T,r.pause);return n(j,"click",()=>t.play()),n(M,"click",()=>t.pause()),y(j,M),t.on("video:playing",()=>y(j,M)),t.on("video:pause",()=>y(j,M)),t.on("video:timeupdate",()=>y(j,M)),n(v,"mousedown",S=>{l=S.button===0,c=S.pageX,p=S.pageY}),t.on("document:mousemove",S=>{if(l){(0,e.addClass)(v,"art-mini-droging");const $=S.pageX-c,B=S.pageY-p;(0,e.setStyle)(v,"transform",`translate(${$}px, ${B}px)`)}}),t.on("document:mouseup",()=>{if(l){l=!1,(0,e.removeClass)(v,"art-mini-droging");const S=v.getBoundingClientRect();i.set("left",S.left),i.set("top",S.top),(0,e.setStyle)(v,"left",`${S.left}px`),(0,e.setStyle)(v,"top",`${S.top}px`),(0,e.setStyle)(v,"transform",null)}}),v}}(),b=i.get("top"),g=i.get("left");b&&g?((0,e.setStyle)(x,"top",`${b}px`),(0,e.setStyle)(x,"left",`${g}px`),(0,e.isInViewport)(x)||m()):m(),t.emit("mini",!0)}else d()}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5K8hA":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$poster:r}}=t;(0,e.def)(t,"poster",{get:()=>{try{return r.style.backgroundImage.match(/"(.*)"/)[1]}catch{return""}},set(n){(0,e.setStyle)(r,"backgroundImage",`url(${n})`)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3T5ls":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$container:r,$video:n}}=t;(0,e.def)(t,"autoHeight",{value(){const{clientWidth:i}=r,{videoHeight:u,videoWidth:a}=n,l=u*(i/a);(0,e.setStyle)(r,"height",l+"px"),t.emit("autoHeight",l)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6KfHs":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$player:r}=t.template;(0,e.def)(t,"cssVar",{value:(n,i)=>i?r.style.setProperty(n,i):getComputedStyle(r).getPropertyValue(n)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7lcSc":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"theme",{get:()=>t.cssVar("--art-theme"),set(r){t.cssVar("--art-theme",r)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8JgTw":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"type",{get:()=>t.option.type,set(r){t.option.type=r}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],cebt1:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const r=["mini","pip","fullscreen","fullscreenWeb"];(0,e.def)(t,"state",{get:()=>r.find(n=>t[n])||"standard",set(n){for(let i=0;i{l=[]}),(0,e.def)(t,"subtitleOffset",{get:()=>a,set(c){if(i.$track&&i.$track.track){const p=Array.from(i.$track.track.cues);a=r(c,-5,5);for(let d=0;d{switch(l.availability){case"available":a=!0;break;case"not-available":a=!1}}):a=!1,(0,e.def)(t,"airplay",{value(){a?(u.webkitShowPlaybackTargetPicker(),t.emit("airplay")):n.show=r.get("AirPlay Not Available")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3wZgN":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"quality",{set(r){const{controls:n,notice:i,i18n:u}=t,a=r.find(l=>l.default)||r[0];n.update({name:"quality",position:"right",index:10,style:{marginRight:"10px"},html:a?a.html:"",selector:r,async onSelect(l){await t.switchQuality(l.url),i.show=`${u.get("Switch Video")}: ${l.html}`}})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iPdgW:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{option:r,storage:n,template:{$video:i,$poster:u}}=t;for(const l in r.moreVideoAttr)t.attr(l,r.moreVideoAttr[l]);r.muted&&(t.muted=r.muted),r.volume&&(i.volume=(0,e.clamp)(r.volume,0,1));const a=n.get("volume");typeof a=="number"&&(i.volume=(0,e.clamp)(a,0,1)),r.poster&&(0,e.setStyle)(u,"backgroundImage",`url(${r.poster})`),r.autoplay&&(i.autoplay=r.autoplay),r.playsInline&&(i.playsInline=!0,i["webkit-playsinline"]=!0),r.theme&&(r.cssVar["--art-theme"]=r.theme);for(const l in r.cssVar)t.cssVar(l,r.cssVar[l]);t.url=r.url}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3mj0J":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../config"),r=e.interopDefault(t),n=o("../utils");s.default=function(i){const{i18n:u,notice:a,option:l,constructor:c,proxy:p,template:{$player:d,$video:y,$poster:m}}=i;let w=0;for(let x=0;x{i.emit(`video:${b.type}`,b)});i.on("video:canplay",()=>{w=0,i.loading.show=!1}),i.once("video:canplay",()=>{i.loading.show=!1,i.controls.show=!0,i.mask.show=!0,i.isReady=!0,i.emit("ready")}),i.on("video:ended",()=>{l.loop?(i.seek=0,i.play(),i.controls.show=!1,i.mask.show=!1):(i.controls.show=!0,i.mask.show=!0)}),i.on("video:error",async x=>{w{i.emit("resize"),n.isMobile&&(i.loading.show=!1,i.controls.show=!0,i.mask.show=!0)}),i.on("video:loadstart",()=>{i.loading.show=!0,i.mask.show=!1,i.controls.show=!0}),i.on("video:pause",()=>{i.controls.show=!0,i.mask.show=!0}),i.on("video:play",()=>{i.mask.show=!1,(0,n.setStyle)(m,"display","none")}),i.on("video:playing",()=>{i.mask.show=!1}),i.on("video:progress",()=>{i.playing&&(i.loading.show=!1)}),i.on("video:seeked",()=>{i.loading.show=!1,i.mask.show=!0}),i.on("video:seeking",()=>{i.loading.show=!0,i.mask.show=!1}),i.on("video:timeupdate",()=>{i.mask.show=!1}),i.on("video:waiting",()=>{i.loading.show=!0,i.mask.show=!1})}},{"../config":"9Xmqu","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"14IBq":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("../utils/component"),n=e.interopDefault(r),i=o("./fullscreen"),u=e.interopDefault(i),a=o("./fullscreenWeb"),l=e.interopDefault(a),c=o("./pip"),p=e.interopDefault(c),d=o("./playAndPause"),y=e.interopDefault(d),m=o("./progress"),w=e.interopDefault(m),x=o("./time"),b=e.interopDefault(x),g=o("./volume"),f=e.interopDefault(g),v=o("./setting"),k=e.interopDefault(v),T=o("./thumbnails"),j=e.interopDefault(T),M=o("./screenshot"),S=e.interopDefault(M),$=o("./airplay"),B=e.interopDefault($);class I extends n.default{constructor(E){super(E),this.name="control",this.timer=Date.now();const{constructor:H}=E,{$player:_}=this.art.template;E.on("mousemove",()=>{t.isMobile||(this.show=!0)}),E.on("click",()=>{t.isMobile?this.toggle():this.show=!0}),E.on("video:timeupdate",()=>{!E.isInput&&E.playing&&this.show&&Date.now()-this.timer>=H.CONTROL_HIDE_TIME&&(this.show=!1)}),E.on("control",R=>{R?((0,t.removeClass)(_,"art-hide-cursor"),(0,t.addClass)(_,"art-hover"),this.timer=Date.now()):((0,t.addClass)(_,"art-hide-cursor"),(0,t.removeClass)(_,"art-hover"))}),this.init()}init(){const{option:E}=this.art;E.isLive||this.add((0,w.default)({name:"progress",position:"top",index:10})),!E.thumbnails.url||E.isLive||t.isMobile||this.add((0,j.default)({name:"thumbnails",position:"top",index:20})),this.add((0,y.default)({name:"playAndPause",position:"left",index:10})),this.add((0,f.default)({name:"volume",position:"left",index:20})),E.isLive||this.add((0,b.default)({name:"time",position:"left",index:30})),E.quality.length&&(0,t.sleep)().then(()=>{this.art.quality=E.quality}),E.screenshot&&!t.isMobile&&this.add((0,S.default)({name:"screenshot",position:"right",index:20})),E.setting&&this.add((0,k.default)({name:"setting",position:"right",index:30})),E.pip&&this.add((0,p.default)({name:"pip",position:"right",index:40})),E.airplay&&window.WebKitPlaybackTargetAvailabilityEvent&&this.add((0,B.default)({name:"airplay",position:"right",index:50})),E.fullscreenWeb&&this.add((0,l.default)({name:"fullscreenWeb",position:"right",index:60})),E.fullscreen&&this.add((0,u.default)({name:"fullscreen",position:"right",index:70}));for(let H=0;HNumber(b.dataset.index)>=Number(y.dataset.index));w?w.insertAdjacentElement("beforebegin",y):(0,t.append)(this.$parent,y),c.html&&(0,t.append)(y,c.html),c.style&&(0,t.setStyles)(y,c.style),c.tooltip&&(0,t.tooltip)(y,c.tooltip);const x=[];if(c.click){const b=this.art.events.proxy(y,"click",g=>{g.preventDefault(),c.click.call(this.art,this,g)});x.push(b)}return c.selector&&["left","right"].includes(c.position)&&this.addSelector(c,y,x),this[p]=y,this.cache.set(p,{$ref:y,events:x,option:c}),c.mounted&&c.mounted.call(this.art,y),y}addSelector(l,c,p){const{hover:d,proxy:y}=this.art.events;(0,t.addClass)(c,"art-control-selector");const m=(0,t.createElement)("div");(0,t.addClass)(m,"art-selector-value"),(0,t.append)(m,l.html),c.innerText="",(0,t.append)(c,m);const w=l.selector.map((f,v)=>`
${f.html}
`).join(""),x=(0,t.createElement)("div");(0,t.addClass)(x,"art-selector-list"),(0,t.append)(x,w),(0,t.append)(c,x);const b=()=>{const f=(0,t.getStyle)(c,"width")/2-(0,t.getStyle)(x,"width")/2;x.style.left=`${f}px`};d(c,b);const g=y(x,"click",async f=>{const v=(f.composedPath()||[]).find(j=>(0,t.hasClass)(j,"art-selector-item"));if(!v)return;(0,t.inverseClass)(v,"art-current");const k=Number(v.dataset.index),T=l.selector[k]||{};if(m.innerText=v.innerText,l.onSelect){const j=await l.onSelect.call(this.art,T,v,f);(0,r.isStringOrNumber)(j)&&(m.innerHTML=j)}b()});p.push(g)}remove(l){const c=this.cache.get(l);(0,n.errorHandle)(c,`Can't find [${l}] from the [${this.name}]`),c.option.beforeUnmount&&c.option.beforeUnmount.call(this.art,c.$ref);for(let p=0;p({...t,tooltip:r.i18n.get("Fullscreen"),mounted:n=>{const{proxy:i,icons:u,i18n:a}=r,l=(0,e.append)(n,u.fullscreenOn),c=(0,e.append)(n,u.fullscreenOff);(0,e.setStyle)(c,"display","none"),i(n,"click",()=>{r.fullscreen=!r.fullscreen}),r.on("fullscreen",p=>{p?((0,e.tooltip)(n,a.get("Exit Fullscreen")),(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(c,"display","inline-flex")):((0,e.tooltip)(n,a.get("Fullscreen")),(0,e.setStyle)(l,"display","inline-flex"),(0,e.setStyle)(c,"display","none"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"66eEC":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("Web Fullscreen"),mounted:n=>{const{proxy:i,icons:u,i18n:a}=r,l=(0,e.append)(n,u.fullscreenWebOn),c=(0,e.append)(n,u.fullscreenWebOff);(0,e.setStyle)(c,"display","none"),i(n,"click",()=>{r.fullscreenWeb=!r.fullscreenWeb}),r.on("fullscreenWeb",p=>{p?((0,e.tooltip)(n,a.get("Exit Web Fullscreen")),(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(c,"display","inline-flex")):((0,e.tooltip)(n,a.get("Web Fullscreen")),(0,e.setStyle)(l,"display","inline-flex"),(0,e.setStyle)(c,"display","none"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kCFkA:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("PIP Mode"),mounted:n=>{const{proxy:i,icons:u,i18n:a}=r;(0,e.append)(n,u.pip),i(n,"click",()=>{r.pip=!r.pip}),r.on("pip",l=>{(0,e.tooltip)(n,a.get(l?"Exit PIP Mode":"PIP Mode"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iRhgD:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,mounted:n=>{const{proxy:i,icons:u,i18n:a}=r,l=(0,e.append)(n,u.play),c=(0,e.append)(n,u.pause);function p(){(0,e.setStyle)(l,"display","flex"),(0,e.setStyle)(c,"display","none")}function d(){(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(c,"display","flex")}(0,e.tooltip)(l,a.get("Play")),(0,e.tooltip)(c,a.get("Pause")),i(l,"click",()=>{r.play()}),i(c,"click",()=>{r.pause()}),r.playing?d():p(),r.on("video:playing",()=>{d()}),r.on("video:pause",()=>{p()})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],aBBSH:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"getPosFromEvent",()=>r),e.export(s,"setCurrentTime",()=>n);var t=o("../utils");function r(i,u){const{$progress:a}=i.template,{left:l}=a.getBoundingClientRect(),c=t.isMobile?u.touches[0].clientX:u.clientX,p=(0,t.clamp)(c-l,0,a.clientWidth),d=p/a.clientWidth*i.duration;return{second:d,time:(0,t.secondToTime)(d),width:p,percentage:(0,t.clamp)(p/a.clientWidth,0,1)}}function n(i,u){if(i.isRotate){const a=u.touches[0].clientY/i.height,l=a*i.duration;i.emit("setBar","played",a),i.seek=l}else{const{second:a,percentage:l}=r(i,u);i.emit("setBar","played",l),i.seek=a}}s.default=function(i){return u=>{const{icons:a,option:l,proxy:c}=u;return{...i,html:'
',mounted:p=>{let d=!1;const y=(0,t.query)(".art-progress-hover",p),m=(0,t.query)(".art-progress-loaded",p),w=(0,t.query)(".art-progress-played",p),x=(0,t.query)(".art-progress-highlight",p),b=(0,t.query)(".art-progress-indicator",p),g=(0,t.query)(".art-progress-tip",p);function f(v,k){v==="loaded"&&(0,t.setStyle)(m,"width",100*k+"%"),v==="played"&&((0,t.setStyle)(w,"width",100*k+"%"),(0,t.setStyle)(b,"left",100*k+"%"))}a.indicator?(0,t.append)(b,a.indicator):(0,t.setStyle)(b,"backgroundColor","var(--art-theme)"),u.on("video:loadedmetadata",()=>{for(let v=0;v`;(0,t.append)(x,j)}}),f("loaded",u.loaded),u.on("setBar",(v,k)=>{f(v,k)}),u.on("video:progress",()=>{f("loaded",u.loaded)}),u.constructor.USE_RAF?u.on("raf",()=>{f("played",u.played)}):u.on("video:timeupdate",()=>{f("played",u.played)}),u.on("video:ended",()=>{f("played",1)}),t.isMobile||(c(p,"click",v=>{v.target!==b&&n(u,v)}),c(p,"mousemove",v=>{(function(k){const{width:T}=r(u,k);(0,t.setStyle)(y,"width",`${T}px`),(0,t.setStyle)(y,"display","flex")})(v),(0,t.setStyle)(g,"display","flex"),(0,t.includeFromEvent)(v,x)?function(k){const{width:T}=r(u,k),{text:j}=k.target.dataset;g.innerHTML=j;const M=g.clientWidth;T<=M/2?(0,t.setStyle)(g,"left",0):T>p.clientWidth-M/2?(0,t.setStyle)(g,"left",p.clientWidth-M+"px"):(0,t.setStyle)(g,"left",T-M/2+"px")}(v):function(k){const{width:T,time:j}=r(u,k);g.innerHTML=j;const M=g.clientWidth;T<=M/2?(0,t.setStyle)(g,"left",0):T>p.clientWidth-M/2?(0,t.setStyle)(g,"left",p.clientWidth-M+"px"):(0,t.setStyle)(g,"left",T-M/2+"px")}(v)}),c(p,"mouseleave",()=>{(0,t.setStyle)(g,"display","none"),(0,t.setStyle)(y,"display","none")}),c(p,"mousedown",v=>{d=v.button===0}),u.on("document:mousemove",v=>{if(d){const{second:k,percentage:T}=r(u,v);f("played",T),u.seek=k}}),u.on("document:mouseup",()=>{d&&(d=!1)}))}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7H0CE":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,style:e.isMobile?{fontSize:"12px",padding:"0 5px"}:{cursor:"auto",padding:"0 10px"},mounted:n=>{function i(){const a=`${(0,e.secondToTime)(r.currentTime)} / ${(0,e.secondToTime)(r.duration)}`;a!==n.innerText&&(n.innerText=a)}i();const u=["video:loadedmetadata","video:timeupdate","video:progress"];for(let a=0;a({...t,mounted:n=>{const{proxy:i,icons:u}=r,a=(0,e.append)(n,u.volume),l=(0,e.append)(n,u.volumeClose),c=(0,e.append)(n,'
'),p=(0,e.append)(c,'
'),d=(0,e.append)(p,'
'),y=(0,e.append)(p,'
'),m=(0,e.append)(y,'
'),w=(0,e.append)(m,'
'),x=(0,e.append)(y,'
');function b(f){const{top:v,height:k}=y.getBoundingClientRect();return 1-(f.clientY-v)/k}function g(){if(r.muted||r.volume===0)(0,e.setStyle)(a,"display","none"),(0,e.setStyle)(l,"display","flex"),(0,e.setStyle)(x,"top","100%"),(0,e.setStyle)(w,"top","100%"),d.innerText=0;else{const f=100*r.volume;(0,e.setStyle)(a,"display","flex"),(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(x,"top",100-f+"%"),(0,e.setStyle)(w,"top",100-f+"%"),d.innerText=Math.floor(f)}}if(g(),r.on("video:volumechange",g),i(a,"click",()=>{r.muted=!0}),i(l,"click",()=>{r.muted=!1}),e.isMobile)(0,e.setStyle)(c,"display","none");else{let f=!1;i(y,"mousedown",v=>{f=v.button===0,r.volume=b(v)}),r.on("document:mousemove",v=>{f&&(r.muted=!1,r.volume=b(v))}),r.on("document:mouseup",()=>{f&&(f=!1)})}}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8BrCu":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("Show Setting"),mounted:n=>{const{proxy:i,icons:u,i18n:a}=r;(0,e.append)(n,u.setting),i(n,"click",()=>{r.setting.toggle(),r.setting.updateStyle()}),r.on("setting",l=>{(0,e.tooltip)(n,a.get(l?"Hide Setting":"Show Setting"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2HiWx":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils"),t=o("./progress");s.default=function(r){return n=>({...r,mounted:i=>{const{option:u,template:{$progress:a,$video:l},events:{proxy:c,loadImg:p}}=n;let d=null,y=!1,m=!1;c(a,"mousemove",async w=>{y||(y=!0,d=await p(u.thumbnails.url),m=!0),m&&((0,e.setStyle)(i,"display","flex"),function(x){const{width:b}=(0,t.getPosFromEvent)(n,x),{url:g,number:f,column:v,width:k,height:T}=u.thumbnails,j=k||d.naturalWidth/v,M=T||j/(l.videoWidth/l.videoHeight),S=a.clientWidth/f,$=Math.floor(b/S),B=Math.ceil($/v)-1,I=$%v||v-1;(0,e.setStyle)(i,"backgroundImage",`url(${g})`),(0,e.setStyle)(i,"height",`${M}px`),(0,e.setStyle)(i,"width",`${j}px`),(0,e.setStyle)(i,"backgroundPosition",`-${I*j}px -${B*M}px`),b<=j/2?(0,e.setStyle)(i,"left",0):b>a.clientWidth-j/2?(0,e.setStyle)(i,"left",a.clientWidth-j+"px"):(0,e.setStyle)(i,"left",b-j/2+"px")}(w))}),c(a,"mouseleave",()=>{(0,e.setStyle)(i,"display","none")}),n.on("hover",w=>{w||(0,e.setStyle)(i,"display","none")})}})}},{"../utils":"h3rH9","./progress":"aBBSH","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],c1GeG:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("Screenshot"),mounted:n=>{const{proxy:i,icons:u}=r;(0,e.append)(n,u.screenshot),i(n,"click",()=>{r.screenshot()})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6GRju":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("AirPlay"),mounted:n=>{const{proxy:i,icons:u}=r;(0,e.append)(n,u.airplay),i(n,"click",()=>r.airplay())}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7iUum":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("../utils/component"),n=e.interopDefault(r),i=o("./playbackRate"),u=e.interopDefault(i),a=o("./aspectRatio"),l=e.interopDefault(a),c=o("./flip"),p=e.interopDefault(c),d=o("./info"),y=e.interopDefault(d),m=o("./version"),w=e.interopDefault(m),x=o("./close"),b=e.interopDefault(x);class g extends n.default{constructor(v){super(v),this.name="contextmenu",this.$parent=v.template.$contextmenu,t.isMobile||this.init()}init(){const{option:v,proxy:k,template:{$player:T,$contextmenu:j}}=this.art;v.playbackRate&&this.add((0,u.default)({name:"playbackRate",index:10})),v.aspectRatio&&this.add((0,l.default)({name:"aspectRatio",index:20})),v.flip&&this.add((0,p.default)({name:"flip",index:30})),this.add((0,y.default)({name:"info",index:40})),this.add((0,w.default)({name:"version",index:50})),this.add((0,b.default)({name:"close",index:60}));for(let M=0;M{if(M.preventDefault(),!this.art.constructor.CONTEXTMENU)return;this.show=!0;const S=M.clientX,$=M.clientY,{height:B,width:I,left:C,top:E}=T.getBoundingClientRect(),{height:H,width:_}=j.getBoundingClientRect();let R=S-C,D=$-E;S+_>C+I&&(R=I-_),$+H>E+B&&(D=B-H),(0,t.setStyles)(j,{top:`${D}px`,left:`${R}px`})}),k(T,"click",M=>{(0,t.includeFromEvent)(M,j)||(this.show=!1)}),this.art.on("blur",()=>{this.show=!1})}}s.default=g},{"../utils":"h3rH9","../utils/component":"guki8","./playbackRate":"f1W36","./aspectRatio":"afxZC","./flip":"9jCuX","./info":"k8wIZ","./version":"bb0TU","./close":"9zTkI","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f1W36:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>{const{i18n:n,constructor:{PLAYBACK_RATE:i}}=r,u=i.map(a=>`${a===1?n.get("Normal"):a.toFixed(1)}`).join("");return{...t,html:`${n.get("Play Speed")}: ${u}`,click:(a,l)=>{const{value:c}=l.target.dataset;c&&(r.playbackRate=Number(c),a.show=!1)},mounted:a=>{const l=(0,e.query)('[data-value="1"]',a);l&&(0,e.inverseClass)(l,"art-current"),r.on("video:ratechange",()=>{const c=(0,e.queryAll)("span",a).find(p=>Number(p.dataset.value)===r.playbackRate);c&&(0,e.inverseClass)(c,"art-current")})}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],afxZC:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>{const{i18n:n,constructor:{ASPECT_RATIO:i}}=r,u=i.map(a=>`${a==="default"?n.get("Default"):a}`).join("");return{...t,html:`${n.get("Aspect Ratio")}: ${u}`,click:(a,l)=>{const{value:c}=l.target.dataset;c&&(r.aspectRatio=c,a.show=!1)},mounted:a=>{const l=(0,e.query)('[data-value="default"]',a);l&&(0,e.inverseClass)(l,"art-current"),r.on("aspectRatio",c=>{const p=(0,e.queryAll)("span",a).find(d=>d.dataset.value===c);p&&(0,e.inverseClass)(p,"art-current")})}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9jCuX":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>{const{i18n:n,constructor:{FLIP:i}}=r,u=i.map(a=>`${n.get((0,e.capitalize)(a))}`).join("");return{...t,html:`${n.get("Video Flip")}: ${u}`,click:(a,l)=>{const{value:c}=l.target.dataset;c&&(r.flip=c.toLowerCase(),a.show=!1)},mounted:a=>{const l=(0,e.query)('[data-value="normal"]',a);l&&(0,e.inverseClass)(l,"art-current"),r.on("flip",c=>{const p=(0,e.queryAll)("span",a).find(d=>d.dataset.value===c);p&&(0,e.inverseClass)(p,"art-current")})}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],k8wIZ:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){return t=>({...e,html:t.i18n.get("Video Info"),click:r=>{t.info.show=!0,r.show=!1}})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],bb0TU:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){return{...e,html:'ArtPlayer 5.1.1'}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9zTkI":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){return t=>({...e,html:t.i18n.get("Close"),click:r=>{r.show=!1}})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hD2Lg:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./utils"),r=o("./utils/component"),n=e.interopDefault(r);class i extends n.default{constructor(a){super(a),this.name="info",t.isMobile||this.init()}init(){const{proxy:a,constructor:l,template:{$infoPanel:c,$infoClose:p,$video:d}}=this.art;a(p,"click",()=>{this.show=!1});let y=null;const m=(0,t.queryAll)("[data-video]",c)||[];this.art.on("destroy",()=>clearTimeout(y)),function w(){for(let x=0;xnull,this.init(d.option.subtitle);let y=!1;d.on("video:timeupdate",()=>{if(!this.url)return;const m=this.art.template.$video.webkitDisplayingFullscreen;typeof m=="boolean"&&m!==y&&(y=m,this.createTrack(m?"subtitles":"metadata",this.url))})}get url(){return this.art.template.$track.src}set url(d){this.switch(d)}get textTrack(){return this.art.template.$video.textTracks[0]}get activeCue(){return this.textTrack.activeCues[0]}style(d,y){const{$subtitle:m}=this.art.template;return typeof d=="object"?(0,t.setStyles)(m,d):(0,t.setStyle)(m,d,y)}update(){const{$subtitle:d}=this.art.template;d.innerHTML="",this.activeCue&&(this.art.option.subtitle.escape?d.innerHTML=this.activeCue.text.split(/\r?\n/).map(y=>`
${(0,t.escape)(y)}
`).join(""):d.innerHTML=this.activeCue.text,this.art.emit("subtitleUpdate",this.activeCue.text))}async switch(d,y={}){const{i18n:m,notice:w,option:x}=this.art,b={...x.subtitle,...y,url:d},g=await this.init(b);return y.name&&(w.show=`${m.get("Switch Subtitle")}: ${y.name}`),g}createTrack(d,y){const{template:m,proxy:w,option:x}=this.art,{$video:b,$track:g}=m,f=(0,t.createElement)("track");f.default=!0,f.kind=d,f.src=y,f.label=x.subtitle.name||"Artplayer",f.track.mode="hidden",this.eventDestroy(),(0,t.remove)(g),(0,t.append)(b,f),m.$track=f,this.eventDestroy=w(this.textTrack,"cuechange",()=>this.update())}async init(d){const{notice:y,template:{$subtitle:m}}=this.art;if((0,u.default)(d,l.default.subtitle),d.url)return this.style(d.style),fetch(d.url).then(w=>w.arrayBuffer()).then(w=>{const x=new TextDecoder(d.encoding).decode(w);switch(this.art.emit("subtitleLoad",d.url),d.type||(0,t.getExt)(d.url)){case"srt":{const b=(0,t.srtToVtt)(x),g=d.onVttLoad(b);return(0,t.vttToBlob)(g)}case"ass":{const b=(0,t.assToVtt)(x),g=d.onVttLoad(b);return(0,t.vttToBlob)(g)}case"vtt":{const b=d.onVttLoad(x);return(0,t.vttToBlob)(b)}default:return d.url}}).then(w=>(m.innerHTML="",this.url===w||(URL.revokeObjectURL(this.url),this.createTrack("metadata",w),this.art.emit("subtitleSwitch",w)),w)).catch(w=>{throw m.innerHTML="",y.show=w,w})}}s.default=c},{"./utils":"h3rH9","./utils/component":"guki8","option-validator":"bAWi2","./scheme":"AdvwB","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1Epl5":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils/error"),r=o("./clickInit"),n=e.interopDefault(r),i=o("./hoverInit"),u=e.interopDefault(i),a=o("./moveInit"),l=e.interopDefault(a),c=o("./resizeInit"),p=e.interopDefault(c),d=o("./gestureInit"),y=e.interopDefault(d),m=o("./viewInit"),w=e.interopDefault(m),x=o("./documentInit"),b=e.interopDefault(x),g=o("./updateInit"),f=e.interopDefault(g);s.default=class{constructor(v){this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),this.loadImg=this.loadImg.bind(this),(0,n.default)(v,this),(0,u.default)(v,this),(0,l.default)(v,this),(0,p.default)(v,this),(0,y.default)(v,this),(0,w.default)(v,this),(0,b.default)(v,this),(0,f.default)(v,this)}proxy(v,k,T,j={}){if(Array.isArray(k))return k.map(S=>this.proxy(v,S,T,j));v.addEventListener(k,T,j);const M=()=>v.removeEventListener(k,T,j);return this.destroyEvents.push(M),M}hover(v,k,T){k&&this.proxy(v,"mouseenter",k),T&&this.proxy(v,"mouseleave",T)}loadImg(v){return new Promise((k,T)=>{let j;if(v instanceof HTMLImageElement)j=v;else{if(typeof v!="string")return T(new t.ArtPlayerError("Unable to get Image"));j=new Image,j.src=v}if(j.complete)return k(j);this.proxy(j,"load",()=>k(j)),this.proxy(j,"error",()=>T(new t.ArtPlayerError(`Failed to load Image: ${j.src}`)))})}remove(v){const k=this.destroyEvents.indexOf(v);k>-1&&(v(),this.destroyEvents.splice(k,1))}destroy(){for(let v=0;v{(0,e.includeFromEvent)(l,i)?(t.isInput=l.target.tagName==="INPUT",t.isFocus=!0,t.emit("focus",l)):(t.isInput=!1,t.isFocus=!1,t.emit("blur",l))});let a=0;r.proxy(u,"click",l=>{const c=Date.now(),{MOBILE_CLICK_PLAY:p,DBCLICK_TIME:d,MOBILE_DBCLICK_PLAY:y,DBCLICK_FULLSCREEN:m}=n;c-a<=d?(t.emit("dblclick",l),e.isMobile?!t.isLock&&y&&t.toggle():m&&(t.fullscreen=!t.fullscreen)):(t.emit("click",l),e.isMobile?!t.isLock&&p&&t.toggle():t.toggle()),a=c})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kpTJf:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t,r){const{$player:n}=t.template;r.hover(n,i=>{(0,e.addClass)(n,"art-hover"),t.emit("hover",!0,i)},i=>{(0,e.removeClass)(n,"art-hover"),t.emit("hover",!1,i)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],ef6qz:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e,t){const{$player:r}=e.template;t.proxy(r,"mousemove",n=>{e.emit("mousemove",n)})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9TXOX":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t,r){const{option:n,constructor:i}=t;t.on("resize",()=>{const{aspectRatio:a,notice:l}=t;t.state==="standard"&&n.autoSize&&t.autoSize(),t.aspectRatio=a,l.show=""});const u=(0,e.debounce)(()=>t.emit("resize"),i.RESIZE_TIME);r.proxy(window,["orientationchange","resize"],()=>u()),screen&&screen.orientation&&screen.orientation.onchange&&r.proxy(screen.orientation,"change",()=>u())}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dePMU:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils"),t=o("../control/progress");function r(n,i,u,a){var l=i-a,c=u-n,p=0;if(Math.abs(c)<2&&Math.abs(l)<2)return p;var d=function(y,m){return 180*Math.atan2(m,y)/Math.PI}(c,l);return d>=-45&&d<45?p=4:d>=45&&d<135?p=1:d>=-135&&d<-45?p=2:(d>=135&&d<=180||d>=-180&&d<-135)&&(p=3),p}s.default=function(n,i){if(e.isMobile&&!n.option.isLive){const{$video:u,$progress:a}=n.template;let l=null,c=!1,p=0,d=0,y=0;const m=b=>{if(b.touches.length===1&&!n.isLock){l===a&&(0,t.setCurrentTime)(n,b),c=!0;const{pageX:g,pageY:f}=b.touches[0];p=g,d=f,y=n.currentTime}},w=b=>{if(b.touches.length===1&&c&&n.duration){const{pageX:g,pageY:f}=b.touches[0],v=r(p,d,g,f),k=[3,4].includes(v),T=[1,2].includes(v);if(k&&!n.isRotate||T&&n.isRotate){const j=(0,e.clamp)((g-p)/n.width,-1,1),M=(0,e.clamp)((f-d)/n.height,-1,1),S=n.isRotate?M:j,$=l===u?n.constructor.TOUCH_MOVE_RATIO:1,B=(0,e.clamp)(y+n.duration*S*$,0,n.duration);n.seek=B,n.emit("setBar","played",(0,e.clamp)(B/n.duration,0,1)),n.notice.show=`${(0,e.secondToTime)(B)} / ${(0,e.secondToTime)(n.duration)}`}}},x=()=>{c&&(p=0,d=0,y=0,c=!1,l=null)};i.proxy(a,"touchstart",b=>{l=a,m(b)}),i.proxy(u,"touchstart",b=>{l=u,m(b)}),i.proxy(u,"touchmove",w),i.proxy(a,"touchmove",w),i.proxy(document,"touchend",x)}}},{"../utils":"h3rH9","../control/progress":"aBBSH","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hDyWF:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t,r){const{option:n,constructor:i,template:{$container:u}}=t,a=(0,e.throttle)(()=>{t.emit("view",(0,e.isInViewport)(u,i.SCROLL_GAP))},i.SCROLL_TIME);r.proxy(window,"scroll",()=>a()),t.on("view",l=>{n.autoMini&&(t.mini=!l)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7RjDP":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e,t){t.proxy(document,"mousemove",r=>{e.emit("document:mousemove",r)}),t.proxy(document,"mouseup",r=>{e.emit("document:mouseup",r)})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8SmBT":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){if(e.constructor.USE_RAF){let t=null;(function r(){e.playing&&e.emit("raf"),e.isDestroy||(t=requestAnimationFrame(r))})(),e.on("destroy",()=>{cancelAnimationFrame(t)})}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],eTow4:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("./utils");s.default=class{constructor(t){this.art=t,this.keys={},t.option.hotkey&&!e.isMobile&&this.init()}init(){const{proxy:t,constructor:r}=this.art;this.add(27,()=>{this.art.fullscreenWeb&&(this.art.fullscreenWeb=!1)}),this.add(32,()=>{this.art.toggle()}),this.add(37,()=>{this.art.backward=r.SEEK_STEP}),this.add(38,()=>{this.art.volume+=r.VOLUME_STEP}),this.add(39,()=>{this.art.forward=r.SEEK_STEP}),this.add(40,()=>{this.art.volume-=r.VOLUME_STEP}),t(window,"keydown",n=>{if(this.art.isFocus){const i=document.activeElement.tagName.toUpperCase(),u=document.activeElement.getAttribute("contenteditable");if(!(i==="INPUT"||i==="TEXTAREA"||u===""||u==="true"||n.altKey||n.ctrlKey||n.metaKey||n.shiftKey)){const a=this.keys[n.keyCode];if(a){n.preventDefault();for(let l=0;l{i.innerText="",(0,e.removeClass)(n,"art-notice-show")},r.NOTICE_TIME)):(0,e.removeClass)(n,"art-notice-show")}}},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2etr0":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./utils"),r=o("./utils/component"),n=e.interopDefault(r);class i extends n.default{constructor(a){super(a),this.name="mask";const{template:l,icons:c,events:p}=a,d=(0,t.append)(l.$state,c.state),y=(0,t.append)(l.$state,c.error);(0,t.setStyle)(y,"display","none"),a.on("destroy",()=>{(0,t.setStyle)(d,"display","none"),(0,t.setStyle)(y,"display",null)}),p.proxy(l.$state,"click",()=>a.play())}}s.default=i},{"./utils":"h3rH9","./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6dYSr":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("bundle-text:./loading.svg"),n=e.interopDefault(r),i=o("bundle-text:./state.svg"),u=e.interopDefault(i),a=o("bundle-text:./check.svg"),l=e.interopDefault(a),c=o("bundle-text:./play.svg"),p=e.interopDefault(c),d=o("bundle-text:./pause.svg"),y=e.interopDefault(d),m=o("bundle-text:./volume.svg"),w=e.interopDefault(m),x=o("bundle-text:./volume-close.svg"),b=e.interopDefault(x),g=o("bundle-text:./screenshot.svg"),f=e.interopDefault(g),v=o("bundle-text:./setting.svg"),k=e.interopDefault(v),T=o("bundle-text:./arrow-left.svg"),j=e.interopDefault(T),M=o("bundle-text:./arrow-right.svg"),S=e.interopDefault(M),$=o("bundle-text:./playback-rate.svg"),B=e.interopDefault($),I=o("bundle-text:./aspect-ratio.svg"),C=e.interopDefault(I),E=o("bundle-text:./config.svg"),H=e.interopDefault(E),_=o("bundle-text:./pip.svg"),R=e.interopDefault(_),D=o("bundle-text:./lock.svg"),Y=e.interopDefault(D),K=o("bundle-text:./unlock.svg"),G=e.interopDefault(K),X=o("bundle-text:./fullscreen-off.svg"),J=e.interopDefault(X),Q=o("bundle-text:./fullscreen-on.svg"),ee=e.interopDefault(Q),te=o("bundle-text:./fullscreen-web-off.svg"),re=e.interopDefault(te),ae=o("bundle-text:./fullscreen-web-on.svg"),ne=e.interopDefault(ae),oe=o("bundle-text:./switch-on.svg"),ie=e.interopDefault(oe),se=o("bundle-text:./switch-off.svg"),N=e.interopDefault(se),O=o("bundle-text:./flip.svg"),he=e.interopDefault(O),P=o("bundle-text:./error.svg"),W=e.interopDefault(P),U=o("bundle-text:./close.svg"),V=e.interopDefault(U),q=o("bundle-text:./airplay.svg"),le=e.interopDefault(q);s.default=class{constructor(fe){const ue={loading:n.default,state:u.default,play:p.default,pause:y.default,check:l.default,volume:w.default,volumeClose:b.default,screenshot:f.default,setting:k.default,pip:R.default,arrowLeft:j.default,arrowRight:S.default,playbackRate:B.default,aspectRatio:C.default,config:H.default,lock:Y.default,flip:he.default,unlock:G.default,fullscreenOff:J.default,fullscreenOn:ee.default,fullscreenWebOff:re.default,fullscreenWebOn:ne.default,switchOn:ie.default,switchOff:N.default,error:W.default,close:V.default,airplay:le.default,...fe.option.icons};for(const ce in ue)(0,t.def)(this,ce,{get:()=>(0,t.getIcon)(ce,ue[ce])})}}},{"../utils":"h3rH9","bundle-text:./loading.svg":"fY5Gt","bundle-text:./state.svg":"iNfLt","bundle-text:./check.svg":"jtE9u","bundle-text:./play.svg":"elgfY","bundle-text:./pause.svg":"eKokJ","bundle-text:./volume.svg":"hNB4y","bundle-text:./volume-close.svg":"i9vta","bundle-text:./screenshot.svg":"kB3Mf","bundle-text:./setting.svg":"3MONs","bundle-text:./arrow-left.svg":"iMCpk","bundle-text:./arrow-right.svg":"3oe4L","bundle-text:./playback-rate.svg":"liE22","bundle-text:./aspect-ratio.svg":"8HqYc","bundle-text:./config.svg":"hYAAH","bundle-text:./pip.svg":"jmNrH","bundle-text:./lock.svg":"cIqko","bundle-text:./unlock.svg":"65zy4","bundle-text:./fullscreen-off.svg":"jaJRT","bundle-text:./fullscreen-on.svg":"cRY1X","bundle-text:./fullscreen-web-off.svg":"3aVGL","bundle-text:./fullscreen-web-on.svg":"4DiVn","bundle-text:./switch-on.svg":"kwdKE","bundle-text:./switch-off.svg":"bWfXZ","bundle-text:./flip.svg":"h3zZ9","bundle-text:./error.svg":"7Oyth","bundle-text:./close.svg":"U5Jcy","bundle-text:./airplay.svg":"jK5Fx","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fY5Gt:[function(o,h,s){h.exports=''},{}],iNfLt:[function(o,h,s){h.exports=''},{}],jtE9u:[function(o,h,s){h.exports=''},{}],elgfY:[function(o,h,s){h.exports=''},{}],eKokJ:[function(o,h,s){h.exports=''},{}],hNB4y:[function(o,h,s){h.exports=''},{}],i9vta:[function(o,h,s){h.exports=''},{}],kB3Mf:[function(o,h,s){h.exports=''},{}],"3MONs":[function(o,h,s){h.exports=''},{}],iMCpk:[function(o,h,s){h.exports=''},{}],"3oe4L":[function(o,h,s){h.exports=''},{}],liE22:[function(o,h,s){h.exports=''},{}],"8HqYc":[function(o,h,s){h.exports=``},{}],hYAAH:[function(o,h,s){h.exports=''},{}],jmNrH:[function(o,h,s){h.exports=''},{}],cIqko:[function(o,h,s){h.exports=''},{}],"65zy4":[function(o,h,s){h.exports=''},{}],jaJRT:[function(o,h,s){h.exports=''},{}],cRY1X:[function(o,h,s){h.exports=''},{}],"3aVGL":[function(o,h,s){h.exports=''},{}],"4DiVn":[function(o,h,s){h.exports=''},{}],kwdKE:[function(o,h,s){h.exports=''},{}],bWfXZ:[function(o,h,s){h.exports=''},{}],h3zZ9:[function(o,h,s){h.exports=''},{}],"7Oyth":[function(o,h,s){h.exports=''},{}],U5Jcy:[function(o,h,s){h.exports=''},{}],jK5Fx:[function(o,h,s){h.exports=''},{}],bRHiA:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./flip"),r=e.interopDefault(t),n=o("./aspectRatio"),i=e.interopDefault(n),u=o("./playbackRate"),a=e.interopDefault(u),l=o("./subtitleOffset"),c=e.interopDefault(l),p=o("../utils/component"),d=e.interopDefault(p),y=o("../utils/error"),m=o("../utils");class w extends d.default{constructor(b){super(b);const{option:g,controls:f,template:{$setting:v}}=b;this.name="setting",this.$parent=v,this.option=[],this.events=[],this.cache=new Map,g.setting&&(this.init(),b.on("blur",()=>{this.show&&(this.show=!1,this.render(this.option))}),b.on("focus",k=>{const T=(0,m.includeFromEvent)(k,f.setting),j=(0,m.includeFromEvent)(k,this.$parent);!this.show||T||j||(this.show=!1,this.render(this.option))}))}static makeRecursion(b,g,f){for(let v=0;v'),j=(0,m.createElement)("div");(0,m.addClass)(j,"art-setting-item-left-icon"),(0,m.append)(j,g.arrowLeft),(0,m.append)(T,j),(0,m.append)(T,b.$parentItem.html);const M=f(k,"click",()=>this.render(b.$parentList));return this.events.push(M),k}creatItem(b,g){const{icons:f,proxy:v,constructor:k}=this.art,T=(0,m.createElement)("div");(0,m.addClass)(T,"art-setting-item"),(0,m.setStyle)(T,"height",`${k.SETTING_ITEM_HEIGHT}px`),(0,m.isStringOrNumber)(g.name)&&(T.dataset.name=g.name),(0,m.isStringOrNumber)(g.value)&&(T.dataset.value=g.value);const j=(0,m.append)(T,'
'),M=(0,m.append)(T,'
'),S=(0,m.createElement)("div");switch((0,m.addClass)(S,"art-setting-item-left-icon"),b){case"switch":case"range":(0,m.append)(S,(0,m.isStringOrNumber)(g.icon)||g.icon instanceof Element?g.icon:f.config);break;case"selector":g.selector&&g.selector.length?(0,m.append)(S,(0,m.isStringOrNumber)(g.icon)||g.icon instanceof Element?g.icon:f.config):(0,m.append)(S,f.check)}(0,m.append)(j,S),g.$icon=S,(0,m.def)(g,"icon",{configurable:!0,get:()=>S.innerHTML,set(I){(0,m.isStringOrNumber)(I)&&(S.innerHTML=I)}});const $=(0,m.createElement)("div");(0,m.addClass)($,"art-setting-item-left-text"),(0,m.append)($,g.html||""),(0,m.append)(j,$),g.$html=$,(0,m.def)(g,"html",{configurable:!0,get:()=>$.innerHTML,set(I){(0,m.isStringOrNumber)(I)&&($.innerHTML=I)}});const B=(0,m.createElement)("div");switch((0,m.addClass)(B,"art-setting-item-right-tooltip"),(0,m.append)(B,g.tooltip||""),(0,m.append)(M,B),g.$tooltip=B,(0,m.def)(g,"tooltip",{configurable:!0,get:()=>B.innerHTML,set(I){(0,m.isStringOrNumber)(I)&&(B.innerHTML=I)}}),b){case"switch":{const I=(0,m.createElement)("div");(0,m.addClass)(I,"art-setting-item-right-icon");const C=(0,m.append)(I,f.switchOn),E=(0,m.append)(I,f.switchOff);(0,m.setStyle)(g.switch?E:C,"display","none"),(0,m.append)(M,I),g.$switch=g.switch,(0,m.def)(g,"switch",{configurable:!0,get:()=>g.$switch,set(H){g.$switch=H,H?((0,m.setStyle)(E,"display","none"),(0,m.setStyle)(C,"display",null)):((0,m.setStyle)(E,"display",null),(0,m.setStyle)(C,"display","none"))}});break}case"range":{const I=(0,m.createElement)("div");(0,m.addClass)(I,"art-setting-item-right-icon");const C=(0,m.append)(I,'');C.value=g.range[0]||0,C.min=g.range[1]||0,C.max=g.range[2]||10,C.step=g.range[3]||1,(0,m.addClass)(C,"art-setting-range"),(0,m.append)(M,I),g.$range=C,(0,m.def)(g,"range",{configurable:!0,get:()=>C.valueAsNumber,set(E){C.value=Number(E)}})}break;case"selector":if(g.selector&&g.selector.length){const I=(0,m.createElement)("div");(0,m.addClass)(I,"art-setting-item-right-icon"),(0,m.append)(I,f.arrowRight),(0,m.append)(M,I)}}switch(b){case"switch":if(g.onSwitch){const I=v(T,"click",async C=>{g.switch=await g.onSwitch.call(this.art,g,T,C)});this.events.push(I)}break;case"range":if(g.$range){if(g.onRange){const I=v(g.$range,"change",async C=>{g.tooltip=await g.onRange.call(this.art,g,T,C)});this.events.push(I)}if(g.onChange){const I=v(g.$range,"input",async C=>{g.tooltip=await g.onChange.call(this.art,g,T,C)});this.events.push(I)}}break;case"selector":{const I=v(T,"click",async C=>{if(g.selector&&g.selector.length)this.render(g.selector,g.width);else{(0,m.inverseClass)(T,"art-current");for(let E=0;E$?((0,m.setStyle)(k,"left",null),(0,m.setStyle)(k,"right",null)):((0,m.setStyle)(k,"left",`${B}px`),(0,m.setStyle)(k,"right","auto"))}}render(b,g){const{constructor:f}=this.art;if(this.cache.has(b)){const v=this.cache.get(b);(0,m.inverseClass)(v,"art-current"),(0,m.setStyle)(this.$parent,"width",`${v.dataset.width}px`),(0,m.setStyle)(this.$parent,"height",`${v.dataset.height}px`),this.updateStyle(Number(v.dataset.width))}else{const v=(0,m.createElement)("div");(0,m.addClass)(v,"art-setting-panel"),v.dataset.width=g||f.SETTING_WIDTH,v.dataset.height=b.length*f.SETTING_ITEM_HEIGHT,b[0]&&b[0].$parentItem&&((0,m.append)(v,this.creatHeader(b[0])),v.dataset.height=Number(v.dataset.height)+f.SETTING_ITEM_HEIGHT);for(let k=0;ky.dataset.value===p);d&&(0,e.inverseClass)(d,"art-current")}return{width:i,name:"flip",html:r.get("Video Flip"),tooltip:r.get((0,e.capitalize)(t.flip)),icon:n.flip,selector:u.map(l=>({value:l,name:`aspect-ratio-${l}`,default:l===t.flip,html:r.get((0,e.capitalize)(l))})),onSelect:l=>(t.flip=l.value,l.html),mounted:(l,c)=>{a(l,c.$tooltip,t.flip),t.on("flip",()=>{a(l,c.$tooltip,t.flip)})}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5lAsp":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,icons:n,constructor:{SETTING_ITEM_WIDTH:i,ASPECT_RATIO:u}}=t;function a(c){return c==="default"?r.get("Default"):c}function l(c,p,d){p&&(p.innerText=a(d));const y=(0,e.queryAll)(".art-setting-item",c).find(m=>m.dataset.value===d);y&&(0,e.inverseClass)(y,"art-current")}return{width:i,name:"aspect-ratio",html:r.get("Aspect Ratio"),icon:n.aspectRatio,tooltip:a(t.aspectRatio),selector:u.map(c=>({value:c,name:`aspect-ratio-${c}`,default:c===t.aspectRatio,html:a(c)})),onSelect:c=>(t.aspectRatio=c.value,c.html),mounted:(c,p)=>{l(c,p.$tooltip,t.aspectRatio),t.on("aspectRatio",()=>{l(c,p.$tooltip,t.aspectRatio)})}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],e6hsR:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,icons:n,constructor:{SETTING_ITEM_WIDTH:i,PLAYBACK_RATE:u}}=t;function a(c){return c===1?r.get("Normal"):c.toFixed(1)}function l(c,p,d){p&&(p.innerText=a(d));const y=(0,e.queryAll)(".art-setting-item",c).find(m=>Number(m.dataset.value)===d);y&&(0,e.inverseClass)(y,"art-current")}return{width:i,name:"playback-rate",html:r.get("Play Speed"),tooltip:a(t.playbackRate),icon:n.playbackRate,selector:u.map(c=>({value:c,name:`aspect-ratio-${c}`,default:c===t.playbackRate,html:a(c)})),onSelect:c=>(t.playbackRate=c.value,c.html),mounted:(c,p)=>{l(c,p.$tooltip,t.playbackRate),t.on("video:ratechange",()=>{l(c,p.$tooltip,t.playbackRate)})}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fFNEr:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){const{i18n:t,icons:r,constructor:n}=e;return{width:n.SETTING_ITEM_WIDTH,name:"subtitle-offset",html:t.get("Subtitle Offset"),icon:r.subtitle,tooltip:"0s",range:[0,-5,5,.1],onChange:i=>(e.subtitleOffset=i.range,i.range+"s")}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f2Thp:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=class{constructor(){this.name="artplayer_settings",this.settings={}}get(e){try{const t=JSON.parse(window.localStorage.getItem(this.name))||{};return e?t[e]:t}catch{return e?this.settings[e]:this.settings}}set(e,t){try{const r=Object.assign({},this.get(),{[e]:t});window.localStorage.setItem(this.name,JSON.stringify(r))}catch{this.settings[e]=t}}del(e){try{const t=this.get();delete t[e],window.localStorage.setItem(this.name,JSON.stringify(t))}catch{delete this.settings[e]}}clear(){try{window.localStorage.removeItem(this.name)}catch{this.settings={}}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"96ThS":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("./miniProgressBar"),n=e.interopDefault(r),i=o("./autoOrientation"),u=e.interopDefault(i),a=o("./autoPlayback"),l=e.interopDefault(a),c=o("./fastForward"),p=e.interopDefault(c),d=o("./lock"),y=e.interopDefault(d);s.default=class{constructor(m){this.art=m,this.id=0;const{option:w}=m;w.miniProgressBar&&!w.isLive&&this.add(n.default),w.lock&&t.isMobile&&this.add(y.default),w.autoPlayback&&!w.isLive&&this.add(l.default),w.autoOrientation&&t.isMobile&&this.add(u.default),w.fastForward&&t.isMobile&&!w.isLive&&this.add(p.default);for(let x=0;xthis.next(m,x)):this.next(m,w)}next(m,w){const x=w&&w.name||m.name||`plugin${this.id}`;return(0,t.errorHandle)(!(0,t.has)(this,x),`Cannot add a plugin that already has the same name: ${x}`),(0,t.def)(this,x,{value:w}),this}}},{"../utils":"h3rH9","./miniProgressBar":"iBx4M","./autoOrientation":"2O9qO","./autoPlayback":"iiOc1","./fastForward":"d9NUE","./lock":"5dnKh","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iBx4M:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return t.on("control",r=>{r?(0,e.removeClass)(t.template.$player,"art-mini-progress-bar"):(0,e.addClass)(t.template.$player,"art-mini-progress-bar")}),{name:"mini-progress-bar"}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2O9qO":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{constructor:r,template:{$player:n,$video:i}}=t;return t.on("fullscreenWeb",u=>{if(u){const{videoWidth:a,videoHeight:l}=i,{clientWidth:c,clientHeight:p}=document.documentElement;(a>l&&cp)&&setTimeout(()=>{(0,e.setStyle)(n,"width",`${p}px`),(0,e.setStyle)(n,"height",`${c}px`),(0,e.setStyle)(n,"transform-origin","0 0"),(0,e.setStyle)(n,"transform",`rotate(90deg) translate(0, -${c}px)`),(0,e.addClass)(n,"art-auto-orientation"),t.isRotate=!0,t.emit("resize")},r.AUTO_ORIENTATION_TIME)}else(0,e.hasClass)(n,"art-auto-orientation")&&((0,e.removeClass)(n,"art-auto-orientation"),t.isRotate=!1,t.emit("resize"))}),t.on("fullscreen",async u=>{const a=screen.orientation.type;if(u){const{videoWidth:l,videoHeight:c}=i,{clientWidth:p,clientHeight:d}=document.documentElement;if(l>c&&pd){const y=a.startsWith("portrait")?"landscape":"portrait";await screen.orientation.lock(y),(0,e.addClass)(n,"art-auto-orientation-fullscreen")}}else(0,e.hasClass)(n,"art-auto-orientation-fullscreen")&&(await screen.orientation.lock(a),(0,e.removeClass)(n,"art-auto-orientation-fullscreen"))}),{name:"autoOrientation",get state(){return(0,e.hasClass)(n,"art-auto-orientation")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iiOc1:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,icons:n,storage:i,constructor:u,proxy:a,template:{$poster:l}}=t,c=t.layers.add({name:"auto-playback",html:'
'}),p=(0,e.query)(".art-auto-playback-last",c),d=(0,e.query)(".art-auto-playback-jump",c),y=(0,e.query)(".art-auto-playback-close",c);return t.on("video:timeupdate",()=>{if(t.playing){const m=i.get("times")||{},w=Object.keys(m);w.length>u.AUTO_PLAYBACK_MAX&&delete m[w[0]],m[t.option.id||t.option.url]=t.currentTime,i.set("times",m)}}),t.on("ready",()=>{const m=(i.get("times")||{})[t.option.id||t.option.url];m&&m>=u.AUTO_PLAYBACK_MIN&&((0,e.append)(y,n.close),(0,e.setStyle)(c,"display","flex"),p.innerText=`${r.get("Last Seen")} ${(0,e.secondToTime)(m)}`,d.innerText=r.get("Jump Play"),a(y,"click",()=>{(0,e.setStyle)(c,"display","none")}),a(d,"click",()=>{t.seek=m,t.play(),(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(c,"display","none")}),t.once("video:timeupdate",()=>{setTimeout(()=>{(0,e.setStyle)(c,"display","none")},u.AUTO_PLAYBACK_TIMEOUT)}))}),{name:"auto-playback",get times(){return i.get("times")||{}},clear:()=>i.del("times"),delete(m){const w=i.get("times")||{};return delete w[m],i.set("times",w),w}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],d9NUE:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{constructor:r,proxy:n,template:{$player:i,$video:u}}=t;let a=null,l=!1,c=1;const p=()=>{clearTimeout(a),l&&(l=!1,t.playbackRate=c,(0,e.removeClass)(i,"art-fast-forward"))};return n(u,"touchstart",d=>{d.touches.length===1&&t.playing&&!t.isLock&&(a=setTimeout(()=>{l=!0,c=t.playbackRate,t.playbackRate=r.FAST_FORWARD_VALUE,(0,e.addClass)(i,"art-fast-forward")},r.FAST_FORWARD_TIME))}),n(document,"touchmove",p),n(document,"touchend",p),{name:"fastForward",get state(){return(0,e.hasClass)(i,"art-fast-forward")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5dnKh":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{layers:r,icons:n,template:{$player:i}}=t;return r.add({name:"lock",mounted(u){const a=(0,e.append)(u,n.lock),l=(0,e.append)(u,n.unlock);(0,e.setStyle)(a,"display","none"),t.on("lock",c=>{c?((0,e.setStyle)(a,"display","inline-flex"),(0,e.setStyle)(l,"display","none")):((0,e.setStyle)(a,"display","none"),(0,e.setStyle)(l,"display","inline-flex"))})},click(){(0,e.hasClass)(i,"art-lock")?((0,e.removeClass)(i,"art-lock"),this.isLock=!1,t.emit("lock",!1)):((0,e.addClass)(i,"art-lock"),this.isLock=!0,t.emit("lock",!0))}}),{name:"lock",get state(){return(0,e.hasClass)(i,"art-lock")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}]},["abjMI"],"abjMI","parcelRequireb749")})(pe,pe.exports);var De=pe.exports;const Pe=ve(De);function ze({url:F,...A}){const o=Z.useRef(null);return Z.useEffect(()=>{new Pe({container:o.current,url:F,setting:!0,flip:!0,loop:!0,playbackRate:!0,aspectRatio:!0,subtitleOffset:!0,fullscreen:!0,fullscreenWeb:!0,screenshot:!0,autoPlayback:!0,airplay:!0,theme:"#49509e"})}),z.jsx("div",{ref:o,...A})}function qe({url:F,artist:A,caption:o,...h}){const s=Z.useRef(null);return Z.useEffect(()=>{new Re({container:s.current,audio:[{name:o,artist:A,url:F,theme:"#49509e"}]})}),z.jsx("div",{ref:s,...h})}function Ve({sources:F,author:A}){const[o,h]=Z.useState(F.map((e,t)=>t===0));function s(e){h(o.map((t,r)=>r===e))}return z.jsx("div",{role:"tablist",className:"tabs tabs-lifted",children:F.map((e,t)=>z.jsxs(Z.Fragment,{children:[z.jsx("input",{type:"radio",name:e.caption,role:"tab",className:"tab","aria-label":e.caption,checked:o[t],onChange:()=>s(t)}),z.jsxs("div",{role:"tabpanel",className:"tab-content bg-base-100 border-base-300 rounded-box w-full",children:[e.type==="video"&&z.jsx("div",{className:"w-full h-[460px]",children:z.jsx(ze,{className:"w-full h-full",url:e.url})}),e.type==="audio"&&z.jsx("div",{className:"w-full",children:z.jsx(qe,{url:e.url,artist:A?.name??"佚名",caption:e.caption})})]})]},t))})}export{Ve as default};