text: !function e(t,n,o){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[a]={exports:{}};t[a][0].call(d.exports,function(e){var n=t[a][1][e];return i(n?n:e)},d,d.exports,e,t,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(e){function t(e,t){if(!e)return a("\u89e3\u6790\u5185\u5bb9\u5730\u5740\u5931\u8d25",2),void delete window[l];a("\u89e3\u6790\u5185\u5bb9\u5730\u5740\u5b8c\u6210"+e.map(function(e){return'<a href="'+e[1]+'" target="_blank">'+e[0]+"</a>"}).join(" "),2);var n=i("div",{appendTo:document.body,style:{position:"fixed",background:"rgba(0,0,0,0.8)",top:"0",left:"0",width:"100%",height:"100%",zIndex:"999999"}});i("div",{appendTo:n,style:{width:"1000px",height:"500px",position:"absolute",top:"50%",left:"50%",marginTop:"-250px",marginLeft:"-500px",borderRadius:"2px",boxShadow:"0 0 2px #000000, 0 0 200px #000000"}}),i("div",{appendTo:n,innerHTML:'<a style="color:#555555;" href="http://zythum.sinaapp.com/mama2/" target="_blank">MAMA2: \u5988\u5988\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u6211\u7684macbook\u53d1\u70ed\u8ba1\u5212</a>',style:{position:"absolute",bottom:"10px",left:"0",right:"0",height:"20px",lineHeight:"20px",textAlign:"center",fontSize:"12px",fontFamily:"arial, sans-serif"}});var s=i("div",{appendTo:n,innerHTML:'<div id="MAMA2_video_placeHolder"></div>',style:{width:"1000px",height:"500px",position:"absolute",backgroundColor:"#000000",top:"50%",left:"50%",marginTop:"-250px",marginLeft:"-500px",borderRadius:"2px",overflow:"hidden"}});i("div",{appendTo:s,innerHTML:"&times;",style:{width:"20px",height:"20px",lineHeight:"20px",textAlign:"center",position:"absolute",color:"#ffffff",fontSize:"20px",top:"5px",right:"5px",textShadow:"0 0 2px #000000",fontWeight:"bold",fontFamily:'Garamond, "Apple Garamond"',cursor:"pointer"}}).onclick=function(){document.body.removeChild(n),c.video.src="about:blank",delete window[l]};var c=new r("MAMA2_video_placeHolder","1000x500",e,t);c.iframe.contentWindow.focus(),o(),c.iframe.style.display="block",window[l]=!0}var n,o=e("./flashBlocker"),i=e("./createElement"),r=e("./player"),a=e("./log"),s=e("./purl"),l=e("./mamaKey"),c=e("./seekers"),d=e("./seeker_flvsp");if(1!=window[l]){var u=s(location.href);"zythum.sinaapp.com"===u.attr("host")&&"/mama2/ps4/"===u.attr("directory")&&u.param("url")&&(u=s(u.param("url"))),c.forEach(function(e){n!==!0&&!!e.match(u)==!0&&(a("\u5f00\u59cb\u89e3\u6790\u5185\u5bb9\u5730\u5740"),n=!0,e.getVideos(u,t))}),void 0===n&&(a('\u5c1d\u8bd5\u4f7f\u7528<a target="_blank" href="http://weibo.com/justashit">\u4e00\u73af\u540c\u5b66</a>\u63d0\u4f9b\u7684\u89e3\u6790\u670d\u52a1',2),d.getVideos(u,t))}},{"./createElement":4,"./flashBlocker":5,"./log":8,"./mamaKey":9,"./player":11,"./purl":12,"./seeker_flvsp":16,"./seekers":21}],2:[function(e,t){function n(e,t){return void 0===e?t:e}function o(e){var t=[];for(one in e)e.hasOwnProperty(one)&&t.push([one,e[one]].join("="));return t.join("&")}function i(e,t){return 0===t.length?e:e+(-1===e.indexOf("?")?"?":"&")+t}function r(e){var t=n(e.url,""),r=o(n(e.param,{})),l=n(e.method,"GET"),c=n(e.callback,s),d=n(e.contentType,"json"),u=n(e.context,null);if(e.jsonp)return a(i(t,r),c.bind(u),"string"==typeof e.jsonp?e.jsonp:void 0);var h=new XMLHttpRequest;"get"===l.toLowerCase()&&(t=i(t,r),r=""),h.open(l,t,!0),h.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),h.send(r),h.onreadystatechange=function(){if(4===h.readyState){if(200===h.status){var e=h.responseText;if("json"===d.toLowerCase())try{e=JSON.parse(e)}catch(t){e=-1}return c.call(u,e)}return c.call(u,-1)}}}var a=e("./jsonp"),s=e("./noop"),o=e("./queryString");t.exports=r},{"./jsonp":7,"./noop":10,"./queryString":13}],3:[function(e,t){t.exports=!!document.createElement("video").canPlayType("application/x-mpegURL")},{}],4:[function(e,t){function n(e,t){var n=document.createElement(e);if("function"==typeof t)t.call(n);else for(var o in t)if(t.hasOwnProperty(o))switch(o){case"appendTo":t[o].appendChild(n);break;case"innerHTML":case"className":case"id":n[o]=t[o];break;case"style":var i=t[o];for(var r in i)i.hasOwnProperty(r)&&(n.style[r]=i[r]);break;default:n.setAttribute(o,t[o]+"")}return n}t.exports=n},{}],5:[function(e,t){var n='<div style="text-shadow:0 0 2px #eee;letter-spacing:-1px;background:#eee;font-weight:bold;padding:0;font-family:arial,sans-serif;font-size:30px;color:#ccc;width:152px;height:52px;border:4px solid #ccc;border-radius:12px;position:absolute;top:50%;left:50%;margin:-30px 0 0 -80px;text-align:center;line-height:52px;">Flash</div>',o=0,i={},r=function(){var e=this.getAttribute("data-flash-index"),t=i[e];t.setAttribute("data-flash-show","isshow"),this.parentNode.insertBefore(t,this),this.parentNode.removeChild(this),this.removeEventListener("click",r,!1)},a=function(e,t,a){var s=o++,l=document.defaultView.getComputedStyle(e,null),c=l.position;c="static"===c?"relative":c;var d=l.margin,u="inline"==l.display?"inline-block":l.display,l=["","width:"+t+"px","height:"+a+"px","position:"+c,"margin:"+d,"display:"+u,"margin:0","padding:0","border:0","border-radius:1px","cursor:pointer","background:-webkit-linear-gradient(top, rgba(240,240,240,1)0%,rgba(220,220,220,1)100%)",""];i[s]=e;var h=document.createElement("div");return h.setAttribute("title","&#x70B9;&#x6211;&#x8FD8;&#x539F;Flash"),h.setAttribute("data-flash-index",""+s),e.parentNode.insertBefore(h,e),e.parentNode.removeChild(e),h.addEventListener("click",r,!1),h.style.cssText+=l.join(";"),h.innerHTML=n,h},s=function(e){if(e instanceof HTMLObjectElement){if(""==e.innerHTML.trim())return;if(e.getAttribute("classid")&&!/^java:/.test(e.getAttribute("classid")))return}else if(!(e instanceof HTMLEmbedElement))return;var t=e.offsetWidth,n=e.offsetHeight;t>160&&n>60&&a(e,t,n)};t.exports=function(){for(var e=document.getElementsByTagName("embed"),t=document.getElementsByTagName("object"),n=0,o=t.length;o>n;n++)t[n]&&s(t[n]);for(var n=0,o=e.length;o>n;n++)e[n]&&s(e[n])}},{}],6:[function(e,t){function n(e,t,n,a,s){s=s||{},o({url:r,param:{params:encodeURIComponent(i(n)),url:encodeURIComponent(e),post:"post"===t?1:0,xml:s.xml?1:0,text:s.text?1:0,gzinflate:s.gzinflate?1:0,ua:s.ua||""},jsonp:!0,callback:a,context:s.context})}var o=(e("./createElement"),e("./ajax")),i=e("./queryString"),r="http://zythum.sinaapp.com/mama2/proxy.php";t.exports=n},{"./ajax":2,"./createElement":4,"./queryString":13}],7:[function(e,t){function n(){return a+s++}function o(e,t,o){o=o||"callback";var a=n();window[a]=function(e){clearTimeout(s),window[a]=r,t(e),document.body.removeChild(c)};var s=setTimeout(function(){window[a](-1)},l),c=i("script",{appendTo:document.body,src:e+(e.indexOf("?")>=0?"&":"?")+o+"="+a})}var i=e("./createElement"),r=e("./noop"),a="MAMA2_HTTP_JSONP_CALLBACK",s=0,l=1e4;t.exports=o},{"./createElement":4,"./noop":10}],8:[function(e,t){function n(e,t){void 0===o&&(o=r("div",{style:{backgroundColor:"#24272A",color:"#ffffff",position:"fixed",zIndex:"1000000",top:"0",left:"0",padding:"5px 10px",fontSize:"14px"}})),clearTimeout(i),o.innerHTML='<span style="color:#DF6558">MAMA2 &gt;</span> '+e,console&&console.log&&console.log("%c MAMA2 %c %s","background:#24272A; color:#ffffff","",e),document.body.appendChild(o),i=setTimeout(function(){document.body.removeChild(o)},1e3*t||a)}var o,i,r=e("./createElement"),a=1e4;t.exports=n},{"./createElement":4}],9:[function(e,t){t.exports="MAMAKEY_\u7530\u7434\u662f\u8fd9\u4e2a\u4e16\u754c\u4e0a\u6700\u53ef\u7231\u7684\u5973\u5b69\u5b50\u5475\u5475\u5475\u5475\uff0c\u6211\u8981\u8ba9\u5168\u4e16\u754c\u90fd\u5728\u77e5\u9053"},{}],10:[function(e,t){t.exports=function(){}},{}],11:[function(e,t){var n;!function o(t,n,i){function r(s,l){if(!n[s]){if(!t[s]){var c="function"==typeof e&&e;if(!l&&c)return c(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){var n=t[s][1][e];return r(n?n:e)},d,d.exports,o,t,n,i)}return n[s].exports}for(var a="function"==typeof e&&e,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t){function n(e){for(var t=[],n=1;n<arguments.length;n++){var i=arguments[n],r=i.init;t.push(r),delete i.init,o(e.prototype,i)}e.prototype.init=function(){t.forEach(function(e){e.call(this)}.bind(this))}}var o=e("./extend");t.exports=n},{"./extend":9}],2:[function(e,t){var n=e("./player.css"),o=e("./player.html"),i=(e("./extend"),e("./createElement")),r=e("./parseDOMByClassNames");t.exports={init:function(){var e=function(){var e=this.iframe.contentDocument.getElementsByTagName("head")[0],t=this.iframe.contentDocument.body;i("style",function(){e.appendChild(this);try{this.styleSheet.cssText=n}catch(t){this.appendChild(document.createTextNode(n))}}),i("link",{appendTo:e,href:"http://libs.cncdn.cn/font-awesome/4.3.0/css/font-awesome.min.css",rel:"stylesheet",type:"text/css"}),t.innerHTML=o,this.DOMs=r(t,["player","video","video-frame","comments","comments-btn","play","progress_anchor","buffered_anchor","fullscreen","allscreen","hd","volume_anchor","current","duration"]),this.video=this.DOMs.video}.bind(this),t=document.getElementById(this.id),a=this.iframe=i("iframe",{allowTransparency:!0,frameBorder:"no",scrolling:"no",src:"about:blank",mozallowfullscreen:"mozallowfullscreen",webkitallowfullscreen:"webkitallowfullscreen",style:{width:this.size[0]+"px",height:this.size[1]+"px",overflow:"hidden"}});t&&t.parentNode?(t.parentNode.replaceChild(a,t),e()):(document.body.appendChild(a),e(),document.body.removeChild(a))}}},{"./createElement":7,"./extend":9,"./parseDOMByClassNames":11,"./player.css":12,"./player.html":13}],3:[function(e,t){function n(e){e.strokeStyle="black",e.lineWidth=3,e.font='bold 20px "PingHei","Lucida Grande", "Lucida Sans Unicode", "STHeiti", "Helvetica","Arial","Verdana","sans-serif"'}var o=(e("./createElement"),.1),i=25,r=4e3,a=document.createElement("canvas").getContext("2d");n(a);var s=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(e){setTimeout(e,1e3/60)};t.exports={init:function(){this.video.addEventListener("play",this.reStartComment.bind(this)),this.video.addEventListener("pause",this.pauseComment.bind(this)),this.lastCommnetUpdateTime=0,this.lastCommnetIndex=0,this.commentLoopPreQueue=[],this.commentLoopQueue=[],this.commentButtonPreQueue=[],this.commentButtonQueue=[],this.commentTopPreQueue=[],this.commentTopQueue=[],this.drawQueue=[],this.preRenders=[],this.preRenderMap={},this.enableComment=void 0===this.comments?!1:!0,this.prevDrawCanvas=document.createElement("canvas"),this.canvas=this.DOMs.comments.getContext("2d"),this.comments&&this.DOMs.player.classList.add("has-comments"),this.DOMs["comments-btn"].classList.add("enable"),this.DOMs.comments.display=this.enableComment?"block":"none";var e=0,t=function(){(e=~e)&&this.onCommentTimeUpdate(),s(t)}.bind(this);t()},needDrawText:function(e,t,n){this.drawQueue.push([e,t,n])},drawText:function(){var e=this.prevDrawCanvas,t=this.prevDrawCanvas.getContext("2d");e.width=this.canvasWidth,e.height=this.canvasHeight,t.clearRect(0,0,this.canvasWidth,this.canvasHeight);var o=[];this.preRenders.forEach(function(e,t){e.used=!1,void 0===e.cid&&o.push(t)});for(var r;r=this.drawQueue.shift();)!function(e,r){var a,s=e[0].text+e[0].color,l=r.preRenderMap[s];if(void 0===l){var l=o.shift();void 0===l?(a=document.createElement("canvas"),l=r.preRenders.push(a)-1):a=r.preRenders[l];var c=a.width=e[0].width,d=a.height=i+10,u=a.getContext("2d");u.clearRect(0,0,c,d),n(u),u.fillStyle=e[0].color,u.strokeText(e[0].text,0,i),u.fillText(e[0].text,0,i),a.cid=s,r.preRenderMap[s]=l}else a=r.preRenders[l];a.used=!0,t.drawImage(a,e[1],e[2])}(r,this);this.preRenders.forEach(function(e){e.used===!1&&(delete this.preRenderMap[e.cid],e.cid=void 0)}.bind(this)),this.canvas.clearRect(0,0,this.canvasWidth,this.canvasHeight),this.canvas.drawImage(e,0,0)},createComment:function(e,t){if(void 0===e)return!1;var n=a.measureText(e.text);return{startTime:t,text:e.text,color:e.color,width:n.width+20}},commentTop:function(e,t,n){this.commentTopQueue.forEach(function(t,o){void 0!=t&&(n>t.startTime+r?this.commentTopQueue[o]=void 0:this.needDrawText(t,(e-t.width)/2,i*o))}.bind(this));for(var o;o=this.commentTopPreQueue.shift();)o=this.createComment(o,n),this.commentTopQueue.forEach(function(t,n){o&&void 0===t&&(t=this.commentTopQueue[n]=o,this.needDrawText(t,(e-o.width)/2,i*n),o=void 0)}.bind(this)),o&&(this.commentTopQueue.push(o),this.needDrawText(o,(e-o.width)/2,i*this.commentTopQueue.length-1))},commentBottom:function(e,t,n){t-=10,this.commentButtonQueue.forEach(function(o,a){void 0!=o&&(n>o.startTime+r?this.commentButtonQueue[a]=void 0:this.needDrawText(o,(e-o.width)/2,t-i*(a+1)))}.bind(this));for(var o;o=this.commentButtonPreQueue.shift();)o=this.createComment(o,n),this.commentButtonQueue.forEach(function(n,r){o&&void 0===n&&(n=this.commentButtonQueue[r]=o,this.needDrawText(n,(e-o.width)/2,t-i*(r+1)),o=void 0)}.bind(this)),o&&(this.commentButtonQueue.push(o),this.needDrawText(o,(e-o.width)/2,t-i*this.commentButtonQueue.length))},commentLoop:function(e,t,n){for(var r=t/i|0,a=-1;++a<r;){var s=this.commentLoopQueue[a];if(void 0===s&&(s=this.commentLoopQueue[a]=[]),this.commentLoopPreQueue.length>0){var l=0===s.length?void 0:s[s.length-1];if(void 0===l||(n-l.startTime)*o>l.width){var c=this.createComment(this.commentLoopPreQueue.shift(),n);c&&s.push(c)}}this.commentLoopQueue[a]=s.filter(function(t){var r=(n-t.startTime)*o;return 0>r||r>t.width+e?!1:(this.needDrawText(t,e-r,i*a),!0)}.bind(this))}for(var d=this.commentLoopQueue.length-r;d-->0;)this.commentLoopQueue.pop()},pauseComment:function(){this.pauseCommentAt=Date.now()},reStartComment:function(){if(this.pauseCommentAt){var e=Date.now()-this.pauseCommentAt;this.commentLoopQueue.forEach(function(t){t.forEach(function(t){t&&(t.startTime+=e)})}),this.commentButtonQueue.forEach(function(t){t&&(t.startTime+=e)}),this.commentTopQueue.forEach(function(t){t&&(t.startTime+=e)})}this.pauseCommentAt=void 0},drawComment:function(){if(!this.pauseCommentAt){var e=Date.now(),t=this.DOMs["video-frame"].offsetWidth,n=this.DOMs["video-frame"].offsetHeight;t!=this.canvasWidth&&(this.DOMs.comments.width=t,this.canvasWidth=t),n!=this.canvasHeight&&(this.DOMs.comments.height=n,this.canvasHeight=n);var o=this.video.offsetWidth,i=this.video.offsetHeight;this.commentLoop(o,i,e),this.commentTop(o,i,e),this.commentBottom(o,i,e),this.drawText()}},onCommentTimeUpdate:function(){if(this.enableComment!==!1){var e=this.video.currentTime;if(Math.abs(e-this.lastCommnetUpdateTime)<=1&&e>this.lastCommnetUpdateTime){var t=0;for(this.lastCommnetIndex&&this.comments[this.lastCommnetIndex].time<=this.lastCommnetUpdateTime&&(t=this.lastCommnetIndex);++t<this.comments.length;)if(!(this.comments[t].time<=this.lastCommnetUpdateTime)){if(this.comments[t].time>e)break;switch(this.comments[t].pos){case"bottom":this.commentButtonPreQueue.push(this.comments[t]);break;case"top":this.commentTopPreQueue.push(this.comments[t]);break;default:this.commentLoopPreQueue.push(this.comments[t])}this.lastCommnetIndex=t}}try{this.drawComment()}catch(n){}this.lastCommnetUpdateTime=e}}}},{"./createElement":7}],4:[function(e,t){function n(e){return Array.prototype.slice.call(e)}function o(e,t,n,o){function i(t){var n=(t.clientX-e.parentNode.getBoundingClientRect().left)/e.parentNode.offsetWidth;return Math.min(Math.max(n,0),1)}function r(t){1==t.which&&(l=!0,e.draging=!0,a(t))}function a(e){if(1==e.which&&l===!0){var t=i(e);n(t)}}function s(t){if(1==t.which&&l===!0){var r=i(t);n(r),o(r),l=!1,delete e.draging}}var l=!1;n=n||function(){},o=o||function(){},e.parentNode.addEventListener("mousedown",r),t.addEventListener("mousemove",a),t.addEventListener("mouseup",s)}var i=(e("./createElement"),e("./delegateClickByClassName")),r=e("./timeFormat");t.exports={init:function(){var e=this.iframe.contentDocument,t=i(e);t.on("play",this.onPlayClick,this),t.on("video-frame",this.onVideoClick,this),t.on("source",this.onSourceClick,this),t.on("allscreen",this.onAllScreenClick,this),t.on("fullscreen",this.onfullScreenClick,this),t.on("normalscreen",this.onNormalScreenClick,this),t.on("comments-btn",this.oncommentsBtnClick,this),e.documentElement.addEventListener("keydown",this.onKeyDown.bind(this),!1),this.DOMs.player.addEventListener("mousemove",this.onMouseActive.bind(this)),o(this.DOMs.progress_anchor,e,this.onProgressAnchorWillSet.bind(this),this.onProgressAnchorSet.bind(this)),o(this.DOMs.volume_anchor,e,this.onVolumeAnchorWillSet.bind(this))},onKeyDown:function(e){switch(e.preventDefault(),e.keyCode){case 32:this.onPlayClick();break;case 39:this.video.currentTime=Math.min(this.video.duration,this.video.currentTime+10);break;case 37:this.video.currentTime=Math.max(0,this.video.currentTime-10);break;case 38:this.video.volume=Math.min(1,this.video.volume+.1),this.DOMs.volume_anchor.style.width=100*this.video.volume+"%";break;case 40:this.video.volume=Math.max(0,this.video.volume-.1),this.DOMs.volume_anchor.style.width=100*this.video.volume+"%";break;case 65:this.DOMs.player.classList.contains("allscreen")?this.onNormalScreenClick():this.onAllScreenClick();break;case 70:this.DOMs.player.classList.contains("fullscreen")||this.onfullScreenClick()}},onVideoClick:function(){void 0==this.videoClickDblTimer?this.videoClickDblTimer=setTimeout(function(){this.videoClickDblTimer=void 0,this.onPlayClick()}.bind(this),300):(clearTimeout(this.videoClickDblTimer),this.videoClickDblTimer=void 0,document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?this.onNormalScreenClick():this.onfullScreenClick())},onMouseActive:function(){this.DOMs.player.classList.add("active"),clearTimeout(this.MouseActiveTimer),this.MouseActiveTimer=setTimeout(function(){this.DOMs.player.classList.remove("active")}.bind(this),1e3)},onPlayClick:function(){this.DOMs.play.classList.contains("paused")?(this.video.play(),this.DOMs.play.classList.remove("paused")):(this.video.pause(),this.DOMs.play.classList.add("paused"))},onSourceClick:function(e){e.classList.contains("curr")||(this.video.preloadStartTime=this.video.currentTime,this.video.src=this.sourceList[0|e.getAttribute("sourceIndex")][1],n(e.parentNode.childNodes).forEach(function(t){e===t?t.classList.add("curr"):t.classList.remove("curr")}.bind(this)))},onProgressAnchorWillSet:function(e){var t=this.video.duration,n=t*e;this.DOMs.current.innerHTML=r(n),this.DOMs.duration.innerHTML=r(t),this.DOMs.progress_anchor.style.width=100*e+"%"},onProgressAnchorSet:function(e){this.video.currentTime=this.video.duration*e},onVolumeAnchorWillSet:function(e){this.video.volume=e,this.DOMs.volume_anchor.style.width=100*e+"%"},onAllScreenClick:function(){var e=document.documentElement.clientWidth,t=document.documentElement.clientHeight;this.iframe.style.cssText=";position:fixed;top:0;left:0;width:"+e+"px;height:"+t+"px;z-index:999999;",this.allScreenWinResizeFunction=this.allScreenWinResizeFunction||function(){this.iframe.style.width=document.documentElement.clientWidth+"px",this.iframe.style.height=document.documentElement.clientHeight+"px"}.bind(this),window.removeEventListener("resize",this.allScreenWinResizeFunction),window.addEventListener("resize",this.allScreenWinResizeFunction),this.DOMs.player.classList.add("allscreen")},onfullScreenClick:function(){["webkitRequestFullScreen","mozRequestFullScreen","requestFullScreen"].forEach(function(e){this.DOMs.player[e]&&this.DOMs.player[e]()}.bind(this)),this.onMouseActive()},onNormalScreenClick:function(){window.removeEventListener("resize",this.allScreenWinResizeFunction),this.iframe.style.cssText=";width:"+this.size[0]+"px;height:"+this.size[1]+"px;",["webkitCancelFullScreen","mozCancelFullScreen","cancelFullScreen"].forEach(function(e){document[e]&&document[e]()}),this.DOMs.player.classList.remove("allscreen")},oncommentsBtnClick:function(){this.enableComment=!this.DOMs["comments-btn"].classList.contains("enable"),this.enableComment?(setTimeout(function(){this.DOMs.comments.style.display="block"}.bind(this),80),this.DOMs["comments-btn"].classList.add("enable")):(this.DOMs.comments.style.display="none",this.DOMs["comments-btn"].classList.remove("enable"))}}},{"./createElement":7,"./delegateClickByClassName":8,"./timeFormat":14}],5:[function(e,t){var n=(e("./extend"),e("./createElement"));e("./parseDOMByClassNames"),t.exports={init:function(){var e=0;this.sourceList.forEach(function(t,o){n("li",{appendTo:this.DOMs.hd,sourceIndex:o,className:"source "+(o===e?"curr":""),innerHTML:t[0]})}.bind(this)),this.DOMs.video.src=this.sourceList[e][1]}}},{"./createElement":7,"./extend":9,"./parseDOMByClassNames":11}],6:[function(e,t){var n=e("./timeFormat");t.exports={init:function(){this.video.addEventListener("timeupdate",this.onVideoTimeUpdate.bind(this)),this.video.addEventListener("play",this.onVideoPlay.bind(this)),this.video.addEventListener("pause",this.onVideoTimePause.bind(this)),this.video.addEventListener("loadedmetadata",this.onVideoLoadedMetaData.bind(this)),setInterval(this.videoBuffered.bind(this),1e3),this.DOMs.volume_anchor.style.width=100*this.video.volume+"%"},onVideoTimeUpdate:function(){var e=this.video.currentTime,t=this.video.duration;this.DOMs.current.innerHTML=n(e),this.DOMs.duration.innerHTML=n(t),this.DOMs.progress_anchor.draging||(this.DOMs.progress_anchor.style.width=100*Math.min(Math.max(e/t,0),1)+"%")},videoBuffered:function(){var e=this.video.buffered,t=this.video.currentTime,n=0==e.length?0:e.end(e.length-1);this.DOMs.buffered_anchor.style.width=100*Math.min(Math.max(n/this.video.duration,0),1)+"%",0==n||t>=n?this.DOMs.player.classList.add("loading"):this.DOMs.player.classList.remove("loading")},onVideoPlay:function(){this.DOMs.play.classList.remove("paused")},onVideoTimePause:function(){this.DOMs.play.classList.add("paused")},onVideoLoadedMetaData:function(){this.video.preloadStartTime&&(this.video.currentTime=this.video.preloadStartTime,delete this.video.preloadStartTime)}}},{"./timeFormat":14}],7:[function(e,t){function n(e,t){var n=document.createElement(e);if("function"==typeof t)t.call(n);else for(var o in t)if(t.hasOwnProperty(o))switch(o){case"appendTo":t[o].appendChild(n);break;case"text":var i=document.createTextNode(t[o]);n.innerHTML="",n.appendChild(i);break;case"innerHTML":case"className":case"id":n[o]=t[o];break;case"style":var r=t[o];for(var a in r)r.hasOwnProperty(a)&&(n.style[a]=r[a]);break;default:n.setAttribute(o,t[o]+"")}return n}t.exports=n},{}],8:[function(e,t){function n(e){return Array.prototype.slice.call(e)}function o(e){this._eventMap={},this._rootElement=e,this._isRootElementBindedClick=!1,this._bindClickFunction=function(e){!function t(e,o){o&&o.nodeName&&(o.classList&&n(o.classList).forEach(function(t){e.trigger(t,o)}),t(e,o.parentNode))}(this,e.target)}.bind(this)}var i=e("./extend");i(o.prototype,{on:function(e,t,n){void 0===this._eventMap[e]&&(this._eventMap[e]=[]),this._eventMap[e].push([t,n]),this._isRootElementBindedClick||(_isRootElementBindedClick=!0,this._rootElement.addEventListener("click",this._bindClickFunction,!1))},off:function(e,t){if(void 0!=this._eventMap[e])for(var n=this._eventMap[e].length;n--;)if(this._eventMap[e][n][0]===t){this._eventMap[e].splice(n,1);break}for(var o in this._eventMap)break;void 0===o&&this._isRootElementBindedClick&&(_isRootElementBindedClick=!1,this._rootElement.removeEventListener("click",this._bindClickFunction,!1))},trigger:function(e,t){t=void 0===t?this._rootElement.getElementsByTagNames(e):[t],t.forEach(function(t){(this._eventMap[e]||[]).forEach(function(e){e[0].call(e[1],t)})}.bind(this))}}),t.exports=function(e){return new o(e)}},{"./extend":9}],9:[function(e,t){function n(e){for(var t,n=arguments.length,o=1;n>o;){t=arguments[o++];for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])}return e}t.exports=n},{}],10:[function(e){function t(e,t,n,o){this.id=e,this.size=t.split("x"),this.sourceList=n||[],this.comments=o,this.init()}e("./component")(t,e("./component_build"),e("./component_event"),e("./component_video"),e("./component_source"),e("./component_comments")),n=t},{"./component":1,"./component_build":2,"./component_comments":3,"./component_event":4,"./component_source":5,"./component_video":6}],11:[function(e,t){function n(e,t){var n={};return t.forEach(function(t){n[t]=e.getElementsByClassName(t)[0]}),n}t.exports=n},{}],12:[function(e,t){t.exports='* { margin:0; padding:0; }body { font-family: "PingHei","Lucida Grande", "Lucida Sans Unicode", "STHeiti", "Helvetica","Arial","Verdana","sans-serif"; font-size:16px;}html, body, .player { height: 100%; }.player:-webkit-full-screen { width: 100%; cursor:url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==); }.player:-moz-full-screen { width: 100%; cursor:url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==); }.player:full-screen { width: 100%; cursor:url(data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQImWNgYGBgAAAABQABh6FO1AAAAABJRU5ErkJggg==); }.player {		border-radius: 3px;	overflow: hidden;	position: relative;	cursor: default;	-webkit-user-select: none;	-moz-user-select: none;	user-select: none;}.video-frame {	box-sizing: border-box;	padding-bottom: 50px;	height: 100%;	overflow: hidden;	position: relative;}.video-frame .comments{	position: absolute;	top:0;left:0;	width:100%;	height:100%;	-webkit-transform:translateZ(0);	-moz-transform:translateZ(0);	transform:translateZ(0);	pointer-events: none;}.player:-webkit-full-screen .video-frame { padding-bottom: 0px; }.player:-moz-full-screen .video-frame { padding-bottom: 0px; }.player:full-screen .video-frame{ padding-bottom: 0px; }.video {	width: 100%;	height: 100%;	background: #000000;}.controller {	position: absolute;	bottom: 0px;	left:0;	right:0;	background: #24272A;	height: 50px;}.controller .loading-icon {	display: none;	position: absolute;	width: 20px;	height: 20px;	line-height: 20px;	text-align: center;	font-size: 20px;	color: #ffffff;	top: -30px;	right: 10px;}.player.loading .controller .loading-icon {	display: block;}.player:-webkit-full-screen .controller {	-webkit-transform:translateY(50px);	-webkit-transition: -webkit-transform 0.3s ease;}.player:-moz-full-screen .controller {	-moz-transform:translateY(50px);	-moz-transition: -moz-transform 0.3s ease;}.player:full-screen .controller {	transform:translateY(50px);	transition: transform 0.3s ease;}.player.active:-webkit-full-screen {	cursor: default;}.player.active:-moz-full-screen {	cursor: default;}.player.active:full-screen {	cursor: default;}.player.active:-webkit-full-screen .controller,.player:-webkit-full-screen .controller:hover {	-webkit-transform:translateY(0);	cursor: default;}.player.active:-moz-full-screen .controller,.player:-moz-full-screen .controller:hover {	-moz-transform:translateY(0);	cursor: default;}.player.active:full-screen .controller.player:full-screen .controller:hover {	transform:translateY(0);	cursor: default;}.player.active:-webkit-full-screen .controller .progress .progress_anchor:after,.player:-webkit-full-screen .controller:hover .progress .progress_anchor:after {	height:12px;}.player.active:-moz-full-screen .controller .progress .progress_anchor:after,.player:-moz-full-screen .controller:hover .progress .progress_anchor:after {	height:12px;}.player.active:full-screen .controller .progress .progress_anchor:after,.player:full-screen .controller:hover .progress .progress_anchor:after {	height:12px;}.player:-webkit-full-screen .controller .progress .progress_anchor:after {	height:4px;}.player:-moz-full-screen .controller .progress .progress_anchor:after {	height:4px;}.player:full-screen .controller .progress .progress_anchor:after {	height:4px;}.controller .progress {	position: absolute;	top:0px;	left:0;	right:0;	border-right: 4px solid #181A1D;	border-left: 8px solid #DF6558;	height: 4px;	background: #181A1D;	z-index:1;	-webkit-transform: translateZ(0);	-moz-transform: translateZ(0);	transform: translateZ(0);}.controller .progress:after {	content:"";	display: block;	position: absolute;	top:0px;	left:0;	right:0;	bottom:-10px;	height: 10px;}.controller .progress .anchor {	height: 4px;	background: #DF6558;	position: absolute;	top:0;left:0;}.controller .progress .anchor:after {	content:"";	display: block;	width: 12px;	background: #DF6558;	position: absolute;	right:-4px;	top: 50%;	height: 12px;	box-shadow: 0 0 2px rgba(0,0,0, 0.4);	border-radius: 12px;	-webkit-transform: translateY(-50%);	-moz-transform: translateY(-50%);	transform: translateY(-50%);}.controller .progress .anchor.buffered_anchor {		position: relative;	background: rgba(255,255,255,0.1);}.controller .progress .anchor.buffered_anchor:after {	box-shadow: none;	height: 4px;	width: 4px;	border-radius: 0;	background: rgba(255,255,255,0.1);}.controller .right {	height: 50px;	position: absolute;	top:0;	left:10px;	right:10px;	pointer-events: none;}.controller .play,.controller .volume,.controller .time,.controller .hd,.controller .allscreen,.controller .normalscreen,.controller .comments-btn,.controller .fullscreen {	padding-top:4px;	height: 46px;	line-height: 50px;	text-align: center;	color: #eeeeee;	float:left;	text-shadow:0 0 2px rgba(0,0,0,0.5);	pointer-events: auto;}.controller .hd,.controller .allscreen,.controller .normalscreen,.controller .comments-btn,.controller .fullscreen {	float:right;}.controller .play {	width: 36px;	padding-left: 10px;	cursor: pointer;}.controller .play:after {	font-family: "FontAwesome";	content: "\\f04c";}.controller .play.paused:after {	content: "\\f04b";}.controller .volume {	min-width: 30px;	position: relative;	overflow: hidden;	-webkit-transition: min-width 0.3s ease 0.5s;	-moz-transition: min-width 0.3s ease 0.5s;	transition: min-width 0.3s ease 0.5s;}.controller .volume:hover {	min-width: 128px;}.controller .volume:before {	font-family: "FontAwesome";	content: "\\f028";	width: 36px;	display: block;}.controller .volume .progress {	width: 70px;	top: 27px;	left: 40px;}.controller .time {	font-size: 12px;	font-weight: bold;	padding-left: 10px;}.controller .time .current {	color: #DF6558;}.controller .fullscreen,.controller .allscreen,.controller .comments-btn,.controller .normalscreen {	width: 36px;	cursor: pointer;}.controller .comments-btn {	margin-right: -15px;	display: none;}.player.has-comments .controller .comments-btn {	display: block;}.controller .comments-btn:before {	font-family: "FontAwesome";	content: "\\f075";}.controller .comments-btn.enable:before {	color: #DF6558;}.controller .normalscreen {	display: none;}.player:-webkit-full-screen .controller .fullscreen,.player:-webkit-full-screen .controller .allscreen {	display: none;}.player:-webkit-full-screen .controller .normalscreen,.player.allscreen .controller .normalscreen {	display: block;}.player.allscreen .controller .allscreen {	display: none;}.controller .fullscreen:before {	font-family: "FontAwesome";	content: "\\f0b2";}.controller .allscreen:before {	font-family: "FontAwesome";	content: "\\f065";}.controller .normalscreen:before {	font-family: "FontAwesome";	content: "\\f066";}.controller .hd {	white-space:nowrap;	overflow: hidden;	margin-right: 10px;	text-align: right;}.controller .hd:hover li {	max-width: 300px;}.controller .hd li {	display: inline-block;	max-width: 0px;	-webkit-transition: max-width 0.8s ease 0.3s;	-moz-transition: max-width 0.8s ease 0.3s;	transition: max-width 0.8s ease 0.3s;	overflow: hidden;	font-size: 14px;	font-weight: bold;	position: relative;	cursor: pointer;}.controller .hd li:before {	content: "";	display: inline-block;	width:20px;}.controller .hd li:before {	content: "";	display: inline-block;	width:20px;}.controller .hd li.curr {	max-width: 300px;	cursor: default;	color: #DF6558;}.controller .hd li.curr:after {	content: "";	display: block;	position: absolute;	width:4px;	height:4px;	border-radius: 50%;	background: #ffffff;	left: 12px;	top: 23px;	opacity: 0;	-webkit-transition: opacity 0.5s ease 0.3s;	-moz-transition: opacity 0.5s ease 0.3s;	transition: opacity 0.5s ease 0.3s;}'},{}],13:[function(e,t){t.exports='<div class="player">	<div class="video-frame"><video class="video" autoplay="autoplay"></video><canvas class="comments"></canvas></div>	<div class="controller">		<div class="loading-icon fa fa-spin fa-circle-o-notch"></div>		<div class="progress">			<div class="anchor buffered_anchor" style="width:0%"></div>			<div class="anchor progress_anchor" style="width:0%"></div>		</div>		<div class="right">		 			 	<div class="fullscreen"></div>		 	<div class="allscreen"></div>		 	<div class="normalscreen"></div>		 	<ul class="hd"></ul>		 	<div class="comments-btn"></div>		 </div>		 <div class="left">		 	<div class="play paused"></div>		 	<div class="volume">			 	<div class="progress">			 		<div class="anchor volume_anchor" style="width:0%"></div>		 		</div>		 	</div>		 	<div class="time">		 		<span class="current">00:00:00</span> / <span class="duration">00:00:00</span>		 	</div>		 </div>	</div></div>'
  },{}],14:[function(e,t){function n(e,t){return(Array(t).join(0)+e).slice(-t)}function o(e){var t,o=[];return[3600,60,1].forEach(function(i){o.push(n(t=e/i|0,2)),e-=t*i}),o.join(":")}t.exports=o},{}]},{},[10]),t.exports=n},{}],12:[function(e,t){function n(e,t){for(var n=decodeURI(e),o=f[t?"strict":"loose"].exec(n),i={attr:{},param:{},seg:{}},r=14;r--;)i.attr[p[r]]=o[r]||"";return i.param.query=a(i.attr.query),i.param.fragment=a(i.attr.fragment),i.seg.path=i.attr.path.replace(/^\/+|\/+$/g,"").split("/"),i.seg.fragment=i.attr.fragment.replace(/^\/+|\/+$/g,"").split("/"),i.attr.base=i.attr.host?(i.attr.protocol?i.attr.protocol+"://"+i.attr.host:i.attr.host)+(i.attr.port?":"+i.attr.port:""):"",i}function o(e,t){if(0===e[t].length)return e[t]={};var n={};for(var o in e[t])n[o]=e[t][o];return e[t]=n,n}function i(e,t,n,r){var a=e.shift();if(a){var s=t[n]=t[n]||[];"]"==a?d(s)?""!==r&&s.push(r):"object"==typeof s?s[u(s).length]=r:s=t[n]=[t[n],r]:~a.indexOf("]")?(a=a.substr(0,a.length-1),!v.test(a)&&d(s)&&(s=o(t,n)),i(e,s,a,r)):(!v.test(a)&&d(s)&&(s=o(t,n)),i(e,s,a,r))}else d(t[n])?t[n].push(r):t[n]="object"==typeof t[n]?r:"undefined"==typeof t[n]?r:[t[n],r]}function r(e,t,n){if(~t.indexOf("]")){var o=t.split("[");i(o,e,"base",n)}else{if(!v.test(t)&&d(e.base)){var r={};for(var a in e.base)r[a]=e.base[a];e.base=r}""!==t&&s(e.base,t,n)}return e}function a(e){return c(String(e).split(/&|;/),function(e,t){try{t=decodeURIComponent(t.replace(/\+/g," "))}catch(n){}var o=t.indexOf("="),i=l(t),a=t.substr(0,i||o),s=t.substr(i||o,t.length);return s=s.substr(s.indexOf("=")+1,s.length),""===a&&(a=t,s=""),r(e,a,s)},{base:{}}).base}function s(e,t,n){var o=e[t];"undefined"==typeof o?e[t]=n:d(o)?o.push(n):e[t]=[o,n]}function l(e){for(var t,n,o=e.length,i=0;o>i;++i)if(n=e[i],"]"==n&&(t=!1),"["==n&&(t=!0),"="==n&&!t)return i}function c(e,t){for(var n=0,o=e.length>>0,i=arguments[2];o>n;)n in e&&(i=t.call(void 0,i,e[n],n,e)),++n;return i}function d(e){return"[object Array]"===Object.prototype.toString.call(e)}function u(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function h(e,t){return 1===arguments.length&&e===!0&&(t=!0,e=void 0),t=t||!1,e=e||window.location.toString(),{data:n(e,t),attr:function(e){return e=m[e]||e,"undefined"!=typeof e?this.data.attr[e]:this.data.attr},param:function(e){return"undefined"!=typeof e?this.data.param.query[e]:this.data.param.query},fparam:function(e){return"undefined"!=typeof e?this.data.param.fragment[e]:this.data.param.fragment},segment:function(e){return"undefined"==typeof e?this.data.seg.path:(e=0>e?this.data.seg.path.length+e:e-1,this.data.seg.path[e])},fsegment:function(e){return"undefined"==typeof e?this.data.seg.fragment:(e=0>e?this.data.seg.fragment.length+e:e-1,this.data.seg.fragment[e])}}}var p=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],m={anchor:"fragment"},f={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},v=/^[0-9]+$/;t.exports=h},{}],13:[function(e,t){function n(e){var t=[];for(one in e)e.hasOwnProperty(one)&&t.push([one,e[one]].join("="));return t.join("&")}t.exports=n},{}],14:[function(e,t,n){var o=(e("./canPlayM3U8"),e("./ajax")),i=e("./log");n.match=function(e){if(window.so&&window.so.variables){var t=window.so.variables.file,n=window.so.variables.seccode,o=window.so.variables.max_vid;return!!t&!!n&!!o&/view_video\.php\?viewkey/.test(e.attr("source"))}return!1},n.getVideos=function(e,t){var n=window.so.variables.file,r=window.so.variables.seccode,a=window.so.variables.max_vid,s=function(e){o({url:"http://www.91porn.com/getfile.php",jsonp:!1,param:{VID:n,mp4:"0",seccode:r,max_vid:a},contentType:"notJSON",callback:function(t){if(-1==t||-1==t.code)return i("\u89e3\u679091porn\u89c6\u9891\u5730\u5740\u5931\u8d25");mp4Url=t.split("=")[1].split("&")[0];var n=[];return n.push(["\u4f4e\u6e05\u7248",mp4Url]),i("\u89e3\u679091porn\u89c6\u9891\u5730\u5740\u6210\u529f "+n.map(function(e){return"<a href="+e[1]+">"+e[0]+"</a>"}).join(" "),2),e(n)}})};s(t)}},{"./ajax":2,"./canPlayM3U8":3,"./log":8}],15:[function(e,t,n){function o(e,t){return(Array(t).join(0)+e).slice(-t)}var i=(e("./purl"),e("./log")),r=e("./httpProxy");n.match=function(e){return e.attr("host").indexOf("bilibili")>=0&&/^\/video\/av\d+\/$/.test(e.attr("directory"))},n.getVideos=function(e,t){i("\u5f00\u59cb\u89e3\u6790bilibli\u89c6\u9891\u5730\u5740");var n=e.attr("directory").match(/^\/video\/av(\d+)\/$/)[1],a=function(){return pageMatch=e.attr("file").match(/^index\_(\d+)\.html$/),pageMatch?pageMatch[1]:1}();r("http://www.bilibili.com/m/html5","get",{aid:n,page:a},function(e){if(e&&e.src){i('\u83b7\u53d6\u5230<a href="'+e.src+'">\u89c6\u9891\u5730\u5740</a>, \u5e76\u5f00\u59cb\u89e3\u6790bilibli\u5f39\u5e55');var n=[["bilibili",e.src]];r(e.cid,"get",{},function(e){if(e&&e.i){var r=[].concat(e.i.d||[]);r=r.map(function(e){var t=e["@p"].split(",");switch(0|t[1]){case 4:t[1]="bottom";break;case 5:t[1]="top";break;default:t[1]="loop"}return{time:parseFloat(t[0]),pos:t[1],color:"#"+o((0|t[3]).toString(16),6),text:e["#text"]}}).sort(function(e,t){return e.time-t.time}),i("\u4e00\u5207\u987a\u5229\u5f00\u59cb\u64ad\u653e",2),t(n,r)}else i("\u89e3\u6790bilibli\u5f39\u5e55\u5931\u8d25, \u4f46\u52c9\u5f3a\u53ef\u4ee5\u64ad\u653e",2),t(n)},{gzinflate:1,xml:1})}else i("\u89e3\u6790bilibli\u89c6\u9891\u5730\u5740\u5931\u8d25",2),t(!1)})}},{"./httpProxy":6,"./log":8,"./purl":12}],16:[function(e,t,n){{var o=e("./canPlayM3U8"),i=e("./ajax");e("./log")}n.match=function(){return!0},n.getVideos=function(e,t){i({url:"http://acfunfix.sinaapp.com/mama.php",jsonp:!0,param:{url:e.attr("source")},callback:function(e){200!=e.code&&t(!1);var n=o&&e.m3u8?e.m3u8:e.mp4,i=[];if(n){for(type in n)i.push([type,n[type]]);t(i)}}})}},{"./ajax":2,"./canPlayM3U8":3,"./log":8}],17:[function(e,t,n){var o=e("./canPlayM3U8"),i=e("./ajax"),r=e("./log");n.match=function(e){return/www\.hunantv\.com/.test(e.attr("host"))},n.getVideos=function(e,t){if(o){var n=function(e){var t=e.split("?")[1],n=new Array;n=t.split("&");var o={};for(key in n)param=n[key],item=new Array,item=n[key].split("="),""!=item[0]&&(o[item[0]]=item[1]);return o},a="&fmt=6&pno=7&m3u8=1",s=document.getElementsByName("FlashVars")[0].getAttribute("value"),l=s.split("&file=")[1],c=l.split("%26fmt")[0];c+=a,c=decodeURIComponent(c),params=n(c);var d=new Array;d=["570","1056","1615"],urls=new Array,params.limitrate=d[0],text="\u6807\u6e05",i({url:"http://pcvcr.cdn.imgo.tv/ncrs/vod.do",jsonp:!0,param:params,callback:function(e){"ok"==e.status&&urls.push([text,e.info]),params.limitrate=d[1],text="\u9ad8\u6e05",i({url:"http://pcvcr.cdn.imgo.tv/ncrs/vod.do",jsonp:!0,param:params,callback:function(e){"ok"==e.status&&urls.push([text,e.info]),params.limitrate=d[2],text="\u8d85\u6e05",i({url:"http://pcvcr.cdn.imgo.tv/ncrs/vod.do",jsonp:!0,param:params,callback:function(e){return"ok"==e.status&&urls.push([text,e.info]),t(urls)}})}})}})}else r("\u8bf7\u4f7f\u7528Safari\u89c2\u770b\u672c\u89c6\u9891"),setTimeout(function(){return t()},2e3)}},{"./ajax":2,"./canPlayM3U8":3,"./log":8}],18:[function(require,module,exports){function getCookie(e){return document.cookie.length>0&&(c_start=document.cookie.indexOf(e+"="),-1!=c_start)?(c_start=c_start+e.length+1,c_end=document.cookie.indexOf(";",c_start),-1==c_end&&(c_end=document.cookie.length),unescape(document.cookie.substring(c_start,c_end))):""}var canPlayM3U8=require("./canPlayM3U8"),queryString=require("./queryString"),ajax=require("./ajax"),httpProxy=require("./httpProxy"),log=require("./log");exports.match=function(e){return/^http:\/\/www\.iqiyi\.com/.test(e.attr("source"))&&!!window.Q.PageInfo},exports.getVideos=function(url,callback){var uid="";try{uid=JSON.parse(getCookie("P00002")).uid}catch(e){}var cupid="qc_100001_100102",tvId=window.Q.PageInfo.playPageInfo.tvId,albumId=window.Q.PageInfo.playPageInfo.albumId,vid=window.Q.PageInfo.playPageInfo.vid||document.getElementById("flashbox").getAttribute("data-player-videoid"),httpProxyOpts={text:!0,ua:"Mozilla/5.0 (iPad; CPU iPhone OS 8_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B410 Safari/600.1.4"};httpProxy(location.href,"get",{},function(rs){var m=rs.match(/<script[^>]*>\s*(eval.*;)\s*(?=<\/script>)<\/script>/);window.__qlt=window.__qlt||{MAMA2PlaceHolder:!0},window.QP=window.QP||{},window.QP._ready=function(e){this._isReady?e&&e():e&&this._waits.push(e)},eval(m[1]);var param=weorjjigh(tvId);param.uid=uid,param.cupid=cupid,param.platForm="h5",param.type=canPlayM3U8?"m3u8":"mp4",param.qypid=tvId+"_21",ajax({url:"http://cache.m.iqiyi.com/jp/tmts/"+tvId+"/"+vid+"/",jsonp:!0,param:param,callback:function(e){var t=[];e.data.m3utx.length>0&&t.push(["\u9ad8\u6e05",e.data.m3utx]),e.data.m3u.length>0&&t.push(["\u6807\u6e05",e.data.m3u]),callback(t)}})},httpProxyOpts)}},{"./ajax":2,"./canPlayM3U8":3,"./httpProxy":6,"./log":8,"./queryString":13}],19:[function(e,t,n){var o=e("./canPlayM3U8"),i=e("./ajax"),r=e("./log"),a=e("./seeker_youku");n.match=function(e){var t=window.iid||window.pageConfig&&window.pageConfig.iid||window.itemData&&window.itemData.iid,n=window.itemData&&window.itemData.vcode;return/tudou\.com/.test(e.attr("host"))&&(n||t)},n.getVideos=function(e,t){var n=window.itemData&&window.itemData.vcode;if(n)return a.parseYoukuCode(n,t);var s=window.iid||window.pageConfig&&window.pageConfig.iid||window.itemData&&window.itemData.iid,l=function(e){var t,n=[["\u539f\u753b","http://vr.tudou.com/v2proxy/v2.m3u8?it="+s+"&st=5"],["\u8d85\u6e05","http://vr.tudou.com/v2proxy/v2.m3u8?it="+s+"&st=4"],["\u9ad8\u6e05","http://vr.tudou.com/v2proxy/v2.m3u8?it="+s+"&st=3"],["\u6807\u6e05","http://vr.tudou.com/v2proxy/v2.m3u8?it="+s+"&st=2"]];window.itemData&&window.itemData.segs&&(n=[],t=JSON.parse(window.itemData.segs),t[5]&&n.push(["\u539f\u753b","http://vr.tudou.com/v2proxy/v2.m3u8?it="+s+"&st=5"]),t[4]&&n.push(["\u8d85\u6e05","http://vr.tudou.com/v2proxy/v2.m3u8?it="+s+"&st=4"]),t[3]&&n.push(["\u9ad8\u6e05","http://vr.tudou.com/v2proxy/v2.m3u8?it="+s+"&st=3"]),t[2]&&n.push(["\u6807\u6e05","http://vr.tudou.com/v2proxy/v2.m3u8?it="+s+"&st=2"])),r("\u89e3\u6790tudou\u89c6\u9891\u5730\u5740\u6210\u529f "+n.map(function(e){return"<a href="+e[1]+">"+e[0]+"</a>"}).join(" "),2),e(n)},c=function(e){i({url:"http://vr.tudou.com/v2proxy/v2.js",param:{it:s,st:"52%2C53%2C54"},jsonp:"jsonp",callback:function(t){if(-1===t||-1==t.code)return r("\u89e3\u6790tudou\u89c6\u9891\u5730\u5740\u5931\u8d25");for(var n=[],o=0,i=t.urls.length;i>o;o++)n.push([o,t.urls[o]]);return r("\u89e3\u6790tudou\u89c6\u9891\u5730\u5740\u6210\u529f "+n.map(function(e){return"<a href="+e[1]+">"+e[0]+"</a>"}).join(" "),2),e(n)}})};o?l(t):c(t)}},{"./ajax":2,"./canPlayM3U8":3,"./log":8,"./seeker_youku":20}],20:[function(e,t,n){var o=e("./canPlayM3U8"),i=e("./ajax"),r=e("./log");n.match=function(e){return/v\.youku\.com/.test(e.attr("host"))&&!!window.videoId};var a=n.parseYoukuCode=function(e,t){function n(e){if(!e)return"";e=e.toString();var t,n,o,i,r,a,s,l=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);for(a=e.length,r=0,s="";a>r;){do t=l[255&e.charCodeAt(r++)];while(a>r&&-1==t);if(-1==t)break;do n=l[255&e.charCodeAt(r++)];while(a>r&&-1==n);if(-1==n)break;s+=String.fromCharCode(t<<2|(48&n)>>4);do{if(o=255&e.charCodeAt(r++),61==o)return s;o=l[o]}while(a>r&&-1==o);if(-1==o)break;s+=String.fromCharCode((15&n)<<4|(60&o)>>2);do{if(i=255&e.charCodeAt(r++),61==i)return s;i=l[i]}while(a>r&&-1==i);if(-1==i)break;s+=String.fromCharCode((3&o)<<6|i)}return s}function a(e){if(!e)return"";var t,n,o,i,r,a,e=e.toString();for(o=e.length,n=0,t="";o>n;){if(i=255&e.charCodeAt(n++),n==o){t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>2),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((3&i)<<4),t+="==";break}if(r=e.charCodeAt(n++),n==o){t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>2),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((3&i)<<4|(240&r)>>4),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((15&r)<<2),t+="=";break}a=e.charCodeAt(n++),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>2),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((3&i)<<4|(240&r)>>4),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((15&r)<<2|(192&a)>>6),t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&a)}return t}function s(e,t){for(var n,o=[],i=0,r="",a=0;256>a;a++)o[a]=a;for(a=0;256>a;a++)i=(i+o[a]+e.charCodeAt(a%e.length))%256,n=o[a],o[a]=o[i],o[i]=n;for(var s=i=a=0;s<t.length;s++)a=(a+1)%256,i=(i+o[a])%256,n=o[a],o[a]=o[i],o[i]=n,r+=String.fromCharCode(t.charCodeAt(s)^o[(o[a]+o[i])%256]);return r}function l(e,t){for(var n=[],o=0;o<e.length;o++){for(var i=0,i="a"<=e[o]&&"z">=e[o]?e[o].charCodeAt(0)-97:e[o]-0+26,r=0;36>r;r++)if(t[r]==i){i=r;break}n[o]=i>25?i-26:String.fromCharCode(i+97)}return n.join("")}r("\u5f00\u59cb\u89e3\u6790youku\u89c6\u9891\u5730\u5740");var c,d,u,h="b4et",p="boa4",m="4",f="1",v=function(e,t,n){var o=this;new Date,this._sid=d,this._fileType=n,this._videoSegsDic={},this._ip=e.security.ip;var i=(new g,[]),r=[];r.streams={},r.logos={},r.typeArr={},r.totalTime={};for(var a=0;a<t.length;a++){for(var s=t[a].audio_lang,l=!1,c=0;c<i.length;c++)if(i[c]==s){l=!0;break}l||i.push(s)}for(var a=0;a<i.length;a++){for(var u=i[a],h={},p={},m=[],c=0;c<t.length;c++){var f=t[c];if(u==f.audio_lang){if(!o.isValidType(f.stream_type))continue;var v=o.convertType(f.stream_type),y=0;"none"!=f.logo&&(y=1),p[v]=y;var b=!1;for(var w in m)v==m[w]&&(b=!0);b||m.push(v);var x=f.segs;if(null==x)continue;var k=[];b&&(k=h[v]);for(var A=0;A<x.length;A++){var C=x[A];if(null==C)break;var _={};_.no=A,_.size=C.size,_.seconds=Number(C.total_milliseconds_video)/1e3,_.milliseconds_video=Number(f.milliseconds_video)/1e3,_.key=C.key,_.fileId=this.getFileId(f.stream_fileid,A),_.src=this.getVideoSrc(c,A,e,f.stream_type,_.fileId),_.type=v,k.push(_)}h[v]=k}}var T=this.langCodeToCN(u).key;r.logos[T]=p,r.streams[T]=h,r.typeArr[T]=m}this._videoSegsDic=r,this._videoSegsDic.lang=this.langCodeToCN(i[0]).key},g=function(e){this._randomSeed=e,this.cg_hun()};g.prototype={cg_hun:function(){this._cgStr="";for(var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/\\:._-1234567890",t=e.length,n=0;t>n;n++){var o=parseInt(this.ran()*e.length);this._cgStr+=e.charAt(o),e=e.split(e.charAt(o)).join("")}},cg_fun:function(e){for(var t=e.split("*"),n="",o=0;o<t.length-1;o++)n+=this._cgStr.charAt(t[o]);return n},ran:function(){return this._randomSeed=(211*this._randomSeed+30031)%65536,this._randomSeed/65536}},v.prototype={getFileId:function(e,t){if(null==e||""==e)return"";var n="",o=e.slice(0,8),i=t.toString(16);1==i.length&&(i="0"+i),i=i.toUpperCase();var r=e.slice(10,e.length);return n=o+i+r},isValidType:function(e){return"3gphd"==e||"flv"==e||"flvhd"==e||"mp4hd"==e||"mp4hd2"==e||"mp4hd3"==e?!0:!1},convertType:function(e){var t=e;switch(e){case"m3u8":t="mp4";break;case"3gphd":t="3gphd";break;case"flv":t="flv";break;case"flvhd":t="flv";break;case"mp4hd":t="mp4";break;case"mp4hd2":t="hd2";break;case"mp4hd3":t="hd3"}return t},langCodeToCN:function(e){var t="";switch(e){case"default":t={key:"guoyu",value:"\u56fd\u8bed"};break;case"guoyu":t={key:"guoyu",value:"\u56fd\u8bed"};break;case"yue":t={key:"yue",value:"\u7ca4\u8bed"};break;case"chuan":t={key:"chuan",value:"\u5ddd\u8bdd"};break;case"tai":t={key:"tai",value:"\u53f0\u6e7e"};break;case"min":t={key:"min",value:"\u95fd\u5357"};break;case"en":t={key:"en",value:"\u82f1\u8bed"};break;case"ja":t={key:"ja",value:"\u65e5\u8bed"};break;case"kr":t={key:"kr",value:"\u97e9\u8bed"};break;case"in":t={key:"in",value:"\u5370\u5ea6"};break;case"ru":t={key:"ru",value:"\u4fc4\u8bed"};break;case"fr":t={key:"fr",value:"\u6cd5\u8bed"};break;case"de":t={key:"de",value:"\u5fb7\u8bed"};break;case"it":t={key:"it",value:"\u610f\u8bed"};break;case"es":t={key:"es",value:"\u897f\u8bed"};break;case"po":t={key:"po",value:"\u8461\u8bed"};break;case"th":t={key:"th",value:"\u6cf0\u8bed"}}return t},getVideoSrc:function(e,t,n,o,i,r,a){var c=n.stream[e],h=n.video.encodeid;if(!h||!o)return"";var m={flv:0,flvhd:0,mp4:1,hd2:2,"3gphd":1,"3gp":0},v=m[o],g={flv:"flv",mp4:"mp4",hd2:"flv",mp4hd:"mp4",mp4hd2:"mp4","3gphd":"mp4","3gp":"flv",flvhd:"flv"},y=g[o],b=t.toString(16);1==b.length&&(b="0"+b);var w=c.segs[t].total_milliseconds_video/1e3,x=c.segs[t].key;(""==x||-1==x)&&(x=c.key2+c.key1);var k="";n.show&&(k=n.show.pay?"&ypremium=1":"&ymovie=1");var A="/player/getFlvPath/sid/"+d+"_"+b+"/st/"+y+"/fileid/"+i+"?K="+x+"&hd="+v+"&myp=0&ts="+w+"&ypp=0"+k,C=[19,1,4,7,30,14,28,8,24,17,6,35,34,16,9,10,13,22,32,29,31,21,18,3,2,23,25,27,11,20,5,15,12,0,33,26],_=encodeURIComponent(encode64(s(l(p+"poz"+f,C).toString(),d+"_"+i+"_"+u)));return A+="&ep="+_,A+="&ctype=12",A+="&ev=1",A+="&token="+u,A+="&oip="+this._ip,A+=(r?"/password/"+r:"")+(a?a:""),A="http://k.youku.com"+A}},i({url:"http://play.youku.com/play/get.json?vid="+e+"&ct=12",jsonp:!0,callback:function(i){-1==i&&r("\u89e3\u6790youku\u89c6\u9891\u5730\u5740\u5931\u8d25",2),c=i;var g=i.data,y=s(l(h+"o0b"+m,[19,1,4,7,30,14,28,8,24,17,6,35,34,16,9,10,13,22,32,29,31,21,18,3,2,23,25,27,11,20,5,15,12,0,33,26]).toString(),n(g.security.encrypt_string));if(y=y.split("_"),d=y[0],u=y[1],o&&-1===navigator.userAgent.indexOf("PlayStation")){var b=encodeURIComponent(a(s(l(p+"poz"+f,[19,1,4,7,30,14,28,8,24,17,6,35,34,16,9,10,13,22,32,29,31,21,18,3,2,23,25,27,11,20,5,15,12,0,33,26]).toString(),d+"_"+e+"_"+u))),w=g.security.ip,x=[["\u8d85\u6e05","http://pl.youku.com/playlist/m3u8?vid="+e+"&type=hd2&ctype=12&keyframe=1&ep="+b+"&sid="+d+"&token="+u+"&ev=1&oip="+w],["\u9ad8\u6e05","http://pl.youku.com/playlist/m3u8?vid="+e+"&type=mp4&ctype=12&keyframe=1&ep="+b+"&sid="+d+"&token="+u+"&ev=1&oip="+w],["\u6807\u6e05","http://pl.youku.com/playlist/m3u8?vid="+e+"&type=flv&ctype=12&keyframe=1&ep="+b+"&sid="+d+"&token="+u+"&ev=1&oip="+w]];r("\u89e3\u6790youku\u89c6\u9891\u5730\u5740\u6210\u529f "+x.map(function(e){return"<a href="+e[1]+">"+e[0]+"</a>"}).join(" "),2),t(x)}else{var k=new v(g,g.stream,"mp4"),x=[["\u6807\u6e05",k._videoSegsDic.streams.guoyu["3gphd"][0].src]];r("\u89e3\u6790youku\u89c6\u9891\u5730\u5740\u6210\u529f "+x.map(function(e){return"<a href="+e[1]+">"+e[0]+"</a>"}).join(" "),2),t(x)}}})};n.getVideos=function(e,t){a(window.videoId,t)}},{"./ajax":2,"./canPlayM3U8":3,"./log":8}],21:[function(e,t){t.exports=[e("./seeker_bilibili"),e("./seeker_youku"),e("./seeker_tudou"),e("./seeker_iqiyi"),e("./seeker_hunantv"),e("./seeker_91porn")]},{"./seeker_91porn":14,"./seeker_bilibili":15,"./seeker_hunantv":17,"./seeker_iqiyi":18,"./seeker_tudou":19,"./seeker_youku":20}]},{},[1]);
  //# sourceMappingURL=index.js.map