马上注册,自学更多教程,下载更多资源。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
话不多说,直接上代码

代码中js、css可选择本地代码或远程地址代码,根据需要自己修改。


[HTML] 纯文本查看 复制代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="IE=edge" >
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"/>
<title>云码酷 Live</title>
<link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.12.1/skins/default/aliplayer-min.css" />
<style type="text/css">
.prism-player .prism-big-play-btn{background:url(./img/bigplay.png) no-repeat;background-size:contain;width:64px;height:64px}.prism-player .prism-big-play-btn .outter{border:7px solid rgba(255,255,255,.51);width:64px;height:64px;border-radius:100%;position:absolute;box-sizing:border-box;top:0;left:0}.prism-player .prism-big-play-btn:hover{cursor:pointer}.prism-player .prism-play-btn{width:24px;height:24px;background:url(./img/smallplay.png) no-repeat;background-size:contain}.prism-player .prism-play-btn:hover{cursor:pointer}.prism-player .prism-live-display{font-size:12px;color:#ebecec;line-height:44px;text-align:center;margin:0}.prism-player .live-shift-display:hover{cursor:pointer;font-size:14px}.prism-player .prism-play-btn.playing{background:url(./img/smallpause.png) no-repeat;background-size:contain}.prism-player .prism-play-btn.playing:hover{cursor:pointer}.prism-player .prism-fullscreen-btn{width:24px;height:24px;background:url(./img/fullscreen.png) no-repeat;background-size:contain}.prism-player .prism-fullscreen-btn:hover{cursor:pointer}.prism-player .prism-fullscreen-btn.fullscreen{background:url(./img/smallscreen.png) no-repeat;background-size:contain}.prism-player .prism-fullscreen-btn.fullscreen:hover{animation:hoverAnimationScale 1s 1;-moz-animation:hoverAnimationScale 1s 1;-webkit-animation:hoverAnimationScale 1s 1;-o-animation:hoverAnimationScale 1s 1;cursor:pointer}.prism-player .prism-volume{position:relative}.prism-player .prism-volume .volume-icon{width:28px;height:28px;background:url(./img/volume.png);background-size:contain}.prism-player .prism-volume .volume-icon .long-horizontal{width:3px;background:#ebecec;height:18px;position:absolute;right:5px;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%)}.prism-player .prism-volume .volume-icon .short-horizontal{width:3px;background:#ebecec;height:8px;position:absolute;right:10px;top:50%;-ms-transform:translateY(-50%);transform:translateY(-50%)}.prism-player .prism-volume .volume-icon:hover{-ms-transform-origin:0 50%;transform-origin:0 50%;background-size:contain;cursor:pointer}.prism-player .prism-volume .mute .long-horizontal{-ms-transform:rotate(-45deg);transform:rotate(-45deg);height:12px;top:10px;left:22px}.prism-player .prism-volume .mute .short-horizontal{-ms-transform:rotate(45deg);transform:rotate(45deg);height:12px;top:10px;left:22px}.prism-player .prism-volume-control{position:absolute;bottom:44px;display:none;background:rgba(60,60,60,.95);box-shadow:0 0 6px 0 rgba(0,0,0,.1);width:32px;height:130px;z-index:10000}.prism-player .prism-volume-control .volume-control-icon{width:32px;height:32px;background:url(./img/unmutevolume.png) no-repeat;background-size:contain}.prism-player .prism-volume-control .volume-control-icon:hover{cursor:pointer;background:url(./img/volumehover.png) no-repeat;background-size:contain}.prism-player .prism-volume-control .volume-control-icon.mute{background:url(./img/volumemute.png) no-repeat;background-size:contain}.prism-player .prism-volume-control .volume-control-icon.mute:hover{background:url(./img/volumemutehover.png) no-repeat;background-size:contain;cursor:pointer}.prism-player .prism-volume-control:hover{cursor:pointer}.prism-player .prism-volume-control .volume-control-icon{position:absolute;bottom:6px;left:8px;width:26px;height:26px}.prism-player .prism-volume-control .volume-range{position:absolute;left:14px;bottom:10px;border-radius:1px;background:#6c6262;box-shadow:inset 1px 1px 1px 0 rgba(0,0,0,.06);width:4px;height:100px}.prism-player .prism-volume-control .volume-value{width:100%;height:0%;background:#30adf2;position:absolute;border-radius:1px;bottom:0}.prism-player .prism-volume-control .volume-cursor{position:absolute;bottom:0;background:#fff;width:15px;height:15px;border-radius:15px;left:-6px}.prism-player .prism-volume-control .volume-cursor:hover{background:#00c1de}.prism-player .prism-animation{width:64px;height:64px;border-radius:64px;opacity:0;position:absolute;left:50%;top:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.prism-player .prism-play-animation{background:url(./img/playanimation.png) no-repeat;background-size:contain}.prism-player .prism-pause-animation{background:url(./img/pauseanimation.png) no-repeat;background-size:contain}.prism-player .play-apply-animation{animation:prismplayanimation 1s 1;-moz-animation:prismplayanimation 1s 1;-webkit-animation:prismplayanimation 1s 1;-o-animation:prismplayanimation 1s 1;animation-fill-mode:both}@keyframes prismplayanimation{0%{width:32px;height:32px;border-radius:32px;opacity:0}50%{width:32px;height:32px;border-radius:32px;opacity:1}99%{width:76px;height:76px;border-radius:76px;opacity:0}100%{width:0;height:0}}@keyframes spinoffPulse{0%{transform:rotate(0);-webkit-transform:rotate(0);-moz-transform:rotate(0)}100%{transform:rotate(360deg);-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg)}}@keyframes hoverAnimationRotate{0%{transform:rotate(0);-webkit-transform:rotate(0);-moz-transform:rotate(0)}50%{transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg)}100%{transform:rotate(0);-webkit-transform:rotate(0);-moz-transform:rotate(0)}}@keyframes hoverAnimationScale{0%{transform:scale(1);-webkit-transform:scale(1);-moz-transform:scale(1)}50%{transform:scale(1.2);-webkit-transform:scale(1.2);-moz-transform:scale(1.2)}100%{transform:scale(1);-webkit-transform:scale(1);-moz-transform:scale(1)}}@keyframes hoverAnimationScaleX{0%{transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1)}50%{transform:scaleX(1.2);-webkit-transform:scaleX(1.2);-moz-transform:scaleX(1.2)}100%{transform:scaleX(1);-webkit-transform:scaleX(1);-moz-transform:scaleX(1)}}@keyframes hoverVolumeAnimation{0%{opacity:1}50%{opacity:0}100%{opacity:1}}.volume-hover-animation{animation:hoverVolumeAnimation .3s 1;-moz-animation:hoverVolumeAnimation .3s 1;-webkit-animation:hoverVolumeAnimation .3s 1;-o-animation:hoverVolumeAnimation .3s 1}@keyframes hoverPlayButtonAnimation{0%{width:63px;height:63px;border:7px solid #fff}60%{width:90px;height:90px;border:7px solid rgba(255,255,255,.51)}100%{width:97px;height:97px;border:14px solid rgba(255,255,255,0)}}@keyframes warn{0%{transform:scale(1);opacity:0}25%{transform:scale(1);opacity:.1}50%{transform:scale(1.1);opacity:.3}75%{transform:scale(1.5);opacity:.5}100%{transform:scale(2);opacity:0}}.big-playbtn-hover-animation{animation:warn 1s ease-out;-moz-animation:warn 1s ease-out;-webkit-animation:warn 1s ease-out;-o-animation:warn 1s ease-out}.big-playbtn-hover-animation1{animation:hoverPlayButtonAnimation 1s 1;-moz-animation:hoverPlayButtonAnimation 1s 1;-webkit-animation:hoverPlayButtonAnimation 1s 1;-o-animation:hoverPlayButtonAnimation 1s 1}.prism-player{background-color:#000;position:relative}.prism-player a{text-decoration:none}.prism-player video{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-webkit-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);-ms-transform-origin:center;-moz-transform-origin:center;-webkit-transform-origin:center;-o-transform-origin:center}.prism-player .x5-full-screen{object-fit:fill;object-position:50% 50%}.prism-player .x5-top-left{object-fit:contain;object-position:0 0}.prism-player .prism-cover{width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:cover;position:absolute;top:0;left:0;z-index:11}.prism-player .prism-text-overlay{width:100%;height:100%;position:absolute;top:0;left:0;z-index:9;pointer-events:none}.prism-player .prism-ErrorMessage{width:100%;height:100%;background-color:#000;background-repeat:no-repeat;background-position:center;background-size:contain;position:absolute;z-index:99;top:0;left:0;overflow:hidden;display:none}.prism-player .prism-ErrorMessage .prism-error-content{margin-top:20px;padding:0 5px}.prism-player .prism-ErrorMessage .prism-error-content p{text-align:center;font-size:12px;color:#fff}.prism-player .prism-ErrorMessage .prism-error-operation{margin-top:10px;margin-bottom:10px;padding-bottom:5px;border-bottom:1.5px;border-bottom-color:rgba(255,255,255,.15);border-bottom-style:dotted;text-align:center}.prism-player .prism-ErrorMessage .prism-error-operation a{width:80px;height:32px;line-height:32px;vertical-align:top;display:inline-block;margin-left:10px}.prism-player .prism-ErrorMessage .prism-error-operation a.prism-button-refresh{color:#21c5e0;border:solid 1px #21c5e0}.prism-player .prism-ErrorMessage .prism-error-operation a.prism-button-refresh:hover{color:#05d3f5;border-color:#05d3f5;cursor:pointer}.prism-player .prism-ErrorMessage .prism-error-operation a.prism-button-refresh:active{color:#026a7b;border-color:#026a7b}.prism-player .prism-ErrorMessage .prism-error-operation .prism-button-orange:visited{color:#05d3f5}.prism-player .prism-ErrorMessage .prism-detect-info{color:#fff;font-size:10px}.prism-player .prism-ErrorMessage .prism-detect-info p{padding:0 5px;word-break:break-all;margin:0 0 4px}.prism-player .prism-ErrorMessage .prism-detect-info span.info-label{display:inline-block;font-weight:700}.prism-player .prism-ErrorMessage .prism-detect-info span.info-content{color:gray}.prism-player .prism-big-play-btn{display:none;z-index:1000}.prism-player .prism-controlbar{width:100%;height:44px;position:relative;z-index:10;font-size:14px}.prism-player .prism-controlbar .prism-controlbar-bg{background:rgba(75,75,75,.15);width:100%;height:40px;position:absolute;bottom:0;left:0;z-index:-1}.prism-player .prism-time-display{height:40px;line-height:40px;color:#a4aab3;font-size:12px}.prism-player .prism-time-display .current-time{color:#fff}.prism-player .prism-live-time-display{height:44px;line-height:44px;color:#a4aab3;font-size:12px}.prism-player .prism-live-time-display span{display:inline}.prism-player .prism-live-time-display .live-text{margin-left:5px;font-size:12px;color:#ebecec}.prism-player .prism-live-time-display .current-time{color:#fff}.prism-player .prism-fullscreen-btn:hover{animation:hoverAnimationScale 1s 1;-moz-animation:hoverAnimationScale 1s 1;-webkit-animation:hoverAnimationScale 1s 1;-o-animation:hoverAnimationScale 1s 1}.prism-player .prism-liveshift-progress,.prism-player .prism-progress{bottom:40px!important;width:100%;height:4px;background:rgba(195,197,198,.5);box-shadow:inset 1px 1px 1px 0 rgba(0,0,0,.06);position:relative;cursor:pointer}.prism-player .prism-liveshift-progress .prism-progress-time,.prism-player .prism-progress .prism-progress-time{position:absolute;top:-25px;background:rgba(0,0,0,.8);box-shadow:0 0 5px 0 rgba(0,0,0,.1);-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.1);color:#fff;font-size:14px;border-radius:7.5px;padding:0 6px 0 6px;text-align:center;white-space:nowrap}.prism-player .prism-liveshift-progress .prism-progress-loaded,.prism-player .prism-progress .prism-progress-loaded{position:absolute;top:0;left:0;width:0;height:100%;background:#c3c5c6}.prism-player .prism-liveshift-progress .prism-progress-played,.prism-player .prism-progress .prism-progress-played{position:absolute;top:0;left:0;width:0;height:100%;background-color:#00c1de}.prism-player .prism-liveshift-progress .prism-progress-cursor,.prism-player .prism-progress .prism-progress-cursor{position:absolute;border-radius:8px;top:-5px;width:16px;height:16px;overflow:hidden;box-sizing:content-box;background:url(./img/dragcursorhover.png) center;display:none}.prism-player .prism-liveshift-progress .prism-progress-cursor img,.prism-player .prism-progress .prism-progress-cursor img{width:14px;height:14px;position:absolute;top:50%;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.prism-player .prism-liveshift-progress .cursor-hover,.prism-player .prism-progress .cursor-hover{border-radius:9px;width:18px;height:18px;top:-5px!important}.prism-player .prism-liveshift-progress .cursor-hover img,.prism-player .prism-progress .cursor-hover img{width:16px;height:16px}.prism-player .prism-liveshift-progress .prism-progress-marker,.prism-player .prism-progress .prism-progress-marker{width:100%;height:100%;position:absolute}.prism-player .prism-liveshift-progress .prism-progress-marker .prism-marker-dot,.prism-player .prism-progress .prism-progress-marker .prism-marker-dot{position:absolute;background:#d9edf7;width:5px;height:100%;border-radius:20%}.prism-player .prism-progress-hover{cursor:pointer;height:6px;transition:height .1s}.prism-player .prism-progress-hover .prism-marker-dot{width:10px;height:80%;top:8%;border-radius:30%}.prism-player .prism-progress-hover .prism-progress-cursor{top:-4px}.prism-player .prism-liveshift-progress{background:0 0}.prism-player .prism-liveshift-progress .prism-enable-liveshift{cursor:pointer;position:absolute;background:#fff;height:4px}.prism-player .prism-liveshift-progress .prism-enable-liveshift:hover{height:6px;transition:height .1s}.prism-player .prism-liveshift-progress .prism-liveshift-seperator{height:15px;position:absolute;right:0;top:-8px;color:#fff;margin-right:5px;margin-left:5px;right:-65px}.prism-player .prism-marker-text{padding:5px;background:rgba(0,0,0,.8);position:absolute;max-width:180px;max-height:100px;bottom:50px;color:#fff;border-radius:3px;z-index:9999;display:none;overflow:auto}.prism-player .prism-marker-text p{text-align:center;word-break:break-all;margin:0;font-size:12px}.prism-player .prism-loading{width:55px;height:55px;z-index:10}.prism-player .prism-loading .circle-androidFirefox{background-color:rgba(0,0,0,0);border:5px solid;border-color:rgba(0,193,222,.2) rgba(0,193,222,.5) rgba(0,193,222,.7) rgba(0,193,222,.1);opacity:.9;border-radius:50px;width:45px;height:45px;margin:0 auto}.prism-player .prism-loading .circle{background-color:rgba(0,0,0,0);border:5px solid;border-color:rgba(0,193,222,.2) rgba(0,193,222,.5) rgba(0,193,222,.7) rgba(0,193,222,.1);opacity:.9;border-radius:50px;width:45px;height:45px;margin:0 auto;-moz-animation:spinoffPulse .9s infinite linear;-webkit-animation:spinoffPulse .9s infinite linear}.prism-player .prism-hide{display:none}.prism-player .prism-snapshot-btn{width:32px;height:32px;background:url(./img/snapshot.png) no-repeat;background-size:contain}.prism-player .prism-snapshot-btn:hover{animation:hoverAnimationScale 1s 1;-moz-animation:hoverAnimationScale 1s 1;-webkit-animation:hoverAnimationScale 1s 1;-o-animation:hoverAnimationScale 1s 1;cursor:pointer}.prism-player .prism-snapshot-btn:active{displa:block}.prism-player .prism-info-display{width:100%;color:#fff;font-size:18px;text-align:center;top:50%;position:absolute;z-index:900;height:44px;line-height:28px;font-size:16px;padding:10px 12px 10px 12px}.prism-player .prism-info-display span{color:#00c1de}.prism-player .prism-info-left-bottom{width:auto!important;top:auto!important;bottom:70px;left:20px!important;text-align:left}.prism-player .prism-info-top-center{width:auto!important;top:20px!important;left:50%!important;text-align:left!important;-ms-transform:translateX(-50%)!important;transform:translateX(-50%)!important;color:red!important}.prism-player .prism-info-black{color:#000!important}.prism-player .prism-auto-stream-selector{position:absolute;bottom:50%;width:100%;margin:auto;color:#efeff4;display:none}.prism-player .prism-auto-stream-selector p.tip-text{text-align:center}.prism-player .prism-auto-stream-selector .operators{width:100px;margin:auto}.prism-player .prism-button-cancel{font-size:16px;border:1px #ffffffa8 solid;padding:2px 5px 2px 5px;color:#ffffffa8;margin-left:5px;background:#503f3f3d}.prism-player .prism-button-ok{font-size:16px;border:1px #fff solid;padding:2px 5px 2px 5px;color:#fff;background:#503f3f63}.prism-player .prism-button-cancel:hover,.prism-player .prism-button-ok:hover{color:#f5f5f5}.prism-player .prism-cc-btn{height:24px;width:24px;background:url(./img/cc.png) center no-repeat;background-size:contain}.prism-player .prism-cc-btn:hover{cursor:pointer;animation:hoverAnimationScale 1s 1;-moz-animation:hoverAnimationScale 1s 1;-webkit-animation:hoverAnimationScale 1s 1;-o-animation:hoverAnimationScale 1s 1}.prism-player .prism-setting-btn{height:24px;width:24px;background:url(./img/setting.png) center no-repeat;background-size:contain}.prism-player .prism-setting-btn:hover{cursor:pointer;animation:hoverAnimationRotate 1s 1;-moz-animation:hoverAnimationRotate 1s 1;-webkit-animation:hoverAnimationRotate 1s 1;-o-animation:hoverAnimationRotate 1s 1}.prism-player .prism-setting-list{background:rgba(60,60,60,.95);width:220px;position:absolute;right:14px;bottom:45px;display:none;z-index:10000;text-align:left}.prism-player .prism-setting-list .prism-setting-item{font-size:14px;color:#ebecec;height:30px}.prism-player .prism-setting-list .prism-setting-item .setting-content{width:100%}.prism-player .prism-setting-list .prism-setting-item .setting-content:hover{background:rgba(216,216,216,.1);cursor:pointer}.prism-player .prism-setting-list .prism-setting-item .setting-content span{line-height:30px}.prism-player .prism-setting-list .prism-setting-item .setting-content .setting-title{margin-left:15px}.prism-player .prism-setting-list .prism-setting-item .setting-content .current-setting{float:right;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prism-player .prism-setting-list .prism-setting-item .array{display:inline-block;border-right:2px solid;border-bottom:2px solid;border-color:#fff;width:8px;height:8px;-ms-transform:rotate(-45deg);transform:rotate(-45deg);margin-right:10px;margin-top:10px;margin-left:10px;float:right}.prism-player .prism-setting-selector{right:40px;position:absolute;bottom:45px;width:150px;background:rgba(60,60,60,.95);font-size:14px;color:#ebecec;display:none;z-index:10000;text-align:left}.prism-player .prism-setting-selector .header{background:#242424;width:150px;height:30px}.prism-player .prism-setting-selector .header:hover{cursor:pointer}.prism-player .prism-setting-selector .header .left-array{display:inline-block;border-left:2px solid;border-bottom:2px solid;border-color:#fff;width:8px;height:8px;-ms-transform:rotate(45deg);transform:rotate(45deg);margin-right:6px;margin-top:12px;margin-left:16px;float:left}.prism-player .prism-setting-selector .header span{line-height:30px}.prism-player .prism-setting-selector ul.selector-list::-webkit-scrollbar{width:10px;background-color:#424242}.prism-player .prism-setting-selector ul.selector-list::-webkit-scrollbar-track{background-color:#424242}.prism-player .prism-setting-selector ul.selector-list::-webkit-scrollbar-thumb{background-color:#8e8e8e;border:1px solid #424242;border-radius:5px}.prism-player .prism-setting-selector ul{list-style-type:none;padding-left:0;max-height:150px;overflow-y:auto;padding-left:13px;margin-top:5px}.prism-player .prism-setting-selector ul li{height:28px;padding-left:10px}.prism-player .prism-setting-selector ul li.current{color:#30adf2;padding-left:0}.prism-player .prism-setting-selector ul li.current:before{content:"";display:inline-block;line-height:0;border:5px solid transparent;border-left-color:#30adf2;border-right-width:0;margin-top:5px;padding-right:5px}.prism-player .prism-setting-selector ul li:hover{background:rgba(216,216,216,.1);cursor:pointer}.prism-player .prism-setting-selector ul span{line-height:28px;max-width:110px;display:inline-block;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.prism-player .prism-thumbnail{border:1px solid rgba(0,0,0,.8);width:174px;height:98px;position:absolute;bottom:50px;display:none;z-index:10}.prism-player .prism-thumbnail .none{border:none}.prism-player .prism-thumbnail span{font-size:12px;color:#fff;line-height:20px;background:rgba(0,0,0,.8);text-align:center;text-shadow:1px 1px 4px #373d41;padding-left:5px;padding-right:5px;display:inline-block;position:absolute;bottom:0;left:33%}.prism-player .prism-tooltip{background:#3c3c3c;box-shadow:0 0 5px 0 rgba(0,0,0,.1);height:28px;margin:0;padding-left:5px;padding-right:5px;padding-top:0;padding-bottom:0;position:absolute;bottom:50px;color:#fff;line-height:28px;font-size:10px;white-space:nowrap;display:none;z-index:10}.prism-player .disabled{pointer-events:none;color:gray}:-webkit-full-screen{width:100%!important;height:100%!important}:-moz-full-screen{width:100%!important;height:100%!important}:-ms-full-screen{width:100%!important;height:100%!important}:-ms-fullscreen{width:100%!important;height:100%!important}:-webkit-full-screen{width:100%!important;height:100%!important}:-moz-full-screen{width:100%!important;height:100%!important}:fullscreen{width:100%!important;height:100%!important}body.prism-full-window{padding:0;margin:0;height:100%;overflow-y:auto}.prism-fullscreen{position:fixed;overflow:hidden;z-index:99999;left:0!important;top:0!important;bottom:0!important;right:0!important;width:100%!important;height:100%!important;position:absolute}.prism-button{cursor:pointer;text-align:center;text-shadow:0 1px 1px rgba(0,0,0,.3);border-radius:.5em;box-shadow:0 1px 2px rgba(0,0,0,.2)}.prism-button-orange{color:#a56117;border:solid 1px #a56117}.prism-button-retry{color:#f2dede;border:solid 1px #f2dede}.prism-button-orange:hover{color:#d67400;border-color:#d67400}.prism-button-orange:active{color:#d67400;border-color:#d67400}.prism-button-orange:visited{color:#d67400}.prism-button-retry:hover{color:#fcf8e3;border-color:#fcf8e3}.prism-button-retry:active{color:#fcf8e3;border-color:#fcf8e3}.prism-button-retry:visited{color:#fcf8e3}.prism-center{position:absolute;left:50%;-ms-transform:translateX(-50%);transform:translateX(-50%)}.prism-width90{width:90%}.prism-stream-selector{font-size:16px;position:relative;line-height:32px}.prism-stream-selector .current-stream-selector{text-align:center;width:70px;display:none;color:#efeff4}.prism-stream-selector .current-stream-selector:hover{cursor:pointer;color:#00c1de}.prism-stream-selector .stream-selector-tip{color:#fff;text-align:center;padding:2px 5px 2px 5px;display:none;position:absolute;bottom:61.5px;white-space:nowrap;left:43%;font-size:18px}.prism-stream-selector .stream-selector-list{position:absolute;bottom:32px;background:rgba(0,0,0,.5);color:#efeff4;padding:5px 5px 0 5px;width:70px;margin:0;display:none}.prism-stream-selector .stream-selector-list li{list-style-type:none;text-align:center;white-space:nowrap;padding:0 2px 0 2px;line-height:24px}.prism-stream-selector .stream-selector-list li:last-child{margin-bottom:10px}.prism-stream-selector .stream-selector-list li.current{color:#00c1de}.prism-stream-selector .stream-selector-list li span.current{color:#00c1de}.prism-stream-selector .stream-selector-list li:hover{cursor:pointer;color:#00c1de}.prism-speed-selector{font-size:16px;position:relative;line-height:32px}.prism-speed-selector .current-speed-selector{color:#efeff4;text-align:center;width:60px}.prism-speed-selector .current-speed-selector:hover{cursor:pointer;color:#00c1de}.prism-speed-selector .speed-selector-list{position:absolute;bottom:32px;background:rgba(0,0,0,.5);color:#efeff4;padding:5px 5px 0 5px;display:none;margin:0}.prism-speed-selector .speed-selector-list li{list-style-type:none;text-align:center;white-space:nowrap;padding:0 2px 0 2px;line-height:24px}.prism-speed-selector .speed-selector-list li:last-child{margin-bottom:10px}.prism-speed-selector .speed-selector-list li.current{color:#00c1de}.prism-speed-selector .speed-selector-list li span.current{color:#00c1de}.prism-speed-selector .speed-selector-list li:hover{cursor:pointer;color:#00c1de}.prism-ai-container{position:absolute;overflow:hidden}.prism-ai-container .prism-ai-marking{font-size:12px;position:absolute}.prism-ai-container .prism-ai-marking[vh=large]{font-size:18px}.prism-ai-container .prism-ai-marking[vh=middle]{font-size:16px}.prism-ai-container .prism-ai-marking .prism-ai-rect-region{position:relative;display:inline-block}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-title{height:0;-ms-transform:translateY(-40px);transform:translateY(-40px)}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-title p{background:#ff1d00;text-align:center;width:100%;color:#fff;word-break:keep-all;margin:10px 0 0 0}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-title .top-left-anchor{width:5px;height:5px;border-top-color:red;border-top-style:solid;border-left-color:red;border-left-style:solid;border-width:1px;-ms-transform:translate(-5px,10px);transform:translate(-5px,10px)}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-title .top-right-anchor{width:5px;height:5px;border-top-color:red;border-top-style:solid;border-right-color:red;border-right-style:solid;border-width:1px;-ms-transform:translate(5px,5px);transform:translate(5px,5px);float:right}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-rect{border-style:solid;border-color:#ff1d00;border-width:1px;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;color:rgba(255,29,0,.3);background:rgba(255,29,0,.1)}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-rect .prism-ai-slash-container{overflow:hidden;width:100%;height:100%;position:absolute}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-rect .prism-ai-slash{content:"";display:block;box-sizing:border-box;border-top-width:1px;border-top-style:solid;height:10px;margin-top:15px;border-bottom-width:1px;border-bottom-style:solid;transform:rotateZ(-45deg) scaleX(2);-ms-transform-origin:bottom center;transform-origin:bottom center}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .prism-ai-rect .prism-ai-top-slash{margin-top:-10px!important}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .anchor-plug{position:absolute}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .top-left{top:-7px;left:-2px}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .top-right{top:-7px;right:-2px}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .bottom-left{bottom:-8px;left:-2px}.prism-ai-container .prism-ai-marking .prism-ai-rect-region .bottom-right{bottom:-8px;right:-2px}.prism-ai-container .prism-ai-marking .prism-ai-labels{color:#fff;float:right;background:rgba(0,0,0,.4);padding-top:5px;padding-bottom:5px}.prism-ai-container .prism-ai-marking .prism-ai-labels p{text-align:left;padding-left:5px;padding-right:5px;margin:0}.prism-ai-container .prism-ai-marking .prism-ai-labels a{padding-left:5px;padding-right:5px}.prism-ai-container .prism-ai-marking .prism-ai-labels p[vh=large]{padding-left:25px;padding-right:25px}.prism-ai-container .prism-ai-marking .prism-ai-labels p[vh=middle]{padding-left:15px;padding-right:15px}video::-webkit-media-text-track-container{overflow:visible!important}video::cue{line-height:1.7}.loading-center{position:absolute;top:50%;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}
</style>



<script type="text/javascript" charset="utf-8" src="https://g.alicdn.com/de/prismplayer/2.12.1/aliplayer-min.js"></script>
<script type = "text/javascript">
/*! aliyun-aliplayer - v2.12.1 - 2022-09-14 10.26.47 */
!function r(n,o,a){function s(t,e){if(!o[t]){if(!n[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(l)return l(t,!0);throw(i=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",i}i=o[t]={exports:{}},n[t][0].call(i.exports,function(e){return s(n[t][1][e]||e)},i,i.exports,r,n,o,a)}return o[t].exports}for(var l="function"==typeof require&&require,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(g,i,r){!function(f){!function(){var e,t;e=this,t=function(){return function(u){var r;if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),!(r=!(r=!(r="undefined"!=typeof globalThis&&globalThis.crypto?globalThis.crypto:r)&&"undefined"!=typeof window&&window.msCrypto?window.msCrypto:r)&&void 0!==f&&f.crypto?f.crypto:r)&&"function"==typeof g)try{r=g("crypto")}catch(e){}var i=Object.create||function(e){return t.prototype=e,e=new t,t.prototype=null,e};function t(){}var e={},n=e.lib={},o=n.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),(t.init.prototype=t).$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},c=n.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,i=e.words,r=this.sigBytes,n=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<n;o++){var a=i[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<n;s+=4)t[r+s>>>2]=i[s>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=u.ceil(t/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],i=0;i<e;i+=4)t.push(function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")}());return new c.init(t,e)}}),a=e.enc={},s=a.Hex={stringify:function(e){for(var t=e.words,i=e.sigBytes,r=[],n=0;n<i;n++){var o=t[n>>>2]>>>24-n%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r<t;r+=2)i[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new c.init(i,t/2)}},l=a.Latin1={stringify:function(e){for(var t=e.words,i=e.sigBytes,r=[],n=0;n<i;n++){var o=t[n>>>2]>>>24-n%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,i=[],r=0;r<t;r++)i[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new c.init(i,t)}},d=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},p=n.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t,i=this._data,r=i.words,n=i.sigBytes,o=this.blockSize,a=n/(4*o),s=(a=e?u.ceil(a):u.max((0|a)-this._minBufferSize,0))*o,n=u.min(4*s,n);if(s){for(var l=0;l<s;l+=o)this._doProcessBlock(r,l);t=r.splice(0,s),i.sigBytes-=n}return new c.init(t,n)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(n.Hasher=p.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(i){return function(e,t){return new i.init(t).finalize(e)}},_createHmacHelper:function(i){return function(e,t){return new h.HMAC.init(i,t).finalize(e)}}}),e.algo={});return e}(Math)},"object"==typeof r?i.exports=r=t():"function"==typeof define&&define.amd?define([],t):e.CryptoJS=t()}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{crypto:8}],2:[function(e,t,i){var r,n;r=this,n=function(e){var l;return l=e.lib.WordArray,e.enc.Base64={stringify:function(e){var t=e.words,i=e.sigBytes,r=this._map;e.clamp();for(var n=[],o=0;o<i;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<i;s++)n.push(r.charAt(a>>>6*(3-s)&63));var l=r.charAt(64);if(l)for(;n.length%4;)n.push(l);return n.join("")},parse:function(e){var t=e.length,i=this._map;if(!(r=this._reverseMap))for(var r=this._reverseMap=[],n=0;n<i.length;n++)r[i.charCodeAt(n)]=n;var o=i.charAt(64);return!o||-1!==(o=e.indexOf(o))&&(t=o),function(e,t,i){for(var r=[],n=0,o=0;o<t;o++){var a,s;o%4&&(a=i[e.charCodeAt(o-1)]<<o%4*2,s=i[e.charCodeAt(o)]>>>6-o%4*2,s=a|s,r[n>>>2]|=s<<24-n%4*8,n++)}return l.create(r,n)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.enc.Base64},"object"==typeof i?t.exports=i=n(e("crypto-js/core")):"function"==typeof define&&define.amd?define(["crypto-js/core"],n):n(r.CryptoJS)},{"crypto-js/core":1}],3:[function(e,t,i){var r,n;r=this,n=function(e){return e.enc.Utf8},"object"==typeof i?t.exports=i=n(e("crypto-js/core")):"function"==typeof define&&define.amd?define(["crypto-js/core"],n):n(r.CryptoJS)},{"crypto-js/core":1}],4:[function(e,t,i){var r,n;r=this,n=function(e){return e.HmacSHA1},"object"==typeof i?t.exports=i=n(e("crypto-js/core"),e("crypto-js/sha1"),e("crypto-js/hmac")):"function"==typeof define&&define.amd?define(["crypto-js/core","crypto-js/sha1","crypto-js/hmac"],n):n(r.CryptoJS)},{"crypto-js/core":1,"crypto-js/hmac":5,"crypto-js/sha1":6}],5:[function(e,t,i){var r,n;r=this,n=function(e){var t,s;t=e.lib.Base,s=e.enc.Utf8,e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var i=e.blockSize,r=4*i;(t=t.sigBytes>r?e.finalize(t):t).clamp();for(var e=this._oKey=t.clone(),t=this._iKey=t.clone(),n=e.words,o=t.words,a=0;a<i;a++)n[a]^=1549556828,o[a]^=909522486;e.sigBytes=t.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,e=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(e))}})},"object"==typeof i?t.exports=i=n(e("crypto-js/core")):"function"==typeof define&&define.amd?define(["crypto-js/core"],n):n(r.CryptoJS)},{"crypto-js/core":1}],6:[function(e,t,i){var r,n;r=this,n=function(e){var t,i,r,n,c;return i=(t=e).lib,r=i.WordArray,n=i.Hasher,i=t.algo,c=[],i=i.SHA1=n.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var i=this._hash.words,r=i[0],n=i[1],o=i[2],a=i[3],s=i[4],l=0;l<80;l++){l<16?c[l]=0|e[t+l]:(u=c[l-3]^c[l-8]^c[l-14]^c[l-16],c[l]=u<<1|u>>>31);var u=(r<<5|r>>>27)+s+c[l];u+=l<20?1518500249+(n&o|~n&a):l<40?1859775393+(n^o^a):l<60?(n&o|n&a|o&a)-1894007588:(n^o^a)-899497514,s=a,a=o,o=n<<30|n>>>2,n=r,r=u}i[0]=i[0]+r|0,i[1]=i[1]+n|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,i=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(64+r>>>9<<4)]=Math.floor(i/4294967296),t[15+(64+r>>>9<<4)]=i,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=n._createHelper(i),t.HmacSHA1=n._createHmacHelper(i),e.SHA1},"object"==typeof i?t.exports=i=n(e("crypto-js/core")):"function"==typeof define&&define.amd?define(["crypto-js/core"],n):n(r.CryptoJS)},{"crypto-js/core":1}],7:[function(q,i,r){!function(V,j){!function(){var e,t;e=this,t=function(){"use strict";function l(e){return"function"==typeof e}var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,t=void 0,n=void 0,a=function(e,t){d[r]=e,d[r+1]=t,2===(r+=2)&&(n?n(p):v())};var e="undefined"!=typeof window?window:void 0,o=e||{},s=o.MutationObserver||o.WebKitMutationObserver,u="undefined"==typeof self&&void 0!==V&&"[object process]"==={}.toString.call(V),o="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(p,1)}}var d=new Array(1e3);function p(){for(var e=0;e<r;e+=2)(0,d[e])(d[e+1]),d[e]=void 0,d[e+1]=void 0;r=0}function h(){try{var e=Function("return this")().require("vertx");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(p)}:c()}catch(e){return c()}}var f,g,y,_,v=void 0;function m(e,t){var i=this,r=new this.constructor(T);void 0===r[S]&&O(r);var n,o=i._state;return o?(n=arguments[o-1],a(function(){return M(o,r,n,i._result)})):D(i,r,e,t),r}function b(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(T);return C(t,e),t}var v=u?function(){return V.nextTick(p)}:s?(g=0,y=new s(p),_=document.createTextNode(""),y.observe(_,{characterData:!0}),function(){_.data=g=++g%2}):o?((f=new MessageChannel).port1.onmessage=p,function(){return f.port2.postMessage(0)}):(void 0===e&&"function"==typeof q?h:c)(),S=Math.random().toString(36).substring(2);function T(){}var x=void 0,w=1,E=2;function k(e,r,n){a(function(t){var i=!1,e=function(e,t,i,r){try{e.call(t,i,r)}catch(e){return e}}(n,r,function(e){i||(i=!0,(r!==e?C:L)(t,e))},function(e){i||(i=!0,R(t,e))},t._label);!i&&e&&(i=!0,R(t,e))},e)}function P(e,t,i){var r,n;t.constructor===e.constructor&&i===m&&t.constructor.resolve===b?(r=e,(n=t)._state===w?L(r,n._result):n._state===E?R(r,n._result):D(n,void 0,function(e){return C(r,e)},function(e){return R(r,e)})):void 0!==i&&l(i)?k(e,t,i):L(e,t)}function C(t,e){if(t===e)R(t,new TypeError("You cannot resolve a promise with itself"));else if(i=typeof e,null===e||"object"!=i&&"function"!=i)L(t,e);else{i=void 0;try{i=e.then}catch(e){return void R(t,e)}P(t,e,i)}var i}function I(e){e._onerror&&e._onerror(e._result),A(e)}function L(e,t){e._state===x&&(e._result=t,e._state=w,0!==e._subscribers.length&&a(A,e))}function R(e,t){e._state===x&&(e._state=E,e._result=t,a(I,e))}function D(e,t,i,r){var n=e._subscribers,o=n.length;e._onerror=null,n[o]=t,n[o+w]=i,n[o+E]=r,0===o&&e._state&&a(A,e)}function A(e){var t=e._subscribers,i=e._state;if(0!==t.length){for(var r,n=void 0,o=e._result,a=0;a<t.length;a+=3)r=t[a],n=t[a+i],r?M(i,r,n,o):n(o);e._subscribers.length=0}}function M(e,t,i,r){var n=l(i),o=void 0,a=void 0,s=!0;if(n){try{o=i(r)}catch(e){s=!1,a=e}if(t===o)return void R(t,new TypeError("A promises callback cannot return that same promise."))}else o=r;t._state!==x||(n&&s?C(t,o):!1===s?R(t,a):e===w?L(t,o):e===E&&R(t,o))}var H=0;function O(e){e[S]=H++,e._state=void 0,e._result=void 0,e._subscribers=[]}var N=(U.prototype._enumerate=function(e){for(var t=0;this._state===x&&t<e.length;t++)this._eachEntry(e[t],t)},U.prototype._eachEntry=function(t,e){var i=this._instanceConstructor,r=i.resolve;if(r===b){var n,o=void 0,a=void 0,s=!1;try{o=t.then}catch(e){s=!0,a=e}o===m&&t._state!==x?this._settledAt(t._state,e,t._result):"function"!=typeof o?(this._remaining--,this._result[e]=t):i===F?(n=new i(T),s?R(n,a):P(n,t,o),this._willSettleAt(n,e)):this._willSettleAt(new i(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},U.prototype._settledAt=function(e,t,i){var r=this.promise;r._state===x&&(this._remaining--,e===E?R(r,i):this._result[t]=i),0===this._remaining&&L(r,this._result)},U.prototype._willSettleAt=function(e,t){var i=this;D(e,void 0,function(e){return i._settledAt(w,t,e)},function(e){return i._settledAt(E,t,e)})},U);function U(e,t){this._instanceConstructor=e,this.promise=new e(T),this.promise[S]||O(this.promise),i(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?L(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&L(this.promise,this._result))):R(this.promise,new Error("Array Methods must be provided an Array"))}var F=(B.prototype.catch=function(e){return this.then(null,e)},B.prototype.finally=function(t){var i=this.constructor;return l(t)?this.then(function(e){return i.resolve(t()).then(function(){return e})},function(e){return i.resolve(t()).then(function(){throw e})}):this.then(t,t)},B);function B(e){this[S]=H++,this._result=this._state=void 0,this._subscribers=[],T!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof B?function(t,e){try{e(function(e){C(t,e)},function(e){R(t,e)})}catch(e){R(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return F.prototype.then=m,F.all=function(e){return new N(this,e).promise},F.race=function(n){var o=this;return i(n)?new o(function(e,t){for(var i=n.length,r=0;r<i;r++)o.resolve(n[r]).then(e,t)}):new o(function(e,t){return t(new TypeError("You must pass an array to race."))})},F.resolve=b,F.reject=function(e){var t=new this(T);return R(t,e),t},F._setScheduler=function(e){n=e},F._setAsap=function(e){a=e},F._asap=a,F.polyfill=function(){var e=void 0;if(void 0!==j)e=j;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===i&&!t.cast)return}e.Promise=F},F.Promise=F},"object"==typeof r&&void 0!==i?i.exports=t():"function"==typeof define&&define.amd?define(t):e.ES6Promise=t()}.call(this)}.call(this,q("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:9}],8:[function(e,t,i){},{}],9:[function(e,t,i){var r,n,t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,u=[],c=!1,d=-1;function p(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&h())}function h(){if(!c){var e=s(p);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function g(){}t.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];u.push(new f(e,t)),1!==u.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=g,t.addListener=g,t.once=g,t.off=g,t.removeListener=g,t.removeAllListeners=g,t.emit=g,t.prependListener=g,t.prependOnceListener=g,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},{}],10:[function(e,t,i){var r=e("../ui/component"),n=(e("../lib/util"),e("../lib/dom")),o=e("../lib/event"),a=(e("../lib/ua"),e("../lang/index")),s=e("../player/base/event/eventtype"),e=r.extend({init:function(e,t){r.call(this,e,t),this.className=t.className||"prism-auto-stream-selector",this.addClass(this.className)},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML="<div><p class='tip-text'></p></div><div class='operators'><a class='prism-button prism-button-ok' type='button'>"+a.get("OK_Text")+"</a><a class='prism-button prism-button-cancel'  target='_blank'>"+a.get("Cancel_Text")+"</a></div>",e},bindEvent:function(){var r=this;r._player.on(s.Private.AutoStreamShow,function(e){var t,i=document.querySelector("#"+r.getId()+" .tip-text");!r._player._getLowerQualityLevel||(t=r._player._getLowerQualityLevel())&&(r._switchUrl=t,i.innerText=a.get("Auto_Stream_Tip_Text").replace("$$",t.item.desc),n.css(r.el(),"display","block"))}),r._player.on(s.Private.AutoStreamHide,function(e){document.querySelector("#"+r.getId()+" .tip-text");n.css(r.el(),"display","none")});var e=document.querySelector("#"+r.getId()+" .prism-button-ok");o.on(e,"click",function(){r._player._changeStream&&r._switchUrl&&(r._player._changeStream(r._switchUrl.index,a.get("Quality_Change_Text")),r._player.trigger(s.Private.SettingListHide)),n.css(r.el(),"display","none")});e=document.querySelector("#"+r.getId()+" .prism-button-cancel");o.on(e,"click",function(){n.css(r.el(),"display","none"),r._player.trigger(s.Private.SettingListHide)})}});t.exports=e},{"../lang/index":21,"../lib/dom":29,"../lib/event":30,"../lib/ua":44,"../lib/util":46,"../player/base/event/eventtype":64,"../ui/component":121}],11:[function(e,t,i){var r=e("../ui/component"),a=e("../lib/dom"),n=e("../lib/event"),o=e("../lib/ua"),s=e("../lib/function"),l=(e("../lang/index"),e("../lib/util")),u=e("../config"),c=e("../lib/playerutil"),d=e("../player/base/event/eventtype"),e=r.extend({init:function(e,t){r.call(this,e,t),this.className=t.className||"prism-liveshift-progress",this.addClass(this.className),this._liveshiftService=e._liveshiftService},createEl:function(){var e=r.prototype.createEl.call(this);return e.innerHTML='<div class="prism-enable-liveshift"><div class="prism-progress-loaded"></div><div class="prism-progress-played"></div><div class="prism-progress-cursor"><img></img></div><p class="prism-progress-time"></p><div class="prism-liveshift-seperator"></div></div><div class="prism-disable-liveshift"></div>',e},bindEvent:function(){var t=this;this.loadedNode=document.querySelector("#"+this.id()+" .prism-progress-loaded"),this.playedNode=document.querySelector("#"+this.id()+" .prism-progress-played"),this.cursorNode=document.querySelector("#"+this.id()+" .prism-progress-cursor"),this.timeNode=document.querySelector("#"+this.id()+" .prism-progress-time"),this.controlNode=document.querySelector("#"+this._player._options.id+" .prism-controlbar"),this.seperatorNode=document.querySelector("#"+this.id()+" .prism-liveshift-seperator"),this.progressNode=document.querySelector("#"+this.id()+" .prism-enable-liveshift");var e=document.querySelector("#"+this.id()+" .prism-progress-cursor img"),i="//"+u.domain+"/de/prismplayer/"+u.h5Version+"/skins/default/img/dragcursor.png";u.domain?-1<u.domain.indexOf("localhost")&&(i="//"+u.domain+"/build/skins/default/img/dragcursor.png"):i=this._player&&this._player._options&&this._player._options.sdkDomain?this._player._options.sdkDomain+"/de/prismplayer/"+u.h5Version+"/skins/default/img/dragcursor.png":"de/prismplayer/"+u.h5Version+"/skins/default/img/dragcursor.png",e.src=i,n.on(this.cursorNode,"mousedown",function(e){t._onMouseDown(e)}),n.on(this.cursorNode,"touchstart",function(e){t._onMouseDown(e)}),n.on(this.progressNode,"mousemove",function(e){t._progressMove(e)}),n.on(this.progressNode,"touchmove",function(e){t._progressMove(e)});function r(e){t._progressDown=e}n.on(this.progressNode,"mousedown",function(e){r(!0)}),n.on(this.progressNode,"touchstart",function(e){r(!0)}),n.on(this.progressNode,"mouseup",function(e){r(!1)}),n.on(this.progressNode,"touchend",function(e){r(!1)}),n.on(this._el,"click",function(e){t._onMouseClick(e)}),this._player.on(d.Private.HideProgress,function(e){t._hideProgress(e)}),this._player.on(d.Private.CancelHideProgress,function(e){t._cancelHideProgress(e)}),this._player.on(d.Private.ShowBar,function(){t._updateLayout()}),n.on(this.progressNode,d.Private.MouseOver,function(e){t._onMouseOver(e)}),n.on(this.progressNode,d.Private.MouseOut,function(e){t._onMouseOut(e)}),this.bindTimeupdate=s.bind(this,this._onTimeupdate),this._player.on(d.Player.TimeUpdate,this.bindTimeupdate),c.isLiveShift(this._player._options)&&t._liveshiftService.start(6e4,function(e){e={mediaId:t._player._options.vid||"",error_code:e.Code,error_msg:e.Message};t._player.logError(e),t._player.trigger(d.Player.Error,e)}),this._player.on(d.Private.LiveShiftQueryCompleted,function(){t._updateSeperator(),t._updateLayout()}),this._player.on(d.Private.LiveShiftSwitchToLive,function(){t._updateCursorPosition()}),this._player.on(d.Player.Pause,function(){t._liveshiftService.stop()}),o.IS_IPAD?this.interval=setInterval(function(){t._onProgress()},500):this._player.on(d.Video.Progress,function(){t._onProgress()})},_updateSeperator:function(){this._liveshiftService.currentTimeDisplay&&(this.seperatorNode.innerText=this._liveshiftService.currentTimeDisplay)},_updateLayout:function(){var e=this.seperatorNode.offsetWidth,t=this.el().offsetWidth,i=t-e;0!=e&&0!=i&&(a.css(this.progressNode,"width",100*(i-10)/t+"%"),a.css(this.seperatorNode,"right",-1*(e+10)+"px"))},_progressMove:function(e){var t=this._getSeconds(e),i=this._liveshiftService.availableLiveShiftTime;this.timeNode.innerText="-"+l.formatTime(i-t);t=i?t/i:0,i=1-this.timeNode.clientWidth/this.el().clientWidth;i<t&&(t=i),this.timeNode&&(a.css(this.timeNode,"display","block"),a.css(this.timeNode,"left",100*t+"%"));var r=this;!o.IS_PC&&r._progressDown&&(r.progressSeekTimer&&clearTimeout(r.progressSeekTimer),r.progressSeekTimer=setTimeout(function(){r._progressDown||r._onMouseClick(e)},200))},_hideProgress:function(e){n.off(this.cursorNode,"mousedown"),n.off(this.cursorNode,"touchstart")},_cancelHideProgress:function(e){var t=this;n.on(this.cursorNode,"mousedown",function(e){t._onMouseDown(e)}),n.on(this.cursorNode,"touchstart",function(e){t._onMouseDown(e)})},_canSeekable:function(e){var t=!0;return t="function"==typeof this._player.canSeekable?this._player.canSeekable(e):t},_onMouseOver:function(e){this._updateCursorPosition(this._getCurrentTime()),a.css(this.timeNode,"display","block")},_onMouseOut:function(e){a.css(this.timeNode,"display","none")},_getSeconds:function(e){for(var t=this.el().offsetLeft,i=this.el();i=i.offsetParent;){var r=a.getTranslateX(i);t+=i.offsetLeft+r}var n=(e.touches&&e.touches.length?e.touches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e).pageX,o=this.progressNode.offsetWidth,e=this._liveshiftService.availableLiveShiftTime;return sec=e?(n-t)/o*e:0,sec<0&&(sec=0),sec>e&&(sec=e),sec},_onMouseClick:function(e){var t=this,i=this._getSeconds(e),r=this._liveshiftService.availableLiveShiftTime,n=r-i,e=this._player._options;n<=e.liveShiftMinOffset&&(i=r-(n=e.liveShiftMinOffset)),this._player.trigger(d.Private.SeekStart,{fromTime:this._getCurrentTime()});e=this._liveshiftService.getSourceUrl(n),n=c.isHls(t._player._options.source);t._player._loadByUrlInner(e,i,!0),t._player.trigger(d.Private.Play_Btn_Hide),t._liveshiftService.seekTime=i,t._player.trigger(d.Private.EndStart,{toTime:i}),t._updateProgressBar(this.playedNode,i),t._updateCursorPosition(i),setTimeout(function(){t._progressDown||t._onMouseOut()},500),n&&setTimeout(function(){t._player.play()})},_onMouseDown:function(e){var t=this;e.preventDefault(),this._player.trigger(d.Private.SeekStart,{fromTime:this._getCurrentTime()}),n.on(this.controlNode,"mousemove",function(e){t._onMouseMove(e)}),n.on(this.controlNode,"touchmove",function(e){t._onMouseMove(e)}),n.on(this.controlNode,"mouseup",function(e){t._onMouseUp(e)}),n.on(this.controlNode,"touchend",function(e){t._onMouseUp(e)})},_onMouseUp:function(e){e.preventDefault(),n.off(this.controlNode,"mousemove"),n.off(this.controlNode,"touchmove"),n.off(this._player.tag,"mouseup"),n.off(this._player.tag,"touchend"),n.off(this.controlNode,"mouseup"),n.off(this.controlNode,"touchend"),this._onMouseClick(e)},_onMouseMove:function(e){e.preventDefault()},_onTimeupdate:function(e){this._player._seeking||(this._updateProgressBar(this.playedNode,this._getCurrentTime()),this._updateCursorPosition(this._getCurrentTime()),this._player.trigger(d.Private.UpdateProgressBar,{time:this._getCurrentTime()}))},_getCurrentTime:function(){var e=this._liveshiftService.seekTime;return-1==e&&(e=0),this._player.getCurrentTime()+e},_onProgress:function(e){this._player.getDuration()&&1<=this._player.getBuffered().length&&this._updateProgressBar(this.loadedNode,this._player.getBuffered().end(this._player.getBuffered().length-1))},_updateProgressBar:function(e,t){var i,r;1!=this._player._switchSourcing&&(r=0,-1==this._liveshiftService.seekTime?r=1:1<(r=(i=this._liveshiftService.availableLiveShiftTime)?t/i:0)&&(this._liveshiftService.seekTime=-(r=1)),this.liveShiftStartDisplay,e&&a.css(e,"width",100*r+"%"))},_updateCursorPosition:function(e){var t,i,r,n;this._player.el()&&1!=this._player._switchSourcing&&(i=0,n=1,r=this._player.el().clientWidth,-1==this._liveshiftService.seekTime?i=1:1<(i=(t=this._liveshiftService.availableLiveShiftTime)?e/t:0)&&(this._liveshiftService.seekTime=-1),0!=r&&(n=1-(r=10/r),i-=r),i=i<0?0:i,this.cursorNode&&(n<i?(a.css(this.cursorNode,"right","0px"),a.css(this.cursorNode,"left","auto")):(a.css(this.cursorNode,"right","auto"),a.css(this.cursorNode,"left",100*i+"%"))))}});t.exports=e},{"../config":13,"../lang/index":21,"../lib/dom":29,"../lib/event":30,"../lib/function":32,"../lib/playerutil":41,"../lib/ua":44,"../lib/util":46,"../player/base/event/eventtype":64,"../ui/component":121}],12:[function(e,t,i){var r=e("../ui/component"),n=e("../lib/util"),o=e("../player/base/event/eventtype"),e=r.extend({init:function(e,t){r.call(this,e,t),this.className=t.className||"prism-live-time-display",this.addClass(this.className),this._liveshiftService=e._liveshiftService},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='<span class="current-time">00:00</span> <span class="time-bound">/</span> <span class="end-time">00:00</span><span class="live-text">Live: </span><span class="live-time"></span>',e},bindEvent:function(){var r=this;this._player.on(o.Video.TimeUpdate,function(){var e,t=r._liveshiftService,i=document.querySelector("#"+r.id()+" .current-time");t.liveShiftStartDisplay&&t.availableLiveShiftTime>t.seekTime&&-1!=t.seekTime?(e=r._liveshiftService.getBaseTime(),e=n.formatTime(e+r._player.getCurrentTime()),i.innerText=e):t.currentTimeDisplay&&(i.innerText=t.currentTimeDisplay)}),this._player.on(o.Private.LiveShiftQueryCompleted,function(){r.updateTime()})},updateTime:function(){document.querySelector("#"+this.id()+" .end-time").innerText=this._liveshiftService.liveTimeRange.endDisplay,document.querySelector("#"+this.id()+" .live-time").innerText=this._liveshiftService.currentTimeDisplay}});t.exports=e},{"../lib/util":46,"../player/base/event/eventtype":64,"../ui/component":121}],13:[function(e,t,i){t.exports={domain:"g.alicdn.com",flashVersion:"2.8.2",h5Version:"2.12.1",rtsVersion:"2.2.3",cityBrain:!0,logDuration:10,logCount:100,logReportTo:"https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/newplayer/track"}},{}],14:[function(e,t,i){e("./lang/index").load();var r=e("./player/adaptivePlayer"),n=e("./lib/reloadInstanceUtil"),o=e("./lib/componentutil"),a=e("./config"),e=function(e,t){t=r.create(e,t);return n.storeUserEvents(t),t};e.getVersion=function(){return a.h5Version},o.register(e);var s=window.Aliplayer=e;e.players={},e.reloadInstance=n.reloadInstance,"function"==typeof define&&define.amd?define([],function(){return s}):"object"==typeof i&&"object"==typeof t&&(t.exports=s),"undefined"!=typeof Uint8Array&&(Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,"slice",{value:Array.prototype.slice}))},{"./config":13,"./lang/index":21,"./lib/componentutil":24,"./lib/reloadInstanceUtil":42,"./player/adaptivePlayer":60}],15:[function(e,t,i){var r=e("../player/base/event/eventtype"),n=e("../lib/constants"),o=e("../lang/index");t.exports=function(){function e(e){var t=this;void 0===e&&(e={}),this.interval=3e3,this.player=null,this.timer=null,this.playerInitDone=!1,this.player=e.player,this.player.on(r.Player.Init,function(){t.playerInitDone=!0})}var t=e.prototype;return t.start=function(){var e=this;this.stop(),this.player&&this.player._options&&!this.player._options.preventRecord||(this.timer=setInterval(function(){e.playerInitDone&&e.check()},this.interval))},t.stop=function(){this.clearTimer()},t.check=function(){var e=!1,t=this.detectPrototype()||this.detectNativeFn();return(t||this.detectDeperateVideo())&&(console.log("isMediaSourceModified",t),this.clearTimer(),this.displayError(),this.setupErrorStyle(),this.destroyVideo(),localStorage.setItem("_intercept_mediastream_",""),e=!0),e},t.dispose=function(){this.stop(),this.player=null,this.playerInitDone=!1},t.clearTimer=function(){this.timer&&(clearInterval(this.timer),this.timer=null)},t.displayError=function(){var e=this.player,t={mediaId:e._options&&e._options.vid?e._options.vid:"",error_code:n.ErrorCode.RecordNotAllowed,error_msg:o.get("Record_Not_Allowed")};e.logError(t),e.trigger(r.Player.Error,t)},t.setupErrorStyle=function(){this.hideRetry();var e=document.querySelector(".prism-ErrorMessage");e&&(e.style.opacity="1",e.style.visibility="visible")},t.hideRetry=function(){var e=document.querySelector("#"+this.player.id()+" .prism-button-retry");e&&(e.style.display="none")},t.destroyVideo=function(){this.player._drm&&this.player.destroy();var e=this.player.tag;e&&e.parentNode&&e.parentNode.removeChild(e)},t.detectPrototype=function(){var e=window,t=e.MediaSource;return t&&e.EventTarget&&t.__proto__.__proto__===e.EventTarget},t.detectNativeFn=function(){var e=window.MediaSource;return e&&!this.isNativeFn(e.prototype.addSourceBuffer)},t.isNativeFn=function(e){var t=RegExp("^".concat(Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),"$")),i=typeof e;return null!==e&&("object"==i||"function"==i)&&t.test(e)},t.detectDeperateVideo=function(){var e=this.player.tag;if(e)return-1!==(e.getAttribute("id")||"").indexOf("360")},e}()},{"../lang/index":21,"../lib/constants":25,"../player/base/event/eventtype":64}],16:[function(e,t,i){var r=e("../lib/oo"),n=e("../lang/index"),r=r.extend({init:function(e,t){this._player=e,this._options=e.options()}});r.prototype.handle=function(e){var t,i;this._options.autoPlayDelay&&(t=(t=this._options.autoPlayDelayDisplayText)||n.get("AutoPlayDelayDisplayText").replace("$$",this._options.autoPlayDelay),this._player.trigger("info_show",t),this._player.trigger("h5_loading_hide"),this._player.trigger("play_btn_hide"),(i=this)._timeHandler=setTimeout(function(){i._player.trigger("info_hide"),i._options.autoPlayDelay=0,e&&e()},1e3*this._options.autoPlayDelay),this._player.on("play",function(){o(i)}),this._player.on("pause",function(){o(i)}))},r.prototype.dispose=function(){o(this),this._player=null};var o=function(e){e._timeHandler&&(clearTimeout(e._timeHandler),e._timeHandler=null)};t.exports=r},{"../lang/index":21,"../lib/oo":39}],17:[function(e,t,i){var r=e("../lib/event"),n=e("../lib/data"),o=e("../player/base/event/eventtype"),a=n.guid(),n={};function s(e){var t=this._options.keyFastForwardStep,i=this._options.isLive;switch(e&&e.keyCode){case 39:if(i)return;e.preventDefault();var r=this.getDuration(),n=this.getCurrentTime()+t;this.seek(n=r<n?r:n),l.call(this,n),u.call(this,n);break;case 37:if(i)return;e.preventDefault();n=this.getCurrentTime()-t;this.seek(n=n<0?0:n),l.call(this,n),u.call(this,n);break;case 38:e.preventDefault(),this.getVolume()<1&&0<=this.getVolume()&&this.setVolume((this.getVolume()+.1).toFixed(1));break;case 40:e.preventDefault(),0<this.getVolume()&&this.getVolume()<=1&&this.setVolume((this.getVolume()-.1).toFixed(1));break;case 32:if(i)return;e.preventDefault(),this.tag.paused?this.play(!0):this.pause(!0)}}function l(e){this.trigger(o.Private.UpdateProgress,{targetTime:e})}function u(e){this.trigger(o.Private.UpdateCursorPosition,{targetTime:e})}n.init=function(){var e;this._options.keyShortCuts&&((e=s.bind(this)).guid=a,r.on(window.document,"keydown",e))},n.dispose=function(){var e;this._options.keyShortCuts&&((e=s.bind(this)).guid=a,r.off(window.document,"keydown",e))},t.exports=n},{"../lib/data":27,"../lib/event":30,"../player/base/event/eventtype":64}],18:[function(e,t,i){t.exports=t.exports={OD:"OD",FD:"360p",LD:"540p",SD:"720p",HD:"1080p","2K":"2K","4K":"4K",FHD:"FHD",XLD:"XLD",SQ:"SQ",HQ:"HQ",Speed:"Speed",Speed_05X_Text:"0.5X",Speed_1X_Text:"Normal",Speed_125X_Text:"1.25X",Speed_15X_Text:"1.5X",Speed_2X_Text:"2X",Refresh_Text:"Refresh",Cancel:"Cancel",Mute:"Mute",Snapshot:"Snapshot",Detection_Text:"Diagnosis",Play_DateTime:"Time",Quality_Change_Fail_Switch_Text:"Cannot play, switch to ",Quality_Change_Text:"Switch to ",Quality_The_Url:"The url",AutoPlayDelayDisplayText:"Play in $$ seconds",Error_Load_Abort_Text:"Data abort erro",Error_Network_Text:"Loading failed due to network error",Error_Decode_Text:"Decode error",Error_Server_Network_NotSupport_Text:"Network error or \xa0the format of video is unsupported",Error_Offline_Text:"The network is unreachable, please click Refresh",Error_Play_Text:"Error occured while playing",Error_Retry_Text:" Please close or refresh",Error_AuthKey_Text:"Authentication expired or the domain is not in white list",Error_H5_Not_Support_Text:"The format of video is not supported by\xa0h5 player\uff0cplease use flash player",Error_Not_Support_M3U8_Text:"The format of m3u8 is not supported by this explorer",Error_Not_Support_MP4_Text:"The format of mp4\xa0is not supported by this explorer",Error_Not_Support_encrypt_Text:"Play the encrypted video,please set encryptType to 1",Error_Vod_URL_Is_Empty_Text:"The url is empty",Error_Vod_Fetch_Urls_Text:"Error occured when fetch urls\uff0cplease close or refresh",Fetch_Playauth_Error:"Error occured when fetch playauth close or refresh",Error_Playauth_Decode_Text:"PlayAuth parse failed",Error_Vid_Not_Same_Text:"Cannot renew url due to vid changed",Error_Playauth_Expired_Text:"Playauth expired, please close or refresh",Error_MTS_Fetch_Urls_Text:"Error occurred while requesting mst server",Error_Load_M3U8_Failed_Text:"The m3u8 file loaded failed,please make sure domain configuration https certificate or enable cors",Error_Load_M3U8_Timeout_Text:"Timeout error occored\xa0when the\xa0m3u8 file loaded",Error_Liveshift_M3U8_Not_Found_Text:"No more liveshift video avaliable",Error_M3U8_Decode_Text:"The m3u8 file decoded failed",Error_TX_Decode_Text:"Video decoded failed",Error_Waiting_Timeout_Text:"Buffering timeout,\xa0please close or refresh",Error_Invalidate_Source:"Video shoud be mp4\u3001mp3\u3001m3u8\u3001mpd or flv",Error_Empty_Source:"Video URL shouldn't be empty",Error_Vid_Empty_Source:"vid's video URL hasn't been fetched",Error_Mediaauth_Empty_Source:"mediaAuth's video URL hasn't been fetched",Error_Fetch_NotStream:"The vid has no stream to play",Error_Fetch_Media_Not_Found:"Data is not found",Error_Not_Found:"Url is not found",Error_Drm_License_Request_Failed:"DRM license request failed",Error_Drm_Not_Supported:"DRM in not supported",Error_Drm_Load:"DRM load error",Live_End:"Live has finished",Play_Before_Fullscreen:"Please play before fullscreen",Can_Not_Seekable:"Can not seek to this position",Cancel_Text:"Cancel",OK_Text:"OK",Auto_Stream_Tip_Text:"Internet is slow, does switch to $$",Request_Block_Text:"This request is blocked, the video Url should be over https",Open_Html_By_File:"Html page should be on the server",Maybe_Cors_Error:"please make sure domain configuration https certificate or enable cors",Speed_Switch_To:"Speed switch to ",Curent_Volume:"Current volume:",Volume_Mute:"set to mute",Volume_UnMute:"set to unmute",ShiftLiveTime_Error:"Live start time should not be greater than over time",Error_Not_Support_Format_On_Mobile:"flv\u3001rmtp can't be supported on mobile\uff0cplease use m3u8",SessionId_Ticket_Invalid:"please assign value for sessionId and ticket properties",Http_Error:" An HTTP network request failed with an error, but not from the server.",Http_Timeout:"A network request timed out",DRM_License_Expired:"DRM license is expired, please refresh",Not_Support_DRM:"Browser doesn't support DRM",CC_Switch_To:"Subtitle switch to ",AudioTrack_Switch_To:"Audio tracks switch to ",Subtitle:"Subtitle/CC",AudioTrack:"Audio Track",Quality:"Quality",Auto:"Auto",Quality_Switch_To:"Quality switch to ",Fullscreen:"Full Screen",Setting:"Settings",Volume:"Volume",Play:"Play",Pause:"Pause",CloseSubtitle:"Close CC",OpenSubtitle:"Open CC",ExistFullScreen:"Exit Full Screen",Muted:"Muted",Retry:"Retry",SwitchToLive:"Return to live",iOSNotSupportVodEncription:"iOS desn't support Vod's private encription video, please use HLS standard encription or DRM",UseChromeForVodEncription:"This browser desn't suport Vod's encription video, please use latest Chrome",Record_Not_Allowed:"Recording or playing in seperated window is not allowed, please disable related plugins or switch browser.",Rts_Err_Http_Signal_Error:"(RTS)http signal error",Rts_Err_Play_Failed:"(RTS)play faild error",Rts_Err_No_Data_For:"ms received no data",Rts_Err_Browser_Not_Support:"(RTS)browser not support",Rts_Err_Not_Support_Webrtc:"(RTS)not support webrtc",Rts_Err_Browser_Version_Too_Low:"(RTS)browser version too low",Rts_Err_Not_Support_H264:"(RTS)not support h264",Rts_Err_Create_Offer_Error:"(RTS)create offer error",Rts_Err_Play_Url_Error:"(RTS)play url error",Rts_Err_Subscribe_Nonthing:"(RTS)subscribe nonthing",Rts_Err_Http_Request_Failed:"(RTS)HTTP request failed",Rts_Err_Http_Answer_Failed:"(RTS)answer failed",Rts_Err_PeerConnection_Unknown:"(RTS)Unknown PeerConnection"}},{}],19:[function(e,t,i){t.exports=t.exports={OD:"OD",LD:"360p",FD:"540p",SD:"720p",HD:"1080p","2K":"2K","4K":"4K",FHD:"FHD",XLD:"XLD",SQ:"SQ",HQ:"HQ",Forbidden_Text:"Internal information is strictly forbidden to outsider",Refresh:"Refresh",Diagnosis:"Diagnosis",Live_Finished:"Live has finished, thanks for watching",Play:"Play",Pause:"Pause",Snapshot:"Snapshot",Replay:"Replay",Live:"Live",Encrypt:"Encrypt",Sound:"Sound",Fullscreen:"Full Screen",Exist_Fullscreen:"Exit Full-screen",Resolution:"Resolution",Next:"Next Video",Brightness:"Brightness",Default:"Default",Contrast:"Contrast",Titles_Credits:"Titles\xa0and\xa0Credits",Skip_Titles:"Skip Titles",Skip_Credits:"Skip Credits",Not_Support_Out_Site:"The video is not supported for outside website, please watch it by TaoTV",Watch_Now:"Watch now",Network_Error:"Network is unreachable, please try to refresh",Video_Error:"Playing a video error,\xa0please try to refresh",Decode_Error:"Data decoding\xa0error",Live_Not_Start:"Live has not started, to be expected",Live_Loading:"Live information is loading,\xa0please try to refresh",Fetch_Playauth_Error:"Error occured when fetch playauth close or refresh",Live_End:"Live has finished",Live_Abrot:"Signal aborted,\xa0please try to refresh",Corss_Domain_Error:"Please ensure your domain has obtained IPC license and combined CNAME, \r\n or to set\xa0\xa0cross-domain accessing available",Url_Timeout_Error:"The video url is timeout,\xa0please try to refresh",Connetction_Error:"Sorry\uff0cthe video cannot play because of connection error, please try to watch other videos",Fetch_MTS_Error:"Fetching video list failed, please ensure",Token_Expired_Error:"Requesting open api failed, please ensure token expired or not",Video_Lists_Empty_Error:"The video list is empty, please check the format of video",Encrypted_Failed_Error:"Fetching encrypted file failed, please check the permission of player",Fetch_Failed_Permission_Error:"Fetching video list failed, please check the permission of player",Invalidate_Param_Error:"No video url, please check the parameters",AutoPlayDelayDisplayText:"Play in $$ seconds",Fetch_MTS_NOT_NotStream_Error:"The vid has no stream to play",Cancel_Text:"Cancel",OK_Text:"OK",Auto_Stream_Tip_Text:"Internet is slow, does switch to $$",Open_Html_By_File:"Html page should be on the server",Cant_Use_Flash_On_Mobile:"Mobile doesn't support flash player\uff0cplease use h5 player",Flash_Not_Ready:"Flash Player plugin hasn't been installed <a href='https://www.flash.cn/' target='_blank'>install plugin</a>, or check if disable Flash plugin"}},{}],20:[function(e,t,i){t.exports=t.exports={OD:"\u539f\u753b",FD:"\u6d41\u7545",LD:"\u6807\u6e05",SD:"\u9ad8\u6e05",HD:"\u8d85\u6e05","2K":"2K","4K":"4K",FHD:"\u5168\u9ad8\u6e05",XLD:"\u6781\u901f",SQ:"\u666e\u901a\u97f3\u8d28",HQ:"\u9ad8\u97f3\u8d28",Forbidden_Text:"\u5185\u90e8\u4fe1\u606f\uff0c\u4e25\u7981\u5916\u4f20",Refresh:"\u5237\u65b0",Diagnosis:"\u8bca\u65ad",Live_Finished:"\u76f4\u64ad\u5df2\u7ed3\u675f,\u8c22\u8c22\u89c2\u770b",Play:"\u64ad\u653e",Pause:"\u6682\u505c",Snapshot:"\u622a\u56fe",Replay:"\u91cd\u64ad",Live:"\u76f4\u64ad",Encrypt:"\u52a0\u5bc6",Sound:"\u58f0\u97f3",Fullscreen:"\u5168\u5c4f",Exist_Fullscreen:"\u9000\u51fa\u5168\u5c4f",Resolution:"\u6e05\u6670\u5ea6",Next:"\u4e0b\u4e00\u96c6",Brightness:"\u4eae\u5ea6",Default:"\u9ed8\u8ba4",Contrast:"\u5bf9\u6bd4\u5ea6",Titles_Credits:"\u7247\u5934\u7247\u5c3e",Skip_Titles:"\u8df3\u8fc7\u7247\u5934",Skip_Credits:"\u8df3\u8fc7\u7247\u5c3e",Not_Support_Out_Site:"\u8be5\u89c6\u9891\u6682\u4e0d\u652f\u6301\u7ad9\u5916\u64ad\u653e\uff0c\u8bf7\u5230\u6dd8TV\u89c2\u770b",Watch_Now:"\u7acb\u5373\u89c2\u770b",Network_Error:"\u7f51\u7edc\u65e0\u6cd5\u8fde\u63a5\uff0c\u8bf7\u5c1d\u8bd5\u68c0\u67e5\u7f51\u7edc\u540e\u5237\u65b0\u8bd5\u8bd5",Video_Error:"\u89c6\u9891\u64ad\u653e\u5f02\u5e38\uff0c\u8bf7\u5237\u65b0\u8bd5\u8bd5",Decode_Error:"\u64ad\u653e\u6570\u636e\u89e3\u7801\u9519\u8bef",Live_Not_Start:"\u4eb2\uff0c\u76f4\u64ad\u8fd8\u672a\u5f00\u59cb\u54e6\uff0c\u656c\u8bf7\u671f\u5f85",Live_Loading:"\u76f4\u64ad\u4fe1\u606f\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u5237\u65b0\u8bd5\u8bd5",Live_End:"\u4eb2\uff0c\u76f4\u64ad\u5df2\u7ed3\u675f",Live_Abrot:"\u5f53\u524d\u76f4\u64ad\u4fe1\u53f7\u4e2d\u65ad\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5",Corss_Domain_Error:"\u8bf7\u786e\u8ba4\u60a8\u7684\u57df\u540d\u5df2\u5b8c\u6210\u5907\u6848\u548cCNAME\u7ed1\u5b9a\uff0c\r\n\u5e76\u5904\u4e8e\u542f\u7528\u72b6\u6001\uff0c\u6216\u8d44\u6e90\u5141\u8bb8\u8de8\u8d8a\u8bbf\u95ee",Url_Timeout_Error:"\u60a8\u6240\u89c2\u770b\u7684\u89c6\u9891\u5730\u5740\u8fde\u63a5\u8d85\u65f6\uff0c\u8bf7\u5237\u65b0\u540e\u91cd\u8bd5",Connetction_Error:"\u62b1\u6b49,\u8be5\u89c6\u9891\u7531\u4e8e\u8fde\u63a5\u9519\u8bef\u6682\u65f6\u4e0d\u80fd\u64ad\u653e,\u8bf7\u89c2\u770b\u5176\u5b83\u89c6\u9891",Fetch_MTS_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4",Token_Expired_Error:"\u8bf7\u6c42\u63a5\u53e3\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4Token\u662f\u5426\u8fc7\u671f",Video_Lists_Empty_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u4e3a\u7a7a\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6570\u636e\u4e0e\u683c\u5f0f",Encrypted_Failed_Error:"\u83b7\u53d6\u89c6\u9891\u52a0\u5bc6\u79d8\u94a5\u9519\u8bef\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6743\u9650",Fetch_Failed_Permission_Error:"\u83b7\u53d6\u89c6\u9891\u5217\u8868\u5931\u8d25\uff0c\u8bf7\u786e\u8ba4\u64ad\u653e\u6743\u9650",Invalidate_Param_Error:"\u65e0\u8f93\u5165\u89c6\u9891\uff0c\u8bf7\u786e\u8ba4\u8f93\u5165\u53c2\u6570",AutoPlayDelayDisplayText:"$$\u79d2\u4ee5\u540e\u5f00\u59cb\u64ad\u653e",Fetch_MTS_NOT_NotStream_Error:"\u6b64vid\u6ca1\u6709\u53ef\u64ad\u653e\u89c6\u9891",Cancel_Text:"\u53d6\u6d88",OK_Text:"\u786e\u8ba4",Auto_Stream_Tip_Text:"\u7f51\u7edc\u4e0d\u7ed9\u529b\uff0c\u662f\u5426\u5207\u6362\u5230$$",Fetch_Playauth_Error:"\u83b7\u53d6\u64ad\u653e\u51ed\u8bc1\u51fa\u9519\u5566\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Open_Html_By_File:"\u4e0d\u80fd\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u6253\u5f00html\u6587\u4ef6\uff0c\u8bf7\u90e8\u7f72\u5230\u670d\u52a1\u7aef",Cant_Use_Flash_On_Mobile:"\u79fb\u52a8\u7aef\u4e0d\u652f\u6301Flash\u64ad\u653e\u5668\uff0c\u8bf7\u4f7f\u7528h5\u64ad\u653e\u5668",Flash_Not_Ready:"Flash Player\u63d2\u4ef6\u672a\u5b89\u88c5<a href='https://www.flash.cn/' target='_blank'>\u5b89\u88c5\u63d2\u4ef6</a>\uff0c\u5982\u679c\u5df2\u7ecf\u5b89\u88c5\u8bf7\u68c0\u67e5\u662f\u5426\u88ab\u7981\u7528"}},{}],21:[function(o,e,t){function n(){var e;return void 0!==window[l]&&window[l]||(e=(e=(navigator.language||navigator.browserLanguage).toLowerCase())&&-1<e.indexOf("zh")?"zh-cn":"en-us",window[l]=e),window[l]}function a(e,t){var i=d(e),r="",n=c(),r="flash"==e?"en-us"==n?o("./flash/en-us"):"zh-cn"==n?o("./flash/zh-cn"):t[n]:"en-us"==n?o("./en-us"):"zh-cn"==n?o("./zh-cn"):t[n];s.set(i,JSON.stringify(r)),u(e,r)}var i=o("../config"),s=o("../lib/storage"),r=(o("../lib/io"),"aliplayer_lang_data"),l="aliplayer_lang",u=function(e,t){e=d(e);window[e]=t},c=function(){return n()},d=function(e){var t=c();return r+"_"+(e=e||"h5")+"_"+i.h5Version.replace(/\./g,"_")+"_"+t};e.exports.setCurrentLanguage=function(e,t,i){var r=window[l];if(!("en-us"==(e=void 0===e||!e?n():e)||"zh-cn"==e||i&&i[e]))throw new Error("There is not language resource for "+e+", please specify the language resource by languageTexts property");window[l]=e,a(t,i),e!=r&&o("../lib/constants").updateByLanguage()},e.exports.getCurrentLanguage=n,e.exports.getLanguageData=function(e,t){e=d(e);return window[e]},e.exports.load=a,e.exports.get=function(e,t){t=d(t=t||"h5"),t=window[t];if(t)return t[e]}},{"../config":13,"../lib/constants":25,"../lib/io":36,"../lib/storage":43,"./en-us":18,"./flash/en-us":19,"./flash/zh-cn":20,"./zh-cn":22}],22:[function(e,t,i){t.exports=t.exports={OD:"\u539f\u753b",FD:"\u6d41\u7545",LD:"\u6807\u6e05",SD:"\u9ad8\u6e05",HD:"\u8d85\u6e05","2K":"2K","4K":"4K",FHD:"\u5168\u9ad8\u6e05",XLD:"\u6781\u901f",SQ:"\u666e\u901a\u97f3\u8d28",HQ:"\u9ad8\u97f3\u8d28",Speed:"\u500d\u901f",Speed_05X_Text:"0.5X",Speed_1X_Text:"\u6b63\u5e38",Speed_125X_Text:"1.25X",Speed_15X_Text:"1.5X",Speed_2X_Text:"2X",Quality_Change_Fail_Switch_Text:"\u4e0d\u80fd\u64ad\u653e\uff0c\u5207\u6362\u4e3a",Quality_Change_Text:"\u6b63\u5728\u4e3a\u60a8\u5207\u6362\u5230 ",Quality_The_Url:"\u6b64\u5730\u5740",Refresh_Text:"\u5237\u65b0",Detection_Text:"\u8bca\u65ad",Cancel:"\u53d6\u6d88",Mute:"\u9759\u97f3",Snapshot:"\u622a\u56fe",Play_DateTime:"\u64ad\u653e\u65f6\u95f4",AutoPlayDelayDisplayText:"$$\u79d2\u4ee5\u540e\u5f00\u59cb\u64ad\u653e",Error_Load_Abort_Text:"\u83b7\u53d6\u6570\u636e\u8fc7\u7a0b\u88ab\u4e2d\u6b62",Error_Network_Text:"\u7f51\u7edc\u9519\u8bef\u52a0\u8f7d\u6570\u636e\u5931\u8d25",Error_Decode_Text:"\u89e3\u7801\u9519\u8bef",Error_Server_Network_NotSupport_Text:"\u670d\u52a1\u5668\u3001\u7f51\u7edc\u9519\u8bef\u6216\u683c\u5f0f\u4e0d\u652f\u6301",Error_Offline_Text:"\u7f51\u7edc\u4e0d\u53ef\u7528\uff0c\u8bf7\u786e\u5b9a",Error_Play_Text:"\u64ad\u653e\u51fa\u9519\u5566",Error_Retry_Text:"\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_AuthKey_Text:"\u53ef\u80fd\u9274\u6743\u8fc7\u671f\u3001\u57df\u540d\u4e0d\u5728\u767d\u540d\u5355\u6216\u8bf7\u6c42\u88ab\u62e6\u622a",Error_H5_Not_Support_Text:"h5\u4e0d\u652f\u6301\u6b64\u683c\u5f0f\uff0c\u8bf7\u4f7f\u7528flash\u64ad\u653e\u5668",Error_Not_Support_M3U8_Text:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301m3u8\u89c6\u9891\u64ad\u653e",Error_Not_Support_MP4_Text:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301mp4\u89c6\u9891\u64ad\u653e",Error_Not_Support_encrypt_Text:"\u64ad\u653e\u52a0\u5bc6\u89c6\u9891\uff0c\u8bf7\u8bbe\u7f6e\u5c5e\u6027encryptType to 1",Error_Vod_URL_Is_Empty_Text:"\u83b7\u53d6\u64ad\u653e\u5730\u5740\u4e3a\u7a7a",Error_Vod_Fetch_Urls_Text:"\u83b7\u53d6\u5730\u5740\u51fa\u9519\u5566\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Fetch_Playauth_Error:"\u83b7\u53d6\u64ad\u653e\u51ed\u8bc1\u51fa\u9519\u5566\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_Playauth_Decode_Text:"playauth\u89e3\u6790\u9519\u8bef",Error_Vid_Not_Same_Text:"\u4e0d\u80fd\u66f4\u65b0\u5730\u5740\uff0cvid\u548c\u64ad\u653e\u4e2d\u7684\u4e0d\u4e00\u81f4",Error_Playauth_Expired_Text:"\u51ed\u8bc1\u5df2\u8fc7\u671f\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_MTS_Fetch_Urls_Text:"MTS\u83b7\u53d6\u53d6\u6570\u5931\u8d25",Error_Load_M3U8_Failed_Text:"\u83b7\u53d6m3u8\u6587\u4ef6\u5931\u8d25,\u8bf7\u786e\u8ba4\u57df\u540d\u662f\u5426\u914d\u7f6e\u4e86https\u8bc1\u4e66\u6216\u8005\u662f\u5426\u5f00\u542f\u4e86\u5141\u8bb8\u8de8\u57df\u8bbf\u95ee",Error_Load_M3U8_Timeout_Text:"\u83b7\u53d6m3u8\u6587\u4ef6\u8d85\u65f6",Error_Liveshift_M3U8_Not_Found_Text:"\u6ca1\u6709\u66f4\u591a\u65f6\u79fb\u89c6\u9891\u4e86",Error_M3U8_Decode_Text:"\u83b7\u53d6m3u8\u6587\u4ef6\u89e3\u6790\u5931\u8d25",Error_TX_Decode_Text:"\u89e3\u6790\u6570\u636e\u51fa\u9519",Error_Waiting_Timeout_Text:"\u7f13\u51b2\u6570\u636e\u8d85\u65f6\uff0c\u8bf7\u5c1d\u8bd5\u9000\u51fa\u91cd\u8bd5\u6216\u5237\u65b0",Error_Invalidate_Source:"\u64ad\u653e\u5730\u5740\u683c\u5f0f\u9700\u8981\u4e3amp4\u3001mp3\u3001m3u8\u3001mpd\u6216flv",Error_Empty_Source:"\u64ad\u653e\u5730\u5740\u4e0d\u80fd\u4e3a\u7a7a",Error_Vid_Empty_Source:"vid\u5bf9\u5e94\u7684\u89c6\u9891\u5730\u5740\u8fd8\u672a\u83b7\u53d6\u5230",Error_Mediaauth_Empty_Source:"mediaAuth\u5bf9\u5e94\u7684\u89c6\u9891\u5730\u5740\u8fd8\u672a\u83b7\u53d6\u5230",Error_Fetch_NotStream:"\u6b64vid\u6ca1\u6709\u53ef\u64ad\u653e\u89c6\u9891",Error_Fetch_Media_Not_Found:"\u6570\u636e\u4e0d\u5b58\u5728\u6216\u5df2\u88ab\u5220\u9664",Error_Not_Found:"\u64ad\u653e\u5730\u5740\u4e0d\u5b58\u5728",Error_Drm_License_Request_Failed:"DRM License \u8bf7\u6c42\u5931\u8d25",Error_Drm_Not_Supported:"\u5f53\u524d\u6d4f\u89c8\u5668\u4e0d\u652f\u6301 DRM \u64ad\u653e",Error_Drm_Load:"DRM \u64ad\u653e\u9519\u8bef",Live_End:"\u4eb2\uff0c\u76f4\u64ad\u5df2\u7ed3\u675f",Play_Before_Fullscreen:"\u64ad\u653e\u540e\u518d\u5168\u5c4f",Can_Not_Seekable:"\u4e0d\u80fdseek\u5230\u8fd9\u91cc",Cancel_Text:"\u53d6\u6d88",OK_Text:"\u786e\u8ba4",Auto_Stream_Tip_Text:"\u7f51\u7edc\u4e0d\u7ed9\u529b\uff0c\u662f\u5426\u5207\u6362\u5230$$",Request_Block_Text:"\u6d4f\u89c8\u5668\u5b89\u5168\u7b56\u7565\u89c6\u9891\u5730\u5740\u4e0d\u80fd\u4e3ahttp\u534f\u8bae\uff0c\u4e0e\u7f51\u7ad9https\u534f\u8bae\u4e0d\u4e00\u81f4",Open_Html_By_File:"\u4e0d\u80fd\u76f4\u63a5\u5728\u6d4f\u89c8\u5668\u6253\u5f00html\u6587\u4ef6\uff0c\u8bf7\u90e8\u7f72\u5230\u670d\u52a1\u7aef",Maybe_Cors_Error:"\u8bf7\u786e\u8ba4\u57df\u540d\u662f\u5426\u914d\u7f6e\u4e86https\u8bc1\u4e66\u6216\u8005\u662f\u5426\u5f00\u542f\u4e86\u5141\u8bb8\u8de8\u57df\u8bbf\u95ee",Speed_Switch_To:"\u500d\u901f\u5207\u6362\u5230 ",Curent_Volume:"\u5f53\u524d\u97f3\u91cf\uff1a",Volume_Mute:"\u8bbe\u7f6e\u4e3a\u9759\u97f3",Volume_UnMute:"\u8bbe\u7f6e\u4e3a\u975e\u9759\u97f3",ShiftLiveTime_Error:"\u76f4\u64ad\u5f00\u59cb\u65f6\u95f4\u4e0d\u80fd\u5927\u4e8e\u76f4\u64ad\u7ed3\u675f\u65f6\u95f4",Error_Not_Support_Format_On_Mobile:"\u79fb\u52a8\u7aef\u4e0d\u652f\u6301flv\u3001rmtp\u89c6\u9891\uff0c\u8bf7\u4f7f\u7528m3u8",SessionId_Ticket_Invalid:"DRM\u89c6\u9891\u64ad\u653e\uff0csessionId\u548cticket\u5c5e\u6027\u4e0d\u80fd\u4e3a\u7a7a",Http_Error:"Http\u7f51\u7edc\u8bf7\u6c42\u5931\u8d25",Http_Timeout:"http\u8bf7\u6c42\u8d85\u65f6",DRM_License_Expired:"DRM license\u8d85\u65f6\uff0c\u8bf7\u5237\u65b0",Not_Support_DRM:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301DRM\u89c6\u9891\u7684\u64ad\u653e\u6216\u672a\u53d7\u5230\u7528\u6237\u8bb8\u53ef",CC_Switch_To:"\u5b57\u5e55\u5207\u6362\u5230 ",AudioTrack_Switch_To:"\u97f3\u8f68\u5207\u6362\u5230 ",Subtitle:"\u5b57\u5e55",AudioTrack:"\u97f3\u8f68",Quality:"\u6e05\u6670\u5ea6",Auto:"\u81ea\u52a8",Quality_Switch_To:"\u6e05\u6670\u5ea6\u5207\u6362\u5230 ",Fullscreen:"\u5168\u5c4f",Setting:"\u8bbe\u7f6e",Volume:"\u97f3\u91cf",Play:"\u64ad\u653e",Pause:"\u6682\u505c",CloseSubtitle:"\u5173\u95ed\u5b57\u5e55",OpenSubtitle:"\u6253\u5f00\u5b57\u5e55",ExistFullScreen:"\u9000\u51fa\u5168\u5c4f",Muted:"\u9759\u97f3",Retry:"\u91cd\u8bd5",SwitchToLive:"\u8fd4\u56de\u76f4\u64ad",iOSNotSupportVodEncription:"iOS\u4e0d\u652f\u6301\u963f\u91cc\u4e91\u89c6\u9891\u52a0\u5bc6\uff08\u52a0\u5bc6\uff09\u64ad\u653e\uff0c\u8bf7\u4f7f\u7528\u6807\u51c6\u52a0\u5bc6\u6216DRM",UseChromeForVodEncription:"\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u70b9\u64ad\u52a0\u5bc6\u64ad\u653e\uff0c\u8bf7\u4f7f\u7528\u6700\u65b0Chrome\u6d4f\u89c8\u5668",Record_Not_Allowed:"\u7981\u6b62\u5f55\u5c4f\u6216\u5c0f\u7a97\u53e3\u64ad\u653e\uff0c\u8bf7\u5173\u95ed\u63d2\u4ef6\u6216\u66f4\u6362\u6d4f\u89c8\u5668",Rts_Err_Http_Signal_Error:"(RTS)\u4fe1\u4ee4\u8bf7\u6c42\u5931\u8d25",Rts_Err_Play_Failed:"(RTS)\u64ad\u653e\u5931\u8d25",Rts_Err_No_Data_For:"\u6beb\u79d2\u6ca1\u6709\u6570\u636e",Rts_Err_Browser_Not_Support:"(RTS)\u4e0d\u652f\u6301\u6b64\u6d4f\u89c8\u5668",Rts_Err_Not_Support_Webrtc:"(RTS)\u4e0d\u652f\u6301webrtc",Rts_Err_Browser_Version_Too_Low:"(RTS)\u6d4f\u89c8\u5668\u7248\u672c\u8fc7\u4f4e",Rts_Err_Not_Support_H264:"(RTS)\u4e0d\u652f\u6301H264",Rts_Err_Create_Offer_Error:"(RTS)create offer\u5931\u8d25",Rts_Err_Play_Url_Error:"(RTS)\u64ad\u653eurl\u534f\u8bae\u9519\u8bef",Rts_Err_Subscribe_Nonthing:"(RTS)\u53c2\u6570\u8bbe\u7f6e\u9519\u8bef",Rts_Err_Http_Request_Failed:"(RTS)HTTP\u8bf7\u6c42\u5931\u8d25",Rts_Err_Http_Answer_Failed:"(RTS)answer\u5931\u8d25",Rts_Err_PeerConnection_Unknown:"(RTS)PeerConnection\u5f02\u5e38"}},{}],23:[function(e,t,i){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";if(window.Uint8Array)for(var c=new Uint8Array(256),r=0;r<o.length;r++)c[o.charCodeAt(r)]=r;var l=function(e){for(var t="",i=0;i<e.length;i+=16e3){var r=e.subarray(i,i+16e3);t+=String.fromCharCode.apply(null,r)}return t};unpackPlayReady=function(e){e=function(e,t,i){if(!e)return"";i||e.byteLength%2==0||console.log("Data has an incorrect length, must be even.");for(var r=e instanceof ArrayBuffer?e:((r=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),r.buffer),n=Math.floor(e.byteLength/2),o=new Uint16Array(n),a=new DataView(r),s=0;s<n;s++)o[s]=a.getUint16(2*s,t);return l(o)}(e,!0,!0);if(-1!=e.indexOf("PlayReadyKeyMessage")){for(var e=(new DOMParser).parseFromString(e,"application/xml"),t=e.getElementsByTagName("HttpHeader"),i={},r=0;r<t.length;++r){var n=t[r].querySelector("name"),o=t[r].querySelector("value");i[n.textContent]=o.textContent}return{header:i,changange:e.querySelector("Challenge").textContent}}console.log("PlayReady request is already unwrapped.")},t.exports={decode:function(e){var t,i,r,n,o=.75*e.length,a=e.length,s=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);for(var o=new ArrayBuffer(o),l=new Uint8Array(o),u=0;u<a;u+=4)t=c[e.charCodeAt(u)],i=c[e.charCodeAt(u+1)],r=c[e.charCodeAt(u+2)],n=c[e.charCodeAt(u+3)],l[s++]=t<<2|i>>4,l[s++]=(15&i)<<4|r>>2,l[s++]=(3&r)<<6|63&n;return o},encode:function(e){for(var t=new Uint8Array(e),i=t.length,r="",n=0;n<i;n+=3)r+=o[t[n]>>2],r+=o[(3&t[n])<<4|t[n+1]>>4],r+=o[(15&t[n+1])<<2|t[n+2]>>6],r+=o[63&t[n+2]];return i%3==2?r=r.substring(0,r.length-1)+"=":i%3==1&&(r=r.substring(0,r.length-2)+"=="),r},unpackPlayReady:unpackPlayReady}},{}],24:[function(e,t,i){var r=e("./oo"),n=e("../player/base/event/eventtype");t.exports.stopPropagation=function(e){window.event?window.event.cancelBubble=!0:e.stopPropagation()},t.exports.register=function(e){e.util={stopPropagation:t.exports.stopPropagation},e.Component=r.extend,e.EventType=n.Player}},{"../player/base/event/eventtype":64,"./oo":39}],25:[function(e,t,i){var r=e("../lang/index");t.exports.LOAD_START="loadstart",t.exports.LOADED_METADATA="loadedmetadata",t.exports.LOADED_DATA="loadeddata",t.exports.PROGRESS="progress",t.exports.CAN_PLAY="canplay",t.exports.CAN_PLYA_THROUGH="canplaythrough",t.exports.PLAY="play",t.exports.PAUSE="pause",t.exports.ENDED="ended",t.exports.PLAYING="playing",t.exports.WAITING="waiting",t.exports.ERROR="error",t.exports.SUSPEND="suspend",t.exports.STALLED="stalled",t.exports.AuthKeyExpiredEvent="authkeyexpired",t.exports.DRMKeySystem={4:"com.microsoft.playready",5:"com.widevine.alpha"},t.exports.EncryptionType={Private:1,Standard:2,ChinaDRM:3,PlayReady:4,Widevine:5},t.exports.VodEncryptionType={AliyunVoDEncryption:1,HLSEncryption:2,Widevine:5,"Widevine-FairPlay":5},t.exports.DRMType={Widevine:"Widevine",PlayReady:"PlayReady"},t.exports.ErrorCode={InvalidParameter:4001,AuthKeyExpired:4002,InvalidSourceURL:4003,NotFoundSourceURL:4004,StartLoadData:4005,LoadedMetadata:4006,PlayingError:4007,LoadingTimeout:4008,RequestDataError:4009,EncrptyVideoNotSupport:4010,FormatNotSupport:4011,PlayauthDecode:4012,PlayDataDecode:4013,NetworkUnavaiable:4014,UserAbort:4015,NetworkError:4016,URLsIsEmpty:4017,DrmLicenseRequestFailed:4018,RecordNotAllowed:4019,MediaNotFound:4020,DrmNotSupported:4021,DrmLoadError:4022,CrossDomain:4027,OtherError:4400,ServerAPIError:4500,FlashNotInstalled:4600,RtsSignalError:4100,RtsPlayFailedError:4200,RtsNotSupportWebRtc:4110,RtsBrowserNotSupport:4111,RtsBrowserVersionTooLow:4112,RtsNotSupportH264:4113,RtsCreateOfferError:4114,RtsAutoPLayFaild:4115,RtsPlayUrlError:4116,RtsSubscribeNonthing:4117,RtsHtmlElementError:4118,RtsHtmlElementNotMatch:4119,RtsBrowserNotSupportRtc:4120,RtsHttpRequestFaild:4121,RtsHttpAnswerFaild:4122,RtsPeerConnectionUnknown:4123},t.exports.AuthKeyExpired=7200,t.exports.AuthKeyRefreshExpired=7e3,t.exports.AuthInfoExpired=100,t.exports.VideoErrorCode={1:4015,2:4016,3:4013,4:4400},t.exports.IconType={FontClass:"fontclass",Symbol:"symbol",Sprite:"Sprite"},t.exports.SelectedStreamLevel="selectedStreamLevel",t.exports.SelectedCC="selectedCC",t.exports.WidthMapToLevel={0:"OD",640:"FD",960:"LD",1280:"SD",1920:"HD",2580:"2K",3840:"4K"};e=function(){t.exports.VideoErrorCodeText={1:r.get("Error_Load_Abort_Text"),2:r.get("Error_Network_Text"),3:r.get("Error_Decode_Text"),4:r.get("Error_Server_Network_NotSupport_Text")},t.exports.VideoLevels={0:r.get("OD"),640:r.get("FD"),960:r.get("LD"),1280:r.get("SD"),1920:r.get("HD"),2580:r.get("2K"),3840:r.get("4K")},t.exports.QualityLevels={OD:r.get("OD"),LD:r.get("LD"),FD:r.get("FD"),SD:r.get("SD"),HD:r.get("HD"),"2K":r.get("2K"),"4K":r.get("4K"),XLD:r.get("XLD"),FHD:r.get("FHD"),SQ:r.get("SQ"),HQ:r.get("HQ")},t.exports.SpeedLevels=[{key:.5,text:r.get("Speed_05X_Text")},{key:1,text:r.get("Speed_1X_Text")},{key:1.25,text:r.get("Speed_125X_Text")},{key:1.5,text:r.get("Speed_15X_Text")},{key:2,text:r.get("Speed_2X_Text")}]};e(),t.exports.updateByLanguage=e},{"../lang/index":21}],26:[function(e,t,i){t.exports.get=function(e){for(var t=e+"",i=document.cookie.split(";"),r=0;r<i.length;r++){var n=i[r].trim();if(0==n.indexOf(t))return unescape(n.substring(t.length+1,n.length))}return""},t.exports.set=function(e,t,i){var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3);r="expires="+r.toGMTString();document.cookie=e+"="+escape(t)+"; "+r}},{}],27:[function(e,i,t){var r=e("./object");i.exports.cache={},i.exports.guid=function(e,t){var i,r,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[];if(t=t||n.length,e)for(i=0;i<e;i++)o[i]=n[0|Math.random()*t];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",i=0;i<36;i++)o[i]||(r=0|16*Math.random(),o[i]=n[19==i?3&r|8:r]);return o.join("")},i.exports.expando="vdata"+(new Date).getTime(),i.exports.getData=function(e){var t=e[i.exports.expando];return t||(t=e[i.exports.expando]=i.exports.guid(),i.exports.cache[t]={}),i.exports.cache[t]},i.exports.hasData=function(e){var t="";return!(!(t=e?e[i.exports.expando]:t)||r.isEmpty(i.exports.cache[t]))},i.exports.removeData=function(t){var e="";if(e=t?t[i.exports.expando]:e){delete i.exports.cache[e];try{delete t[i.exports.expando]}catch(e){t.removeAttribute?t.removeAttribute(i.exports.expando):t[i.exports.expando]=null}}}},{"./object":38}],28:[function(e,t,i){var r,p="undefined"==typeof Promise?e("es6-promise").Promise:Promise;r="undefined"!=typeof self?self:this,e=function(){return i=[function(e,t,i){"use strict";!function(e){t.b=function(e){for(var t=(e=void 0===e?{}:e).includes,e=e.excludes,e=void 0===e?[]:e,i=!1,r=!1,n=0,o=void 0===t?[]:t;n<o.length;n++)if(!0===o[n]){i=!0;break}for(var a=0,s=e;a<s.length;a++)if(!0===s[a]){r=!0;break}return i&&!r},t.c=function(e,t,i){e=n.a[e];return void 0!==e&&Object(r.compare)(e,t,i)},t.a=function(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:this};var r=i(11),n=(i.n(r),i(4))}.call(t,i(10))},function(e,t,i){"use strict";i.d(t,"c",function(){return n}),i.d(t,"d",function(){return o}),i.d(t,"b",function(){return a}),i.d(t,"f",function(){return s}),i.d(t,"a",function(){return l}),i.d(t,"e",function(){return u});var r=i(3),t=i(0),i=Object(t.a)(),n="InstallTrigger"in((null==i?void 0:i.window)||{})||/firefox/i.test(r.b),o=/trident/i.test(r.b)||/msie/i.test(r.b),a=/edge/i.test(r.b),s=/webkit/i.test(r.b)&&!a,l=void 0!==(null===(t=null==i?void 0:i.window)||void 0===t?void 0:t.chrome)||/chrome/i.test(r.b),u="[object SafariRemoteNotification]"===((null===(i=null===(i=null==i?void 0:i.window)||void 0===i?void 0:i.safari)||void 0===i?void 0:i.pushNotification)||!1).toString()||/safari/i.test(r.b)&&!l},function(e,t,i){"use strict";i.d(t,"b",function(){return o}),i.d(t,"c",function(){return a}),i.d(t,"a",function(){return s});var r=i(1);function n(i){if(console){if(!r.d&&!r.b)return console[i];if("log"===i||"clear"===i)return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console[i].apply(console,e)}}return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}}var o=n("log"),a=n("table"),s=n("clear")},function(e,t,i){"use strict";t.a=function(){for(var e,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return null!=r&&r.document?(e=r.document).createElement.apply(e,t):{}},i.d(t,"b",function(){return n});var i=i(0),r=Object(i.a)(),n=(null===(i=null==r?void 0:r.navigator)||void 0===i?void 0:i.userAgent)||"xxxxx"},function(e,t,i){"use strict";i.d(t,"a",function(){return r});for(var r={},n=0,o=(i(3).b||"").match(/\w+\/(\d|\.)+(\s|$)/gi)||[];n<o.length;n++){var a=o[n].split("/"),s=a[0],a=a[1];r[s]=a}},function(e,t,i){"use strict";i.d(t,"b",function(){return r}),i.d(t,"d",function(){return n}),i.d(t,"c",function(){return o}),i.d(t,"a",function(){return a}),i.d(t,"e",function(){return s});var i=i(3),r=/ipad/i.test(i.b),n=/macintosh/i.test(i.b),o=/iphone/i.test(i.b),a=/android/i.test(i.b),s=/windows/i.test(i.b)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addListener=function(e){d.addListener(e)},t.removeListener=function(e){d.removeListener(e)},t.isLaunch=function(){return d.isLaunch()},t.launch=function(){d.launch()},t.stop=function(){d.stop()},t.setDetectDelay=function(e){d.setDetectDelay(e)};var r=i(7),n=i(8);i.d(t,"DevtoolsDetector",function(){return r.a}),i.d(t,"checkers",function(){return n});var o=i(0);i.d(t,"match",function(){return o.b}),i.d(t,"specificVersionMatch",function(){return o.c});var a=i(1);i.d(t,"isFirefox",function(){return a.c}),i.d(t,"isIE",function(){return a.d}),i.d(t,"isEdge",function(){return a.b}),i.d(t,"isWebkit",function(){return a.f}),i.d(t,"isChrome",function(){return a.a}),i.d(t,"isSafari",function(){return a.e});var s=i(2);i.d(t,"log",function(){return s.b}),i.d(t,"table",function(){return s.c}),i.d(t,"clear",function(){return s.a});var l=i(17);i.d(t,"isMobile",function(){return l.a});var u=i(4);i.d(t,"versionMap",function(){return u.a});var c=i(5);i.d(t,"isIpad",function(){return c.b}),i.d(t,"isMac",function(){return c.d}),i.d(t,"isIphone",function(){return c.c}),i.d(t,"isAndroid",function(){return c.a}),i.d(t,"isWindows",function(){return c.e});var d=new r.a({checkers:[n.elementIdChecker,n.regToStringChecker,n.functionToStringChecker,n.depRegToStringChecker,n.dateToStringChecker,n.debuggerChecker]});t.default=d},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var r=this&&this.__awaiter||function(e,a,s,l){return new(s=s||p)(function(i,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,n)}o((l=l.apply(e,a||[])).next())})},s=this&&this.__generator||function(i,r){var n,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(i,s)}catch(e){t=[6,e],o=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},n=(o.prototype.launch=function(){this._detectLoopDelay<=0&&this.setDetectDelay(500),this._detectLoopStopped&&(this._detectLoopStopped=!1,this._detectLoop())},o.prototype.stop=function(){this._detectLoopStopped||(this._detectLoopStopped=!0,clearTimeout(this._timer))},o.prototype.isLaunch=function(){return!this._detectLoopStopped},o.prototype.setDetectDelay=function(e){this._detectLoopDelay=e},o.prototype.addListener=function(e){this._listeners.push(e)},o.prototype.removeListener=function(t){this._listeners=this._listeners.filter(function(e){return e!==t})},o.prototype._broadcast=function(e){for(var t=0,i=this._listeners;t<i.length;t++){var r=i[t];try{r(e.isOpen,e)}catch(e){}}},o.prototype._detectLoop=function(){return r(this,void 0,void 0,function(){var t,i,r,n,o,a=this;return s(this,function(e){switch(e.label){case 0:t=!1,i="",r=0,n=this._checkers,e.label=1;case 1:return r<n.length?[4,(o=n[r]).isEnable()]:[3,6];case 2:return e.sent()?(i=o.name,[4,o.isOpen()]):[3,4];case 3:t=e.sent(),e.label=4;case 4:if(t)return[3,6];e.label=5;case 5:return r++,[3,1];case 6:return t!=this._isOpen&&(this._isOpen=t,this._broadcast({isOpen:t,checkerName:i})),0<this._detectLoopDelay?this._timer=setTimeout(function(){return a._detectLoop()},this._detectLoopDelay):this.stop(),[2]}})})},o);function o(e){e=e.checkers;this._listeners=[],this._isOpen=!1,this._detectLoopStopped=!0,this._detectLoopDelay=500,this._checkers=e.slice()}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(9);i.d(t,"depRegToStringChecker",function(){return r.a});var n=i(12);i.d(t,"elementIdChecker",function(){return n.a});var o=i(13);i.d(t,"functionToStringChecker",function(){return o.a});var a=i(14);i.d(t,"regToStringChecker",function(){return a.a});var s=i(15);i.d(t,"debuggerChecker",function(){return s.a});var l=i(16);i.d(t,"dateToStringChecker",function(){return l.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return c});var r=i(1),n=i(2),o=i(0),a=this&&this.__awaiter||function(e,a,s,l){return new(s=s||p)(function(i,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,n)}o((l=l.apply(e,a||[])).next())})},s=this&&this.__generator||function(i,r){var n,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(i,s)}catch(e){t=[6,e],o=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},l=/ /,u=!1;l.toString=function(){return u=!0,c.name};var c={name:"dep-reg-to-string",isOpen:function(){return a(this,void 0,void 0,function(){return s(this,function(e){return u=!1,Object(n.c)({dep:l}),Object(n.a)(),[2,u]})})},isEnable:function(){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,Object(o.b)({includes:[!0],excludes:[r.c,r.d]})]})})}}},function(e,t){var i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){var r;void 0===(r="function"==typeof(r=function(){var t=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function d(e){var t=e.replace(/^v/,"").replace(/\+.*$/,""),i=function(e,t){return-1===e.indexOf(t)?e.length:e.indexOf(t)}(t,"-"),r=t.substring(0,i).split(".");return r.push(t.substring(i+1)),r}function p(e){return isNaN(Number(e))?e:Number(e)}function h(e){if("string"!=typeof e)throw new TypeError("Invalid argument expected string");if(!t.test(e))throw new Error("Invalid argument not valid semver ('"+e+"' received)")}function n(e,t){[e,t].forEach(h);for(var i=d(e),r=d(t),n=0;n<Math.max(i.length-1,r.length-1);n++){var o=parseInt(i[n]||0,10),a=parseInt(r[n]||0,10);if(o>a)return 1;if(a>o)return-1}var s=i[i.length-1],l=r[r.length-1];if(s&&l){var u=s.split(".").map(p),c=l.split(".").map(p);for(n=0;n<Math.max(u.length,c.length);n++){if(void 0===u[n]||"string"==typeof c[n]&&"number"==typeof u[n])return-1;if(void 0===c[n]||"string"==typeof u[n]&&"number"==typeof c[n])return 1;if(u[n]>c[n])return 1;if(c[n]>u[n])return-1}}else if(s||l)return s?-1:1;return 0}var o=[">",">=","=","<","<="],a={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return n.validate=function(e){return"string"==typeof e&&t.test(e)},n.compare=function(e,t,i){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===o.indexOf(e))throw new TypeError("Invalid operator, expected one of "+o.join("|"))}(i);var r=n(e,t);return a[i].indexOf(r)>-1},n})?r.apply(t,[]):r)||(e.exports=r)},function(e,t,i){"use strict";i.d(t,"a",function(){return c});var r=i(1),n=i(2),o=i(0),i=i(3),a=this&&this.__awaiter||function(e,a,s,l){return new(s=s||p)(function(i,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,n)}o((l=l.apply(e,a||[])).next())})},s=this&&this.__generator||function(i,r){var n,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(i,s)}catch(e){t=[6,e],o=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},l=Object(i.a)("div"),u=!1;Object.defineProperty(l,"id",{get:function(){return u=!0,c.name},configurable:!0});var c={name:"element-id",isOpen:function(){return a(this,void 0,void 0,function(){return s(this,function(e){return u=!1,Object(n.b)(l),Object(n.a)(),[2,u]})})},isEnable:function(){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,Object(o.b)({includes:[!0],excludes:[r.d,r.b,r.c]})]})})}}},function(e,t,i){"use strict";i.d(t,"a",function(){return d});var r=i(1),n=i(2),o=i(5),a=i(0),s=this&&this.__awaiter||function(e,a,s,l){return new(s=s||p)(function(i,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,n)}o((l=l.apply(e,a||[])).next())})},l=this&&this.__generator||function(i,r){var n,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(i,s)}catch(e){t=[6,e],o=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};function u(){}var c=0;u.toString=function(){return c++,""};var d={name:"function-to-string",isOpen:function(){return s(this,void 0,void 0,function(){return l(this,function(e){return c=0,Object(n.b)(u),Object(n.a)(),[2,2===c]})})},isEnable:function(){return s(this,void 0,void 0,function(){return l(this,function(e){return[2,Object(a.b)({includes:[!0],excludes:[r.c,(o.b||o.c)&&r.a]})]})})}}},function(e,t,i){"use strict";i.d(t,"a",function(){return c});var r=i(2),n=i(1),o=i(0),a=this&&this.__awaiter||function(e,a,s,l){return new(s=s||p)(function(i,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,n)}o((l=l.apply(e,a||[])).next())})},s=this&&this.__generator||function(i,r){var n,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(i,s)}catch(e){t=[6,e],o=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},l=/ /,u=!1;l.toString=function(){return u=!0,c.name};var c={name:"reg-to-string",isOpen:function(){return a(this,void 0,void 0,function(){return s(this,function(e){return u=!1,Object(r.b)(l),Object(r.a)(),[2,u]})})},isEnable:function(){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,Object(o.b)({includes:[!0],excludes:[n.f]})]})})}}},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var r=this&&this.__awaiter||function(e,a,s,l){return new(s=s||p)(function(i,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,n)}o((l=l.apply(e,a||[])).next())})},n=this&&this.__generator||function(i,r){var n,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(i,s)}catch(e){t=[6,e],o=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}};function o(){return(performance||Date).now()}var a={name:"debugger-checker",isOpen:function(){return r(this,void 0,void 0,function(){var t;return n(this,function(e){return t=o(),function(){}.constructor("debugger")(),[2,100<o()-t]})})},isEnable:function(){return r(this,void 0,void 0,function(){return n(this,function(e){return[2,!0]})})}}},function(e,t,i){"use strict";i.d(t,"a",function(){return c});var r=i(1),n=i(2),o=i(0),a=this&&this.__awaiter||function(e,a,s,l){return new(s=s||p)(function(i,t){function r(e){try{o(l.next(e))}catch(e){t(e)}}function n(e){try{o(l.throw(e))}catch(e){t(e)}}function o(e){var t;e.done?i(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,n)}o((l=l.apply(e,a||[])).next())})},s=this&&this.__generator||function(i,r){var n,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},e={next:t(0),throw:t(1),return:t(2)};return"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,(t=a?[2&t[0],a.value]:t)[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){s.label=t[1];break}if(6===t[0]&&s.label<a[1]){s.label=a[1],a=t;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(t);break}a[2]&&s.ops.pop(),s.trys.pop();continue}t=r.call(i,s)}catch(e){t=[6,e],o=0}finally{n=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}},l=new Date,u=0;l.toString=function(){return u++,""};var c={name:"date-to-string",isOpen:function(){return a(this,void 0,void 0,function(){return s(this,function(e){return u=0,Object(n.b)(l),Object(n.a)(),[2,2===u]})})},isEnable:function(){return a(this,void 0,void 0,function(){return s(this,function(e){return[2,Object(o.b)({includes:[r.a],excludes:[]})]})})}}},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var i=i(3),r=/mobile/i.test(i.b)}],n={},r.m=i,r.c=n,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6);function r(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var i,n},"object"==typeof i&&"object"==typeof t?t.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof i?i.devtoolsDetector=e():r.devtoolsDetector=e()},{"es6-promise":7}],29:[function(e,l,t){var r=e("./object");l.exports.el=function(e){return document.getElementById(e)},l.exports.createEl=function(e,t){var i;return e=e||"div",t=t||{},i=document.createElement(e),r.each(t,function(e,t){-1!==e.indexOf("aria-")||"role"==e?i.setAttribute(e,t):i[e]=t}),i},l.exports.addClass=function(e,t){-1==(" "+e.className+" ").indexOf(" "+t+" ")&&(e.className=""===e.className?t:e.className+" "+t)},l.exports.removeClass=function(e,t){var i,r;if(-1!=e.className.indexOf(t)){for(r=(i=e.className.split(" ")).length-1;0<=r;r--)i[r]===t&&i.splice(r,1);e.className=i.join(" ")}},l.exports.hasClass=function(e,t){return-1!=e.className.indexOf(t)},l.exports.getClasses=function(e){return e.className?e.className.split(" "):[]},l.exports.getElementAttributes=function(e){var t,i,r={},n=",autoplay,controls,loop,muted,default,";if(e&&e.attributes&&0<e.attributes.length)for(var o,a=(o=e.attributes).length-1;0<=a;a--)t=o[a].name,i=o[a].value,"boolean"!=typeof e[t]&&-1===n.indexOf(","+t+",")||(i=null!==i),r[t]=i;return r},l.exports.insertFirst=function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},l.exports.blockTextSelection=function(){document.body.focus(),document.onselectstart=function(){return!1}},l.exports.unblockTextSelection=function(){document.onselectstart=function(){return!0}},l.exports.css=function(i,e,t){return!(!i||!i.style)&&(e&&t?(i.style[e]=t,!0):t||"string"!=typeof e?!t&&"object"==typeof e&&(r.each(e,function(e,t){i.style[e]=t}),!0):i.style[e])},l.exports.getTransformName=function(e){for(var t=["transform","WebkitTransform","MozTransform","msTransform","OTransform"],i=t[0],r=0,n=t.length;r<n;r++)if(void 0!==e.style[t[r]]){i=t[r];break}return i},l.exports.getTransformEventName=function(e,t){for(var i=["","Webkit","Moz","ms","O"],r=t.toLowerCase(),n=["transform","WebkitTransform","MozTransform","msTransform","OTransform"],o=0,a=n.length;o<a;o++)if(void 0!==e.style[n[o]]){0!=o&&(r=i[o]+t);break}return r},l.exports.addCssByStyle=function(e){var t=document,i=t.createElement("style");i.setAttribute("type","text/css"),i.styleSheet?i.styleSheet.cssText=e:(r=t.createTextNode(e),i.appendChild(r));var r=t.getElementsByTagName("head");(r.length?r[0]:t.documentElement).appendChild(i)},l.exports.getTranslateX=function(e){var t=0;if(e)try{var i=window.getComputedStyle(e),r=l.exports.getTransformName(e),t=new(window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix)(i[r]).m41}catch(e){console.log(e)}return t},l.exports.getPointerPosition=function(e,t){var i={},r=l.exports.findPosition(e),n=e.offsetWidth,o=e.offsetHeight,a=r.top,s=r.left,e=t.pageY,r=t.pageX;return t.changedTouches&&(r=t.changedTouches[0].pageX,e=t.changedTouches[0].pageY),i.y=Math.max(0,Math.min(1,(a-e+o)/o)),i.x=Math.max(0,Math.min(1,(r-s)/n)),i},l.exports.findPosition=function(e){var t;if(!(t=e.getBoundingClientRect&&e.parentNode?e.getBoundingClientRect():t))return{left:0,top:0};var i=document.documentElement,r=document.body,n=i.clientLeft||r.clientLeft||0,e=window.pageXOffset||r.scrollLeft,n=t.left+e-n,i=i.clientTop||r.clientTop||0,r=window.pageYOffset||r.scrollTop,i=t.top+r-i;return{left:Math.round(n),top:Math.round(i)}}},{"./object":38}],30:[function(e,l,t){var u=e("./object"),c=e("./data"),i=e("./ua"),r=e("./fastclick");function d(t,i,e,r){u.each(e,function(e){t(i,e,r)})}l.exports.on=function(o,e,t){if(o){if(u.isArray(e))return d(l.exports.on,o,e,t);i.IS_MOBILE&&"click"==e&&r.attach(o);var a=c.getData(o);a.handlers||(a.handlers={}),a.handlers[e]||(a.handlers[e]=[]),t.guid||(t.guid=c.guid()),a.handlers[e].push(t),a.dispatcher||(a.disabled=!1,a.dispatcher=function(e){if(!a.disabled){e=l.exports.fixEvent(e);var t=a.handlers[e.type];if(t)for(var i=t.slice(0),r=0,n=i.length;r<n&&!e.isImmediatePropagationStopped();r++)i[r].call(o,e)}}),1==a.handlers[e].length&&(o.addEventListener?o.addEventListener(e,a.dispatcher,!1):o.attachEvent&&o.attachEvent("on"+e,a.dispatcher))}},l.exports.off=function(t,e,i){if(t&&c.hasData(t)){var r=c.getData(t);if(r.handlers){if(u.isArray(e))return d(l.exports.off,t,e,i);function n(e){r.handlers[e]=[],l.exports.cleanUpEvents(t,e)}if(e){var o=r.handlers[e];if(o)if(i){if(i.guid)for(var a=0;a<o.length;a++)o[a].guid===i.guid&&o.splice(a--,1);l.exports.cleanUpEvents(t,e)}else n(e)}else for(var s in r.handlers)n(s)}}},l.exports.cleanUpEvents=function(e,t){var i=c.getData(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),u.isEmpty(i.handlers)&&(delete i.handlers,delete i.dispatcher,delete i.disabled),u.isEmpty(i)&&c.removeData(e)},l.exports.fixEvent=function(e){function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped){var r,n,o,a=e||window.event;for(r in e={},a)"layerX"!==r&&"layerY"!==r&&"keyboardEvent.keyLocation"!==r&&("returnValue"==r&&a.preventDefault||(e[r]=a[r]));e.target||(e.target=e.srcElement||document),e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement,e.preventDefault=function(){a.preventDefault&&a.preventDefault(),e.returnValue=!1,e.isDefaultPrevented=t,e.defaultPrevented=!0},e.isDefaultPrevented=i,e.defaultPrevented=!1,e.stopPropagation=function(){a.stopPropagation&&a.stopPropagation(),e.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){a.stopImmediatePropagation&&a.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!=e.clientX&&(n=document.documentElement,o=document.body,e.pageX=e.clientX+(n&&n.scrollLeft||o&&o.scrollLeft||0)-(n&&n.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(n&&n.scrollTop||o&&o.scrollTop||0)-(n&&n.clientTop||o&&o.clientTop||0)),e.which=e.charCode||e.keyCode,null!=e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e},l.exports.trigger=function(e,t){if(e){var i,r=c.hasData(e)?c.getData(e):{},n=e.parentNode||e.ownerDocument;return"string"==typeof t&&(i=null,!e.paramData&&0!=e.paramData||(i=e.paramData,e.paramData=null,e.removeAttribute(i)),t={type:t,target:e,paramData:i}),t=l.exports.fixEvent(t),r.dispatcher&&r.dispatcher.call(e,t),n&&!t.isPropagationStopped()&&!1!==t.bubbles?l.exports.trigger(n,t):n||t.defaultPrevented||(n=c.getData(t.target),t.target[t.type]&&(n.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),n.disabled=!1)),!t.defaultPrevented}},l.exports.one=function(e,t,i){if(e){if(u.isArray(t))return d(l.exports.one,e,t,i);function r(){l.exports.off(e,t,r),i.apply(this,arguments)}r.guid=i.guid=i.guid||c.guid(),l.exports.on(e,t,r)}}},{"./data":27,"./fastclick":31,"./object":38,"./ua":44}],31:[function(e,t,i){function a(n,e){var t;if(e=e||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=e.touchBoundary||10,this.layer=n,this.tapDelay=e.tapDelay||200,this.tapTimeout=e.tapTimeout||700,!a.notNeeded(n)){for(var i=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],r=0,o=i.length;r<o;r++)this[i[r]]=function(e,t){return function(){return e.apply(t,arguments)}}(this[i[r]],this);s&&(n.addEventListener("mouseover",this.onMouse,!0),n.addEventListener("mousedown",this.onMouse,!0),n.addEventListener("mouseup",this.onMouse,!0)),n.addEventListener("click",this.onClick,!0),n.addEventListener("touchstart",this.onTouchStart,!1),n.addEventListener("touchmove",this.onTouchMove,!1),n.addEventListener("touchend",this.onTouchEnd,!1),n.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(n.removeEventListener=function(e,t,i){var r=Node.prototype.removeEventListener;"click"===e?r.call(n,e,t.hijacked||t,i):r.call(n,e,t,i)},n.addEventListener=function(e,t,i){var r=Node.prototype.addEventListener;"click"===e?r.call(n,e,t.hijacked||(t.hijacked=function(e){e.propagationStopped||t(e)}),i):r.call(n,e,t,i)}),"function"==typeof n.onclick&&(t=n.onclick,n.addEventListener("click",function(e){t(e)},!1),n.onclick=null)}}var r=0<=navigator.userAgent.indexOf("Windows Phone"),s=0<navigator.userAgent.indexOf("Android")&&!r,l=/iP(ad|hone|od)/.test(navigator.userAgent)&&!r,u=l&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=l&&/OS [6-7]_\d/.test(navigator.userAgent),n=0<navigator.userAgent.indexOf("BB10");a.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(l&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},a.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},a.prototype.sendClick=function(e,t){var i;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),i=t.changedTouches[0],(t=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(e),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),t.forwardedTouchEvent=!0,e.dispatchEvent(t)},a.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},a.prototype.focus=function(e){var t;l&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type&&"email"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},a.prototype.updateScrollParent=function(e){var t,i=e.fastClickScrollParent;if(!i||!i.contains(e)){t=e;do{if(t.scrollHeight>t.offsetHeight){i=t,e.fastClickScrollParent=t;break}}while(t=t.parentElement)}i&&(i.fastClickLastScrollTop=i.scrollTop)},a.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},a.prototype.onTouchStart=function(e){var t,i,r;if(1<e.targetTouches.length)return!0;if(t=this.getTargetElementFromEventTarget(e.target),i=e.targetTouches[0],l){if((r=window.getSelection()).rangeCount&&!r.isCollapsed)return!0;if(!u){if(i.identifier&&i.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=i.pageX,this.touchStartY=i.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},a.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],e=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>e||Math.abs(t.pageY-this.touchStartY)>e},a.prototype.onTouchMove=function(e){return this.trackingClick&&(this.targetElement===this.getTargetElementFromEventTarget(e.target)&&!this.touchHasMoved(e)||(this.trackingClick=!1,this.targetElement=null)),!0},a.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},a.prototype.onTouchEnd=function(e){var t,i,r,n,o=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,t=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,c&&(n=e.changedTouches[0],(o=document.elementFromPoint(n.pageX-window.pageXOffset,n.pageY-window.pageYOffset)||o).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=o.tagName.toLowerCase())){if(n=this.findControl(o)){if(this.focus(o),s)return!1;o=n}}else if(this.needsFocus(o))return 100<e.timeStamp-t||l&&window.top!==window&&"input"===i?this.targetElement=null:(this.focus(o),this.sendClick(o,e),l&&"select"===i||(this.targetElement=null,e.preventDefault())),!1;return!(!l||u||!(r=o.fastClickScrollParent)||r.fastClickLastScrollTop===r.scrollTop)||(this.needsClick(o)||(e.preventDefault(),this.sendClick(o,e)),!1)},a.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},a.prototype.onMouse=function(e){return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},a.prototype.onClick=function(e){return this.trackingClick?(this.targetElement=null,!(this.trackingClick=!1)):"submit"===e.target.type&&0===e.detail||((e=this.onMouse(e))||(this.targetElement=null),e)},a.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},a.notNeeded=function(e){var t,i,r;if(void 0===window.ontouchstart)return!0;if(i=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(31<i&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(n&&10<=(r=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]&&3<=r[2]&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||(!!(27<=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===e.style.touchAction||"manipulation"===e.style.touchAction))},a.attach=function(e,t){return new a(e,t)},t.exports=a},{}],32:[function(e,t,i){var n=e("./data");t.exports.bind=function(e,t,i){t.guid||(t.guid=n.guid());function r(){return t.apply(e,arguments)}return r.guid=i?i+"_"+t.guid:t.guid,r}},{"./data":27}],33:[function(e,t,i){var r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/\;?#]*)?(.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,o=/^([^\/;?#]*)(.*)$/,n=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,s={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}r=s.parseURL(t);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return i.alwaysNormalize?(r.path=s.normalizePath(r.path),s.buildURLFromParts(r)):t;t=s.parseURL(e);if(!t)throw new Error("Error trying to parse base URL.");!t.netLoc&&t.path&&"/"!==t.path[0]&&(n=o.exec(t.path),t.netLoc=n[1],t.path=n[2]),t.netLoc&&!t.path&&(t.path="/");var n,e={scheme:t.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};return r.netLoc||(e.netLoc=t.netLoc,"/"!==r.path[0]&&(r.path?(n=(n=t.path).substring(0,n.lastIndexOf("/")+1)+r.path,e.path=s.normalizePath(n)):(e.path=t.path,r.params||(e.params=t.params,r.query||(e.query=t.query))))),null===e.path&&(e.path=i.alwaysNormalize?s.normalizePath(r.path):r.path),s.buildURLFromParts(e)},parseURL:function(e){e=r.exec(e);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};t.exports=s},{}],34:[function(e,t,i){function r(e){for(var t in e="string"==typeof e?this.parseAttrList(e):e)e.hasOwnProperty(t)&&(this[t]=e[t])}var n=/^(\d+)x(\d+)$/,o=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g;r.prototype={decimalInteger:function(e){e=parseInt(this[e],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},hexadecimalInteger:function(e){if(this[e]){for(var t=(1&(t=(this[e]||"0x").slice(2)).length?"0":"")+t,i=new Uint8Array(t.length/2),r=0;r<t.length/2;r++)i[r]=parseInt(t.slice(2*r,2*r+2),16);return i}return null},hexadecimalIntegerAsNumber:function(e){e=parseInt(this[e],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},decimalFloatingPoint:function(e){return parseFloat(this[e])},enumeratedString:function(e){return this[e]},decimalResolution:function(e){e=n.exec(this[e]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},parseAttrList:function(e){var t,i={};for(o.lastIndex=0;null!==(t=o.exec(e));){var r=t[2];0===r.indexOf('"')&&r.lastIndexOf('"')===r.length-1&&(r=r.slice(1,-1)),i[t[1]]=r}return i}},t.exports=r},{}],35:[function(e,t,i){function T(){this.method=null,this.key=null,this.iv=null,this._uri=null}function x(){this._url=null,this._byteRange=null,this._decryptdata=null,this.tagList=[]}var w=e("./attrlist"),l=e("../io"),r=e("./URLToolkit"),u=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,c=/#EXT-X-MEDIA:(.*)/g,E=new RegExp([/#EXTINF:(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)(\S+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),k=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(PART-INF):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)(.*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/;x.prototype.getUrl=function(){return!this._url&&this.relurl&&(this._url=r.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},x.prototype.Seturl=function(e){this._url=e},x.prototype.getProgramDateTime=function(){return!this._programDateTime&&this.rawProgramDateTime&&(this._programDateTime=new Date(Date.parse(this.rawProgramDateTime))),this._programDateTime},x.prototype.GetbyteRange=function(){var e,t,i;return this._byteRange||(e=this._byteRange=[],this.rawByteRange&&(1===(t=this.rawByteRange.split("@",2)).length?(i=this.lastByteRangeEndOffset,e[0]=i||0):e[0]=parseInt(t[1]),e[1]=parseInt(t[0])+e[0])),this._byteRange},x.prototype.getByteRangeStartOffset=function(){return this.byteRange[0]},x.prototype.getByteRangeEndOffset=function(){return this.byteRange[1]};x.prototype.getDecryptdata=function(){return this._decryptdata||(this._decryptdata=this.fragmentDecryptdataFromLevelkey(this.levelkey,this.sn)),this._decryptdata};function n(){this.loaders={}}n.prototype=((e={parseMasterPlaylist:function(e,t){var i=[];for(u.lastIndex=0;null!=(o=u.exec(e));){var r={},n=r.attrs=new w(o[1]);r.url=this.resolve(o[2],t);var o=n.decimalResolution("RESOLUTION");if(o&&(r.width=o.width,r.height=o.height),r.bitrate=n.decimalInteger("AVERAGE-BANDWIDTH")||n.decimalInteger("BANDWIDTH"),r.name=n.NAME,a=n.CODECS)for(var a=a.split(/[ ,]+/),s=0;s<a.length;s++){var l=a[s];-1!==l.indexOf("avc1")?r.videoCodec=this.avc1toavcoti(l):-1!==l.indexOf("hvc1")?r.videoCodec=l:r.audioCodec=l}i.push(r)}return i},parseMasterPlaylistMedia:function(e,t,i,r){var n=[],o=0;for(c.lastIndex=0;null!=(s=c.exec(e));){var a={},s=new w(s[1]);s.TYPE===i&&(a.groupId=s["GROUP-ID"],a.name=s.NAME,a.type=i,a.default="YES"===s.DEFAULT,a.autoselect="YES"===s.AUTOSELECT,a.forced="YES"===s.FORCED,s.URI&&(a.url=this.resolve(s.URI,t)),a.lang=s.LANGUAGE,a.name||(a.name=a.lang),r&&(a.audioCodec=r),a.id=o++,n.push(a))}return n},avc1toavcoti:function(e){var t,i=e.split(".");return 2<i.length?(t=i.shift()+".",t+=parseInt(i.shift()).toString(16),t+=("000"+parseInt(i.shift()).toString(16)).substr(-4)):t=e,t},load:function(o,a,i){var s=this;l.get(o,function(e){var t,i,r,n=s.parseMasterPlaylist(e,o);n.length&&(t=s.parseMasterPlaylistMedia(e,o,"AUDIO",n[0].audioCodec),i=s.parseMasterPlaylistMedia(e,o,"SUBTITLES"),t.length&&(r=!1,t.forEach(function(e){e.url||(r=!0)}),!1===r&&n[0].audioCodec&&!n[0].attrs.AUDIO&&(console.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),t.unshift({type:"main",name:"main"})))),a({levels:n,audioTracks:t,subtitles:i,url:o,string:e})},function(e,t){i&&i(e,t)})},loadMediaPlaylist:function(e,t,i){var r=this,n=(e=e||{}).string,o=e.url;n?(n=r.parseLevelPlaylist(n,o),t(n)):l.get(o,function(e){e=r.parseLevelPlaylist(e,o);t(e)},function(e){i&&i(e)})},resolve:function(e,t){return r.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}}).parseMasterPlaylist=function(e,t){var i=[];for(u.lastIndex=0;null!=(o=u.exec(e));){var r={},n=r.attrs=new w(o[1]);r.url=this.resolve(o[2],t);var o=n.decimalResolution("RESOLUTION");if(o&&(r.width=o.width,r.height=o.height),r.bitrate=n.decimalInteger("AVERAGE-BANDWIDTH")||n.decimalInteger("BANDWIDTH"),r.name=n.NAME,a=n.CODECS)for(var a=a.split(/[ ,]+/),s=0;s<a.length;s++){var l=a[s];-1!==l.indexOf("avc1")?r.videoCodec=this.avc1toavcoti(l):-1!==l.indexOf("hvc1")?r.videoCodec=l:r.audioCodec=l}i.push(r)}return i},e.parseMasterPlaylistMedia=function(e,t,i,r){var n=[],o=0;for(c.lastIndex=0;null!=(s=c.exec(e));){var a={},s=new w(s[1]);s.TYPE===i&&(a.groupId=s["GROUP-ID"],a.name=s.NAME,a.type=i,a.default="YES"===s.DEFAULT,a.autoselect="YES"===s.AUTOSELECT,a.forced="YES"===s.FORCED,s.URI&&(a.url=this.resolve(s.URI,t)),a.lang=s.LANGUAGE,a.name||(a.name=a.lang),r&&(a.audioCodec=r),a.id=o++,n.push(a))}return n},e.avc1toavcoti=function(e){var t,i=e.split(".");return 2<i.length?(t=i.shift()+".",t+=parseInt(i.shift()).toString(16),t+=("000"+parseInt(i.shift()).toString(16)).substr(-4)):t=e,t},e.parseLevelPlaylist=function(e,t,i,r){var n,o,a=0,s=0,l={type:null,version:null,url:t,fragments:[],live:!0,startSN:0},u=new T,c=0,d=null,p=new x;for(E.lastIndex=0;null!==(n=E.exec(e));){var h,f=n[1];if(f){p.duration=parseFloat(f);var g=(" "+n[2]).slice(1);p.title=g||null,p.tagList.push(g?["INF",f,g]:["INF",f])}else if(n[3])isNaN(p.duration)||(h=a++,p.type=r,p.start=s,p.levelkey=u,p.sn=h,p.level=i,p.cc=c,p.baseurl=t,p.relurl=(" "+n[3]).slice(1),l.fragments.push(p),s+=(d=p).duration,p=new x);else if(n[4])p.rawByteRange=(" "+n[4]).slice(1),!d||(h=d.byteRangeEndOffset)&&(p.lastByteRangeEndOffset=h);else if(n[5])p.rawProgramDateTime=(" "+n[5]).slice(1),p.tagList.push(["PROGRAM-DATE-TIME",p.rawProgramDateTime]),void 0===l.programDateTime&&(l.programDateTime=new Date(new Date(Date.parse(n[5]))-1e3*s));else{for(n=n[0].match(k),o=1;o<n.length&&void 0===n[o];o++);var y=(" "+n[o+1]).slice(1),_=(" "+n[o+2]).slice(1);switch(n[o]){case"#":p.tagList.push(_?[y,_]:[y]);break;case"PLAYLIST-TYPE":l.type=y.toUpperCase();break;case"MEDIA-SEQUENCE":a=l.startSN=parseInt(y);break;case"TARGETDURATION":l.targetduration=parseFloat(y);break;case"VERSION":l.version=parseInt(y);break;case"EXTM3U":break;case"ENDLIST":l.live=!1;break;case"DIS":c++,p.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":c=parseInt(y);break;case"KEY":var v=new w(y),m=v.enumeratedString("METHOD"),b=v.URI,v=v.hexadecimalInteger("IV");m&&(u=new T,b&&0<=["AES-128","SAMPLE-AES"].indexOf(m)&&(u.method=m,u.baseuri=t,u.reluri=b,u.key=null,u.iv=v));break;case"START":v=new w(y).decimalFloatingPoint("TIME-OFFSET");isNaN(v)||(l.startTimeOffset=v);break;case"MAP":var S=new w(y);p.relurl=S.URI,p.rawByteRange=S.BYTERANGE,p.baseurl=t,p.level=i,p.type=r,p.sn="initSegment",l.initSegment=p,p=new x;break;case"PART-INF":S=new w(y);l.partTarget=S.decimalFloatingPoint("PART-TARGET");break;default:console.log("line parsed but not handled: "+n)}}}return(p=d)&&!p.relurl&&(l.fragments.pop(),s-=p.duration),l.totalduration=s,l.averagetargetduration=s/l.fragments.length,l.endSN=a-1,l},e),t.exports=n},{"../io":36,"./URLToolkit":33,"./attrlist":34}],36:[function(e,s,t){var h=e("./url");s.exports.get=function(e,t,i,r,n){s.exports.ajax("GET",e,{},t,i,r,n)},s.exports.post=function(e,t,i,r,n,o){var a={"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8",Accept:"application/json"};s.exports.ajax("POST",e,t,i,r,n,o,a)},s.exports.postWithHeader=function(e,t,i,r,n){s.exports.ajax("POST",e,t,r,n,!0,!1,i)},s.exports.ajax=function(e,t,i,r,n,o,a,s){var l,u,c,d;n=n||function(){},"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw new Error("This browser does not support XMLHttpRequest.")}),u=new XMLHttpRequest,c=h.parseUrl(t),d=window.location,!(c.protocol+c.host!==d.protocol+d.host)||!window.XDomainRequest||"withCredentials"in u?(l="file:"==c.protocol||"file:"==d.protocol,u.onreadystatechange=function(){4===u.readyState&&(200===u.status||l&&0===u.status?r(u.responseText):n(u.responseText,u.status))}):((u=new window.XDomainRequest).onload=function(){r(u.responseText)},u.onerror=n,u.onprogress=function(){},u.ontimeout=n);try{if(void 0===o&&(o=!0),u.open(e,t,o),a&&(u.withCredentials=!0),s)for(var p in s)s.hasOwnProperty(p)&&u.setRequestHeader(p,s[p])}catch(e){return void n(e)}try{u.send(i)}catch(e){n(e)}},s.exports.jsonp=function(e,t,i){var r="jsonp_callback_"+Math.round(1e5*Math.random()),n=document.createElement("script");e&&(n.src=e+(0<=e.indexOf("?")?"&":"?")+"callback="+r+"&cb="+r,n.onerror=function(){delete window[r],document.body.removeChild(n),i()},n.onload=function(){setTimeout(function(){window[r]&&(delete window[r],document.body.removeChild(n))},0)},window[r]=function(e){delete window[r],document.body.removeChild(n),t(e)},document.body.appendChild(n))},s.exports.loadJS=function(e,t){var i=document.getElementsByTagName("HEAD").item(0),r=document.createElement("script");e&&e.toLowerCase().indexOf("https://")<0&&e.toLowerCase().indexOf("http://")<0&&(e=document.URL.replace(/(\/[^\/]*?)$/i,"")+e),r.type="text/javascript",r.src=e,r.onload=function(){t&&t()},i.appendChild(r)}},{"./url":45}],37:[function(e,t,i){var a=e("./dom");t.exports.render=function(e,t){var i=t.align||(t.className?"":"tl"),r=t.x||0,n=t.y||0,o=r.indexOf&&0<r.indexOf("%")?"":"px",t=n.indexOf&&0<n.indexOf("%")?"":"px";"tl"===i?a.css(e,{float:"left","margin-left":r+o,"margin-top":n+t}):"tr"===i?a.css(e,{float:"right","margin-right":r+o,"margin-top":n+t}):"tlabs"===i?a.css(e,{position:"absolute",left:r+o,top:n+t}):"trabs"===i?a.css(e,{position:"absolute",right:r+o,top:n+t}):"blabs"===i?a.css(e,{position:"absolute",left:r+o,bottom:n+t}):"brabs"===i?a.css(e,{position:"absolute",right:r+o,bottom:n+t}):"cc"===i&&a.addClass(e,"loading-center")}},{"./dom":29}],38:[function(e,a,t){var s=Object.prototype.hasOwnProperty;a.exports.create=Object.create||function(e){function t(){}return t.prototype=e,new t},a.exports.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(arg)},a.exports.isEmpty=function(e){for(var t in e)if(null!==e[t])return!1;return!0},a.exports.each=function(e,t,i){if(a.exports.isArray(e))for(var r=0,n=e.length;r<n&&!1!==t.call(i||this,e[r],r);++r);else for(var o in e)if(s.call(e,o)&&!1===t.call(i||this,o,e[o]))break;return e},a.exports.merge=function(e,t){if(!t)return e;for(var i in t)s.call(t,i)&&(e[i]=t[i]);return e},a.exports.deepMerge=function(e,t){var i,r,n;for(i in e=a.exports.copy(e),t)s.call(t,i)&&(r=e[i],n=t[i],a.exports.isPlain(r)&&a.exports.isPlain(n)?e[i]=a.exports.deepMerge(r,n):e[i]=t[i]);return e},a.exports.copy=function(e){return a.exports.merge({},e)},a.exports.isPlain=function(e){return!!e&&"object"==typeof e&&"[object Object]"===e.toString()&&e.constructor===Object},a.exports.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},a.exports.unescape=function(e){return e.replace(/&([^;]+);/g,function(e,t){return{amp:"&",lt:"<",gt:">",quot:'"',"#x27":"'","#x60":"`"}[t.toLowerCase()]||e})}},{}],39:[function(e,t,i){var n=e("./object"),o=function(){};(o=function(){}).extend=function(e){var t,i,r=(e=e||{}).init||e.init||this.prototype.init||this.prototype.init||function(){};for(i in(((t=function(){r.apply(this,arguments)}).prototype=n.create(this.prototype)).constructor=t).extend=o.extend,t.create=o.create,e)e.hasOwnProperty(i)&&(t.prototype[i]=e[i]);return t},o.create=function(){var e=n.create(this.prototype);return this.apply(e,arguments),e},t.exports=o},{"./object":38}],40:[function(e,f,t){var g=e("./object"),i=e("../config"),r=e("./dom"),n=e("./cookie"),o=e("./constants"),a=e("../lang/index"),s=e("./ua"),y=e("../player/base/plugin/defaultemptycomponent"),_={preload:!0,autoplay:!0,useNativeControls:!1,width:"100%",height:"300px",cover:"",from:"",trackLog:!0,logBatched:!0,heartHeatInterval:30,isLive:!1,playsinline:!0,showBarTime:5e3,rePlay:!1,liveRetry:5,liveRetryInterval:1,liveRetryStep:0,keyShortCuts:!1,keyFastForwardStep:10,isVBR:!1,vodRetry:3,format:"",definition:"",defaultDefinition:"",loadDataTimeout:20,waitingTimeout:60,waitingBufferedTime:3,delayLoadingShow:1,controlBarForOver:!1,controlBarVisibility:"hover",enableSystemMenu:!1,qualitySort:"asc",x5_video_position:"normal",x5_type:"",x5_fullscreen:!1,x5_orientation:"landscape|portrait",x5LandscapeAsFullScreen:!0,autoPlayDelay:0,autoPlayDelayDisplayText:"",useHlsPluginForSafari:!1,enableMSEForAndroid:!0,encryptType:0,language:"zh-cn",languageTexts:{},mediaType:"video",outputType:"",playConfig:{},reAuthInfo:{},components:[],liveTimeShiftUrl:"",liveShiftSource:"",liveShiftTime:"",liveShiftMinOffset:30,videoHeight:"100%",videoWidth:"100%",enableWorker:!0,authTimeout:"",enableMockFullscreen:!1,region:"cn-shanghai",debug:!1,progressMarkers:[],snapshotWatermark:{left:"500",top:"100",text:"",font:"16px \u5b8b\u4f53",fillColor:"#FFFFFF",strokeColor:"#FFFFFF"},liveStartTime:"",liveOverTime:"",enableStashBufferForFlv:!0,stashInitialSizeForFlv:32,flvOption:{accurateSeek:!0},hlsOption:{stopLoadAsPaused:!1},hlsLoadingTimeOut:2e4,useHlsPlugOnMobile:!0,lowLatencyMode:!1,useHls2:void 0,skipRtsSupportCheck:!1,rtsLoadDataTimeout:3e3,rtsFallbackSource:void 0,nudgeMaxRetry:5,tracks:[],recreatePlayer:function(){},diagnosisButtonVisible:!0,preventRecord:!1,traceId:"",mediaAuth:void 0,textTracks:void 0,_native:!0,hlsUriToken:"",thumbnailUrl:"",refreshAccessInfo:function(){},drmSessionTimeout:5e3,skinRes:"//"+i.domain+"/de/prismplayer-flash/"+i.flashVersion+"/atlas/defaultSkin"};f.exports.defaultH5Layout=[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:50},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"fullScreenButton",align:"tr",x:10,y:12},{name:"subtitle",align:"tr",x:15,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]}],f.exports.defaultAudioLayout=[{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"volume",align:"tr",x:5,y:10}]}],f.exports.defaultFlashLayout=[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"tlabs",x:0,y:0},{name:"playButton",align:"tl",x:15,y:26},{name:"nextButton",align:"tl",x:10,y:26},{name:"timeDisplay",align:"tl",x:10,y:24},{name:"fullScreenButton",align:"tr",x:10,y:25},{name:"streamButton",align:"tr",x:10,y:23},{name:"volume",align:"tr",x:10,y:25}]},{name:"fullControlBar",align:"tlabs",x:0,y:0,children:[{name:"fullTitle",align:"tl",x:25,y:6},{name:"fullNormalScreenButton",align:"tr",x:24,y:13},{name:"fullTimeDisplay",align:"tr",x:10,y:12},{name:"fullZoom",align:"cc"}]}],f.exports.canPlayType=function(e){var t=document.createElement("video");return t.canPlayType?t.canPlayType(e):""},f.exports.canPlayHls=function(){return""!=f.exports.canPlayType("application/x-mpegURL")},f.exports.isUsedHlsPluginOnMobile=function(e){return!!(s.IS_MOBILE&&(s.IS_CHROME||s.IS_FIREFOX||s.IS_X5)&&f.exports.isSupportHls())},f.exports.isSafariUsedHlsPlugin=function(e){return!!(s.os.pc&&s.browser.safari&&e)},f.exports.hasUIComponent=function(e,t){if(void 0===e||!e||0==e.length)return!1;for(var i=0,r=e.length;i<r;i++){var n=e[i].name;if(n==t)return!0;if("controlBar"==n)return f.exports.hasUIComponent(e[i].children,t)}return!1},f.exports.validateSource=function(e){return!0},f.exports.supportH5Video=function(){return void 0!==document.createElement("video").canPlayType},f.exports.createWrapper=function(e){var t=e.id,t="string"==typeof t?(0===t.indexOf("#")&&(t=t.slice(1)),r.el(t)):t;if(!t||!t.nodeName)throw new TypeError("\u6ca1\u6709\u4e3a\u64ad\u653e\u5668\u6307\u5b9a\u5bb9\u5668");return f.exports.adjustContainerLayout(t,e),t},f.exports.adjustContainerLayout=function(e,t){t.width&&!e.style.width&&(e.style.width=t.width),t.height&&!e.style.height&&(e.style.height=t.height)},f.exports.isSupportHls=function(){var e=window.MediaSource=window.MediaSource||window.WebKitMediaSource,t=window.SourceBuffer=window.SourceBuffer||window.WebKitSourceBuffer,e=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),t=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return e&&t},f.exports.isSupportFlv=function(){return f.exports.isSupportHls()},f.exports.isSupportMSE=function(){return!!window.Promise&&!!window.Uint8Array&&!!Array.prototype.forEach&&f.exports.isSupportedMediaSource()},f.exports.isSupportedMediaSource=function(){return!!window.MediaSource&&!!MediaSource.isTypeSupported},f.exports.isSupportedDrm=function(){return!!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)&&f.exports.isSupportMSE()},f.exports.isAudio=function(e){return e&&0<e.toLowerCase().indexOf(".mp3")},f.exports.isLiveShift=function(e){return e.isLive&&e.liveStartTime&&e.liveOverTime},f.exports.isHls=function(e){return e&&0<e.toLowerCase().indexOf(".m3u8")},f.exports.isDash=function(e){return e&&0<e.toLowerCase().indexOf(".mpd")},f.exports.isFlv=function(e){return e&&0<e.toLowerCase().indexOf(".flv")},f.exports.isRTMP=function(e){return e&&-1<e.toLowerCase().indexOf("rtmp:")},f.exports.isRts=function(e){return e&&-1<e.toLowerCase().indexOf("artc:")},f.exports.checkSecuritSupport=function(){return f.exports.isSupportHls()?"":s.IS_IOS?a.get("iOSNotSupportVodEncription"):a.get("UseChromeForVodEncription")},f.exports.findSelectedStreamLevel=function(e,t){var i=t;if(!i&&!(i=n.get(o.SelectedStreamLevel)))return n.set(o.SelectedStreamLevel,e[0].definition,365),0;for(var r=0;r<e.length;r++)if(e[r].definition==i)return r;return 0},f.exports.handleOption=function(e,t){f.exports.isRts(e.source)&&(e.isLive=!0);var i,r=g.merge(g.copy(_),e),n=[{name:"fullScreenButton",align:"tr",x:20,y:12},{name:"subtitle",align:"tr",x:15,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}],o=!1;if(e.useFlashPrism||f.exports.isRTMP(e.source)?(o=!0,n=[{name:"liveIco",align:"tlabs",x:15,y:25},{name:"fullScreenButton",align:"tr",x:10,y:25},{name:"volume",align:"tr",x:10,y:25}]):(i=f.exports.isLiveShift(r))?(n.push({name:"liveShiftProgress",align:"tlabs",x:0,y:0}),n.push({name:"playButton",align:"tl",x:15,y:12}),n.push({name:"liveDisplay",align:"tl",x:15,y:6})):n.push({name:"liveDisplay",align:"tlabs",x:15,y:6}),e.isLive)if(void 0===e.skinLayout)r.skinLayout=[{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"tooltip",align:"blabs",x:0,y:56},{name:"H5Loading",align:"cc"},{name:"controlBar",align:"blabs",x:0,y:0,children:f.exports.isRts(e.source)?[{name:"fullScreenButton",align:"tr",x:20,y:12},{name:"volume",align:"tr",x:5,y:10},{name:"liveDisplay",align:"tlabs",x:15,y:6}]:n}];else if(0!=e.skinLayout){for(var a=e.skinLayout.length,s=[],l=-1,u=0;u<a;u++)if("controlBar"==r.skinLayout[u].name){for(var l=u,c=r.skinLayout[u].children.length,d=0;d<c;d++){var p,h=r.skinLayout[u].children[d].name;"liveDisplay"!=h&&"liveIco"!=h&&"fullScreenButton"!=h&&"volume"!=h&&"snapshot"!=h&&"setting"!=h&&"subtitle"!=h&&(!i||"progress"!=h&&"playButton"!=h&&"timeDisplay"!=h)||(p=r.skinLayout[u].children[d],"progress"==h?p.name="liveShiftProgress":"timeDisplay"==h?p.name="liveShiftTimeDisplay":o&&"liveDisplay"==h&&(p.name="liveIco"),s.push(p))}break}-1!=l&&(r.skinLayout[l].children=s)}return(void 0===e.components||!e.components||g.isArray(e.components)&&0==e.components.length)&&"false"!=e.components&&(r.components=[y]),r},f.exports.getLiveHostByRegion=function(e){var t="live.aliyuncs.com";if(!e)return t;return-1<["ap-southeast-1","eu-central-1"].indexOf(e)?"live."+e+".aliyuncs.com":t},f.exports.unqiueTextTracks=function(e){var t=[],t=(e=void 0===e?[]:e).reduce(function(e,t){if(e.some(function(e){return e.srclang===t.srclang}))return e;var i=t;return i.label=t.label||t.srclang,[].concat(e,[i])},[]),i={};return t.forEach(function(e,t){i[e.label]?i[e.label].push(t):i[e.label]=[t]}),Object.keys(i).forEach(function(e){e=i[e]||[];1<e.length&&e.forEach(function(e){t[e].label=t[e].label+"("+t[e].srclang+")"})}),t}},{"../config":13,"../lang/index":21,"../player/base/plugin/defaultemptycomponent":85,"./constants":25,"./cookie":26,"./dom":29,"./object":38,"./ua":44}],41:[function(e,f,t){var g=e("./object"),i=e("../config"),r=e("./dom"),n=e("./cookie"),o=e("./constants"),a=e("../lang/index"),s=e("./ua"),y=e("../player/base/plugin/defaultemptycomponent"),_={preload:!0,autoplay:!0,useNativeControls:!1,width:"100%",height:"300px",cover:"",from:"",trackLog:!0,logBatched:!0,heartHeatInterval:30,isLive:!1,playsinline:!0,showBarTime:5e3,rePlay:!1,liveRetry:5,liveRetryInterval:1,liveRetryStep:0,keyShortCuts:!1,keyFastForwardStep:10,isVBR:!1,vodRetry:3,format:"",definition:"",defaultDefinition:"",loadDataTimeout:20,waitingTimeout:60,waitingBufferedTime:3,delayLoadingShow:1,controlBarForOver:!1,controlBarVisibility:"hover",enableSystemMenu:!1,qualitySort:"asc",x5_video_position:"normal",x5_type:"",x5_fullscreen:!1,x5_orientation:"landscape|portrait",x5LandscapeAsFullScreen:!0,autoPlayDelay:0,autoPlayDelayDisplayText:"",useHlsPluginForSafari:!1,enableMSEForAndroid:!0,encryptType:0,language:"zh-cn",languageTexts:{},mediaType:"video",outputType:"",playConfig:{},reAuthInfo:{},components:[],liveTimeShiftUrl:"",liveShiftSource:"",liveShiftTime:"",liveShiftMinOffset:30,videoHeight:"100%",videoWidth:"100%",enableWorker:!0,authTimeout:"",enableMockFullscreen:!1,region:"cn-shanghai",debug:!1,progressMarkers:[],snapshotWatermark:{left:"500",top:"100",text:"",font:"16px \u5b8b\u4f53",fillColor:"#FFFFFF",strokeColor:"#FFFFFF"},liveStartTime:"",liveOverTime:"",enableStashBufferForFlv:!0,stashInitialSizeForFlv:32,flvOption:{accurateSeek:!0},hlsOption:{stopLoadAsPaused:!1},hlsLoadingTimeOut:2e4,useHlsPlugOnMobile:!0,lowLatencyMode:!1,useHls2:void 0,skipRtsSupportCheck:!1,rtsLoadDataTimeout:3e3,rtsFallbackSource:void 0,nudgeMaxRetry:5,tracks:[],recreatePlayer:function(){},diagnosisButtonVisible:!0,preventRecord:!1,traceId:"",mediaAuth:void 0,textTracks:void 0,_native:!0,hlsUriToken:"",thumbnailUrl:"",refreshAccessInfo:function(){},drmSessionTimeout:5e3,skinRes:"//"+i.domain+"/de/prismplayer-flash/"+i.flashVersion+"/atlas/defaultSkin"};f.exports.defaultH5Layout=[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"H5Loading",align:"cc"},{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"tooltip",align:"blabs",x:0,y:50},{name:"thumbnail"},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"fullScreenButton",align:"tr",x:10,y:12},{name:"subtitle",align:"tr",x:15,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}]}],f.exports.defaultAudioLayout=[{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"blabs",x:0,y:44},{name:"playButton",align:"tl",x:15,y:12},{name:"timeDisplay",align:"tl",x:10,y:5},{name:"volume",align:"tr",x:5,y:10}]}],f.exports.defaultFlashLayout=[{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"controlBar",align:"blabs",x:0,y:0,children:[{name:"progress",align:"tlabs",x:0,y:0},{name:"playButton",align:"tl",x:15,y:26},{name:"nextButton",align:"tl",x:10,y:26},{name:"timeDisplay",align:"tl",x:10,y:24},{name:"fullScreenButton",align:"tr",x:10,y:25},{name:"streamButton",align:"tr",x:10,y:23},{name:"volume",align:"tr",x:10,y:25}]},{name:"fullControlBar",align:"tlabs",x:0,y:0,children:[{name:"fullTitle",align:"tl",x:25,y:6},{name:"fullNormalScreenButton",align:"tr",x:24,y:13},{name:"fullTimeDisplay",align:"tr",x:10,y:12},{name:"fullZoom",align:"cc"}]}],f.exports.canPlayType=function(e){var t=document.createElement("video");return t.canPlayType?t.canPlayType(e):""},f.exports.canPlayHls=function(){return""!=f.exports.canPlayType("application/x-mpegURL")},f.exports.isUsedHlsPluginOnMobile=function(e){return!!(s.IS_MOBILE&&(s.IS_CHROME||s.IS_FIREFOX||s.IS_X5)&&f.exports.isSupportHls())},f.exports.isSafariUsedHlsPlugin=function(e){return!!(s.os.pc&&s.browser.safari&&e)},f.exports.hasUIComponent=function(e,t){if(void 0===e||!e||0==e.length)return!1;for(var i=0,r=e.length;i<r;i++){var n=e[i].name;if(n==t)return!0;if("controlBar"==n)return f.exports.hasUIComponent(e[i].children,t)}return!1},f.exports.validateSource=function(e){return!0},f.exports.supportH5Video=function(){return void 0!==document.createElement("video").canPlayType},f.exports.createWrapper=function(e){var t=e.id,t="string"==typeof t?(0===t.indexOf("#")&&(t=t.slice(1)),r.el(t)):t;if(!t||!t.nodeName)throw new TypeError("\u6ca1\u6709\u4e3a\u64ad\u653e\u5668\u6307\u5b9a\u5bb9\u5668");return f.exports.adjustContainerLayout(t,e),t},f.exports.adjustContainerLayout=function(e,t){t.width&&!e.style.width&&(e.style.width=t.width),t.height&&!e.style.height&&(e.style.height=t.height)},f.exports.isSupportHls=function(){var e=window.MediaSource=window.MediaSource||window.WebKitMediaSource,t=window.SourceBuffer=window.SourceBuffer||window.WebKitSourceBuffer,e=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),t=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return e&&t},f.exports.isSupportFlv=function(){return f.exports.isSupportHls()},f.exports.isSupportMSE=function(){return!!window.Promise&&!!window.Uint8Array&&!!Array.prototype.forEach&&f.exports.isSupportedMediaSource()},f.exports.isSupportedMediaSource=function(){return!!window.MediaSource&&!!MediaSource.isTypeSupported},f.exports.isSupportedDrm=function(){return!!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)&&f.exports.isSupportMSE()},f.exports.isAudio=function(e){return e&&0<e.toLowerCase().indexOf(".mp3")},f.exports.isLiveShift=function(e){return e.isLive&&e.liveStartTime&&e.liveOverTime},f.exports.isHls=function(e){return e&&0<e.toLowerCase().indexOf(".m3u8")},f.exports.isDash=function(e){return e&&0<e.toLowerCase().indexOf(".mpd")},f.exports.isFlv=function(e){return e&&0<e.toLowerCase().indexOf(".flv")},f.exports.isRTMP=function(e){return e&&-1<e.toLowerCase().indexOf("rtmp:")},f.exports.isRts=function(e){return e&&-1<e.toLowerCase().indexOf("artc:")},f.exports.checkSecuritSupport=function(){return f.exports.isSupportHls()?"":s.IS_IOS?a.get("iOSNotSupportVodEncription"):a.get("UseChromeForVodEncription")},f.exports.findSelectedStreamLevel=function(e,t){var i=t;if(!i&&!(i=n.get(o.SelectedStreamLevel)))return n.set(o.SelectedStreamLevel,e[0].definition,365),0;for(var r=0;r<e.length;r++)if(e[r].definition==i)return r;return 0},f.exports.handleOption=function(e,t){f.exports.isRts(e.source)&&(e.isLive=!0);var i,r=g.merge(g.copy(_),e),n=[{name:"fullScreenButton",align:"tr",x:20,y:12},{name:"subtitle",align:"tr",x:15,y:12},{name:"setting",align:"tr",x:15,y:12},{name:"volume",align:"tr",x:5,y:10}],o=!1;if(e.useFlashPrism||f.exports.isRTMP(e.source)?(o=!0,n=[{name:"liveIco",align:"tlabs",x:15,y:25},{name:"fullScreenButton",align:"tr",x:10,y:25},{name:"volume",align:"tr",x:10,y:25}]):(i=f.exports.isLiveShift(r))?(n.push({name:"liveShiftProgress",align:"tlabs",x:0,y:0}),n.push({name:"playButton",align:"tl",x:15,y:12}),n.push({name:"liveDisplay",align:"tl",x:15,y:6})):n.push({name:"liveDisplay",align:"tlabs",x:15,y:6}),e.isLive)if(void 0===e.skinLayout)r.skinLayout=[{name:"errorDisplay",align:"tlabs",x:0,y:0},{name:"infoDisplay"},{name:"bigPlayButton",align:"blabs",x:30,y:80},{name:"tooltip",align:"blabs",x:0,y:56},{name:"H5Loading",align:"cc"},{name:"controlBar",align:"blabs",x:0,y:0,children:f.exports.isRts(e.source)?[{name:"fullScreenButton",align:"tr",x:20,y:12},{name:"volume",align:"tr",x:5,y:10},{name:"liveDisplay",align:"tlabs",x:15,y:6}]:n}];else if(0!=e.skinLayout){for(var a=e.skinLayout.length,s=[],l=-1,u=0;u<a;u++)if("controlBar"==r.skinLayout[u].name){for(var l=u,c=r.skinLayout[u].children.length,d=0;d<c;d++){var p,h=r.skinLayout[u].children[d].name;"liveDisplay"!=h&&"liveIco"!=h&&"fullScreenButton"!=h&&"volume"!=h&&"snapshot"!=h&&"setting"!=h&&"subtitle"!=h&&(!i||"progress"!=h&&"playButton"!=h&&"timeDisplay"!=h)||(p=r.skinLayout[u].children[d],"progress"==h?p.name="liveShiftProgress":"timeDisplay"==h?p.name="liveShiftTimeDisplay":o&&"liveDisplay"==h&&(p.name="liveIco"),s.push(p))}break}-1!=l&&(r.skinLayout[l].children=s)}return(void 0===e.components||!e.components||g.isArray(e.components)&&0==e.components.length)&&"false"!=e.components&&(r.components=[y]),r},f.exports.getLiveHostByRegion=function(e){var t="live.aliyuncs.com";if(!e)return t;return-1<["ap-southeast-1","eu-central-1"].indexOf(e)?"live."+e+".aliyuncs.com":t},f.exports.unqiueTextTracks=function(e){var t=[],t=(e=void 0===e?[]:e).reduce(function(e,t){if(e.some(function(e){return e.srclang===t.srclang}))return e;var i=t;return i.label=t.label||t.srclang,[].concat(e,[i])},[]),i={};return t.forEach(function(e,t){i[e.label]?i[e.label].push(t):i[e.label]=[t]}),Object.keys(i).forEach(function(e){e=i[e]||[];1<e.length&&e.forEach(function(e){t[e].label=t[e].label+"("+t[e].srclang+")"})}),t}},{"../config":13,"../lang/index":21,"../player/base/plugin/defaultemptycomponent":85,"./constants":25,"./cookie":26,"./dom":29,"./object":38,"./ua":44}],42:[function(e,o,t){var r=e("./object"),a=e("../player/adaptiveplayer"),n={};o.exports.reloadInstance=function(e,t,i){i.dispose();var r=e.readyCallback,n=e._readyCallbackCalled,e=a.create(e,function(e){t(e),n||r(e)});o.exports.restoreUserEvents(e),o.exports.removeAllProps(i),i.__proto__=e},o.exports.storeUserEvents=function(e){var i=e,r=i.__proto__.on;i.on=function(e,t){n[e]?n[e].push(t):n[e]=[t],r.call(i,e,t)}},o.exports.restoreUserEvents=function(i){n&&r.each(n,function(t){n[t].forEach(function(e){i.on(t,e)})})},o.exports.removeAllProps=function(e,t){for(var i in t=t||[],e)e.hasOwnProperty(i)&&-1===t.indexOf(i)&&delete e[i]}},{"../player/adaptiveplayer":61,"./object":38}],43:[function(e,t,i){t.exports.set=function(t,i){try{window.localStorage&&localStorage.setItem(t,i)}catch(e){window[t+"_localStorage"]=i}},t.exports.get=function(t){try{if(window.localStorage)return localStorage.getItem(t)}catch(e){return window[t+"_localStorage"]}return""}},{}],44:[function(e,E,t){var i,r;if(E.exports.USER_AGENT=navigator.userAgent,E.exports.IS_IPHONE=/iPhone/i.test(E.exports.USER_AGENT),E.exports.IS_IPAD=/iPad/i.test(E.exports.USER_AGENT),E.exports.IS_IPOD=/iPod/i.test(E.exports.USER_AGENT),E.exports.IS_MAC=/mac/i.test(E.exports.USER_AGENT),E.exports.IS_EDGE=/Edge/i.test(E.exports.USER_AGENT),E.exports.IS_IE11=/Trident\/7.0/i.test(E.exports.USER_AGENT),E.exports.IS_X5=/qqbrowser/i.test(E.exports.USER_AGENT.toLowerCase()),E.exports.IS_CHROME=/Chrome/i.test(E.exports.USER_AGENT)&&!E.exports.IS_EDGE&&!E.exports.IS_X5,E.exports.IS_SAFARI=/Safari/i.test(E.exports.USER_AGENT)&&!E.exports.IS_CHROME,E.exports.IS_FIREFOX=/Firefox/i.test(E.exports.USER_AGENT),E.exports.IS_UC=/ucweb|UCBrowser/i.test(E.exports.USER_AGENT),document.all)try{var n=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");E.exports.HAS_FLASH=!!n}catch(e){E.exports.HAS_FLASH=!1}else navigator.plugins&&0<navigator.plugins.length?(n=navigator.plugins["Shockwave Flash"],E.exports.HAS_FLASH=!!n):E.exports.HAS_FLASH=!1;E.exports.IS_MAC_SAFARI=E.exports.IS_MAC&&E.exports.IS_SAFARI&&!E.exports.IS_CHROME&&!E.exports.HAS_FLASH,E.exports.IS_IOS=E.exports.IS_IPHONE||E.exports.IS_IPAD||E.exports.IS_IPOD,E.exports.IOS_VERSION=function(){var e=E.exports.USER_AGENT.match(/OS (\d+)_/i);if(e&&e[1])return e[1]}(),E.exports.IS_ANDROID=/Android/i.test(E.exports.USER_AGENT),E.exports.ANDROID_VERSION=(i=E.exports.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i))?(r=i[1]&&parseFloat(i[1]),n=i[2]&&parseFloat(i[2]),r&&n?parseFloat(i[1]+"."+i[2]):r||null):null,E.exports.IS_OLD_ANDROID=E.exports.IS_ANDROID&&/webkit/i.test(E.exports.USER_AGENT)&&E.exports.ANDROID_VERSION<2.3,E.exports.TOUCH_ENABLED=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),E.exports.IS_MOBILE=E.exports.IS_IOS||E.exports.IS_ANDROID,E.exports.IS_H5=E.exports.IS_MOBILE||!E.exports.HAS_FLASH,E.exports.IS_PC=!E.exports.IS_MOBILE,E.exports.is_X5=/micromessenger/i.test(E.exports.USER_AGENT)||/qqbrowser/i.test(E.exports.USER_AGENT),E.exports.IS_ANDROID_FIREFOX=E.exports.IS_ANDROID&&E.exports.IS_FIREFOX,E.exports.CHROME_VERSION=E.exports.IS_CHROME&&E.exports.USER_AGENT.match(/Chrome\/(\d+)/i)[1],E.exports.getHost=function(e){var t="";if(void 0===e||null==e||""==e)return"";var i=e.indexOf("//"),r=e,t=r=-1<i?e.substring(i+2):r,r=r.split("/");return t=(r=(t=r&&0<r.length?r[0]:t).split(":"))&&0<r.length?r[0]:t},E.exports.dingTalk=function(){var e=E.exports.USER_AGENT.toLowerCase();return/dingtalk/i.test(e)},E.exports.wechat=function(){var e=E.exports.USER_AGENT.toLowerCase();return/micromessenger/i.test(e)},E.exports.inIFrame=function(){return self!=top},E.exports.getReferer=function(){var t=document.referrer;if(E.exports.inIFrame())try{t=top.document.referrer}catch(e){t=document.referrer}return t},E.exports.getHref=function(){location.href;if(E.exports.inIFrame())try{top.location.href}catch(e){location.href}return location.href},E.exports.check360=function(){return-1!=navigator.userAgent.indexOf("Safari")?function(){var e,t=navigator.userAgent.split(" ");if(-1==t[t.length-1].indexOf("Safari"))return!1;for(e in navigator.plugins)if("np-mswmp.dll"==navigator.plugins[e].filename)return!0;return!1}():(null==navigator.msPointerEnabled||navigator.msPointerEnabled)&&(1==navigator.msDoNotTrack||1==window.doNotTrack)&&(!!Number(window.screenX)&&window.screenLeft-window.screenX!=8||(-1!=navigator.userAgent.indexOf("MSIE 7.0")||-1!=navigator.userAgent.indexOf("MSIE 8.0"))&&null==console.count)},r=E.exports,function(e,t){var i=this.os={},r=this.browser={},n=e.match(/Web[kK]it[\/]{0,1}([\d.]+)/),o=e.match(/(Android);?[\s\/]+([\d.]+)?/),a=!!e.match(/\(Macintosh\; Intel /),s=e.match(/(iPad).*OS\s([\d_]+)/),l=e.match(/(iPod)(.*OS\s([\d_]+))?/),u=!s&&e.match(/(iPhone\sOS)\s([\d_]+)/),c=e.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),d=/Win\d{2}|Windows/.test(t),p=e.match(/Windows Phone ([\d.]+)/),h=c&&e.match(/TouchPad/),f=e.match(/Kindle\/([\d.]+)/),g=e.match(/Silk\/([\d._]+)/),y=e.match(/(BlackBerry).*Version\/([\d.]+)/),_=e.match(/(BB10).*Version\/([\d.]+)/),v=e.match(/(RIM\sTablet\sOS)\s([\d.]+)/),m=e.match(/PlayBook/),b=e.match(/Chrome\/([\d.]+)/)||e.match(/CriOS\/([\d.]+)/),S=e.match(/Firefox\/([\d.]+)/),T=e.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),x=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),w=!b&&e.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),t=w||e.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);(r.webkit=!!n)&&(r.version=n[1]),o&&(i.android=!0,i.version=o[2]),u&&!l&&(i.ios=i.iphone=!0,i.version=u[2].replace(/_/g,".")),s&&(i.ios=i.ipad=!0,i.version=s[2].replace(/_/g,".")),l&&(i.ios=i.ipod=!0,i.version=l[3]?l[3].replace(/_/g,"."):null),p&&(i.wp=!0,i.version=p[1]),c&&(i.webos=!0,i.version=c[2]),h&&(i.touchpad=!0),y&&(i.blackberry=!0,i.version=y[2]),_&&(i.bb10=!0,i.version=_[2]),v&&(i.rimtabletos=!0,i.version=v[2]),m&&(r.playbook=!0),f&&(i.kindle=!0,i.version=f[1]),g&&(r.silk=!0,r.version=g[1]),!g&&i.android&&e.match(/Kindle Fire/)&&(r.silk=!0),b&&(r.chrome=!0,r.version=b[1]),S&&(r.firefox=!0,r.version=S[1]),T&&(i.firefoxos=!0,i.version=T[1]),x&&(r.ie=!0,r.version=x[1]),t&&(a||i.ios||d||o)&&(r.safari=!0,i.ios||(r.version=t[1])),w&&(r.webview=!0),!a||(w=e.match(/[\d]*_[\d]*_[\d]*/))&&0<w.length&&w[0]&&(i.version=w[0].replace(/_/g,".")),i.tablet=!!(s||m||o&&!e.match(/Mobile/)||S&&e.match(/Tablet/)||x&&!e.match(/Phone/)&&e.match(/Touch/)),i.phone=!(i.tablet||i.ipod||!(o||u||c||y||_||b&&e.match(/Android/)||b&&e.match(/CriOS\/([\d.]+)/)||S&&e.match(/Mobile/)||x&&e.match(/Touch/))),i.pc=!i.tablet&&!i.phone,a?i.name="macOS":d?(i.name="windows",i.version=function(){var e=navigator.userAgent,t="";(-1<e.indexOf("Windows NT 5.0")||-1<e.indexOf("Windows 2000"))&&(t="2000");(-1<e.indexOf("Windows NT 5.1")||-1<e.indexOf("Windows XP"))&&(t="XP");(-1<e.indexOf("Windows NT 5.2")||-1<e.indexOf("Windows 2003"))&&(t="2003");(-1<e.indexOf("Windows NT 6.0")||-1<e.indexOf("Windows Vista"))&&(t="Vista");(-1<e.indexOf("Windows NT 6.1")||-1<e.indexOf("Windows 7"))&&(t="7");(-1<e.indexOf("Windows NT 6.2")||-1<e.indexOf("Windows 8"))&&(t="8");(-1<e.indexOf("Windows NT 6.3")||-1<e.indexOf("Windows 8.1"))&&(t="8.1");(-1<e.indexOf("Windows NT 10")||-1<e.indexOf("Windows 10"))&&(t="10");return t}()):i.name=function(){var e=navigator.userAgent,t="other",i=E.exports.os;if(i.ios)return"iOS";if(i.android)return"android";if(-1<e.indexOf("Baiduspider"))return"Baiduspider";if(-1<e.indexOf("PlayStation"))return"PS4";i="Win32"==navigator.platform||"Windows"==navigator.platform||-1<e.indexOf("Windows"),e="Mac68K"==navigator.platform||"MacPPC"==navigator.platform||"Macintosh"==navigator.platform||"MacIntel"==navigator.platform;e&&(t="macOS");"X11"!=navigator.platform||i||e||(t="Unix");-1<String(navigator.platform).indexOf("Linux")&&(t="Linux");if(i)return"windows";return t}(),r.name=(i=navigator.userAgent.toLowerCase(),(r=E.exports.browser).firefox?"Firefox":r.ie?/edge/.test(i)?"Edge":"IE":/micromessenger/.test(i)?"\u5fae\u4fe1\u5185\u7f6e\u6d4f\u89c8\u5668":/qqbrowser/.test(i)?"QQ\u6d4f\u89c8\u5668":r.webview?"webview":r.chrome?"Chrome":r.safari?"Safari":/baiduspider/.test(i)?"Baiduspider":/ucweb/.test(i)||/UCBrowser/.test(i)?"UC":/opera/.test(i)?"Opera":/ucweb/.test(i)?"UC":/360se/.test(i)?"360\u6d4f\u89c8\u5668":/bidubrowser/.test(i)?"\u767e\u5ea6\u6d4f\u89c8\u5668":/metasr/.test(i)?"\u641c\u72d7\u6d4f\u89c8\u5668":/lbbrowser/.test(i)?"\u730e\u8c79\u6d4f\u89c8\u5668":/playstation/.test(i)?"PS4\u6d4f\u89c8\u5668":void 0)}.call(r,navigator.userAgent,navigator.platform)},{}],45:[function(e,t,i){var s=e("./dom");t.exports.getAbsoluteURL=function(e){return e=!e.match(/^https?:\/\//)?s.createEl("div",{innerHTML:'<a href="'+e+'">x</a>'}).firstChild.href:e},t.exports.parseUrl=function(e){var t,i=["protocol","hostname","port","pathname","search","hash","host"],r=s.createEl("a",{href:e}),n=""===r.host&&"file:"!==r.protocol;n&&((t=s.createEl("div")).innerHTML='<a href="'+e+'"></a>',r=t.firstChild,t.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(t));for(var o={},a=0;a<i.length;a++)o[i[a]]=r[i[a]];return o.segments=r.pathname.replace(/^\//,"").split("/"),n&&document.body.removeChild(t),o}},{"./dom":29}],46:[function(e,i,t){var r=e("./dom"),n=e("./ua"),o=e("./playerutil");i.exports.formatTime=function(e){var t=Math.floor(e),i=Math.floor(t/3600);return t%=3600,e=Math.floor(t/60),t=t%60,!(i===1/0||isNaN(i)||e===1/0||isNaN(e)||t===1/0||isNaN(t))&&("00"===(i=10<=i?i:"0"+i)?"":i+":")+(e=10<=e?e:"0"+e)+":"+(t=10<=t?t:"0"+t)},i.exports.extractTime=function(e){if(e){var t=parseInt(e.getHours()),i=parseInt(e.getMinutes()),e=parseInt(e.getSeconds());return("00"===(t=10<=t?t:"0"+t)?"":t+":")+(i=10<=i?i:"0"+i)+":"+(e=10<=e?e:"0"+e)}return""},i.exports.convertToTimestamp=function(e,t){var i="";return e&&(t?i=e.gettime():(i=Date.parse(e),i/=1e3)),i},i.exports.convertToDate=function(e,t){var i="";return e&&(i=new Date).setTime(1e3*e),i},i.exports.parseTime=function(e){if(!e)return"00:00:00";var t=e.split(":"),i=0,r=0,e=0;return 3===t.length?(i=t[0],r=t[1],e=t[2]):2===t.length?(r=t[0],e=t[1]):1===t.length&&(e=t[0]),3600*(i=parseInt(i,10))+60*(r=parseInt(r,10))+(e=Math.ceil(parseFloat(e)))},i.exports.formatDate=function(e,t){var i,r={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds()};for(i in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?r[i]:("00"+r[i]).substr((""+r[i]).length)));return t},i.exports.sleep=function(e){for(var t=Date.now();Date.now()-t<=e;);},i.exports.htmlEncodeAll=function(e){return null==e?"":e.replace(/\</g,"<").replace(/\>/g,">").replace(/\&/g,"&").replace(/"/g,""").replace(/'/g,"'")},i.exports.toBinary=function(e){if(!window.atob)return"";for(var t=atob(e),i=t.length,r=new Uint8Array(i),n=0;n<i;n++)r[n]=t.charCodeAt(n);return r},i.exports.readyBinary=function(e){for(var t=new Uint8Array(e),i=t.length,r="",n=0;n<i;n++)r+=t[n];return r},i.exports.delayHide=function(e,t){e&&(void 0===t&&(t=1e3),e.delayHanlder&&clearTimeout(e.delayHanlder),e.delayHanlder=setTimeout(function(){r.css(e,"display","none")},t))},i.exports.openInFile=function(){return-1!=window.location.protocol.toLowerCase().indexOf("file")},i.exports.contentProtocolMixed=function(e){return!!(n.os.pc&&(o.isHls(e)&&!n.browser.safari||o.isFlv(e))&&"https:"==window.location.protocol.toLowerCase()&&e&&-1<e.toLowerCase().indexOf("http://"))},i.exports.queryString=function(e){var t,i,r;return 2!==(e=(e=decodeURIComponent(e)).split("?")).length?{}:(e=e[1],(t=e.split("&"))?(i={},r=0,$(t).each(function(){var e=t[r].split("=");2===e.length&&(i[e[0]]=e[1].replace(/\+/g," ")),r++}),i):{})},i.exports.log=function(e){var t=window.location.href,t=i.exports.queryString(t);t&&1==t.debug&&console.log(e)}},{"./dom":29,"./playerutil":41,"./ua":44}],47:[function(e,t,i){function a(e){for(var t=5381,i=e.length;i;)t=33*t^e.charCodeAt(--i);return(t>>>0).toString()}var s=e("./vttparse"),e={parse:function(e,t,i){var r,e=e.trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),n=[],o=new s;o.oncue=function(e){e.id=a(e.startTime)+a(e.endTime)+a(e.text),e.text=decodeURIComponent(escape(e.text)),e.isBig=!1;var t=e.text.split("#xywh=");2==t.length&&(t=t[1].split(","),e.x=t[0],e.y=t[1],e.w=t[2],e.h=t[3],e.isBig=!0),0<e.endTime&&n.push(e)},o.onparsingerror=function(e){r=e},o.onflush=function(){if(r&&i)return i(r),void console.log(r);t(n)},e.forEach(function(e){o.parse(e+"\n")}),o.flush()}};t.exports=e},{"./vttparse":49}],48:[function(e,t,i){t.exports=function(){if("undefined"!=typeof window&&window.VTTCue)return window.VTTCue;var b={"":!0,lr:!0,rl:!0},t={start:!0,middle:!0,end:!0,left:!0,right:!0};function S(e){return"string"==typeof e&&(!!t[e.toLowerCase()]&&e.toLowerCase())}function T(e){for(var t=1;t<arguments.length;t++){var i,r=arguments[t];for(i in r)e[i]=r[i]}return e}function e(e,t,i){var r=this,n=function(){if("undefined"!=typeof navigator)return/MSIE\s8\.0/.test(navigator.userAgent)}(),o={};n?r=document.createElement("custom"):o.enumerable=!0,r.hasBeenReset=!1;var a="",s=!1,l=e,u=t,c=i,d=null,p="",h=!0,f="auto",g="start",y=50,_="middle",v=50,m="middle";if(Object.defineProperty(r,"id",T({},o,{get:function(){return a},set:function(e){a=""+e}})),Object.defineProperty(r,"pauseOnExit",T({},o,{get:function(){return s},set:function(e){s=!!e}})),Object.defineProperty(r,"startTime",T({},o,{get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"endTime",T({},o,{get:function(){return u},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"text",T({},o,{get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}})),Object.defineProperty(r,"region",T({},o,{get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"vertical",T({},o,{get:function(){return p},set:function(e){e="string"==typeof(e=e)&&(!!b[e.toLowerCase()]&&e.toLowerCase());if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");p=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"snapToLines",T({},o,{get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}})),Object.defineProperty(r,"line",T({},o,{get:function(){return f},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"lineAlign",T({},o,{get:function(){return g},set:function(e){e=S(e);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");g=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"position",T({},o,{get:function(){return y},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",T({},o,{get:function(){return _},set:function(e){e=S(e);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",T({},o,{get:function(){return v},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",T({},o,{get:function(){return m},set:function(e){e=S(e);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),r.displayState=void 0,n)return r}return e.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)},e}()},{}],49:[function(e,t,i){function r(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}}var s=e("./vttcue");function n(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new r,this.regionList=[]}function u(){this.values=Object.create(null)}function c(e,t,i,r){var n,o,a=r?e.split(r):[e];for(n in a)"string"==typeof a[n]&&(2===(o=a[n].split(i)).length&&t(o[0],o[1]))}u.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var r=0;r<i.length;++r)if(t===i[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var d=new s(0,0,0),p="middle"===d.align?"middle":"center";function l(r,e,o){var t,i,a,n=r;function s(){var e,t,e=(t=(e=r).match(/^(\d+):(\d{2})(:\d{2})?(\.\d{3})?/))?(e=(e=t[4])&&e.replace(".",""),t[3]?i(t[1],t[2],t[3].replace(":",""),e):59<t[1]?i(t[1],t[2],0,e):i(0,t[1],t[2],e)):null;function i(e,t,i,r){return 3600*(0|e)+60*(0|t)+(0|i)+(0|r)/1e3}if(null===e)throw new Error("Malformed timestamp: "+n);return r=r.replace(/^[^\sa-zA-Z-]+/,""),e}function l(){r=r.replace(/^\s+/,"")}if(l(),e.startTime=s(),l(),"--\x3e"!==r.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);r=r.substr(3),l(),e.endTime=s(),l(),t=r,i=e,a=new u,c(t,function(e,t){switch(e){case"region":for(var i=o.length-1;0<=i;i--)if(o[i].id===t){a.set(e,o[i].region);break}break;case"vertical":a.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),n=r[0];a.integer(e,n),a.percent(e,n)&&a.set("snapToLines",!1),a.alt(e,n,["auto"]),2===r.length&&a.alt("lineAlign",r[1],["start",p,"end"]);break;case"position":r=t.split(","),a.percent(e,r[0]),2===r.length&&a.alt("positionAlign",r[1],["start",p,"end","line-left","line-right","auto"]);break;case"size":a.percent(e,t);break;case"align":a.alt(e,t,["start",p,"end","left","right"])}},/:/,/\s/),i.region=a.get("region",null),i.vertical=a.get("vertical",""),"auto"===(t=a.get("line","auto"))&&-1===d.line&&(t=-1),i.line=t,i.lineAlign=a.get("lineAlign","start"),i.snapToLines=a.get("snapToLines",!0),i.size=a.get("size",100),i.align=a.get("align",p),"auto"===(t=a.get("position","auto"))&&50===d.position&&(t="start"===i.align||"left"===i.align?0:"end"===i.align||"right"===i.align?100:50),i.position=t}n.prototype={parse:function(e){var r=this;function t(){for(var e=0,t=(t=r.buffer).replace(/<br(?: \/)?>/gi,"\n");e<t.length&&"\r"!==t[e]&&"\n"!==t[e];)++e;var i=t.substr(0,e);return"\r"===t[e]&&++e,"\n"===t[e]&&++e,r.buffer=t.substr(e),i}e&&(r.buffer+=r.decoder.decode(e,{stream:!0}));try{if("INITIAL"===r.state){if(!/\r\n|\n/.test(r.buffer))return this;var i,n=(i=t()).match(/^WEBVTT([ \t].*)?$/);if(!n||!n[0])throw new Error("Malformed WebVTT signature.");r.state="HEADER"}for(var o=!1;r.buffer;){if(!/\r\n|\n/.test(r.buffer))return this;switch(o?o=!1:i=t(),r.state){case"HEADER":/:/.test(i)?c(i,function(e,t){"Region"===e&&console.log("parse region",t)},/:/):i||(r.state="ID");continue;case"NOTE":i||(r.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){r.state="NOTE";break}if(!i)continue;if(r.cue=new s(0,0,""),r.state="CUE",-1===i.indexOf("--\x3e")){r.cue.id=i;continue}case"CUE":try{l(i,r.cue,r.regionList)}catch(e){r.cue=null,r.state="BADCUE";continue}r.state="CUETEXT";continue;case"CUETEXT":var a=-1!==i.indexOf("--\x3e");if(!i||a&&(o=!0)){r.oncue&&r.oncue(r.cue),r.cue=null,r.state="ID";continue}r.cue.text&&(r.cue.text+="\n"),r.cue.text+=i;continue;case"BADCUE":i||(r.state="ID");continue}}}catch(e){"CUETEXT"===r.state&&r.cue&&r.oncue&&r.oncue(r.cue),r.cue=null,r.state="INITIAL"===r.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),!e.cue&&"HEADER"!==e.state||(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new Error("Malformed WebVTT signature.")}catch(e){throw e}return e.onflush&&e.onflush(),this}},t.exports=n},{"./vttcue":48}],50:[function(e,t,i){function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,r=arguments[t];for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}function r(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}var a=e("./vtt-parser"),s=e("./vtt-renderer"),l=e("./vtt-loader"),u=e("../../player/base/event/eventtype"),c=e("../../lib/ua"),d=e("../../lib/event"),p=e("../../ui/component/util"),e=function(){function e(e){this.parser=null,this.activeRenderer=null,this.trackConfigs=null,this.hasUserTracks=!1,this.vttText={},this.tickTimer=null,this.prevPosition=null,this._enabled=!1,this._isShow=!1,this.sleeper=new h,this.player=(e=e||{}).player,this.loader=new l,this.parser=new a,this.createRendererInstance(),this.bindEvents()}var t=e.prototype;return t.bindEvents=function(){var t,i=this,e=this,r=this.player;r.on(u.Private.TextTrackFounded,function(e){if("user"===e.paramData.from)i.hasUserTracks=!0;else if(i.hasUserTracks)return;e=e.paramData.textTracks;e&&e.length&&(i.enabled=!0,i.trackConfigs=e.map(function(e){return o({},e,{label:e.label||e.srclang,language:e.srclang})}),i.trackConfigs.forEach(function(e){i.activeRenderer.addTrack(e),"always"===r.getOptions().controlBarVisibility&&i.activeRenderer.forceUpdateCuesStyle({transform:"translateY(-44px)"},i.parser.cues)}))}),r.on(u.Private.UserTrackReset,function(){i.hasUserTracks=!1}),c.IS_IOS?(t=!1,r.on(u.Player.RequestFullScreen,function(){t=!0}),d.on(r.tag,"webkitendfullscreen",function(){t=!1}),d.on(r.tag.textTracks,"change",function(){var e;i.sleeper.isSleep||(i.sleeper.sleep(1e3),i.isCustomRenderer||t&&(e=r.tag.textTracks,(e=Array.from(e).find(function(e){return"showing"===e.mode}))?i.activeTrackConfig&&i.activeTrackConfig.language===e.language||(i.switchTrack(e.language),r.trigger(u.Private.SelectorValueChange,{type:"cc",text:e.label})):r.trigger(u.Private.CCStateChanged,{value:"off",lang:""})))})):(r.on(u.Player.RequestFullScreen,this.adjustLayout.bind(this)),r.on(u.Player.CancelFullScreen,this.adjustLayout.bind(this)),n=p.debounce(function(){e.isCustomRenderer&&e.activeRenderer.resetCuesStyle(i.parser.cues)},100),d.on(window,"resize",n));var n=p.throttle(function(){e.isShow&&(e.activeRenderer.forceUpdateCuesStyle({transform:"translateY(-44px)"},e.parser.cues),e.player.paused()&&(e.activeRenderer.hide(),e.activeRenderer.restore()))},100);r.on(u.Private.ShowBar,n);n=p.throttle(function(){e.isShow&&(e.activeRenderer.forceUpdateCuesStyle({transform:"none"},e.parser.cues),e.player.paused()&&(e.activeRenderer.hide(),e.activeRenderer.restore()))},100);r.on(u.Private.HideBar,n),r.on(u.Private.VttHide,function(){i.hide()}),r.on(u.Private.VttSwitchTrack,function(e){i.switchTrack(e.paramData)}),r.on(u.Private.VttClearTracks,function(){i.reset()})},t.createRendererInstance=function(e){this.activeRenderer&&this.activeRenderer.dispose();var t=this.player.getOptions(),i={player:this.player};this.adaptPlatform(),e?e===s.VttBasicRenderer.RENDER_TYPE_NATIVE?this.activeRenderer=new s.NativeRenderer(i):(i.overlayId=this.getOverlayId(),this.activeRenderer=new s.CustomRenderer(i)):t.useNativeTextRenderer?this.activeRenderer=new s.NativeRenderer(i):(i.overlayId=this.getOverlayId(),this.activeRenderer=new s.CustomRenderer(i))},t.switchTrack=function(t){var e,i=this;this.trackConfigs&&this.trackConfigs.length&&(this.activeTrackConfig&&(this.parser.dispose(),this.parser=new a,this.activeRenderer.clearTrack(this.activeTrackConfig.language),this.activeRenderer.hide()),this.activeTrackConfig=t,(e=this.trackConfigs.find(function(e){return e.language===t}))&&(e=e._loaded?"":(e||{}).src,this.loadVtt(e,function(){i.parseVtt(),i.activeRenderer.addCues(i.parser.cues,i.activeTrackConfig.language),i.show()})))},t.adaptPlatform=function(){var e=this.player.getOptions();c.IS_IOS&&(e.useNativeTextRenderer=!0)},t.loadVtt=function(e,t){var i=this;e?this.loader.loadFromUrl(e,function(e){i.activeTrackConfig._loaded=!0,i.vttText[i.activeTrackConfig.language]=e,t&&t()}):t&&t()},t.show=function(){this._isShow=!0,this.isCustomRenderer&&this.startTickTimeListener(),this.activeRenderer.show(this.activeTrackConfig.language)},t.hide=function(){this._isShow=!1,this.clearTicker(),this.activeRenderer.hide()},t.switchRenderer=function(e){var t=this,i=s.VttBasicRenderer.RENDER_TYPE_NATIVE,r=s.VttBasicRenderer.RENDER_TYPE_CUSTOM;(e===i&&this.activeRenderer.type!==i||e===r&&this.activeRenderer.type!==r)&&(this.createRendererInstance(e),this.trackConfigs.forEach(function(e){return t.activeRenderer.addTrack(e)}),this.activeRenderer.addCues(this.parser.cues,this.activeTrackConfig.language),this.show())},t.parseVtt=function(){this.parser.parse(this.vttText[this.activeTrackConfig.language])},t.adjustLayout=function(){var e=this;this.isShow&&this.isCustomRenderer&&(this.activeRenderer.hide(),setTimeout(function(){e.activeRenderer.restore()},300))},t.startTickTimeListener=function(){var t=this;this.clearTicker(),this.tick(function(){var e=t.player.getCurrentTime();isNaN(e)||t.activeRenderer.renderCues(t.findTargetCues(e))})},t.tick=function(e){var t=this;this.tickTimer=requestAnimationFrame(function(){try{e()}catch(e){console.log("e",e)}t.tick(e)})},t.clearTicker=function(){this.tickTimer&&(cancelAnimationFrame(this.tickTimer),this.tickTimer=null)},t.getOverlayId=function(){var e=(document.getElementsByClassName("prism-text-overlay")||[])[0];if(e)return e.id},t.findTargetCues=function(e){if(this.parser&&e!==this.prevPosition){this.prevPosition=e;for(var t=[],i=0;i<this.parser.cues.length;i++){var r=this.parser.cues[i];if(e>=r.startTime&&e<=r.endTime)t.push(r);else if(e<r.startTime)break}return t}},t.reset=function(){this.clearTicker(),this.parser&&this.parser.reset(),this.activeRenderer&&this.activeRenderer.reset()},t.dispose=function(){this.clearTicker(),this.parser&&(this.parser.dispose(),this.parser=null),this.activeRenderer&&(this.activeRenderer.dispose(),this.activeRenderer=null),this.trackConfigs=null,this.hasUserTracks=!1,this.vttText={},this.prevPosition=null,this._enabled=!1,this._isShow=!1},n(e,[{key:"isShow",get:function(){return this._isShow}},{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e}},{key:"isCustomRenderer",get:function(){if(this.activeRenderer)return this.activeRenderer.type===s.VttBasicRenderer.RENDER_TYPE_CUSTOM}},{key:"activeTrackConfig",get:function(){var e;return null==(e=this.trackConfigs)?void 0:e.find(function(e){return e._isActive})},set:function(t){this.trackConfigs.forEach(function(e){return e._isActive=e.language===t})}}]),e}(),h=function(){function e(){this.value=!1,this.timer=null}return e.prototype.sleep=function(e){var t=this;this.timer&&clearTimeout(this.timer),this.value=!0,this.timer=setTimeout(function(){t.value=!1},e)},n(e,[{key:"isSleep",get:function(){return this.value}}]),e}();t.exports=e},{"../../lib/event":30,"../../lib/ua":44,"../../player/base/event/eventtype":64,"../../ui/component/util":149,"./vtt-loader":52,"./vtt-parser":53,"./vtt-renderer":54}],51:[function(e,t,i){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,r=arguments[t];for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}function n(e,t){e.prototype=Object.create(t.prototype),o(e.prototype.constructor=e,t)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),e}var l=e("../../lib/data"),u={DISABLED:"disabled",SHOWING:"showing",HIDDEN:"hidden"},c={SUBTITLES:"subtitles",CAPTIONS:"captions",DESCRIPTIONS:"descriptions",METADATA:"metadata",CHAPTERS:"chapters"},d=function(i){function e(e){var t=r({},e=void 0===e?{}:e,{kind:e.kind||c.SUBTITLES,language:e.language||e.srclang||""}),e=t.mode||u.DISABLED;t.default;return-1<[c.METADATA,c.CHAPTERS].indexOf(t.kind)&&(e=u.HIDDEN),t.mode=e,(e=i.call(this,t)||this)._cues=[],e._activeCues=[],e._settings={},e._nativeTrack=null,e._extData={},e._settings=t,e}n(e,i);var t=e.prototype;return t.setExtData=function(e){this._extData=r({},this._extData,e=void 0===e?{}:e)},t.addCue=function(e){this._cues.push(e),this.nativeTrack&&this.nativeTrack.addCue(e)},t.removeCue=function(t){this._cues=this._cues.filter(function(e){return e!==t}),this.nativeTrack&&this.nativeTrack.removeCue(t)},s(e,[{key:"default",get:function(){return this._settings.default}},{key:"mode",get:function(){return this._settings.mode},set:function(e){this._settings.mode=e,this.nativeTrack&&(this.nativeTrack.mode=e)}},{key:"language",get:function(){return this._settings.language},set:function(e){this._settings.language=e,this.nativeTrack&&(this.nativeTrack.language=e)}},{key:"cues",get:function(){return this._cues}},{key:"activeCues",get:function(){return this._activeCues}},{key:"nativeTrack",get:function(){return this._nativeTrack},set:function(e){this._nativeTrack=e}}]),e}(function(){function e(e){this._id=(e=void 0===e?{}:e).id||"prism-track-"+l.guid(),this._kind=e.kind||"",this._language=e.language||"",this._label=e.label||""}return s(e,[{key:"label",get:function(){return this._label},set:function(e){this._label=e}},{key:"id",get:function(){return this._id}},{key:"kind",get:function(){return this._kind}},{key:"language",get:function(){return this._language}}]),e}()),e=function(e){function t(){return e.call(this)||this}return n(t,e),t}(function(){function e(){this._trackList=[]}return e.prototype.addTrack=function(e){var t=this.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this._trackList[t]}}),-1===this._trackList.indexOf(e)&&this._trackList.push(e)},s(e,[{key:"length",get:function(){return this._trackList.length}},{key:"list",get:function(){return this._trackList}}]),e}());t.exports.TextTrack=d,t.exports.TextTrackList=e,t.exports.TRACK_MODE=u,t.exports.TRACK_KIND=c},{"../../lib/data":27}],52:[function(e,t,i){var r=e("../io");t.exports=function(){function e(){}return e.prototype.loadFromUrl=function(e,t){r.get(e,function(e){t(e)},function(e,t){console.log("ERR",e,t)})},e}()},{"../io":36}],53:[function(e,t,i){function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=e("./vttjs").WebVTT,e=function(){function e(){var t=this;this._cues=[],this._regions=[],this.parser=new o.Parser(window,o.StringDecoder()),this.parser.onregion=function(e){t._regions.push(e)},this.parser.oncue=function(e){t._cues.push(e)},this.parser.onflush=function(){},this.parser.onparsingerror=function(e){console.log("onparsingerror",e)}}var t,i,r=e.prototype;return r.parse=function(e){this.parser.parse(e),this.parser.flush()},r.reset=function(){this.parser.flush(),this._cues=[],this._regions=[]},r.dispose=function(){this.parser.flush(),this.parser=null,this._cues=[],this._regions=[]},t=e,(r=[{key:"cues",get:function(){return this._cues}}])&&n(t.prototype,r),i&&n(t,i),e}();t.exports=e},{"./vttjs":55}],54:[function(e,t,i){function o(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,r=arguments[t];for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}function a(e,t){e.prototype=Object.create(t.prototype),n(e.prototype.constructor=e,t)}function n(e,t){return(n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}e("../../player/base/event/eventtype");var s=e("./text-track"),l=e("./vttjs").WebVTT,u=e("../../lib/dom"),c=s.TextTrack,d=s.TextTrackList,p=s.TRACK_MODE,h=(s.TRACK_KIND,function(){function e(e){this.player=null,this.type=null,this.trackList=null,this.overrideStyle={},this.player=(e=e||{}).player,this.defineTextTrackGetter(),this.trackList=new d}var t=e.prototype;return t.log=function(){for(var e,t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];(e=console).log.apply(e,["[LOG:"+this.type+"]"].concat(i))},t.defineTextTrackGetter=function(){var e=this;this.player.getTextTracks=function(){return e.trackList||[]}},t.show=function(e){e=this.findTrackByLanguage(e);e&&(e.mode=p.SHOWING)},t.findTrackByLanguage=function(t){return this.trackList.list.find(function(e){return e.language===t})},t.clearCurrentCues=function(e){if(e){var t=e.mode;if(t===p.DISABLED&&(e.mode=p.HIDDEN),e.cues)for(var i=e.cues.length;i--;)e.removeCue(e.cues[i]);t===p.DISABLED&&(e.mode=t)}},t.addTrack=function(){},t.addCues=function(){},t.restore=function(){},t.renderCues=function(){},t.updateCuesStyle=function(){},t.clearTrack=function(e){this.clearCurrentCues(this.findTrackByLanguage(e))},t.clearAllTracks=function(){var t=this;this.trackList&&this.trackList.length&&this.trackList.list.forEach(function(e){e.mode=p.DISABLED,t.clearCurrentCues(e)}),this.trackList=new d},t.reset=function(){this.hide(),this.clearAllTracks()},t.dispose=function(){this.hide(),this.clearAllTracks(),this.player&&this.player.getTextTracks&&(this.player.getTextTracks=null),this.player=null,this.type=null},e}());h.RENDER_TYPE_CUSTOM="CUSTOM",h.RENDER_TYPE_NATIVE="NATIVE";e=function(i){function e(e){var t=i.call(this,e)||this;return t.overlayId=null,t.currentCues=null,e=e||{},t.type=h.RENDER_TYPE_CUSTOM,t.overlayId=e.overlayId,t}a(e,i);var t=e.prototype;return t.addTrack=function(e){var t=new c({kind:e.kind,label:e.label,language:e.language});t.mode=e.default?p.SHOWING:p.DISABLED,this.trackList.addTrack(t)},t.hide=function(){return l.processCues(window,[],document.getElementById(this.overlayId))},t.restore=function(){this.currentCues&&(this.currentCues.forEach(function(e){return e.displayState=null}),l.processCues(window,this.currentCues,this.overlayEl),this.updateCuesStyle(this.currentCues))},t.renderCues=function(e){e&&(this.currentCues=e,this.overlayEl||(this.overlayEl=document.getElementById(this.overlayId)),l.processCues(window,e,this.overlayEl),this.updateCuesStyle(e))},t.updateCuesStyle=function(e){var r=this;e.forEach(function(e){var t,i=e.displayState;i._styleSetDone||i&&(i.setAttribute("class","prism-cue"),r.overlayEl||(r.overlayEl=document.getElementById(r.overlayId)),t=r.overlayEl.offsetWidth,e=r.overlayEl.offsetHeight,(e=Math.min(t,e))&&(i.style.fontSize=.05*e+"px",i.style.height="auto",i.style.top="auto"),Object.keys(r.overrideStyle).forEach(function(e){r.tryUpdateStyle(i,e,r.overrideStyle[e])}),i._styleSetDone=!0)})},t.updateOverrideStyle=function(e){this.overrideStyle=r({},this.overrideStyle,e=void 0===e?{}:e)},t.forceUpdateCuesStyle=function(e,t){void 0===t&&(t=[]),this.updateOverrideStyle(e=void 0===e?{}:e),this.resetCuesStyle(t)},t.tryUpdateStyle=function(e,t,i){try{e.style[t]=i}catch(e){return}},t.resetCuesStyle=function(e){e&&e.length&&e.forEach(function(e){e.displayState&&(e.displayState=null)})},t.dispose=function(){i.prototype.dispose.call(this),this.overlayId=null,this.currentCues=null},e}(h),s=function(t){function e(e){return(e=t.call(this,e=void 0===e?{}:e)||this).type=h.RENDER_TYPE_NATIVE,e}a(e,t);var i,r,n=e.prototype;return n.addTrack=function(t){var e=this.player.tag,i=Array.from(e.textTracks)||[],r=i.find(function(e){return e.language===t.language});this.log("sameLangTrack",r,i),(r=r?(this.clearCurrentCues(r),r.kind=t.kind,r.label=t.label,r):e.addTextTrack(t.kind,t.label,t.language)).mode=t.default?p.SHOWING:p.DISABLED;e=new c(t);e.nativeTrack=r,this.trackList.addTrack(e)},n.addCues=function(e,t){var i;e&&e.length&&((i=this.trackList.list.find(function(e){return e.language===t}))&&e.forEach(function(e){i.addCue(e)}))},n.hide=function(){this.trackList.list.forEach(function(e){e.mode=e.mode===p.SHOWING?p.HIDDEN:e.mode})},n.invalidAllTracks=function(){},n.forceUpdateCuesStyle=function(e,t){u.addCssByStyle("video::-webkit-media-text-track-container{transform: "+e.transform+";}")},n.dispose=function(){t.prototype.dispose.call(this)},i=e,(n=[{key:"activeTrack",get:function(){return this.trackList.list.find(function(e){return e.mode===p.SHOWING})}}])&&o(i.prototype,n),r&&o(i,r),e}(h);t.exports.VttBasicRenderer=h,t.exports.CustomRenderer=e,t.exports.NativeRenderer=s},{"../../lib/dom":29,"../../player/base/event/eventtype":64,"./text-track":51,"./vttjs":55}],55:[function(e,t,i){t.exports={WebVTT:e("./vtt.js").WebVTT}},{"./vtt.js":56}],56:[function(e,t,i){!function(e){function s(e,t){return void 0===t&&(t=1),"rgba("+[parseInt(e.substring(0,2),16),parseInt(e.substring(2,4),16),parseInt(e.substring(4,6),16),t].join(",")+")"}var l,u=1;function t(e,t,i){switch(i){case"webvtt.font.color":case"webvtt.font.opacity":var r=Services.prefs.getCharPref("webvtt.font.color"),n=Services.prefs.getIntPref("webvtt.font.opacity")/100;l.fontSet=s(r,n);break;case"webvtt.font.scale":u=Services.prefs.getIntPref("webvtt.font.scale")/100;break;case"webvtt.bg.color":case"webvtt.bg.opacity":var o=Services.prefs.getCharPref("webvtt.bg.color"),a=Services.prefs.getIntPref("webvtt.bg.opacity")/100;l.backgroundSet=s(o,a);break;case"webvtt.edge.color":case"webvtt.edge.type":o=Services.prefs.getIntPref("webvtt.edge.type"),a=Services.prefs.getCharPref("webvtt.edge.color");l.edgeSet=["","0px 0px ","4px 4px 4px ","-2px -2px ","2px 2px "][o]+s(a)}}"undefined"!=typeof Services&&(l={},["webvtt.font.color","webvtt.font.opacity","webvtt.font.scale","webvtt.bg.color","webvtt.bg.opacity","webvtt.edge.color","webvtt.edge.type"].forEach(function(e){t(0,0,e),Services.prefs.addObserver(e,t,!1)}));var i=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return r.prototype=e,new r};function r(){}function c(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function p(e){function t(e,t,i,r){return 3600*(0|e)+60*(0|t)+(0|i)+(0|r)/1e3}e=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function d(){this.values=i(null)}function h(e,t,i,r){var n,o,a=r?e.split(r):[e];for(n in a)"string"==typeof a[n]&&(2===(o=a[n].split(i)).length&&t(o[0],o[1]))}((c.prototype=i(Error.prototype)).constructor=c).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},d.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var r=0;r<i.length;++r)if(t===i[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var f={"&":"&","<":"<",">":">","‎":"\u200e","‏":"\u200f"," ":"\xa0"},g={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},y={v:"title",lang:"lang"},_={rt:"ruby"};function v(n,t){function i(e){return f[e]}for(var e,r,o,a,s,l,u=n.document.createElement("div"),c=u,d=[];null!==(e=function(){if(!t)return null;var e=t.match(/^([^<]*)(<[^>]+>?)?/);return e=e[1]||e[2],t=t.substr(e.length),e}());)"<"!==e[0]?c.appendChild(n.document.createTextNode(function(e){for(;a=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(a[0],i);return e}(e))):"/"!==e[1]?(r=p(e.substr(1,e.length-2)))?(o=n.document.createProcessingInstruction("timestamp",r),c.appendChild(o)):(a=e.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(o=function(e,t){var i=g[e];if(!i)return null;var r=n.document.createElement(i);return r.localName=i,(e=y[e])&&t&&(r[e]=t.trim()),r}(a[1],a[3]))&&(s=c,_[(l=o).localName]&&_[l.localName]!==s.localName||(a[2]&&(o.className=a[2].substr(1).replace("."," ")),d.push(a[1]),c.appendChild(o),c=o)):d.length&&d[d.length-1]===e.substr(2).replace(">","")&&(d.pop(),c=c.parentNode);return u}var n=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function m(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function o(e,t){for(var i=t.childNodes.length-1;0<=i;i--)e.push(t.childNodes[i])}for(o(t,e);i=function e(t){if(!t||!t.length)return null;var i=t.pop(),r=i.textContent||i.innerText;if(r){var n=r.match(/^.*(\n|\r)/);return n?n[t.length=0]:r}return"ruby"===i.tagName?e(t):i.childNodes?(o(t,i),e(t)):void 0}(t);)for(var r=0;r<i.length;r++)if(function(e){for(var t=0;t<n.length;t++){var i=n[t];if(e>=i[0]&&e<=i[1])return 1}}(i.charCodeAt(r)))return"rtl";return"ltr"}function b(){}function S(e,t,i){var r="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent),n="rgba(255, 255, 255, 1)",o="rgba(0, 0, 0, 0.8)",a="";void 0!==l&&(n=l.fontSet,o=l.backgroundSet,a=l.edgeSet),r&&(n="rgb(255, 255, 255)",o="rgb(0, 0, 0)"),b.call(this),this.cue=t,this.cueDiv=v(e,t.text);a={color:n,backgroundColor:o,textShadow:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};r||(a.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",a.unicodeBidi="plaintext"),this.applyStyles(a,this.cueDiv),this.div=e.document.createElement("div"),a={textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},r||(a.direction=m(this.cueDiv),a.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"plaintext"),this.applyStyles(a),this.div.appendChild(this.cueDiv);var s=0;switch(t.positionAlign){case"start":s=t.position;break;case"middle":s=t.position-t.size/2;break;case"end":s=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(s,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(s,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function T(e){var t,i,r,n,o="undefined"!=typeof navigator&&/MSIE\s8\.0/.test(navigator.userAgent);e.div&&(t=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop,n=(n=e.div.childNodes)&&(n=n[0])&&n.getClientRects&&n.getClientRects(),e=e.div.getBoundingClientRect(),n=n?Math.max(n[0]&&n[0].height||0,e.height/n.length):0),this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||t,this.bottom=e.bottom||r+(e.height||t),this.width=e.width||i,this.lineHeight=void 0!==n?n:e.lineHeight,o&&!this.lineHeight&&(this.lineHeight=13)}function x(e,t,s,l){var i,r=new T(t),n=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,r=0,n=0;n<i.length&&i[n]!==t;n++)"showing"===i[n].mode&&r++;return-1*++r}(n),a=[];if(n.snapToLines){switch(n.vertical){case"":a=["+y","-y"],i="height";break;case"rl":a=["+x","-x"],i="width";break;case"lr":a=["-x","+x"],i="width"}var u=r.lineHeight,c=u*Math.round(o),d=s[i]+u,p=a[0];Math.abs(c)>d&&(c=c<0?-1:1,c*=Math.ceil(d/u)*u),o<0&&(c+=""===n.vertical?s.height:s.width,a=a.reverse()),r.move(p,c)}else{var h=r.lineHeight/s.height*100;switch(n.lineAlign){case"middle":o-=h/2;break;case"end":o-=h}switch(n.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}a=["+y","-x","+x","-y"],r=new T(t)}r=function(e,t){for(var i,r=new T(e),n=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(s,t[o])||e.within(s)&&e.overlapsAny(l);)e.move(t[o]);if(e.within(s))return e;var a=e.intersectPercentage(s);a<n&&(i=new T(e),n=a),e=new T(r)}return i||r}(r,a);t.move(r.toCSSCompatValues(s))}function o(){}b.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(S.prototype=i(b.prototype)).constructor=S,T.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},T.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},T.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},T.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},T.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},T.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},T.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},T.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||i}},o.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},o.convertCueToDOMTree=function(e,t){return e&&t?v(e,t):null};o.processCues=function(r,n,e){if(!r||!n||!e)return null;for(;e.firstChild;)e.removeChild(e.firstChild);var o=r.document.createElement("div");if(o.style.position="absolute",o.style.left="0",o.style.right="0",o.style.top="0",o.style.bottom="0",o.style.margin="1.5%",e.appendChild(o),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1}(n)){var a=[],s=T.getSimpleBoxPosition(o),l={font:Math.round(.05*s.height*100)/100*u+"px sans-serif"};!function(){for(var e,t,i=0;i<n.length;i++)t=n[i],e=new S(r,t,l),o.appendChild(e.div),x(0,e,s,a),t.displayState=e.div,a.push(T.getSimpleBoxPosition(e))}()}else for(var t=0;t<n.length;t++)o.appendChild(n[t].displayState)},(o.Parser=function(e,t){this.window=e,this.state="INITIAL",this.buffer="",this.decoder=t||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof c))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var r=this;function t(){for(var e=r.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,r.buffer=e.substr(t),i}function i(e){h(e,function(e,t){var n;"Region"===e&&(t=t,n=new d,h(t,function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new d;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"])}},/=/,/\s/),n.has("id")&&((t=new r.window.VTTRegion).width=n.get("width",100),t.lines=n.get("lines",3),t.regionAnchorX=n.get("regionanchorX",0),t.regionAnchorY=n.get("regionanchorY",100),t.viewportAnchorX=n.get("viewportanchorX",0),t.viewportAnchorY=n.get("viewportanchorY",100),t.scroll=n.get("scroll",""),r.onregion&&r.onregion(t),r.regionList.push({id:n.get("id"),region:t})))},/:/)}e&&(r.buffer+=r.decoder.decode(e,{stream:!0}));try{if("INITIAL"===r.state){if(!/\r\n|\n/.test(r.buffer))return this;var n,o=(n=t()).match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new c(c.Errors.BadSignature);r.state="HEADER"}for(var a=!1;r.buffer;){if(!/\r\n|\n/.test(r.buffer))return this;switch(a?a=!1:n=t(),r.state){case"HEADER":/:/.test(n)?i(n):n||(r.state="ID");continue;case"NOTE":n||(r.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){r.state="NOTE";break}if(!n)continue;if(r.cue=new r.window.VTTCue(0,0,""),r.state="CUE",-1===n.indexOf("--\x3e")){r.cue.id=n;continue}case"CUE":try{!function(t,e,o){var i,a,r=t;function n(){var e=p(t);if(null===e)throw new c(c.Errors.BadTimeStamp,"Malformed timestamp: "+r);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function s(){t=t.replace(/^\s+/,"")}if(s(),e.startTime=n(),s(),"--\x3e"!==t.substr(0,3))throw new c(c.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);t=t.substr(3),s(),e.endTime=n(),s(),i=t,e=e,a=new d,h(i,function(e,t){switch(e){case"region":for(var i=o.length-1;0<=i;i--)if(o[i].id===t){a.set(e,o[i].region);break}break;case"vertical":a.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),n=r[0];a.integer(e,n),a.percent(e,n)&&a.set("snapToLines",!1),a.alt(e,n,["auto"]),2===r.length&&a.alt("lineAlign",r[1],["start","middle","end"]);break;case"position":r=t.split(","),a.percent(e,r[0]),2===r.length&&a.alt("positionAlign",r[1],["start","middle","end"]);break;case"size":a.percent(e,t);break;case"align":a.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),e.region=a.get("region",null),e.vertical=a.get("vertical",""),e.line=a.get("line","auto"),e.lineAlign=a.get("lineAlign","start"),e.snapToLines=a.get("snapToLines",!0),e.size=a.get("size",100),e.align=a.get("align","middle"),e.position=a.get("position","auto"),e.positionAlign=a.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(n,r.cue,r.regionList)}catch(e){r.reportOrThrowError(e),r.cue=null,r.state="BADCUE";continue}r.state="CUETEXT";continue;case"CUETEXT":var s=-1!==n.indexOf("--\x3e");if(!n||s&&(a=!0)){r.oncue&&r.oncue(r.cue),r.cue=null,r.state="ID";continue}r.cue.text&&(r.cue.text+="\n"),r.cue.text+=n;continue;case"BADCUE":n||(r.state="ID");continue}}}catch(e){r.reportOrThrowError(e),"CUETEXT"===r.state&&r.cue&&r.oncue&&r.oncue(r.cue),r.cue=null,r.state="INITIAL"===r.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new c(c.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},e.WebVTT=o}(this)},{}],57:[function(e,t,i){var n=e("../lib/io");e("../lib/storage");function r(e){this._uploadDuration=e.logDuration||5,this._uploadCount=e.logCount||10,this._logReportTo=e.logReportTo,this._logs=[],this._retry=0,this._disposed=!1,this._supportLocalStorage=!0;var t,i=this;window&&(window.onbeforeunload=function(e){0<i._logs.length&&(i._supportLocalStorage?localStorage.setItem("__aliplayer_log_data",JSON.stringify(i._logs)):(i._report(),function(e){for(var t=(new Date).getTime(),i=t;i<t+e;)i=(new Date).getTime()}(500)))});try{localStorage?(t=localStorage.getItem("__aliplayer_log_data"),localStorage.removeItem("__aliplayer_log_data"),t&&(this._logs=JSON.parse(t))):this._supportLocalStorage=!1}catch(e){this._supportLocalStorage=!1}this._start()}r.prototype.add=function(e){var t=this._logs.length;if(e.__time__=Math.round(new Date/1e3),0<t&&"4001"==e.e){t=this._logs[t-1];if("4001"==t.e&&t.__time__-e.__time__<5)return}this._logs.push(e),(this._logs.length>this._uploadCount||"4001"==e.e||"2002"==e.e)&&this._report()},r.prototype.dispose=function(){this._report(),this._disposed=!0},r.prototype._start=function(){this._disposed=!1;this._retry=0,this._report()},r.prototype._report=function(t){var e,i,r;this._tickHandler&&(clearTimeout(this._tickHandler),this._tickHandler=null),0<(t=t||this._logs.splice(0,this._uploadCount)).length?(r={"Content-Type":"application/json;charset=UTF-8","x-log-apiversion":"0.6.0","x-log-bodyrawsize":(e=JSON.stringify({__logs__:t,__source__:""})).length},n.postWithHeader((i=this)._logReportTo,e,r,function(e){i._tick()},function(e){0==i._retry?(i._retry=1,i._report(t)):i._tick()})):this._tick()},r.prototype._tick=function(){var e;this._disposed||(this._retry=0,(e=this)._logs.length>this._uploadCount?e._report():this._tickHandler=setTimeout(function(){e._report()},1e3*this._uploadDuration))},t.exports=r},{"../lib/io":36,"../lib/storage":43}],58:[function(e,t,i){function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,r=arguments[t];for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)}var r,n=e("../lib/oo"),s=e("../lib/object"),f=e("../lib/data"),l=e("../lib/io"),g=e("../lib/ua"),y=e("../config"),o=e("../player/base/event/eventtype"),_=e("./util"),v=e("./log"),u=0,c={STARTFETCHDATA:1003,COMPLETEFETCHDATA:1004,PREPARE:1101,PREPAREEND:1102,STARTPLAY:2e3,PLAY:2001,STOP:2002,PAUSE:2003,SEEK:2004,FULLSREEM:2005,QUITFULLSCREEM:2006,RESOLUTION:2007,RESOLUTION_DONE:2008,RECOVER:2010,SEEK_END:2011,FETCHEDIP:2020,CDNDETECT:2021,DETECT:2022,UNDERLOAD:3002,LOADED:3001,RETRY:3003,HEARTBEAT:9001,ERROR:4001,ERRORRETRY:4002,SNAPSHOT:2027,ROTATE:2028,IMAGE:2029,THUMBNAILSTART:2031,THUMBNAILCOMPLETE:2032,CCSTART:2033,CCCOMPLETE:2034,AUDIOTRACKSTART:2033,AUDIOTRACKCOMPLETE:2034},n=n.extend({init:function(e,t,i){this.trackLog=i=void 0===i?!0:i,this.player=e,this.requestId="",this.sessionId=f.guid(),this.playId=0,this.firstPlay=!0,this.osName=g.os.name,this.osVersion=g.os.version||"",this.exName=g.browser.name,this.exVersion=g.browser.version||"",this.lightSaasVideoId="",this._logService="",this.prevStats={timestamp:0,bytesReceived:0,framesDecoded:0,packetsLost:0,packetsReceived:0,rtt:0},t.logBatched&&(this._logService=new v(y));var r=this.player.getOptions(),n=t.from||"",o=(r.isLive,r.isLive?"live":"vod"),a="pc";g.IS_IPAD?a="pad":g.os.phone&&(a="phone");var s=this.encodeURL(g.getReferer()),l=g.getHref(),u=this.encodeURL(l),c="";l&&(c=g.getHost(l));var d=y.h5Version,p=_.getUuid(),h=r.source?this.encodeURL(r.source):"",i=g.getHost(r.source),e=r.userId?r.userId+"":"0",t=this.sessionId,l=(new Date).getTime(),r=r.traceId||"";this._userNetInfo={cdnIp:"",localIp:""};this.opt={APIVersion:"0.6.0",t:l,ll:"info",lv:"1.0",pd:"player",md:"saas_player",ui:"saas_player",sm:"play",os:this.osName,ov:this.osVersion,et:this.exName,ev:this.exVersion,uat:g.USER_AGENT,hn:"0.0.0.0",bi:n,ri:t,e:"0",args:"0",vt:o,tt:a,dm:"h5",av:d,uuid:p,vu:h,vd:i,ua:e,dn:"custom",cdn_ip:"0.0.0.0",app_n:c,r:s,pu:u,ti:r},this.bindEvent()},updateVideoInfo:function(e){e=e.from||"";this.opt.bi=e+"",this.updateSourceInfo()},updateSourceInfo:function(){var e,t=this.player.getOptions();t&&(e=t.source?this.encodeURL(t.source):"",t=g.getHost(t.source),this.opt.vu=e,this.opt.vd=t)},updateTraceId:function(e){this.opt.ti=e},updateLightSaasVideoId:function(e){this.lightSaasVideoId=e},replay:function(){this.reset(),this.player.trigger(o.Video.LoadStart),this.player.trigger(o.Video.LoadedMetadata),this.player.trigger(o.Video.LoadedData)},bindEvent:function(){var t=this;this.player.on(o.Player.Init,function(){t._onPlayerInit()}),this.player.on(o.Video.LoadStart,function(){t._onPlayerloadstart()}),this.player.on(o.Video.LoadedMetadata,function(){t._onPlayerLoadMetadata()}),this.player.on(o.Video.LoadedData,function(){t._onPlayerLoaddata()}),this.player.on(o.Video.Play,function(){t._onPlayerPlay()}),this.player.on(o.Video.Playing,function(){t._onPlayerReady()}),this.player.on(o.Video.Ended,function(){t._onPlayerFinish()}),this.player.on(o.Video.Pause,function(){t._onPlayerPause()}),this.player.on(o.Private.SeekStart,function(e){t._onPlayerSeekStart(e)}),this.player.on(o.Private.EndStart,function(e){t._seekEndData=e.paramData}),this.player.on(o.Player.Waiting,function(){t._onPlayerLoaded()}),this.player.on(o.Video.CanPlayThrough,function(){}),this.player.on(o.Video.CanPlay,function(){t._waitingDelayLoadingShowHandle&&(clearTimeout(t._waitingDelayLoadingShowHandle),t._waitingDelayLoadingShowHandle=null),t._onPlayerUnderload(),t._onPlayerCanplay()}),this.player.on(o.Video.TimeUpdate,function(){t._waitingDelayLoadingShowHandle&&(clearTimeout(t._waitingDelayLoadingShowHandle),t._waitingDelayLoadingShowHandle=null),t._seekEndData&&t.player._seeking&&t._onPlayerSeekEnd()}),this.player.on(o.Player.Error,function(){t._onPlayerError()}),this.player.on(o.Player.RequestFullScreen,function(){t._onFullscreenChange(1)}),this.player.on(o.Player.CancelFullScreen,function(){t._onFullscreenChange(0)}),this.player.on(o.Private.PREPARE,function(e){t._prepareTime=(new Date).getTime(),t._log("PREPARE",{dn:e.paramData})}),this.player.on(o.Player.Snapshoted,function(){t._log("SNAPSHOT")}),this.player.on(o.Private.Retry,function(e){e=e.paramData||{};t._log("RETRY",{type:e.type,source:e.source})}),this.startHeartBeat.call(this)},removeEvent:function(){this.player.off("init"),this.player.off("ready"),this.player.off("ended"),this.player.off("play"),this.player.off("pause"),this.player.off("seekStart"),this.player.off("seekEnd"),this.player.off("canplaythrough"),this.player.off("playing"),this.player.off("timeupdate"),this.player.off("error"),this.player.off("fullscreenchange"),this.player.off(o.Private.PREPARE),this._logService&&this._logService.dispose(),clearInterval(r)},reset:function(){this.stucking=!1,this.startTimePlay=0,this.buffer_flag=0,this.firstPlay=!1,this.playId=0,this.loadstarted=0,this._LoadedData=0,this._canPlay=0,this.seekingStartTime=0,this.prevStats={timestamp:0,bytesReceived:0,framesDecoded:0,packetsLost:0,packetsReceived:0,rtt:0},u=0,this.lightSaasVideoId=""},encodeURL:function(e){if(!e)return"";var t=this.player.getOptions();return t&&!t.logBatched?encodeURIComponent(e):e},startHeartBeat:function(){var o=this;r&&clearInterval(r),r=setInterval(function(){var n;o.player.getCurrentTime()&&(n=Math.floor(1e3*o.player.getCurrentTime()),o.player.paused()?o.prevStats.timestamp=0:++u>=o.player._options.heartHeatInterval&&o.updateStats.call(o,function(e){var t=o._imageInfo()||{},i=o.player.tag.playbackRate,r=o.player.getVolume(),r={vt:n,interval:1e3*u,imgLength:t.imgLength,playbackRate:i,volume:r};e&&(r=a({},r,{dls:Math.floor(e.downloadSpeedPerSec),dfps:Math.floor(e.decodedFramesPerSec),pkl:Number((e.packageLossRate||0).toFixed(2)),rtt:1e3*e.rtt})),o._log("HEARTBEAT",r),u=0}))},1e3)},updateStats:function(o){o=o||function(){};var a=this;this.player.getStats().then(function(e){var t,i,r,n;e?(n=a.prevStats,e.bytesReceived=e.bytesReceived||0,e.framesDecoded=e.framesDecoded||0,e.packetsLost=e.packetsLost||0,e.packetsReceived=e.packetsReceived||0,t=((a.prevStats=e).timestamp-n.timestamp)/1e3,i=(e.bytesReceived-n.bytesReceived)/t,r=(e.framesDecoded-n.framesDecoded)/t,n=(e.packetsLost-n.packetsLost)/(e.packetsLost-n.packetsLost+(e.packetsReceived-n.packetsReceived)),e=e.rtt,o({downloadSpeedPerSec:i,decodedFramesPerSec:r,packageLossRate:n,rtt:e,timeGap:t})):o()}).catch(function(e){console.log("error in monitor getStats: ",e),o()})},_onFullscreenChange:function(e){e?this._log("FULLSREEM",{}):this._log("QUITFULLSCREEM",{})},_onPlayerloadstart:function(){this.loadstartTime=(new Date).getTime(),this.playId=f.guid(),!this.loadstarted&&this.player._isPreload()&&(this.loadstarted=1,this._log("STARTPLAY",{vt:(new Date).getTime()}))},_onPlayerLoadMetadata:function(){this.loadMetaDataCost=(new Date).getTime()-this.loadstartTime},_onPlayerLoaddata:function(){var e,t;this._LoadedData||this.buffer_flag||(t=e=0,this.player.tag&&(e=this.player.tag.videoWidth,t=this.player.tag.videoHeight),this._log("PREPAREEND",{tc:(new Date).getTime()-this._prepareTime,cc:(new Date).getTime()-this.loadstartTime,md:this.loadMetaDataCost,mi:JSON.stringify({type:"video",definition:e+"*"+t})})),this._LoadedData=1},_onPlayerCanplay:function(){this._canPlay=1,this._reportPlay(),this.prevStats.timestamp||this.updateStats.call(this)},_onPlayerInit:function(){this.stucking=!1,this.buffer_flag=0,this.pause_flag=0,this.startTimePlay=0,this.loadstarted=0,this._LoadedData=0,this._canPlay=0,this.seekingStartTime=0},_onPlayerReady:function(){this.startTimePlay||(this.startTimePlay=(new Date).getTime())},_onPlayerFinish:function(){this._log("STOP",{vt:Math.floor(1e3*this.player.getCurrentTime())}),this.reset()},_reportPlay:function(){if(!this.buffer_flag&&this._LoadedData&&this.playstartTime){this.first_play_time=(new Date).getTime();var e={dsm:"fix",tc:this.first_play_time-this.loadstartTime,fc:this.first_play_time-this.playstartTime};return this._log("PLAY",e),this.buffer_flag=1,!0}return!1},_onPlayerPlay:function(){this.playstartTime=(new Date).getTime(),0==this.playId&&(this.playId=f.guid()),this.firstPlay||0!=this.pause_flag||this.player._seeking||(this.sessionId=f.guid()),this.player._isPreload()||(this._log("STARTPLAY",{vt:(new Date).getTime()}),this.loadstartTime=(new Date).getTime()),this._canPlay&&this._reportPlay()||this.buffer_flag&&this.pause_flag&&(this.pause_flag=0,this.pauseEndTime=(new Date).getTime(),this._log("RECOVER",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:this.pauseEndTime-this.pauseTime}))},_onPlayerPause:function(){this.buffer_flag&&this.startTimePlay&&(this.player._seeking||(this.pause_flag=1,this.pauseTime=(new Date).getTime(),this._log("PAUSE",{vt:Math.floor(1e3*this.player.getCurrentTime())})))},_onPlayerSeekStart:function(e){this.seekStartTime=e.paramData.fromTime,this.startTimePlay=0,this.seekStartStamp=(new Date).getTime()},_onPlayerSeekEnd:function(){this.seekEndStamp=(new Date).getTime(),this._log("SEEK",{drag_from_timestamp:Math.floor(1e3*this.seekStartTime),drag_to_timestamp:Math.floor(1e3*this._seekEndData.toTime)}),this._log("SEEK_END",{vt:Math.floor(1e3*this.player.getCurrentTime()),cost:this.seekEndStamp-this.seekStartStamp}),this._seekEndData=null},_onPlayerLoaded:function(){var e,t=this;if(this.buffer_flag&&!this.stucking){if(this.player._seeking)return this.seekingStartTime=this.player.getCurrentTime(),void setTimeout(function(){var e;t.player.getCurrentTime()===t.seekingStartTime&&t.player.readyState()<4&&(e=t._getbwEstimator(),t._log("UNDERLOAD",{vt:Math.floor(1e3*t.player.getCurrentTime()),bw:e}),t.stucking=!0,t.stuckStartTime=(new Date).getTime())},500);this.stuckStartTime=(new Date).getTime(),this.stuckStartTime-this.startTimePlay<=1e3||(this.stucking=!0,e=this._getbwEstimator(),this._log("UNDERLOAD",{vt:Math.floor(1e3*this.player.getCurrentTime()),bw:e}),this.stuckStartTime=(new Date).getTime())}},_onPlayerUnderload:function(){var e,t,i;!this.buffer_flag&&this.player._options&&this.player._options.autoplay||this.stucking&&(e=Math.floor(1e3*this.player.getCurrentTime()),i=this.stuckStartTime||(new Date).getTime(),0<(t=Math.floor((new Date).getTime()-i))&&t<(1e3*this.player._options.waitingTimeout||6e4)&&(i=this._getbwEstimator(),this._log("LOADED",{vt:e,cost:t,bw:i})),this.stucking=!1)},_onPlayerHeartBeat:function(){var e,t;this.player._seeking||(e=Math.floor(1e3*this.player.getCurrentTime()),(t=this).timer||(this.timer=setTimeout(function(){this.player._seeking||t._log("HEARTBEAT",{progress:e}),clearTimeout(t.timer),t.timer=null},6e4)))},_onPlayerError:function(){this.playId=0,this._LoadedData=1,this.buffer_flag||this._reportPlay()},_getbwEstimator:function(){var e=NaN;try{e=this.player._getbwEstimator&&this.player._getbwEstimator()}catch(e){}return e},_log:function(e,t){if(this.trackLog){this.updateSourceInfo();var i=s.copy(this.opt);this.requestId=f.guid();var r=y.logReportTo;i.e=c[e]+"",i.ri=this.sessionId,i.t=(new Date).getTime()+"",i.cdn_ip=this._userNetInfo.cdnIp,i.hn=this._userNetInfo.localIp;e=this.player.getCurrentQuality();""!=e&&(i.definition=e.definition);var n=[];s.each(t,function(e,t){if("string"!=typeof t)try{t=JSON.stringify(t)}catch(e){}n.push(e+"="+t)});e="",t=this.player.getOptions();(t&&t.vid||this.lightSaasVideoId)&&(e=t.vid||this.lightSaasVideoId),n.push("vid="+e);var o,e="";(e=t&&t.mediaAuth?t.mediaAuth:e)&&n.push("pauth="+e);try{Aliplayer&&Aliplayer.__logCallback__&&(i.args=n,Aliplayer.__logCallback__(i))}catch(e){console.log(e)}return""==(n=n.join("&"))&&(n="0"),i.args=this.encodeURL(n),this._logService?this._logService.add(i):(o=[],s.each(i,function(e,t){o.push(e+"="+t)}),o=o.join("&"),l.jsonp(r+"?"+o,function(){},function(){})),this.sessionId}},_imageInfo:function(){try{if(/MSIE\s8\.0/.test(navigator.userAgent))return{};var e=this.player.tag;if(!e)return{};var t=document.createElement("canvas"),i=e.videoWidth,r=e.videoHeight;t.width=i,t.height=r;var n=t.getContext("2d");n.save(),n.drawImage(e,0,0,i,r),n.restore();var o=t.toDataURL("image/jpeg",1),a="";return{imgLength:(a=o?(a=o.substr(o.indexOf(",")+1))||"":a).length}}catch(e){return{}}}});t.exports=n},{"../config":13,"../lib/data":27,"../lib/io":36,"../lib/object":38,"../lib/oo":39,"../lib/ua":44,"../player/base/event/eventtype":64,"./log":57,"./util":59}],59:[function(e,t,i){var r=e("../lib/cookie"),n=e("../lib/data"),o=e("../lib/ua");t.exports.getUuid=function(){var e=r.get("p_h5_u");return e||(e=n.guid(),r.set("p_h5_u",e,730)),e},t.exports.getTerminalType=function(){var e="pc";return o.IS_IPAD?e="pad":o.IS_ANDROID?e="android":o.IS_IOS&&(e="iphone"),e},t.exports.returnUTCDate=function(e){var t=e.getUTCFullYear(),i=e.getUTCMonth(),r=e.getUTCDate(),n=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),e=e.getUTCMilliseconds();return Date.UTC(t,i,r,n,o,a,e)},t.exports.getRfc822=function(e){return e.toUTCString().replace("UTC","GMT")}},{"../lib/cookie":26,"../lib/data":27,"../lib/ua":44}],60:[function(e,t,i){var o=e("./base/player"),a=e("./flash/flashplayer"),s=e("./saas/mtsplayer"),l=e("./saas/vodplayer"),u=e("./saas/lightPlayer"),c=e("./audio/audioplayer"),d=e("./hls/hlsplayer"),p=e("./flv/flvplayer"),h=e("./rts/rtsplayer"),f=e("./drm/drmplayer"),g=e("../lib/ua"),y=e("../lib/playerutil"),_=(e("../lib/dom"),e("../lib/io"),e("../lang/index")),v=e("../lib/constants"),m=e("./base/event/eventtype");t.exports.create=function(e,t){navigator&&navigator.userAgent&&-1<navigator.userAgent.indexOf("Olympic_Android")&&(e.useNativeControls=!0),e.readyCallback=t="function"!=typeof t?function(){}:t,_.setCurrentLanguage(e.language,"h5",e.languageTexts);var i=y.handleOption(e),r=i.source,t=y.isAudio(r);t&&(i.mediaType="audio");var n,e=y.createWrapper(i);if(e.player)return e.player;if(t)n=new c(e,i);else if(y.isRts(r))n=new h(e,i);else if(!i.useFlashPrism&&y.isFlv(r)&&y.isSupportFlv())n=new p(e,i);else if(g.IS_MOBILE||!i.useFlashPrism&&!y.isRTMP(r))if(-1!==[null,void 0].indexOf(i.mediaAuth)||i.source)if(i.vid&&!i.source)if(i.authInfo)n=new s(e,i);else{if(!(i.playauth||i.accessKeyId&&i.accessKeySecret)){t="vid="+i.vid+" playauth='', playauth property is required by VOD(\u89c6\u9891\u70b9\u64ad) as new Aliplayer.";throw new Error(t)}n=new l(e,i)}else y.isDash(r)&&y.isSupportMSE()?n=new f(e,i):y.isHls(r)?y.canPlayHls()?n=new(y.isSupportHls()&&(y.isUsedHlsPluginOnMobile()||y.isSafariUsedHlsPlugin(i.useHlsPluginForSafari))?i.isDrm?f:d:i.isDrm?f:o)(e,i):y.isSupportHls()?n=new(i.isDrm?f:d)(e,i):g.os.pc?i.userH5Prism||i.useH5Prism||(n=new a(e,i)):n=new o(e,i):g.os.pc?(n=new o(e,i),i.source||(r={error_code:v.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL",display_msg:_.get("Error_Empty_Source")},n.trigger(m.Player.Error,r))):n=new o(e,i);else n=new u(e,i);else n=new a(e,i);return n}},{"../lang/index":21,"../lib/constants":25,"../lib/dom":29,"../lib/io":36,"../lib/playerutil":41,"../lib/ua":44,"./audio/audioplayer":62,"./base/event/eventtype":64,"./base/player":84,"./drm/drmplayer":91,"./flash/flashplayer":92,"./flv/flvplayer":94,"./hls/hlsplayer":96,"./rts/rtsplayer":98,"./saas/lightPlayer":102,"./saas/mtsplayer":104,"./saas/vodplayer":110}],61:[function(e,t,i){var o=e("./base/player"),a=e("./flash/flashplayer"),s=e("./saas/mtsplayer"),l=e("./saas/vodplayer"),u=e("./saas/lightPlayer"),c=e("./audio/audioplayer"),d=e("./hls/hlsplayer"),p=e("./flv/flvplayer"),h=e("./rts/rtsplayer"),f=e("./drm/drmplayer"),g=e("../lib/ua"),y=e("../lib/playerutil"),_=(e("../lib/dom"),e("../lib/io"),e("../lang/index")),v=e("../lib/constants"),m=e("./base/event/eventtype");t.exports.create=function(e,t){navigator&&navigator.userAgent&&-1<navigator.userAgent.indexOf("Olympic_Android")&&(e.useNativeControls=!0),e.readyCallback=t="function"!=typeof t?function(){}:t,_.setCurrentLanguage(e.language,"h5",e.languageTexts);var i=y.handleOption(e),r=i.source,t=y.isAudio(r);t&&(i.mediaType="audio");var n,e=y.createWrapper(i);if(e.player)return e.player;if(t)n=new c(e,i);else if(y.isRts(r))n=new h(e,i);else if(!i.useFlashPrism&&y.isFlv(r)&&y.isSupportFlv())n=new p(e,i);else if(g.IS_MOBILE||!i.useFlashPrism&&!y.isRTMP(r))if(-1!==[null,void 0].indexOf(i.mediaAuth)||i.source)if(i.vid&&!i.source)if(i.authInfo)n=new s(e,i);else{if(!(i.playauth||i.accessKeyId&&i.accessKeySecret)){t="vid="+i.vid+" playauth='', playauth property is required by VOD(\u89c6\u9891\u70b9\u64ad) as new Aliplayer.";throw new Error(t)}n=new l(e,i)}else y.isDash(r)&&y.isSupportMSE()?n=new f(e,i):y.isHls(r)?y.canPlayHls()?n=new(y.isSupportHls()&&(y.isUsedHlsPluginOnMobile()||y.isSafariUsedHlsPlugin(i.useHlsPluginForSafari))?i.isDrm?f:d:i.isDrm?f:o)(e,i):y.isSupportHls()?n=new(i.isDrm?f:d)(e,i):g.os.pc?i.userH5Prism||i.useH5Prism||(n=new a(e,i)):n=new o(e,i):g.os.pc?(n=new o(e,i),i.source||(r={error_code:v.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL",display_msg:_.get("Error_Empty_Source")},n.trigger(m.Player.Error,r))):n=new o(e,i);else n=new u(e,i);else n=new a(e,i);return n}},{"../lang/index":21,"../lib/constants":25,"../lib/dom":29,"../lib/io":36,"../lib/playerutil":41,"../lib/ua":44,"./audio/audioplayer":62,"./base/event/eventtype":64,"./base/player":84,"./drm/drmplayer":91,"./flash/flashplayer":92,"./flv/flvplayer":94,"./hls/hlsplayer":96,"./rts/rtsplayer":98,"./saas/lightPlayer":102,"./saas/mtsplayer":104,"./saas/vodplayer":110}],62:[function(e,t,i){var r=e("../base/player"),n=e("../../ui/component"),o=e("../../lib/dom"),a=e("../../lib/object"),s=e("../../lib/playerutil"),e=r.extend({init:function(e,t){this._isAudio=!0,void 0===t.skinLayout&&(t.skinLayout=s.defaultAudioLayout),r.call(this,e,t)}});e.prototype.createEl=function(){"AUDIO"!==this.tag.tagName&&(this._el=this.tag,this.tag=n.prototype.createEl.call(this,"audio"));var t=this._el,e=this.tag;e.player=this;var i=o.getElementAttributes(e);return a.each(i,function(e){t.setAttribute(e,i[e])}),this.setVideoAttrs(),e.parentNode&&e.parentNode.insertBefore(t,e),o.insertFirst(e,t),t},t.exports=e},{"../../lib/dom":29,"../../lib/object":38,"../../lib/playerutil":41,"../../ui/component":121,"../base/player":84}],63:[function(e,t,i){var a=e("../../../lib/event"),s=e("./eventtype"),r=e("../eventHandler/video/index"),n=e("../eventHandler/player/index");t.exports.offAll=function(e){var t,i,r,n=e.tag,o=e._el;for(t in s.Video)a.off(n,s.Video[t]);for(i in s.Player)a.off(o,s.Player[i]);for(r in s.Private)a.off(o,s.Private[r])},t.exports.onAll=function(e){r.bind(e),n.bind(e)}},{"../../../lib/event":30,"../eventHandler/player/index":68,"../eventHandler/video/index":78,"./eventtype":64}],64:[function(e,t,i){t.exports={Video:{TimeUpdate:"timeupdate",Play:"play",Playing:"playing",Pause:"pause",CanPlay:"canplay",Waiting:"waiting",Ended:"ended",Error:"error",Suspend:"suspend",Stalled:"stalled",LoadStart:"loadstart",DurationChange:"durationchange",LoadedData:"loadeddata",LoadedMetadata:"loadedmetadata",Progress:"progress",CanPlayThrough:"canplaythrough",ContextMenu:"contextmenu",Seeking:"seeking",Seeked:"seeked",ManualEnded:"manualended"},Player:{TimeUpdate:"timeupdate",DurationChange:"durationchange",Init:"init",Ready:"ready",Play:"play",Pause:"pause",CanPlay:"canplay",Waiting:"waiting",Ended:"ended",Error:"error",RequestFullScreen:"requestFullScreen",CancelFullScreen:"cancelFullScreen",Snapshoted:"snapshoted",Snapshoting:"snapshoting",OnM3u8Retry:"onM3u8Retry",LiveStreamStop:"liveStreamStop",AutoPlayPrevented:"autoPlayPrevented",AutoPlay:"autoplay",StartSeek:"startSeek",CompleteSeek:"completeSeek",TextTrackReady:"textTrackReady",AudioTrackReady:"audioTrackReady",AudioTrackUpdated:"audioTrackUpdated",LevelsLoaded:"levelsLoaded",AudioTrackSwitch:"audioTrackSwitch",AudioTrackSwitched:"audioTrackSwitched",LevelSwitch:"levelSwitch",LevelSwitched:"levelSwitched",MarkerDotOver:"markerDotOver",MarkerDotOut:"markerDotOut",DefaultBandWidth:"defaultbandwidth",ResolutionChange:"resolutionChange",SeiFrame:"seiFrame",RtsFallback:"rtsFallback"},Private:{Play_Btn_Show:"play_btn_show",UiH5Ready:"uiH5Ready",Error_Hide:"error_hide",Error_Show:"error_show",Info_Show:"info_show",Info_Hide:"info_hide",H5_Loading_Show:"h5_loading_show",H5_Loading_Hide:"h5_loading_hide",HideProgress:"hideProgress",CancelHideProgress:"cancelHideProgress",UpdateProgress:"updateProgress",UpdateCursorPosition:"updateCursorPosition",Click:"click",MouseOver:"mouseover",MouseOut:"mouseout",MouseEnter:"mouseenter",MouseLeave:"mouseleave",TouchStart:"touchstart",TouchMove:"touchmove",TouchEnd:"touchend",HideBar:"hideBar",ShowBar:"showBar",ControlBarClick:"controlBarClick",ReadyState:"readyState",SourceLoaded:"sourceloaded",QualityChange:"qualitychange",Play_Btn_Hide:"play_btn_hide",Cover_Hide:"cover_hide",Cover_Show:"cover_show",SeekStart:"seekStart",EndStart:"endStart",UpdateProgressBar:"updateProgressBar",LifeCycleChanged:"lifeCycleChanged",Dispose:"dispose",Created:"created",Snapshot_Hide:"snapshot_hide",AutoStreamShow:"auto_stream_show",AutoStreamHide:"auto_stream_hide",VolumnChanged:"volumnchanged",LiveShiftQueryCompleted:"liveShiftQueryCompleted",LiveShiftSwitchToLive:"LiveShiftSwitchToLive",StreamSelectorHide:"streamSelectorHide",SpeedSelectorHide:"speedSelectorHide",SettingShow:"settingShow",SettingHide:"settingHide",SelectorShow:"selectorShow",SelectorHide:"selectorHide",SettingListShow:"settingListShow",SettingListHide:"settingListHide",ThumbnailHide:"thumbnailHide",ThumbnailShow:"thumbnailShow",ThumbnailLoaded:"thumbnailLoaded",TooltipShow:"tooltipShow",TooltipHide:"tooltipHide",SelectorUpdateList:"selectorUpdateList",SelectorValueChange:"selectorValueChange",SelectorGenerateList:"selectorGenerateList",VolumeVisibilityChange:"volumeVisibilityChange",VolumeUpdatePosition:"volumeUpdatePosition",ChangeURL:"changeURL",UpdateToSettingList:"updateToSettingList",CCChanged:"CCChanged",CCStateChanged:"CCStateChanged",CCReset:"ccReset",TextTrackFounded:"textTrackFounded",UserTrackReset:"userTrackReset",PlayClick:"click",ProgressMarkerLoaded:"progressMarkerLoaded",MarkerTextShow:"markerTextShow",MarkerTextHide:"markerTextHide",PREPARE:"prepare",ProgressMarkerChanged:"progressMarkerChanged",SeiFrame:"privateSeiFrame",PlayInfoLoaded:"playInfoLoaded",Retry:"retry",PatchWaiting:"patchWaiting",VttHide:"vttHide",VttSwitchTrack:"vttSwitchTrack",VttClearTracks:"vttClearTracks",SafariDrmLevelSwitch:"safariDrmLevelSwitch"}}},{}],65:[function(e,t,i){e("../../event/eventtype");var r=e("../../../../lib/dom"),n=e("../../../../lib/ua");t.exports.handle=function(){n.IS_IOS||r.removeClass(this.el(),"prism-fullscreen")}},{"../../../../lib/dom":29,"../../../../lib/ua":44,"../../event/eventtype":64}],66:[function(e,t,i){var r=e("../../event/eventtype");t.exports.handle=function(e){var t=this;t.trigger(r.Player.CompleteSeek,e.paramData.toTime),t.one(r.Player.CanPlay,function(){t._enteredProgressMarker&&t.pause()})}},{"../../event/eventtype":64}],67:[function(e,t,i){var r=e("../../event/eventtype"),n=(e("../../../../lib/constants"),e("../../../../lang/index"),e("../../../../monitor/util"));t.exports.handle=function(e){var t=this,e=e.paramData;t.trigger(r.Private.H5_Loading_Hide),t.trigger(r.Private.Cover_Hide),t.trigger(r.Private.Play_Btn_Hide),t.trigger(r.Private.SettingListHide),t.trigger(r.Private.SelectorHide),t.trigger(r.Private.VolumeVisibilityChange,""),e=e||{},t._monitor&&(e.uuid=n.getUuid(),e.requestId=t._serverRequestId,e.cdnIp=t._monitor._userNetInfo.cdnIp,e.localIp=t._monitor._userNetInfo.localIp),t._isError=!0,t.trigger(r.Private.Error_Show,e),t.trigger(r.Private.LifeCycleChanged,{type:r.Player.Error,data:e})}},{"../../../../lang/index":21,"../../../../lib/constants":25,"../../../../monitor/util":59,"../../event/eventtype":64}],68:[function(e,t,i){var r=e("../../event/eventtype"),o=e("../../../../lib/event"),a=e("./lifecyclecommon"),n={endStart:e("./endstart"),seekStart:e("./seekstart"),requestFullScreen:e("./requestfullscreen"),cancelFullScreen:e("./cancelfullscreen"),error:e("./error"),privateSeiFrame:e("./seiframe"),patchWaiting:e("../video/waiting")},s=[r.Private.EndStart,r.Private.SeekStart,r.Player.RequestFullScreen,r.Player.CancelFullScreen,r.Player.Error,r.Player.Ready,r.Private.Dispose,r.Private.Created,r.Private.SeiFrame,r.Private.PatchWaiting];t.exports.bind=function(e){e.el();for(var t=0;t<s.length;t++){var i=s[t];"undefined"!=n[i]&&function(i,r,n){var e=i.el();o.on(e,r,function(e){var t=(n&&n.handle?n:a).handle;t.call(i,e,r)})}(e,i,n[i])}}},{"../../../../lib/event":30,"../../event/eventtype":64,"../video/waiting":83,"./cancelfullscreen":65,"./endstart":66,"./error":67,"./lifecyclecommon":69,"./requestfullscreen":70,"./seekstart":71,"./seiframe":72}],69:[function(e,t,i){var r=e("../../event/eventtype");t.exports.handle=function(e,t){this.trigger(r.Private.LifeCycleChanged,{type:t,data:e})}},{"../../event/eventtype":64}],70:[function(e,t,i){e("../../event/eventtype");var r=e("../../../../lib/dom"),n=e("../../../../lib/ua");t.exports.handle=function(){n.IS_IOS||r.addClass(this.el(),"prism-fullscreen")}},{"../../../../lib/dom":29,"../../../../lib/ua":44,"../../event/eventtype":64}],71:[function(e,t,i){var r=e("../../event/eventtype");t.exports.handle=function(e){this._seeking=!0,this.trigger(r.Player.StartSeek,e.paramData.fromTime)}},{"../../event/eventtype":64}],72:[function(e,t,i){e("../../event/eventtype");t.exports.handle=function(e){var t,i=e.paramData,r=i.pts;this._hls&&(t=i.pts,e=this._initPTS,r=parseInt((t-e)/90,10)),this._seis[r]=i.dataContent}},{"../../event/eventtype":64}],73:[function(e,t,i){var r=e("../../event/eventtype");t.exports.handle=function(e){var t=this;t._retrySwitchUrlCount=0,t._liveRetryCount=0,t._clearLiveErrorHandle();var i=(new Date).getTime()-t.readyTime;t._options.autoplay||t._options._autoplay||!t.paused()||(t.trigger(r.Private.H5_Loading_Hide),t.trigger(r.Private.Play_Btn_Show)),t.trigger(r.Player.CanPlay,{loadtime:i})}},{"../../event/eventtype":64}],74:[function(e,t,i){var r=e("../../event/eventtype"),n=e("../../../../lib/dom"),o=e("../../../../lib/ua");t.exports.handle=function(e){this._seeking=!1;var t=this.tag;"none"===t.style.display&&o.IS_IOS&&setTimeout(function(){n.css(t,"display","block")},100),this.trigger(r.Video.CanPlayThrough)}},{"../../../../lib/dom":29,"../../../../lib/ua":44,"../../event/eventtype":64}],75:[function(e,t,i){t.exports.handle=function(e,t){var i="";e&&e.paramData&&(i=e.paramData),this.trigger(t,i)}},{}],76:[function(e,t,i){var r=e("../../event/eventtype");e("../../../../lang/index");t.exports.handle=function(e){var t=this;t.waiting=!1,t._ended=!0,t._monitor&&t._monitor._onPlayerInit(),t._options.rePlay?(t.seek(0),t.tag.play()):t._options.isLive&&t.trigger(r.Private.H5_Loading_Hide),t.trigger(r.Private.Play_Btn_Show),t.trigger(r.Player.Ended)}},{"../../../../lang/index":21,"../../event/eventtype":64}],77:[function(e,t,i){var l=e("../../event/eventtype"),u=e("../../../../lib/constants"),c=e("../../../../lang/index"),d=e("../../../../lib/event"),p=e("../../../../lib/ua");t.exports.handle=function(e){var t,i,r,n,o,a,s=this;s.waiting=!1,s._clearTimeout(),s.checkOnline()&&(r="",e=(t=e.target||e.srcElement).error.message,r="",t.error.code&&(i=t.error.code,r=u.VideoErrorCode[t.error.code],e=i+" || "+e),s._options.isLive?s._options.liveRetry>s._liveRetryCount?s._reloadAndPlayForM3u8():(s._liveRetryCount=0,s.trigger(l.Player.LiveStreamStop),s._liveErrorHandle=setTimeout(function(){var e={mediaId:"ISLIVE",error_code:r,error_msg:c.get("Error_Play_Text")+"\uff0c"+c.get("Error_Retry_Text")};s.logError(e),s.trigger("error",e)}),p.IS_UC&&(s._liveErrorHandle=null)):-1<e.indexOf("NS_ERROR_DOM_MEDIA_FATAL_ERR")?(n=s.getCurrentTime(),(o=s.getDuration())-n<.5&&(s.pause(),s._ended=!0,s.tag.currentTime=o,d.trigger(s.tag,l.Video.ManualEnded))):3==i?(a={mediaId:s._options.vid||"",error_code:r,error_msg:e},s.logError(a),a.display_msg=u.VideoErrorCodeText[i],s.trigger(l.Player.Error,a)):s._reloadForVod()||(n=c.get("Error_Play_Text"),o=!1,i<3?n=u.VideoErrorCodeText[i]:s._eventState==u.SUSPEND?(n=c.get("Error_Load_Abort_Text"),r=u.ErrorCode.RequestDataError):s._eventState==u.LOAD_START?(n=c.get("Error_Network_Text"),0<s._options.source.indexOf("auth_key")&&(n=n+"\uff0c"+c.get("Error_AuthKey_Text")),r=u.ErrorCode.StartLoadData):s._eventState==u.LOADED_METADATA&&(n=c.get("Error_Play_Text"),r=u.ErrorCode.PlayingError),n=n+"\uff0c"+c.get("Error_Retry_Text"),1<s._urls.length&&s._retrySwitchUrlCount<3&&-1==s._options.source.indexOf(".mpd")&&(s.switchUrl(),o=!0),a={mediaId:s._options.vid||"",error_code:r,error_msg:e},o||(s.logError(a),a.display_msg=n,s.trigger(l.Player.Error,a))))}},{"../../../../lang/index":21,"../../../../lib/constants":25,"../../../../lib/event":30,"../../../../lib/ua":44,"../../event/eventtype":64}],78:[function(e,t,i){var n=e("../../../../lib/event"),o=e("../../event/eventtype"),r={canplay:e("./canplay"),canplaythrough:e("./canplaythrough"),common:e("./common"),ended:e("./ended"),error:e("./error"),pause:e("./pause"),play:e("./play"),playing:e("./playing"),waiting:e("./waiting"),timeupdate:e("./timeupdate"),manualended:e("./ended")};t.exports.bind=function(e){e.tag;for(var t in o.Video){var i=o.Video[t];(function(t,i,r){var e=t.tag;n.on(e,i,function(e){r.handle.call(t,e,i),i!=o.Video.Error&&(i==o.Video.ManualEnded&&(i=o.Video.Ended),t.trigger(o.Private.LifeCycleChanged,{type:i,data:e}))})})(e,i,void 0!==r[i]?r[i]:r.common)}}},{"../../../../lib/event":30,"../../event/eventtype":64,"./canplay":73,"./canplaythrough":74,"./common":75,"./ended":76,"./error":77,"./pause":79,"./play":80,"./playing":81,"./timeupdate":82,"./waiting":83}],79:[function(e,t,i){var r=e("../../event/eventtype");t.exports.handle=function(e){this._clearTimeout(),this.trigger(r.Private.AutoStreamHide),this.trigger(r.Player.Pause),this._isManualPause&&(this.trigger(r.Private.Play_Btn_Show),this.trigger(r.Private.H5_Loading_Hide)),this.waiting=!1}},{"../../event/eventtype":64}],80:[function(e,t,i){var r=e("../../event/eventtype");t.exports.handle=function(e){this.trigger(r.Private.Error_Hide),this.trigger(r.Private.Cover_Hide),this.trigger(r.Private.AutoStreamHide),this.waiting=!1,this.trigger(r.Player.Play)}},{"../../event/eventtype":64}],81:[function(e,t,i){var r=e("../../event/eventtype");t.exports.handle=function(e){var t=this;t.trigger(r.Private.H5_Loading_Hide),t.trigger(r.Private.Cover_Hide),t.trigger(r.Private.Info_Hide),t.waiting=!1,t._ended=!1,t._liveRetryCount=0,t._vodRetryCount=0,t._seeking=!1;var i=t.getCurrentTime();t._waitingReloadTime!=i&&(t._waitingTimeoutCount=0),t._checkTimeoutHandle&&(clearTimeout(t._checkTimeoutHandle),t._checkTimeoutHandle=null),t._waitingLoadedHandle&&(clearTimeout(t._waitingLoadedHandle),t._waitingLoadedHandle=null),t._waitingDelayLoadingShowHandle&&(clearTimeout(t._waitingDelayLoadingShowHandle),t._waitingDelayLoadingShowHandle=null),t._waitingTimeoutHandle&&(clearTimeout(t._waitingTimeoutHandle),t._waitingTimeoutHandle=null,t._ccService&&t._options.isLive&&(i=t._ccService.getCurrentSubtitle(),t._setDefaultCC=!0,i&&t._ccService.switch(i))),t.trigger(r.Private.AutoStreamHide),t.trigger(r.Player.Playing),t.trigger(r.Private.Error_Hide),t.tag.paused||t.trigger(r.Private.Play_Btn_Hide)}},{"../../event/eventtype":64}],82:[function(e,t,i){var d=e("../../event/eventtype"),p=e("../../../../lib/ua"),h=e("../../../../lib/event"),f=e("../../plugin/status");t.exports.handle=function(e){var i=this;i.trigger(d.Player.TimeUpdate,e.timeStamp),(p.IS_IOS||p.IS_MAC_SAFARI)&&(clearTimeout(i._waitingPatchTimer),i._waitingPatchTimer=setTimeout(function(){i.waiting||i._isError||i.paused()||(console.log("!!!!!!!manually waiting!!!!!!!"),i.pause(),i.trigger(d.Private.PatchWaiting))},3e3));e=i.getCurrentTime();i.waiting&&!i._TimeUpdateStamp&&(i._TimeUpdateStamp=e),0!=i.waiting&&i._TimeUpdateStamp==e||(i.trigger(d.Private.H5_Loading_Hide),i.trigger(d.Private.AutoStreamHide),i._checkTimeoutHandle&&clearTimeout(i._checkTimeoutHandle),i._waitingTimeoutHandle&&clearTimeout(i._waitingTimeoutHandle),i._waitingLoadedHandle&&clearTimeout(i._waitingLoadedHandle),i.waiting=!1),i._TimeUpdateStamp=e,i._options.isLive||(t=!1,(t=(r=i.getDuration())<e&&!i.paused()||r-e<.2&&0<=p.browser.version.indexOf("49.")&&!i.paused()||i.exceedPreviewTime(e)?!0:t)&&!i._ended&&(i.pause(),h.trigger(i.tag,d.Video.ManualEnded)));var t,r=i._player.tag;r&&i._options.isLive&&(i._player.resolution&&0<r.videoWidth&&0<r.videoHeight&&(0<i._player.resolution.width||0<i._player.resolution.height)&&(i._player.resolution.width!==r.videoWidth||i._player.resolution.height!==r.videoHeight)&&(t={oldResolution:{width:i._player.resolution.width,height:i._player.resolution.height},newResolution:{width:r.videoWidth,height:r.videoHeight}},i.trigger(d.Player.ResolutionChange,t)),i._player.resolution.width=0==r.videoWidth?i._player.resolution.width:r.videoWidth,i._player.resolution.height=0==r.videoHeight?i._player.resolution.height:r.videoHeight),p.IS_CHROME&&Number(p.CHROME_VERSION)<50&&(i._playingSlientPause&&(clearTimeout(i._playingSlientPause),i._playingSlientPause=null),i._playingSlientPause=setTimeout(function(){var e,t;i._status!=f.playing||i.paused()||i._drm||i._urls.length||(e=i.getCurrentTime(),t=i._options.isLive?0:e,i._loadByUrlInner(i._options.source,t,e,!0))},3e3));var n=i._seis||{},o=Object.keys(n);if(0!==o.length){var a=parseInt(1e3*e,10);if(!(l=n[a]))for(var s=0;s<250;s++){var l,u=a+s;if(l=n[u]){for(var c=0;c<o.length&&o[c]<=u;c++)delete n[o[c]];break}}l&&i.trigger(d.Player.SeiFrame,l)}}},{"../../../../lib/event":30,"../../../../lib/ua":44,"../../event/eventtype":64,"../../plugin/status":88}],83:[function(e,t,i){var o=e("../../event/eventtype"),a=e("../../../../lib/constants"),s=e("../../../../lib/event"),l=e("../../../../lang/index");e("../../../../lib/ua");t.exports.handle=function(e){var t=this;if(!t._options.isLive){var i=this.getCurrentTime(),r=this.getDuration();if(0<r&&(r-i<.5||r<i))return t.pause(),t._ended=!0,void s.trigger(this.tag,o.Video.ManualEnded)}t.waiting=!0;function n(){t._checkTimeoutHandle&&(clearTimeout(t._checkTimeoutHandle),t._checkTimeoutHandle=null),t._waitingTimeoutHandle&&(clearTimeout(t._waitingTimeoutHandle),t._waitingTimeoutHandle=null),t._waitingLoadedHandle&&(clearTimeout(t._waitingLoadedHandle),t._waitingLoadedHandle=null),t._waitingDelayLoadingShowHandle&&(clearTimeout(t._waitingDelayLoadingShowHandle),t._waitingDelayLoadingShowHandle=null)}n(),t._waitingDelayLoadingShowHandle=setTimeout(function(){t.trigger(o.Private.H5_Loading_Show)},1e3*t._options.delayLoadingShow),t._TimeUpdateStamp=null,t._checkTimeoutHandle=setTimeout(function(){t.trigger(o.Private.AutoStreamShow)},1e3*t._options.loadDataTimeout),t.trigger(o.Player.Waiting),t._waitingTimeoutHandle=setTimeout(function(){var e;t.tag&&t._options&&(t.pause(),e={mediaId:t._options.vid||"",error_code:a.ErrorCode.LoadingTimeout,error_msg:l.get("Error_Waiting_Timeout_Text")},t.logError(e),t.trigger("error",e))},1e3*t._options.waitingTimeout),t._waitingLoadedHandle=setTimeout(function(){var e=t.getCurrentTime();0==t._waitingTimeoutCount&&e!=t._waitingReloadTime&&(t._waitingTimeoutCount=1,t._waitingReloadTime=e,e=t._options.isLive?0:e,t._loadByUrlInner(t._options.source,e,!0))},t._options.waitingTimeout/2*1e3),t.on("error",function(){n()})}},{"../../../../lang/index":21,"../../../../lib/constants":25,"../../../../lib/event":30,"../../../../lib/ua":44,"../../event/eventtype":64}],84:[function(e,t,i){var r="undefined"==typeof Promise?e("es6-promise").Promise:Promise,n=e("../../ui/component"),o=e("../../lib/object"),a=e("../../lib/dom"),s=e("../../lib/event"),l=e("../../ui/exports"),u=e("../../monitor/monitor"),c=e("../../lib/ua"),d=e("../../lib/constants"),p=e("../../lib/playerutil"),h=e("./x5play"),f=e("../../lib/cookie"),g=e("../../lang/index"),y=e("../../feature/autoPlayDelay"),_=e("./event/eventmanager"),v=e("../../ui/component/cover"),m=e("../../ui/component/text-track-display"),b=e("../../ui/component/play-animation"),S=e("../../commonui/autostreamselector"),T=e("./event/eventtype"),x=e("./plugin/lifecyclemanager"),w=e("../service/export"),E=e("../../ui/component/progressmarker"),k=e("../../feature/keyboardControl"),P=e("../../feature/AntiRecord"),C=e("./eventHandler/video/index"),I=e("../../lib/vttnext/index"),e=n.extend({init:function(e,t){var i,r;this.tag=e,this.loaded=!1,this.played=!1,this.waiting=!1,this._urls=[],this._currentPlayIndex=0,this._retrySwitchUrlCount=0,this._isError=!1,this._isHls=!1,this._liveRetryCount=0,this._liveRetryTimer=null,this._vodRetryCount=0,this._seeking=!1,this._serverRequestId=0,this._waitingTimeoutCount=0,this._waitingReloadTime=0,this._created=!1,this._enteredProgressMarker=!1,this._liveShiftSeekStartTime=0,this._duration=0,this._seis={},this._initPTS=0,this.isMutiLevel=!1,this._antiRecord=null,this.__disposed=!1,this.resolution={width:0,height:0},void 0===t.skinLayout&&(t.skinLayout=p.defaultH5Layout),c.wechat()&&c.IS_ANDROID&&!p.isRts(t.source)&&(t.autoplay=!1),p.isRts(t.source)&&!t.autoplay&&(t.preload=!1),n.call(this,this,t),this.addClass("prism-player"),t.plugins&&o.each(t.plugins,function(e,t){this[e](t)},this),this._createService(),this.UI={},t.useNativeControls?this.tag.setAttribute("controls","controls"):(this.UI=l,0==t.errorDisplay&&(this.UI.errorDisplay=void 0)),this.initChildren(),this._options.trackLog&&(this._monitor=new u(this,{video_id:0,album_id:0,from:this._options.from,source:this._options.source,logBatched:this._options.logBatched},this._options.trackLog)),_.onAll(this),this._options.preventRecord&&(this._antiRecord=new P({player:this}),this._antiRecord.start()),this._lifeCycleManager=new x(this),this._overrideNativePlay(),!this._liveshiftService||this._liveshiftService.validate()?(!this._options.extraInfo||(r=this._options.extraInfo).liveRetry&&(this._options.liveRetry=r.liveRetry),this.on(T.Private.ReadyState,function(){this.trigger(T.Player.Ready)}),this._thumbnailService&&this._options.thumbnailUrl&&this._thumbnailService.get(this._options.thumbnailUrl),0<this._options.progressMarkers.length&&this.trigger(T.Private.ProgressMarkerLoaded,this._options.progressMarkers),this._options.source&&this._options._native&&this._executeReadyCallback(),this._options.autoplay||this._options.preload?this.trigger(T.Private.H5_Loading_Show):this.trigger(T.Private.Play_Btn_Show),this._extraMultiSources(),this._options.source&&(this.trigger(T.Private.PREPARE,"custom"),this._options.autoPlayDelay?(this._autoPlayDelay=new y(this),(i=this)._autoPlayDelay.handle(function(){i.initPlay()})):this.initPlay()),k.init.call(this),this._vttBroker=new I({player:this}),this._getUserTextTracks()):(r={mediaId:this._options.vid||"",error_code:d.ErrorCode.InvalidParameter,error_msg:g.get("ShiftLiveTime_Error")},this.trigger(T.Player.Error,r))}});e.prototype.isSupportMSE=function(){return p.isSupportMSE()},e.prototype.initPlay=function(e){this._initPlayBehavior(e,this._options.source)},e.prototype.initChildren=function(){var e=this.options(),t=e.skinLayout;if(!1!==t&&!o.isArray(t))throw new Error("PrismPlayer Error: skinLayout should be false or type of array!");!1!==t&&0!==t.length&&(this.options({children:t}),n.prototype.initChildren.call(this)),this.UI.cover=v,e.className="",this.addChild("cover",e),this.UI.playanimation=b,this.addChild("playanimation",e),this.UI.autoStreamSelector=S,this.addChild("autoStreamSelector",e),this.UI.progressMarker=E,this.addChild("progressMarker",e),this.UI.textTrackDisplay=m,this.addChild("textTrackDisplay",e),this.trigger(T.Private.UiH5Ready)},e.prototype.createEl=function(){var e=!1;"VIDEO"!==this.tag.tagName?(this._el=this.tag,this.tag=n.prototype.createEl.call(this,"video"),this._options.playsinline&&(this.tag.setAttribute("webkit-playsinline",""),this.tag.setAttribute("playsinline",""),this.tag.setAttribute("x-webkit-airplay",""),this.tag.setAttribute("x5-playsinline",""))):(e=!0,this._el=this.tag.parentNode);var t=this._el,i=this.tag;this._options.enableSystemMenu||(i.addEventListener?i.addEventListener("contextmenu",function(e){e.preventDefault()},!1):i.attachEvent("oncontextmenu",function(){window.event.returnValue=!1})),i.player=this;var r=a.getElementAttributes(i);return o.each(r,function(e){t.setAttribute(e,r[e])}),this.setVideoAttrs(),e||(i.parentNode&&i.parentNode.insertBefore(t,i),a.insertFirst(i,t)),t},e.prototype.setVideoAttrs=function(){var e=this._options.preload,t=this._options.autoplay;if(this.tag.style.width=this._options.videoWidth||"100%",this.tag.style.height=this._options.videoHeight||"100%",e&&this.tag.setAttribute("preload","preload"),t&&!this._isEnabledAILabel()&&"15"!==c.IOS_VERSION&&this.tag.setAttribute("autoplay","autoplay"),c.IS_IOS&&this.tag.setAttribute("poster","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAMZJREFUeAHt0DEBAAAAwqD1T20LL4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMDAc2CcpAABaODCqQAAAABJRU5ErkJggg=="),(c.IS_UC||c.dingTalk())&&this.tag.setAttribute("renderer","standard"),this._options.extraInfo)for(var i in this._options.extraInfo)this.tag.setAttribute(i,this._options.extraInfo[i]);h.adaptX5Play(this)},e.prototype.checkOnline=function(){if(!this._options||this._options.debug)return!0;if(0!=navigator.onLine)return!0;var e={mediaId:this._options.vid||"",error_code:d.ErrorCode.NetworkUnavaiable,error_msg:g.get("Error_Offline_Text")};return e.display_msg=g.get("Error_Offline_Text"),this.trigger(T.Player.Error,e),!1},e.prototype.id=function(){return this.el().id},e.prototype.renderUI=function(){},e.prototype.switchUrl=function(){var e,t;0!=this._urls.length&&(this._currentPlayIndex=this._currentPlayIndex+1,this._urls.length<=this._currentPlayIndex&&(this._currentPlayIndex=0,this._retrySwitchUrlCount++),e=this._urls[this._currentPlayIndex],f.set(d.SelectedStreamLevel,e.definition,365),this.trigger(T.Private.QualityChange,g.get("Quality_Change_Fail_Switch_Text")),t=this.getCurrentTime(),this._vodRetryCount=0,this._originalSource="",this._loadByUrlInner(e.Url,t,!0))},e.prototype.setControls=function(){var e=this.options();e.useNativeControls?this.tag.setAttribute("controls","controls"):"object"==typeof e.controls&&(e=this._initControlBar(e.controls),this.addChild(e))},e.prototype._initControlBar=function(e){return new ControlBar(this,e)},e.prototype.getMetaData=function(){var t=this,i=this.tag;t._readyStateTimer&&clearInterval(t._readyStateTimer),t._readyStateTimer=window.setInterval(function(e){t.tag?i&&0<i.readyState&&(t._duration=i.duration<1?0:i.duration,clearInterval(t._readyStateTimer),t.trigger(T.Private.ReadyState)):clearInterval(t._readyStateTimer)},100)},e.prototype.getReadyTime=function(){return this.readyTime},e.prototype.readyState=function(){return this.tag.readyState},e.prototype.getError=function(){return this.tag.error},e.prototype.getRecentOccuredEvent=function(){return this._eventState},e.prototype.getSourceUrl=function(){return this._options?this._options.source:""},e.prototype.getMonitorInfo=function(){return this._monitor?this._monitor.opt:{}},e.prototype.getCurrentQuality=function(){if(0<this._urls.length){var e=this._urls[this._currentPlayIndex];return{width:e.width,url:e.Url,definition:e.definition}}return""},e.prototype.getCurrentPDT=function(){if((c.IS_SAFARI||c.IS_IOS)&&this.tag){var e=Date.parse(this.tag.getStartDate());return isNaN(e)?0:e+1e3*this.getCurrentTime()}},e.prototype.setSpeed=function(e){this.tag&&(this._originalPlaybackRate=e,this.tag.playbackRate=e)},e.prototype.play=function(e){return this.tag&&(this.tag.ended||this._ended?this.replay():((this._options.preload||this.loaded)&&this.tag.src||this._initLoad(this._options.source),this.trigger(T.Private.Cover_Hide),this.tag.play())),this._isManualPlay=e||!1,this},e.prototype.replay=function(){return this._monitor&&this._monitor.replay(),this.seek(0),this.tag.play(),this},e.prototype.pause=function(e){return this.tag&&this.tag.pause(),this._isManualPause=e||!1,this},e.prototype.stop=function(){return this.tag.setAttribute("src",null),this},e.prototype.paused=function(){if(this.tag)return!1!==this.tag.paused},e.prototype.getDuration=function(){var e=0;return e=this.tag?this.isPreview()?this._vodDuration||this.tag.duration:this._duration&&this._duration!=1/0?this._duration:this.tag.duration:e},e.prototype.getDisplayDuration=function(){var e=0;return e=this.tag?this._vodDuration||this.getDuration():e},e.prototype.getCurrentTime=function(){return this.tag?this.tag.currentTime:0},e.prototype.seek=function(e){this._seeking=!0;var t=this.tag.duration;t<=(e=Math.floor(e))&&(e=t);var i=this._originalPlaybackRate||this.tag.playbackRate;try{var r=this;this.tag.currentTime=e,setTimeout(function(){r.tag&&(r.tag.playbackRate=i)})}catch(e){console.log(e)}return this},e.prototype.firstNewUrlloadByUrl=function(e,t){this._clearTimeout(),this._options.vid=0,this._options.source=e,this._monitor&&this._monitor.updateVideoInfo({video_id:0,album_id:0,source:e,from:this._options.from}),this.trigger(T.Private.ChangeURL),this.initPlay(),this._options.autoplay&&this.trigger(T.Private.Cover_Hide),this._options.autoplay?this.trigger(T.Player.Play):this.trigger(T.Player.Pause),!(t=t||0)&&0!=t||isNaN(t)||this.seek(t)},e.prototype._loadByUrlInner=function(e,t,i,r){var n=this,o=this.tag.volume;if(r&&c.IS_ANDROID_FIREFOX){for(var a in T.Video)s.off(this.tag,T.Video[a]);this.tag.remove(),this.tag=this._el,this.createEl()}this.loadByUrl(e,t,i,!0),this.tag.volume=o,r&&c.IS_ANDROID_FIREFOX&&this.tag.addEventListener(T.Video.LoadedData,function e(){n._player.trigger(T.Player.DurationChange),C.bind(n),n.tag.removeEventListener(T.Video.LoadedData,e)})},e.prototype.loadByUrl=function(e,i,t,r){var n=this,o=/\.m3u8|\.flv|\.mp4|artc\:\/\/|rtmp\:\/\//gi;if(((this._options.source||"").match(o)||[])[0]!==((e||"").match(o)||[])[0]&&window.Aliplayer)return this._options.source=e,void window.Aliplayer.reloadInstance(this._options,function(){},this);r||(this._urls=[]),this._monitor&&!r&&this._monitor.reset(),this._isError=!1,this._duration=0,this._clearTimeout(),this.trigger(T.Private.Error_Hide),this._options.source=e,this._monitor&&this._monitor.updateVideoInfo({video_id:0,album_id:0,source:e,from:this._options.from}),r||(this.trigger(T.Private.ChangeURL),this._vodRetryCount=0),this._options._autoplay=t,this.initPlay(t),(this._options.autoplay||t)&&this.trigger(T.Private.Cover_Hide),this._options.autoplay||t?this.trigger(T.Player.Play):this.trigger(T.Player.Pause),this._options.isLive||!i&&0!=i||isNaN(i)||s.one(this.tag,T.Video.CanPlay,function(e){var t=n.getDuration();n.seek(t<=i?t:i)})},e.prototype.dispose=function(){this.__disposed=!0,this.trigger(T.Private.Dispose),this.tag.pause(),_.offAll(this),k.dispose.call(this),this._antiRecord&&(this._antiRecord.dispose(),this._antiRecord=null),this._monitor&&(this._monitor.removeEvent(),this._monitor=null),this._autoPlayDelay&&this._autoPlayDelay.dispose(),this._checkTimeoutHandle&&(clearTimeout(this._checkTimeoutHandle),this._checkTimeoutHandle=null),this._waitingTimeoutHandle&&(clearTimeout(this._waitingTimeoutHandle),this._waitingTimeoutHandle=null),this._playingSlientPause&&(clearTimeout(this._playingSlientPause),this._playingSlientPause=null),this._waitingLoadedHandle&&(clearTimeout(this._waitingLoadedHandle),this._waitingLoadedHandle=null),this._readyStateTimer&&(clearInterval(this._readyStateTimer),this._readyStateTimer=null),this._vodRetryCountHandle&&(clearTimeout(this._vodRetryCountHandle),this._vodRetryCountHandle=null),this._waitingDelayLoadingShowHandle&&(clearTimeout(this._waitingDelayLoadingShowHandle),this._waitingDelayLoadingShowHandle=null),this._liveRetryTimer&&(clearTimeout(this._liveRetryTimer),this._liveRetryTimer=null),this._disposeService(),this._clearLiveErrorHandle(),this._el.innerHTML="",this.destroy(),this._releaseMediaElement(),this._options.recreatePlayer=null,this._options=null,this.isMutiLevel=!1,this._seis={},this._initPTS=0},e.prototype._releaseMediaElement=function(){this.tag.removeAttribute("src"),this.tag.load(),this.tag=null},e.prototype.mute=function(){this._muteInner(),this._originalVolumn=this.tag.volume;var e=g.get("Volume_Mute");return this._player.trigger(T.Private.Info_Show,{text:e,duration:1e3,align:"lb"}),this._setInnerVolume(0),this},e.prototype._muteInner=function(){this.tag.muted=!0,this.trigger(T.Private.VolumnChanged,-1)},e.prototype.unMute=function(){this._unMuteInner();var e=g.get("Volume_UnMute");return this._player.trigger(T.Private.Info_Show,{text:e,duration:1e3,align:"lb"}),this._setInnerVolume(this._originalVolumn||.5),this},e.prototype._unMuteInner=function(){this.tag.muted=!1,this.trigger(T.Private.VolumnChanged,-2)},e.prototype.muted=function(){return this.tag.muted},e.prototype.getVolume=function(){return this.tag.volume},e.prototype.getOptions=function(){return this._options},e.prototype.setVolume=function(e,t){0!=e?this._unMuteInner():0==e&&this._muteInner(),this._setInnerVolume(e);e=g.get("Curent_Volume")+"<span>"+(100*e).toFixed()+"%</span>";this._player.trigger(T.Private.Info_Show,{text:e,duration:1e3,align:"lb"})},e.prototype._setInnerVolume=function(e){this.tag.volume=e,this.trigger(T.Private.VolumnChanged,e)},e.prototype.hideProgress=function(){this.trigger(T.Private.HideProgress)},e.prototype.cancelHideProgress=function(){this.trigger(T.Private.CancelHideProgress)},e.prototype.setPlayerSize=function(e,t){this._el&&(this._el.style.width=e,this._el.style.height=t)},e.prototype.getBuffered=function(){return this.tag.buffered},e.prototype.setRotate=function(e){this.tag&&(this._rotate=e,this._setTransform(),this.log("ROTATE",{rotation:e}))},e.prototype.getRotate=function(e){return void 0===this._rotate?0:this._rotate},e.prototype.setImage=function(e){this.tag&&(this._image=e,this._setTransform(),this.log("IMAGE",{mirror:"horizon"==e?2:1,text:e}))},e.prototype.getImage=function(){return this._image},e.prototype.cancelImage=function(){this.tag&&(this._image="",this._setTransform(),this.log("IMAGE",{mirror:0}))},e.prototype.setCover=function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&e&&(t.style.backgroundImage="url("+e+")",this._options.cover=e,this.trigger(T.Private.Cover_Show))},e.prototype.setTextTracks=function(e){e=p.unqiueTextTracks(e||[]),this.trigger(T.Private.VttClearTracks),e&&e.length&&this.trigger(T.Private.TextTrackFounded,{from:"user",textTracks:e}),this.trigger(T.Private.CCReset)},e.prototype._setTransform=function(){this._transformProp||(this._transformProp=a.getTransformName(this.tag));var e=" translate(-50%, -50%)";this._rotate&&(e+=" rotate("+this._rotate+"deg)"),this._image&&("vertical"==this._image?e+=" scaleY(-1)":"horizon"==this._image&&(e+=" scaleX(-1)")),this.tag.style[this._transformProp]=e},e.prototype._startPlay=function(){this.tag.paused&&this.tag.play()},e.prototype._initPlayBehavior=function(e,t){if(this._checkSupportVideoType())return!1;if(p.validateSource(t))return void 0===e&&(e=!1),this._created||(this._created=!0,this.trigger(T.Private.Created)),this.loaded||this.trigger(T.Player.Init),this._options.autoplay||this._options._autoplay||this._options.preload||e?(this._options._preload=!0,this._initLoad(t),(this._options.autoplay||this._options._autoplay)&&this._startPlay()):this.trigger(T.Private.Play_Btn_Show),!0;t={mediaId:this._options.vid||"",error_code:d.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"};return t.display_msg=g.get("Error_Invalidate_Source"),this.trigger(T.Player.Error,t),!1},e.prototype._isPreload=function(){return this._options.autoplay||this._options.preload||this._options._preload},e.prototype._initLoad=function(e){this.getMetaData(),e&&(this._isPreload()&&!c.IS_MOBILE?this.trigger(T.Private.H5_Loading_Show):(this.trigger(T.Private.H5_Loading_Hide),this.trigger(T.Private.Play_Btn_Show)),this.tag.setAttribute("src",e),this.loaded=!0)},e.prototype._clearLiveErrorHandle=function(){this._liveErrorHandle&&(clearTimeout(this._liveErrorHandle),this._liveErrorHandle=null)},e.prototype._reloadAndPlayForM3u8=function(){0==this._liveRetryCount&&this.trigger(T.Player.OnM3u8Retry);var e=this._options,e=e.liveRetryInterval+e.liveRetryStep*this._liveRetryCount,t=this;this._liveRetryTimer&&(clearTimeout(this._liveRetryTimer),this._liveRetryTimer=null),this._liveRetryTimer=setTimeout(function(){t._liveRetryCount++,t.tag.load(t._options.source),t.tag.play()},1e3*e)},e.prototype._checkSupportVideoType=function(){if(!this.tag.canPlayType||!this._options.source||!c.IS_MOBILE)return"";var e=this._options.source,t="";return 0<e.indexOf("m3u8")?""!=this.tag.canPlayType("application/x-mpegURL")||p.isSupportHls()||(t=g.get("Error_Not_Support_M3U8_Text")):0<e.indexOf("mp4")?""==this.tag.canPlayType("video/mp4")&&(t=g.get("Error_Not_Support_MP4_Text")):(p.isRTMP(e)||p.isFlv(e))&&c.IS_MOBILE&&(t=g.get("Error_Not_Support_Format_On_Mobile")),t&&(e={mediaId:this._options.vid||"",error_code:d.ErrorCode.FormatNotSupport,error_msg:t},this.logError(e),e.display_msg=t,this.trigger(T.Player.Error,e)),t},e.prototype.getComponent=function(e){return this._lifeCycleManager.getComponent(e)},e.prototype.logError=function(e,t){(e=e||{}).vt=this.getCurrentTime(),this.log(t?"ERRORRETRY":"ERROR",e)},e.prototype.log=function(e,t){var i=0,r=0;if(this._monitor)return this._options&&(i=this._options.vid||"0",r=this._options.from||"0"),this._monitor.updateVideoInfo({video_id:i,album_id:0,source:this._options.source,from:r}),this._monitor._log(e,t)},e.prototype.setSanpshotProperties=function(e,t,i){if(this._snapshotMatric||(this._snapshotMatric={}),this._snapshotMatric.width=e,this._snapshotMatric.height=t,1<i)throw new Error("rate doesn't allow more than 1");this._snapshotMatric.rate=i},e.prototype.getStatus=function(){return this._status||"init"},e.prototype.enterProgressMarker=function(){this._enteredProgressMarker=!0},e.prototype.isInProgressMarker=function(){return this._enteredProgressMarker},e.prototype.exitProgressMarker=function(){this._enteredProgressMarker=!1},e.prototype.setProgressMarkers=function(e){this.trigger(T.Private.ProgressMarkerChanged,e=e||[])},e.prototype.getProgressMarkers=function(){return this._progressMarkerService?this._progressMarkerService.progressMarkers:[]},e.prototype.setPreviewTime=function(e){this._options.playConfig||(this._options.playConfig={}),this._options.playConfig.PreviewTime=e},e.prototype.getPreviewTime=function(){var e=0;return e=this._options.playConfig?this._options.playConfig.PreviewTime:e},e.prototype.exceedPreviewTime=function(e){return this.isPreview()&&e>=this._options.playConfig.PreviewTime},e.prototype.isPreview=function(){var e=this._options.playConfig.PreviewTime,t=this._vodDuration||this.tag.duration;return 0<e&&e<t},e.prototype.getStats=function(){return new r(function(e){e()})},e.prototype.setTraceId=function(e){this._monitor&&this._monitor.updateTraceId(e)},e.prototype._getSanpshotMatric=function(){return this._snapshotMatric||(this._snapshotMatric={}),this._snapshotMatric},e.prototype._overrideNativePlay=function(){var i=this.tag.play,r=this;this.tag.play=function(){if(!r._options.source){var e={mediaId:r._options.vid||"",error_code:d.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"};return r._options.vid?e.display_msg=g.get("Error_Vid_Empty_Source"):r._options.mediaAuth?e.display_msg=g.get("Error_Mediaauth_Empty_Source"):e.display_msg=g.get("Error_Empty_Source"),void r.trigger(T.Player.Error,e)}r.readyTime=(new Date).getTime();e=i.apply(r.tag);void 0!==e&&e.then(function(){r.trigger(T.Player.AutoPlay,!0)}).catch(function(e){!r.tag||!r.tag.paused||r._isError||r._options._autoplay||r._switchedLevel||(r.trigger(T.Private.Play_Btn_Show),r.trigger(T.Private.H5_Loading_Hide),r.trigger(T.Player.AutoPlayPrevented),r.trigger(T.Player.AutoPlay,!1),r._options.cover&&r.trigger(T.Private.Cover_Show))});var t=r._originalPlaybackRate||r.tag.playbackRate;setTimeout(function(){r.tag&&(r.tag.playbackRate=t)})}},e.prototype._extraMultiSources=function(){var e=this._options.source;if(e&&-1<e.indexOf("{")&&-1<e.indexOf("}")){var t="";try{t=JSON.parse(e)}catch(e){console.error(e),console.error("\u5730\u5740json\u4e32\u683c\u5f0f\u4e0d\u5bf9")}var i,r=[];for(i in t){var n=d.QualityLevels[i];r.push({definition:i,Url:t[i],desc:n||i})}0<r.length&&(this._currentPlayIndex=p.findSelectedStreamLevel(r),e=r[this._currentPlayIndex],this._urls=r,this._options.source=e.Url,this.trigger(T.Private.SourceLoaded,e))}},e.prototype._isEnabledAILabel=function(){return this._options.ai&&this._options.ai.label},e.prototype._createService=function(){if(w)for(var e=w.length,t=0;t<e;t++){var i=w[t],r=i.condition;void 0===r?r=!0:"function"==typeof r&&(r=r.call(this)),r&&(this[i.name]=new i.service(this))}},e.prototype._disposeService=function(){if(w)for(var e=w.length,t=0;t<e;t++){var i=this[w[t].name];void 0!==i&&i.dispose&&i.dispose()}},e.prototype._executeReadyCallback=function(){this._options._readyCallbackCalled=!0;try{this._options.autoplay||this._options.preload||(this.trigger(T.Private.H5_Loading_Hide),this.trigger(T.Private.Play_Btn_Show)),this._options.readyCallback(this)}catch(e){console.log(e)}},e.prototype._clearTimeout=function(){this._checkTimeoutHandle&&(clearTimeout(this._checkTimeoutHandle),this._checkTimeoutHandle=null),this._waitingTimeoutHandle&&(clearTimeout(this._waitingTimeoutHandle),this._waitingTimeoutHandle=null),this._clearLiveErrorHandle()},e.prototype._reloadForVod=function(){if(this._originalSource||(this._originalSource=this._options.source),this._vodRetryCount<this._options.vodRetry&&navigator.onLine){var e=this.getCurrentTime(),t=this._originalSource;t.indexOf("auth_key=")<0&&(t=t&&0<t.indexOf("?")?t+"&_t="+(new Date).valueOf():t+"?_t="+(new Date).valueOf()),this._vodRetryCountHandle&&clearTimeout(this._vodRetryCountHandle);var i=this;return this._vodRetryCountHandle=setTimeout(function(){i._loadByUrlInner(t,e,!0)},100*this._vodRetryCount),this._vodRetryCount=this._vodRetryCount+1,!0}return!1},e.prototype._getUserTextTracks=function(){var e=this._options.textTracks||[];(e=p.unqiueTextTracks(e)).length&&this.trigger(T.Private.TextTrackFounded,{from:"user",textTracks:e})},t.exports=e},{"../../commonui/autostreamselector":10,"../../feature/AntiRecord":15,"../../feature/autoPlayDelay":16,"../../feature/keyboardControl":17,"../../lang/index":21,"../../lib/constants":25,"../../lib/cookie":26,"../../lib/dom":29,"../../lib/event":30,"../../lib/object":38,"../../lib/playerutil":41,"../../lib/ua":44,"../../lib/vttnext/index":50,"../../monitor/monitor":58,"../../ui/component":121,"../../ui/component/cover":125,"../../ui/component/play-animation":131,"../../ui/component/progressmarker":134,"../../ui/component/text-track-display":145,"../../ui/exports":152,"../service/export":113,"./event/eventmanager":63,"./event/eventtype":64,"./eventHandler/video/index":78,"./plugin/lifecyclemanager":87,"./x5play":89,"es6-promise":7}],85:[function(e,t,i){e=e("../../../lib/oo").extend({});t.exports=e},{"../../../lib/oo":39}],86:[function(e,t,i){t.exports={createEl:"createEl",created:"created",ready:"ready",loading:"loading",play:"play",pause:"pause",playing:"playing",waiting:"waiting",timeUpdate:"timeupdate",error:"error",ended:"ended",dispose:"dispose",markerDotOver:"markerDotOver",markerDotOut:"markerDotOut"}},{}],87:[function(e,t,i){var a=e("../../../lib/object"),l=e("../event/eventtype"),u=e("./lifecycle"),r=e("./status"),e=function(r){(this._player=r)._status="init",this.components=[];var e=r.getOptions().components;if(e&&a.isArray(e)&&0<e.length)for(var t=0;t<e.length;t++){var i=e[t];if(!i)return void console.log("The "+t+" custome component is "+i);if(constr=void 0===i.type?i:i.type,args=void 0===i.args?[]:i.args,name=void 0===i.name?"":i.name,!constr)return void console.log(name+" compenent is "+constr);args=args&&0<args.length?[].concat.call([constr],args):[];var n=new(Function.prototype.bind.apply(constr,args)),i=n[u.createEl];i&&"function"==typeof i&&i.call(n,r.el(),r),this.components.push({name:name,obj:n})}var o=this;r.on(l.Private.LifeCycleChanged,function(e){var t=e.paramData,i=t.type,t=t.data;i===l.Video.CanPlayThrough&&o._player.trigger(l.Player.TimeUpdate,t.target.currentTime),i===l.Video.Ended&&o._player.trigger(l.Player.TimeUpdate,o._player.getDuration()),0!=o.components.length&&s.call(o,r,e)})};e.prototype.getComponent=function(e){var t=null,i=this.components.length;if(e)for(var r=0;r<i;r++)if(this.components[r].name==e){t=this.components[r].obj;break}return t};var s=function(e,t){if(t){var t=t.paramData,i=t.type,r=t.data;(t=i)!=l.Video.LoadStart&&t!=l.Video.LoadedData&&t!=l.Video.LoadedMetadata||(i=u.loading),c(e,i);for(var n=this.components.length,o=0;o<n;o++){var a=this.components[o].obj,s=a[i];s&&"function"==typeof s&&s.call(a,e,r)}i==l.Private.Dispose&&(this.components=[])}},c=function(e,t){void 0!==r[t]&&(t!=r.pause||e._status!=r.error&&e._status!=r.ended)&&(t==r.ready&&e._status==r.playing||(e._status=t))};t.exports=e},{"../../../lib/object":38,"../event/eventtype":64,"./lifecycle":86,"./status":88}],88:[function(e,t,i){t.exports={init:"init",ready:"ready",loading:"loading",play:"play",pause:"pause",playing:"playing",waiting:"waiting",error:"error",ended:"ended"}},{}],89:[function(e,t,i){function r(e,t){var i=e.el().style.height,r=e.el().style.width;e.originalLayout={container:{height:i,width:r},video:{width:e.tag.style.width,height:e.tag.style.height}};var n=document.body.clientHeight*(window.devicePixelRatio||1)+"px",o=document.body.clientWidth+"px";width=t?(height=n,o):(height=i.indexOf("%")?i:i+"px",r.indexOf("%")?r:r+"px"),e.tag.style.width=o,e.tag.style.height=n,e.el().style.height=t?n:height}var n=e("../../lib/ua"),o=e("../../lib/dom");t.exports.isAndroidX5=function(){return n.os.android&&n.is_X5||n.dingTalk()},t.exports.adaptX5Play=function(i){n.os.android&&n.is_X5&&("h5"==i._options.x5_type&&(i.tag.setAttribute("x5-video-player-type",i._options.x5_type),window.onresize=function(){var e,t;r(i,i._options.x5_fullscreen||"center"==i._options.x5_video_position),"landscape"==(e=i)._x5VideoOrientation&&(e._originalTagWidth=e.tag.style.width,e._originalTagHeight=e.tag.style.height,(t=document.querySelector("#"+e.id()+" .prism-controlbar"))&&parseFloat(t.offsetHeight),e.tag.style.height="100%",e.tag.style.width=window.screen.width+"px")},i.tag.addEventListener("x5videoenterfullscreen",function(){r(i,i._options.x5_fullscreen||"center"==i._options.x5_video_position),i.trigger("x5requestFullScreen")}),i.tag.addEventListener("x5videoexitfullscreen",function(){var e,t;(e=i).originalLayout&&(t=e.originalLayout,e.el().style.height=t.container.height,e.el().style.width=t.container.width,e.tag.style.width=t.video.width,e.tag.style.height=t.video.height),i.trigger("x5cancelFullScreen"),i.fullscreenService.getIsFullScreen()&&i.fullscreenService.cancelFullScreen()}),i.on("requestFullScreen",function(){"top"==i._options.x5_video_position&&o.removeClass(i.tag,"x5-top-left"),n.os.android&&n.is_X5&&i._options.x5LandscapeAsFullScreen&&(i.tag.setAttribute("x5-video-orientation","landscape"),i._x5VideoOrientation="landscape")}),i.on("cancelFullScreen",function(){"top"==i._options.x5_video_position&&o.addClass(i.tag,"x5-top-left"),n.os.android&&n.is_X5&&i._options.x5LandscapeAsFullScreen&&(i.tag.setAttribute("x5-video-orientation","portrait"),r(i,i._options.x5_fullscreen||"center"==i._options.x5_video_position),i._x5VideoOrientation="portrait")})),void 0!==i._options.x5_fullscreen&&i._options.x5_fullscreen&&(i.tag.setAttribute("x5-video-player-fullscreen",i._options.x5_fullscreen),o.addClass(i.tag,"x5-full-screen")),"top"==i._options.x5_video_position&&o.addClass(i.tag,"x5-top-left"),void 0!==i._options.x5_orientation&&i.tag.setAttribute("x5-video-orientation",i._options.x5_orientation))}},{"../../lib/dom":29,"../../lib/ua":44}],90:[function(e,t,i){var f=e("../../lib/io"),g=e("../../config"),y=e("../../lib/constants"),_=e("../../lib/util"),v=e("../../lib/playerutil"),m=(e("../../lib/dom"),e("../../lang/index")),b=e("../base/event/eventtype"),S=e("../saas/drm"),T=e("../../lib/ua"),x=function(){function e(){}var t=e.prototype;return t.destroy=function(){},t.append=function(e){},t.remove=function(e,t){},t.isTextVisible=function(){},t.setTextVisibility=function(e){},e}();t.exports.inject=function(e,t,i,r,o,n,a){var s,l=r.source;function u(r){var n=this;this._drm.load(this._options.source,r.startTime).then(function(){if(n.trigger(b.Private.H5_Loading_Hide),r.continuePlay&&(n.play(),r.prevVariant&&0!==r.prevVariant)){for(var e,t=n._drm.getVariantTracks(),i=0;i<t.length;i++)if(t[i].id===r.prevVariant){e=t[i];break}e&&n._drm.selectVariantTrack(e,!0)}}).catch(function(e){d.call(n,e)})}function c(){var e=y.ErrorCode.DrmNotSupported,t=m.get("Error_Drm_Not_Supported"),t={mediaId:this._options.vid||"",error_code:e,error_msg:t};this.logError(t),this.trigger(b.Player.Error,t)}function d(e){var t=y.ErrorCode.DrmLoadError,i=m.get("Error_Drm_Load"),e={mediaId:this._options.vid||"",error_code:t,error_msg:i+"("+e.code+")"};this.logError(e),this.trigger(b.Player.Error,e)}function p(){this._sessionTimer&&(clearTimeout(this._sessionTimer),this._sessionTimer=null)}function h(e,t){t=t.getVariantTracks().find(function(e){return e.active});console.log("activeTrack",t),e.trigger(b.Private.QualityChange,{levelSwitch:!0,bitrate:t.bandwidth,desc:t.height})}!n&&(n=l,e._drm||!v.isDash(n)&&!v.isHls(n))||(e._isDrm=!0,e._drm=null,e._isLoadedDrm=!1,e._sessionTimer=null,e._isFairPlay=T.IS_MAC_SAFARI||T.IS_IOS,e._fairPlayHandlers={},console.log("use FairPlay",e._isFairPlay),t.prototype._checkDrmReady=function(){if(null==e._drm&&!e._isFairPlay)throw new Error("please invoke this method after ready event")},t.prototype.play=function(e){this._checkDrmReady(),this._isManualPlay=e||!1;return this.trigger(b.Private.Cover_Hide),this.tag.ended?this.replay():(this.getCurrentTime(),this.tag.paused&&this.tag.play()),this},t.prototype.initPlay=function(e){if(_.contentProtocolMixed(l)){var t={mediaId:this._options.vid||"",error_code:y.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"};return t.display_msg=m.get("Request_Block_Text"),void this.trigger(b.Player.Error,t)}if(this._waitingTimeoutCount=1,this._isFairPlay)return this.trigger(b.Private.H5_Loading_Show),void function(e,t){var i;this._isFairPlay&&(!function(){if(T.IS_IOS){var e=parseInt(T.os.version);return console.log("osVersion",e),12<=e}if(T.IS_MAC_SAFARI){e=parseInt(T.browser.version);return console.log("browserVersion",e),12<=e}return!1}()?c.call(this):((i=this).destroy(),S.loadCertificate(this,function(){e&&e(),i._initPlayBehavior(t,i._options.source),i._executeReadyCallback()})))}.call(this,o,e);function i(n,t){var i,r;if(n._antiRecord&&(console.log("Manual check before load source"),n._antiRecord.check()))return;shaka.Player.isBrowserSupported()&&!function(){if(T.IS_ANDROID&&(T.IS_UC||T.IS_FIREFOX))return!0}()?(i=!n._drm,r=function(){var e;n._drm=new shaka.Player(n.tag),s(n,n._drm),e=n._options.isLive?"https://"+v.getLiveHostByRegion(n._options.region):"https://vod."+n._options.region+".aliyuncs.com",n._drm.configure({drm:{servers:{"com.widevine.alpha":e,"com.microsoft.playready":e}},textDisplayFactory:function(){return new x}}),n._drm.getNetworkingEngine().registerRequestFilter(function(e,t){shaka.util.StringUtils;var i=shaka.util.Uint8ArrayUtils;e==shaka.net.NetworkingEngine.RequestType.LICENSE&&(i=i.toBase64(new Uint8Array(t.body)),i=n._options.isLive?S.getRequestUrl(i,n):S.postData(i,n),t.uris[0]=i.url,t.headers["content-type"]="application/x-www-form-urlencoded",t.body=i.data)}),n._drm.getNetworkingEngine().registerResponseFilter(function(e,t){var i=shaka.util.StringUtils,r=shaka.util.Uint8ArrayUtils;e==shaka.net.NetworkingEngine.RequestType.LICENSE&&(i=i.fromUTF8(t.data),i=JSON.parse(i),i=n._options.isLive?i.Response.B64License:JSON.parse(i.License).b64License,t.data=r.fromBase64(i))}),n._drm.addEventListener("error",function(e){console.log("errorMessage"),console.log(e.detail.code),console.log(e.detail)}),n._drm.load(n._options.source).then(function(){n._initPlayBehavior(t)}).catch(function(e){d.call(n,e)}),p.call(n),n._sessionTimer=setTimeout(function(){d.call(n,{code:"session timeout"}),n._drm&&n._drm.destroy()},n._player.getOptions().drmSessionTimeout||5e3),o&&o(n._drm),i&&n._executeReadyCallback()},n.destroy(function(e){try{r()}catch(e){console.log(e)}})):c.call(n)}this._isLoadedDrm&&"undefined"!=typeof shaka?i(this,e):(this.trigger(b.Private.H5_Loading_Show),function(e){var t="aliplayer-drm-min.js",i="",i=g.domain?"https://"+g.domain+"/de/prismplayer/"+g.h5Version+"/drm/"+t:"/build/drm/"+t,r=this;f.loadJS(i,function(){shaka.polyfill.installAll(),e.apply(r)})}.call(this,function(){this._isLoadedDrm=!0,i(this,e)}))},t.prototype.destroy=function(e){var t;this._drm?(p.call(t=this),this._drm.destroy().then(function(){t._drm=null,"function"==typeof e&&e(t)})):(this._isFairPlay&&this._destroyFairPlay(),"function"==typeof e&&e(this))},t.prototype._destroyFairPlay=function(){S.destroyFairPlay.call(this)},t.prototype.dispose=function(){i.dispose.call(this),this.destroy()},t.prototype._switchLevel=function(e,t){if(t=t||{},this.trigger(b.Player.LevelSwitch),this._switchedLevel=!0,this._isFairPlay){this._manuallySwitchDrmLevel=!t.isAuto;var i=this.autoplay||"pause"!=this._status;this._loadByUrlInner(e,this.getCurrentTime(),i,!0)}else if(t.isAuto)this._drm.configure({abr:{enabled:!0}}),h(this._player,this._drm);else{for(var r,n=this._drm.getVariantTracks(),o=0;o<n.length;o++){var a=n[o];if(Number(a.bandwidth)===Number(t.bitrate)&&Number(a.height)===Number(t.resolution.split("x")[1])){r=a;break}}console.log("find track",r),this._drm.configure({abr:{enabled:!1}}),this._drm.selectVariantTrack(r,!this._options.seamlessHandover)}var s=this;setTimeout(function(){s.trigger(b.Player.LevelSwitched),this._switchedLevel=!1},1e3)},t.prototype._getDRMEncryptItem=function(){var e=this._urls;if(e&&0<e.length){for(var t=e.length,i=0;i<t;i++){var r=e[i];if(r.Url==this._options.source&&+r.encryption)return r}return""}return""},t.prototype._getItemBySource=function(){var e=this._urls;if(e&&0<e.length){for(var t=e.length,i=0;i<t;i++){var r=e[i];if(r.Url==this._options.source)return r}return""}return""},s=function(i,r){r.addEventListener("error",function(e){(function(t,i){var r="Error code:"+i.code+"message:"+i.message;console.log(r);var n=y.ErrorCode.OtherError,r=m.get("Error_Play_Text");i.code!=shaka.util.Error.Code.EXPIRED?(i.code==shaka.util.Error.Code.HTTP_ERROR?(n=y.ErrorCode.NetworkError,r=m.get("Http_Error")):i.code==shaka.util.Error.Code.TIMEOUT?(n=y.ErrorCode.LoadingTimeout,r=m.get("Error_Waiting_Timeout_Text")):i.code==shaka.util.Error.Code.LICENSE_REQUEST_FAILED?(n=y.ErrorCode.DrmLicenseRequestFailed,r=m.get("Error_Drm_License_Request_Failed")):i.Category==shaka.util.Error.NETWORK&&(n=y.ErrorCode.NetworkError,r=m.get("Error_Network_Text")),function(){var e;setTimeout(function(){t.trigger(b.Private.Play_Btn_Hide)}),t.checkOnline()&&(e={mediaId:t._options.vid||"",error_code:n,error_msg:i.message},t.logError(e),e.display_msg=i.code+"|"+r,t.trigger(b.Player.Error,e))}()):function(){var t=this;this.trigger(b.Private.H5_Loading_Show);var e=null;this._options.isLive||(e=this.getCurrentTime());var i,r=!this.paused(),n=this._drm.getConfiguration().abr.enabled;if(!n)for(var o=this._drm.getVariantTracks(),a=0;a<o.length;a++)if(o[a].active){i=o[a].id;break}var s={startTime:e,continuePlay:r,prevVariant:i,isAdaptive:n};"function"==typeof this._options.refreshAccessInfo?this._options.refreshAccessInfo().then(function(e){(e=e||{}).accessKeyId&&(t._options.accessKeyId=e.accessKeyId),e.securityToken&&(t._options.securityToken=e.securityToken),e.accessKeySecret&&(t._options.accessKeySecret=e.accessKeySecret),u.call(t,s)}):u.call(t,s)}.call(t)})(i,e.detail)}),r.addEventListener("variantchanged",function(e){console.log("DRM Event: variantchanged",e)}),r.addEventListener("abrstatuschanged",function(e){console.log("DRM Event: abrstatuschanged",e)}),r.addEventListener("drmsessionupdate",function(e){console.log("DRM Event: drmsessionupdate",e),p.call(i)}),r.addEventListener("expirationupdated",function(e){console.log("DRM Event: expirationupdated",e),console.log("Exp:",this.getExpiration())}),r.addEventListener("adaptation",function(e){console.log("adaptation",e),h(i,r)}),r.addEventListener("trackschanged",function(e){console.log("DRM EVENT: trackschanged",r.getTextLanguages(),r.getTextTracks());var t=r.getTextLanguages();t&&t.length&&(t=function(e){var t={subtitle:"subtitles",caption:"captions"};console.log("Building track config");var i=e.getManifest().textStreams||[];console.log("textStreams",i);var r=e.getTextLanguages();console.log("languageList",r);var n=[];try{i.forEach(function(e){r.includes(e.language)&&n.push({kind:t[e.kind]||e.kind,label:e.label,srclang:e.language,src:Array.from(e.segmentIndex)[0].getUris()[0]})})}catch(e){console.log("error in retrieving text track url: ",e)}return n}(r),i.trigger(b.Private.TextTrackFounded,{from:"drm",textTracks:t}),i.trigger(b.Private.CCReset))})})}},{"../../config":13,"../../lang/index":21,"../../lib/constants":25,"../../lib/dom":29,"../../lib/io":36,"../../lib/playerutil":41,"../../lib/ua":44,"../../lib/util":46,"../base/event/eventtype":64,"../saas/drm":100}],91:[function(e,t,i){var r=e("../base/player"),n=e("./drminjector"),o=r.extend({init:function(e,t){n.inject(this,o,r.prototype,t,function(e){}),t._native=!1,r.call(this,e,t)}});t.exports=o},{"../base/player":84,"./drminjector":90}],92:[function(e,t,i){var r=e("../../ui/component"),n=e("../../lib/data"),o=e("../../lib/ua"),a=e("../../lib/constants"),s=e("../../lib/dom"),l=e("../../lib/object"),u=e("../../config"),c=e("../../lang/index"),d=e("../../lib/playerutil"),p=e("../../lib/util"),h=e("../../ui/component/info-display"),f=e("../../ui/component/error-display"),g=e("../../feature/autoPlayDelay"),y=e("../../commonui/autostreamselector"),_=e("../base/event/eventtype"),v=e("../saas/ststoken"),e=r.extend({init:function(e,t){var i;void 0===t.skinLayout&&(t.skinLayout=d.defaultFlashLayout),r.call(this,this,t),this._id="prism-player-"+n.guid(),this.tag=e,this._el=this.tag,this._childrenUI=[f],this.initChildren(),this.id=this._id,window[this.id]=this,c.setCurrentLanguage(this._options.language,"flash",this._options.languageTexts),p.openInFile()?(e={mediaId:this._options.vid||"",error_code:a.ErrorCode.FormatNotSupport,error_msg:c.get("Open_Html_By_File","flash")},this.trigger(_.Private.Error_Show,e)):o.IS_MOBILE?this.trigger(_.Private.Error_Show,{mediaId:this._options.vid||"",error_code:a.ErrorCode.FormatNotSupport,error_msg:c.get("Cant_Use_Flash_On_Mobile","flash")}):(this._options.vid&&this._options.accessKeyId&&this._options.securityToken&&this._options.accessKeySecret?v.getPlayAuth((i=this)._options,function(e){i._options.playauth=e,i._createPlayer()},function(e){var t={mediaId:i._options.vid,error_code:e.Code,error_msg:e.Message};e.sri&&(t.sri=e.sri),t.display_msg=e.display_msg,i.trigger(_.Private.Error_Show,t)},"flash"):this._createPlayer(),this._status="init")},_createPlayer:function(){var e,t;this._options.autoPlayDelay?(t=new g(this),e=this,t.handle(function(){e._options.autoplay=!0,e._initPlayer(),e._childrenUI=[h,y],e.initChildren()})):(this._initPlayer(),this._childrenUI=[h,y],this.initChildren()),o.HAS_FLASH||(t=c.get("Flash_Not_Ready","flash"),this.trigger(_.Private.Info_Show,{text:t,align:"tc",isBlack:!1}))},_initPlayer:function(){var e="//"+u.domain+"/de/prismplayer-flash/"+u.flashVersion+"/PrismPlayer.swf";this._options.playerSwfPath?e=this._options.playerSwfPath:u.domain?-1<u.domain.indexOf("localhost")&&(e="//"+u.domain+"/build/flash//PrismPlayer.swf"):e="de/prismplayer-flash/"+u.flashVersion+"/PrismPlayer.swf";var t=this._comboFlashVars(),i=this._options.wmode||"opaque";this.tag.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="100%" height="100%" id="'+this.id+'"><param name=movie value="'+e+'"><param name=quality value=High><param name="FlashVars" value="'+t+'"><param name="WMode" value="'+i+'"><param name="AllowScriptAccess" value="always"><param name="AllowFullScreen" value="true"><param name="AllowFullScreenInteractive" value="true"><embed name="'+this.id+'" src="'+e+'" quality=high pluginspage="//www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="100%" AllowScriptAccess="always" AllowFullScreen="true" AllowFullScreenInteractive="true" WMode="'+i+'" FlashVars="'+t+'"></embed></object>'},_getPlayer:function(e){return-1!=navigator.appName.indexOf("Microsoft")?document.getElementById(e):document[e]},_getLowerQualityLevel:function(){var e=this._getVideoUrls();if(!e)return"";var t=e.Urls,e=e.index;return!(t&&0==t.length||-1==e)&&0<e?{item:t[e-1],index:e-1}:""},_comboFlashVars:function(){var e=encodeURIComponent(o.getReferer()),t=o.getHref(),i=encodeURIComponent(t),r="";t&&(r=o.getHost(t));var t=this._options,r={autoPlay:t.autoplay?1:0,isInner:0,actRequest:1,vid:t.vid,diagnosisButtonVisible:t.diagnosisButtonVisible?1:0,domain:t.domain||"//tv.taobao.com",statisticService:t.statisticService||u.logReportTo,videoInfoService:t.videoInfoService||"/player/json/getBaseVideoInfo.do",disablePing:t.trackLog?0:1,namespace:this.id,barMode:0!=t.barMode?1:0,isLive:t.isLive?1:0,waterMark:t.waterMark,environment:t.environment,vurl:t.source?encodeURIComponent(t.source):"",plugins:t.plugins||"",snapShotShow:t.snapshot?1:0,accessId:t.accId||"",accessKey:t.accSecret||"",apiKey:t.apiKey||"",flashApiKey:t.flashApiKey||"",disableSeek:t.disableSeek?1:0,disableFullScreen:t.disableFullScreen?1:0,stsToken:t.stsToken||"",domainRegion:t.domainRegion||"",authInfo:t.authInfo?encodeURIComponent(t.authInfo):"",playDomain:t.playDomain||"",stretcherZoomType:t.stretcherZoomType||"",playauth:t.playauth?t.playauth.replace(/\+/g,"%2B"):"",prismType:t.prismType||0,formats:t.formats||"",notShowTips:t.notShowTips?1:0,showBarTime:t.showBarTime||0,showBuffer:0==t.showBuffer?0:1,rePlay:t.rePlay?1:0,encryp:t.encryp||"",secret:t.secret||"",mediaType:"video",logInfo:{ud:o.getHost(t.source),os:o.os.name,ov:o.os.version||"",et:o.browser.name,ev:o.browser.version||"",uat:o.USER_AGENT,r:e,pu:i,app_n:r}},n=[];return void 0!==t.rtmpBufferTime&&(r.rtmpBufferTime=t.rtmpBufferTime),t.cover&&(r.cover=t.cover),t.extraInfo&&(r.extraInfo=encodeURIComponent(JSON.stringify(t.extraInfo))),r.logInfo&&(r.logInfo=encodeURIComponent(JSON.stringify(r.logInfo))),r.languageData=encodeURIComponent(JSON.stringify(c.getLanguageData("flash"))),r.language=c.getCurrentLanguage(),l.each(r,function(e,t){n.push(e+"="+t)}),n.join("&")},initChildren:function(){for(var e=this._childrenUI.length,t=0;t<e;t++){var i=new this._childrenUI[t](this,this._options),r=i.el();r.id=i.id(),this.contentEl().appendChild(r),i.bindEvent()}var n=document.querySelector("#"+this._options.id+" .prism-info-display");s.css(n,"display","none")},flashReady:function(){this.flashPlayer=this._getPlayer(this.id),this._isReady=!0;var e=this._options.skinRes,t=this._options.skinLayout;if(!1!==t&&!l.isArray(t))throw new Error("PrismPlayer Error: skinLayout should be false or type of array!");if("string"!=typeof e)throw new Error("PrismPlayer Error: skinRes should be string!");t=0!=t&&0!==t.length&&{skinRes:e,skinLayout:t},this.flashPlayer.setPlayerSkin(t),this.trigger("ready");var i=this;window.addEventListener("beforeunload",function(){try{i.flashPlayer.setPlayerCloseStatus()}catch(e){}})},jsReady:function(){return!0},snapshoted:function(e){var t=p.toBinary(e),e="data:image/jpeg;base64,"+e;this.trigger("snapshoted",{time:this.getCurrentTime(),base64:e,binary:t})},uiReady:function(){this._status="ready",this.trigger("uiReady")},loadedmetadata:function(){"ended"!=this._status&&(this._status="loading",this.trigger("loadedmetadata"))},onPlay:function(){this._status="play",this.trigger("play"),this._clearTimeoutHandle(),this.trigger(_.Private.AutoStreamHide)},onEnded:function(){this._clearTimeoutHandle(),this._status="ended",this.trigger("ended")},onPause:function(){this._status="pause",this._clearTimeoutHandle(),this.trigger(_.Private.AutoStreamHide),this.trigger("pause")},onBulletScreenReady:function(){this.trigger("bSReady")},onBulletScreenMsgSend:function(e){this.trigger("bSSendMsg",e)},onVideoRender:function(e){this._clearTimeoutHandle(),this.trigger("videoRender"),this.trigger("canplay",{loadtime:e})},onVideoError:function(e){this._clearTimeoutHandle(),this._status="error",this.trigger("error",{errortype:e})},onM3u8Retry:function(){this.trigger("m3u8Retry")},hideBar:function(){this.trigger("hideBar")},showBar:function(){this.trigger("showBar")},liveStreamStop:function(){this.trigger("liveStreamStop")},stsTokenExpired:function(){this._status="error",this.trigger("stsTokenExpired")},onVideoBuffer:function(){var e;"pause"!=this._status&&(this._status="waiting",this.trigger("waiting"),this._clearTimeoutHandle(),(e=this)._checkTimeoutHandle=setTimeout(function(){e.trigger(_.Private.AutoStreamShow)},1e3*this._options.loadDataTimeout),this._checkVideoStatus())},startSeek:function(e){this.trigger("startSeek",e)},completeSeek:function(e){this.trigger("completeSeek",e)},_invoke:function(){var e=arguments[0],t=arguments;if(Array.prototype.shift.call(t),!this.flashPlayer)throw new Error("PrismPlayer Error: flash player is not ready\uff0cplease use api after ready event occured!");if("function"!=typeof this.flashPlayer[e])throw new Error("PrismPlayer Error: function "+e+" is not found!");return this.flashPlayer[e].apply(this.flashPlayer,t)},play:function(){this._invoke("playVideo")},replay:function(){this._invoke("replayVideo")},pause:function(){this._invoke("pauseVideo")},stop:function(){this._invoke("stopVideo")},seek:function(e){this._invoke("seekVideo",e)},getCurrentTime:function(){return this._invoke("getCurrentTime")},getDuration:function(){return this._invoke("getDuration")},getStatus:function(){return this._status},_getVideoUrls:function(){var e=this._invoke("getVideoUrls"),t=[];if(e&&e.Urls)for(var i=0;i<e.Urls.length;i++){var r=e.Urls[i].value,n=r.desc.indexOf("_"),o=c.get(r.definition,"flash");r.desc=0<n?o+"_"+r.height:o,t.push(r)}return{Urls:t,index:e.index}},_getVideoStatus:function(){return this._invoke("getVideoStatus")},_checkVideoStatus:function(){var i;this.flashPlayer&&!this._checkVideoStatusHandler&&(i=this,function t(){i._checkVideoStatusHandler=setTimeout(function(){var e=i._getVideoStatus();"playing"==e.videoStatus&&"bufferFull"==e.bufferStatus?(i._status="playing",i._clearTimeoutHandle()):"videoPlayOver"==e.videoStatus&&(i._status="ended",i._clearTimeoutHandle()),t()},500)}())},_clearTimeoutHandle:function(){this._checkTimeoutHandle&&(clearTimeout(this._checkTimeoutHandle),this._checkTimeoutHandle=null)},_changeStream:function(e){return this._invoke("changeStream",e)},mute:function(){this.setVolume(0)},unMute:function(){this.setVolume(.5)},getVolume:function(){return this._invoke("getVolume")},setVolume:function(e){this._invoke("setVolume",e)},loadByVid:function(e){this._invoke("loadByVid",e,!1)},loadByUrl:function(e,t){this._invoke("loadByUrl",e,t)},dispose:function(){this._clearTimeoutHandle(),this._checkVideoStatusHandler&&(clearTimeout(this._checkVideoStatusHandler),this._checkVideoStatusHandler=null),this._invoke("pauseVideo");var e=this;setTimeout(function(){e.off("completeSeek"),e.off("startSeek"),e.off("stsTokenExpired"),e.off("liveStreamStop"),e.off("showBar"),e.off("hideBar"),e.off("m3u8Retry"),e.off("error"),e.off("canplay"),e.off("pause"),e.off("ended"),e.off("play"),e.off("loadedmetadata"),e.off("snapshoted"),e.off("uiReady"),e.off("ready"),e.flashPlayer=null,e._el&&(e._el.innerHTML="")})},showBSMsg:function(e){this._invoke("showBSMsg",e)},setToastEnabled:function(e){this._invoke("setToastEnabled",e)},setLoadingInvisible:function(){this._invoke("setLoadingInvisible")},setPlayerSize:function(e,t){this._el.style.width=e,this._el.style.height=t}});t.exports=e},{"../../commonui/autostreamselector":10,"../../config":13,"../../feature/autoPlayDelay":16,"../../lang/index":21,"../../lib/constants":25,"../../lib/data":27,"../../lib/dom":29,"../../lib/object":38,"../../lib/playerutil":41,"../../lib/ua":44,"../../lib/util":46,"../../ui/component":121,"../../ui/component/error-display":126,"../../ui/component/info-display":129,"../base/event/eventtype":64,"../saas/ststoken":107}],93:[function(e,t,i){var a=e("../../lib/io"),u=e("../../config"),c=e("../../lib/constants"),d=e("../../lib/util"),p=e("../../lib/playerutil"),h=e("../../lib/ua"),f=e("../../lang/index"),g=e("../base/event/eventtype");t.exports.inject=function(e,t,i,r,s,n){var l,o=r.source;!n&&(n=o,e._flv||!p.isFlv(n))||(e._Type=t,e._superType=i,e._superPt=i.prototype,e._disposed=!1,t.prototype._checkFlvReady=function(){if(null==e._flv)throw new Error("please invoke this method after ready event")},e._isFlv=!0,e._flv=null,e._isLoadedFlv=!1,e._originalUrl="",t.prototype.play=function(e){this._checkFlvReady(),this._isManualPlay=e||!1;return this.trigger(g.Private.Cover_Hide),this._options.isLive&&e?this._loadByUrlInner(this._options.source,0,e):this.tag.ended||this._ended?this.replay():(0==this._seeking&&(e=0,this.tag.ended||this._ended||0==(e=this.getCurrentTime())&&(e=-1),-1!=e&&this.seek(e)),this.tag.paused&&(this._hasLoaded||(this.getMetaData(),this._flv.load()),this._flv.play())),this},t.prototype.seek=function(e){this._checkFlvReady(),this._seeking=!0;var t=this.getDuration();t<=(e=Math.floor(e))&&(e=t);try{this._flv.currentTime=e}catch(e){console.log(e)}return this},t.prototype.pause=function(e){return this._checkFlvReady(),this._isManualPause=e||!1,this._flv.pause(),this},t.prototype.getProgramDateTime=function(){if(this._checkFlvReady(),!this._metadata)return"";var e=this._flv.getFirstSample(),e=e&&e.pts?e.pts:0;return console.log("\u63a8\u6d41\u65f6\u95f4\uff1a"+this._metadata.NtpTime),console.log("\u9996\u5e27PTS\uff1a"+e),this._metadata.NtpTime+e},t.prototype.initPlay=function(e){if(h.browser.safari&&this.trigger(g.Private.Snapshot_Hide),d.contentProtocolMixed(o)){var t={mediaId:this._options.vid||"",error_code:c.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"};return t.display_msg=f.get("Request_Block_Text"),void this.trigger(g.Player.Error,t)}function i(t,e){var i=!t._flv;t._destroyFlv();var r=t._options.isLive,n={isLive:r,enableWorker:t._options.enableWorker,stashInitialSize:2048};h.IS_IE11&&(n.enableWorker=!1);var o,a={type:"flv",isLive:r,url:t._options.source};for(o in r?(n.enableStashBuffer=t._options.enableStashBufferForFlv,stashInitialSize=t._options.stashInitialSizeForFlv,n.autoCleanupSourceBuffer=!1):n.lazyLoadMaxDuration=600,t._options.isLive&&(t._options.flvFrameChasing&&(n.flvFrameChasing=t._options.flvFrameChasing),t._options.chasingFirstParagraph&&(n.chasingFirstParagraph=t._options.chasingFirstParagraph),t._options.chasingSecondParagraph&&(n.chasingSecondParagraph=t._options.chasingSecondParagraph),t._options.chasingFirstSpeed&&(n.chasingFirstSpeed=t._options.chasingFirstSpeed),t._options.chasingSecondSpeed&&(n.chasingSecondSpeed=t._options.chasingSecondSpeed)),t._options.flvOption)"cors"==o||"hasAudio"==o||"withCredentials"==o||"hasVideo"==o||"type"==o?a[o]=t._options.flvOption[o]:n[o]=t._options.flvOption[o];t._originalUrl=t._options.source,flvjs.LoggingControl.enableAll=t._options.debug,t._flv=flvjs.createPlayer(a,n),l(t,t._flv),t._flv.on(flvjs.Events.MEDIA_INFO,function(e){t._metadata=e.metadata}),t._flv.on(flvjs.Events.METADATA_ARRIVED,function(e){e&&e.dataContent&&e.dataContent.length&&t.trigger(g.Private.SeiFrame,{dataContent:e.dataContent,pts:e.pts})}),t._flv.attachMediaElement(t.tag),t._initPlayBehavior(e)&&((t._options.preload||t._options.autoplay)&&(t._hasLoaded=!0,t._flv.load()),t._options.autoplay&&!t.tag.paused&&t._flv.play(),s&&s(t._flv),i&&(t._executeReadyCallback(),t._urls&&0<t._urls.length&&!t._options.defaultDefinition&&(t._currentPlayIndex=p.findSelectedStreamLevel(t._urls),i=t._urls[t._currentPlayIndex],t._options.source=i.Url,t.trigger(g.Private.SourceLoaded,i))))}(that=this)._isLoadedFlv&&"undefined"!=typeof Hls?setTimeout(function(){i(that,e)},1e3):(this.trigger(g.Private.H5_Loading_Show),function(e,t){var i="aliplayer-flv-min.js",r="",r=u.domain?"https://"+u.domain+"/de/prismplayer/"+u.h5Version+"/flv/"+i:"/build/flv/"+i,n=this;a.loadJS(r,function(){e.apply(n)})}.call(that,function(){this._isLoadedFlv=!0,i(this,e)},this._options.debug))},t.prototype._destroyFlv=function(){try{this._flv&&(this._flv.pause(),this._flv.destroy())}catch(e){console.log(e)}this.loaded=!1,this._hasLoaded=!1,this._flv=null},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._superPt&&this._superPt.dispose.call(this),this._destroyFlv(),this._superPt&&(t.prototype.play=this._superPt.play,t.prototype.pause=this._superPt.pause,t.prototype.initPlay=this._superPt.initPlay,t.prototype.seek=this._superPt.seek,t.prototype.canSeekable=this._superPt.canSeekable))},t.prototype.canSeekable=function(e){var t=this._flv.mediaInfo;return!(!this._flv._isTimepointBuffered(e)&&t&&!t.hasKeyframesIndex)},l=function(s,e){var l=!1;e.on(flvjs.Events.ERROR,function(e,t,i){var r,n,o=c.ErrorCode.OtherError,a=f.get("Error_Play_Text");e!==flvjs.ErrorTypes.BUFFER_FULL&&(t==flvjs.ErrorDetails.NETWORK_EXCEPTION?!(n=s.getOptions().source)||0!=n.toLowerCase().indexOf("http://")&&0!=n.toLowerCase().indexOf("https://")?(o=c.ErrorCode.InvalidSourceURL,a=f.get("Error_Invalidate_Source_Widthout_Protocal"),l=!0):a=navigator.onLine?(o=c.ErrorCode.RequestDataError,f.get("Maybe_Cors_Error")):(o=c.ErrorCode.NetworkError,f.get("Error_Network_Text")):t==flvjs.ErrorDetails.NETWORK_STATUS_CODE_INVALID?"404"==i.code?(o=c.ErrorCode.NotFoundSourceURL,a=f.get("Error_Not_Found")):"403"==i.code?(o=c.ErrorCode.AuthKeyExpired,a=f.get("Error_AuthKey_Text"),l=!0):(o=c.ErrorCode.NetworkError,a=f.get("Error_Network_Text")):t==flvjs.ErrorDetails.NETWORK_TIMEOUT?(o=c.ErrorCode.LoadingTimeout,a=f.get("Error_Waiting_Timeout_Text")):t!=flvjs.ErrorDetails.MEDIA_FORMAT_UNSUPPORTED&&t!=flvjs.ErrorDetails.MEDIA_CODEC_UNSUPPORTED||(o=c.ErrorCode.FormatNotSupport,a=f.get("Error_H5_Not_Support_Text"),l=!0),e=function(){var e;setTimeout(function(){s.trigger(g.Private.Play_Btn_Hide)}),s.checkOnline()&&(e={mediaId:s._options&&s._options.vid?s._options.vid:"",error_code:o,error_msg:i.msg},s.logError(e),e.display_msg=a,u.cityBrain&&(s.flv=null),s.trigger(g.Player.Error,e))},s._options&&s._options.isLive&&!l?(r=s._options).liveRetry>s._liveRetryCount?(0==s._liveRetryCount&&s.trigger(g.Player.OnM3u8Retry),n=r.liveRetryInterval+r.liveRetryStep*s._liveRetryCount,s._liveRetryCount++,setTimeout(function(){s._loadByUrlInner(r.source)},1e3*n)):(s._liveErrorHandle&&clearTimeout(s._liveErrorHandle),s.trigger(g.Player.LiveStreamStop),s._liveErrorHandle=setTimeout(e,500)):t===flvjs.ErrorDetails.MEDIA_MSE_ERROR&&11===i.code&&s.getCurrentTime()<s.getDuration()?(s._flv.unload(),s._flv.load(),s._flv.detachMediaElement(),s._flv.attachMediaElement(s.tag)):l?(s._flv.unload(),e()):s._reloadForVod()||e())})})}},{"../../config":13,"../../lang/index":21,"../../lib/constants":25,"../../lib/io":36,"../../lib/playerutil":41,"../../lib/ua":44,"../../lib/util":46,"../base/event/eventtype":64}],94:[function(e,t,i){var r=e("../base/player"),n=e("./flvinjector"),o=r.extend({init:function(e,t){n.inject(this,o,r,t,function(e){}),t._native=!1,r.call(this,e,t)}});t.exports=o},{"../base/player":84,"./flvinjector":93}],95:[function(e,t,i){var c=e("../../lib/io"),d=e("../../config"),p=e("../../lib/constants"),h=e("../../lib/util"),f=e("../../lib/playerutil"),g=e("../../lib/ua"),y=e("../../lang/index"),_=e("../base/event/eventtype"),v=e("../../lib/hls/hlsparse");function m(){this&&this._hls&&(this._hls.stopLoad(),this._hls.destroy(),this._hls=null)}t.exports.inject=function(e,t,i,r,o,l){e._hls2=!1;var a,n=r.source,s=r.useHlsPluginForSafari,u=r.useHlsPlugOnMobile;(o||l||(r=n,s=s,u=u,!e._hls&&f.isHls(r)&&(!f.canPlayHls()||f.isSafariUsedHlsPlugin(s)||u&&f.isUsedHlsPluginOnMobile())))&&(e._Type=t,e._superType=i,e._superPt=i.prototype,e._disposed=!1,t.prototype._checkHlsReady=function(){if(null==e._hls)throw new Error("please invoke this method after ready event")},e._isHls=!0,e._hls=null,e._isLoadedHls=!1,e._stopLoadAsPaused=!0,t.prototype.play=function(e){this._checkHlsReady(),this._isManualPlay=e||!1;return this.trigger(_.Private.Cover_Hide),this._options.autoplay||this._options.preload||this._loadSourced||(this._loadSourced=!0,this._options._autoplay=!0,this._hls.loadSource(this._options.source)),this.tag.ended||this._ended?this.replay():this.tag.paused&&(this.tag.play(),this._stopLoadAsPaused&&(e=this.getCurrentTime(),this._hls.startLoad(e))),this},t.prototype.replay=function(){return this._monitor&&this._monitor.replay(),this._hls.startLoad(0),this.tag.play(),this},t.prototype.pause=function(e){return this.tag&&(this._checkHlsReady(),this.tag.pause(),this._stopLoadAsPaused&&this._hls.stopLoad()),this._isManualPause=e||!1,this},t.prototype.stop=function(){return this._checkHlsReady(),this.tag.setAttribute("src",null),this._hls.stopLoad(),this},t.prototype.seek=function(e){this._checkHlsReady();try{this._superPt.seek.call(this,e),this.tag.paused&&this._stopLoadAsPaused&&this._hls.startLoad(e)}catch(e){console.log(e)}return this},t.prototype.getProgramDateTime=function(){if(this._checkHlsReady(),-1==this._hls.currentLevel)return"";var e=this._hls.currentLevel,e=this._hls.levels[e].details;if(e){e=e.programDateTime;if(console.log("ProgramDateTime="+e),e)return new Date(e).valueOf()}return 0},t.prototype.getCurrentPDT=function(){if(this._checkHlsReady(),-1==this._hls.currentLevel)return"";var e=this._hls.streamController.fragPlaying||{},t=e.pdt;if(!t)return 0;e=1e3*e.startPTS;return t+(1e3*this.getCurrentTime()-e)},t.prototype._reloadAndPlayForM3u8=function(){0==this._liveRetryCount&&this.trigger(_.Player.OnM3u8Retry),this._liveRetryCount++},t.prototype._switchLevel=function(e){var t=this.getCurrentTime(),i=!this._qualityService.levels.length&&1<this._urls.length;i&&(this.pause(),this._hls.stopLoad(),this._hls.detachMedia(),this._hls.destroy()),this.trigger(_.Player.LevelSwitch);var r=this._hls.levels,n=!0;i&&this._loadByUrlInner(e,t,n,!0);for(var o=0;o<r.length;o++)if(r[o].url==e||r[o].url[0]==e){n=!1,this._hls2&&this._options.seamlessHandover?(this._hls.loadLevel=o,console.log("Seamlessly set nextLevel to",o)):(this._hls.currentLevel=o,console.log("Immediately set currentLevel to",o));break}n&&(this._hls.currentLevel=-1),this._switchedLevel=!0;var a=this;setTimeout(function(){a.trigger(_.Player.LevelSwitched),this._switchedLevel=!1},1e3)},t.prototype._getHlsVersion=function(r){if(!0===this._options.useHls2)return this._hls2=!0,void r();if(!1!==this._options.useHls2)if(this._options.isLive)if(l)r();else{if(this._options.lowLatencyMode)return this._hls2=!0,void r();var n=this,o=new v,a=n._options.source;o.load(a,function(e){var t,i;e.levels&&0!==e.levels.length?t=e.levels[0].url:(t=a,i=e.string),o.loadMediaPlaylist({url:t,string:i},function(e){e&&(n._hls2="number"==typeof e.partTarget),r()},s.bind(n))},s.bind(n))}else r();else r();function s(e,t){var i=this.getOptions()||{},i={mediaId:i.vid||"",mediaAuth:i.mediaAuth||"",error_code:p.ErrorCode.LoadedMetadata,error_msg:y.get("Error_Play_Text")},t=Number(t);404===t?(i.error_code=p.ErrorCode.NotFoundSourceURL,i.error_msg=y.get("Error_Not_Found")):403===t?(i.error_code=p.ErrorCode.AuthKeyExpired,i.error_msg=y.get("Error_AuthKey_Text")):0===t&&navigator.onLine?(i.error_code=p.ErrorCode.RequestDataError,i.error_msg=i.error_msg+"\uff0c"+y.get("Maybe_Cors_Error")):i.error_msg=y.get("Error_Load_M3U8_Failed_Text"),this.logError(i),i.display_msg=i.error_msg,this.trigger(_.Player.Error,i)}},t.prototype.initPlay=function(t){if(this.trigger(_.Private.H5_Loading_Show),h.contentProtocolMixed(n)){var e=this.getOptions()||{},e={mediaId:e.vid||"",mediaAuth:e.mediaAuth||"",error_code:p.ErrorCode.InvalidSourceURL,error_msg:"InvalidSourceURL"};return e.display_msg=y.get("Request_Block_Text"),void this.trigger(_.Player.Error,e)}var i=this;function r(s,t){if(s._antiRecord&&(console.log("Manual check before load source"),s._antiRecord.check()))return;var i=!s._hls;s._destroyHls();var e,r={xhrSetup:function(e,t){e.withCredentials=s._options.withCredentials||!1}},n=s._options.loadingTimeOut||s._options.hlsLoadingTimeOut;for(e in n&&(r.manifestLoadingTimeOut=n,r.levelLoadingTimeOut=n,r.fragLoadingTimeOut=n),s._options.liveSyncDurationCount&&(r.liveSyncDurationCount=s._options.liveSyncDurationCount),s._options.defaultBandwidth&&(r.defaultBandwidth=s._options.defaultBandwidth),s._options.isLive&&(s._options.hlsFrameChasing&&(r.hlsFrameChasing=s._options.hlsFrameChasing),s._options.chasingFirstParagraph&&(r.chasingFirstParagraph=s._options.chasingFirstParagraph),s._options.chasingSecondParagraph&&(r.chasingSecondParagraph=s._options.chasingSecondParagraph),s._options.chasingFirstSpeed&&(r.chasingFirstSpeed=s._options.chasingFirstSpeed),s._options.chasingSecondSpeed&&(r.chasingSecondSpeed=s._options.chasingSecondSpeed)),s._hls2&&s._options.isLive&&(g.IS_IE11||(r.backBufferLength=12,r.liveDurationInfinity=!0)),s._options.nudgeMaxRetry&&(r.nudgeMaxRetry=s._options.nudgeMaxRetry),s._options.maxMaxBufferLength&&(r.maxMaxBufferLength=s._options.maxMaxBufferLength),s._options.maxBufferSize&&(r.maxBufferSize=s._options.maxBufferSize),s._options.fragLoadingRetryDelay&&(r.fragLoadingRetryDelay=s._options.fragLoadingRetryDelay),s._options.maxBufferLength&&(r.maxBufferLength=s._options.maxBufferLength),s._options.hlsBandWidthUpCacheTime&&(r.abrBandWidthUpCacheTime=s._options.hlsBandWidthUpCacheTime),s._options.seamlessHandover&&(r.seamlessHandover=s._options.seamlessHandover),s._options.accessKeyId&&(r.accessKeyId=s._options.accessKeyId),s._options.accessKeySecret&&(r.accessKeySecret=s._options.accessKeySecret),s._options.securityToken&&(r.securityToken=s._options.securityToken),s._options.app&&(r.app=s._options.app),s._options.stream&&(r.stream=s._options.stream),s._options.domain&&(r.domain=s._options.domain),s._options.regionId&&(r.regionId=s._options.regionId),o&&(r._sce_dlgtqredxx=o),r.enableWorker=s._options.enableWorker,r.debug=s._options.debug,s._stopLoadAsPaused=s._options.hlsOption.stopLoadAsPaused,s._options.hlsOption)r[e]=s._options.hlsOption[e];g.IS_IE11&&(r.enableWorker=!1),s._hls=new Hls(r),a(s,s._hls),s._loadSourced=!1,s._hls.attachMedia(s.tag),s._hls.on(Hls.Events.INIT_PTS_FOUND,function(e,t){s._initPTS=t.initPTS}),s._hls.on(Hls.Events.FRAG_PARSING_USERDATA,function(e,t){t&&t.dataContent&&t.dataContent.length&&s.trigger(_.Private.SeiFrame,{dataContent:t.dataContent,pts:t.pts})}),s._hls.on(Hls.Events.MEDIA_ATTACHED,function(){var e;s._hls.on(Hls.Events.MANIFEST_PARSED,function(){s._initPlayBehavior(t||s._loadSourced)}),s._hls.on(Hls.Events.AUDIO_TRACKS_UPDATED,function(e,t){s.trigger(_.Player.AudioTrackUpdated,t)}),s._hls.on(Hls.Events.MANIFEST_LOADED,function(e,t){s.trigger(_.Player.LevelsLoaded,t)}),s._hls.on(Hls.Events.LEVEL_SWITCHED,function(e,t){if(s._qualityService){for(var i=s._hls.levels[t.level].url,r=s._qualityService.levels,n="",o="",a=0;a<r.length;a++)if(r[a].Url==i){o=r[a].desc,n=r[a].bitrate;break}(o||n)&&s.trigger(_.Private.QualityChange,{levelSwitch:!0,url:i,bitrate:n,desc:o})}}),s._hls.on(Hls.Events.AUDIO_TRACK_SWITCH,function(e,t){s.trigger(_.Player.AudioTrackSwitch,t),setTimeout(function(){s.trigger(_.Player.AudioTrackSwitched,t)},1e3)}),(s._options.autoplay||s._options.preload||t)&&(s._loadSourced=!0,s._levels&&1<s._levels.length?(s._hls.trigger(Hls.Events.MANIFEST_LOADING,{}),s._hls.trigger(Hls.Events.MANIFEST_LOADED,{levels:s._levels})):s._hls.loadSource(s._options.source||"__INVALID__")),i?(s._executeReadyCallback(),s._urls&&0<s._urls.length&&!s._options.defaultDefinition&&(s._currentPlayIndex=f.findSelectedStreamLevel(s._urls),e=s._urls[s._currentPlayIndex],s._options.source=e.Url,s.trigger(_.Private.SourceLoaded,e))):s.trigger(_.Private.H5_Loading_Show)})}this._isLoadedHls&&"undefined"!=typeof Hls?r(this,t):(this.trigger(_.Private.H5_Loading_Show),this._getHlsVersion(function(e){!function(e,t){var i="aliplayer-hls-min.js";(t=t||{}).hls2&&(i="aliplayer-hls2-min.js");var t="",t=d.domain?"https://"+d.domain+"/de/prismplayer/"+d.h5Version+"/hls/"+i:"/build/hls/"+i,r=this;c.loadJS(t,function(){e.apply(r)})}.call(i,function(){i._isLoadedHls=!0,r(i,t)},{debug:i._options.debug,hls2:i._hls2})}),this.on("error",m))},t.prototype._getbwEstimator=function(){var e,t=NaN;return t=this._hls?(e=this._hls.abrController._bwEstimator)?e.getEstimate():NaN:t},t.prototype._destroyHls=function(){this._hls&&this._hls.destroy(),this._hls=null},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._superPt&&this._superPt.dispose.call(this),this._destroyHls(),this._superPt&&(t.prototype.play=this._superPt.play,t.prototype.pause=this._superPt.pause,t.prototype.initPlay=this._superPt.initPlay,t.prototype.replay=this._superPt.replay,t.prototype.stop=this._superPt.stop,t.prototype.seek=this._superPt.seek))},a=function(l,u){u.on(Hls.Events.DEFAULT_BANDWIDTH,function(e,t){l.trigger(_.Player.DefaultBandWidth,{width:t.width,height:t.height,bitrate:t.bitrate})}),u.on(Hls.Events.ERROR,function(e,t){var i,r,n,o,a,s;!l._options||t.details==Hls.ErrorDetails.FRAG_LOOP_LOADING_ERROR||1==l._seeking||0==t.fatal&&t.type!=Hls.ErrorTypes.NETWORK_ERROR||(l._clearTimeout(),i=p.ErrorCode.LoadedMetadata,n=y.get("Error_Play_Text"),s=r=!1,t.details==Hls.ErrorDetails.MANIFEST_LOAD_ERROR||t.details==Hls.ErrorDetails.LEVEL_LOAD_ERROR?(r=!0,a=t.networkDetails,a=Number(a.status),l.liveShiftSerivce&&l.liveShiftSerivce.isLiveShiftPlaying()&&404===a?(i=p.ErrorCode.NotFoundSourceURL,n=y.get("Error_Liveshift_M3U8_Not_Found_Text"),s=!0):n=404===a?(i=p.ErrorCode.NotFoundSourceURL,y.get("Error_Not_Found")):403===a?(i=p.ErrorCode.AuthKeyExpired,y.get("Error_AuthKey_Text")):0===a&&navigator.onLine?(i=p.ErrorCode.RequestDataError,n+"\uff0c"+y.get("Maybe_Cors_Error")):y.get("Error_Load_M3U8_Failed_Text")):t.details==Hls.ErrorDetails.MANIFEST_LOAD_TIMEOUT||t.details==Hls.ErrorDetails.LEVEL_LOAD_TIMEOUT?(r=!0,n=y.get("Error_Load_M3U8_Timeout_Text")):t.details==Hls.ErrorDetails.MANIFEST_PARSING_ERROR||t.details==Hls.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR?(r=!0,n=y.get("Error_M3U8_Decode_Text")):t.type==Hls.ErrorTypes.NETWORK_ERROR?(i=p.ErrorCode.NetworkError,n=y.get("Error_Network_Text")):t.type!=Hls.ErrorTypes.MUX_ERROR&&t.type!=Hls.ErrorTypes.MEDIA_ERROR||(i=p.ErrorCode.PlayDataDecode,n=y.get("Error_TX_Decode_Text")),n=n+"("+t.details+")",o=function(){var e;l.pause(),setTimeout(function(){l.trigger(_.Private.Play_Btn_Hide)}),l.checkOnline()&&(e={mediaId:(e=l.getOptions()||{}).vid||"",mediaAuth:e.mediaAuth||"",error_code:i,error_msg:t.details},l.logError(e),e.display_msg=n,l.trigger(_.Player.Error,e))},a=function(){l._liveErrorHandle&&clearTimeout(l._liveErrorHandle),u.stopLoad(),l.trigger(_.Player.LiveStreamStop),l._liveErrorHandle=setTimeout(o,500)},l._options&&l._options.isLive?s?a():l._hls2?t.fatal&&a():(s=l._options).liveRetry>l._liveRetryCount?(0==l._liveRetryCount&&l.trigger(_.Player.OnM3u8Retry),s=s.liveRetryInterval+s.liveRetryStep*l._liveRetryCount,l._liveRetryCount++,l.trigger(_.Private.H5_Loading_Show),setTimeout(function(){r&&l._loadByUrlInner(l._options.source,0,!0)},1e3*s)):a():l._reloadForVod()||o())})})}},{"../../config":13,"../../lang/index":21,"../../lib/constants":25,"../../lib/hls/hlsparse":35,"../../lib/io":36,"../../lib/playerutil":41,"../../lib/ua":44,"../../lib/util":46,"../base/event/eventtype":64}],96:[function(e,t,i){var r=e("../base/player"),n=e("./hlsinjector"),o=r.extend({init:function(e,t){t._native=!1,n.inject(this,o,r,t),r.call(this,e,t)}});t.exports=o},{"../base/player":84,"./hlsinjector":95}],97:[function(e,t,i){var l="undefined"==typeof Promise?e("es6-promise").Promise:Promise,u=e("../../lib/io"),c=e("../../config"),d=e("../../lib/constants"),p=e("../../lang/index"),h=e("../base/event/eventtype"),r=e("../../lib/ua");function f(e){var t=this._options;if(!t.rtsFallbackSource||!window.Aliplayer)return this.trigger(h.Player.Error,e),void player.logError(e);this.trigger(h.Player.RtsFallback,{reason:e,fallbackUrl:t.rtsFallbackSource}),this.loadByUrl(t.rtsFallbackSource)}function g(e){var r=this;this.trigger(h.Private.H5_Loading_Show),this.trigger(h.Private.Play_Btn_Hide);var t=new n(r,e);return r._rts.subscribe(r._options.source,{mediaTimeout:r._options.rtsLoadDataTimeout}).then(function(e){return r._retryTimer&&(clearTimeout(r._retryTimer),r._retryTimer=null),t.preProcess(),r.tag.srcObject=null,e.play(r.tag),!0}).catch(function(e){var t=null,i=null;switch(Number(e.errorCode)){case 10101:t=d.ErrorCode.RtsSignalError,i=p.get("Rts_Err_Http_Signal_Error");break;case 10114:t=d.ErrorCode.RtsCreateOfferError,i=p.get("Rts_Err_Create_Offer_Error");break;case 10202:t=d.ErrorCode.RtsPlayUrlError,i=p.get("Rts_Err_Play_Url_Error");break;case 10203:t=d.ErrorCode.RtsSubscribeNonthing,i=p.get("Rts_Err_Subscribe_Nonthing");break;case 10205:t=d.ErrorCode.RtsHttpRequestFaild,i=p.get("Rts_Err_Http_Request_Failed");break;case 10206:t=d.ErrorCode.RtsHttpAnswerFaild,i=p.get("Rts_Err_Http_Answer_Failed")}return f.call(r,{error_code:t,error_msg:i}),!1})}function y(){this._noDataTimer&&(clearTimeout(this._noDataTimer),this._noDataTimer=null)}t.exports.inject=function(e,t,i,r,n,o){function a(e,t){var i,r,n;y.call(this),this._retryTimer||(e=e||d.ErrorCode.RtsPlayFailedError,t=t||p.get("Rts_Err_Play_Failed")+", "+this._options.rtsLoadDataTimeout*(this._options.liveRetry+1)+p.get("Rts_Err_No_Data_For"),(r=(i=this)._options)?r.liveRetry>i._liveRetryCount?(0==i._liveRetryCount&&i.trigger(h.Player.OnM3u8Retry),n=Number(r.liveRetryInterval||0)+Number(r.liveRetryStep*i._liveRetryCount||0),i._liveRetryCount++,i.stop(),setTimeout(function(){i.trigger(h.Private.H5_Loading_Show),i.trigger(h.Private.Play_Btn_Hide)},50),i._retryTimer=setTimeout(function(){i.trigger(h.Private.Retry,{type:"rts",source:r.source}),g.call(i,!0)},1e3*n)):(i._retryTimer&&clearTimeout(i._retryTimer),i._liveErrorHandle&&clearTimeout(i._liveErrorHandle),i.stop(),i._liveRetryCount=0,i.trigger(h.Player.LiveStreamStop),i._liveErrorHandle=setTimeout(s.call(this,e,t),500)):console.warn("no options!"))}function s(e,t){var i=this;i.pause(),setTimeout(function(){i.trigger(h.Private.Play_Btn_Hide)}),i.checkOnline()&&f.call(this,{error_code:e,error_msg:t})}e._Type=t,e._superType=i,e._superPt=i.prototype,e._disposed=!1,t.prototype._checkRtsReady=function(){if(null==e._rts)throw new Error("please invoke this method after ready event")},e._isRts=!0,e._rts=null,e._isLoadedRts=!1,e._liveErrorHandle=null,e._retryTimer=null,e._noDataTimer=null,e.bind_rtsPlayEventHandler=null,e.bind_rtsErrorEventHandler=null,t.prototype.play=function(e){this._checkRtsReady(),this._isManualPlay=e||!1;var t=this;return t.trigger(h.Private.Cover_Hide),t.trigger(h.Private.Play_Btn_Hide),g.call(t).then(function(e){e&&t._startPlay()}),this},t.prototype.seek=function(e){},t.prototype.setSpeed=function(e){},t.prototype.pause=function(e){return this._checkRtsReady(),this._superPt.pause.call(this,!0),this},t.prototype.stop=function(){return this._rts&&this._rts.unsubscribe(),this},t.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._superPt&&this._superPt.dispose.call(this),this._destroyRts(),this._superPt,this._liveErrorHandle&&(clearTimeout(this._liveErrorHandle),this._liveErrorHandle=null),this._retryTimer&&(clearTimeout(this._retryTimer),this._retryTimer=null),y.call(this))},t.prototype._destroyRts=function(){this._rts&&(this.stop(),this._rts.off("onError",this.bind_rtsErrorEventHandler),this._rts.off("onPlayEvent",this.bind_rtsPlayEventHandler)),this._rts=null},t.prototype.initPlay=function(e){function t(r,t){var i=!r._rts;r._destroyRts(),r._rts=new AliRTS.createClient({customReporter:function(e){if(126===Number(e.msgid)){var t={};try{t=JSON.parse(e.args)}catch(e){t={}}t.tcid&&(r._rts.traceid=t.tcid)}}}),r._checkRtsSupport(function(e){!function(e){var t=this._rtsPlayEventHandler.bind(this),i=this._rtsErrorEventHandler.bind(this);this.bind_rtsPlayEventHandler=t,this.bind_rtsErrorEventHandler=i,e.on("onError",i),e.on("onPlayEvent",t)}.call(r,r._rts),r._options.autoplay?g.call(r).then(function(e){e&&r._initPlayBehavior(t)}):r._initPlayBehavior(t),i&&r._executeReadyCallback()},function(e){console.log("[RTS isSupport error]",e);var t=null,i=null;switch(Number(e.errorCode)){case 10110:t=d.ErrorCode.RtsNotSupportWebRtc,i=p.get("Rts_Err_Not_Support_Webrtc");break;case 10111:t=d.ErrorCode.RtsBrowserNotSupport,i=p.get("Rts_Err_Browser_Not_Support");break;case 10112:t=d.ErrorCode.RtsBrowserVersionTooLow,i=p.get("Rts_Err_Browser_Version_Too_Low");break;case 10113:t=d.ErrorCode.RtsNotSupportH264,i=p.get("Rts_Err_Not_Support_H264");break;case 10114:t=d.ErrorCode.RtsCreateOfferError,i=p.get("Rts_Err_Create_Offer_Error")}return f.call(r,{error_code:t,error_msg:i}),!1})}this._isLoadedRts?t(this,e):(this.trigger(h.Private.H5_Loading_Show),function(e,t){var i=this._options.rtsVersion||c.rtsVersion,r=this;u.loadJS("https://g.alicdn.com/CodeBaseOne/H5RTSSdk/"+i+"/aliyun-rts-sdk.js",function(){e.apply(r)})}.call(this,function(){this._isLoadedRts=!0,t(this,e)},this._options.debug))},t.prototype.getStats=function(){return this._rts&&this._rts.getTransportStats?l.all([this._rts.getTransportStats(),this._rts.getRemoteVideoStats(),this._rts.getRemoteAudioStats()]).then(function(e){var t=e[0],i=e[1],e=e[2];return{rtt:t.rtt,bytesReceived:t.bytesReceived,framesDecoded:i.framesDecoded,packetsLost:(i.packetsLost||0)+(e.packetsLost||0),packetsReceived:(i.packetsReceived||0)+(e.packetsReceived||0),timestamp:t.timestamp||Date.now()}}).catch(function(e){return console.log("ERR in RTS getstats: ",e),{}}):l.resolve()},t.prototype._rtsPlayEventHandler=function(e){var t="canplay",i="waiting",r="playing",n="ended",o="timeout";e.event===t?y.call(this):e.event===i||(e.event===r?y.call(this):e.event!==o&&e.event!==n||a.call(this))},t.prototype._checkRtsSupport=function(e,t){this._options.skipRtsSupportCheck?e():this._rts.isSupport({isReceiveVideo:!0}).then(e).catch(t)},t.prototype._rtsErrorEventHandler=function(e){console.log("RTS Error:",e);var t,i;switch(Number(e.errorCode)){case 10102:a.call(this);break;case 12e3:t=d.ErrorCode.RtsPeerConnectionUnknown,i=p.get("Rts_Err_PeerConnection_Unknown"),s.call(this,t,i)}}};var n=function(){function e(e,t){(this.isRetry=t)&&(this.isApple=r.IS_IOS||r.IS_SAFARI,this.player=e)}return e.prototype.preProcess=function(){var e,t,i;this.isRetry&&this.isApple&&(e=this.player.getVolume(),t=this.player.muted(),e&&!t&&((i=this.player.tag).volume=0,this.player.one("canplay",function(){i.volume=e})))},e}()},{"../../config":13,"../../lang/index":21,"../../lib/constants":25,"../../lib/io":36,"../../lib/ua":44,"../base/event/eventtype":64,"es6-promise":7}],98:[function(e,t,i){var r=e("../base/player"),n=e("./rtsinjector"),o=r.extend({init:function(e,t){t.isLive&&(t._native=!1,n.inject(this,o,r,t),r.call(this,e,t))}});t.exports=o},{"../base/player":84,"./rtsinjector":97}],99:[function(e,t,i){var r=e("../../lib/constants"),e=e("../../lib/oo").extend({init:function(e){this.player=e,this.tickhandle=null}});e.prototype.tick=function(e,t){var i=this;this.tickhandle=setTimeout(function(){i.player&&i.player.trigger(r.AuthKeyExpiredEvent),t&&t()},1e3*e)},e.prototype.clearTick=function(e){this.tickhandle&&clearTimeout(this.tickhandle)},t.exports=e},{"../../lib/constants":25,"../../lib/oo":39}],100:[function(e,t,i){function l(e,t,i){var r=d.randomUUID(),n="https://mts."+e.domainRegion+".aliyuncs.com/?",r={AccessKeyId:e.accessId,Action:"GetLicense",MediaId:e.vid,LicenseUrl:n,data:e.data,SecurityToken:e.stsToken,Format:"JSON",Type:e.encryptionType,Version:"2014-06-18",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:r};e.header&&(r.Header=e.header),e=n+("Signature="+d.AliyunEncodeURI(d.makeChangeSiga(r,e.accessSecret,"POST"))),r=d.makeUTF8sort(r,"=","&"),o.post(e,r,function(e){e?(e=JSON.parse(e),t&&(e=e.License,t(e))):i&&i(a.createError("MPS\u83b7\u53d6License\u5931\u8d25"))},function(e){if(i){var t={Code:"",Message:s.get("Error_MTS_Fetch_Urls_Text")};try{t=JSON.parse(e)}catch(e){}i({Code:c.ErrorCode.ServerAPIError,Message:t.Code+"|"+t.Message,sri:t.RequestId||""})}})}var o=e("../../lib/io"),u=(e("../../lib/ua"),e("../../lib/bufferbase64")),c=e("../../lib/constants"),d=e("./signature"),a=e("./util"),p=e("../../lib/url"),h=e("../../lib/playerutil"),s=e("../../lang/index");function f(e){window.console.error("The license request failed.")}function g(e){window.console.error("A decryption key error was encountered"),window.console.error("A decryption key error was encountered",e)}function y(e){window.console.log("Decryption key was added to session.")}function _(e,t,i){i.addEventListener(e,function(){t(arguments[0])},!1)}t.exports.requestLicenseKey=function(e){var s=e;return s._options.vid&&(s.__vid=s._options.vid),function(e,t){var i,r,n,o=s._options,a=s._getDRMEncryptItem();a&&(i={vid:s.__vid,accessId:o.accId,accessSecret:o.accSecret,stsToken:o.stsToken,domainRegion:o.domainRegion,authInfo:o.authInfo,encryptionType:a.encryptionType},a.encryptionType==c.EncryptionType.Widevine?i.data=u.encode(e.message):a.encryptionType==c.EncryptionType.PlayReady&&(r=u.unpackPlayReady(e.message),i.data=r.changange,r.header&&(i.header=JSON.stringify(r.header))),console.log(i.data),r=s.__licenseKeys,n=s.__vid+a.Url,r&&r[n],l(i,function(e){s.__licenseKeys||(s.__licenseKeys={}),10<i.data.length&&(s.__licenseKeys[n]=e);e=u.decode(e);t(e)},function(e){e={mediaId:s.__vid,error_code:e.Code,error_msg:e.Message};s.logError(e),s.trigger("error",e)}))}},t.exports.loadCertificate=function(e,t){var i=new XMLHttpRequest;i.addEventListener("load",function(e,t){t=t.target;try{i=this._options.isLive?JSON.parse(t.response).Response.B64ServCert:JSON.parse(JSON.parse(t.response).DRMCertInfo).b64ServCert}catch(e){console.log(e)}var t=d.base64DecodeUint8Array(i),i=function(e,t){var i=t.target,r=t.initData,n=d.arrayToString(r).split("skd://")[1].split("?")[0],t=d.stringToArray(n);r=function(e,t,i){"string"==typeof t&&(t=stringToArray(t));var r=0,n=new ArrayBuffer(e.byteLength+4+t.byteLength+4+i.byteLength),o=new DataView(n);new Uint8Array(n,0,e.byteLength).set(e),r+=e.byteLength,o.setUint32(r,t.byteLength,!0),r+=4;e=new Uint16Array(n,r,t.length);return e.set(t),r+=e.byteLength,o.setUint32(r,i.byteLength,!0),r+=4,new Uint8Array(n,r,i.byteLength).set(i),new Uint8Array(n,0,n.byteLength)}(r,t,e),i.webkitKeys||(function(){{if(!WebKitMediaKeys.isTypeSupported("com.apple.fps.1_0","video/mp4"))throw"Key System not supported";keySystem="com.apple.fps.1_0"}}(),i.webkitSetMediaKeys(new WebKitMediaKeys(keySystem)));if(!i.webkitKeys)throw"Could not create MediaKeys";r=i.webkitKeys.createSession("video/mp4",r);if(!r)throw"Could not create key session";r.contentId=n,_("webkitkeymessage",function(e){var t=this,i=e.target,r=e.message,n=new XMLHttpRequest;e.sessionId;n.responseType="text",n.session=i,n.addEventListener("load",function(e){var t=e.target;e=this._options.isLive?JSON.parse(t.response).Response.B64License:JSON.parse(JSON.parse(t.response).License).b64License;e=d.base64DecodeUint8Array(e),e=d.Uint8ArrayToString(e);"<ckc>"===e.substr(0,5)&&"</ckc>"===e.substr(-6)&&(e=e.slice(5,-6));e=d.base64DecodeUint8Array(e);t.session.update(e)}.bind(this),!1),n.addEventListener("error",f,!1);var i=btoa("spc="+d.base64EncodeUint8Array(r)+"&assetId="+encodeURIComponent(i.contentId)),o={Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",Timestamp:d.ISODateString(new Date),SignatureNonce:d.randomUUID(),AccessKeyId:t._options.accessKeyId,SecurityToken:t._options.securityToken,CertId:t._options.certId};t._options.isLive?(o.RegionId=t._options.region,o.Action="DescribeDRMLicense",o.Version="2016-11-01",o.CdmData=i,o.Type="fairplay",o.Domain=p.parseUrl(t._options.source).hostname):(o.region=t._options.region,o.Action="GetDRMLicense",o.Version="2017-03-21",o.VideoId=t._options.vid,o.CDMData=i,o.DRMType="FairPlay");var a,s,i="Signature="+d.AliyunEncodeURI(d.makeChangeSiga(o,t._options.accessKeySecret,"POST"));i=t._options.isLive?"https://"+h.getLiveHostByRegion(t._options.region)+"/?"+i:"https://vod."+t._options.region+".aliyuncs.com/?"+i;for(s in n.open("POST",i,!0),n.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o){var l;o.hasOwnProperty(s)&&(l=o[s],a=a?a+"&"+d.AliyunEncodeURI(s)+"="+d.AliyunEncodeURI(l):d.AliyunEncodeURI(s)+"="+d.AliyunEncodeURI(l))}n.send(a)}.bind(this),r),_("webkitkeyadded",y,r),_("webkitkeyerror",g,r)}.bind(this,t);this._fairPlayHandlers.onNeedKey=i;t=function(e){window.console.error("A video playback error occurred")}.bind(this);this._fairPlayHandlers.onError=t,this.tag.addEventListener("webkitneedkey",i,!1),this.tag.addEventListener("error",t,!1),this.tag.src=this._options.source,e&&e()}.bind(e,t),!1),i.addEventListener("error",function(e){window.console.error("Failed to retrieve the server certificate.")}.bind(e),!1);var r={Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",Timestamp:d.ISODateString(new Date),SignatureNonce:d.randomUUID(),AccessKeyId:e._options.accessKeyId,SecurityToken:e._options.securityToken,CertId:e._options.certId};e._options.isLive?(r.RegionId=e._options.region,r.Action="DescribeDRMCertificate",r.Version="2016-11-01"):(r.region=e._options.region,r.Action="GetDRMCertInfo",r.Version="2017-03-21",r.VideoId=e._options.vid);var n,o,a,t="Signature="+d.AliyunEncodeURI(d.makeChangeSiga(r,e._options.accessKeySecret,"POST")),t=e._options.isLive?"https://"+h.getLiveHostByRegion(e._options.region)+"/?"+t:"https://vod."+e._options.region+".aliyuncs.com/?"+t;for(n in i.open("POST",t,!0),i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r)r.hasOwnProperty(n)&&(o=r[n],a=a?a+"&"+d.AliyunEncodeURI(n)+"="+d.AliyunEncodeURI(o):d.AliyunEncodeURI(n)+"="+d.AliyunEncodeURI(o),console.log(o));i.send(a)},t.exports.getRequestUrl=function(e,t){var i={AccessKeyId:t._options.accessKeyId,Format:"JSON",Version:"2016-11-01",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",Timestamp:d.ISODateString(new Date),SignatureNonce:d.randomUUID(),CertId:t._options.certId,SecurityToken:t._options.securityToken,RegionId:t._options.region,Action:"DescribeDRMLicense",Type:"widevine",CdmData:e,Domain:p.parseUrl(t._options.source).hostname},e="Signature="+d.AliyunEncodeURI(d.makeChangeSiga(i,t._options.accessKeySecret,"POST"));return{url:"https://"+h.getLiveHostByRegion(t._options.region)+"/?"+e,data:d.makeUTF8sort(i,"=","&"),jsonData:d.makeUTF8sort(i,"=","&","json")}},t.exports.postData=function(e,t){var i=d.randomUUID(),i={AccessKeyId:t._options.accessKeyId,VideoId:t._options.vid,Format:"JSON",Version:"2017-03-21",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:i,CertId:t._options.certId,SecurityToken:t._options.securityToken,region:t._options.region,Action:"GetDRMLicense",DRMType:"Widevine",CDMData:e},e="Signature="+d.AliyunEncodeURI(d.makeChangeSiga(i,t._options.accessKeySecret,"POST"));return{url:"https://vod."+t._options.region+".aliyuncs.com/?"+e,data:d.makeUTF8sort(i,"=","&"),jsonData:d.makeUTF8sort(i,"=","&","json")}},t.exports.destroyFairPlay=function(){this._fairPlayHandlers.onNeedKey&&this.tag.removeEventListener("webkitneedkey",this._fairPlayHandlers.onNeedKey),this._fairPlayHandlers.onError&&this.tag.removeEventListener("error",this._fairPlayHandlers.onError),this._fairPlayHandlers={}}},{"../../lang/index":21,"../../lib/bufferbase64":23,"../../lib/constants":25,"../../lib/io":36,"../../lib/playerutil":41,"../../lib/ua":44,"../../lib/url":45,"./signature":106,"./util":108}],101:[function(e,t,i){var r=e("../../lib/io"),u=e("../../lib/constants"),n=e("../../lib/data"),c=e("./util");t.exports.getDataByAuthInfo=function(e,a,s,l){e={playAuth:e.playAuth,requestId:e.requestId},r.get("https://api.h5video.shop/api/page/getMediaPlayInfo"+function(i){return i.requestId=n.guid(),Object.keys(i).reduce(function(e,t){return e+(e?"&":"?")+t+"="+encodeURIComponent(i[t])},"")}(e),function(e){if(e){var t=JSON.parse(e);if(200===t.httpStatusCode){for(var i=t.data.PlayInfoList,r=[],n=i.length-1;0<=n;--n)"AUTO"===i[n].Definition&&(r=[i.splice(n,1)[0]]);var o=null;(o=(o=0===r.length?c.objectPlayerMessageSort(i,a):c.objectPlayerMessageSort(r)).map(function(e){return"m3u8"===e.format&&(e.Url=e.Url+"&_ext=.m3u8"),e}))&&s&&(e=t.data.VideoBase||{},s({videoId:e.VideoId,userId:e.UserId,requestId:t.requestId,urls:o,encryptUrlArr:[],thumbnailUrl:"",coverUrl:e.CoverURL,playInfoAry:i,textTracks:t.data.SubtitlesList}))}else l&&l({Code:u.ErrorCode.ServerAPIError,Message:t.httpStatusCode+"|"+t.code,sri:t.requestId})}else l&&l(c.createError("\u8f7bSaaS\u670d\u52a1\u83b7\u53d6\u6570\u636e\u5931\u8d25"))},function(e){e&&"string"==typeof e&&-1<e.indexOf("Invalid CORS request")?l&&l({Code:u.ErrorCode.ServerAPIError,Message:e}):l&&l(c.createError("\u8f7bSaaS\u670d\u52a1\u83b7\u53d6\u6570\u636e\u5931\u8d25"))})}},{"../../lib/constants":25,"../../lib/data":27,"../../lib/io":36,"./util":108}],102:[function(e,t,i){var r=e("./saasplayer"),n=e("./light"),o=e("../base/event/eventtype"),e=r.extend({init:function(e,t){r.call(this,e,t),this.service=n,this.loadByLightSaas()}});e.prototype.loadByLightSaas=function(e){var t=this._options,i={playAuth:t.mediaAuth,defaultDefinition:t.defaultDefinition};this.log("STARTFETCHDATA",{it:"lightSaasPlayAuth",pa:{playAuth:t.mediaAuth}}),this.loadData(i,e)},e.prototype.replayByMediaAuth=function(e){this.trigger(o.Private.Error_Hide),this.tag&&(this.tag.pause(),this.tag.removeAttribute("src"),this.tag.load()),this.setTextTracks([]),this.trigger(o.Private.UserTrackReset),this._options.source="",this._options.mediaAuth=e,this._isError=!1,this._duration=0,this._options.cover="",this._vodRetryCount=0,this._clearTimeout(),this.loadByLightSaas(!0)},t.exports=e},{"../base/event/eventtype":64,"./light":101,"./saasplayer":105}],103:[function(e,t,i){var r=e("../../lib/io"),l=e("../../lib/constants"),s=e("./signature"),u=e("./util"),c=e("../../lang/index"),d=e("../../lib/ua");var p=function(e,i){var t="";e.sort(function(e,t){e=parseInt(e.bitrate),t=parseInt(t.bitrate);return"desc"==i?t<e?-1:e<t?1:void 0:e<t?-1:t<e?1:void 0});for(var r=e.length,n=0;n<r;n++){var o=e[n],a=l.QualityLevels[o.definition],s="",s=void 0===a?o.bitrate:t==a?a+o.bitrate:a;o.desc=s,t=a}},h=function(e,i){var t="";e.sort(function(e,t){e=parseInt(e.width),t=parseInt(t.width);return"desc"==i?t<e?-1:e<t?1:void 0:e<t?-1:t<e?1:void 0});for(var r=e.length,n=0;n<r;n++){var o=e[n],a=l.QualityLevels[o.definition],s="",s=void 0===a?"":t==a?a+o.height:a;o.desc=s,t=a}};t.exports.getDataByAuthInfo=function(e,n,o,a){s.returnUTCDate(),s.randomUUID();var t=s.randomUUID(),t={AccessKeyId:e.accessId,Action:"PlayInfo",MediaId:e.vid,Formats:e.format,AuthInfo:e.authInfo,AuthTimeout:e.authTimeout||l.AuthKeyExpired,IncludeSnapshotList:e.includeSnapshotList,Rand:e.rand,SecurityToken:e.stsToken,Format:"JSON",Version:"2014-06-18",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",Terminal:d.IS_CHROME?"Chrome":d.IS_EDGE?"Edge":d.IS_IE11?"IE":d.IS_SAFARI?"Safari":d.IS_FIREFOX?"Firefox":"",SignatureNonce:t};e.hlsUriToken&&(e.MtsHlsUriToken=e.hlsUriToken),e.playConfig&&(t.PlayConfig=JSON.stringify(e.playConfig)),t=s.makeUTF8sort(t,"=","&")+"&Signature="+s.AliyunEncodeURI(s.makeChangeSiga(t,e.accessSecret)),t="https://mts."+e.domainRegion+".aliyuncs.com/?"+t,r.get(t,function(e){var t,i,r;e?(r=(t=JSON.parse(e)).PlayInfoList.PlayInfo,i="",(e=t.SnapshotList?t.SnapshotList.Snapshot:[])&&0<e.length&&(i=e[0].Url),r=function(e,t){for(var i=[],r=[],n=[],o=[],a=e.length-1;0<=a;a--){var s=e[a];("mp4"==s.format?r:"mp3"==s.format?n:"m3u8"==s.format?i:o).push(s)}return 0<n.length?(p(n,t),n):0<r.length?(h(r,t),r):0<i.length?(h(i,t),i):(h(o,t),o)}(r,n),o&&o({requestId:t.RequestId,urls:r,thumbnailUrl:i})):a&&a(u.createError("MPS\u83b7\u53d6\u53d6\u6570\u5931\u8d25"))},function(e){if(a){var t={Code:"",Message:c.get("Error_MTS_Fetch_Urls_Text")};try{t=JSON.parse(e)}catch(e){}a({Code:l.ErrorCode.ServerAPIError,Message:t.Code+"|"+t.Message,sri:t.RequestId||""})}})}},{"../../lang/index":21,"../../lib/constants":25,"../../lib/io":36,"../../lib/ua":44,"./signature":106,"./util":108}],104:[function(e,t,i){var r=e("./saasplayer"),n=(e("../../lib/constants"),e("./mts")),e=r.extend({init:function(e,t){r.call(this,e,t),this.service=n,this.loadByMts()}});e.prototype.loadByMts=function(e){var t={vid:this._options.vid,accessId:this._options.accId,accessSecret:this._options.accSecret,stsToken:this._options.stsToken,domainRegion:this._options.domainRegion,authInfo:this._options.authInfo,format:this._options.format,includeSnapshotList:this._options.includeSnapshotList||!1,defaultDefinition:this._options.defaultDefinition,authTimeout:this._options.authTimeout,hlsUriToken:this._options.hlsUriToken,playConfig:this._options.playConfig};this.loadData(t,e)},e.prototype.replayByVidAndAuthInfo=function(e,t,i,r,n,o){this.trigger("error_hide"),this._options.source="",this._isError=!1,this._duration=0,this._options.cover="",this._vodRetryCount=0,this._clearTimeout(),this.reloadNewVideoInfo(e,t,i,r,n,o)},e.prototype.reloadNewVideoInfo=function(e,t,i,r,n,o){if(this.trigger("error_hide"),this._options.source="",e&&(this._options.vid=e,this._options.accId=t,this._options.accessSecret=i,this._options.stsToken=r,this._options.domainRegion=o,this._options.authInfo=n),!(this._options.vid&&this._options.accId&&this._options.accessSecret&&this._options.stsToken&&this._options.domainRegion&&this._options.authInfo))throw new Error("\u9700\u8981\u63d0\u4f9bvid\u3001accId\u3001accessSecret\u3001stsToken\u3001domainRegion\u548cauthInfo\u53c2\u6570");this.log("STARTFETCHDATA",{it:"mps",pa:{vid:e}}),this.loadByMts(!0)},t.exports=e},{"../../lib/constants":25,"./mts":103,"./saasplayer":105}],105:[function(e,t,i){var p=e("../base/player"),r=e("../audio/audioplayer"),o=(e("../../lib/event"),e("../../lib/io")),h=e("../../lib/constants"),n=e("./signature"),a=e("./authkeyexpiredhandle"),f=e("../hls/hlsinjector"),g=e("../flv/flvinjector"),y=e("../drm/drminjector"),_=(e("../../lib/cookie"),e("../../lang/index")),v=e("../../lib/ua"),s=e("../../config"),m=e("../../lib/playerutil"),b=e("../base/event/eventtype"),l=e("../../protected/anti-injector-protected"),S=p.extend({init:function(e,t){l(t,this),this._authKeyExpiredHandle=new a(this),p.prototype._videoCreateEl||(p.prototype._videoCreateEl=p.prototype.createEl),"mp3"==t.format?(t.height="auto",t.mediaType="audio",p.prototype.createEl=r.prototype.createEl,r.call(this,e,t),S.prototype.play=p.prototype.play,S.prototype.pause=p.prototype.pause,S.prototype.initPlay=p.prototype.initPlay,S.prototype.replay=p.prototype.replay,S.prototype.stop=p.prototype.stop,S.prototype.seek=p.prototype.seek):(p.prototype.createEl=p.prototype._videoCreateEl,t._native=!1,p.call(this,e,t))}});S.prototype.loadData=function(e,t){var i,r,n;"undefined"!=typeof _sce_r_skjhfnck||""!=e.format&&"m3u8"!=e.format&&1!=this._options.encryptType?this._loadData(e,t):(i="aliplayer-vod-min.js",r="",r=s.domain?"https://"+s.domain+"/de/prismplayer/"+s.h5Version+"/hls/"+i:"/build/hls/"+i,n=this,o.loadJS(r,function(){n._loadData(e,t)}))},S.prototype._loadData=function(s,l){var u,c=(new Date).getTime(),d=this;this._urls=[],this._currentPlayIndex=0,this._retrySwitchUrlCount=0,this._authKeyExpiredHandle.clearTick(),""!=s.format&&"m3u8"!=s.format||1!=this._options.encryptType?s.rand=n.randomUUID():(u=_sce_r_skjhfnck(),s.rand=_sce_lgtcaygl(u,d._vdnct6f)),this._options.thumbnailUrl&&(s.thumbnailUrl=this._options.thumbnailUrl),this.trigger(b.Private.H5_Loading_Show),this.service.getDataByAuthInfo(s,this._options.qualitySort,function(e){if(d.trigger(b.Private.PlayInfoLoaded,e),e.userId&&(d._options.from=e.userId),e.videoId&&d._monitor&&d._monitor.updateLightSaasVideoId(e.videoId),e.textTracks&&e.textTracks.length&&(t=m.unqiueTextTracks(e.textTracks),d.trigger(b.Private.TextTrackFounded,{from:"saas",textTracks:t})),e.urls&&0==e.urls.length)d._mtsError_message(d,{Code:h.ErrorCode.URLsIsEmpty,Message:_.get("Error_Vod_URL_Is_Empty_Text")+(s.format?"(format:"+s.format+")":"")},"");else{d.log("COMPLETEFETCHDATA",{cost:(new Date).getTime()-c,mi:JSON.stringify(function(e){for(var t=[],i=0;i<e.length;i++)t.push({width:e[i].width,height:e[i].height,definition:e[i].definition,format:e[i].format,encryptionType:e[i].encryptionType,duration:e[i].duration});return t}(e.urls))}),d._urls=e.urls,d._currentPlayIndex=m.findSelectedStreamLevel(d._urls,s.defaultDefinition);var t=(i=e.urls[d._currentPlayIndex]).Url;if(d._vodDuration=i.duration||0,d._options.source=t,d.encType="",d.trigger(b.Private.PREPARE,i.definition),d.UI.cover&&e.coverUrl&&!d._options.cover&&d.setCover(e.coverUrl),m.isHls(t))if(e&&e.playInfoAry&&0<e.playInfoAry.length&&"Widevine-FairPlay"==e.playInfoAry[0].EncryptType)y.inject(d,S,p.prototype,d._options);else{if(e.encryptUrlArr&&0<e.encryptUrlArr.length)for(var i,r,n=[],o=0;o<e.encryptUrlArr.length;++o)(i=e.encryptUrlArr[o]).encryptionType===h.EncryptionType.Private&&(r=_sce_dlgtqred(u,i.rand,i.plaintext),n.push({url:i.Url,secData:r}));else if(ecData="",i.encryptionType==h.EncryptionType.Private){d.encType=i.encryptionType;var a=m.checkSecuritSupport();if(a)return void d._mtsError_message(d,{Code:h.ErrorCode.EncrptyVideoNotSupport,Message:a,display_msg:a},"");n=_sce_dlgtqred(u,i.rand,i.plaintext)}d._hls&&(d._hls.destroy(),d._hls=null),f.inject(d,S,p,d._options,n)}else m.isFlv(t)?g.inject(d,S,p,d._options):m.isDash(t)?(console.log("isDash"),y.inject(d,S,p,d._options)):d._player._executeReadyCallback();d._authKeyExpiredHandle.tick(h.AuthKeyRefreshExpired),d.trigger(b.Private.SourceLoaded,i),d.initPlay(l),d.trigger(b.Private.ChangeURL,{from:"saas"}),e.thumbnailUrl&&d._thumbnailService.get(e.thumbnailUrl);a=d._player._isFlv,t=-1<d._player.getOptions().source.indexOf("mp4");1==d._player.encType||a||t||(v.IS_IOS||v.IS_MAC_SAFARI||v.IS_X5||v.IS_EDGE)&&(d._player._executeReadyCallback(),d._urls.length&&d.trigger(b.Private.SourceLoaded,i))}},function(e){d._mtsError_message(d,e,"")})},S.prototype._changeStream=function(e,t){this._urls.length>e&&(this._loadByUrlInner(this._urls[e].Url,this.getCurrentTime(),!0),this._currentPlayIndex=e,this.trigger(b.Private.QualityChange,t||_.get("Quality_Change_Fail_Switch_Text")))},S.prototype._getLowerQualityLevel=function(){if(0==this._urls.length||-1==this._currentPlayIndex)return"";if("asc"==this.options().qualitySort){if(0<this._currentPlayIndex)return{item:this._urls[this._currentPlayIndex-1],index:this._currentPlayIndex-1}}else if(this._currentPlayIndex<this._urls.length-1)return{item:this._urls[this._currentPlayIndex+1],index:this._currentPlayIndex+1};return""},S.prototype._mtsError_message=function(e,t,i){var r=e;r._serverRequestId=t.sri,r.trigger(b.Private.H5_Loading_Hide);var n=t.Code||"OTHER_ERR_CODE",o=t.Message||"OTHER_ERR_MSG",a=(h.ErrorCode.ServerAPIError,t.display_msg||"");-1<o.indexOf("InvalidParameter.Rand")||-1<o.indexOf('"Rand" is not valid.')?(h.ErrorCode.EncrptyVideoNotSupport,a=_.get("Error_Not_Support_encrypt_Text")):-1<o.indexOf("SecurityToken.Expired")?(h.ErrorCode.AuthKeyExpired,a=_.get("Error_Playauth_Expired_Text")):-1<o.indexOf("InvalidVideo.NoneStream")?(h.ErrorCode.URLsIsEmpty,a=_.get("Error_Fetch_NotStream")+"("+r._options.format+"|"+r._options.definition+")"):-1<o.indexOf("DataNotFound")&&(h.ErrorCode.MediaNotFound,a=_.get("Error_Fetch_Media_Not_Found"));e=r._options.vid||"",r._options.from,n={mediaId:e,mediaAuth:r._options.mediaAuth||"",error_code:n,error_msg:o};t.sri&&(n.sri=t.sri),r.logError(n),n.display_msg=(a||_.get("Error_Vod_Fetch_Urls_Text"))+"</br>"+o,r.trigger("error",n),console.log("PrismPlayer Error: "+i+"! error_msg :"+o+";")},t.exports=S},{"../../config":13,"../../lang/index":21,"../../lib/constants":25,"../../lib/cookie":26,"../../lib/event":30,"../../lib/io":36,"../../lib/playerutil":41,"../../lib/ua":44,"../../protected/anti-injector-protected":120,"../audio/audioplayer":62,"../base/event/eventtype":64,"../base/player":84,"../drm/drminjector":90,"../flv/flvinjector":93,"../hls/hlsinjector":95,"./authkeyexpiredhandle":99,"./signature":106}],106:[function(e,c,t){var r=e("crypto-js/hmac-sha1"),n=e("crypto-js/enc-base64"),o=e("crypto-js/enc-utf8");c.exports.randomUUID=function(){for(var e=[],t="0123456789abcdef",i=0;i<36;i++)e[i]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")},c.exports.returnUTCDate=function(){var e=new Date,t=e.getUTCFullYear(),i=e.getUTCMonth(),r=e.getUTCDate(),n=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),e=e.getUTCMilliseconds();return Date.UTC(t,i,r,n,o,a,e)},c.exports.AliyunEncodeURI=function(e){e=encodeURIComponent(e);return e=(e=(e=e.replace("+","%2B")).replace("*","%2A")).replace("%7E","~")},c.exports.makesort=function(e,t,i){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var r=[];for(s in e)r.push(s);for(var n=r.sort(),o="",a=n.length,s=0;s<a;s++)""==o?o=n[s]+t+e[n[s]]:o+=i+n[s]+t+e[n[s]];return o},c.exports.makeUTF8sort=function(e,t,i){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");var r=[];for(s in e)r.push(s);for(var n=r.sort(),o="",a=n.length,s=0;s<a;s++){var l=c.exports.AliyunEncodeURI(n[s]),u=c.exports.AliyunEncodeURI(e[n[s]]);""==o?o=l+t+u:o+=i+l+t+u}return o},c.exports.makeChangeSiga=function(e,t,i){if(!e)throw new Error("PrismPlayer Error: vid should not be null!");return n.stringify(r((i=i||"GET")+"&"+c.exports.AliyunEncodeURI("/")+"&"+c.exports.AliyunEncodeURI(c.exports.makeUTF8sort(e,"=","&")),t+"&"))},c.exports.ISODateString=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"Z"},c.exports.encPlayAuth=function(e){if(!(e=o.stringify(n.parse(e))))throw new Error("playuth\u53c2\u6570\u89e3\u6790\u4e3a\u7a7a");return JSON.parse(e)},c.exports.encRsa=function(){},c.exports.stringToArray=function(e){for(var t=new ArrayBuffer(2*e.length),i=new Uint16Array(t),r=0,n=e.length;r<n;r++)i[r]=e.charCodeAt(r);return i},c.exports.Uint8ArrayToString=function(e){for(var t="",i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},c.exports.arrayToString=function(e){e=new Uint16Array(e.buffer);return String.fromCharCode.apply(null,e)},c.exports.base64DecodeUint8Array=function(e){var t=window.atob(e),r=t.length,n=new Uint8Array(new ArrayBuffer(r));for(i=0;i<r;i++)n[i]=t.charCodeAt(i);return n},c.exports.base64EncodeUint8Array=function(e){for(var t,i,r,n,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",u=0;u<e.length;)r=(a=e[u++])>>2,n=(3&a)<<4|(t=u<e.length?e[u++]:Number.NaN)>>4,o=(15&t)<<2|(i=u<e.length?e[u++]:Number.NaN)>>6,a=63&i,isNaN(t)?o=a=64:isNaN(i)&&(a=64),l+=s.charAt(r)+s.charAt(n)+s.charAt(o)+s.charAt(a);return l}},{"crypto-js/enc-base64":2,"crypto-js/enc-utf8":3,"crypto-js/hmac-sha1":4}],107:[function(e,t,i){var o=e("../../lib/io"),a=e("../../lib/constants"),s=e("./signature"),l=e("./util"),u=e("../../lang/index");t.exports.getPlayAuth=function(e,t,i,r){s.randomUUID();var n=s.randomUUID(),n={AccessKeyId:e.accessKeyId,Action:"GetVideoPlayAuth",VideoId:e.vid,AuthTimeout:a.AuthInfoExpired,SecurityToken:e.securityToken,Format:"JSON",Version:"2017-03-21",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:n},n=s.makeUTF8sort(n,"=","&")+"&Signature="+s.AliyunEncodeURI(s.makeChangeSiga(n,e.accessKeySecret)),n="https://vod."+e.region+".aliyuncs.com/?"+n;o.get(n,function(e){e?(e=JSON.parse(e),t&&t(e.PlayAuth)):i&&i(l.createError("\u83b7\u53d6\u89c6\u9891\u64ad\u653e\u51ed\u8bc1\u5931\u8d25"))},function(e){if(i){var t={Code:"",Message:u.get("Fetch_Playauth_Error")};try{(t=JSON.parse(e)).Code}catch(e){}i({Code:a.ErrorCode.ServerAPIError,Message:t.Code+"|"+t.Message,sri:t.RequestId,display_msg:u.get("Fetch_Playauth_Error",r)})}})}},{"../../lang/index":21,"../../lib/constants":25,"../../lib/io":36,"./signature":106,"./util":108}],108:[function(e,u,t){var i=e("../../lib/constants");u.exports.createError=function(e,t){return{requestId:"",code:t||"",message:e}},u.exports.getItem=function(e){var t={};return t.width=e.Width,t.height=e.Height,t.definition=e.Definition,t.Url=e.PlayURL,t.format=e.Format,t.desc=i.QualityLevels[t.definition],t.encryptionType=i.VodEncryptionType[e.EncryptType],t.plaintext=e.Plaintext,t.rand=e.Rand,t.encrypt=e.Encrypt,t.duration=e.Duration,t.bitrate=e.Bitrate,t},u.exports.objectPlayerMessageSort=function(e,t){for(var i=[],r=[],n=[],o=[],a=e.length-1;0<=a;a--){var s=e[a],s=u.exports.getItem(s);("mp4"==s.format?r:"mp3"==s.format?n:"m3u8"==s.format?i:o).push(s)}var l=[],l=0<n.length?n:0<r.length?r:0<i.length?i:o;return"asc"==t&&l.reverse(),l}},{"../../lib/constants":25}],109:[function(e,t,i){var r=e("../../lib/io"),n=e("../../lib/constants"),o=e("./signature"),d=e("./util"),a=e("../../config"),p=e("../../lang/index");t.exports.getDataByAuthInfo=function(s,l,u,c){o.randomUUID();var e=o.randomUUID(),e={AccessKeyId:s.accessId,Action:"GetPlayInfo",VideoId:s.vid,Formats:s.format,AuthTimeout:s.authTimeout||n.AuthKeyExpired,Rand:s.rand,SecurityToken:s.stsToken,StreamType:s.mediaType,Format:"JSON",Version:"2017-03-21",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:e,PlayerVersion:a.h5Version,Channel:"HTML5"};"AUTO"===s.definition?e.ResultType="Multiple":s.definition&&(e.Definition=s.definition),s.authInfo&&(e.AuthInfo=s.authInfo),s.outputType&&(e.OutputType=s.outputType),s.playConfig&&(e.PlayConfig=JSON.stringify(s.playConfig)),s.reAuthInfo&&(e.ReAuthInfo=JSON.stringify(s.reAuthInfo)),e=o.makeUTF8sort(e,"=","&")+"&Signature="+o.AliyunEncodeURI(o.makeChangeSiga(e,s.accessSecret)),e="https://vod."+s.domainRegion+".aliyuncs.com/?"+e,r.get(e,function(e){if(e){var t=JSON.parse(e),i="",e=t.VideoBase.ThumbnailList;e&&e.Thumbnail&&0<e.Thumbnail.length?i=e.Thumbnail[0].URL:s.thumbnailUrl&&(i=String(s.thumbnailUrl));for(var r=t.PlayInfoList.PlayInfo,n=[],o=[],a=r.length-1;0<=a;--a)"AUTO"===r[a].Definition?n=[r.splice(a,1)[0]]:1===r[a].Encrypt&&o.push(r[a]);e=null,o=0===n.length?(e=d.objectPlayerMessageSort(r,l),[]):(e=d.objectPlayerMessageSort(n),d.objectPlayerMessageSort(o));e&&u&&u({requestId:t.RequestId,urls:e,encryptUrlArr:o,thumbnailUrl:i,coverUrl:t.VideoBase.CoverURL,playInfoAry:r})}else c&&c(d.createError("\u70b9\u64ad\u670d\u52a1\u83b7\u53d6\u6570\u636e\u5931\u8d25"))},function(e){if(c){var t={Code:"",Message:p.get("Error_Vod_Fetch_Urls_Text")};try{t=JSON.parse(e)}catch(e){}c({Code:n.ErrorCode.ServerAPIError,Message:t.Code+"|"+t.Message,sri:t.RequestId||""})}})}},{"../../config":13,"../../lang/index":21,"../../lib/constants":25,"../../lib/io":36,"./signature":106,"./util":108}],110:[function(e,t,i){var r=e("./saasplayer"),u=e("../../lib/constants"),n=e("./vod"),c=e("./signature"),o=(e("./authkeyexpiredhandle"),e("./ststoken"),e("../../lib/io")),a=e("../../config"),e=r.extend({init:function(e,t){r.call(this,e,t),this.service=n,this.loadByVod()}});e.prototype.loadByVod=function(e){var t,i,r;"undefined"!=typeof _pa_n4lto7xi?this._loadByVod(e):(t="aliplayer-vod-p-min.js",i="",i=a.domain?"https://"+a.domain+"/de/prismplayer/"+a.h5Version+"/hls/"+t:"/build/hls/"+t,r=this,o.loadJS(i,function(){r._loadByVod(e)}))},e.prototype._loadByVod=function(e){var t="",i="",r="",n="",o="";if(this._options.accessKeyId&&this._options.accessKeySecret)t=this._options.accessKeyId,i=this._options.accessKeySecret,r=this._options.securityToken,n=this._options.region,this.log("STARTFETCHDATA",{it:"sts",pa:{vid:this._options.vid}});else{try{var a=_pa_n4lto7xi(this._options.playauth);this._options.playauth!==a&&(this._vdnct6f=!0);var s=c.encPlayAuth(a),t=s.AccessKeyId,i=s.AccessKeySecret,r=s.SecurityToken,n=s.Region,o=s.AuthInfo}catch(e){console.log("e",e);var l={Code:u.ErrorCode.PlayauthDecode,Message:"playauth decoded failed.",displayMessage:"playauth\u89e3\u6790\u9519\u8bef"};return void this._mtsError_message(this,l,a)}this._options.from=s.CustomerId||"",this.log("STARTFETCHDATA",{it:"playAuth",pa:{vid:this._options.vid}})}this._loadByVodBySTS(t,i,r,n,o,e)},e.prototype.replayByVidAndPlayAuth=function(e,t){this.trigger("error_hide"),this._options.source="",this._options.vid=e,this._options.playauth=t,this._isError=!1,this._duration=0,this._options.cover="",this._vodRetryCount=0,this._clearTimeout(),this.loadByVod(!0)},e.prototype.updateSourcesByVidAndPlayAuth=function(e,t){var i,r,n;"undefined"!=typeof _pa_n4lto7xi?this._updateSourcesByVidAndPlayAuth(e,t):(i="aliplayer-vod-p-min.js",r="",r=a.domain?"https://"+a.domain+"/de/prismplayer/"+a.h5Version+"/hls/"+i:"/build/hls/"+i,n=this,o.loadJS(r,function(){n._updateSourcesByVidAndPlayAuth(e,t)}))},e.prototype._updateSourcesByVidAndPlayAuth=function(e,t){if(e==this._options.vid){this._options.vid=e,this._options.playauth=t;try{var i=_pa_n4lto7xi(this._options.playauth);this._options.playauth!==i&&(this._vdnct6f=!0);var r=c.encPlayAuth(i)}catch(e){return void console.log("playauth\u89e3\u6790\u9519\u8bef")}r={vid:e,accessId:r.AccessKeyId,accessSecret:r.AccessKeySecret,stsToken:r.SecurityToken,domainRegion:r.Region,authInfo:r.AuthInfo,playDomain:r.PlayDomain,format:this._options.format,mediaType:this._options.mediaType};this._authKeyExpiredHandle.clearTick();var n=this;this.service.loadData(r,this._options.qualitySort,function(e){n._serverRequestId=e.requestId,0!=e.urls.length&&(n._urls=e.urls),n._authKeyExpiredHandle.tick(u.AuthKeyRefreshExpired)},function(e){console.log(e)})}else console.log("\u4e0d\u80fd\u66f4\u65b0\u5730\u5740\uff0cvid\u548c\u64ad\u653e\u4e2d\u7684\u4e0d\u4e00\u81f4")},e.prototype.reloaduserPlayInfoAndVidRequestMts=function(e,t){this.replayByVidAndPlayAuth(e,t,accessSecret)},e.prototype._loadByVodBySTS=function(e,t,i,r,n,o){r={vid:this._options.vid,accessId:e,accessSecret:t,stsToken:i,authInfo:n,domainRegion:r,format:this._options.format,mediaType:this._options.mediaType,definition:this._options.definition,defaultDefinition:this._options.defaultDefinition,authTimeout:this._options.authTimeout,outputType:this._options.outputType,playConfig:this._options.playConfig,reAuthInfo:this._options.reAuthInfo};this.loadData(r,o)},t.exports=e},{"../../config":13,"../../lib/constants":25,"../../lib/io":36,"./authkeyexpiredhandle":99,"./saasplayer":105,"./signature":106,"./ststoken":107,"./vod":109}],111:[function(e,t,i){var r=e("../base/event/eventtype"),e=function(t){this._player=t,this._video=t.tag;var i=this;this._isCreated=!1,this._canPlayTriggered=!1,this._defaultTrack="",t.on(r.Private.ChangeURL,function(){i._isCreated=!1,i._canPlayTriggered=!1,i._defaultTrack=""}),t.on(r.Player.CanPlay,function(){var e;i._player._drm||i._canPlayTriggered||((e=i._getTracks())&&(i._isCreated=!0,i._player._options.isVBR||i._hls||(t.trigger(r.Player.AudioTrackReady,e),i._notifyDefaultValue(e))),i._canPlayTriggered=!0)}),t.on(r.Player.AudioTrackUpdated,function(e){i._isCreated||(e=i._getTracks(e.paramData.audioTracks))&&(i._isCreated=!0,t.trigger(r.Player.AudioTrackReady,e),i._notifyDefaultValue(e))})};e.prototype._notifyDefaultValue=function(e){!this._defaultTrack&&0<e.length&&(this._defaultTrack=e[0]),this._defaultTrack&&this._player.trigger(r.Private.SelectorUpdateList,{type:"audio",text:this._defaultTrack.text})},e.prototype.support=function(){return!!this._video.audioTracks},e.prototype._getTracks=function(e){if(!this.support()&&!e)return null;for(var t=[],i=(e=this._video&&this._video.audioTracks&&(!e||0==e.length)?this._video.audioTracks:e)?e.length:0,r=0;r<i;r++){var n=e[r],o={value:n.id,text:n.label||n.name||n.language};(n.default||n.enabled)&&(this._defaultTrack=o),t.push(o)}return t},e.prototype.switch=function(e){if(this._player._hls)this._player._hls.audioTrack=+e;else for(var t=this._video.audioTracks?this._video.audioTracks.length:0,i=0;i<t;i++){var r=this._video.audioTracks[i];r.id==e?r.enabled=!0:r.enabled=!1}},e.prototype.dispose=function(){this._player=null},t.exports=e},{"../base/event/eventtype":64}],112:[function(e,t,i){var a=e("../base/event/eventtype"),r=(e("../../lib/event"),e("../../lib/dom")),s=e("../../lib/ua"),u=e("../../lib/cookie"),c=e("../../lib/constants"),n=e("../../ui/component/util"),e=function(e){this._video=e.tag,this._player=e,this._isCreated=!1,this._backupCC="",this.tracks=[],this._defaultTrack="",this._currentValue="",this._switchTimer=null,this._storedTracks=[];var o=this;e.on(a.Player.LevelsLoaded,function(e){if(s.IS_MAC_SAFARI||s.IS_IOS)if(e&&e.paramData&&e.paramData.subtitles&&e.paramData.subtitles.length){for(var t=e.paramData.subtitles||[],i=[],r=0;r<t.length;r++){var n=t[r];n.vttUrl=n.url&&n.url.replace(".m3u8",".vtt"),i.push(n)}o._storedTracks=i}else o._resotreTracks()}),e.on(a.Private.SafariDrmLevelSwitch,function(){o._resotreTracks()}),e.on(a.Private.ChangeURL,function(e){e&&e.paramData&&"saas"===e.paramData.from||(o._disabledTracks(),o._isCreated=!1,o._defaultTrack="",o._backupCC="")}),e.on(a.Private.VttClearTracks,function(){o.switch("off"),o._disabledTracks(),o._isCreated=!1,o._defaultTrack={value:"off",text:"Off"},o.tracks=[o._defaultTrack],e.trigger(a.Private.SelectorGenerateList,{type:"cc"}),e.trigger(a.Private.CCStateChanged,{value:"off",lang:""})}),e.on(a.Player.CanPlay,function(){o._isCreated||(o.tracks=o._getTracks(),e.trigger(a.Player.TextTrackReady,o.tracks),e.trigger(a.Private.CCReset)),o._isCreated&&!o._player._setDefaultCC||!o._defaultTrack||(e.trigger(a.Private.SelectorUpdateList,{type:"cc",text:o._defaultTrack.text}),o.switch(o._defaultTrack.value),o._player._setDefaultCC=!1,o._isCreated=!0)}),s.os.ios&&parseFloat(s.os.version)<=15.1&&r.addCssByStyle("video::-webkit-media-text-track-container{position: relative; top: -44px !important;}"),"always"===e.getOptions().controlBarVisibility&&r.addCssByStyle("video::-webkit-media-text-track-container{transform: translateY(-44px);}");var t=n.throttle(function(){e._vttBroker.enabled||r.addCssByStyle("video::-webkit-media-text-track-container{transform: translateY(-44px);}")},100);e.on(a.Private.ShowBar,t);t=n.throttle(function(){e._vttBroker.enabled||r.addCssByStyle("video::-webkit-media-text-track-container{transform: none;}")},100);e.on(a.Private.HideBar,t),e.on(a.Private.CCReset,function(){o._updateSelectorList()})};e.prototype._adaptiveCueStype=function(){var e,t=-10;s.IS_SAFARI?(t=-65,(e=this._player.fullscreenService)&&e.getIsFullScreen()&&(t=-95)):s.IS_MOBILE&&(t=-30),r.addCssByStyle("video::-webkit-media-text-track-container{transform: translateY("+t+"px) !important;}")},e.prototype.close=function(){for(var e=this.getTextTracks(),t=e.length,i=0;i<t;i++){var r=e[i];"expired"!=r.mode&&("showing"==r.mode&&(this._backupCC=r),r.mode="disabled")}this._player.trigger(a.Private.VttHide)},e.prototype.open=function(){var e,t,i;return!this.tracks||this.tracks.length<2||(t=this._backupCC?this._backupCC.language:"",e=this._backupCC?this._backupCC.label:"",this.tracks.forEach(function(e){t===e.value&&(i=!0)}),(t=!i?e="":t)||(t=this.tracks[1].value,e=this.tracks[1].text),this.switch(t)),{label:e,language:t}},e.prototype.getCurrentSubtitle=function(){return this._currentValue},e.prototype._getTracks=function(){var e=this.getTextTracks(),t=e.length;this._defaultTrack={value:"off",text:"Off"};for(var i=[this._defaultTrack],r=u.get(c.SelectedCC),n="",o=!1,a=0;a<t;a++){var s,l=e[a];"expired"!=l.mode&&("subtitles"!=l.kind&&"captions"!=l.kind||(s={value:l.language,text:l.label},l.default&&(this._defaultTrack=s,o=!0),s.value==r&&(n=s),i.push(s)))}return!o&&n&&(this._defaultTrack=n),i},e.prototype._disabledTracks=function(){for(var e=this.getTextTracks(),t=e.length,i=0;i<t;i++)e[i].mode="expired"},e.prototype.switch=function(e){var t=this._player;if(this.close(),"off"!=e)for(var i=this.getTextTracks(),r=i.length,n=0;n<r;n++){var o=i[n];o.language===e&&"expired"!=o.mode&&(i[n].mode="showing",t.trigger(a.Private.VttSwitchTrack,o.language))}else this.close();this._currentValue=e,t.trigger(a.Private.CCChanged,e)},e.prototype.updateUI=function(t){var e="on",i="";i=t?(this.tracks.find(function(e){return e.value===t})||{}).text||"":(e="off","Off"),player.trigger(a.Private.CCChanged,e),player.trigger(a.Private.CCStateChanged,{value:e,lang:i})},e.prototype.dispose=function(){this._player=null,this._switchTimer&&(clearTimeout(this._switchTimer),this._switchTimer=null)},e.prototype._patchSafariTracks=function(){var t=this;if(s.IS_MAC_SAFARI||s.IS_IOS){if(!(this._video&&this._video.textTracks?this._video.textTracks.length:0)){var e=!1;if(e=this._video.textTracks&&this._video.textTracks.length?!0:e)return;for(var i=0;i<this._storedTracks.length;i++){var r=this._storedTracks[i],n=r.vttUrl,o=document.createElement("track");o.src=n,o.kind="subtitles",o.label=r.name,o.srclang=r.lang,this._video.appendChild(o)}}this._switchTimer&&clearTimeout(this._switchTimer),this._switchTimer=setTimeout(function(){var e=t.getCurrentSubtitle();e&&"off"!==e&&t.switch(e)},1e3)}},e.prototype.getTextTracks=function(){var e=this._player,t=e.tag;return e._vttBroker.enabled&&e.getTextTracks?e.getTextTracks()||[]:t&&t.textTracks||[]},e.prototype._updateSelectorList=function(){var e=this._player;this.tracks=this._getTracks(),e.trigger(a.Private.SelectorGenerateList,{type:"cc",value:"Off"})},e.prototype._resotreTracks=function(){this._patchSafariTracks(),this.tracks=this._getTracks(),this._player.trigger(a.Player.TextTrackReady,this.tracks)},t.exports=e},{"../../lib/constants":25,"../../lib/cookie":26,"../../lib/dom":29,"../../lib/event":30,"../../lib/ua":44,"../../ui/component/util":149,"../base/event/eventtype":64}],113:[function(e,t,i){var r=e("../../lib/playerutil");t.exports=[{service:e("./ccservice"),name:"_ccService",condition:!0},{service:e("./audiotrackservice"),name:"_audioTrackService"},{service:e("./qualityservice"),name:"_qualityService"},{service:e("./fullscreenservice"),name:"fullscreenService",condition:function(){return!0}},{service:e("./liveshiftservice"),name:"_liveshiftService",condition:function(){var e=this.options();return r.isLiveShift(e)}},{service:e("./thumbnailservice"),name:"_thumbnailService",condition:function(){return!0}},{service:e("./progressmarkerservice"),name:"_progressMarkerService",condition:function(){return!0}}]},{"../../lib/playerutil":41,"./audiotrackservice":111,"./ccservice":112,"./fullscreenservice":114,"./liveshiftservice":115,"./progressmarkerservice":116,"./qualityservice":117,"./thumbnailservice":118}],114:[function(e,t,i){var o=e("../../lib/ua"),n=e("../../lib/dom"),a=e("../../lib/event"),s=e("../base/event/eventtype"),l=e("../base/x5play"),u=e("../../lang/index"),c=function(){n.createEl("div");var e={},t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullScreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","webkitfullScreen"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","webkitIsFullScreen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","mozFullScreen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","MSFullScreen"]],i=!1;if(o.IS_IOS&&(e.requestFn="webkitEnterFullscreen",e.cancelFn="webkitExitFullscreen",e.fullscreenElement="webkitFullscreenElement",e.eventName="webkitfullscreenchange",e.isFullScreen="webkitDisplayingFullscreen",document[e.requestFn]&&(i=!0)),!i){for(var r=0;r<5;r++)if(t[r][1]in document){e.requestFn=t[r][0],e.cancelFn=t[r][1],e.fullscreenElement=t[r][2],e.eventName=t[r][4],e.isFullScreen=t[r][6];break}"requestFullscreen"in document?e.requestFn="requestFullscreen":"webkitRequestFullscreen"in document?e.requestFn="webkitRequestFullscreen":"webkitRequestFullScreen"in document?e.requestFn="webkitRequestFullScreen":"webkitEnterFullscreen"in document?e.requestFn="webkitEnterFullscreen":"mozRequestFullScreen"in document?e.requestFn="mozRequestFullScreen":"msRequestFullscreen"in document&&(e.requestFn="msRequestFullscreen"),"fullscreenchange"in document?e.eventName="fullscreenchange":"webkitfullscreenchange"in document||"webkitfullscreenchange"in document||"webkitfullscreenchange"in document?e.eventName="webkitfullscreenchange":"mozfullscreenchange"in document?e.eventName="mozfullscreenchange":"MSFullscreenChange"in document&&(e.eventName="MSFullscreenChange"),"fullScreen"in document?e.isFullScreen="fullScreen":"webkitfullScreen"in document?e.isFullScreen="webkitfullScreen":"webkitIsFullScreen"in document?e.isFullScreen="webkitIsFullScreen":"webkitDisplayingFullscreen"in document?e.isFullScreen="webkitDisplayingFullscreen":"mozFullScreen"in document?e.isFullScreen="mozFullScreen":"mozfullScreen"in document?e.isFullScreen="mozfullScreen":"MSFullScreen"in document&&(e.isFullScreen="MSFullScreen"),"fullscreenElement"in document?e.fullscreenElement="fullscreenElement":"webkitFullscreenElement"in document?e.fullscreenElement="webkitFullscreenElement":"webkitFullScreenElement"in document?e.fullscreenElement="webkitFullScreenElement":"mozFullScreenElement"in document?e.fullscreenElement="mozFullScreenElement":"msFullscreenElement"in document?e.fullscreenElement="msFullscreenElement":"MSFullscreenElement"in document&&(e.fullscreenElement="MSFullscreenElement")}return e.requestFn?e:null}(),e=function(e){this.isFullWindow=!1,this.isFullScreen=!1,this.isFullScreenChanged=!1,this._requestFullScreenTimer=null,this._cancelFullScreenTimer=null,this._player=e;var i=this,r=c;this._fullscreenChanged=function(e){var t;null==i._player||(e.target||e.srcElement)===(t=i._player.el())&&(e=document[r.fullscreenElement],i.isFullScreen=e===t,(i.isFullScreenChanged=!0)===i.isFullScreen?i._player.trigger(s.Player.RequestFullScreen):i._player.trigger(s.Player.CancelFullScreen))},r&&a.on(document,r.eventName,this._fullscreenChanged)};e.prototype.requestFullScreen=function(){if(!l.isAndroidX5()||!this._player.paused()){var e=c,t=this._player.el(),i=this;if(o.IS_IOS){t=this._player.tag;try{var r=t[e.requestFn]();r&&"function"==typeof r.catch&&r.catch(function(e){console.log(e)}),i._player.trigger(s.Player.RequestFullScreen)}catch(e){console.log(e)}return this}this.isFullScreen=!0,this.isFullScreenChanged=!1,this._requestFullScreenTimer=null,this._cancelFullScreenTimer||clearTimeout(this._cancelFullScreenTimer);i=this;if(e&&!this._player._options.enableMockFullscreen)try{var n=t[e.requestFn]();n&&"function"==typeof n.catch&&n.catch(function(e){console.log(e)}),this._requestFullScreenTimer=setTimeout(function(){i.isFullScreenChanged||(d.apply(i),i._player.trigger(s.Player.RequestFullScreen)),i._requestFullScreenTimer=null},1e3)}catch(e){console.log(e)}else d.apply(i),this._player.trigger(s.Player.RequestFullScreen);return this._player}this._player.trigger(s.Private.Info_Show,u.get("Play_Before_Fullscreen"))},e.prototype.cancelFullScreen=function(){var e=c;this.isFullScreen=!1,this.isFullScreenChanged=!1,this._cancelFullScreenTimer=null,this._requestFullScreenTimer||clearTimeout(this._requestFullScreenTimer);var t=this;if(e&&!this._player._options.enableMockFullscreen){try{var i=document[e.cancelFn]();i&&"function"==typeof i.catch&&i.catch(function(e){console.log(e)})}catch(e){console.log(e)}t._cancelFullScreenTimer=setTimeout(function(){t.isFullScreenChanged||(r.apply(t),t._player.trigger(s.Player.CancelFullScreen)),t._cancelFullScreenTimer=null},500),this._player.tag.paused||this._player.trigger(s.Player.Play)}else r.apply(t),this._player.trigger(s.Player.CancelFullScreen),this._player.tag.paused||this._player.trigger(s.Player.Play);return this._player},e.prototype.getIsFullScreen=function(){return this.isFullScreen},e.prototype.dispose=function(){this._player=null,c&&a.off(document,c.eventName,this._fullscreenChanged)};var d=function(){this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden",n.addClass(document.getElementsByTagName("body")[0],"prism-full-window")},r=function(){this.isFullWindow=!1,document.documentElement.style.overflow=this.docOrigOverflow,n.removeClass(document.getElementsByTagName("body")[0],"prism-full-window")};t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../lib/event":30,"../../lib/ua":44,"../base/event/eventtype":64,"../base/x5play":89}],115:[function(e,t,i){function n(e,t){if(e){var i=new Date(e),e=new Date(t),t=e.valueOf()/1e3-i.valueOf()/1e3;return{start:i,end:e,endDisplay:r.extractTime(e),totalTime:t}}}function o(e,t){t&&(e.currentTimestamp=t,e.currentTime=r.convertToDate(t),e.currentTimeDisplay=r.extractTime(e.currentTime),e.liveShiftStart=e.liveTimeRange.start,e.liveShiftEnd=e.liveTimeRange.end,e.liveShiftStartDisplay=r.extractTime(e.liveShiftStart),e.liveShiftEndDisplay=r.extractTime(e.liveShiftEnd),e.availableLiveShiftTime=t-e.liveShiftStart.valueOf()/1e3,e.timestampStart=r.convertToTimestamp(e.liveShiftStart),e.timestampEnd,r.convertToTimestamp(e.liveShiftEnd))}var a=e("../../lib/io"),r=e("../../lib/util"),s=e("../../lib/playerUtil"),l=e("../../lang/index"),u=e("../flv/flvinjector"),c=e("../hls/hlsinjector"),d=e("../../lib/constants"),p=e("../base/event/eventtype"),e=(e("../../lib/url"),function(t){this._player=t,this._isLiveShiftPlaying=!1;function e(){var e=t._options.source;this._originalPlayUrl=e,this._liveShiftUrl=t._options.liveTimeShiftUrl,this.liveTimeRange=n(t._options.liveStartTime,t._options.liveOverTime),this.availableLiveShiftTime=0,this.seekTime=-1}var r=this;e.call(this),t.liveShiftSerivce={setLiveTimeRange:function(e,t){r.setLiveTimeRange(e,t)},queryLiveShift:function(e,t,i){r.queryLiveShift(e,t,i)},isLiveShiftPlaying:function(){return r._isLiveShiftPlaying}},t.on(p.Private.ChangeURL,function(){e.call(r)})});e.prototype.validate=function(){return!(this.liveTimeRange.start>=this.liveTimeRange.end)},e.prototype.switchToLive=function(){this.seekTime=-1;var e=this._originalPlayUrl,t=this._player._options.liveShiftSource,i=this._player._options.source;s.isHls(i)&&s.isFlv(e)&&t&&s.isHls(t)&&(this._player._hls&&this._player._destroyHls(),i=this._player._superType,t=this._player._Type,this._player._options._autoplay=!0,u.inject(this._player,t,i,this._player._options,"",!0)),this._player._loadByUrlInner(e,null,!0),this._isLiveShiftPlaying=!1,this._player.trigger(p.Private.LiveShiftSwitchToLive)},e.prototype.getBaseTime=function(){this.liveShiftStartDisplay;return-1==this.seekTime?r.parseTime(this.currentTimeDisplay):r.parseTime(this.liveShiftStartDisplay)+this.seekTime},e.prototype.getSourceUrl=function(e,t){var i=this._originalPlayUrl;if(this.availableLiveShiftTime<e)return i;this._isLiveShiftPlaying=!0,e=parseInt(e);i=(i=this._switchLiveShiftPlayer(t))&&this._cleanUrl(i),e=parseInt(this.currentTimestamp)-e;return-1===(i=-1==i.indexOf("?")?i+"?lhs_start_unix_s_0="+e:i+"&lhs_start_unix_s_0="+e).indexOf("aliyunols=on")&&(i+="&aliyunols=on"),-1===i.indexOf("continue=on")&&(i+="&continue=on"),i},e.prototype._cleanUrl=function(e){var t=e;if(-1===t.indexOf("?"))return t;e=t.split("?");return(t=e[1])&&(t=0===(t=t.replace(/&?lhs_start_unix_s_0=[0-9]*/g,"")).indexOf("&")?t.replace("&",""):t)?e[0]+"?"+t:e[0]},e.prototype._switchLiveShiftPlayer=function(e){var t=this._originalPlayUrl,i=this._player._options.liveShiftSource,r=this._player._options.source;if(s.isHls(r))t=r;else if(s.isFlv(t)&&i&&s.isHls(i)){this._player._flv&&this._player._destroyFlv();var n=this._player._superType,r=this._player._Type;return this._player._options._autoplay=!0,c.inject(this._player,r,n,this._player._options,"",!0),i}return t},e.prototype.getTimeline=function(t,r){if(this._player.trigger(p.Private.LiveShiftQueryCompleted),!this._liveShiftUrl)return o(this,(new Date).valueOf()/1e3),void(t&&t());var i=this;this.queryLiveShift(this._liveShiftUrl,function(e){e?0==(e=e).retCode?(o(i,e.content.current),t&&t()):r({Code:d.ErrorCode.ServerAPIError,Message:e.retCode+"|"+e.description+"|"+e.content}):console.log("\u83b7\u53d6\u76f4\u64ad\u65f6\u79fb\u6570\u636e\u5931\u8d25")},function(e){if(r&&e){var t={};if(e){if("string"==typeof e&&-1<e.indexOf("403 Forbidden"))t.Code=d.ErrorCode.AuthKeyExpired,t.Message="Query liveshift failed:"+l.get("Error_AuthKey_Text");else{var i,t=e;try{i=JSON.parse(e)}catch(e){}i&&(t.Code=d.ErrorCode.ServerAPIError,t.Message=i.retCode+"|"+i.description+"|"+i.content)}r(t)}}})},e.prototype.start=function(e,t){function i(){r._loopHandler&&clearTimeout(r._loopHandler),r._loopHandler=setTimeout(function(){r.getTimeline(function(){},t),i()},e)}var r=this;r.getTimeline(function(e){r._localLiveTimeHandler||r.tickLocalLiveTime()},t),i()},e.prototype.tickLocalLiveTime=function(){var t=this;(function e(){t._localLiveTimeHandler=setTimeout(function(){t.currentTimestamp++,o(t,t.currentTimestamp),t._player.trigger(p.Private.LiveShiftQueryCompleted),e()},1e3)})()},e.prototype.setLiveTimeRange=function(e,t){e=e||this._player._options.liveStartTime,t=t||this._player._options.liveOverTime,this.liveTimeRange=n(e,t),o(this,this.currentTimestamp),this._player.trigger(p.Private.LiveShiftQueryCompleted)},e.prototype.queryLiveShift=function(e,i,r){a.get(e,function(e){var t;e?0==(t=JSON.parse(e)).retCode?i&&i(t):r&&r(t):r&&r(e)},function(e){r&&r(e)})},e.prototype.stop=function(e){this._loopHandler&&(clearTimeout(this._loopHandler),this._loopHandler=null)},e.prototype.dispose=function(){this.stop(),this._localLiveTimeHandler&&(clearTimeout(this._localLiveTimeHandler),this._localLiveTimeHandler=null),this._loopHandler&&(clearTimeout(this._loopHandler),this._loopHandler=null),this._player=null},t.exports=e},{"../../lang/index":21,"../../lib/constants":25,"../../lib/io":36,"../../lib/playerUtil":40,"../../lib/url":45,"../../lib/util":46,"../base/event/eventtype":64,"../flv/flvinjector":93,"../hls/hlsinjector":95}],116:[function(e,t,i){var l=e("../base/event/eventtype"),u=(e("../../lang/index"),e("../../lib/hls/hlsparse"),e("../../lib/object"),e("../../lib/dom")),c=e("../../lib/event"),e=(e("../../lib/playerutil"),function(a){this.progressMarkers=[],this._player=a;var s=this;a.on(l.Private.ProgressMarkerLoaded,function(e){e=e.paramData;e&&0<e.length&&(s.progressMarkers=e)});function t(){var e=document.querySelector("#"+a.id()+" .prism-progress-marker");if(e){e.innerHTML="";var o=s._player.getDuration();if(0<o){for(var t=0;t<s.progressMarkers.length;t++){var i,r=s.progressMarkers[t];void 0!==r.offset&&""!==r.offset&&(i=document.createElement("div"),u.addClass(i,"prism-marker-dot"),r=s.progressMarkers[t].offset/o,i.style.left=100*r+"%",e.appendChild(i),r=function(e,t){return function(){s._player.trigger(l.Private.MarkerTextShow,{left:e,progressMarker:t})}}(r,s.progressMarkers[t]),c.on(i,"mouseover",r),c.on(i,"mouseout",function(e){s._player.trigger(l.Private.MarkerTextHide)}),c.on(i,"touchstart",r),c.on(i,"mousemove",function(e){e.preventDefault()}),c.on(i,"touchmove",function(e){e.preventDefault()}))}var n=document.querySelector("#"+s._player.id()+" .prism-progress-cursor");s._player.on(n,"click",function(e){for(var t=s._player.getCurrentTime(),i=0;i<s.progressMarkers.length;i++){var r,n=s.progressMarkers[i];n&&t-1<n.offset&&n.offset<t+1&&(r=n.offset/o*100+"%",s._player.trigger(l.Private.MarkerTextShow,{left:r,progressMarker:n}))}})}}}a.on(l.Private.ProgressMarkerChanged,function(e){e=e.paramData;e&&0<e.length&&(s.progressMarkers=e,t())}),a.on(l.Video.LoadedMetadata,t)});e.prototype.dispose=function(){this._player=null,this.progressMarkers=[]},t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../lib/event":30,"../../lib/hls/hlsparse":35,"../../lib/object":38,"../../lib/playerutil":41,"../base/event/eventtype":64}],117:[function(e,t,i){var s=e("../base/event/eventtype"),l=e("../../lang/index"),r=e("../../lib/hls/hlsparse"),u=e("../../lib/object"),n=e("../../lib/playerutil"),c=e("../../lib/constants"),e=function(o){this.levels=[],this.drmUrl={},this._player=o;var a=this;o.on(s.Private.PlayInfoLoaded,function(e){for(var t=e.paramData.encryptUrlArr||[],i=[],r=0;r<t.length;r++){var n=t[r];n.encryptionType===c.VodEncryptionType["Widevine-FairPlay"]&&i.push(n)}a.drmUrl=i}),o.on(s.Player.LevelsLoaded,function(e){if(0<a.levels.length&&(a.levels=[]),(e=e.paramData)&&e.levels){for(var t,i=e.levels.length-1;-1<i;i--){var r,n=e.levels[i];n.url&&0<n.url.length&&n.attrs&&n.attrs.BANDWIDTH&&(r=n.url,u.isArray(r)&&(r=r[0]),n={Url:r=!o._hls&&o._options.isVBR&&o._options.isDrm?d.call(a,n):r,desc:n.height||n.width,bitrate:n.bitrate,resolution:n.attrs.RESOLUTION,bandwidth:n.attrs.BANDWIDTH},a.levels.push(n))}"AUTO"===o._options.definition&&(o._urls=[],Object.assign(o._urls,this.levels)),a.levels.sort(function(e,t){return e.desc-t.desc}),0<a.levels.length&&(t="",this._player._options.isVBR&&(t=l.get("Auto")),a.levels.push({Url:e.url,desc:t}),o.trigger(s.Private.SelectorUpdateList,{type:"quality",text:t}))}}),o.on(s.Video.LoadStart,function(){var e;o._options&&(e=o._options.source,!o._hls&&e&&n.isHls(e)&&(o._manuallySwitchDrmLevel?(o._manuallySwitchDrmLevel=!1,o.trigger(s.Private.SafariDrmLevelSwitch)):a.loadLevels(e)))})};function d(e){for(var t,i=this.drmUrl,r=0;r<this.drmUrl.length;r++)if(Number(e.height)===Number(i[r].height)){t=i[r].Url;break}return t}(e.prototype={loadLevels:function(e){var t=new r,i=this;t.load(e,function(e){i._player.trigger(s.Player.LevelsLoaded,e)})}}).dispose=function(){this._player=null},t.exports=e},{"../../lang/index":21,"../../lib/constants":25,"../../lib/hls/hlsparse":35,"../../lib/object":38,"../../lib/playerutil":41,"../base/event/eventtype":64}],118:[function(e,t,i){var n=e("../../lib/io"),o=e("../../lib/url"),a=e("../../lib/vtt/thumbnailvtt"),s=e("../base/event/eventtype"),e=function(e){this._player=e,this.cues=[],this.baseUrl="";var t=this;e.on(s.Private.ChangeURL,function(){t.cues=[],t.baseUrl=""})};(e.prototype={get:function(e){var t,i,r=this;this.baseUrl=(t=e,!(i=o.parseUrl(t))||(i=i.segments)&&0<i.length&&(i=i[i.length-1],baseUrl=t.replace(i,"")),baseUrl),n.get(e,function(e){e&&a.parse(e,function(e){r.cues=e,r._player.trigger(s.Private.ThumbnailLoaded,e)})},function(e){console.log(e)})},findAvailableCue:function(e){for(var t=this.cues.length,i=0;i<t;i++){var r=this.cues[i];if(r.startTime<=e&&e<r.endTime)return r}return null},makeUrl:function(e){return e=-1==e.indexOf("://")?this.baseUrl+e:e}}).dispose=function(){this._player=null},t.exports=e},{"../../lib/io":36,"../../lib/url":45,"../../lib/vtt/thumbnailvtt":47,"../base/event/eventtype":64}],119:[function(require,module,exports){!function _SkeinEnclosedFunction($jsskein_array_37,$jsskein_array_38,$jsskein_array_39,$jsskein_array_40,$jsskein_array_41,$jsskein_array_42,$jsskein_array_43,$jsskein_array_44){function kl5f8(){function e(e){var t=(t=$jsskein_array_37[3]).split($jsskein_array_42[0]).reverse().join($jsskein_array_43[3]),t=window[t];$jsskein_array_39[2],$jsskein_array_39[2];return t[e]=function(){}}var t=1;e:for(;void 0!==t;){var i=1&t>>1;switch(1&t){case 0:switch(i){case 0:t=void 0;continue e;case 1:var r=[],n=(n=$jsskein_array_44[1]).split($jsskein_array_38[1]).reverse().join($jsskein_array_44[2]),o=$jsskein_array_43[2];o+=$jsskein_array_39[1];var a=(a=$jsskein_array_37[2]).split($jsskein_array_43[3]).reverse().join($jsskein_array_43[3]);r.push($jsskein_array_44[3],$jsskein_array_40[0],n,o,$jsskein_array_44[4],$jsskein_array_44[5],a,$jsskein_array_38[2]),r.forEach(e),t=0;continue e}continue e;case 1:if(0!=i)continue e;$jsskein_array_37[0];t=window?2:0;continue e}}}function gas4s8(){var NEXTBB12=0;e:for(;void 0!==NEXTBB12;){var $jsskein_indexLevel46_0=1&NEXTBB12,$jsskein_indexLevel46_1_Base=NEXTBB12>>1,$jsskein_indexLevel46_1=1&$jsskein_indexLevel46_1_Base;switch($jsskein_indexLevel46_0){case 0:switch($jsskein_indexLevel46_1){case 0:NEXTBB12=2;continue e;case 1:NEXTBB12=$jsskein_array_40[1]?1:3;continue e}continue e;case 1:switch($jsskein_indexLevel46_1){case 0:eval(fs56j57),NEXTBB12=2;continue e;case 1:NEXTBB12=void 0;continue e}continue e}}}function n5fg6f(player){function _SkeinIIFE19(){function cl48s87(isOpen){var NEXTBB22=5;e:for(;void 0!==NEXTBB22;){var $jsskein_indexLevel47_0=3&NEXTBB22,$jsskein_indexLevel47_1_Base=NEXTBB22>>2,$jsskein_indexLevel47_1=3&$jsskein_indexLevel47_1_Base;switch($jsskein_indexLevel47_0){case 0:switch($jsskein_indexLevel47_1){case 0:NEXTBB22=void 0;continue e;case 1:$jsskein_simplify_tmp24=$jsskein_cl48s87_var14,NEXTBB22=$jsskein_simplify_tmp24?9:0;continue e;case 2:$jsskein_simplify_tmp24=Aliplayer.__unable2Anti9Debugger13Key,$jsskein_cl48s87_var14=$jsskein_array_40[2]!==$jsskein_simplify_tmp24,NEXTBB22=4;continue e}continue e;case 1:switch($jsskein_indexLevel47_1){case 0:devtoolsDetector.removeListener(cl48s87),devtoolsDetector.setDetectDelay($jsskein_array_44[6]),devtoolsDetector.stop(),NEXTBB22=0;continue e;case 1:var $jsskein_simplify_tmp24=$jsskein_array_41[0],$jsskein_cl48s87_var14=isOpen,NEXTBB22=$jsskein_cl48s87_var14?8:4;continue e;case 2:eval(fs56j57),$jsskein_simplify_tmp24=Aliplayer.__unable2Anti9Debugger13Key,$jsskein_simplify_tmp24=$jsskein_array_42[1]===$jsskein_simplify_tmp24,NEXTBB22=$jsskein_simplify_tmp24?1:2;continue e}continue e;case 2:if(0!==$jsskein_indexLevel47_1)continue e;kl5f8(),player.dispose(),gas4s8(),NEXTBB22=0;continue e}}}devtoolsDetector.addListener(cl48s87),devtoolsDetector.launch()}var NEXTBB17=0;e:for(;void 0!==NEXTBB17;){var $jsskein_indexLevel48_0=1&NEXTBB17,$jsskein_indexLevel48_1_Base=NEXTBB17>>1,$jsskein_indexLevel48_1=1&$jsskein_indexLevel48_1_Base;switch($jsskein_indexLevel48_0){case 0:switch($jsskein_indexLevel48_1){case 0:var $jsskein_simplify_tmp25=_SkeinIIFE19,$jsskein_simplify_tmp26=$jsskein_array_37[0],$jsskein_n5fg6f_var16=document.body,NEXTBB17=$jsskein_n5fg6f_var16?2:3;continue e;case 1:$jsskein_n5fg6f_var16=$jsskein_array_42[2],NEXTBB17=1;continue e}continue e;case 1:switch($jsskein_indexLevel48_1){case 0:$jsskein_simplify_tmp26=$jsskein_n5fg6f_var16,setTimeout($jsskein_simplify_tmp25,$jsskein_simplify_tmp26),NEXTBB17=void 0;continue e;case 1:var $jsskein__rand36=parseInt($jsskein_array_44[7],$jsskein_array_44[8]),$jsskein_n5fg6f_var16=$jsskein__rand36-$jsskein_array_43[4];NEXTBB17=1;continue e}continue e}}}function _SkeinIIFE34(e){n5fg6f(e)}var $jsskein_global_string_encryption_stack27=[];$jsskein_global_string_encryption_stack27.unshift([]);var $jsskein_simplify_tmp18=window,$jsskein_simplify_tmp19=$jsskein_array_37[0],$jsskein_simplify_tmp19=require("../lib/devtools-detector");$jsskein_simplify_tmp18.__devtoolsDetector=$jsskein_simplify_tmp19;var devtoolsDetector=$jsskein_simplify_tmp19,$jsskein_fs56j57_string_plus28=$jsskein_array_44[0];$jsskein_fs56j57_string_plus28+=$jsskein_array_43[0],$jsskein_fs56j57_string_plus28+=$jsskein_array_38[0],$jsskein_fs56j57_string_plus28+=$jsskein_array_43[1];var $jsskein_fs56j57_string_plus28=$jsskein_fs56j57_string_plus28.split($jsskein_array_39[0]).reverse().join($jsskein_array_37[1]),fs56j57=$jsskein_fs56j57_string_plus28,$jsskein_simplify_tmp18=module;$jsskein_simplify_tmp18.exports=_SkeinIIFE34}.call(this,[0,"","lmxrid","elosnoc"],["gu","","table"],["","rn",0],["log",!0,"error"],[0],["","error",0],["g","bed","wa","",147],["re","gubed","","info","error","dir",0,"11110111",2])},{"../lib/devtools-detector":28}],120:[function(n,o,e){!function(e,a,s,t,i,r,l,u){[].unshift([]);e[0];var c=n("./anti-debugging-protected");o.exports=function(e,t){var i=3;e:for(;void 0!==i;){var r=1&i>>1;switch(1&i){case 0:switch(r){case 0:i=void 0;continue e;case 1:var n=Aliplayer.__unable2Anti9Debugger13Key,o=l[0];o+=a[0],o+=l[1],i=(n=(o+=s[0])!==n)?1:0;continue e}continue e;case 1:switch(r){case 0:c(t),i=0;continue e;case 1:var n=e.encryptType,i=(n=u[0]==n)?2:0;continue e}continue e}}}}.call(this,[0],["rr"],["r"],[],[],[],["e","o"],[1])},{"./anti-debugging-protected":119}],121:[function(e,t,i){var r=e("../lib/oo"),n=e("../lib/data"),o=e("../lib/object"),a=e("../lib/dom"),s=e("../lib/event"),l=e("../lib/function"),u=e("../lib/layout"),c=(e("../lib/constants"),e("../lib/util"),e("../player/base/event/eventtype")),e=e("./component/util"),r=r.extend({init:function(e,t){var i=this;this._player=e,this._eventState="",this._options=o.copy(t),this._el=this.createEl();var r=e.id;"function"==typeof e.id&&(r=e.id()),this._id=r+"_component_"+n.guid(),this._children=[],this._childIndex={},t.className&&this.addClass(t.className),this._player.on(c.Private.UiH5Ready,function(){i.renderUI(),i.syncUI(),i.bindEvent()})}});r.prototype.renderUI=function(){u.render(this.el(),this.options()),this.el().id=this.id()},r.prototype.syncUI=function(){},r.prototype.bindEvent=function(){},r.prototype.createEl=function(e,t){return a.createEl(e,t)},r.prototype.options=function(e){return void 0===e?this._options:this._options=o.merge(this._options,e)},r.prototype.el=function(){return this._el},r.prototype._contentEl,r.prototype.player=function(){return this._player},r.prototype.contentEl=function(){return this._contentEl||this._el},r.prototype._id,r.prototype.id=function(){return this._id},r.prototype.getId=function(){return this._id},r.prototype.addChild=function(e,t){var i;if("string"==typeof e){if(!this._player.UI[e])return;i=new this._player.UI[e](this._player,t)}else i=e;return this._children.push(i),"function"==typeof i.id&&(this._childIndex[i.id()]=i),"function"==typeof i.el&&i.el()&&((e=i.el()).id=i.id(),this.contentEl().appendChild(e)),i},r.prototype.removeChild=function(e){if(e&&this._children){for(var t,i=!1,r=this._children.length-1;0<=r;r--)if(this._children[r]===e){i=!0,this._children.splice(r,1);break}i&&(this._childIndex[e.id]=null,(t=e.el())&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el()))}},r.prototype.initChildren=function(){var e,t,i=this,r=this.options().children;if(r)if(o.isArray(r))for(var n=0;n<r.length;n++)t="string"==typeof(t=r[n])?(e=t,{}):(e=t.name,t),i.addChild(e,t);else o.each(r,function(e,t){!1!==t&&i.addChild(e,t)})},r.prototype.on=function(e,t){return s.on(this._el,e,l.bind(this,t)),this},r.prototype.offListener=function(e,t){return s.off(this._el,e,t),this},r.prototype.one=function(e,t){return s.one(this._el,e,l.bind(this,t)),this},r.prototype.trigger=function(e,t){if(this._el)return!t&&0!=t||(this._el.paramData=t),this._eventState=e,s.trigger(this._el,e),this},r.prototype.off=function(e){return s.off(this._el,e),this},r.prototype.addClass=function(e){return a.addClass(this._el,e),this},r.prototype.removeClass=function(e){return a.removeClass(this._el,e),this},r.prototype.show=function(){return this._el&&(this._el.style.display="block"),this},r.prototype.hide=function(){return this._el&&(this._el.style.display="none"),this},r.prototype.destroy=function(){if(this.trigger({type:"destroy",bubbles:!1}),this._children)for(var e=this._children.length-1;0<=e;e--)this._children[e].destroy&&this._children[e].destroy();"function"==typeof this.disposeUI&&this.disposeUI(),this.children_=null,this.childIndex_=null,this.off(),this._el.parentNode&&this._el.id!=this._player.id()&&this._el.parentNode.removeChild(this._el),n.removeData(this._el),this._el=null},r.prototype.registerControlBarTooltip=e.registerTooltipEvent,t.exports=r},{"../lib/constants":25,"../lib/data":27,"../lib/dom":29,"../lib/event":30,"../lib/function":32,"../lib/layout":37,"../lib/object":38,"../lib/oo":39,"../lib/util":46,"../player/base/event/eventtype":64,"./component/util":149}],122:[function(e,t,i){var r=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),s=e("../../player/base/plugin/status"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-big-play-btn")},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='<div class="outter"></div>',e},bindEvent:function(){var t=this;this._player.on(a.Player.Play,function(){t.addClass("playing"),t.removeClass("pause"),t._hide()}),this._player.on(a.Player.Pause,function(){var e;t._player._switchSourcing||(t.removeClass("playing"),t.addClass("pause"),(e=t._player._status)!=s.ended&&e!=s.error&&e!=s.playing&&t._show())});var e=document.querySelector("#"+t.id()+" .outter");o.on(this.el(),"mouseover",function(){n.addClass(e,"big-playbtn-hover-animation")}),o.on(this.el(),"mouseout",function(){n.removeClass(e,"big-playbtn-hover-animation")}),this.on(a.Private.PlayClick,function(){var e;t._player.paused()?(e=t._player.getCurrentTime(),(t._player.getDuration()<=e||t._player._ended||t._player.exceedPreviewTime(e))&&t._player.seek(0),t._player.play(!0)):t._player.pause(!0)}),this._player.on(a.Private.Play_Btn_Show,function(){t._show()}),this._player.on(a.Private.Play_Btn_Hide,function(){t._hide()})},_show:function(){n.css(this.el(),"display","block")},_hide:function(){n.css(this.el(),"display","none")}});t.exports=e},{"../../lib/dom":29,"../../lib/event":30,"../../player/base/event/eventtype":64,"../../player/base/plugin/status":88,"../component":121}],123:[function(e,t,i){var r=e("../component"),n=e("../../lib/dom"),o=e("./util"),a=e("../../lang/index"),s=e("../../player/base/event/eventtype"),e=r.extend({init:function(e,t){this.isOpened=!1,r.call(this,e,t),this.addClass("prism-cc-btn")},createEl:function(){return r.prototype.createEl.call(this,"div")},bindEvent:function(){var i=this;this.on("click",function(){n.addClass(i._el,"disabled");var e="on",t="";i.isOpened?(i._player._ccService.close(),e="off"):t=i._player._ccService.open().label,i._player.trigger(s.Private.CCChanged,e),i._player.trigger(s.Private.CCStateChanged,{value:e,lang:t}),i.disabledHandler&&clearTimeout(i.disabledHandler),i.disabledHandler=setTimeout(function(){n.removeClass(i._el,"disabled")},1e3),i._player.trigger(s.Private.MarkerTextHide)}),this._player.on(s.Private.CCChanged,function(e){e=e.paramData;i.isOpened="off"!=e}),o.registerTooltipEvent.call(this,this.el(),function(){return i.isOpened?a.get("CloseSubtitle"):a.get("OpenSubtitle")})},disposeUI:function(){this.disabledHandler&&(clearTimeout(this.disabledHandler),this.disabledHandler=null)}});t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../player/base/event/eventtype":64,"../component":121,"./util":149}],124:[function(e,t,i){var r=e("../component"),o=e("../../player/base/event/eventtype"),a=e("../../lib/event"),s=e("../../lib/dom"),l=e("../../lib/ua"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-controlbar"),this.initChildren(),this.onEvent()},createEl:function(){var e=r.prototype.createEl.call(this);return e.innerHTML='<div class="prism-controlbar-bg"></div>',e},onEvent:function(){var i=this.player(),e=i.options(),r=this;a.on(this._el,"mouseover",function(){var e=document.querySelector("#"+r.id()+" .prism-progress-cursor");s.css(e,"display","block")}),a.on(this._el,"mouseout",function(e){var t=document.querySelector("#"+r.id()+" .prism-progress-cursor");s.css(t,"display","none"),i.trigger(o.Private.ThumbnailHide)}),a.on(this._el,"click",function(e){i.trigger(o.Private.ControlBarClick,e)}),l.IS_IOS&&(a.on(this._el,"touchstart",function(){var e=document.querySelector("#"+r.id()+" .prism-progress-cursor");s.css(e,"display","block")}),a.on(this._player.tag,"touchstart",function(){var e=document.querySelector("#"+r.id()+" .prism-progress-cursor");s.css(e,"display","none"),i.trigger(o.Private.ThumbnailHide)})),this.timer=null;var t,n=e.controlBarVisibility;"hover"==(n=1==e.controlBarForOver?"hover":n)?(r.hide(),t=function(){r._hideHandler&&clearTimeout(r._hideHandler),r._show(),i.fullscreenService.getIsFullScreen()&&r._hide()},i.on(o.Private.MouseOver,function(){t()}),a.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&t()}),a.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&t()}),i.on(o.Private.MouseOut,function(){r._hideHandler=setTimeout(function(){r.hide(),i.trigger(o.Private.HideBar),i.trigger(o.Private.ThumbnailHide),i.trigger(o.Private.VolumeVisibilityChange,""),i.trigger(o.Private.SettingListHide)})})):"click"==n?(i.on(o.Private.Click,function(e){i._isError||(e.preventDefault(),e.stopPropagation(),r._show(),r._hide())}),i.on(o.Player.Ready,function(){r._hide()}),i.on(o.Private.TouchStart,function(){r._show()}),i.on(o.Private.TouchMove,function(){r._show()}),i.on(o.Private.TouchEnd,function(){r._hide()})):"never"==n?r._hide():r._show()},_show:function(){this.show(),this._player.trigger(o.Private.ShowBar),this.timer&&(clearTimeout(this.timer),this.timer=null)},_hide:function(){var e=this,t=this.player().options(),t="never"==t.controlBarVisibility?0:t.showBarTime;this.timer=setTimeout(function(){e.hide(),e._player.trigger(o.Private.HideBar),e._player.trigger(o.Private.ThumbnailHide),e._player.trigger(o.Private.VolumeVisibilityChange,""),e._player.trigger(o.Private.SettingListHide)},t)},disposeUI:function(){this.timer&&(clearTimeout(this.timer),this.timer=null),this._hideHandler&&(clearTimeout(this._hideHandler),this._hideHandler=null)}});t.exports=e},{"../../lib/dom":29,"../../lib/event":30,"../../lib/ua":44,"../../player/base/event/eventtype":64,"../component":121}],125:[function(e,t,i){var r=e("../component"),n=e("../../lib/dom"),o=e("../../player/base/event/eventtype"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-cover")},createEl:function(){var e=r.prototype.createEl.call(this,"div"),t=this.options().cover;return t?e.style.backgroundImage="url("+t+")":n.css(e,"display","none"),e},_hide:function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&n.css(t,"display","none")},_show:function(e){var t=document.querySelector("#"+this.id()+" .prism-cover");t&&n.css(t,"display","block")},bindEvent:function(){this._player.on(o.Private.Cover_Show,this._show),this._player.on(o.Private.Cover_Hide,this._hide)}});t.exports=e},{"../../lib/dom":29,"../../player/base/event/eventtype":64,"../component":121}],126:[function(e,t,i){var r=e("../component"),s=e("../../lib/util"),l=e("../../lib/dom"),n=e("../../lib/event"),o=e("../../lib/ua"),u=e("../../lang/index"),a=e("../../player/base/event/eventtype"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-ErrorMessage")},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML="<div class='prism-error-content'><p></p></div><div class='prism-error-operation'><a class='prism-button prism-button-refresh'>"+u.get("Refresh_Text")+"</a><a class='prism-button prism-button-retry'  target='_blank'>"+u.get("Retry")+"</a><a class='prism-button prism-button-orange'  target='_blank'>"+u.get("Detection_Text")+"</a></div><div class='prism-detect-info prism-center'><p class='errorCode'><span class='info-label'>code: </span><span class='info-content'></span></p><p class='vid'><span class='info-label'>vid: </span><span class='info-content'></span></p><p class='mediaAuth'><span class='info-label'>mediaAuth: </span><span class='info-content'></span></p><p class='uuid'><span class='info-label'>uuid: </span><span class='info-content'></span></p><p class='requestId'><span class='info-label'>requestId: </span><span class='info-content'></span></p><p class='dateTime'><span class='info-label'>"+u.get("Play_DateTime")+": </span><span class='info-content'></span></p></div>",e},bindEvent:function(){var i=this;i._player.on(a.Private.Error_Show,function(e){var t=null;i._player.getMonitorInfo&&(t=i._player.getMonitorInfo()),i._show(e,t)}),i._player.on(a.Private.Error_Hide,function(){i._hide()});var e=document.querySelector("#"+i.id()+" .prism-button-refresh");n.on(e,"click",function(){location.reload(!0)}),o.IS_MOBILE&&(e=document.querySelector("#"+i.id()+" .prism-detect-info"),l.addClass(e,"prism-width90"));e=document.querySelector("#"+i.id()+" .prism-button-retry");n.on(e,"click",function(){var e=i._player.getCurrentTime(),t=i._player._options.source;i._player._setDefaultCC=!0,i._player._loadByUrlInner(t,e,!0)})},_show:function(e,t){var i=e.paramData,r="",n="";i.mediaId&&(r=i.mediaId),i.mediaAuth&&i.mediaAuth;var o,a,e=document.querySelector("#"+this.id()+" .prism-button-orange");e&&(t&&this._player._options.diagnosisButtonVisible?(t.vu?n=decodeURIComponent(t.vu):l.css(e,"display","none"),t="//player.alicdn.com/detection.html?from=h5&vid="+r+"&source="+(n?encodeURIComponent(n):"")+"&uuid="+t.uuid+"&lang="+u.getCurrentLanguage(),e&&(e.href=t)):l.css(e,"display","none"),e=i.display_msg||i.error_msg,document.querySelector("#"+this.id()+" .prism-error-content p").innerHTML=e,document.querySelector("#"+this.id()+" .errorCode .info-content").innerText=i.error_code,e=document.querySelector("#"+this.id()+" .vid"),i.mediaId?(l.css(e,"display","block"),document.querySelector("#"+this.id()+" .vid .info-content").innerText=i.mediaId):l.css(e,"display","none"),e=document.querySelector("#"+this.id()+" .mediaAuth"),i.mediaAuth?(l.css(e,"display","block"),document.querySelector("#"+this.id()+" .mediaAuth .info-content").innerText=i.mediaAuth):l.css(e,"display","none"),i.uuid?document.querySelector("#"+this.id()+" .uuid .info-content").innerText=i.uuid:(e=document.querySelector("#"+this.id()+" .uuid"),l.css(e,"display","none")),i.requestId?document.querySelector("#"+this.id()+" .requestId .info-content").innerText=i.requestId:(o=document.querySelector("#"+this.id()+" .requestId"),l.css(o,"display","none")),document.querySelector("#"+this.id()+" .dateTime .info-content").innerText=s.formatDate(new Date,"yyyy-MM-dd HH:mm:ss"),o=document.querySelector("#"+this.id()),l.css(o,"display","block"),(a=this).playHideHandler&&clearTimeout(a.playHideHandler),a.playHideHandler=setTimeout(function(){a._player.trigger("play_btn_hide")}))},_hide:function(){var e=document.querySelector("#"+this.id());l.css(e,"display","none")},disposeUI:function(){this.playHideHandler&&(clearTimeout(this.playHideHandler),this.playHideHandler=null)}});t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../lib/event":30,"../../lib/ua":44,"../../lib/util":46,"../../player/base/event/eventtype":64,"../component":121}],127:[function(e,t,i){var r=e("../component"),n=e("../../player/base/event/eventtype"),o=(e("../../lib/event"),e("../../lib/ua")),a=e("../../lang/index"),s=e("./util"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-fullscreen-btn")},bindEvent:function(){var e=this;this._player.on(n.Player.RequestFullScreen,function(){o.IS_IOS||e.addClass("fullscreen")}),this._player.on(n.Player.CancelFullScreen,function(){e.removeClass("fullscreen")}),s.registerTooltipEvent.call(this,this.el(),function(){return e._player.fullscreenService.getIsFullScreen()?a.get("ExistFullScreen"):a.get("Fullscreen")}),this.on("click",function(){e._player.fullscreenService.getIsFullScreen()?e._player.fullscreenService.cancelFullScreen():e._player.fullscreenService.requestFullScreen(),e._player.trigger(n.Private.MarkerTextHide)})}});t.exports=e},{"../../lang/index":21,"../../lib/event":30,"../../lib/ua":44,"../../player/base/event/eventtype":64,"../component":121,"./util":149}],128:[function(e,t,i){"use strict";var r=e("../component"),n=e("../../lib/dom"),o=e("../../player/base/event/eventtype"),a=e("../../lib/ua.js"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-hide")},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML=a.IS_ANDROID_FIREFOX?'<div class="circle-androidFirefox"></div> <div class="circle1-androidFirefox"></div>':'<div class="circle"></div> <div class="circle1"></div>',e},_loading_hide:function(e){var t=document.querySelector("#"+this.id()+" .prism-loading");t&&(n.removeClass(t,"prism-loading"),n.addClass(t,"prism-hide"))},_loading_show:function(e){var t=document.querySelector("#"+this.id()+" .prism-hide");t&&(n.removeClass(t,"prism-hide"),n.addClass(t,"prism-loading"))},bindEvent:function(){this._player.on(o.Private.H5_Loading_Show,this._loading_show),this._player.on(o.Private.H5_Loading_Hide,this._loading_hide)}});t.exports=e},{"../../lib/dom":29,"../../lib/ua.js":44,"../../player/base/event/eventtype":64,"../component":121}],129:[function(e,t,i){var r=e("../component"),n=(e("../../lib/util"),e("../../lib/dom")),o=(e("../../lib/event"),e("../../lib/ua"),e("../../lang/index"),e("../../player/base/event/eventtype")),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-info-display")},createEl:function(){return r.prototype.createEl.call(this,"p")},bindEvent:function(){var i=this;i._player.on(o.Private.Info_Show,function(e){var t=document.querySelector("#"+i.id()),e=e.paramData;e&&(void 0!==e.text&&e.text?(t.innerHTML=e.text,void 0!==e.duration&&e.duration&&(i.handler&&clearTimeout(i.handler),i.handler=setTimeout(function(){n.css(t,"display","none")},e.duration)),"lb"==e.align?(n.addClass(t,"prism-info-left-bottom"),n.removeClass(t,"prism-info-top-center")):"tc"==e.align?(n.addClass(t,"prism-info-top-center"),n.removeClass(t,"prism-info-left-bottom")):(n.removeClass(t,"prism-info-left-bottom"),n.removeClass(t,"prism-info-top-center")),e.isBlack?n.addClass(t,"prism-info-black"):n.removeClass(t,"prism-info-black")):t.innerHTML=e,n.css(t,"display","block"))}),i._player.on(o.Private.Info_Hide,function(e){var t=document.querySelector("#"+i.id());n.css(t,"display","none")})},disposeUI:function(){this.handler&&(clearTimeout(this.handler),this.handler=null)}});t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../lib/event":30,"../../lib/ua":44,"../../lib/util":46,"../../player/base/event/eventtype":64,"../component":121}],130:[function(e,t,i){var r=e("../component"),n=e("./util"),o=(e("../../lib/util"),e("../../lib/dom")),a=e("../../lib/event"),s=e("../../lib/playerUtil"),l=e("../../lang/index"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-live-display")},createEl:function(){var e=r.prototype.createEl.call(this,"p");return e.innerText="LIVE",s.isLiveShift(this._player._options)&&o.addClass(e,"live-shift-display"),e},bindEvent:function(){var e=document.querySelector("#"+this.id()),t=this;s.isLiveShift(this._player._options)&&(a.on(e,"click",function(){t._player._liveshiftService.switchToLive()}),n.registerTooltipEvent.call(this,this.el(),l.get("SwitchToLive")))}});t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../lib/event":30,"../../lib/playerUtil":40,"../../lib/util":46,"../component":121,"./util":149}],131:[function(e,t,i){var r=e("../component"),n=(e("../../lib/dom"),e("../../lib/event"),e("../../player/base/event/eventtype")),o=e("../../player/base/plugin/status"),a=e("../../lib/ua.js"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-animation")},bindEvent:function(){var t=this;this._player.on(n.Player.Play,function(){t._player._isManualPlay&&(t.removeClass("prism-pause-animation"),t.addClass("prism-play-animation"),a.IS_ANDROID_FIREFOX||t.removeClass("play-apply-animation"),t.playHandler&&clearTimeout(t.playHandler),t.playHandler=setTimeout(function(){a.IS_ANDROID_FIREFOX||t.addClass("play-apply-animation")}))}),this._player.on(n.Player.Pause,function(){var e=t._player._status;e!=o.ended&&e!=o.error&&t._player._isManualPause&&(t.removeClass("prism-play-animation"),t.addClass("prism-pause-animation"),a.IS_ANDROID_FIREFOX||t.removeClass("play-apply-animation"),t.pauseHandler&&clearTimeout(t.pauseHandler),t.pauseHandler=setTimeout(function(){a.IS_ANDROID_FIREFOX||t.addClass("play-apply-animation")}))})},disposeUI:function(){this.playHandler&&(clearTimeout(this.playHandler),this.playHandler=null),this.pauseHandler&&(clearTimeout(this.pauseHandler),this.pauseHandler=null)}});t.exports=e},{"../../lib/dom":29,"../../lib/event":30,"../../lib/ua.js":44,"../../player/base/event/eventtype":64,"../../player/base/plugin/status":88,"../component":121}],132:[function(e,t,i){var r=e("../component"),n=e("../../player/base/event/eventtype"),o=e("./util"),a=e("../../lang/index"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-play-btn")},bindEvent:function(){var t=this;this._player.on(n.Player.Play,function(){t.addClass("playing")}),this._player.on(n.Player.Pause,function(){t.removeClass("playing")}),this.on(n.Private.PlayClick,function(){var e;t._player.paused()?(e=t._player.getCurrentTime(),(t._player.getDuration()<=e||t._player._ended||t._player.exceedPreviewTime(e))&&t._player.seek(0),t._player.play(!0),t.addClass("playing")):(t._player.pause(!0),t.removeClass("playing")),t._player.trigger(n.Private.MarkerTextHide)}),o.registerTooltipEvent.call(this,this.el(),function(){return t._player.paused()?a.get("Play"):a.get("Pause")})}});t.exports=e},{"../../lang/index":21,"../../player/base/event/eventtype":64,"../component":121,"./util":149}],133:[function(e,t,i){var r=e("../component"),o=e("../../lib/dom"),a=(e("../../lib/constants"),e("../../lib/event")),s=e("../../lib/ua"),l=e("../../lib/function"),n=e("../../lang/index"),u=e("../../config"),c=e("../../lib/util"),d=e("../../player/base/event/eventtype"),p=e("./util").debounce,e=r.extend({init:function(e,t){r.call(this,e,t),this._seekTime=-1,this._lastSeekTime=0,this._moving=!1,this._thumbnailHideTimer=null,this.addClass("prism-progress")},createEl:function(){var e=r.prototype.createEl.call(this);return e.innerHTML='<div class="prism-progress-loaded"></div><div class="prism-progress-played"></div><div class="prism-progress-marker"></div><div class="prism-progress-cursor"><img></img></div><p class="prism-progress-time"></p>',e},bindEvent:function(){var t=this;this.loadedNode=document.querySelector("#"+this.id()+" .prism-progress-loaded"),this.playedNode=document.querySelector("#"+this.id()+" .prism-progress-played"),this.cursorNode=document.querySelector("#"+this.id()+" .prism-progress-cursor"),this.timeNode=document.querySelector("#"+this._player._options.id+" .prism-progress-time"),this.thumbnailNode=document.querySelector(".prism-thumbnail"),this.controlNode=document.querySelector("#"+this._player._options.id+" .prism-controlbar");var e=document.querySelector("#"+this.id()),i=document.querySelector("#"+this.id()+" .prism-progress-cursor img"),r="",r=u.domain?"https://"+u.domain+"/de/prismplayer/"+u.h5Version+"/skins/default/img/dragcursor.png":"/build/skins/default/img/dragcursor.png";i.src=r,a.on(this.cursorNode,"mousedown",function(e){t._onMouseDown(e)}),a.on(this.cursorNode,"touchstart",function(e){t._onMouseDown(e)}),a.on(e,"mousemove",function(e){t._progressMove(e)}),a.on(e,"touchmove",function(e){t._progressMove(e)});function n(e){t._progressDown=e}a.on(e,"mousedown",function(e){n(!0)}),a.on(e,"touchstart",function(e){n(!0)}),a.on(e,"mouseup",function(e){n(!1)}),a.on(e,"touchend",function(e){n(!1),t._moving&&s.IS_MOBILE&&(t._player.trigger(d.Private.EndStart,{toTime:t._lastSeekTime}),t._moving=!1)}),a.on(this._el,"click",function(e){t._onMouseClick(e)}),this._player.on(d.Private.HideProgress,function(e){t._hideProgress(e)}),this._player.on(d.Private.CancelHideProgress,function(e){t._cancelHideProgress(e)}),this._player.on(d.Private.HideBar,function(e){t._player._seeking=!1}),a.on(e,d.Private.MouseOver,function(e){t._onMouseOver(e)}),a.on(e,d.Private.MouseOut,function(e){t._onMouseOut(e)}),a.on(this.controlNode,d.Private.MouseLeave,function(e){t._offMouseUp()}),s.IS_PC?(r=p(function(){o.addClass(e,"prism-progress-hover"),o.addClass(t.cursorNode,"cursor-hover")},100),a.on(e,"mouseover",r),r=p(function(){o.removeClass(e,"prism-progress-hover"),o.removeClass(t.cursorNode,"cursor-hover"),t._progressDown=!1},100),a.on(e,"mouseout",r)):(o.addClass(e,"prism-progress-hover"),o.addClass(t.cursorNode,"cursor-hover")),this.bindTimeupdate=l.bind(this,this._onTimeupdate),this._player.on(d.Player.TimeUpdate,this.bindTimeupdate),s.IS_IPAD?this.interval=setInterval(function(){t._onProgress()},500):this._player.on(d.Video.Progress,function(){t._onProgress()}),this._player.on(d.Private.UpdateProgress,function(e){t._updateProgressBar(t.playedNode,e.paramData.targetTime)}),this._player.on(d.Private.UpdateCursorPosition,function(e){t._updateCursorPosition(e.paramData.targetTime)})},_progressMove:function(e){e.preventDefault();var t,i,r=this._getSeconds(e);r!=1/0&&(t=c.formatTime(r),i=this._getDistance(e),this.cursorNode&&(this._player.trigger(d.Private.ThumbnailShow,{time:r,formatTime:t,left:i,progressWidth:this.el().offsetWidth}),this._autoHideThumbnail(),this._progressDown&&this._onMouseMove(e)))},_hideProgress:function(e){a.off(this.cursorNode,"mousedown"),a.off(this.cursorNode,"touchstart")},_cancelHideProgress:function(e){var t=this;a.on(this.cursorNode,"mousedown",function(e){t._onMouseDown(e)}),a.on(this.cursorNode,"touchstart",function(e){t._onMouseDown(e)})},_canSeekable:function(e){var t=!0;return t="function"==typeof this._player.canSeekable?this._player.canSeekable(e):t},_onMouseOver:function(e){this._cursorHideHandler&&(clearTimeout(this._cursorHideHandler),this._cursorHideHandler=null),this._mouseInProgress||this._updateCursorPosition(this._player.getCurrentTime()),this._mouseInProgress=!0},_onMouseOut:function(e){var t=this;this._cursorHideHandler&&clearTimeout(this._cursorHideHandler),this._cursorHideHandler=setTimeout(function(){t._player.trigger(d.Private.ThumbnailHide),t._mouseInProgress=!1})},_getSeconds:function(e){var t=this._getDistance(e),e=this.el().offsetWidth,e=this._player.getDuration()?t/e*this._player.getDuration():0;return e=(e=e<0?0:e)>this._player.getDuration()?this._player.getDuration():e},_getDistance:function(e){for(var t=this.el().offsetLeft,i=this.el();i=i.offsetParent;){var r=o.getTranslateX(i);t+=i.offsetLeft+r}e=(e.touches?e.touches[0]:e).pageX-t;return e=e<0?0:e},_onMouseClick:function(e){var t=this,i=t._getSeconds(e);t._canSeekable(i)?(t._player.exceedPreviewTime(i)&&(i=t._player.getPreviewTime()),this._seekTime=i,t._updateProgressBar(this.playedNode,i),t._updateCursorPosition(i),this._mouseClickTimeHandle&&clearTimeout(this._mouseClickTimeHandle),this._mouseClickTimeHandle=setTimeout(function(){t._player._seeking=!0,t._mouseDown&&!s.IS_MOBILE||(t._player.trigger(d.Private.SeekStart,{fromTime:t._player.getCurrentTime()}),t._player.trigger(d.Private.EndStart,{toTime:i})),t._player.seek(i),t._mouseDown=!1,t._mouseClickTimeHandle=null,t._inWaitingSeek=!1},0),this._inWaitingSeek=!0):t._player.trigger(d.Private.Info_Show,{text:n.get("Can_Not_Seekable"),duration:2e3})},_onMouseDown:function(e){var t=this;e.preventDefault(),this._mouseDown=!0,s.IS_PC&&this._player.trigger(d.Private.SeekStart,{fromTime:this._player.getCurrentTime()}),a.on(this.controlNode,"mousemove",function(e){t._onMouseMove(e)}),a.on(this.controlNode,"touchmove",function(e){t._onMouseMove(e)}),a.on(this.controlNode,"mouseup",function(e){t._onControlBarMouseUp(e)}),a.on(this.controlNode,"touchend",function(e){t._onControlBarMouseUp(e)});e=t._getSeconds(e);t._canSeekable(e)?t._player.exceedPreviewTime(e)&&t._player.getPreviewTime():t._player.trigger(d.Private.Info_Show,{text:n.get("Can_Not_Seekable"),duration:2e3})},_onMouseUp:function(e){this._onMouseUpIntern(e)},_onControlBarMouseUp:function(e){this._onMouseUpIntern(e)},_onPlayerMouseUp:function(e){this._onMouseUpIntern(e)},_offMouseUp:function(){a.off(this.controlNode,"mousemove"),a.off(this.controlNode,"touchmove"),a.off(this.controlNode,"mouseup"),a.off(this.controlNode,"touchend")},_onMouseUpIntern:function(e){e.preventDefault(),this._offMouseUp();e=this.playedNode.offsetWidth/this.el().offsetWidth*this._player.getDuration(),this._player.getDuration();isNaN(e)||this._player.seek(e),s.IS_PC&&this._player.trigger(d.Private.EndStart,{toTime:e}),this._autoHideThumbnail()},_onMouseMove:function(e){e.preventDefault(),!this._moving&&s.IS_MOBILE&&(this._player.trigger(d.Private.SeekStart,{fromTime:this._player.getCurrentTime()}),this._moving=!0);e=this._getSeconds(e);this._player.exceedPreviewTime(e)&&(e=this._player.getPreviewTime()),this._player.seek(e),this._updateProgressBar(this.playedNode,e),this._updateCursorPosition(e),this._lastSeekTime=e},_onTimeupdate:function(e){var t=this._player._options.source,i=this._getUrlSuffix(t),t=!1;"mp4"===i&&(s.IS_MAC_SAFARI&&(t=!0),s.IS_IOS&&(t=!0),s.IS_IE11&&(t=!0)),"m3u8"===i&&s.IS_IE11&&(t=!0),"audio"==this._player._options.mediaType&&s.IS_IOS&&(this._player._seeking=!1),(this._inWaitingSeek||this._player._seeking&&!s.IS_EDGE||this._progressDown)&&!t||(this._updateProgressBar(this.playedNode,this._player.getCurrentTime()),this._updateCursorPosition(this._player.getCurrentTime()),this._player.trigger(d.Private.UpdateProgressBar,{time:this._player.getCurrentTime()}))},_onProgress:function(e){this._player.getDuration()&&1<=this._player.getBuffered().length&&this._updateProgressBar(this.loadedNode,this._player.getBuffered().end(this._player.getBuffered().length-1))},_updateProgressBar:function(e,t){var i=this._player.getDuration();1!=this._player._switchSourcing&&i&&(-1!=this._seekTime&&(this._player.getCurrentTime()>=this._seekTime||!this._player._seeking?this._seekTime=-1:t=this._seekTime),1<(i=t/i+.005)&&(i=1),e&&o.css(e,"width",100*i+"%"))},_updateCursorPosition:function(e){var t,i,r,n=this._player.getDuration();1!=this._player._switchSourcing&&n&&(t=1,r=10/(i=this._player.el().clientWidth),0!=i&&(t=1-r),r=(r=e/n-r)<0?0:r,this.cursorNode&&(t<r?(o.css(this.cursorNode,"right","0px"),o.css(this.cursorNode,"left","auto")):(o.css(this.cursorNode,"right","auto"),o.css(this.cursorNode,"left",100*r+"%"))))},_getUrlSuffix:function(e){if(!e)return"";if("string"!=typeof e)return"";e=(e.split("?")[0]||"").split(".");return(e[e.length-1]||"").toLowerCase()},_autoHideThumbnail:function(){var e=this;s.IS_MOBILE&&(this._thumbnailHideTimer&&clearTimeout(this._thumbnailHideTimer),this._thumbnailHideTimer=setTimeout(function(){e._moving||e._player.trigger(d.Private.ThumbnailHide)},2e3))},disposeUI:function(){this._seekTime=-1,this._lastSeekTime=0,this._moving=!1,this.cursorNodeHandler&&(clearTimeout(this.cursorNodeHandler),this.cursorNodeHandler=null),this._cursorHideHandler&&(clearTimeout(this._cursorHideHandler),this._cursorHideHandler=null),this._mouseClickTimeHandle&&(clearTimeout(this._mouseClickTimeHandle),this._mouseClickTimeHandle=null)}});t.exports=e},{"../../config":13,"../../lang/index":21,"../../lib/constants":25,"../../lib/dom":29,"../../lib/event":30,"../../lib/function":32,"../../lib/ua":44,"../../lib/util":46,"../../player/base/event/eventtype":64,"../component":121,"./util":149}],134:[function(e,t,i){var r=e("../component"),n=(e("../../lib/util"),e("../../lib/dom")),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-marker-text")},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML="<p></p>",e},bindEvent:function(){var r=this;r._player.on(a.Private.MarkerTextShow,function(e){var t=e.paramData,i=a.Player.MarkerDotOver;r._player.trigger(i,e.paramData),t.progressMarker.isCustomized?r._player.trigger(a.Private.LifeCycleChanged,{type:i,data:e.paramData}):(r._thumbnailShowHanlde&&(n.css(r.el(),"display","none"),clearTimeout(r._thumbnailShowHanlde)),r._thumbnailShowHanlde=setTimeout(function(){var e;document.querySelector("#"+r.id()+" p").innerText=t.progressMarker.text||"",t&&(n.css(r.el(),"display","block"),e=r._player.el().offsetWidth,left=e*t.left,width=r.el().offsetWidth,left+width>e?(n.css(r.el(),"right","0px"),n.css(r.el(),"left","auto")):(left-=width/2,left=left<0?0:left,n.css(r.el(),"right","auto"),n.css(r.el(),"left",left+"px")))},30))}),r._player.on(a.Private.MarkerTextHide,function(e){r._player.trigger(a.Player.MarkerDotOut),r._player.trigger(a.Private.LifeCycleChanged,{type:a.Player.MarkerDotOut,data:""}),r._thumbnailShowHanlde&&clearTimeout(r._thumbnailShowHanlde),n.css(r.el(),"display","none")}),o.on(r._player.tag,"click",function(e){e&&e.target==e.currentTarget&&r._player.trigger(a.Private.MarkerTextHide)}),o.on(r._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&r._player.trigger(a.Private.MarkerTextHide)})},disposeUI:function(){this._thumbnailShowHanlde&&(clearTimeout(this._thumbnailShowHanlde),this._thumbnailShowHanlde=null)}});t.exports=e},{"../../lib/dom":29,"../../lib/event":30,"../../lib/util":46,"../../player/base/event/eventtype":64,"../component":121}],135:[function(e,t,i){var r=e("./selector"),s=e("../../../lib/object"),u=(e("../../../lib/util"),e("../../../lib/cookie")),l=e("../../../lib/dom"),c=(e("../../../lib/event"),e("../../../lib/constants")),d=e("../../../lang/index"),o=e("../../../player/base/event/eventtype"),e=r.extend({init:function(e,t){this.Name=d.get("Quality"),this.Type="quality",this.Tooltip=d.get("Quality_Switch_To"),r.call(this,e,t),this._isMasterLevel=!1},showTip:function(e,t){this._player.trigger(o.Private.Info_Show,{text:e,duration:t,align:"lb"})},bindEvent:function(){this.bindCommonEvent();var n=this;this._player.on(o.Private.QualityChange,function(e){var t,i,r=0<n._player._urls.length?n._player._urls:n._player._qualityService.levels;data=e.paramData,data.levelSwitch?(t=data.desc||data.bitrate,n._autoSWitchDesc=t,n._updateText(t)):0<n._player._currentPlayIndex&&(n._autoSWitchDesc="",t=r[(i=n._player._currentPlayIndex)-1].desc,i=r[i].desc,n.showTip(t+e.paramData+i,1e3),n._player.trigger(o.Private.SelectorValueChange,{type:n.Type,text:i}))});var e=document.querySelector("#"+n.id()+" .selector-list");this._player.on(o.Player.LevelSwitch,function(){l.addClass(e,"disabled")}),this._player.on(o.Player.LevelSwitched,function(){l.removeClass(e,"disabled")})},generateList:function(e){var t=this._player._urls,n=this._player._currentPlayIndex,i=this._player._qualityService.levels;0<i.length&&(this._isMasterLevel=!0,this._player._options.isVBR&&(n=(t=i).length-1));var o,a=document.querySelector("#"+this.id()+" .selector-list");0<t.length&&(o=this,s.each(t,function(e,t){var i,r;(e.desc||e.bitrate)&&(i=l.createEl.call(this,"li",{key:e.Url,index:t,text:e.desc||e.bitrate}),r=l.createEl.call(this,"span",{key:e.Url,index:t,text:e.desc||e.bitrate}),t==n&&(l.addClass(i,"current"),o._previousSelection=i),r.innerText=e.desc||e.bitrate,i.appendChild(r),a.appendChild(i))})),this._autoSWitchDesc&&this._updateText(this._autoSWitchDesc)},execute:function(e){if(this._player._switchSourcing=!0,this._isMasterLevel){for(var t,i=this._player._qualityService.levels,r=0;r<i.length;r++)i[r].Url==e&&i[r].desc!=d.get("Auto")&&(t=i[r],this._resetAutoText());this._player._switchLevel?this._player._switchLevel(e,t||{isAuto:!0}):(n=this._player.autoplay||"pause"!=this._player._status,this._player._loadByUrlInner(e,this._player.getCurrentTime(),n))}else{for(var n,o=this._player._urls.length,a=this._player._currentPlayIndex,s=-1,r=0;r<o;r++)if(this._player._urls[r].Url==e){s=this._player._currentPlayIndex=r,u.set(c.SelectedStreamLevel,this._player._urls[r].definition,365);break}a!=s&&-1<s&&(a=this._player.getCurrentTime(),n=this._player.autoplay||"pause"!=this._player._status,this._player.autoplay||0!=a||(n=!1),this._player._switchLevel&&!this._player._options.isLive?this._player._switchLevel(e):this._player._loadByUrlInner(e,a,n,!0))}var l=this;setTimeout(function(){l._player._switchSourcing=!1})},_updateText:function(e){var t=document.querySelector("#"+this.id()+" .selector-list .current"),i=document.querySelector("#"+this.id()+" .selector-list .current span"),r=d.get("Auto");i&&i.innerText&&-1<i.innerText.indexOf(r)&&(i.innerText=r+=e?"("+e+")":"",t&&(t.text=r))},_resetAutoText:function(){for(var e=d.get("Auto"),t=document.querySelectorAll("#"+this.id()+" .selector-list li"),i=0;i<=t.length;i++){var r=t[i],n=r.querySelector("span");if(-1<n.innerText.indexOf(e)){n.innerText=e,r.text=e;break}}}});t.exports=e},{"../../../lang/index":21,"../../../lib/constants":25,"../../../lib/cookie":26,"../../../lib/dom":29,"../../../lib/event":30,"../../../lib/object":38,"../../../lib/util":46,"../../../player/base/event/eventtype":64,"./selector":141}],136:[function(e,t,i){var r=e("./selector"),a=e("../../../lib/object"),s=(e("../../../lib/util"),e("../../../lib/cookie"),e("../../../lib/dom")),n=(e("../../../lib/event"),e("./util"),e("../../../lang/index")),l=e("../../../player/base/event/eventtype"),e=r.extend({init:function(e,t){this.Name=n.get("AudioTrack"),this.Type="audio",this.Tooltip=n.get("AudioTrack_Switch_To"),r.call(this,e,t)},bindEvent:function(){this.bindCommonEvent();var n=this,o=document.querySelector("#"+n.id()+" .selector-list");document.querySelector("#"+n.id()+" .header");n._player.on(l.Private.ChangeURL,function(){n._hasGeneratedList=!1}),this._player.on(l.Player.AudioTrackSwitch,function(){s.addClass(o,"disabled")}),this._player.on(l.Player.AudioTrackSwitched,function(){s.removeClass(o,"disabled")}),n._player.on(l.Player.AudioTrackReady,function(e){n._hasGeneratedList||(n._clear(),(e=e.paramData)&&(a.each(e,function(e,t){var i=s.createEl.call(n,"li",{key:e.value,text:e.text}),r=s.createEl.call(n,"span",{key:e.value,text:e.text});r.innerText=e.text,i.appendChild(r),o.appendChild(i)}),n._hasGeneratedList=!0))})},execute:function(e){this._player._audioTrackService.switch(e)}});t.exports=e},{"../../../lang/index":21,"../../../lib/cookie":26,"../../../lib/dom":29,"../../../lib/event":30,"../../../lib/object":38,"../../../lib/util":46,"../../../player/base/event/eventtype":64,"./selector":141,"./util":143}],137:[function(e,t,i){var r=e("../../component"),n=(e("../../../lib/dom"),e("../../../player/base/event/eventtype")),o=e("./list"),a=e("../../../lang/index"),s=e("../util"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass(t.className||"prism-setting-btn"),this._settingList=new o(e,t),e.addChild(this._settingList,t)},createEl:function(){return r.prototype.createEl.call(this,"div")},bindEvent:function(){var e=this;this.on("click",function(){e._settingList.isOpened?e._player.trigger(n.Private.SettingListHide):e._player.trigger(n.Private.SettingListShow),e._player.trigger(n.Private.SelectorHide),e._player.trigger(n.Private.MarkerTextHide),e._player.trigger(n.Private.VolumeVisibilityChange,"")}),s.registerTooltipEvent.call(this,this.el(),a.get("Setting"))}});t.exports=e},{"../../../lang/index":21,"../../../lib/dom":29,"../../../player/base/event/eventtype":64,"../../component":121,"../util":149,"./list":140}],138:[function(e,t,i){var r=e("./selector"),s=e("../../../lib/object"),l=e("../../../lib/dom"),n=(e("../../../lib/event"),e("./util"),e("../../../lib/cookie")),o=e("../../../lib/constants"),a=e("../../../lang/index"),u=e("../../../player/base/event/eventtype"),e=r.extend({init:function(e,t){this.Name=a.get("Subtitle"),this.Type="cc",this.Tooltip=a.get("CC_Switch_To"),r.call(this,e,t)},bindEvent:function(){this.bindCommonEvent();var i=this;this._player.on(u.Private.CCStateChanged,function(e){var t=e.paramData.value,e=e.paramData.lang;"on"==t&&e?i._backCCText=e:"off"==t&&""==i._backCCText&&(i._backCCText=i._previousSelection.text);e="Off";"on"==t&&(e=i._backCCText),i._player.trigger(u.Private.SelectorUpdateList,{type:"cc",text:e})})},generateList:function(n){var o=document.querySelector("#"+this.id()+" .selector-list"),e=this._player._ccService.tracks,a=this;s.each(e,function(e,t){var i=l.createEl.call(this,"li",{key:e.value,text:e.text}),r=l.createEl.call(this,"span",{key:e.value,text:e.text});e.text==n&&(l.addClass(i,"current"),a._previousSelection=i),r.innerText=e.text,i.appendChild(r),o.appendChild(i)})},execute:function(e){this._backCCText="",n.set(o.SelectedCC,e,365),this._player._ccService.switch(e)}});t.exports=e},{"../../../lang/index":21,"../../../lib/constants":25,"../../../lib/cookie":26,"../../../lib/dom":29,"../../../lib/event":30,"../../../lib/object":38,"../../../player/base/event/eventtype":64,"./selector":141,"./util":143}],139:[function(e,t,i){t.exports={CC:e("./cc"),Speed:e("./speed"),Quality:e("./Quality"),Audio:e("./audio")}},{"./Quality":135,"./audio":136,"./cc":138,"./speed":142}],140:[function(e,t,i){var o=e("../../component"),n=e("../../../lib/dom"),a=e("../../../lib/ua"),s=e("../../../lib/event"),l=e("../../../player/base/event/eventtype"),u=e("./export"),c=e("./util"),d=e("../../../lang/index"),e=o.extend({init:function(e,t){for(var i in this.isOpened=!1,o.call(this,e,t),this.addClass(t.className||"prism-setting-list"),u){var r=new u[i](e,t);e.addChild(r,t)}},createEl:function(){var e=o.prototype.createEl.call(this,"div"),t="<div class='prism-setting-item prism-setting-{type}' type={type}><div class='setting-content'><span class='setting-title'>{value}</span><span class='array'></span><span class='current-setting'></span></div></div>",i=t.replace(/{type}/g,"speed").replace("{value}",d.get("Speed")),r=t.replace(/{type}/g,"cc").replace("{value}",d.get("Subtitle")),n=t.replace(/{type}/g,"audio").replace("{value}",d.get("AudioTrack")),t=t.replace(/{type}/g,"quality").replace("{value}",d.get("Quality"));return e.innerHTML=i+r+n+t,e},bindEvent:function(){function t(){r._player.trigger(l.Private.SettingListHide),r.isOpened=!1}function i(e){e&&e.text&&(document.querySelector("#"+r.id()+" .prism-setting-"+e.type+" .current-setting").innerText=e.text)}var r=this;this._player.on(l.Private.SettingListShow,function(e){r.isOpened=!0;e=e.paramData;i(e),n.css(r.el(),"display","block")}),this._player.on(l.Private.UpdateToSettingList,function(e){e=e.paramData;i(e)}),this._player.on(l.Private.SelectorUpdateList,function(e){e=e.paramData;i(e),r._player.trigger(l.Private.SelectorValueChange,e)}),this._player.on(l.Private.SettingListHide,function(){r.isOpened=!1,n.css(r.el(),"display","none")}),s.on(this.el(),"click",function(e){r._player.trigger(l.Private.SettingListHide);e=e.srcElement||e.target;(e=c.findItemElementForList(e))&&(e=e.getAttribute("type"),r._player.trigger(l.Private.SelectorShow,{type:e}))});var e=a.IS_MOBILE?"touchleave":"mouseleave";s.on(this.el(),e,function(){t()}),s.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&t()}),s.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&t()}),this._player.on(l.Private.QualityChange,function(e){var t,i=e.paramData;i.levelSwitch&&(t=document.querySelector("#"+r.id()+" .prism-setting-quality .current-setting"),e=d.get("Auto"),-1<t.innerText.indexOf(e)&&(t.innerText=e+(i.desc?"("+i.desc+")":"")))})}});t.exports=e},{"../../../lang/index":21,"../../../lib/dom":29,"../../../lib/event":30,"../../../lib/ua":44,"../../../player/base/event/eventtype":64,"../../component":121,"./export":139,"./util":143}],141:[function(e,t,i){var r=e("../../component"),n=(e("../../../lib/object"),e("../../../lib/util"),e("../../../lib/ua")),a=(e("../../../lib/cookie"),e("../../../lib/dom")),s=e("../../../lib/event"),l=e("./util"),u=(e("../../../lang/index"),e("../../../player/base/event/eventtype")),e=r.extend({init:function(e,t){this._hasGeneratedList=!1,this._previousSelection=null,this._backupSelector="",r.call(this,e,t),this.className=t.className||"prism-"+this.Type+"-selector prism-setting-selector",this.addClass(this.className)},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='<div class="header"><div class="left-array"></div><span>'+this.Name+'</span></div><ul class="selector-list"></ul>',e},bindEvent:function(){this.bindCommonEvent()},bindCommonEvent:function(){var o=this,e=document.querySelector("#"+o.id()+" .selector-list"),t=document.querySelector("#"+o.id()+" .header");function i(){o._hasGeneratedList||(o._clear(),o.generateList(o._backupSelector),o._backupSelector="",o._hasGeneratedList=!0)}this._player.on(u.Private.ChangeURL,function(){o._hasGeneratedList=!1}),s.on(t,"click",function(){o._player.trigger(u.Private.SelectorHide),o._player.trigger(u.Private.SettingListShow,{type:o.Type,text:o._previousSelection?o._previousSelection.text:""})}),s.on(e,"click",function(e){var t=e.srcElement||e.target,i=t.key,e=t.text;void 0!==e&&(o._previousSelection&&a.removeClass(o._previousSelection,"current"),o._previousSelection=l.findliElementForSelector(t),a.addClass(o._previousSelection,"current"),o.execute&&o.execute(i),e=o.Tooltip+"<span>"+e+"</span>",o._player.trigger(u.Private.Info_Show,{text:e,duration:1e3,align:"lb"}))}),o._player.on(u.Private.SelectorHide,function(){r()}),o._player.on(u.Private.SelectorValueChange,function(e){var t=e.paramData;if(t&&t.type==o.Type){var i=document.querySelectorAll("#"+o.id()+" .selector-list li");if(i){var r=i.length;0==r&&(o._backupSelector=t.text);for(var n=0;n<r;n++)if(i[n].text==t.text){o._previousSelection&&a.removeClass(o._previousSelection,"current"),a.addClass(i[n],"current"),o._previousSelection=i[n];break}}}}),o._player.on(u.Private.SettingListShow,function(){i()}),o._player.on(u.Private.SelectorGenerateList,function(e){var t=e.paramData&&e.paramData.type,e=e.paramData&&e.paramData.value;t===o.Type&&(o._hasGeneratedList=!1,e&&(o._backupSelector=e),i())}),o._player.on(u.Private.SelectorShow,function(e){(e=e.paramData).type==o.Type&&(e=document.querySelector("#"+o._player.id()+" .prism-"+e.type+"-selector"),o._hasGeneratedList||i(),a.css(e,"display","block"))});var r=function(){a.css(o.el(),"display","none"),o._player.trigger(u.Private.UpdateToSettingList,{type:o.Type,text:o._previousSelection?o._previousSelection.text:""})},e=n.IS_MOBILE?"touchleave":"mouseleave";s.on(this.el(),e,function(){r()}),s.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&r()}),s.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&r()})},setSelected:function(e){},generateList:function(){},_clear:function(){document.querySelector("#"+this.id()+" .selector-list").innerHTML=""}});t.exports=e},{"../../../lang/index":21,"../../../lib/cookie":26,"../../../lib/dom":29,"../../../lib/event":30,"../../../lib/object":38,"../../../lib/ua":44,"../../../lib/util":46,"../../../player/base/event/eventtype":64,"../../component":121,"./util":143}],142:[function(e,t,i){var r=e("./selector"),a=e("../../../lib/object"),s=(e("../../../lib/util"),e("../../../lib/cookie"),e("../../../lib/dom")),l=(e("../../../lib/event"),e("./util"),e("../../../lib/constants")),u=e("../../../lang/index"),e=(e("../../../player/base/event/eventtype"),r.extend({init:function(e,t){this.Name=u.get("Speed"),this.Type="speed",this.Tooltip=u.get("Speed_Switch_To"),r.call(this,e,t)},generateList:function(){var n=document.querySelector("#"+this.id()+" .selector-list"),e=l.SpeedLevels,o=this;a.each(e,function(e,t){var i=s.createEl.call(this,"li",{key:e.key,text:e.text}),r=s.createEl.call(this,"span",{key:e.key,text:e.text});r.innerText=e.text,e.text==u.get("Speed_1X_Text")&&(s.addClass(i,"current"),o._previousSelection=i),i.appendChild(r),n.appendChild(i)})},execute:function(e){this._player.setSpeed(e)}}));t.exports=e},{"../../../lang/index":21,"../../../lib/constants":25,"../../../lib/cookie":26,"../../../lib/dom":29,"../../../lib/event":30,"../../../lib/object":38,"../../../lib/util":46,"../../../player/base/event/eventtype":64,"./selector":141,"./util":143}],143:[function(e,i,t){i.exports.findliElementForSelector=function(e){if(!e||"li"==e.tagName.toLowerCase())return e;e=e.parentElement;return e&&"li"==e.tagName.toLowerCase()?e:null},i.exports.findliElementByKey=function(e,t){document.querySelectors(e);return null},i.exports.findItemElementForList=function(e){if(!e||-1<e.className.indexOf("prism-setting-item"))return e;var t=e.parentElement;return e=t?i.exports.findItemElementForList(t):e}},{}],144:[function(e,t,i){var r=e("../component"),n=e("../../lib/dom"),u=e("../../lib/util"),o=e("../../lang/index"),c=e("../../player/base/event/eventtype"),a=e("./util"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-snapshot-btn")},createEl:function(){return r.prototype.createEl.call(this,"div")},bindEvent:function(){var l=this;this._player.on(c.Private.Snapshot_Hide,function(){n.css(l._el,"display","none")}),a.registerTooltipEvent.call(this,this.el(),o.get("Snapshot")),this.on("click",function(){l.trigger(c.Player.Snapshoting);var e=document.createElement("canvas"),t=l._player.tag,i=t.videoWidth,r=t.videoHeight,n=l._player._getSanpshotMatric();e.width=n.width||i,e.height=n.height||r;var o=l._player.getCurrentTime(),a=e.getContext("2d");a.save();var s=l._player.getImage();"vertical"==s?(a.translate(0,e.height),a.scale(1,-1)):"horizon"==s&&(a.translate(e.width,0),a.scale(-1,1)),a.drawImage(t,0,0,i,r),a.restore(),d(a,l._player.getOptions());i="",r="";try{i=e.toDataURL("image/jpeg",n.rate||1)}catch(e){r=e}a="",e="",n="";i&&(e=(a=i).substr(a.indexOf(",")+1),n=u.toBinary(e)),l.trigger(c.Player.Snapshoted,{time:o,base64:a,binary:n,error:r})})}}),d=function(e,t){t=t.snapshotWatermark;t&&t.text&&(e.font=t.font,t.fillColor&&(e.fillStyle=t.fillColor,e.fillText(t.text,t.left,t.top)),t.strokeColor&&(e.strokeStyle=t.strokeColor,e.strokeText(t.text,t.left,t.top)),e.stroke())};t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../lib/util":46,"../../player/base/event/eventtype":64,"../component":121,"./util":149}],145:[function(e,t,i){var r=e("../component"),e=(e("../../lib/dom"),e("../../player/base/event/eventtype"),r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-text-overlay")},createEl:function(){return r.prototype.createEl.call(this,"div")},_hide:function(e){},_show:function(e){},bindEvent:function(){}}));t.exports=e},{"../../lib/dom":29,"../../player/base/event/eventtype":64,"../component":121}],146:[function(e,t,i){var r=e("../component"),a=(e("../../lib/util"),e("../../lib/dom")),n=e("../../lib/event"),s=(e("../../lib/ua"),e("../../lang/index"),e("../../player/base/event/eventtype")),l=e("./util"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-thumbnail")},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML="<img></img><span></span>",e},bindEvent:function(){var o=this;n.on(this._el,"mousemove",function(e){e.preventDefault()}),n.on(this._el,"touchmove",function(e){e.preventDefault()}),o._player.on(s.Private.ThumbnailLoaded,function(e){var i,r,t=e.paramData;t&&0<t.length&&(e=o._player._thumbnailService.makeUrl(t[0].text),o._player.log("THUMBNAILSTART",{tu:encodeURIComponent(e)}),i=(new Date).getTime(),t[0].isBig?(a.css(o.el(),"background","url("+e+")"),a.css(o.el(),"width",t[0].w+"px"),a.css(o.el(),"height",t[0].h+"px"),o._player.log("THUMBNAILCOMPLETE",{ftt:(new Date).getTime()-i})):((r=document.querySelector("#"+o.id()+" img")).onload=function(){var e=r.width,t=r.height;a.css(o.el(),"width",e+"px"),a.css(o.el(),"height",t+"px"),o._player.log("THUMBNAILCOMPLETE",{ftt:(new Date).getTime()-i})},r.src=e))});var e=l.throttle(function(e){var t,i,r=e[0],n=document.querySelector("#"+o.id()+" span"),e=r.paramData;n.innerText=e.formatTime,e&&((r=o._player._thumbnailService.findAvailableCue(e.time))?r.isBig?(i=o._player._thumbnailService.makeUrl(r.text),a.css(o.el(),"background","url("+i+")"),r.w,r.h,t=-1*r.x+"px "+-1*r.y+"px",a.css(o.el(),"background-position",t)):(t=document.querySelector("#"+o.id()+" img"),i=o._player._thumbnailService.makeUrl(r.text),t.src!=i&&(t.src=i)):(a.css(o.el(),"border","none"),a.css(n,"left","0px")),a.css(o.el(),"display","block"),i=0,n=(r?o.el():n).offsetWidth,i=e.left+n>e.progressWidth?e.left-n:(i=e.left-n/2)<0?0:i,a.css(o.el(),"left",i+"px"))},30);o._player.on(s.Private.ThumbnailShow,e),o._player.on(s.Private.ThumbnailHide,function(e){a.css(o.el(),"display","none")})},_createSamllThumbnail:function(){},disposeUI:function(){}});t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../lib/event":30,"../../lib/ua":44,"../../lib/util":46,"../../player/base/event/eventtype":64,"../component":121,"./util":149}],147:[function(e,t,i){var r=e("../component"),n=e("../../lib/util"),o=e("../../player/base/event/eventtype"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-time-display")},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='<span class="current-time">00:00</span> <span class="time-bound">/</span> <span class="duration">00:00</span>',e},bindEvent:function(){var t=this;this._player.on(o.Video.DurationChange,function(){var e=n.formatTime(t._player.getDisplayDuration());e?(document.querySelector("#"+t.id()+" .time-bound").style.display="inline",document.querySelector("#"+t.id()+" .duration").style.display="inline",document.querySelector("#"+t.id()+" .duration").innerText=e):(document.querySelector("#"+t.id()+" .duration").style.display="none",document.querySelector("#"+t.id()+" .time-bound").style.display="none")}),this._player.on(o.Video.TimeUpdate,function(){var e=t._player.getCurrentTime(),e=n.formatTime(e);document.querySelector("#"+t.id()+" .current-time")&&(e?(document.querySelector("#"+t.id()+" .current-time").style.display="inline",document.querySelector("#"+t.id()+" .current-time").innerText=e):document.querySelector("#"+t.id()+" .current-time").style.display="none")})}});t.exports=e},{"../../lib/util":46,"../../player/base/event/eventtype":64,"../component":121}],148:[function(e,t,i){var r=e("../component"),o=e("../../lib/dom"),a=e("../../player/base/event/eventtype"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-tooltip")},createEl:function(){var e=r.prototype.createEl.call(this,"p");return e.innerText="\u63d0\u793a\u4fe1\u606f",e},bindEvent:function(){var n=this;n._player.on(a.Private.TooltipShow,function(e){var t=document.querySelector("#"+n.id()),i=e.paramData;t.innerText=i.text,o.css(t,"display","block");var r=t.offsetWidth,e=document.querySelector("#"+n._player.id()+" .prism-controlbar");e&&(e=e.offsetWidth,i.left+r>e?o.css(t,"left",e-r+"px"):o.css(t,"left",i.left-(r-i.width)/2+"px"))}),n._player.on(a.Private.TooltipHide,function(e){var t=document.querySelector("#"+n.id());o.css(t,"display","none")})}});t.exports=e},{"../../lib/dom":29,"../../player/base/event/eventtype":64,"../component":121}],149:[function(e,t,i){var r=e("../../lib/event"),s=e("../../player/base/event/eventtype");t.exports.registerTooltipEvent=function(e,n){function o(){a._controlbarTooltipHandler&&(clearTimeout(a._controlbarTooltipHandler),a._controlbarTooltipHandler=null)}var a=this;r.on(this.el(),"mouseover",function(e){o(),a._controlbarTooltipHandler=setTimeout(function(){a._player.trigger(s.Private.TooltipHide)},4e3);var t=a.el().offsetLeft,i=a.el().offsetWidth,r=n;"function"==typeof n&&(r=n.call(this)),a._player.trigger(s.Private.TooltipShow,{left:t,width:i,text:r})}),r.on(this.el(),"mouseout",function(){o(),a._player.trigger(s.Private.TooltipHide)})},t.exports.throttle=function(i,r){var n=Date.now();return function(){var e=arguments,t=Date.now();r<=t-n&&(i(e),n=t)}},t.exports.debounce=function(i,r){var n;return function(){var e=this,t=arguments;clearTimeout(n),n=setTimeout(function(){i.apply(e,t)},r)}}},{"../../lib/event":30,"../../player/base/event/eventtype":64}],150:[function(e,t,i){var r=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),s=e("./util"),l=e("../../lang/index"),u=e("./volumecontrol"),e=r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-volume");var i=new u(e,t);e.addChild(i,t),this.volumeControl=i},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='<div class="volume-icon"><div class="short-horizontal"></div><div class="long-horizontal"></div></div>',e},bindEvent:function(){var i=this,r=i._player;this.icon=document.querySelector("#"+i.id()+"  .volume-icon"),s.registerTooltipEvent.call(this,this.el(),function(){return i._player.muted()||0==i._player.getVolume()?l.get("Muted"):l.get("Volume")}),o.on(this.icon,"click",function(e){var t;i.volumeControl._shown?r.muted()?r.unMute():r.mute():(t=i.el().offsetLeft,i._player.trigger(a.Private.SettingListHide),i._player.trigger(a.Private.SelectorHide),i._player.trigger(a.Private.VolumeVisibilityChange,t),i._player.trigger(a.Private.MarkerTextHide))});var e=document.querySelector("#"+i.id()+"  .long-horizontal"),t=document.querySelector("#"+i.id()+"  .short-horizontal");o.on(this.el(),"mouseover",function(){n.removeClass(e,"volume-hover-animation"),setTimeout(function(){n.addClass(e,"volume-hover-animation")}),setTimeout(function(){n.removeClass(e,"volume-hover-animation"),n.addClass(t,"volume-hover-animation"),setTimeout(function(){n.removeClass(t,"volume-hover-animation"),n.addClass(e,"volume-hover-animation")},300)},300)}),o.on(window,"resize",function(){var e;i.volumeControl._shown&&(e=i.el().offsetLeft,i._player.trigger(a.Private.VolumeUpdatePosition,e))})}});t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../lib/event":30,"../../player/base/event/eventtype":64,"../component":121,"./util":149,"./volumecontrol":151}],151:[function(e,t,i){var r=e("../component"),n=e("../../lib/dom"),o=e("../../lib/event"),a=e("../../player/base/event/eventtype"),e=(e("./util"),e("../../lang/index"),r.extend({init:function(e,t){r.call(this,e,t),this.addClass("prism-volume-control"),this._shown=!1},createEl:function(){var e=r.prototype.createEl.call(this,"div");return e.innerHTML='<div class="volume-range"><div class="volume-value"></div><div class="volume-cursor"></div></div>',e},bindEvent:function(){var i=this;this.icon=document.querySelector("#"+i._player.id()+"  .volume-icon"),this.control=document.querySelector("#"+i.id()),this.volumnValue=document.querySelector("#"+i.id()+"  .volume-value"),this.volumnRange=document.querySelector("#"+i.id()+"  .volume-range"),this.volumnCursor=document.querySelector("#"+i.id()+"  .volume-cursor"),this._player.on(a.Private.VolumeVisibilityChange,function(e){var t=e.paramData;!i._shown&&t?(e=i._player.getVolume(),i._setVolumnUI(e),n.css(i.control,"display","block"),t&&i._updatePosition(t),i._shown=!0):i._hide()}),this._player.on(a.Private.VolumeUpdatePosition,function(e){e=e.paramData;i._shown&&i._updatePosition(e)}),this._player.on(a.Private.ControlBarClick,function(e){n.hasClass(e.paramData.target,"prism-controlbar-bg")&&i._hide()}),o.on(this.volumnRange,"click",function(e){e=n.getPointerPosition(i.volumnRange,e).y;e<0||1<e||(i._setVolumnUI(e=1<(e=e<0?0:e)?1:e),i._setMuteUI(e),i._player.setVolume(e))}),o.on(this._player.tag,"click",function(e){e&&e.target==e.currentTarget&&i._hide()}),o.on(this._player.tag,"touchstart",function(e){e&&e.target==e.currentTarget&&i._hide()}),o.on(this.volumnCursor,"mousedown",function(e){i._onMouseDown(e)}),o.on(this.volumnCursor,"touchstart",function(e){i._onMouseDown(e)}),this._player.on(a.Private.VolumnChanged,function(e){e=e.paramData;-1<e&&i._setVolumnUI(e),i._setMuteUI(e)}),o.on(this.control,"mouseleave",function(){i._offEvent(),i._hide()}),o.on(this.control,"mouseover",function(){n.addClass(i.control,"hover")}),i._rangeBottom=i._getBottom()},_getBottom:function(){if(window.getComputedStyle){var e=window.getComputedStyle(this.volumnRange,null).getPropertyValue("bottom");return parseFloat(e)}return 26},_onMouseDown:function(e){var t=this;e.preventDefault(),o.on(this.control,"mousemove",function(e){t._onMouseMove(e)}),o.on(this.control,"touchmove",function(e){t._onMouseMove(e)}),o.on(this._player.tag,"mouseup",function(e){t._onMouseUp(e)}),o.on(this._player.tag,"touchend",function(e){t._onMouseUp(e)}),o.on(this.control,"mouseup",function(e){t._onMouseUp(e)}),o.on(this.control,"touchend",function(e){t._onMouseUp(e)})},_onMouseUp:function(e){e.preventDefault(),this._offEvent(),this.volumnRange.offsetHeight&&(e=(this.volumnValue.offsetHeight/this.volumnRange.offsetHeight).toFixed(2),this._player.setVolume(e),this._setMuteUI(e))},_onMouseMove:function(e){e.preventDefault();e=n.getPointerPosition(this.volumnRange,e).y;e<0||1<e||this._setVolumnUI(e=1<(e=e<0?0:e)?1:e)},_getPosition:function(e){for(var t=this.volumnRange,i=0;t=t.offsetParent;)i+=t.offsetTop;var r=this.volumnRange.offsetHeight,n=this.volumnCursor.offsetHeight,o=(e.touches?e.touches[0]:e).pageY;return(r-((o=r<o-i?e.clientY:o)-i)+n)/(r=this.volumnRange.offsetHeight)},_offEvent:function(){o.off(this._player.tag,"mouseup"),o.off(this._player.tag,"touchend"),o.off(this.control,"mousemove"),o.off(this.control,"touchmove"),o.off(this.control,"mouseup"),o.off(this.control,"touchend")},_setMuteUI:function(e){isNaN(e)||(0==e||-1==e?n.addClass(this.icon,"mute"):n.removeClass(this.icon,"mute"))},_setVolumnUI:function(e){isNaN(e)||(n.css(this.volumnValue,"height",100*e+"%"),n.css(this.volumnCursor,"bottom",100*(e=1==e?.99:e)+"%"))},_hide:function(){n.css(this.control,"display","none"),this._shown=!1},_updatePosition:function(e){n.css(this.control,"left",e-5+"px")}}));t.exports=e},{"../../lang/index":21,"../../lib/dom":29,"../../lib/event":30,"../../player/base/event/eventtype":64,"../component":121,"./util":149}],152:[function(e,t,i){t.exports={H5Loading:e("./component/h5-loading"),bigPlayButton:e("./component/big-play-button"),controlBar:e("./component/controlbar"),progress:e("./component/progress"),playButton:e("./component/play-button"),liveDisplay:e("./component/live-display"),timeDisplay:e("./component/time-display"),fullScreenButton:e("./component/fullscreen-button"),volume:e("./component/volume"),snapshot:e("./component/snapshot"),errorDisplay:e("./component/error-display"),infoDisplay:e("./component/info-display"),liveShiftProgress:e("../commonui/liveshiftprogress"),liveShiftTimeDisplay:e("../commonui/livetimedisplay"),setting:e("./component/setting/button"),subtitle:e("./component/cc-button"),thumbnail:e("./component/thumbnail"),tooltip:e("./component/tooltip")}},{"../commonui/liveshiftprogress":11,"../commonui/livetimedisplay":12,"./component/big-play-button":122,"./component/cc-button":123,"./component/controlbar":124,"./component/error-display":126,"./component/fullscreen-button":127,"./component/h5-loading":128,"./component/info-display":129,"./component/live-display":130,"./component/play-button":132,"./component/progress":133,"./component/setting/button":137,"./component/snapshot":144,"./component/thumbnail":146,"./component/time-display":147,"./component/tooltip":148,"./component/volume":150}]},{},[14]);
      </script>  




<script src="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-01451749-3f0f-4dba-b3d8-a8b2aa171e77/addc4087-adaf-44a2-a634-ebdf047f5224.js" charset="utf-8"></script>
<script type = "text/javascript">
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.init(e,t,r)},w=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=/\S+/g,C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^[\],:{}\s]*$/,S=/(?:^|:|,)(?:\s*\[)+/g,A=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,j=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,D=/^-ms-/,L=/-([\da-z])/gi,H=function(e,t){return t.toUpperCase()},q=function(e){(a.addEventListener||"load"===e.type||"complete"===a.readyState)&&(_(),x.ready())},_=function(){a.addEventListener?(a.removeEventListener("DOMContentLoaded",q,!1),e.removeEventListener("load",q,!1)):(a.detachEvent("onreadystatechange",q),e.detachEvent("onload",q))};x.fn=x.prototype={jquery:f,constructor:x,init:function(e,n,r){var i,o;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof x?n[0]:n,x.merge(this,x.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:a,!0)),k.test(i[1])&&x.isPlainObject(n))for(i in n)x.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(o=a.getElementById(i[2]),o&&o.parentNode){if(o.id!==i[2])return r.find(e);this.length=1,this[0]=o}return this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):x.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),x.makeArray(e,this))},selector:"",length:0,toArray:function(){return g.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return x.each(this,e,t)},ready:function(e){return x.ready.promise().done(e),this},slice:function(){return this.pushStack(g.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:h,sort:[].sort,splice:[].splice},x.fn.init.prototype=x.fn,x.extend=x.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),"object"==typeof s||x.isFunction(s)||(s={}),u===l&&(s=this,--l);u>l;l++)if(null!=(o=arguments[l]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(x.isPlainObject(r)||(n=x.isArray(r)))?(n?(n=!1,a=e&&x.isArray(e)?e:[]):a=e&&x.isPlainObject(e)?e:{},s[i]=x.extend(c,a,r)):r!==t&&(s[i]=r));return s},x.extend({expando:"jQuery"+(f+Math.random()).replace(/\D/g,""),noConflict:function(t){return e.$===x&&(e.$=u),t&&e.jQuery===x&&(e.jQuery=l),x},isReady:!1,readyWait:1,holdReady:function(e){e?x.readyWait++:x.ready(!0)},ready:function(e){if(e===!0?!--x.readyWait:!x.isReady){if(!a.body)return setTimeout(x.ready);x.isReady=!0,e!==!0&&--x.readyWait>0||(n.resolveWith(a,[x]),x.fn.trigger&&x(a).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===x.type(e)},isArray:Array.isArray||function(e){return"array"===x.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[y.call(e)]||"object":typeof e},isPlainObject:function(e){var n;if(!e||"object"!==x.type(e)||e.nodeType||x.isWindow(e))return!1;try{if(e.constructor&&!v.call(e,"constructor")&&!v.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}if(x.support.ownLast)for(n in e)return v.call(e,n);for(n in e);return n===t||v.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||a;var r=k.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=x.buildFragment([e],t,i),i&&x(i).remove(),x.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=x.trim(n),n&&E.test(n.replace(A,"@").replace(j,"]").replace(S,"")))?Function("return "+n)():(x.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&x.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(D,"ms-").replace(L,H)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:b&&!b.call("\ufeff\u00a0")?function(e){return null==e?"":b.call(e)}:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?x.merge(n,"string"==typeof e?[e]:e):h.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(m)return m.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return d.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),x.isFunction(e)?(r=g.call(arguments,2),i=function(){return e.apply(n||this,r.concat(g.call(arguments)))},i.guid=e.guid=e.guid||x.guid++,i):t},access:function(e,n,r,i,o,a,s){var l=0,u=e.length,c=null==r;if("object"===x.type(r)){o=!0;for(l in r)x.access(e,n,l,r[l],!0,a,s)}else if(i!==t&&(o=!0,x.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(x(e),n)})),n))for(;u>l;l++)n(e[l],r,s?i:i.call(e[l],l,n(e[l],r)));return o?e:c?n.call(e):u?n(e[0],r):a},now:function(){return(new Date).getTime()},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),x.ready.promise=function(t){if(!n)if(n=x.Deferred(),"complete"===a.readyState)setTimeout(x.ready);else if(a.addEventListener)a.addEventListener("DOMContentLoaded",q,!1),e.addEventListener("load",q,!1);else{a.attachEvent("onreadystatechange",q),e.attachEvent("onload",q);var r=!1;try{r=null==e.frameElement&&a.documentElement}catch(i){}r&&r.doScroll&&function o(){if(!x.isReady){try{r.doScroll("left")}catch(e){return setTimeout(o,50)}_(),x.ready()}}()}return n.promise(t)},x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=x.type(e);return x.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=x(a),function(e,t){var n,r,i,o,a,s,l,u,c,p,f,d,h,g,m,y,v,b="sizzle"+-new Date,w=e.document,T=0,C=0,N=st(),k=st(),E=st(),S=!1,A=function(e,t){return e===t?(S=!0,0):0},j=typeof t,D=1<<31,L={}.hasOwnProperty,H=[],q=H.pop,_=H.push,M=H.push,O=H.slice,F=H.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W=R.replace("w","w#"),$="\\["+P+"*("+R+")"+P+"*(?:([*^$|!~]?=)"+P+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+W+")|)|)"+P+"*\\]",I=":("+R+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+$.replace(3,8)+")*)|.*)\\)|)",z=RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),X=RegExp("^"+P+"*,"+P+"*"),U=RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),V=RegExp(P+"*[+~]"),Y=RegExp("="+P+"*([^\\]'\"]*)"+P+"*\\]","g"),J=RegExp(I),G=RegExp("^"+W+"$"),Q={ID:RegExp("^#("+R+")"),CLASS:RegExp("^\\.("+R+")"),TAG:RegExp("^("+R.replace("w","w*")+")"),ATTR:RegExp("^"+$),PSEUDO:RegExp("^"+I),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:RegExp("^(?:"+B+")$","i"),needsContext:RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,nt=/'|\\/g,rt=RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),it=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)};try{M.apply(H=O.call(w.childNodes),w.childNodes),H[w.childNodes.length].nodeType}catch(ot){M={apply:H.length?function(e,t){_.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function at(e,t,n,i){var o,a,s,l,u,c,d,m,y,x;if((t?t.ownerDocument||t:w)!==f&&p(t),t=t||f,n=n||[],!e||"string"!=typeof e)return n;if(1!==(l=t.nodeType)&&9!==l)return[];if(h&&!i){if(o=Z.exec(e))if(s=o[1]){if(9===l){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&v(t,a)&&a.id===s)return n.push(a),n}else{if(o[2])return M.apply(n,t.getElementsByTagName(e)),n;if((s=o[3])&&r.getElementsByClassName&&t.getElementsByClassName)return M.apply(n,t.getElementsByClassName(s)),n}if(r.qsa&&(!g||!g.test(e))){if(m=d=b,y=t,x=9===l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){c=mt(e),(d=t.getAttribute("id"))?m=d.replace(nt,"\\$&"):t.setAttribute("id",m),m="[id='"+m+"'] ",u=c.length;while(u--)c[u]=m+yt(c[u]);y=V.test(e)&&t.parentNode||t,x=c.join(",")}if(x)try{return M.apply(n,y.querySelectorAll(x)),n}catch(T){}finally{d||t.removeAttribute("id")}}}return kt(e.replace(z,"$1"),t,n,i)}function st(){var e=[];function t(n,r){return e.push(n+=" ")>o.cacheLength&&delete t[e.shift()],t[n]=r}return t}function lt(e){return e[b]=!0,e}function ut(e){var t=f.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ct(e,t){var n=e.split("|"),r=e.length;while(r--)o.attrHandle[n[r]]=t}function pt(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||D)-(~e.sourceIndex||D);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ft(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function dt(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ht(e){return lt(function(t){return t=+t,lt(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}s=at.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},r=at.support={},p=at.setDocument=function(e){var n=e?e.ownerDocument||e:w,i=n.defaultView;return n!==f&&9===n.nodeType&&n.documentElement?(f=n,d=n.documentElement,h=!s(n),i&&i.attachEvent&&i!==i.top&&i.attachEvent("onbeforeunload",function(){p()}),r.attributes=ut(function(e){return e.className="i",!e.getAttribute("className")}),r.getElementsByTagName=ut(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),r.getElementsByClassName=ut(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),r.getById=ut(function(e){return d.appendChild(e).id=b,!n.getElementsByName||!n.getElementsByName(b).length}),r.getById?(o.find.ID=function(e,t){if(typeof t.getElementById!==j&&h){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){return e.getAttribute("id")===t}}):(delete o.find.ID,o.filter.ID=function(e){var t=e.replace(rt,it);return function(e){var n=typeof e.getAttributeNode!==j&&e.getAttributeNode("id");return n&&n.value===t}}),o.find.TAG=r.getElementsByTagName?function(e,n){return typeof n.getElementsByTagName!==j?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},o.find.CLASS=r.getElementsByClassName&&function(e,n){return typeof n.getElementsByClassName!==j&&h?n.getElementsByClassName(e):t},m=[],g=[],(r.qsa=K.test(n.querySelectorAll))&&(ut(function(e){e.innerHTML="<select><option selected=''></option></select>",e.querySelectorAll("[selected]").length||g.push("\\["+P+"*(?:value|"+B+")"),e.querySelectorAll(":checked").length||g.push(":checked")}),ut(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("t",""),e.querySelectorAll("[t^='']").length&&g.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(r.matchesSelector=K.test(y=d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ut(function(e){r.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),m.push("!=",I)}),g=g.length&&RegExp(g.join("|")),m=m.length&&RegExp(m.join("|")),v=K.test(d.contains)||d.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},A=d.compareDocumentPosition?function(e,t){if(e===t)return S=!0,0;var i=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t);return i?1&i||!r.sortDetached&&t.compareDocumentPosition(e)===i?e===n||v(w,e)?-1:t===n||v(w,t)?1:c?F.call(c,e)-F.call(c,t):0:4&i?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return S=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:c?F.call(c,e)-F.call(c,t):0;if(o===a)return pt(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?pt(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},n):f},at.matches=function(e,t){return at(e,null,null,t)},at.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(Y,"='$1']"),!(!r.matchesSelector||!h||m&&m.test(t)||g&&g.test(t)))try{var n=y.call(e,t);if(n||r.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(i){}return at(t,f,null,[e]).length>0},at.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},at.attr=function(e,n){(e.ownerDocument||e)!==f&&p(e);var i=o.attrHandle[n.toLowerCase()],a=i&&L.call(o.attrHandle,n.toLowerCase())?i(e,n,!h):t;return a===t?r.attributes||!h?e.getAttribute(n):(a=e.getAttributeNode(n))&&a.specified?a.value:null:a},at.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},at.uniqueSort=function(e){var t,n=[],i=0,o=0;if(S=!r.detectDuplicates,c=!r.sortStable&&e.slice(0),e.sort(A),S){while(t=e[o++])t===e[o]&&(i=n.push(o));while(i--)e.splice(n[i],1)}return e},a=at.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=a(t);return n},o=at.selectors={cacheLength:50,createPseudo:lt,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(rt,it),e[3]=(e[4]||e[5]||"").replace(rt,it),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||at.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&at.error(e[0]),e},PSEUDO:function(e){var n,r=!e[5]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]&&e[4]!==t?e[2]=e[4]:r&&J.test(r)&&(n=mt(r,!0))&&(n=r.indexOf(")",r.length-n)-r.length)&&(e[0]=e[0].slice(0,n),e[2]=r.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(rt,it).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=N[e+" "];return t||(t=RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&N(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==j&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=at.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[b]||(m[b]={}),u=c[e]||[],d=u[0]===T&&u[1],f=u[0]===T&&u[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[T,d,f];break}}else if(v&&(u=(t[b]||(t[b]={}))[e])&&u[0]===T)f=u[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[b]||(p[b]={}))[e]=[T,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||at.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?lt(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=F.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:lt(function(e){var t=[],n=[],r=l(e.replace(z,"$1"));return r[b]?lt(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:lt(function(e){return function(t){return at(e,t).length>0}}),contains:lt(function(e){return function(t){return(t.textContent||t.innerText||a(t)).indexOf(e)>-1}}),lang:lt(function(e){return G.test(e||"")||at.error("unsupported lang: "+e),e=e.replace(rt,it).toLowerCase(),function(t){var n;do if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return tt.test(e.nodeName)},input:function(e){return et.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:ht(function(){return[0]}),last:ht(function(e,t){return[t-1]}),eq:ht(function(e,t,n){return[0>n?n+t:n]}),even:ht(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:ht(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:ht(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:ht(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}},o.pseudos.nth=o.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[n]=ft(n);for(n in{submit:!0,reset:!0})o.pseudos[n]=dt(n);function gt(){}gt.prototype=o.filters=o.pseudos,o.setFilters=new gt;function mt(e,t){var n,r,i,a,s,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=o.preFilter;while(s){(!n||(r=X.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=U.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(z," ")}),s=s.slice(n.length));for(a in o.filter)!(r=Q[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?at.error(e):k(e,l).slice(0)}function yt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function vt(e,t,n){var r=t.dir,o=n&&"parentNode"===r,a=C++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,s){var l,u,c,p=T+" "+a;if(s){while(t=t[r])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[r])if(1===t.nodeType||o)if(c=t[b]||(t[b]={}),(u=c[r])&&u[0]===p){if((l=u[1])===!0||l===i)return l===!0}else if(u=c[r]=[p],u[1]=e(t,n,s)||i,u[1]===!0)return!0}}function bt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function xt(e,t,n,r,i){var o,a=[],s=0,l=e.length,u=null!=t;for(;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),u&&t.push(s));return a}function wt(e,t,n,r,i,o){return r&&!r[b]&&(r=wt(r)),i&&!i[b]&&(i=wt(i,o)),lt(function(o,a,s,l){var u,c,p,f=[],d=[],h=a.length,g=o||Nt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:xt(g,f,e,s,l),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,l),r){u=xt(y,d),r(u,[],s,l),c=u.length;while(c--)(p=u[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(p=y[c])&&u.push(m[c]=p);i(null,y=[],u,l)}c=y.length;while(c--)(p=y[c])&&(u=i?F.call(o,p):f[c])>-1&&(o[u]=!(a[u]=p))}}else y=xt(y===a?y.splice(h,y.length):y),i?i(null,a,y,l):M.apply(a,y)})}function Tt(e){var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,c=vt(function(e){return e===t},s,!0),p=vt(function(e){return F.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;i>l;l++)if(n=o.relative[e[l].type])f=[vt(bt(f),n)];else{if(n=o.filter[e[l].type].apply(null,e[l].matches),n[b]){for(r=++l;i>r;r++)if(o.relative[e[r].type])break;return wt(l>1&&bt(f),l>1&&yt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(z,"$1"),n,r>l&&Tt(e.slice(l,r)),i>r&&Tt(e=e.slice(r)),i>r&&yt(e))}f.push(n)}return bt(f)}function Ct(e,t){var n=0,r=t.length>0,a=e.length>0,s=function(s,l,c,p,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,C=u,N=s||a&&o.find.TAG("*",d&&l.parentNode||l),k=T+=null==C?1:Math.random()||.1;for(w&&(u=l!==f&&l,i=n);null!=(h=N[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,l,c)){p.push(h);break}w&&(T=k,i=++n)}r&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,r&&b!==v){g=0;while(m=t[g++])m(x,y,l,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=q.call(p));y=xt(y)}M.apply(p,y),w&&!s&&y.length>0&&v+t.length>1&&at.uniqueSort(p)}return w&&(T=k,u=C),x};return r?lt(s):s}l=at.compile=function(e,t){var n,r=[],i=[],o=E[e+" "];if(!o){t||(t=mt(e)),n=t.length;while(n--)o=Tt(t[n]),o[b]?r.push(o):i.push(o);o=E(e,Ct(i,r))}return o};function Nt(e,t,n){var r=0,i=t.length;for(;i>r;r++)at(e,t[r],n);return n}function kt(e,t,n,i){var a,s,u,c,p,f=mt(e);if(!i&&1===f.length){if(s=f[0]=f[0].slice(0),s.length>2&&"ID"===(u=s[0]).type&&r.getById&&9===t.nodeType&&h&&o.relative[s[1].type]){if(t=(o.find.ID(u.matches[0].replace(rt,it),t)||[])[0],!t)return n;e=e.slice(s.shift().value.length)}a=Q.needsContext.test(e)?0:s.length;while(a--){if(u=s[a],o.relative[c=u.type])break;if((p=o.find[c])&&(i=p(u.matches[0].replace(rt,it),V.test(s[0].type)&&t.parentNode||t))){if(s.splice(a,1),e=i.length&&yt(s),!e)return M.apply(n,i),n;break}}}return l(e,f)(i,t,!h,n,V.test(e)),n}r.sortStable=b.split("").sort(A).join("")===b,r.detectDuplicates=S,p(),r.sortDetached=ut(function(e){return 1&e.compareDocumentPosition(f.createElement("div"))}),ut(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ct("type|href|height|width",function(e,n,r){return r?t:e.getAttribute(n,"type"===n.toLowerCase()?1:2)}),r.attributes&&ut(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ct("value",function(e,n,r){return r||"input"!==e.nodeName.toLowerCase()?t:e.defaultValue}),ut(function(e){return null==e.getAttribute("disabled")})||ct(B,function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&i.specified?i.value:e[n]===!0?n.toLowerCase():null}),x.find=at,x.expr=at.selectors,x.expr[":"]=x.expr.pseudos,x.unique=at.uniqueSort,x.text=at.getText,x.isXMLDoc=at.isXML,x.contains=at.contains}(e);var O={};function F(e){var t=O[e]={};return x.each(e.match(T)||[],function(e,n){t[n]=!0}),t}x.Callbacks=function(e){e="string"==typeof e?O[e]||F(e):x.extend({},e);var n,r,i,o,a,s,l=[],u=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=l.length,n=!0;l&&o>a;a++)if(l[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,l&&(u?u.length&&c(u.shift()):r?l=[]:p.disable())},p={add:function(){if(l){var t=l.length;(function i(t){x.each(t,function(t,n){var r=x.type(n);"function"===r?e.unique&&p.has(n)||l.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=l.length:r&&(s=t,c(r))}return this},remove:function(){return l&&x.each(arguments,function(e,t){var r;while((r=x.inArray(t,l,r))>-1)l.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?x.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=r=t,this},disabled:function(){return!l},lock:function(){return u=t,r||p.disable(),this},locked:function(){return!u},fireWith:function(e,t){return!l||i&&!u||(t=t||[],t=[e,t.slice?t.slice():t],n?u.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},x.extend({Deferred:function(e){var t=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,o){var a=o[0],s=x.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},i={};return r.pipe=r.then,x.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=g.call(arguments),r=n.length,i=1!==r||e&&x.isFunction(e.promise)?r:0,o=1===i?e:x.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?g.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,l,u;if(r>1)for(s=Array(r),l=Array(r),u=Array(r);r>t;t++)n[t]&&x.isFunction(n[t].promise)?n[t].promise().done(a(t,u,n)).fail(o.reject).progress(a(t,l,s)):--i;return i||o.resolveWith(u,n),o.promise()}}),x.support=function(t){var n,r,o,s,l,u,c,p,f,d=a.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=d.getElementsByTagName("*")||[],r=d.getElementsByTagName("a")[0],!r||!r.style||!n.length)return t;s=a.createElement("select"),u=s.appendChild(a.createElement("option")),o=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t.getSetAttribute="t"!==d.className,t.leadingWhitespace=3===d.firstChild.nodeType,t.tbody=!d.getElementsByTagName("tbody").length,t.htmlSerialize=!!d.getElementsByTagName("link").length,t.style=/top/.test(r.getAttribute("style")),t.hrefNormalized="/a"===r.getAttribute("href"),t.opacity=/^0.5/.test(r.style.opacity),t.cssFloat=!!r.style.cssFloat,t.checkOn=!!o.value,t.optSelected=u.selected,t.enctype=!!a.createElement("form").enctype,t.html5Clone="<:nav></:nav>"!==a.createElement("nav").cloneNode(!0).outerHTML,t.inlineBlockNeedsLayout=!1,t.shrinkWrapBlocks=!1,t.pixelPosition=!1,t.deleteExpando=!0,t.noCloneEvent=!0,t.reliableMarginRight=!0,t.boxSizingReliable=!0,o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!u.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}o=a.createElement("input"),o.setAttribute("value",""),t.input=""===o.getAttribute("value"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","t"),o.setAttribute("name","t"),l=a.createDocumentFragment(),l.appendChild(o),t.appendChecked=o.checked,t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip;for(f in x(t))break;return t.ownLast="0"!==f,x(function(){var n,r,o,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",l=a.getElementsByTagName("body")[0];l&&(n=a.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",l.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=d.getElementsByTagName("td"),o[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===o[0].offsetHeight,o[0].style.display="",o[1].style.display="none",t.reliableHiddenOffsets=p&&0===o[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",x.swap(l,null!=l.style.zoom?{zoom:1}:{},function(){t.boxSizing=4===d.offsetWidth}),e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(a.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(l.style.zoom=1)),l.removeChild(n),n=d=o=r=null)}),n=s=l=u=r=o=null,t
}({});var B=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;function R(e,n,r,i){if(x.acceptData(e)){var o,a,s=x.expando,l=e.nodeType,u=l?x.cache:e,c=l?e[s]:e[s]&&s;if(c&&u[c]&&(i||u[c].data)||r!==t||"string"!=typeof n)return c||(c=l?e[s]=p.pop()||x.guid++:s),u[c]||(u[c]=l?{}:{toJSON:x.noop}),("object"==typeof n||"function"==typeof n)&&(i?u[c]=x.extend(u[c],n):u[c].data=x.extend(u[c].data,n)),a=u[c],i||(a.data||(a.data={}),a=a.data),r!==t&&(a[x.camelCase(n)]=r),"string"==typeof n?(o=a[n],null==o&&(o=a[x.camelCase(n)])):o=a,o}}function W(e,t,n){if(x.acceptData(e)){var r,i,o=e.nodeType,a=o?x.cache:e,s=o?e[x.expando]:x.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){x.isArray(t)?t=t.concat(x.map(t,x.camelCase)):t in r?t=[t]:(t=x.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!I(r):!x.isEmptyObject(r))return}(n||(delete a[s].data,I(a[s])))&&(o?x.cleanData([e],!0):x.support.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}x.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?x.cache[e[x.expando]]:e[x.expando],!!e&&!I(e)},data:function(e,t,n){return R(e,t,n)},removeData:function(e,t){return W(e,t)},_data:function(e,t,n){return R(e,t,n,!0)},_removeData:function(e,t){return W(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&x.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),x.fn.extend({data:function(e,n){var r,i,o=null,a=0,s=this[0];if(e===t){if(this.length&&(o=x.data(s),1===s.nodeType&&!x._data(s,"parsedAttrs"))){for(r=s.attributes;r.length>a;a++)i=r[a].name,0===i.indexOf("data-")&&(i=x.camelCase(i.slice(5)),$(s,i,o[i]));x._data(s,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){x.data(this,e)}):arguments.length>1?this.each(function(){x.data(this,e,n)}):s?$(s,e,x.data(s,e)):null},removeData:function(e){return this.each(function(){x.removeData(this,e)})}});function $(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(P,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:B.test(r)?x.parseJSON(r):r}catch(o){}x.data(e,n,r)}else r=t}return r}function I(e){var t;for(t in e)if(("data"!==t||!x.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}x.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=x._data(e,n),r&&(!i||x.isArray(r)?i=x._data(e,n,x.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t),a=function(){x.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return x._data(e,n)||x._data(e,n,{empty:x.Callbacks("once memory").add(function(){x._removeData(e,t+"queue"),x._removeData(e,n)})})}}),x.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?x.queue(this[0],e):n===t?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},delay:function(e,t){return e=x.fx?x.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=x.Deferred(),a=this,s=this.length,l=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=x._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(l));return l(),o.promise(n)}});var z,X,U=/[\t\r\n\f]/g,V=/\r/g,Y=/^(?:input|select|textarea|button|object)$/i,J=/^(?:a|area)$/i,G=/^(?:checked|selected)$/i,Q=x.support.getSetAttribute,K=x.support.input;x.fn.extend({attr:function(e,t){return x.access(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})},prop:function(e,t){return x.access(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return e=x.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,l="string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=x.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,l=0===arguments.length||"string"==typeof e&&e;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(T)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(U," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?x.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):x.isFunction(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var t,r=0,o=x(this),a=e.match(T)||[];while(t=a[r++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else(n===i||"boolean"===n)&&(this.className&&x._data(this,"__className__",this.className),this.className=this.className||e===!1?"":x._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(U," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=x.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(o=i?e.call(this,n,x(this).val()):e,null==o?o="":"number"==typeof o?o+="":x.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),r=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(V,""):null==n?"":n)}}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,l=0>i?s:o?i:0;for(;s>l;l++)if(n=r[l],!(!n.selected&&l!==i||(x.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&x.nodeName(n.parentNode,"optgroup"))){if(t=x(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n,r,i=e.options,o=x.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=x.inArray(x(r).val(),o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}},attr:function(e,n,r){var o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===i?x.prop(e,n,r):(1===s&&x.isXMLDoc(e)||(n=n.toLowerCase(),o=x.attrHooks[n]||(x.expr.match.bool.test(n)?X:z)),r===t?o&&"get"in o&&null!==(a=o.get(e,n))?a:(a=x.find.attr(e,n),null==a?t:a):null!==r?o&&"set"in o&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,r+""),r):(x.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(T);if(o&&1===e.nodeType)while(n=o[i++])r=x.propFix[n]||n,x.expr.match.bool.test(n)?K&&Q||!G.test(n)?e[r]=!1:e[x.camelCase("default-"+n)]=e[r]=!1:x.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!x.support.radioValue&&"radio"===t&&x.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{"for":"htmlFor","class":"className"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!x.isXMLDoc(e),a&&(n=x.propFix[n]||n,o=x.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):Y.test(e.nodeName)||J.test(e.nodeName)&&e.href?0:-1}}}}),X={set:function(e,t,n){return t===!1?x.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&x.propFix[n]||n,n):e[x.camelCase("default-"+n)]=e[n]=!0,n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,n){var r=x.expr.attrHandle[n]||x.find.attr;x.expr.attrHandle[n]=K&&Q||!G.test(n)?function(e,n,i){var o=x.expr.attrHandle[n],a=i?t:(x.expr.attrHandle[n]=t)!=r(e,n,i)?n.toLowerCase():null;return x.expr.attrHandle[n]=o,a}:function(e,n,r){return r?t:e[x.camelCase("default-"+n)]?n.toLowerCase():null}}),K&&Q||(x.attrHooks.value={set:function(e,n,r){return x.nodeName(e,"input")?(e.defaultValue=n,t):z&&z.set(e,n,r)}}),Q||(z={set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},x.expr.attrHandle.id=x.expr.attrHandle.name=x.expr.attrHandle.coords=function(e,n,r){var i;return r?t:(i=e.getAttributeNode(n))&&""!==i.value?i.value:null},x.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&r.specified?r.value:t},set:z.set},x.attrHooks.contenteditable={set:function(e,t,n){z.set(e,""===t?!1:t,n)}},x.each(["width","height"],function(e,n){x.attrHooks[n]={set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}}})),x.support.hrefNormalized||x.each(["href","src"],function(e,t){x.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),x.support.style||(x.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),x.support.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.support.enctype||(x.propFix.enctype="encoding"),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,n){return x.isArray(n)?e.checked=x.inArray(x(e).val(),n)>=0:t}},x.support.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}function at(){try{return a.activeElement}catch(e){}}x.event={global:{},add:function(e,n,r,o,a){var s,l,u,c,p,f,d,h,g,m,y,v=x._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=x.guid++),(l=v.events)||(l=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof x===i||e&&x.event.triggered===e.type?t:x.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(T)||[""],u=n.length;while(u--)s=rt.exec(n[u])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),g&&(p=x.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=x.event.special[g]||{},d=x.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&x.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=l[g])||(h=l[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[g]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,p,f,d,h,g,m=x.hasData(e)&&x._data(e);if(m&&(c=m.events)){t=(t||"").match(T)||[""],u=t.length;while(u--)if(s=rt.exec(t[u])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=x.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));l&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||x.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)x.event.remove(e,d+t[u],n,r,!0);x.isEmptyObject(c)&&(delete m.handle,x._removeData(e,"events"))}},trigger:function(n,r,i,o){var s,l,u,c,p,f,d,h=[i||a],g=v.call(n,"type")?n.type:n,m=v.call(n,"namespace")?n.namespace.split("."):[];if(u=f=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+x.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),l=0>g.indexOf(":")&&"on"+g,n=n[x.expando]?n:new x.Event(g,"object"==typeof n&&n),n.isTrigger=o?2:3,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:x.makeArray(r,[n]),p=x.event.special[g]||{},o||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!o&&!p.noBubble&&!x.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(u=u.parentNode);u;u=u.parentNode)h.push(u),f=u;f===(i.ownerDocument||a)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((u=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(x._data(u,"events")||{})[n.type]&&x._data(u,"handle"),s&&s.apply(u,r),s=l&&u[l],s&&x.acceptData(u)&&s.apply&&s.apply(u,r)===!1&&n.preventDefault();if(n.type=g,!o&&!n.isDefaultPrevented()&&(!p._default||p._default.apply(h.pop(),r)===!1)&&x.acceptData(i)&&l&&i[g]&&!x.isWindow(i)){f=i[l],f&&(i[l]=null),x.event.triggered=g;try{i[g]()}catch(y){}x.event.triggered=t,f&&(i[l]=f)}return n.result}},dispatch:function(e){e=x.event.fix(e);var n,r,i,o,a,s=[],l=g.call(arguments),u=(x._data(this,"events")||{})[e.type]||[],c=x.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=x.event.handlers.call(this,e,u),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],l=n.delegateCount,u=e.target;if(l&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(o=[],a=0;l>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?x(r,this).index(u)>=0:x.find(r,this,null,[u]).length),o[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return n.length>l&&s.push({elem:this,handlers:n.slice(l)}),s},fix:function(e){if(e[x.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new x.Event(o),t=r.length;while(t--)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||a),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,o,s=n.button,l=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||a,o=i.documentElement,r=i.body,e.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&l&&(e.relatedTarget=l===e.target?n.toElement:l),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==at()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===at()&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},click:{trigger:function(){return x.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t},_default:function(e){return x.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?x.event.trigger(i,null,t):x.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},x.removeEvent=a.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},x.Event=function(e,n){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&x.extend(this,n),this.timeStamp=e&&e.timeStamp||x.now(),this[x.expando]=!0,t):new x.Event(e,n)},x.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return(!i||i!==r&&!x.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.support.submitBubbles||(x.event.special.submit={setup:function(){return x.nodeName(this,"form")?!1:(x.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=x.nodeName(n,"input")||x.nodeName(n,"button")?n.form:t;r&&!x._data(r,"submitBubbles")&&(x.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),x._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&x.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return x.nodeName(this,"form")?!1:(x.event.remove(this,"._submit"),t)}}),x.support.changeBubbles||(x.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(x.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),x.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),x.event.simulate("change",this,e,!0)})),!1):(x.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!x._data(t,"changeBubbles")&&(x.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||x.event.simulate("change",this.parentNode,e,!0)}),x._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return x.event.remove(this,"._change"),!Z.test(this.nodeName)}}),x.support.focusinBubbles||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){x.event.simulate(t,e.target,x.event.fix(e),!0)};x.event.special[t]={setup:function(){0===n++&&a.addEventListener(e,r,!0)},teardown:function(){0===--n&&a.removeEventListener(e,r,!0)}}}),x.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return x().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=x.guid++)),this.each(function(){x.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){x.event.remove(this,e,r,n)})},trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?x.event.trigger(e,n,r,!0):t}});var st=/^.[^:#\[\.,]*$/,lt=/^(?:parents|prev(?:Until|All))/,ut=x.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};x.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;i>t;t++)if(x.contains(r[t],this))return!0}));for(t=0;i>t;t++)x.find(e,r[t],n);return n=this.pushStack(i>1?x.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},has:function(e){var t,n=x(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(x.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e||[],!0))},filter:function(e){return this.pushStack(ft(this,e||[],!1))},is:function(e){return!!ft(this,"string"==typeof e&&ut.test(e)?x(e):e||[],!1).length},closest:function(e,t){var n,r=0,i=this.length,o=[],a=ut.test(e)||"string"!=typeof e?x(e,t||this.context):0;for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(11>n.nodeType&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){n=o.push(n);break}return this.pushStack(o.length>1?x.unique(o):o)},index:function(e){return e?"string"==typeof e?x.inArray(this[0],x(e)):x.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?x(e,t):x.makeArray(e&&e.nodeType?[e]:e),r=x.merge(this.get(),n);return this.pushStack(x.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}});function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return x.dir(e,"parentNode")},parentsUntil:function(e,t,n){return x.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return x.dir(e,"nextSibling")},prevAll:function(e){return x.dir(e,"previousSibling")},nextUntil:function(e,t,n){return x.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return x.dir(e,"previousSibling",n)},siblings:function(e){return x.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return x.sibling(e.firstChild)},contents:function(e){return x.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:x.merge([],e.childNodes)}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(ct[e]||(i=x.unique(i)),lt.test(e)&&(i=i.reverse())),this.pushStack(i)}}),x.extend({filter:function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!x(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(x.isFunction(t))return x.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return x.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(st.test(t))return x.filter(t,e,n);t=x.filter(t,e)}return x.grep(e,function(e){return x.inArray(e,t)>=0!==n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt=/<(?:script|style|link)/i,Ct=/^(?:checkbox|radio)$/i,Nt=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:x.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(a),Dt=jt.appendChild(a.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,x.fn.extend({text:function(e){return x.access(this,function(e){return e===t?x.text(this):this.empty().append((this[0]&&this[0].ownerDocument||a).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Lt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?x.filter(e,this):this,i=0;for(;null!=(n=r[i]);i++)t||1!==n.nodeType||x.cleanData(Ft(n)),n.parentNode&&(t&&x.contains(n.ownerDocument,n)&&_t(Ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&x.cleanData(Ft(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&x.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return x.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!x.support.htmlSerialize&&mt.test(e)||!x.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(x.cleanData(Ft(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=x.map(this,function(e){return[e.nextSibling,e.parentNode]}),t=0;return this.domManip(arguments,function(n){var r=e[t++],i=e[t++];i&&(r&&r.parentNode!==i&&(r=this.nextSibling),x(this).remove(),i.insertBefore(n,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,n){e=d.apply([],e);var r,i,o,a,s,l,u=0,c=this.length,p=this,f=c-1,h=e[0],g=x.isFunction(h);if(g||!(1>=c||"string"!=typeof h||x.support.checkClone)&&Nt.test(h))return this.each(function(r){var i=p.eq(r);g&&(e[0]=h.call(this,r,i.html())),i.domManip(e,t,n)});if(c&&(l=x.buildFragment(e,this[0].ownerDocument,!1,!n&&this),r=l.firstChild,1===l.childNodes.length&&(l=r),r)){for(a=x.map(Ft(l,"script"),Ht),o=a.length;c>u;u++)i=l,u!==f&&(i=x.clone(i,!0,!0),o&&x.merge(a,Ft(i,"script"))),t.call(this[u],i,u);if(o)for(s=a[a.length-1].ownerDocument,x.map(a,qt),u=0;o>u;u++)i=a[u],kt.test(i.type||"")&&!x._data(i,"globalEval")&&x.contains(s,i)&&(i.src?x._evalUrl(i.src):x.globalEval((i.text||i.textContent||i.innerHTML||"").replace(St,"")));l=r=null}return this}});function Lt(e,t){return x.nodeName(e,"table")&&x.nodeName(1===t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ht(e){return e.type=(null!==x.find.attr(e,"type"))+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function _t(e,t){var n,r=0;for(;null!=(n=e[r]);r++)x._data(n,"globalEval",!t||x._data(t[r],"globalEval"))}function Mt(e,t){if(1===t.nodeType&&x.hasData(e)){var n,r,i,o=x._data(e),a=x._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)x.event.add(t,n,s[n][r])}a.data&&(a.data=x.extend({},a.data))}}function Ot(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!x.support.noCloneEvent&&t[x.expando]){i=x._data(t);for(r in i.events)x.removeEvent(t,r,i.handle);t.removeAttribute(x.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),x.support.html5Clone&&e.innerHTML&&!x.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Ct.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){var n,r=0,i=[],o=x(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),x(o[r])[t](n),h.apply(i,n.get());return this.pushStack(i)}});function Ft(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||x.nodeName(o,n)?s.push(o):x.merge(s,Ft(o,n));return n===t||n&&x.nodeName(e,n)?x.merge([e],s):s}function Bt(e){Ct.test(e.type)&&(e.defaultChecked=e.checked)}x.extend({clone:function(e,t,n){var r,i,o,a,s,l=x.contains(e.ownerDocument,e);if(x.support.html5Clone||x.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(x.support.noCloneEvent&&x.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ft(o),s=Ft(e),a=0;null!=(i=s[a]);++a)r[a]&&Ot(i,r[a]);if(t)if(n)for(s=s||Ft(e),r=r||Ft(o),a=0;null!=(i=s[a]);a++)Mt(i,r[a]);else Mt(e,o);return r=Ft(o,"script"),r.length>0&&_t(r,!l&&Ft(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,l,u,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===x.type(o))x.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),l=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[l]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!x.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!x.support.tbody){o="table"!==l||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)x.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u)}x.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),x.support.appendChecked||x.grep(Ft(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===x.inArray(o,r))&&(a=x.contains(o.ownerDocument,o),s=Ft(f.appendChild(o),"script"),a&&_t(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,l=x.expando,u=x.cache,c=x.support.deleteExpando,f=x.event.special;for(;null!=(n=e[s]);s++)if((t||x.acceptData(n))&&(o=n[l],a=o&&u[o])){if(a.events)for(r in a.events)f[r]?x.event.remove(n,r):x.removeEvent(n,r,a.handle);
u[o]&&(delete u[o],c?delete n[l]:typeof n.removeAttribute!==i?n.removeAttribute(l):n[l]=null,p.push(o))}},_evalUrl:function(e){return x.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})}}),x.fn.extend({wrapAll:function(e){if(x.isFunction(e))return this.each(function(t){x(this).wrapAll(e.call(this,t))});if(this[0]){var t=x(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return x.isFunction(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=x.isFunction(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+w+")(.*)$","i"),Yt=RegExp("^("+w+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+w+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===x.css(e,"display")||!x.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=x._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=x._data(r,"olddisplay",ln(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&x._data(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}x.fn.extend({css:function(e,n){return x.access(this,function(e,n,r){var i,o,a={},s=0;if(x.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=x.css(e,n[s],!1,o);return a}return r!==t?x.style(e,n,r):x.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){nn(this)?x(this).show():x(this).hide()})}}),x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":x.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,l=x.camelCase(n),u=e.style;if(n=x.cssProps[l]||(x.cssProps[l]=tn(u,l)),s=x.cssHooks[n]||x.cssHooks[l],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:u[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(x.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||x.cssNumber[l]||(r+="px"),x.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(u[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{u[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,l=x.camelCase(n);return n=x.cssProps[l]||(x.cssProps[l]=tn(e.style,l)),s=x.cssHooks[n]||x.cssHooks[l],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||x.isNumeric(o)?o||0:a):a}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s.getPropertyValue(n)||s[n]:t,u=e.style;return s&&(""!==l||x.contains(e.ownerDocument,e)||(l=x.style(e,n)),Yt.test(l)&&Ut.test(n)&&(i=u.width,o=u.minWidth,a=u.maxWidth,u.minWidth=u.maxWidth=u.width=l,l=s.width,u.width=i,u.minWidth=o,u.maxWidth=a)),l}):a.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),l=s?s[n]:t,u=e.style;return null==l&&u&&u[n]&&(l=u[n]),Yt.test(l)&&!zt.test(n)&&(i=u.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),u.left="fontSize"===n?"1em":l,l=u.pixelLeft+"px",u.left=i,a&&(o.left=a)),""===l?"auto":l});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=x.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=x.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=x.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=x.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=x.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(x.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function ln(e){var t=a,n=Gt[e];return n||(n=un(e,t),"none"!==n&&n||(Pt=(Pt||x("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),n=un(e,t),Pt.detach()),Gt[e]=n),n}function un(e,t){var n=x(t.createElement(e)).appendTo(t.body),r=x.css(n[0],"display");return n.remove(),r}x.each(["height","width"],function(e,n){x.cssHooks[n]={get:function(e,r,i){return r?0===e.offsetWidth&&Xt.test(x.css(e,"display"))?x.swap(e,Qt,function(){return sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?an(e,n,r,x.support.boxSizing&&"border-box"===x.css(e,"boxSizing",!1,i),i):0)}}}),x.support.opacity||(x.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=x.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===x.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),x(function(){x.support.reliableMarginRight||(x.cssHooks.marginRight={get:function(e,n){return n?x.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!x.support.pixelPosition&&x.fn.position&&x.each(["top","left"],function(e,n){x.cssHooks[n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?x(e).position()[n]+"px":r):t}}})}),x.expr&&x.expr.filters&&(x.expr.filters.hidden=function(e){return 0>=e.offsetWidth&&0>=e.offsetHeight||!x.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||x.css(e,"display"))},x.expr.filters.visible=function(e){return!x.expr.filters.hidden(e)}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test(e)||(x.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:submit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Ct.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,value:n.replace(fn,"\r\n")}}).get()}}),x.param=function(e,n){var r,i=[],o=function(e,t){t=x.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};function gn(e,t,n,r){var i;if(x.isArray(t))x.each(t,function(t,i){n||pn.test(e)?r(e,i):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==x.type(t))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var mn,yn,vn=x.now(),bn=/\?/,xn=/#.*$/,wn=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Cn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=x.fn.load,An={},jn={},Dn="*/".concat("*");try{yn=o.href}catch(Ln){yn=a.createElement("a"),yn.href="",yn=yn.href}mn=En.exec(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(T)||[];if(x.isFunction(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(l){var u;return o[l]=!0,x.each(e[l]||[],function(e,l){var c=l(n,r,i);return"string"!=typeof c||a||o[c]?a?!(u=c):t:(n.dataTypes.unshift(c),s(c),!1)}),u}return s(n.dataTypes[0])||!o["*"]&&s("*")}function _n(e,n){var r,i,o=x.ajaxSettings.flatOptions||{};for(i in n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&x.extend(!0,e,r),e}x.fn.load=function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,o,a,s=this,l=e.indexOf(" ");return l>=0&&(i=e.slice(l,e.length),e=e.slice(0,l)),x.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&x.ajax({url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Cn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?_n(_n(e,x.ajaxSettings),t):_n(x.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,l,u,c,p=x.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?x(f):x.event,h=x.Deferred(),g=x.Callbacks("once memory"),m=p.statusCode||{},y={},v={},b=0,w="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||w;return u&&u.abort(t),k(0,t),this}};if(h.promise(C).complete=g.add,C.success=C.done,C.error=C.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=x.trim(p.dataType||"*").toLowerCase().match(T)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?"80":"443"))===(mn[3]||("http:"===mn[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),qn(An,p,n,C),2===b)return C;l=p.global,l&&0===x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Nn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)C.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,C,p)===!1||2===b))return C.abort();w="abort";for(i in{success:1,error:1,complete:1})C[i](p[i]);if(u=qn(jn,p,n,C)){C.readyState=1,l&&d.trigger("ajaxSend",[C,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){C.abort("timeout")},p.timeout));try{b=1,u.send(y,k)}catch(N){if(!(2>b))throw N;k(-1,N)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,N=n;2!==b&&(b=2,s&&clearTimeout(s),u=t,a=i||"",C.readyState=e>0?4:0,c=e>=200&&300>e||304===e,r&&(w=Mn(p,C,r)),w=On(p,w,C,c),c?(p.ifModified&&(T=C.getResponseHeader("Last-Modified"),T&&(x.lastModified[o]=T),T=C.getResponseHeader("etag"),T&&(x.etag[o]=T)),204===e||"HEAD"===p.type?N="nocontent":304===e?N="notmodified":(N=w.state,y=w.data,v=w.error,c=!v)):(v=N,(e||!N)&&(N="error",0>e&&(e=0))),C.status=e,C.statusText=(n||N)+"",c?h.resolveWith(f,[y,N,C]):h.rejectWith(f,[C,N,v]),C.statusCode(m),m=t,l&&d.trigger(c?"ajaxSuccess":"ajaxError",[C,p,c?y:v]),g.fireWith(f,[C,N]),l&&(d.trigger("ajaxComplete",[C,p]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,n){return x.get(e,t,n,"script")}}),x.each(["get","post"],function(e,n){x[n]=function(e,r,i,o){return x.isFunction(r)&&(o=o||i,i=r,r=t),x.ajax({url:e,type:n,dataType:o,data:r,success:i})}});function Mn(e,n,r){var i,o,a,s,l=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in l)if(l[s]&&l[s].test(o)){u.unshift(s);break}if(u[0]in r)a=u[0];else{for(s in r){if(!u[0]||e.converters[s+" "+u[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==u[0]&&u.unshift(a),r[a]):t}function On(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){a===!0?a=u[i]:u[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(p){return{state:"parsererror",error:a?p:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),x.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=a.head||x("head")[0]||a.documentElement;return{send:function(t,i){n=a.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var Fn=[],Bn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Fn.pop()||x.expando+"_"+vn++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,l=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=x.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||x.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,Fn.push(o)),s&&x.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}x.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=x.ajaxSettings.xhr(),x.support.cors=!!Rn&&"withCredentials"in Rn,Rn=x.support.ajax=!!Rn,Rn&&x.ajaxTransport(function(n){if(!n.crossDomain||x.support.cors){var r;return{send:function(i,o){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)l.setRequestHeader(s,i[s])}catch(u){}l.send(n.hasContent&&n.data||null),r=function(e,i){var s,u,c,p;try{if(r&&(i||4===l.readyState))if(r=t,a&&(l.onreadystatechange=x.noop,$n&&delete Pn[a]),i)4!==l.readyState&&l.abort();else{p={},s=l.status,u=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(p.text=l.responseText);try{c=l.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,u)},n.async?4===l.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},x(e).unload($n)),Pn[a]=r),l.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+w+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Yn.exec(t),o=i&&i[3]||(x.cssNumber[e]?"":"px"),a=(x.cssNumber[e]||"px"!==o&&+r)&&Yn.exec(x.css(n.elem,e)),s=1,l=20;if(a&&a[3]!==o){o=o||a[3],i=i||[],a=+r||1;do s=s||".5",a/=s,x.style(n.elem,e,a+o);while(s!==(s=n.cur()/r)&&1!==s&&--l)}return i&&(a=n.start=+a||+r||0,n.unit=o,n.end=i[1]?a+(i[1]+1)*i[2]:+i[2]),n}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=x.now()}function Zn(e,t,n){var r,i=(Qn[t]||[]).concat(Qn["*"]),o=0,a=i.length;for(;a>o;o++)if(r=i[o].call(n,t,e))return r}function er(e,t,n){var r,i,o=0,a=Gn.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;for(;l>a;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),1>o&&l?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),c=u.props;for(tr(c,u.opts.specialEasing);a>o;o++)if(r=Gn[o].call(u,e,c,u.opts))return r;return x.map(c,Zn,u),x.isFunction(u.opts.start)&&u.opts.start.call(e,u),x.fx.timer(x.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function tr(e,t){var n,r,i,o,a;for(n in e)if(r=x.camelCase(n),i=t[r],o=e[n],x.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=x.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}x.Animation=x.extend(er,{tweener:function(e,t){x.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,l,u=this,c={},p=e.style,f=e.nodeType&&nn(e),d=x._data(e,"fxshow");n.queue||(s=x._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===x.css(e,"display")&&"none"===x.css(e,"float")&&(x.support.inlineBlockNeedsLayout&&"inline"!==ln(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",x.support.shrinkWrapBlocks||u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Vn.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(f?"hide":"show"))continue;c[r]=d&&d[r]||x.style(e,r)}if(!x.isEmptyObject(c)){d?"hidden"in d&&(f=d.hidden):d=x._data(e,"fxshow",{}),o&&(d.hidden=!f),f?x(e).show():u.done(function(){x(e).hide()}),u.done(function(){var t;x._removeData(e,"fxshow");for(t in c)x.style(e,t,c[t])});for(r in c)a=Zn(f?d[r]:0,r,u),r in d||(d[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}x.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=x.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[x.cssProps[e.prop]]||x.cssHooks[e.prop])?x.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=er(this,x.extend({},e),o);(i||x._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=x.timers,a=x._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&x.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=x._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}x.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||x.isFunction(e)&&e,duration:e,easing:n&&t||t&&!x.isFunction(t)&&t};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},x.timers=[],x.fx=rr.prototype.init,x.fx.tick=function(){var e,n=x.timers,r=0;for(Xn=x.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||x.fx.stop(),Xn=t},x.fx.timer=function(e){e()&&x.timers.push(e)&&x.fx.start()},x.fx.interval=13,x.fx.start=function(){Un||(Un=setInterval(x.fx.tick,x.fx.interval))},x.fx.stop=function(){clearInterval(Un),Un=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fx.step={},x.expr&&x.expr.filters&&(x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length}),x.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){x.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,x.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},x.offset={setOffset:function(e,t,n){var r=x.css(e,"position");"static"===r&&(e.style.position="relative");var i=x(e),o=i.offset(),a=x.css(e,"top"),s=x.css(e,"left"),l=("absolute"===r||"fixed"===r)&&x.inArray("auto",[a,s])>-1,u={},c={},p,f;l?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),x.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(u.top=t.top-o.top+p),null!=t.left&&(u.left=t.left-o.left+f),"using"in t?t.using.call(e,u):i.css(u)}},x.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===x.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),x.nodeName(e[0],"html")||(n=e.offset()),n.top+=x.css(e[0],"borderTopWidth",!0),n.left+=x.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-x.css(r,"marginTop",!0),left:t.left-n.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||s;while(e&&!x.nodeName(e,"html")&&"static"===x.css(e,"position"))e=e.offsetParent;return e||s})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);x.fn[e]=function(i){return x.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?x(a).scrollLeft():o,r?o:x(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return x.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}x.each({Height:"height",Width:"width"},function(e,n){x.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){x.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return x.access(this,function(n,r,i){var o;return x.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?x.css(n,r,s):x.style(n,r,i,s)},n,a?i:t,a,null)}})}),x.fn.size=function(){return this.length},x.fn.andSelf=x.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=x:(e.jQuery=e.$=x,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x}))})(window);
      </script>  



<style type="text/css">body,html,.prism-player{padding: 0;margin: 0;width:100%;height:100%;background-color:#000;color:#999;}</style>
</head>
<body style="overflow-y:hidden;overflow-x:hidden;">
<div class="prism-player" id="player-con"></div>
<script>
var player=new Aliplayer({"id":"player-con","source":"https://a.xttv.top/xttv/27f43e697655f4d44c62d7f4d32fcctv.m3u8","width":"100%","height":"100%","autoplay":true,"isLive":true,"cover":"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-01451749-3f0f-4dba-b3d8-a8b2aa171e77/1e9b7edd-02f8-4fb0-95a3-3b7b4668ec5a.gif","rePlay":false,"playsinline":true,"preload":true,"controlBarVisibility":"hover","useH5Prism":true,"skinLayout":[{"name":"bigPlayButton","align":"blabs","x":30,"y":80},{"name":"infoDisplay"},{"name":"controlBar","align":"blabs","x":0,"y":0,"children":[{"name":"liveDisplay","align":"tlabs","x":15,"y":6},{"name":"fullScreenButton","align":"tr","x":10,"y":10},{"name":"setting","align":"tr","x":15,"y":12},{"name":"volume","align":"tr","x":5,"y":10}]}]},function(player){console.log("The player is created")});
</script>
<script>
    if($('.prism-volume').length > 0){
      $('.prism-volume').after("<div class='prism-time-display' style='float: right; margin-right: 5px; margin-top: 3px;'><a href='http://www.taobaofw.com' target='blank' style='color:pink;font-weight:bold;'><img src='https://vkceyugu.cdn.bspapp.com/VKCEYUGU-01451749-3f0f-4dba-b3d8-a8b2aa171e77/546819a3-9c1c-4f67-bb7a-7881f2ab3c32.gif' style='margin-top: 3px;height:35px;'></a></div>");
    }
  </script>
<script>
        window.onload = function(){
            document.onkeydown = function (){
                var e = window.event || arguments[0];
                //F12
                if(e.keyCode == 123){
                    return false;
                //Ctrl+Shift+I
                }else if((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)){
                    return false;
                //Shift+F10
                }else if((e.shiftKey) && (e.keyCode == 121)){
                    return false;
                //Ctrl+U
                }else if((e.ctrlKey) && (e.keyCode == 85)){
                    return false;
                }
            };
            document.oncontextmenu = function (){
                return false;
            }
        }
</script>

</body>
</html>


云码酷m3u8播放器代码.html (527.26 KB, 下载次数: 596)

云码酷 - 论坛版权1、本主题所有言论和图片纯属会员个人意见,与本论坛立场无关
2、本站所有主题由该帖子作者发表,该帖子作者与云码酷享有帖子相关版权
3、其他单位或个人使用、转载或引用本文时必须同时征得该帖子作者和云码酷的同意
4、帖子作者须承担一切因本文发表而直接或间接导致的民事或刑事法律责任
5、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
6、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
7、云码酷管理员和版主有权不事先通知发贴者而删除本文

回复

使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    0

    主题

    190

    帖子

    190

    积分

    注册会员

    Rank: 2

    积分
    190
    发表于 2022-11-30 13:48:06 来自手机 | 显示全部楼层
    沙发
    呵呵。。。
    回复 支持 反对

    使用道具 举报

    0

    主题

    191

    帖子

    191

    积分

    注册会员

    Rank: 2

    积分
    191
    发表于 2022-11-30 13:59:23 来自手机 | 显示全部楼层
    板凳
    学习下
    回复 支持 反对

    使用道具 举报

    1

    主题

    175

    帖子

    176

    积分

    注册会员

    Rank: 2

    积分
    176
    发表于 2022-11-30 14:06:18 来自手机 | 显示全部楼层
    地板
    路过
    回复 支持 反对

    使用道具 举报

    0

    主题

    176

    帖子

    176

    积分

    注册会员

    Rank: 2

    积分
    176
    发表于 2022-11-30 14:12:13 来自手机 | 显示全部楼层
    5#
    楼下的接上
    回复 支持 反对

    使用道具 举报

    1

    主题

    177

    帖子

    178

    积分

    注册会员

    Rank: 2

    积分
    178
    发表于 2022-11-30 14:52:08 来自手机 | 显示全部楼层
    6#
    沙发???
    回复 支持 反对

    使用道具 举报

    0

    主题

    169

    帖子

    169

    积分

    注册会员

    Rank: 2

    积分
    169
    发表于 2022-11-30 14:56:54 来自手机 | 显示全部楼层
    7#
    OMG!介是啥东东!!!
    回复 支持 反对

    使用道具 举报

    0

    主题

    154

    帖子

    154

    积分

    注册会员

    Rank: 2

    积分
    154
    发表于 2022-11-30 15:06:34 来自手机 | 显示全部楼层
    8#
    楼主呀,,,您太有才了。。。
    回复 支持 反对

    使用道具 举报

    2

    主题

    174

    帖子

    176

    积分

    注册会员

    Rank: 2

    积分
    176
    发表于 2022-11-30 15:21:18 | 显示全部楼层
    9#
    看帖要回,回帖才健康,在踩踩,楼主辛苦了!
    回复 支持 反对

    使用道具 举报

    2

    主题

    187

    帖子

    189

    积分

    注册会员

    Rank: 2

    积分
    189
    发表于 2022-11-30 15:26:52 | 显示全部楼层
    10#
    鄙视楼下的顶帖没我快,哈哈
    回复 支持 反对

    使用道具 举报

    12下一页
    • 售后服务
    • 关注我们
    • 社区新手

    申请友链|Archiver|手机版|小黑屋|云码酷 ( 京ICP备13037810号 )

    Powered by Discuz! X3.2  © 2001-2022 云码酷