Files
ArtPlayer/docs/compiled/artplayer-plugin-danmuku.legacy.js
T
2025-12-13 14:11:16 +08:00

8 lines
75 KiB
JavaScript

/*!
* artplayer-plugin-danmuku.js v5.2.0
* Github: https://github.com/zhw2590582/ArtPlayer
* (c) 2017-2025 Harvey Zack
* Released under the MIT License.
*/
!function(e,t,n,r,a,i,o,s){var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},u="function"==typeof l[r]&&l[r],c=u.i||{},d=u.cache||{},p="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function f(t,n){if(!d[t]){if(!e[t]){if(a[t])return a[t];var i="function"==typeof l[r]&&l[r];if(!n&&i)return i(t,!0);if(u)return u(t,!0);if(p&&"string"==typeof t)return p(t);var o=Error("Cannot find module '"+t+"'");throw o.code="MODULE_NOT_FOUND",o}c.resolve=function(n){var r=e[t][1][n];return null!=r?r:n},c.cache={};var s=d[t]=new f.Module(t);e[t][0].call(s.exports,c,s,s.exports,l)}return d[t].exports;function c(e){var t=c.resolve(e);if(!1===t)return{};if(Array.isArray(t)){var n={__esModule:!0};return t.forEach(function(e){var t=e[0],r=e[1],a=e[2]||e[0],i=f(r);"*"===t?Object.keys(i).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:function(){return i[e]}})}):"*"===a?Object.defineProperty(n,t,{enumerable:!0,value:i}):Object.defineProperty(n,t,{enumerable:!0,get:function(){return"default"===a?i.__esModule?i.default:i:i[a]}})}),n}return f(t)}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.require=p,this.exports={}},f.modules=e,f.cache=d,f.parent=u,f.distDir=void 0,f.publicUrl=void 0,f.devServer=void 0,f.i=c,f.register=function(t,n){e[t]=[function(e,t){t.exports=n},{}]},Object.defineProperty(f,"root",{get:function(){return l[r]}}),l[r]=f;for(var h=0;h<t.length;h++)f(t[h]);if(n){var m=f(n);"object"==typeof exports&&"undefined"!=typeof module?module.exports=m:"function"==typeof define&&define.amd&&define(function(){return m})}}({l3CkF:[function(e,t,n,r){var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(n),a.export(n,"default",function(){return d});var i=e("./danmuku"),o=a.interopDefault(i),s=e("./heatmap"),l=a.interopDefault(s),u=e("./setting"),c=a.interopDefault(u);function d(e){return function(t){var n=new(0,o.default)(t,e),r=new(0,c.default)(t,n);return n.option.heatmap&&(0,l.default)(t,n,n.option.heatmap),{name:"artplayerPluginDanmuku",emit:n.emit.bind(n),load:n.load.bind(n),config:n.config.bind(n),hide:n.hide.bind(n),show:n.show.bind(n),reset:n.reset.bind(n),mount:r.mount.bind(r),get option(){return n.option},get isHide(){return n.isHide},get isStop(){return n.isStop}}}}d.icons=c.default.icons,"undefined"!=typeof window&&(window.artplayerPluginDanmuku=d)},{"./danmuku":"u1ZRC","./heatmap":"hLPK6","./setting":"jpEpW","@parcel/transformer-js/src/esmodule-helpers.js":"qpMMf"}],u1ZRC:[function(e,t,n,r){var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(n),a.export(n,"default",function(){return h});var i=e("@swc/helpers/cjs/_async_to_generator.cjs"),o=e("@swc/helpers/cjs/_class_call_check.cjs"),s=e("@swc/helpers/cjs/_create_class.cjs"),l=e("@swc/helpers/cjs/_object_spread.cjs"),u=e("@swc/helpers/cjs/_object_spread_props.cjs"),c=e("@swc/helpers/cjs/_ts_generator.cjs"),d=e("bundle-text:./worker"),p=a.interopDefault(d),f=e("./bilibili"),h=function(){"use strict";function e(t,n){(0,o._)(this,e);var r=t.constructor,a=t.template;this.utils=r.utils,this.validator=r.validator,this.$danmuku=a.$danmuku,this.$player=a.$player,this.art=t,this.queue=[],this.$refs=[],this.isStop=!1,this.isHide=!1,this.timer=null,this.index=0,this.option=e.option,this.states={wait:[],ready:[],emit:[],stop:[]},this.config(n,!0);var i=new Blob([p.default.replace("export{e as default};","")],{type:"application/javascript"});this.worker=new Worker(URL.createObjectURL(i)),this.start=this.start.bind(this),this.stop=this.stop.bind(this),this.reset=this.reset.bind(this),this.resize=this.resize.bind(this),this.destroy=this.destroy.bind(this),t.on("video:play",this.start),t.on("video:playing",this.start),t.on("video:pause",this.stop),t.on("video:waiting",this.stop),t.on("destroy",this.destroy),t.on("resize",this.resize),this.load()}return(0,s._)(e,[{key:"isRotate",get:function(){var e,t;return null==(t=this.art.plugins)||null==(e=t.autoOrientation)?void 0:e.state}},{key:"marginTop",get:function(){var t=this.utils.clamp,n=this.option.margin[0],r=this.$player.clientHeight;return"number"==typeof n?t(n,0,r):"string"==typeof n&&n.endsWith("%")?t(r*(Number.parseFloat(n)/100),0,r):e.option.margin[0]}},{key:"marginBottom",get:function(){var t=this.utils.clamp,n=this.option.margin[1],r=this.$player.clientHeight;return"number"==typeof n?t(n,0,r):"string"==typeof n&&n.endsWith("%")?t(r*(Number.parseFloat(n)/100),0,r):e.option.margin[1]}},{key:"fontSize",get:function(){var t=this.utils.clamp,n=this.$player.clientHeight,r=this.option.fontSize;return"number"==typeof r?Math.round(t(r,12,n)):"string"==typeof r&&r.endsWith("%")?Math.round(t(n*(Number.parseFloat(r)/100),12,n)):e.option.fontSize}},{key:"$ref",get:function(){var t=this.$refs.pop()||document.createElement("div");return t.style.cssText=e.cssText,t.dataset.mode="",t.dataset.id="",t.className="",t}},{key:"readys",get:function(){var e=this.art.currentTime,t=[];return this.filter("ready",function(e){return t.push(e)}),this.filter("wait",function(n){e+.1>=n.time&&n.time>=e-.1&&t.push(n)}),t}},{key:"visibles",get:function(){var e=this,t=[],n=this.$player.clientWidth,r=this.getLeft(this.$player);return this.filter("emit",function(a){var i=a.$ref.offsetTop,o=e.getLeft(a.$ref)-r,s=a.$ref.clientHeight,l=a.$ref.clientWidth,u=o+l,c=u/a.$restTime,d={};d.top=i,d.left=o,d.height=s,d.width=l,d.right=n-u,d.speed=c,d.distance=u,d.time=a.$restTime,d.mode=a.mode,t.push(d)}),t}},{key:"speed",get:function(){return this.option.synchronousPlayback&&this.art.playbackRate?this.option.speed/Number(this.art.playbackRate):this.option.speed}},{key:"load",value:function(e){return(0,i._)(function(){var t,n,r,a,i,o;return(0,c._)(this,function(s){switch(s.label){case 0:t=this.utils.errorHandle,n=[],r=e||this.option.danmuku,s.label=1;case 1:if(s.trys.push([1,13,,14]),"function"!=typeof r)return[3,3];return[4,r()];case 2:case 4:case 6:return n=s.sent(),[3,8];case 3:if(!(r instanceof Promise))return[3,5];return[4,r];case 5:if("string"!=typeof r)return[3,7];return[4,(0,f.bilibiliDanmuParseFromUrl)(r)];case 7:Array.isArray(r)&&(n=r),s.label=8;case 8:t(Array.isArray(n),"Danmuku need return an array as result"),void 0===e&&(this.reset(),this.queue=[],this.states={wait:[],ready:[],emit:[],stop:[]},this.$refs=[],this.$danmuku.textContent=""),a=0,s.label=9;case 9:if(!(a<n.length))return[3,12];return i=n[a],[4,this.emit(i)];case 10:s.sent(),s.label=11;case 11:return a++,[3,9];case 12:return this.art.emit("artplayerPluginDanmuku:loaded",this.queue),[3,14];case 13:throw o=s.sent(),this.art.emit("artplayerPluginDanmuku:error",o),o;case 14:return[2,this]}})}).call(this)}},{key:"emit",value:function(e){return(0,i._)(function(){var t,n;return(0,c._)(this,function(r){return t=this.utils.clamp,this.validator(e,{id:"?string",text:"string",mode:"?number",color:"?string",time:"?number",border:"?boolean",style:"?object"}),e.text.trim()&&(e.time?e.time=t(e.time,0,1/0):e.time=this.art.currentTime+.5,void 0===e.mode&&(e.mode=this.option.mode),void 0===e.style&&(e.style={}),void 0===e.color&&(e.color=this.option.color),[0,1,2].includes(e.mode)&&this.option.filter(e)&&(n=(0,u._)((0,l._)({},e),{$state:"wait",$index:this.index++,$ref:null,$restTime:0,$lastStartTime:0}),this.setState(n,"wait"),this.queue.push(n))),[2,this]})}).call(this)}},{key:"config",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this.utils.clamp,i=this.art.template.$controlsCenter;return(Object.keys(t).some(function(e){return JSON.stringify(n.option[e])!==JSON.stringify(t[e])})||r)&&(this.option=Object.assign({},e.option,this.option,t),this.validator(this.option,e.scheme),this.option.mode=a(this.option.mode,0,2),this.option.speed=a(this.option.speed,1,10),this.option.opacity=a(this.option.opacity,0,1),this.option.lockTime=a(this.option.lockTime,1,60),this.option.maxLength=a(this.option.maxLength,1,1e3),this.option.mount=this.option.mount||i,t.fontSize&&this.reset(),this.option.visible?this.show():this.hide(),this.art.emit("artplayerPluginDanmuku:config",this.option)),this}},{key:"getLeft",value:function(e){var t=e.getBoundingClientRect();return this.isRotate?t.top:t.left}},{key:"postMessage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(n){t.id=Date.now(),e.worker.postMessage(t),e.worker.onmessage=function(e){var r=e.data;r.id===t.id&&n(r)}})}},{key:"filter",value:function(e,t){for(var n=this.states[e]||[],r=0;r<n.length;r++)t(n[r]);return n}},{key:"setState",value:function(e,t){this.states[e.$state]=this.states[e.$state].filter(function(t){return t!==e}),e.$state=t,e.$ref&&(e.$ref.dataset.state=t),this.states[t].push(e)}},{key:"makeWait",value:function(t){this.setState(t,"wait"),t.$ref&&(t.$ref.style.cssText=e.cssText,t.$ref.style.visibility="hidden",t.$ref.style.marginLeft="0px",t.$ref.style.transform="translateX(0px)",t.$ref.style.transition="transform 0s linear 0s",this.$refs.push(t.$ref),t.$ref=null)}},{key:"update",value:function(){var e=this,t=this.utils.setStyles;return this.timer=window.requestAnimationFrame(function(){return(0,i._)(function(){var e,n,r,a,i,o,s,l,u;return(0,c._)(this,function(c){switch(c.label){case 0:if(e=this,!(this.art.playing&&!this.isHide))return[3,5];this.filter("emit",function(t){var n=(Date.now()-t.$lastStartTime)/1e3;t.$restTime-=n,t.$lastStartTime=Date.now(),t.$restTime<=0&&e.makeWait(t)}),n=this.readys,r=0,c.label=1;case 1:if(!(r<n.length))return[3,5];return a=n[r],[4,this.option.beforeVisible(a)];case 2:if(!c.sent())return[3,4];return o=(i=this.$player).clientWidth,s=i.clientHeight,a.$ref=this.$ref,a.$ref.textContent=a.text,this.$danmuku.appendChild(a.$ref),a.$ref.style.opacity=this.option.opacity,a.$ref.style.fontSize="".concat(this.fontSize,"px"),a.$ref.style.color=a.color,a.$ref.style.border=a.border?"1px solid ".concat(a.color):null,a.$ref.style.backgroundColor=a.border?"rgb(0 0 0 / 50%)":null,t(a.$ref,a.style),a.$lastStartTime=Date.now(),a.$restTime=this.speed,l=o+a.$ref.clientWidth,[4,this.postMessage({type:"getDanmuTop",target:{mode:a.mode,height:a.$ref.clientHeight,speed:l/a.$restTime},visibles:this.visibles,antiOverlap:this.option.antiOverlap,clientWidth:o,clientHeight:s,marginBottom:this.marginBottom,marginTop:this.marginTop})];case 3:if(u=c.sent().result,a.$ref)if(this.isStop||void 0===u)this.setState(a,"ready"),this.$refs.push(a.$ref),a.$ref=null;else{switch(this.setState(a,"emit"),a.$ref.style.top="".concat(u,"px"),a.$ref.style.visibility="visible",a.$ref.dataset.mode=a.mode,a.$ref.dataset.id=a.id||"",a.mode){case 0:a.$ref.style.left="".concat(o,"px"),a.$ref.style.marginLeft="0px",a.$ref.style.transform="translateX(".concat(-l,"px)"),a.$ref.style.transition="transform ".concat(a.$restTime,"s linear 0s");break;case 1:case 2:a.$ref.style.left="50%",a.$ref.style.marginLeft="-".concat(a.$ref.clientWidth/2,"px")}this.art.emit("artplayerPluginDanmuku:visible",a)}c.label=4;case 4:return r++,[3,1];case 5:return this.isStop||this.update(),[2]}})}).call(e)}),this}},{key:"resize",value:function(){var e=this.$player.clientWidth;this.filter("stop",function(t){0===t.mode&&(t.$ref.style.left="".concat(e,"px"))}),this.filter("emit",function(t){if(t.$lastStartTime=Date.now(),0===t.mode){var n=e+t.$ref.clientWidth;t.$ref.style.left="".concat(e,"px"),t.$ref.style.transform="translateX(".concat(-n,"px)"),t.$ref.style.transition="transform ".concat(t.$restTime,"s linear 0s")}})}},{key:"continue",value:function(){var e=this,t=this.$player.clientWidth;return this.filter("stop",function(n){if(e.setState(n,"emit"),n.$lastStartTime=Date.now(),0===n.mode){var r=t+n.$ref.clientWidth;n.$ref.style.transform="translateX(".concat(-r,"px)"),n.$ref.style.transition="transform ".concat(n.$restTime,"s linear 0s")}}),this}},{key:"suspend",value:function(){var e=this,t=this.$player.clientWidth;return this.filter("emit",function(n){if(e.setState(n,"stop"),0===n.mode){var r=t-(e.getLeft(n.$ref)-e.getLeft(e.$player));n.$ref.style.transform="translateX(".concat(-r,"px)"),n.$ref.style.transition="transform 0s linear 0s"}}),this}},{key:"stop",value:function(){return this.isStop=!0,this.suspend(),window.cancelAnimationFrame(this.timer),this.art.emit("artplayerPluginDanmuku:stop"),this}},{key:"start",value:function(){return this.isStop=!1,this.continue(),this.update(),this.art.emit("artplayerPluginDanmuku:start"),this}},{key:"reset",value:function(){var e=this;return this.queue.forEach(function(t){return e.makeWait(t)}),this.art.emit("artplayerPluginDanmuku:reset"),this}},{key:"show",value:function(){return this.isHide=!1,this.$danmuku.style.opacity=1,this.option.visible=!0,this.art.emit("artplayerPluginDanmuku:show"),this}},{key:"hide",value:function(){return this.isHide=!0,this.$danmuku.style.opacity=0,this.option.visible=!1,this.art.emit("artplayerPluginDanmuku:hide"),this}},{key:"destroy",value:function(){this.stop(),this.worker.terminate(),this.art.off("video:play",this.start),this.art.off("video:playing",this.start),this.art.off("video:pause",this.stop),this.art.off("video:waiting",this.stop),this.art.off("resize",this.reset),this.art.off("destroy",this.destroy),this.art.emit("artplayerPluginDanmuku:destroy")}}],[{key:"option",get:function(){return{danmuku:[],speed:5,margin:[10,"25%"],opacity:1,color:"#FFFFFF",mode:0,modes:[0,1,2],fontSize:25,antiOverlap:!0,synchronousPlayback:!1,mount:void 0,heatmap:!1,width:512,points:[],filter:function(){return!0},beforeEmit:function(){return!0},beforeVisible:function(){return!0},visible:!0,emitter:!0,maxLength:200,lockTime:5,theme:"dark",OPACITY:{},FONT_SIZE:{},MARGIN:{},SPEED:{},COLOR:[]}}},{key:"scheme",get:function(){return{danmuku:"array|function|string",speed:"number",margin:"array",opacity:"number",color:"string",mode:"number",modes:"array",fontSize:"number|string",antiOverlap:"boolean",synchronousPlayback:"boolean",mount:"?htmldivelement|string",heatmap:"object|boolean",width:"number",points:"array",filter:"function",beforeEmit:"function",beforeVisible:"function",visible:"boolean",emitter:"boolean",maxLength:"number",lockTime:"number",theme:"string",OPACITY:"object",FONT_SIZE:"object",MARGIN:"object",SPEED:"object",COLOR:"array"}}},{key:"cssText",get:function(){return'\n user-select: none;\n position: absolute;\n white-space: pre;\n pointer-events: none;\n perspective: 500px;\n display: inline-block;\n will-change: transform;\n font-weight: normal;\n line-height: 1.125;\n visibility: hidden;\n font-family: SimHei, "Microsoft JhengHei", Arial, Helvetica, sans-serif;\n text-shadow: rgb(0, 0, 0) 1px 0px 1px, rgb(0, 0, 0) 0px 1px 1px, rgb(0, 0, 0) 0px -1px 1px, rgb(0, 0, 0) -1px 0px 1px;\n '}}]),e}()},{"@swc/helpers/cjs/_async_to_generator.cjs":"cZn0e","@swc/helpers/cjs/_class_call_check.cjs":"4Uf9M","@swc/helpers/cjs/_create_class.cjs":"igUuK","@swc/helpers/cjs/_object_spread.cjs":"kyoEj","@swc/helpers/cjs/_object_spread_props.cjs":"3G1wX","@swc/helpers/cjs/_ts_generator.cjs":"eltGh","bundle-text:./worker":"7WHpt","./bilibili":"nzPZ8","@parcel/transformer-js/src/esmodule-helpers.js":"qpMMf"}],cZn0e:[function(e,t,n,r){"use strict";function a(e,t,n,r,a,i,o){try{var s=e[i](o),l=s.value}catch(e){n(e);return}s.done?t(l):Promise.resolve(l).then(r,a)}n._=function(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,l,"next",e)}function l(e){a(o,r,i,s,l,"throw",e)}s(void 0)})}}},{}],"4Uf9M":[function(e,t,n,r){"use strict";n._=function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}},{}],igUuK:[function(e,t,n,r){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n._=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}},{}],kyoEj:[function(e,t,n,r){"use strict";var a=e("9f9b8a24218ee51e");n._=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a._(e,t,n[t])})}return e}},{"9f9b8a24218ee51e":"ltU3W"}],ltU3W:[function(e,t,n,r){"use strict";n._=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},{}],"3G1wX":[function(e,t,n,r){"use strict";n._=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n.push.apply(n,r)}return n})(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}),e}},{}],eltGh:[function(e,t,n,r){"use strict";n._=e("eb260df52bffddd").__generator},{eb260df52bffddd:"6yrAu"}],"6yrAu":[function(e,t,n,r){var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(n),a.export(n,"__extends",function(){return s}),a.export(n,"__assign",function(){return l}),a.export(n,"__rest",function(){return u}),a.export(n,"__decorate",function(){return c}),a.export(n,"__param",function(){return d}),a.export(n,"__esDecorate",function(){return p}),a.export(n,"__runInitializers",function(){return f}),a.export(n,"__propKey",function(){return h}),a.export(n,"__setFunctionName",function(){return m}),a.export(n,"__metadata",function(){return y}),a.export(n,"__awaiter",function(){return g}),a.export(n,"__generator",function(){return v}),a.export(n,"__createBinding",function(){return b}),a.export(n,"__exportStar",function(){return _}),a.export(n,"__values",function(){return x}),a.export(n,"__read",function(){return k}),a.export(n,"__spread",function(){return w}),a.export(n,"__spreadArrays",function(){return j}),a.export(n,"__spreadArray",function(){return $}),a.export(n,"__await",function(){return O}),a.export(n,"__asyncGenerator",function(){return S}),a.export(n,"__asyncDelegator",function(){return M}),a.export(n,"__asyncValues",function(){return P}),a.export(n,"__makeTemplateObject",function(){return D}),a.export(n,"__importStar",function(){return A}),a.export(n,"__importDefault",function(){return q}),a.export(n,"__classPrivateFieldGet",function(){return C}),a.export(n,"__classPrivateFieldSet",function(){return F}),a.export(n,"__classPrivateFieldIn",function(){return I}),a.export(n,"__addDisposableResource",function(){return Z}),a.export(n,"__disposeResources",function(){return H}),a.export(n,"__rewriteRelativeImportExtension",function(){return L});var i=e("@swc/helpers/cjs/_type_of.cjs"),o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function c(e,t,n,r){var a,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(("undefined"==typeof Reflect?"undefined":(0,i._)(Reflect))==="object"&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(a=e[l])&&(s=(o<3?a(s):o>3?a(t,n,s):a(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function d(e,t){return function(n,r){t(n,r,e)}}function p(e,t,n,r,a,o){function s(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var l,u=r.kind,c="getter"===u?"get":"setter"===u?"set":"value",d=!t&&e?r.static?e:e.prototype:null,p=t||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),f=!1,h=n.length-1;h>=0;h--){var m={};for(var y in r)m[y]="access"===y?{}:r[y];for(var y in r.access)m.access[y]=r.access[y];m.addInitializer=function(e){if(f)throw TypeError("Cannot add initializers after decoration has completed");o.push(s(e||null))};var g=(0,n[h])("accessor"===u?{get:p.get,set:p.set}:p[c],m);if("accessor"===u){if(void 0===g)continue;if(null===g||(void 0===g?"undefined":(0,i._)(g))!=="object")throw TypeError("Object expected");(l=s(g.get))&&(p.get=l),(l=s(g.set))&&(p.set=l),(l=s(g.init))&&a.unshift(l)}else(l=s(g))&&("field"===u?a.unshift(l):p[c]=l)}d&&Object.defineProperty(d,r.name,p),f=!0}function f(e,t,n){for(var r=arguments.length>2,a=0;a<t.length;a++)n=r?t[a].call(e,n):t[a].call(e);return r?n:void 0}function h(e){return(void 0===e?"undefined":(0,i._)(e))==="symbol"?e:"".concat(e)}function m(e,t,n){return(void 0===t?"undefined":(0,i._)(t))==="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function y(e,t){if(("undefined"==typeof Reflect?"undefined":(0,i._)(Reflect))==="object"&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function g(e,t,n,r){return new(n||(n=Promise))(function(a,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})}function v(e,t){var n,r,a,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var b=Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function _(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||b(t,e,n)}function x(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function k(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(k(arguments[t]));return e}function j(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),a=0,t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r}function $(e,t,n){if(n||2==arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function S(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,a=n.apply(e,t||[]),i=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",function(e){return function(t){return Promise.resolve(t).then(e,u)}}),r[Symbol.asyncIterator]=function(){return this},r;function o(e,t){a[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||s(e,t)})},t&&(r[e]=t(r[e])))}function s(e,t){try{var n;(n=a[e](t)).value instanceof O?Promise.resolve(n.value.v).then(l,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function M(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:O(e[r](t)),done:!1}:a?a(t):t}:a}}function P(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=x(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,a){var i,o,s;i=r,o=a,s=(t=e[n](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:s})},o)})}}}function D(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},T=function(e){return(T=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=T(e),r=0;r<n.length;r++)"default"!==n[r]&&b(t,e,n[r]);return E(t,e),t}function q(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function F(e,t,n,r,a){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n}function I(e,t){if(null===t||(void 0===t?"undefined":(0,i._)(t))!=="object"&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function Z(e,t,n){if(null!=t){var r,a;if((void 0===t?"undefined":(0,i._)(t))!=="object"&&"function"!=typeof t)throw TypeError("Object expected.");if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(a=r)}if("function"!=typeof r)throw TypeError("Object not disposable.");a&&(r=function(){try{a.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function H(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var n,r=0;return function a(){for(;n=e.stack.pop();)try{if(!n.async&&1===r)return r=0,e.stack.push(n),Promise.resolve().then(a);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(a,function(e){return t(e),a()})}else r|=1}catch(e){t(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function L(e,t){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,n,r,a,i){return n?t?".jsx":".js":!r||a&&i?r+a+"."+i.toLowerCase()+"js":e}):e}n.default={__extends:s,__assign:l,__rest:u,__decorate:c,__param:d,__esDecorate:p,__runInitializers:f,__propKey:h,__setFunctionName:m,__metadata:y,__awaiter:g,__generator:v,__createBinding:b,__exportStar:_,__values:x,__read:k,__spread:w,__spreadArrays:j,__spreadArray:$,__await:O,__asyncGenerator:S,__asyncDelegator:M,__asyncValues:P,__makeTemplateObject:D,__importStar:A,__importDefault:q,__classPrivateFieldGet:C,__classPrivateFieldSet:F,__classPrivateFieldIn:I,__addDisposableResource:Z,__disposeResources:H,__rewriteRelativeImportExtension:L}},{"@swc/helpers/cjs/_type_of.cjs":"iXhRw","@parcel/transformer-js/src/esmodule-helpers.js":"qpMMf"}],iXhRw:[function(e,t,n,r){"use strict";n._=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}},{}],qpMMf:[function(e,t,n,r){n.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},n.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.exportAll=function(e,t){return Object.keys(e).forEach(function(n){"default"===n||"__esModule"===n||Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[n]}})}),t},n.export=function(e,t,n){Object.defineProperty(e,t,{enumerable:!0,get:n})}},{}],"7WHpt":[function(e,t,n,r){t.exports='!function(e,t,r,n,o,i,u,f){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},c="function"==typeof a[n]&&a[n],s=c.i||{},d=c.cache||{},l="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function p(t,r){if(!d[t]){if(!e[t]){if(o[t])return o[t];var i="function"==typeof a[n]&&a[n];if(!r&&i)return i(t,!0);if(c)return c(t,!0);if(l&&"string"==typeof t)return l(t);var u=Error("Cannot find module \'"+t+"\'");throw u.code="MODULE_NOT_FOUND",u}s.resolve=function(r){var n=e[t][1][r];return null!=n?n:r},s.cache={};var f=d[t]=new p.Module(t);e[t][0].call(f.exports,s,f,f.exports,a)}return d[t].exports;function s(e){var t=s.resolve(e);if(!1===t)return{};if(Array.isArray(t)){var r={__esModule:!0};return t.forEach(function(e){var t=e[0],n=e[1],o=e[2]||e[0],i=p(n);"*"===t?Object.keys(i).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}})}):"*"===o?Object.defineProperty(r,t,{enumerable:!0,value:i}):Object.defineProperty(r,t,{enumerable:!0,get:function(){return"default"===o?i.__esModule?i.default:i:i[o]}})}),r}return p(t)}}p.isParcelRequire=!0,p.Module=function(e){this.id=e,this.bundle=p,this.require=l,this.exports={}},p.modules=e,p.cache=d,p.parent=c,p.distDir=void 0,p.publicUrl=void 0,p.devServer=void 0,p.i=s,p.register=function(t,r){e[t]=[function(e,t){t.exports=r},{}]},Object.defineProperty(p,"root",{get:function(){return a[n]}}),a[n]=p;for(var h=0;h<t.length;h++)p(t[h]);if(r){var b=p(r);"object"==typeof exports&&"undefined"!=typeof module?module.exports=b:"function"==typeof define&&define.amd&&define(function(){return b})}}({Df7KK:[function(e,t,r,n){var o=e("@swc/helpers/cjs/_to_consumable_array.cjs");function i(e){var t=e.target,r=e.visibles,n=e.clientWidth,i=e.clientHeight,u=e.marginBottom,f=e.marginTop,a=e.antiOverlap,c=i-u,s=r.filter(function(e){return e.mode===t.mode&&e.top<=c}).sort(function(e,t){return e.top-t.top});if(0===s.length)if(2===t.mode)return c-t.height;else return f;if(s.unshift({type:"top",top:0,left:0,right:0,height:f,width:n,speed:0,distance:n}),s.push({type:"bottom",top:c,left:0,right:0,height:u,width:n,speed:0,distance:n}),2===t.mode)for(var d=s.length-2;d>=0;d-=1){var l=s[d],p=s[d+1],h=l.top+l.height;if(p.top-h>=t.height)return p.top-t.height}else for(var b=1;b<s.length;b+=1){var m=s[b],g=s[b-1],y=g.top+g.height;if(m.top-y>=t.height)return y}for(var v=[],_=1;_<s.length-1;_+=1){var w=s[_];if(v.length){var O=v[v.length-1];O[0].top===w.top?O.push(w):v.push([w])}else v.push([w])}if(a)switch(t.mode){case 0:var j=v.find(function(e){return e.every(function(e){return!(n<e.distance)&&(!!(t.speed<e.speed)||!!(e.right/(t.speed-e.speed)>e.time))})});return j&&j[0]?j[0].top:void 0;case 1:case 2:return}else{switch(t.mode){case 0:v.sort(function(e,t){var r,n,i=(r=Math).min.apply(r,(0,o._)(t.map(function(e){return e.right}))),u=(n=Math).min.apply(n,(0,o._)(e.map(function(e){return e.right})));return i*t.length-u*e.length});break;case 1:case 2:v.sort(function(e,t){var r,n,i=(r=Math).max.apply(r,(0,o._)(t.map(function(e){return e.width})));return(n=Math).max.apply(n,(0,o._)(e.map(function(e){return e.width})))*e.length-i*t.length})}return v[0][0].top}}onmessage=function(e){var t=e.data;t.id&&t.type&&globalThis.postMessage({result:(0,({getDanmuTop:i})[t.type])(t),id:t.id})}},{"@swc/helpers/cjs/_to_consumable_array.cjs":"i81N6"}],i81N6:[function(e,t,r,n){"use strict";var o=e("d402183024004bc7"),i=e("3209e2b12672cd18"),u=e("fc58adb8f1bff142"),f=e("5e213dc122a10171");r._=function(e){return o._(e)||i._(e)||f._(e)||u._()}},{d402183024004bc7:"hfQG0","3209e2b12672cd18":"fQrlQ",fc58adb8f1bff142:"fWabh","5e213dc122a10171":"fh7mx"}],hfQG0:[function(e,t,r,n){"use strict";var o=e("5bd5b10bf87fc8e");r._=function(e){if(Array.isArray(e))return o._(e)}},{"5bd5b10bf87fc8e":"1WOAB"}],"1WOAB":[function(e,t,r,n){"use strict";r._=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}},{}],fQrlQ:[function(e,t,r,n){"use strict";r._=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}},{}],fWabh:[function(e,t,r,n){"use strict";r._=function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},{}],fh7mx:[function(e,t,r,n){"use strict";var o=e("3ee51b7dc02d0c44");r._=function(e,t){if(e){if("string"==typeof e)return o._(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o._(e,t)}}},{"3ee51b7dc02d0c44":"1WOAB"}]},["Df7KK"],"Df7KK","parcelRequire4dc0",{});'},{}],nzPZ8:[function(e,t,n,r){var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(n),a.export(n,"bilibiliDanmuParseFromUrl",function(){return c});var i=e("@swc/helpers/cjs/_async_to_generator.cjs"),o=e("@swc/helpers/cjs/_ts_generator.cjs");function s(e){switch(e){case 1:case 2:case 3:default:return 0;case 4:return 2;case 5:return 1}}function l(e){if("string"!=typeof e)return[];var t=RegExp('<d[^>]*?p="(?<p>[^"]+)"[^>]*>(?<text>.*?)<\\/d>',"gs");return Array.from(e.matchAll(t)).map(function(e){var t=e.groups.p.split(",");return t.length>=8?{text:e.groups.text.trim().replaceAll("&quot;",'"').replaceAll("&apos;","'").replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&amp;","&"),time:Number(t[0]),mode:s(Number(t[1])),fontSize:Number(t[2]),color:"#".concat(Number(t[3]).toString(16)),timestamp:Number(t[4]),pool:Number(t[5]),userID:t[6],rowID:Number(t[7])}:null}).filter(Boolean)}function u(e){var t=e.data,n=t.xml,r=t.id;r&&n&&globalThis.postMessage({danmus:l(n),id:r})}function c(e){return new Promise(function(t){return(0,i._)(function(){var n,r;return(0,o._)(this,function(a){switch(a.label){case 0:return[4,fetch(e)];case 1:return[4,a.sent().text()];case 2:n=a.sent();try{var i;i=new Blob(["\n ".concat(s.toString(),"\n ").concat(l.toString(),"\n onmessage = ").concat(u.toString(),"\n ")],{type:"application/javascript"}),(r=new Worker(URL.createObjectURL(i))).onmessage=function(e){var n=e.data,a=n.danmus;n.id&&a&&(t(a),r.terminate())},r.postMessage({xml:n,id:Date.now()})}catch(e){console.error("Error parsing Bilibili Danmu:",e),t(l(n))}return[2]}})})()})}},{"@swc/helpers/cjs/_async_to_generator.cjs":"cZn0e","@swc/helpers/cjs/_ts_generator.cjs":"eltGh","@parcel/transformer-js/src/esmodule-helpers.js":"qpMMf"}],hLPK6:[function(e,t,n,r){var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(n),a.export(n,"default",function(){return l});var i=e("@swc/helpers/cjs/_to_consumable_array.cjs"),o=e("@swc/helpers/cjs/_type_of.cjs"),s=function(e,t,n,r,a){return(e-t)*(a-r)/(n-t)+r};function l(e,t,n){var r=e.constructor.utils.query;e.controls.add({name:"heatmap",position:"top",html:"",style:{position:"absolute",top:"-100px",left:"0px",right:"0px",height:"100px",width:"100%",pointerEvents:"none"},mounted:function(a){var l=null,u=null;function c(){var c,d,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(l=null,u=null,a.innerHTML="",e.duration&&!e.option.isLive){var f={w:a.offsetWidth,h:a.offsetHeight},h={xMin:0,xMax:f.w,yMin:0,yMax:128,scale:.25,opacity:.2,minHeight:Math.floor(.05*f.h),sampling:Math.floor(f.w/100),smoothing:.2,flattening:.2};(void 0===n?"undefined":(0,o._)(n))==="object"&&Object.assign(h,n);var m=[];if(Array.isArray(p)&&p.length)m=(0,i._)(p);else for(var y=function(e){var n=t.queue.filter(function(t){var n=t.time;return n>e*g&&n<=(e+h.sampling)*g}).length;m.push([e,n])},g=e.duration/f.w,v=0;v<=f.w;v+=h.sampling)y(v);if(0!==m.length){var b=m[m.length-1],_=b[0],x=b[1];_!==f.w&&m.push([f.w,x]);for(var k=m.map(function(e){return e[1]}),w=((c=Math).min.apply(c,(0,i._)(k))+(d=Math).max.apply(d,(0,i._)(k)))/2,j=0;j<m.length;j++){var $=m[j],O=$[1];$[1]=O*(O>w?1+h.scale:1-h.scale)+h.minHeight}var S=function(e,t,n,r){var a,i,o=t||e,l=n||e,u={length:Math.sqrt(Math.pow(a=l[0]-o[0],2)+Math.pow(i=l[1]-o[1],2)),angle:Math.atan2(i,a)},c=s(Math.cos(u.angle)*h.flattening,0,1,1,0),d=u.angle*c+(r?Math.PI:0),p=u.length*h.smoothing;return[e[0]+Math.cos(d)*p,e[1]+Math.sin(d)*p]},M=function(e,t,n){var r=S(n[t-1],n[t-2],e),a=S(e,n[t-1],n[t+1],!0),i=t===n.length-1?" z":"";return"C ".concat(r[0],",").concat(r[1]," ").concat(a[0],",").concat(a[1]," ").concat(e[0],",").concat(e[1]).concat(i)},P=m.map(function(e){return[s(e[0],h.xMin,h.xMax,0,f.w),s(e[1],h.yMin,h.yMax,f.h,0)]}).reduce(function(e,t,n,r){return 0===n?"M ".concat(r[r.length-1][0],",").concat(f.h," L ").concat(t[0],",").concat(f.h," L ").concat(t[0],",").concat(t[1]):"".concat(e," ").concat(M(t,n,r))},"");a.innerHTML='\n<svg viewBox="0 0 '.concat(f.w," ").concat(f.h,'">\n<defs>\n<linearGradient id="heatmap-solids" x1="0%" y1="0%" x2="100%" y2="0%">\n<stop offset="0%" style="stop-color:var(--art-theme);stop-opacity:').concat(h.opacity,'" />\n<stop offset="0%" style="stop-color:var(--art-theme);stop-opacity:').concat(h.opacity,'" id="heatmap-start" />\n<stop offset="0%" style="stop-color:var(--art-progress-color);stop-opacity:1" id="heatmap-stop" />\n<stop offset="100%" style="stop-color:var(--art-progress-color);stop-opacity:1" />\n</linearGradient>\n</defs>\n<path fill="url(#heatmap-solids)" d="').concat(P,'"></path>\n</svg>\n '),l=r("#heatmap-start",a),u=r("#heatmap-stop",a),l.setAttribute("offset","".concat(100*e.played,"%")),u.setAttribute("offset","".concat(100*e.played,"%"))}}}e.on("video:timeupdate",function(){l&&u&&(l.setAttribute("offset","".concat(100*e.played,"%")),u.setAttribute("offset","".concat(100*e.played,"%")))}),e.on("setBar",function(e,t){l&&u&&"played"===e&&(l.setAttribute("offset","".concat(100*t,"%")),u.setAttribute("offset","".concat(100*t,"%")))}),e.on("ready",function(){return c()}),e.on("resize",function(){return c()}),e.on("artplayerPluginDanmuku:loaded",function(){return c()}),e.on("artplayerPluginDanmuku:points",function(e){return c(e)})}})}},{"@swc/helpers/cjs/_to_consumable_array.cjs":"i81N6","@swc/helpers/cjs/_type_of.cjs":"iXhRw","@parcel/transformer-js/src/esmodule-helpers.js":"qpMMf"}],i81N6:[function(e,t,n,r){"use strict";var a=e("d402183024004bc7"),i=e("3209e2b12672cd18"),o=e("fc58adb8f1bff142"),s=e("5e213dc122a10171");n._=function(e){return a._(e)||i._(e)||s._(e)||o._()}},{d402183024004bc7:"hfQG0","3209e2b12672cd18":"fQrlQ",fc58adb8f1bff142:"fWabh","5e213dc122a10171":"fh7mx"}],hfQG0:[function(e,t,n,r){"use strict";var a=e("5bd5b10bf87fc8e");n._=function(e){if(Array.isArray(e))return a._(e)}},{"5bd5b10bf87fc8e":"1WOAB"}],"1WOAB":[function(e,t,n,r){"use strict";n._=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}},{}],fQrlQ:[function(e,t,n,r){"use strict";n._=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}},{}],fWabh:[function(e,t,n,r){"use strict";n._=function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},{}],fh7mx:[function(e,t,n,r){"use strict";var a=e("3ee51b7dc02d0c44");n._=function(e,t){if(e){if("string"==typeof e)return a._(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a._(e,t)}}},{"3ee51b7dc02d0c44":"1WOAB"}],jpEpW:[function(e,t,n,r){var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(n),a.export(n,"default",function(){return Z});var i=e("@swc/helpers/cjs/_async_to_generator.cjs"),o=e("@swc/helpers/cjs/_class_call_check.cjs"),s=e("@swc/helpers/cjs/_create_class.cjs"),l=e("@swc/helpers/cjs/_object_spread.cjs"),u=e("@swc/helpers/cjs/_object_spread_props.cjs"),c=e("@swc/helpers/cjs/_to_consumable_array.cjs"),d=e("@swc/helpers/cjs/_ts_generator.cjs"),p=e("bundle-text:./img/check_off.svg"),f=a.interopDefault(p),h=e("bundle-text:./img/check_on.svg"),m=a.interopDefault(h),y=e("bundle-text:./img/config.svg"),g=a.interopDefault(y),v=e("bundle-text:./img/mode_0_off.svg"),b=a.interopDefault(v),_=e("bundle-text:./img/mode_0_on.svg"),x=a.interopDefault(_),k=e("bundle-text:./img/mode_1_off.svg"),w=a.interopDefault(k),j=e("bundle-text:./img/mode_1_on.svg"),$=a.interopDefault(j),O=e("bundle-text:./img/mode_2_off.svg"),S=a.interopDefault(O),M=e("bundle-text:./img/mode_2_on.svg"),P=a.interopDefault(M),D=e("bundle-text:./img/off.svg"),E=a.interopDefault(D),T=e("bundle-text:./img/on.svg"),A=a.interopDefault(T),q=e("bundle-text:./img/style.svg"),C=a.interopDefault(q),F=e("bundle-text:./style.less"),I=a.interopDefault(F),Z=function(){"use strict";function e(t,n){var r=this;(0,o._)(this,e),this.art=t,this.danmuku=n,this.utils=t.constructor.utils;var a=this.utils.setStyle,i=t.template.$controlsCenter;a(i,"display","flex"),this.template={$controlsCenter:i,$mount:i,$danmuku:null,$toggle:null,$config:null,$configPanel:null,$configModes:null,$style:null,$stylePanel:null,$styleModes:null,$colors:null,$opacitySlider:null,$opacityValue:null,$marginSlider:null,$marginValue:null,$fontSizeSlider:null,$fontSizeValue:null,$speedSlider:null,$speedValue:null,$input:null,$send:null},this.slider={opacity:null,margin:null,fontSize:null,speed:null},this.emitting=!1,this.isLock=!1,this.timer=null,this.createTemplate(),this.createSliders(),this.createEvents(),this.mount(this.option.mount),t.on("resize",function(){return r.resize()}),t.on("fullscreen",function(e){return r.onFullscreen(e)}),t.on("fullscreenWeb",function(e){return r.onFullscreen(e)}),t.proxy(this.template.$config,"mouseenter",function(){r.onMouseEnter({$control:r.template.$config,$panel:r.template.$configPanel})}),t.proxy(this.template.$style,"mouseenter",function(){r.onMouseEnter({$control:r.template.$style,$panel:r.template.$stylePanel})})}return(0,s._)(e,[{key:"option",get:function(){return this.danmuku.option}},{key:"outside",get:function(){return this.template.$mount!==this.template.$controlsCenter}},{key:"TEMPLATE",get:function(){var e=this.option;return'\n <div class="apd-toggle">\n '.concat(A.default).concat(E.default,'\n</div>\n<div class="apd-config">\n ').concat(g.default,'\n<div class="apd-config-panel">\n<div class="apd-config-panel-inner">\n<div class="apd-config-mode">\n 按类型屏蔽\n<div class="apd-modes">\n<div data-mode="0" class="apd-mode">\n ').concat(b.default).concat(x.default,'\n<div>滚动</div>\n</div>\n<div data-mode="1" class="apd-mode">\n ').concat(w.default).concat($.default,'\n<div>顶部</div>\n</div>\n<div data-mode="2" class="apd-mode">\n ').concat(S.default).concat(P.default,'\n<div>底部</div>\n</div>\n</div>\n</div>\n<div class="apd-config-other">\n<div class="apd-other apd-anti-overlap">\n ').concat(m.default).concat(f.default,'\n 防止弹幕重叠\n</div>\n<div class="apd-other apd-sync-video">\n ').concat(m.default).concat(f.default,'\n 同步视频速度\n</div>\n</div>\n<div class="apd-config-slider apd-config-opacity">\n 不透明度\n<div class="apd-slider"></div>\n<div class="apd-value">未知</div>\n</div>\n<div class="apd-config-slider apd-config-margin">\n 显示区域\n<div class="apd-slider"></div>\n<div class="apd-value">未知</div>\n</div>\n<div class="apd-config-slider apd-config-fontSize">\n 弹幕字号\n<div class="apd-slider"></div>\n<div class="apd-value">未知</div>\n</div>\n<div class="apd-config-slider apd-config-speed">\n 弹幕速度\n<div class="apd-slider"></div>\n<div class="apd-value">未知</div>\n</div>\n</div>\n</div>\n</div>\n<div class="apd-emitter">\n<div class="apd-style">\n ').concat(C.default,'\n<div class="apd-style-panel">\n<div class="apd-style-panel-inner">\n<div class="apd-style-mode">\n 模式\n<div class="apd-modes">\n<div data-mode="0" class="apd-mode">\n ').concat(x.default,'\n<div>滚动</div>\n</div>\n<div data-mode="1" class="apd-mode">\n ').concat($.default,'\n<div>顶部</div>\n</div>\n<div data-mode="2" class="apd-mode">\n ').concat(P.default,'\n<div>底部</div>\n</div>\n</div>\n</div>\n<div class="apd-style-color">\n 颜色\n<div class="apd-colors">\n ').concat(this.COLOR.map(function(e){return'<div data-color="'.concat(e,'" class="apd-color" style="background-color: ').concat(e,'"></div>')}).join(""),'\n</div>\n</div>\n</div>\n</div>\n</div>\n<input class="apd-input" placeholder="发个友善的弹幕见证当下" autocomplete="off" maxLength="').concat(e.maxLength,'" />\n<div class="apd-send">发送</div>\n</div>\n ')}},{key:"OPACITY",get:function(){return(0,l._)({min:0,max:100,steps:[]},this.option.OPACITY)}},{key:"FONT_SIZE",get:function(){return(0,l._)({min:12,max:120,steps:[]},this.option.FONT_SIZE)}},{key:"MARGIN",get:function(){return(0,l._)({min:0,max:3,steps:[{name:"1/4",value:[10,"75%"]},{name:"半屏",value:[10,"50%"]},{name:"3/4",value:[10,"25%"]},{name:"满屏",value:[10,10]}]},this.option.MARGIN)}},{key:"SPEED",get:function(){return(0,l._)({min:0,max:4,steps:[{name:"极慢",value:10},{name:"较慢",value:7.5,hide:!0},{name:"适中",value:5},{name:"较快",value:2.5,hide:!0},{name:"极快",value:1}]},this.option.SPEED)}},{key:"COLOR",get:function(){return this.option.COLOR.length?this.option.COLOR:["#FE0302","#FF7204","#FFAA02","#FFD302","#FFFF00","#A0EE00","#00CD00","#019899","#4266BE","#89D5FF","#CC0273","#222222","#9B9B9B","#FFFFFF"]}},{key:"query",value:function(e){return(0,this.utils.query)(e,this.template.$danmuku)}},{key:"append",value:function(e,t){var n=this.utils.append;(0,c._)(e.children).includes(t)||n(e,t)}},{key:"setData",value:function(e,t){var n=this.art.template.$player,r=this.template.$mount;n.dataset[e]=t,this.outside&&(r.dataset[e]=t)}},{key:"createTemplate",value:function(){var e=this.utils,t=e.createElement,n=e.tooltip,r=t("div");r.className="artplayer-plugin-danmuku",r.innerHTML=this.TEMPLATE,this.template.$danmuku=r,this.template.$toggle=this.query(".apd-toggle"),this.template.$config=this.query(".apd-config"),this.template.$configPanel=this.query(".apd-config-panel"),this.template.$configModes=this.query(".apd-config-mode .apd-modes"),this.template.$style=this.query(".apd-style"),this.template.$stylePanel=this.query(".apd-style-panel"),this.template.$styleModes=this.query(".apd-style-mode .apd-modes"),this.template.$colors=this.query(".apd-colors"),this.template.$antiOverlap=this.query(".apd-anti-overlap"),this.template.$syncVideo=this.query(".apd-sync-video"),this.template.$opacitySlider=this.query(".apd-config-opacity .apd-slider"),this.template.$opacityValue=this.query(".apd-config-opacity .apd-value"),this.template.$marginSlider=this.query(".apd-config-margin .apd-slider"),this.template.$marginValue=this.query(".apd-config-margin .apd-value"),this.template.$fontSizeSlider=this.query(".apd-config-fontSize .apd-slider"),this.template.$fontSizeValue=this.query(".apd-config-fontSize .apd-value"),this.template.$speedSlider=this.query(".apd-config-speed .apd-slider"),this.template.$speedValue=this.query(".apd-config-speed .apd-value"),this.template.$input=this.query(".apd-input"),this.template.$send=this.query(".apd-send");var a=this.template.$toggle;this.art.on("artplayerPluginDanmuku:show",function(){n(a,"关闭弹幕")}),this.art.on("artplayerPluginDanmuku:hide",function(){n(a,"打开弹幕")})}},{key:"createEvents",value:function(){var e=this,t=this.template,n=t.$toggle,r=t.$configModes,a=t.$styleModes,i=t.$colors,o=t.$antiOverlap,s=t.$syncVideo,l=t.$send,u=t.$input;this.art.proxy(n,"click",function(){e.danmuku.config({visible:!e.option.visible}),e.reset()}),this.art.proxy(r,"click",function(t){var n=t.target.closest(".apd-mode");if(n){var r=Number(n.dataset.mode);e.option.modes.includes(r)?e.danmuku.config({modes:e.option.modes.filter(function(e){return e!==r})}):e.danmuku.config({modes:(0,c._)(e.option.modes).concat([r])}),e.reset()}}),this.art.proxy(o,"click",function(){e.danmuku.config({antiOverlap:!e.option.antiOverlap}),e.reset()}),this.art.proxy(s,"click",function(){e.danmuku.config({synchronousPlayback:!e.option.synchronousPlayback}),e.reset()}),this.art.proxy(a,"click",function(t){var n=t.target.closest(".apd-mode");if(n){var r=Number(n.dataset.mode);e.danmuku.config({mode:r}),e.reset()}}),this.art.proxy(i,"click",function(t){var n=t.target.closest(".apd-color");n&&(e.danmuku.config({color:n.dataset.color}),e.reset())}),this.art.proxy(l,"click",function(){return e.emit()}),this.art.proxy(u,"keypress",function(t){"Enter"===t.key&&(t.preventDefault(),e.emit())})}},{key:"createSliders",value:function(){var e=this;this.slider.opacity=this.createSlider((0,u._)((0,l._)({},this.OPACITY),{container:this.template.$opacitySlider,findIndex:function(){return Math.round(100*e.option.opacity)},onChange:function(t){e.template.$opacityValue.textContent="".concat(t,"%"),e.danmuku.config({opacity:t/100})}})),this.slider.margin=this.createSlider((0,u._)((0,l._)({},this.MARGIN),{container:this.template.$marginSlider,findIndex:function(){return e.MARGIN.steps.findIndex(function(t){return t.value[0]===e.option.margin[0]&&t.value[1]===e.option.margin[1]})},onChange:function(t){var n=e.MARGIN.steps[t];n&&(e.template.$marginValue.textContent=n.name,e.danmuku.config({margin:n.value}))}})),this.slider.fontSize=this.createSlider((0,u._)((0,l._)({},this.FONT_SIZE),{container:this.template.$fontSizeSlider,findIndex:function(){return e.danmuku.fontSize},onChange:function(t){e.template.$fontSizeValue.textContent="".concat(t,"px"),t!==e.danmuku.fontSize&&e.danmuku.config({fontSize:t})}})),this.slider.speed=this.createSlider((0,u._)((0,l._)({},this.SPEED),{container:this.template.$speedSlider,findIndex:function(){return e.SPEED.steps.findIndex(function(t){return t.value===e.option.speed})},onChange:function(t){var n=e.SPEED.steps[t];n&&(e.template.$speedValue.textContent=n.name,e.danmuku.config({speed:n.value}))}}))}},{key:"createSlider",value:function(e){var t=this,n=e.min,r=e.max,a=e.container,i=e.findIndex,o=e.onChange,s=e.steps,l=void 0===s?[]:s,u=this.utils,c=u.query,d=u.clamp;(0,u.setStyle)(a,"touch-action","none"),a.innerHTML='\n<div class="apd-slider-line">\n<div class="apd-slider-points">\n '.concat(l.map(function(){return'<div class="apd-slider-point"></div>'}).join(""),'\n</div>\n<div class="apd-slider-progress"></div>\n</div>\n<div class="apd-slider-dot"></div>\n<div class="apd-slider-steps">\n ').concat(l.map(function(e){return e.hide?"":'<div class="apd-slider-step">'.concat(e.name,"</div>")}).join(""),"\n</div>\n ");var p=c(".apd-slider-dot",a),f=c(".apd-slider-progress",a),h=!1;function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i();if(!(e<n)&&!(e>r)){var t=(e-n)/(r-n);p.style.left="".concat(100*t,"%"),0===l.length&&(f.style.width=p.style.left),o(e)}}function y(e){var t=a.getBoundingClientRect(),i=t.top,o=t.height,s=t.left,l=t.width;this.art.isRotate?m(Math.round(d(e.clientY-i,0,o)/o*(r-n)+n)):m(Math.round(d(e.clientX-s,0,l)/l*(r-n)+n))}return this.art.proxy(a,"click",function(e){y.call(t,e)}),this.art.proxy(a,"pointerdown",function(e){h=0===e.button}),this.art.on("document:pointermove",function(e){h&&y.call(t,e)}),this.art.on("document:pointerup",function(e){h&&(h=!1,y.call(t,e))}),{reset:m}}},{key:"onFullscreen",value:function(e){var t=this.template,n=t.$danmuku,r=t.$controlsCenter,a=t.$mount;this.outside?e?this.append(r,n):this.append(a,n):this.append(r,n)}},{key:"onMouseEnter",value:function(e){var t=e.$control,n=e.$panel,r=this.art.template.$player,a=t.getBoundingClientRect(),i=n.getBoundingClientRect(),o=r.getBoundingClientRect(),s=i.width/2-a.width/2,l=o.left-(a.left-s),u=a.right+s-o.right;l>0?n.style.left="".concat(-s+l,"px"):u>0?n.style.left="".concat(-s-u,"px"):n.style.left="".concat(-s,"px")}},{key:"emit",value:function(){return(0,i._)(function(){var e,t,n,r;return(0,d._)(this,function(a){switch(a.label){case 0:if(!(t=(e=this.template.$input).value.trim()).length||this.isLock||this.emitting)return[2];n={text:t,mode:this.option.mode,color:this.option.color,time:this.art.currentTime},a.label=1;case 1:return a.trys.push([1,3,,4]),this.emitting=!0,[4,this.option.beforeEmit(n)];case 2:if(r=a.sent(),this.emitting=!1,!0!==r)return[2];return n.border=!0,delete n.time,this.danmuku.emit(n),e.value="",this.lock(),[3,4];case 3:return console.error("Error emitting danmuku:",a.sent()),this.emitting=!1,[3,4];case 4:return[2]}})}).call(this)}},{key:"lock",value:function(){var e=this,t=this.utils.addClass,n=this.template.$send;this.isLock=!0;var r=this.option.lockTime;n.textContent=r,t(n,"apd-lock");var a=function(){e.timer=setTimeout(function(){0===r?e.unlock():(n.textContent=r-=1,a())},1e3)};a()}},{key:"unlock",value:function(){var e=this.utils.removeClass,t=this.template.$send;clearTimeout(this.timer),this.isLock=!1,t.textContent="发送",e(t,"apd-lock")}},{key:"resize",value:function(){if(!this.outside&&!this.art.fullscreen&&!this.art.fullscreenWeb){var e=this.art.template,t=e.$player,n=e.$controlsCenter,r=this.template.$danmuku;this.art.width<this.option.width?this.append(t,r):this.append(n,r)}}},{key:"reset",value:function(){var e=this,t=this.utils,n=t.inverseClass,r=t.tooltip,a=this.template,i=a.$toggle,o=a.$colors;this.slider.opacity.reset(),this.slider.margin.reset(),this.slider.fontSize.reset(),this.slider.speed.reset(),this.setData("danmukuVisible",this.option.visible),this.setData("danmukuMode",this.option.mode),this.setData("danmukuColor",this.option.color),this.setData("danmukuMode0",this.option.modes.includes(0)),this.setData("danmukuMode1",this.option.modes.includes(1)),this.setData("danmukuMode2",this.option.modes.includes(2)),this.setData("danmukuAntiOverlap",this.option.antiOverlap),this.setData("danmukuSyncVideo",this.option.synchronousPlayback),this.setData("danmukuTheme",this.option.theme),this.setData("danmukuEmitter",this.option.emitter);var s=Array.from(o.children).find(function(t){return t.dataset.color===e.option.color.toUpperCase()});s&&n(s,"apd-active"),r(i,this.option.visible?"关闭弹幕":"打开弹幕"),this.resize()}},{key:"mount",value:function(e){var t=this.utils.errorHandle,n="string"==typeof e?document.querySelector(e):e;t(n,"Can not find the mount point: ".concat(e)),this.append(n,this.template.$danmuku),this.template.$mount=n,this.reset()}}],[{key:"icons",get:function(){return{$on:A.default,$off:E.default,$config:g.default,$style:C.default,$mode_0_off:b.default,$mode_0_on:x.default,$mode_1_off:w.default,$mode_1_on:$.default,$mode_2_off:S.default,$mode_2_on:P.default,$check_on:m.default,$check_off:f.default}}}]),e}();if("undefined"!=typeof document){var R="artplayer-plugin-danmuku",H=document.getElementById(R);H||((H=document.createElement("style")).id=R,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",function(){document.head.appendChild(H)}):(document.head||document.documentElement).appendChild(H)),H.textContent=I.default}},{"@swc/helpers/cjs/_async_to_generator.cjs":"cZn0e","@swc/helpers/cjs/_class_call_check.cjs":"4Uf9M","@swc/helpers/cjs/_create_class.cjs":"igUuK","@swc/helpers/cjs/_object_spread.cjs":"kyoEj","@swc/helpers/cjs/_object_spread_props.cjs":"3G1wX","@swc/helpers/cjs/_to_consumable_array.cjs":"i81N6","@swc/helpers/cjs/_ts_generator.cjs":"eltGh","bundle-text:./img/check_off.svg":"3Kuo7","bundle-text:./img/check_on.svg":"lVPfB","bundle-text:./img/config.svg":"a75dO","bundle-text:./img/mode_0_off.svg":"e5Ndj","bundle-text:./img/mode_0_on.svg":"fgakY","bundle-text:./img/mode_1_off.svg":"1rW7G","bundle-text:./img/mode_1_on.svg":"86V1z","bundle-text:./img/mode_2_off.svg":"8rkmQ","bundle-text:./img/mode_2_on.svg":"bGZsR","bundle-text:./img/off.svg":"iO9LX","bundle-text:./img/on.svg":"abS9U","bundle-text:./img/style.svg":"g7T0K","bundle-text:./style.less":"d3e2n","@parcel/transformer-js/src/esmodule-helpers.js":"qpMMf"}],"3Kuo7":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" class="apd-icon apd-check-off" data-pointer="none" viewBox="0 0 32 32"><path fill="#fff" d="M8 6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2Zm0-2h16c2.21 0 4 1.79 4 4v16c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4"/></svg>'},{}],lVPfB:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" class="apd-icon apd-check-on" data-pointer="none" viewBox="0 0 32 32"><path fill="#00aeec" d="m13 18.25-1.8-1.8c-.6-.6-1.65-.6-2.25 0s-.6 1.5 0 2.25l2.85 2.85c.318.318.762.468 1.2.448.438.02.882-.13 1.2-.448l8.85-8.85c.6-.6.6-1.65 0-2.25s-1.65-.6-2.25 0ZM8 4h16c2.21 0 4 1.79 4 4v16c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4"/></svg>'},{}],a75dO:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="apd-icon apd-config-icon" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m15.645 4.881 1.06-1.473a.998.998 0 1 0-1.622-1.166L13.22 4.835a111 111 0 0 0-1.1-.007h-.131q-.705 0-1.515.012L8.783 2.3A.998.998 0 0 0 7.12 3.408l.988 1.484q-1.033.028-2.188.069a4.01 4.01 0 0 0-3.83 3.44q-.246 1.725-.245 4.185-.001 2.947.35 5.116a4.01 4.01 0 0 0 3.763 3.363 100 100 0 0 0 5.513.141.988.988 0 0 0 0-1.975 98 98 0 0 1-5.416-.139 2.04 2.04 0 0 1-1.91-1.708q-.325-1.986-.325-4.798 0-2.344.225-3.904c.14-.977.96-1.713 1.945-1.747q3.666-.13 6.063-.131 2.398 0 6.064.13c.96.034 1.71.81 1.855 1.814.075.524.113 1.962.141 3.065v.002c.005.183.01.07.014-.038.004-.096.008-.189.011-.081a.987.987 0 1 0 1.974-.069c-.004-.105-.007-.009-.011.09a2 2 0 0 1-.007.135l-.002.01a1 1 0 0 1-.005-.091v-.027c-.03-1.118-.073-2.663-.16-3.276-.273-1.906-1.783-3.438-3.74-3.507q-1.357-.048-2.543-.079Zm-3.113 4.703h-1.307v4.643h2.2v.04l.651-1.234c.113-.215.281-.389.482-.509v-.11h.235q.207-.074.433-.074h1.553V9.584h-1.264a8.5 8.5 0 0 0 .741-1.405l-1.078-.381c-.24.631-.501 1.23-.806 1.786h-1.503l.686-.305a8.6 8.6 0 0 0-.806-1.394l-1.034.348c.294.392.566.839.817 1.35Zm-1.7 5.502h2.16l-.564 1.068h-1.595Zm-2.498-1.863.152-1.561h1.96V8.289H7.277v.969h2.048v1.435h-1.84l-.306 3.51h2.254c0 1.155-.043 1.906-.12 2.255-.076.348-.38.523-.925.523-.305 0-.61-.022-.893-.055l.294 1.056.061.005c.282.02.546.039.81.039.991-.065 1.547-.414 1.677-1.046.11-.631.175-1.883.175-3.757Zm5.09-.8v.85h-1.188v-.85h1.187Zm-1.188-.955h1.187v-.893h-1.187Zm2.322.007v-.893h1.241v.893Zm.528 2.757a1.26 1.26 0 0 1 1.087-.627l4.003-.009a1.26 1.26 0 0 1 1.094.63l1.721 2.982c.226.39.225.872-.001 1.263l-1.743 3a1.26 1.26 0 0 1-1.086.628l-4.003.009a1.26 1.26 0 0 1-1.094-.63l-1.722-2.982a1.26 1.26 0 0 1 .002-1.263Zm1.967.858a1.26 1.26 0 0 0-1.08.614l-.903 1.513a1.26 1.26 0 0 0-.002 1.289l.885 1.492c.227.384.64.62 1.086.618l2.192-.005a1.26 1.26 0 0 0 1.08-.615l.904-1.518a1.26 1.26 0 0 0 .001-1.288l-.884-1.489a1.26 1.26 0 0 0-1.086-.616Zm2.517 2.76a1.4 1.4 0 1 1-2.8 0 1.4 1.4 0 0 1 2.8 0" clip-rule="evenodd"/></svg>'},{}],e5Ndj:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="28" height="28" class="apd-icon apd-mode-0-off" data-pointer="none" viewBox="0 0 28 28"><path fill="#00aeec" d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15M11 9h6a1 1 0 0 1 0 2h-6a1 1 0 0 1 0-2m-3 2H6V9h2Zm4 4h-2v-2h2Zm2-1a1 1 0 0 1 1-1h1a1 1 0 0 1 0 2h-1a1 1 0 0 1-1-1"/><path fill="#00aeec" d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071m-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586m4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001"/></svg>'},{}],fgakY:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="28" height="28" class="apd-icon apd-mode-0-on" data-pointer="none" viewBox="0 0 28 28"><path fill="#fff" d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4M11 9h6a1 1 0 0 1 0 2h-6a1 1 0 0 1 0-2m-3 2H6V9h2Zm4 4h-2v-2h2Zm9 0h-6a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2"/></svg>'},{}],"1rW7G":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="28" height="28" class="apd-icon apd-mode-1-off" data-pointer="none" viewBox="0 0 28 28"><path fill="#00aeec" d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15m-4-8h2v2h-2ZM9 9H7V7h2Zm4 0h-2V7h2Zm2-2h2v2h-2Z"/><path fill="#00aeec" d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071m-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586m4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001"/></svg>'},{}],"86V1z":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="28" height="28" class="apd-icon apd-mode-1-on" data-pointer="none" viewBox="0 0 28 28"><path fill="#fff" d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4M9 9H7V7h2Zm4 0h-2V7h2Zm4 0h-2V7h2Zm4 0h-2V7h2Z"/></svg>'},{}],"8rkmQ":[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="28" height="28" class="apd-icon apd-mode-2-off" data-pointer="none" viewBox="0 0 28 28"><path fill="#00aeec" d="M23 15c1.487 0 2.866.464 4 1.255V7a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h11.674A7 7 0 0 1 23 15M9 21H7v-2h2Zm4 0h-2v-2h2Z"/><path fill="#00aeec" d="M26.536 18.464a5 5 0 0 0-7.071 0 5 5 0 0 0 0 7.071 5 5 0 1 0 7.071-7.071m-5.657 5.657a3 3 0 0 1-.586-3.415l4.001 4.001a3 3 0 0 1-3.415-.586m4.829-.827-4.001-4.001a3.002 3.002 0 0 1 4.001 4.001"/></svg>'},{}],bGZsR:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="28" height="28" class="apd-icon apd-mode-2-on" data-pointer="none" viewBox="0 0 28 28"><path fill="#fff" d="M23 3H5a4 4 0 0 0-4 4v14a4 4 0 0 0 4 4h18a4 4 0 0 0 4-4V7a4 4 0 0 0-4-4M9 21H7v-2h2Zm4 0h-2v-2h2Zm4 0h-2v-2h2Zm4 0h-2v-2h2Z"/></svg>'},{}],iO9LX:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="apd-icon apd-toggle-off" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m8.085 4.891-.999-1.499a1.008 1.008 0 0 1 1.679-1.118l1.709 2.566q.81-.012 1.515-.012h.13q.517 0 1.088.007l1.862-2.59a1.008 1.008 0 0 1 1.637 1.177l-1.049 1.46q1.182.03 2.53.078c1.958.069 3.468 1.6 3.74 3.507.088.613.13 2.158.16 3.276l.001.027c.01.333.017.63.025.856a.987.987 0 0 1-1.974.069c-.008-.23-.016-.539-.025-.881v-.002c-.028-1.103-.066-2.541-.142-3.065-.143-1.004-.895-1.78-1.854-1.813a179 179 0 0 0-6.064-.131q-2.397 0-6.063.13a2.04 2.04 0 0 0-1.945 1.748q-.225 1.56-.225 3.904.001 2.811.325 4.798c.154.949.95 1.66 1.91 1.708a98 98 0 0 0 5.416.139.988.988 0 0 1 0 1.975 100 100 0 0 1-5.513-.141A4.01 4.01 0 0 1 2.197 17.7q-.353-2.169-.351-5.116-.001-2.46.245-4.184A4.01 4.01 0 0 1 5.92 4.96q1.142-.04 2.164-.069Zm4.436 4.707h-1.32v4.63h2.222v.848h-2.618v1.078h2.431a5.01 5.01 0 0 1 3.575-3.115V9.598h-1.276a8.6 8.6 0 0 0 .748-1.42l-1.089-.384a14 14 0 0 1-.814 1.804h-1.518l.693-.308a9 9 0 0 0-.814-1.408l-1.045.352c.297.396.572.847.825 1.364m-4.18 3.564.154-1.485h1.98V8.289h-3.2v.979h2.067v1.43H7.483l-.308 3.454h2.277c0 1.166-.044 1.925-.12 2.277-.078.352-.386.528-.936.528-.308 0-.616-.022-.902-.055l.297 1.067.062.004c.285.02.551.04.818.04 1.001-.066 1.562-.418 1.694-1.056.11-.638.176-1.903.176-3.795Zm7.458.11v-.858h-1.254v.858H15.8Zm-2.376-.858v.858h-1.199v-.858h1.2Zm-1.199-.946h1.2v-.902h-1.2Zm2.321 0v-.902H15.8v.902h-1.254Zm3.517 10.594a4 4 0 1 0 0-8 4 4 0 0 0 0 8m-.002-1.502a2.5 2.5 0 0 1-2.217-3.657l3.326 3.398a2.5 2.5 0 0 1-1.109.259m2.5-2.5c0 .42-.103.815-.286 1.162l-3.328-3.401a2.5 2.5 0 0 1 3.614 2.239" clip-rule="evenodd"/></svg>'},{}],abS9U:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" class="apd-icon apd-toggle-on" data-pointer="none" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.989 4.828q-.705 0-1.515.012l-1.71-2.566a1.008 1.008 0 0 0-1.678 1.118l.999 1.5q-1.022.027-2.164.068a4.01 4.01 0 0 0-3.83 3.44q-.246 1.725-.245 4.185-.001 2.947.35 5.116a4.01 4.01 0 0 0 3.763 3.363l.906.046c1.205.063 1.808.095 3.607.095a.988.988 0 0 0 0-1.975c-1.758 0-2.339-.03-3.501-.092l-.915-.047a2.04 2.04 0 0 1-1.91-1.708q-.325-1.987-.325-4.798 0-2.344.225-3.904c.14-.977.96-1.713 1.945-1.747q3.666-.13 6.063-.131 2.398 0 6.064.13c.96.034 1.71.81 1.855 1.814.075.524.113 1.962.141 3.065v.002c.01.342.017.65.025.88a.987.987 0 1 0 1.974-.068c-.008-.226-.016-.523-.025-.856v-.027c-.03-1.118-.073-2.663-.16-3.276-.273-1.906-1.783-3.438-3.74-3.507q-1.35-.048-2.531-.078l1.05-1.46a1.008 1.008 0 0 0-1.638-1.177l-1.862 2.59q-.571-.006-1.088-.007Zm.521 4.775h-1.32v4.631h2.222v.847h-2.618v1.078h2.618l.003.678c.36.026.714.163 1.01.407h.11v-1.085h2.694v-1.078h-2.695v-.847H16.8v-4.63h-1.276a8.6 8.6 0 0 0 .748-1.42L15.183 7.8a14 14 0 0 1-.814 1.804h-1.518l.693-.308a9 9 0 0 0-.814-1.408l-1.045.352c.297.396.572.847.825 1.364Zm-4.18 3.564.154-1.485h1.98V8.294h-3.2v.98H9.33v1.43H7.472l-.308 3.453h2.277c0 1.166-.044 1.925-.12 2.277-.078.352-.386.528-.936.528-.308 0-.616-.022-.902-.055l.297 1.067.062.005c.285.02.551.04.818.04 1.001-.067 1.562-.419 1.694-1.057.11-.638.176-1.903.176-3.795Zm7.458.11v-.858h-1.254v.858Zm-2.376-.858v.858h-1.199v-.858h1.2Zm-1.199-.946h1.2v-.902h-1.2Zm2.321 0v-.902h1.254v.902Z" clip-rule="evenodd"/><path fill="#00aeec" fill-rule="evenodd" d="M22.846 14.627a1 1 0 0 0-1.412.075l-5.091 5.703-2.216-2.275-.097-.086-.008-.005a1 1 0 0 0-1.322 1.493l2.963 3.041.093.083.007.005a1 1 0 0 0 1.354-.124l5.81-6.505.08-.102.005-.008a1 1 0 0 0-.166-1.295" clip-rule="evenodd"/></svg>'},{}],g7T0K:[function(e,t,n,r){t.exports='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="36" height="24" class="apd-icon apd-style-icon" data-pointer="none" viewBox="0 0 22 22"><path d="M17 16H5c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1M6.96 15c.39 0 .74-.24.89-.6l.65-1.6h5l.66 1.6c.15.36.5.6.89.6.69 0 1.15-.71.88-1.34l-3.88-8.97C11.87 4.27 11.46 4 11 4s-.87.27-1.05.69l-3.88 8.97c-.27.63.2 1.34.89 1.34M11 5.98 12.87 11H9.13Z"/></svg>'},{}],d3e2n:[function(e,t,n,r){t.exports='.artplayer-plugin-danmuku{z-index:99;color:#fff;flex-shrink:0;justify-content:center;align-items:center;gap:10px;width:100%;height:32px;font-size:12px;font-weight:300;display:flex;position:relative}.artplayer-plugin-danmuku .apd-icon{cursor:pointer;opacity:.75;fill:#fff;transition:all .2s}.artplayer-plugin-danmuku .apd-icon:hover{opacity:1}.artplayer-plugin-danmuku .apd-config{display:flex;position:relative}.artplayer-plugin-danmuku .apd-config .apd-config-panel{opacity:0;pointer-events:none;width:320px;padding:10px;position:absolute;bottom:24px;left:0}.artplayer-plugin-danmuku .apd-config .apd-config-panel .apd-config-panel-inner{background-color:rgba(0,0,0,.85);border-radius:3px;width:100%;padding:10px}.artplayer-plugin-danmuku .apd-config:hover .apd-config-panel{opacity:100;pointer-events:all}.artplayer-plugin-danmuku .apd-config-mode,.artplayer-plugin-danmuku .apd-config-slider,.artplayer-plugin-danmuku .apd-config-other,.artplayer-plugin-danmuku .apd-style-mode{margin-bottom:15px}.artplayer-plugin-danmuku .apd-modes{align-items:center;gap:20px;margin-top:5px;display:flex}.artplayer-plugin-danmuku .apd-modes .apd-mode{cursor:pointer;text-align:center}.artplayer-plugin-danmuku .apd-modes .apd-mode:hover{color:#00a1d6}.artplayer-plugin-danmuku .apd-config-slider{align-items:center;gap:12px;display:flex}.artplayer-plugin-danmuku .apd-config-slider .apd-value{text-align:right;width:32px}.artplayer-plugin-danmuku .apd-slider{cursor:pointer;flex:1;justify-content:center;align-items:center;height:20px;display:flex;position:relative}.artplayer-plugin-danmuku .apd-slider .apd-slider-line{background-color:rgba(255,255,255,.25);border-radius:3px;width:100%;height:2px;position:relative;overflow:hidden}.artplayer-plugin-danmuku .apd-slider .apd-slider-points{justify-content:space-between;align-items:center;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.artplayer-plugin-danmuku .apd-slider .apd-slider-points .apd-slider-point{background-color:rgba(255,255,255,.5);border-radius:50%;width:2px;height:2px}.artplayer-plugin-danmuku .apd-slider .apd-slider-progress{background-color:#00a1d6;width:0%;height:100%}.artplayer-plugin-danmuku .apd-slider .apd-slider-dot{background-color:#00a1d6;border-radius:50%;width:12px;height:12px;position:absolute;left:0%;transform:translate(-6px)}.artplayer-plugin-danmuku .apd-slider .apd-slider-steps{color:#777;justify-content:space-between;align-items:center;width:calc(100% + 32px);display:flex;position:absolute;bottom:-12px}.artplayer-plugin-danmuku .apd-slider .apd-slider-steps .apd-slider-step{text-align:center;flex-shrink:0;width:36px;scale:.95}.artplayer-plugin-danmuku .apd-config-other{align-items:center;gap:20px;display:flex}.artplayer-plugin-danmuku .apd-config-other .apd-check-off,.artplayer-plugin-danmuku .apd-config-other .apd-check-on{width:16px;height:16px}.artplayer-plugin-danmuku .apd-config-other .apd-other{cursor:pointer;align-items:center;gap:2px;display:flex}.artplayer-plugin-danmuku .apd-config-other .apd-other:hover{color:#00a1d6}.artplayer-plugin-danmuku .apd-emitter{background-color:rgba(255,255,255,.25);border-radius:5px;flex:1;align-items:center;height:100%;display:flex}.artplayer-plugin-danmuku .apd-style{justify-content:center;align-items:center;display:flex;position:relative}.artplayer-plugin-danmuku .apd-style .apd-style-panel{opacity:0;pointer-events:none;width:200px;padding:10px;position:absolute;bottom:24px;left:0}.artplayer-plugin-danmuku .apd-style .apd-style-panel .apd-style-panel-inner{background-color:rgba(0,0,0,.85);border-radius:3px;width:100%;padding:10px}.artplayer-plugin-danmuku .apd-style:hover .apd-style-panel{opacity:100;pointer-events:all}.artplayer-plugin-danmuku .apd-colors{flex-wrap:wrap;gap:8px;margin-top:5px;display:flex}.artplayer-plugin-danmuku .apd-colors .apd-color{cursor:pointer;border-radius:2px;width:16px;height:16px}.artplayer-plugin-danmuku .apd-colors .apd-color.apd-active{border:1px solid #000;box-shadow:0 0 0 1px #fff}.artplayer-plugin-danmuku .apd-input{color:#fff;background-color:transparent;border:none;outline:none;flex:1;width:auto;min-width:0;height:100%;line-height:1}.artplayer-plugin-danmuku .apd-input::placeholder{color:rgba(255,255,255,.5)}.artplayer-plugin-danmuku .apd-input::placeholder{color:rgba(255,255,255,.5)}.artplayer-plugin-danmuku .apd-send{cursor:pointer;width:60px;height:100%;text-shadow:none;background-color:#00a1d6;border-top-right-radius:5px;border-bottom-right-radius:5px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.artplayer-plugin-danmuku .apd-send.apd-lock{cursor:not-allowed;color:#666;background-color:#e7e7e7}.art-controls-center .apd-emitter{flex:none;width:260px}.art-fullscreen .artplayer-plugin-danmuku,.art-fullscreen-web .artplayer-plugin-danmuku{gap:16px;height:38px}.art-fullscreen .artplayer-plugin-danmuku .apd-config-icon,.art-fullscreen-web .artplayer-plugin-danmuku .apd-config-icon,.art-fullscreen .artplayer-plugin-danmuku .apd-toggle-off,.art-fullscreen-web .artplayer-plugin-danmuku .apd-toggle-off,.art-fullscreen .artplayer-plugin-danmuku .apd-toggle-on,.art-fullscreen-web .artplayer-plugin-danmuku .apd-toggle-on{width:28px;height:28px}.art-fullscreen .artplayer-plugin-danmuku .apd-emitter,.art-fullscreen-web .artplayer-plugin-danmuku .apd-emitter{flex:none;width:400px}.art-video-player>.artplayer-plugin-danmuku{padding:0 10px;position:absolute;bottom:-40px;left:0;right:0}.art-video-player:has(>.artplayer-plugin-danmuku){margin-bottom:40px}[data-danmuku-emitter=false] .apd-emitter{display:none!important}[data-danmuku-emitter=false] .art-controls-center .artplayer-plugin-danmuku{justify-content:flex-end;gap:18px}[data-danmuku-emitter=false].art-fullscreen .art-controls-center .artplayer-plugin-danmuku,[data-danmuku-emitter=false].art-fullscreen-web .art-controls-center .artplayer-plugin-danmuku{gap:24px}[data-danmuku-theme=light]>.artplayer-plugin-danmuku .apd-icon{fill:#333}[data-danmuku-theme=light]>.artplayer-plugin-danmuku .apd-emitter{background-color:#f1f2f3}[data-danmuku-theme=light]>.artplayer-plugin-danmuku .apd-input{color:#000}[data-danmuku-theme=light]>.artplayer-plugin-danmuku .apd-input::placeholder{color:rgba(0,0,0,.3)}[data-danmuku-theme=light]>.artplayer-plugin-danmuku .apd-input::placeholder{color:rgba(0,0,0,.3)}[data-danmuku-visible=false] .apd-toggle-off{display:block}[data-danmuku-visible=false] .apd-toggle-on,[data-danmuku-visible=true] .apd-toggle-off{display:none}[data-danmuku-visible=true] .apd-toggle-on{display:block}[data-danmuku-anti-overlap=false] .apd-anti-overlap .apd-check-on{display:none}[data-danmuku-anti-overlap=false] .apd-anti-overlap .apd-check-off,[data-danmuku-anti-overlap=true] .apd-anti-overlap .apd-check-on{display:block}[data-danmuku-anti-overlap=true] .apd-anti-overlap .apd-check-off,[data-danmuku-sync-video=false] .apd-sync-video .apd-check-on{display:none}[data-danmuku-sync-video=false] .apd-sync-video .apd-check-off,[data-danmuku-sync-video=true] .apd-sync-video .apd-check-on{display:block}[data-danmuku-sync-video=true] .apd-sync-video .apd-check-off{display:none}[data-danmuku-mode0=false] .apd-config-mode .apd-mode-0-off{display:block}[data-danmuku-mode0=false] .apd-config-mode .apd-mode-0-on{display:none}[data-danmuku-mode0=false] .art-danmuku [data-mode="0"]{opacity:0!important}[data-danmuku-mode0=true] .apd-config-mode .apd-mode-0-off{display:none}[data-danmuku-mode0=true] .apd-config-mode .apd-mode-0-on{display:block}[data-danmuku-mode="0"] .apd-style-mode [data-mode="0"]{color:#00a1d6}[data-danmuku-mode="0"] .apd-style-mode [data-mode="0"] path{fill:#00a1d6}[data-danmuku-mode1=false] .apd-config-mode .apd-mode-1-off{display:block}[data-danmuku-mode1=false] .apd-config-mode .apd-mode-1-on{display:none}[data-danmuku-mode1=false] .art-danmuku [data-mode="1"]{opacity:0!important}[data-danmuku-mode1=true] .apd-config-mode .apd-mode-1-off{display:none}[data-danmuku-mode1=true] .apd-config-mode .apd-mode-1-on{display:block}[data-danmuku-mode="1"] .apd-style-mode [data-mode="1"]{color:#00a1d6}[data-danmuku-mode="1"] .apd-style-mode [data-mode="1"] path{fill:#00a1d6}[data-danmuku-mode2=false] .apd-config-mode .apd-mode-2-off{display:block}[data-danmuku-mode2=false] .apd-config-mode .apd-mode-2-on{display:none}[data-danmuku-mode2=false] .art-danmuku [data-mode="2"]{opacity:0!important}[data-danmuku-mode2=true] .apd-config-mode .apd-mode-2-off{display:none}[data-danmuku-mode2=true] .apd-config-mode .apd-mode-2-on{display:block}[data-danmuku-mode="2"] .apd-style-mode [data-mode="2"]{color:#00a1d6}[data-danmuku-mode="2"] .apd-style-mode [data-mode="2"] path{fill:#00a1d6}'},{}]},["l3CkF"],"l3CkF","parcelRequire4dc0",{});