!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2054)}({2054:function(e,t){var n=self.frameElement.getAttribute("data-cover"),o=self.frameElement.getAttribute("data-mpvid"),r=self.frameElement.getAttribute("data-vidtype"),i=document.getElementById("cover"),a=document.querySelector(".wx_video_play_icon"),d=document.querySelector(".js_danmu_status");n&&(i.style.backgroundImage="url(".concat(decodeURIComponent(n),")")),i.addEventListener("click",(function(){var e=self.frameElement.getBoundingClientRect(),t=window.parent.document.querySelectorAll("iframe.video_iframe"),n=Array.from(t).findIndex((function(e){return e===self.frameElement}));window.parent.postMessage({type:"update-danmu-status",rect:e,index:n,mpvid:o,vidType:r},window.location.origin)})),a.addEventListener("click",(function(e){e.stopPropagation(),window.parent.postMessage({type:"video-play",mpvid:o,vidType:r},window.location.origin)})),window.addEventListener("message",(function(e){e.origin===window.location.origin&&"return-danmu-type"===e.data.type&&(e.data.danmuType>0&&"2"===r?d.classList.remove("hidden"):d.classList.add("hidden"))})),window.onload=function(){window.parent.postMessage({type:"get-danmu-type",mpvid:o,vidType:r},window.location.origin)}}});