(self["webpackChunkclassroom"]=self["webpackChunkclassroom"]||[]).push([[677],{8039:function(t,e,n){"use strict";n.d(e,{FY:function(){return o},OA:function(){return g},Qp:function(){return f},Tw:function(){return a},_3:function(){return r},bq:function(){return s},eJ:function(){return u},ew:function(){return l},pn:function(){return d},t7:function(){return c},vf:function(){return p},yQ:function(){return h}});var i=n(7053);const r=(t,e)=>i.Z9.axioseRquest({signal:e.signal,method:"post",url:"/api-teacher/lessonCourseware/queryLessonCourseware",data:{subjectId:t,page:1,rows:9999}}),o=()=>i.Z9.axioseRquest({method:"get",url:"/api-teacher/lessonCourseware/getLessonCoursewareSubjectList"}),s=t=>i.Z9.axioseRquest({method:"get",url:"/api-teacher/lessonCourseware/getLessonCoursewareCourseList/"+t}),a=t=>i.Z9.axioseRquest({method:"get",url:"/api-teacher/lessonCourseware/getLessonCourseDetail/"+t}),l=()=>i.rO.axioseRquest({method:"post",url:"/api-teacher/courseSchedule/myCourseware"}),c=t=>i.rO.axioseRquest({method:"post",url:"/api-teacher/courseSchedule/myCoursewareDetail/"+t}),u=t=>i.rO.axioseRquest({method:"get",url:"/api-teacher/lessonCoursewareDetail/detail/"+t}),h=()=>i.Vk.axioseRquest({method:"get",url:"/api-teacher/tenantGroupAlbum/buyAlbumInfo"}),p=()=>i.Vk.axioseRquest({method:"get",url:"/api-tenant/open/subject/queryPage?page=1&rows=9999&queryType=list"}),d=(t,e,n)=>i.Vk.axioseRquest({signal:n.signal,method:"post",url:"/api-teacher/tenantAlbumMusic/page",data:{subjectType:"COURSEWARE",albumId:e,page:1,rows:9999,subjectId:t}}),f=t=>i.Vk.axioseRquest({method:"get",url:"/api-teacher/tenantAlbumMusic/getLessonCoursewareCourseList/"+t}),g=t=>i.Vk.axioseRquest({method:"get",url:"/api-teacher/tenantAlbumMusic/getLessonCourseDetail/"+t})},8878:function(t,e,n){"use strict";n.d(e,{a:function(){return o},j:function(){return r}});var i=n(7053);const r=t=>i.Z9.axioseRquest({method:"post",url:"/api-teacher/teacherCourseSchedule/getRecentCourseSchedule"+(t?"?courseId="+t:"")}),o=()=>i.rO.axioseRquest({method:"post",url:"/api-teacher/courseSchedule/remind"})},8102:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return Ie}});n(7658);var i=n(3396),r=n(7139),o=n(4870),s=n(9242),a=n(6384),l=n(5993),c=n(5099),u=n(327),h=n(4568),p=n(1985),d=n(8329),f=n(5375),g=n(4834),m=n(1383),y=n(7398),v=n(346),_=n(769),b=n.n(_),T=n(9327);function E(t,e=2,n="0"){if(t=String(t),t.length>=2)return t;for(let i=0,r=e-t.length;i((0,i.dD)("data-v-5e29fc36"),t=t(),(0,i.Cn)(),t),k={class:"sliderSection"},B={class:"timeController"},I={class:"playController"},R={class:"leftPlayController"},P=["src"],D=["src"],j={class:"sliderSpeedCon"},O={class:"thumb"},M=A((()=>(0,i._)("div",{class:"rightPlayController"},[(0,i._)("div",{class:"videoName"})],-1)));var x=(0,i.aZ)({__name:"videoPlay",props:{disableEvents:{type:Boolean},isShowController:{type:Boolean},autoPlay:{type:Boolean}},emits:["ready","ended","playbackRate","loadedmetadata"],setup(t,{expose:e,emit:a}){const l=t,c="video"+(0,T.hb)();let u,h=!1;const p=(0,o.iH)(""),d=(0,o.qj)({currentTime:0,duration:0,currentTimeSilder:0,isDrag:!1}),f=(0,o.iH)(),g=(0,o.iH)();let _;function E(){_&&clearTimeout(_),_=setTimeout((()=>{g.value?.hide()}),5e3)}const A=(0,o.qj)({type:"pause",loop:!1,minSpeed:.5,maxSpeed:1.5,speedStep:.1,palySpeed:1});(0,i.YP)((()=>A.palySpeed),(()=>{E()}));const x=(0,o.iH)(!0);let L,G;function N(){u=b()(c,{controls:!1,loop:!1}),u.ready((()=>{console.log("播放器初始化完成"),h=!0,a("ready")})),u.on("loadstart",(()=>{u.playbackRate(A.palySpeed)})),u.on("loadedmetadata",(()=>{console.log("loadedmetadata"),l?.autoPlay&&u.play(),a("loadedmetadata")})),u.on("durationchange",(()=>{d.duration=u.duration()})),u.on("timeupdate",(()=>{d.currentTime=u.currentTime(),d.isDrag||(d.currentTimeSilder=d.currentTime)})),u.on("play",(()=>{A.type="play"})),u.on("pause",(()=>{A.type="pause"})),u.on("ended",(()=>{a("ended")}))}function Z({src:t,name:e}){p.value=e,G&&clearInterval(G),h?F(t):G=setInterval((()=>{h&&(clearInterval(G),F(t))}),60)}function F(t){u?.src(t),tt()}function U(t){u.currentTime(t||d.currentTimeSilder),d.isDrag=!1}function H(t){d.isDrag=!0,d.currentTimeSilder=t}function V(t){U(d.currentTime+("fast"===t?5:-5)),tt()}function Q(){"pause"===A.type?u.play():u.pause(),tt()}function Y(){u.pause(),tt()}(0,i.m0)((()=>{x.value=l.isShowController})),(0,i.bv)((()=>{N()})),(0,i.Ah)((()=>{u?.dispose()}));let q=null;function $(){A.loop?u.loop(!1):u.loop(!0),A.loop=u.loop(),A.loop?(q&&q.close(),q=(0,w.z8)({message:"已打开循环播放",icon:"",customClass:"defaultMessage"})):(q&&q.close(),q=(0,w.z8)({message:"已关闭循环播放",icon:"",customClass:"defaultMessage"}))}function K(t){A.palySpeed=t,u.playbackRate(t),a("playbackRate")}function z(t){const e=parseFloat((A.palySpeed+t).toFixed(1));e>A.maxSpeed||e{const a=(0,i.up)("el-popover");return(0,i.wg)(),(0,i.iD)("div",{onKeydown:J,onMousemove:X,onClick:W,class:(0,r.C_)(["videoPlay",{isHideController:!x.value}]),tabindex:"-1"},[(0,i._)("video",{class:"videoPlayBox",id:c,preload:"auto",playsinline:"","webkit-playsinline":""}),(0,i._)("div",{class:"videoController",onClick:e[2]||(e[2]=(0,s.iM)((()=>{}),["stop"])),onTouchstart:e[3]||(e[3]=(0,s.iM)((()=>{}),["stop"]))},[(0,i._)("div",k,[(0,i._)("div",B,(0,r.zw)(`${(0,o.SU)(C)(d.currentTime)} / ${(0,o.SU)(C)(d.duration)}`),1),(0,i.Wm)((0,o.SU)(S.Z),{class:"sliderController",keyboard:!1,value:d.currentTimeSilder,tooltip:x.value,step:.01,"onUpdate:value":H,"on-dragend":U,max:d.duration,"format-tooltip":t=>(0,o.SU)(C)(t)},null,8,["value","tooltip","max","format-tooltip"])]),(0,i._)("div",I,[(0,i._)("div",R,[(0,i._)("img",{onClick:Q,src:n(3994)(`./${"play"===A.type?"iconPause":"iconPlay"}.png`)},null,8,P),(0,i._)("img",{onClick:$,class:"loopImg",src:n(3994)(`./${A.loop?"iconLoopActive":"iconLoop"}.png`)},null,8,D),(0,i._)("img",{ref_key:"btnSpendDom",ref:f,src:m},null,512),(0,i.Wm)(a,{onShow:E,ref_key:"popoverSpendDom",ref:g,"virtual-ref":f.value,trigger:"click",placement:"top",teleported:!1,"popper-class":"palySpeedPopover","virtual-triggering":""},{default:(0,i.w5)((()=>[(0,i._)("div",j,[(0,i._)("img",{onClick:e[0]||(e[0]=t=>z(A.speedStep)),src:y}),(0,i.Wm)((0,o.SU)(S.Z),{class:"sliderSpeed",tooltip:!1,keyboard:!1,value:A.palySpeed,"onUpdate:value":K,vertical:"",step:A.speedStep,max:A.maxSpeed,min:A.minSpeed},{thumb:(0,i.w5)((()=>[(0,i._)("div",O,(0,r.zw)(A.palySpeed.toFixed(1)+"X"),1)])),_:1},8,["value","step","max","min"]),(0,i._)("img",{onClick:e[1]||(e[1]=t=>z(-A.speedStep)),src:v})])])),_:1},8,["virtual-ref"])]),M])],32)],34)}}}),L=n(89);const G=(0,L.Z)(x,[["__scopeId","data-v-5e29fc36"]]);var N=G,Z=N,F=n(8039),U=n(7053);const H=t=>U.rO.axioseRquest({method:"post",url:"/api-teacher/courseSchedule/getCoursewarePlayTime?courseScheduleId="+t,params:{playFrom:"WEB"}}),V=(t,e)=>U.rO.axioseRquest({method:"post",url:`/api-teacher/courseSchedule/coursewarePlayTime?courseScheduleId=${t}&playTime=${e}`,params:{playFrom:"WEB"}}),Q=t=>U.rO.axioseRquest({method:"post",url:"/api-teacher/courseSchedule/checkWebCourse/"+t}),Y=t=>U.rO.axioseRquest({method:"post",url:"/api-teacher/lessonCoursewareDetail/refLevel",data:t}),q=t=>U.Vk.axioseRquest({method:"post",url:"/api-teacher/tenantAlbumMusic/refLevel",data:t}),$=t=>U.Z9.axioseRquest({method:"post",url:"/api-teacher/lessonCourseware/refLevel",data:t});var K=n(3954),z=n(2529),W=n(2483),J=n(6e3),X=n.p+"img/icon-load.027b4b78.gif",tt=n(2364);const et=t=>((0,i.dD)("data-v-573a8f2a"),t=t(),(0,i.Cn)(),t),nt={class:"courseCollapseHead"},it=et((()=>(0,i._)("div",{class:"courseCollapseHeadArrow"},[(0,i._)("div",{class:"headArrow"}),(0,i._)("div",{class:"headArrowActive"})],-1))),rt={class:"courseCollapseHeadTit"},ot=["onClick"],st=et((()=>(0,i._)("div",{class:"imgIcon"},null,-1))),at={class:"ellipsisBox"},lt={class:"iconArrow"},ct={key:0,src:X};var ut=(0,i.aZ)({__name:"courseCollapse",props:{activeCollapse:{},courseList:{},isChild:{type:Boolean}},emits:["handleClick"],setup(t,{emit:e}){const n=t;(0,i.YP)((()=>n.activeCollapse),(()=>{s.value=a()}));const s=(0,o.iH)(a());function a(){const t=n.courseList.find((t=>(n.activeCollapse?.parentData.ids||[]).includes(t.id)));return t?.id||""}function l(t){e("handleClick",t)}return(t,e)=>{const a=(0,i.up)("courseCollapse",!0),c=(0,i.up)("el-collapse-item"),u=(0,i.up)("el-collapse");return(0,i.wg)(),(0,i.j4)(u,{class:"courseCollapse",accordion:"",modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=t=>s.value=t)},{default:(0,i.w5)((()=>[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.courseList,(e=>((0,i.wg)(),(0,i.j4)(c,{key:e.id,name:e.id,class:(0,r.C_)({isChild:n.isChild})},{title:(0,i.w5)((()=>[(0,i._)("div",nt,[it,(0,i._)("div",rt,[(0,i.Wm)((0,o.SU)(tt.Z),{title:e.name},null,8,["title"])])])])),default:(0,i.w5)((()=>[(0,i._)("div",{class:(0,r.C_)(["courseCollapseCon",{courseListCon:e.materialList}])},[e.materialList?((0,i.wg)(!0),(0,i.iD)(i.HY,{key:0},(0,i.Ko)(e.materialList,(e=>((0,i.wg)(),(0,i.iD)("div",{class:(0,r.C_)(["courseList",{isActive:t.activeCollapse?.id===e.id&&t.activeCollapse?.knowledgePointId===e.knowledgePointId}]),key:e.id,onClick:t=>l(e)},[(0,i._)("div",{class:(0,r.C_)(["courseTitleCon",e.typeCode||e.type])},[st,(0,i._)("div",at,[(0,i.Wm)((0,o.SU)(tt.Z),{title:e.name},null,8,["title"])])],2),(0,i._)("div",lt,[t.activeCollapse?.id===e.id&&t.activeCollapse?.knowledgePointId===e.knowledgePointId?((0,i.wg)(),(0,i.iD)("img",ct)):(0,i.kq)("",!0)])],10,ot)))),128)):((0,i.wg)(),(0,i.j4)(a,{key:1,isChild:!0,courseList:e.children||[],activeCollapse:t.activeCollapse,onHandleClick:l},null,8,["courseList","activeCollapse"]))],2)])),_:2},1032,["name","class"])))),128))])),_:1},8,["modelValue"])}}});const ht=(0,L.Z)(ut,[["__scopeId","data-v-573a8f2a"]]);var pt=ht,dt=pt;const ft={class:"courseMenuCollapse"},gt=["name","onClick"],mt={class:"cover"},yt=["src"],vt={key:0,class:"current"},_t={class:"text"},bt={style:{maxWidth:"180px"}};var Tt=(0,i.aZ)({__name:"courseMenuCollapse",props:{courseMenuList:{}},emits:["handleClick"],setup(t,{emit:e}){const n=t;function o(t){e("handleClick",t)}return(t,e)=>{const s=(0,i.up)("el-tooltip");return(0,i.wg)(),(0,i.iD)("div",ft,[((0,i.wg)(!0),(0,i.iD)(i.HY,null,(0,i.Ko)(n.courseMenuList,(t=>((0,i.wg)(),(0,i.iD)("div",{class:(0,r.C_)(["courseMenuItem",t.useFlag?"current":""]),key:t.id,name:t.id,onClick:e=>o(t)},[(0,i._)("div",mt,[(0,i._)("img",{src:t.coverImg},null,8,yt),t.useFlag?((0,i.wg)(),(0,i.iD)("div",vt,"当前")):(0,i.kq)("",!0)]),(0,i._)("div",_t,[(0,i.Wm)(s,{"popper-class":"singleton-tooltip",offset:5,showArrow:!1,placement:"top"},{content:(0,i.w5)((()=>[(0,i._)("div",bt,(0,r.zw)(t.lessonCoursewareName),1)])),default:(0,i.w5)((()=>[(0,i._)("div",{ref_for:!0,ref:"tooltipDom",class:"tooltipAutoShow"},(0,r.zw)(t.lessonCoursewareName),513)])),_:2},1024)])],10,gt)))),128))])}}});const Et=(0,L.Z)(Tt,[["__scopeId","data-v-071219f4"]]);var Ct=Et,St=Ct;const wt=t=>((0,i.dD)("data-v-734b0228"),t=t(),(0,i.Cn)(),t),At=wt((()=>(0,i._)("div",{class:"drop"},null,-1))),kt={class:"time"},Bt=5;var It=(0,i.aZ)({__name:"playRecordTime",props:{coursewareTotalTime:{},isCurrentCoursewareMenu:{type:Boolean},modeId:{}},setup(t){const e=t;let n;const s=(0,o.iH)(0);let a=0;function l(){(0,K.hk)(H,e.modeId).then((t=>{200===t.code&&(s.value+=t.data||0)}))}function c(){n=setInterval((()=>{if(s.value>=e.coursewareTotalTime)return n&&clearInterval(n),void(a>0&&u(e.modeId,a));a++,s.value++,a===Bt&&(u(e.modeId,a),a=0)}),1e3)}function u(t,e){(0,K.hk)(V,t,e).then((()=>{}))}return(0,i.Ah)((()=>{n&&clearInterval(n)})),(0,i.YP)((()=>e.isCurrentCoursewareMenu),(()=>{e.isCurrentCoursewareMenu?c():(u(e.modeId,a),a=0,n&&clearInterval(n))})),l(),e.isCurrentCoursewareMenu&&c(),(t,n)=>((0,i.wg)(),(0,i.iD)("div",{class:(0,r.C_)(["playRecordTime",t.isCurrentCoursewareMenu?"":"hide"])},[At,(0,i._)("div",kt,(0,r.zw)(`${(0,o.SU)(C)(s.value)}/${(0,o.SU)(C)(e.coursewareTotalTime)}`),1)],2))}});const Rt=(0,L.Z)(It,[["__scopeId","data-v-734b0228"]]);var Pt=Rt,Dt=Pt,jt=n(1600),Ot=n(8878),Mt=n(5402),xt=n(6636),Lt=n(7666),Gt=n(4505),Nt=n(4663),Zt=n(5966);const Ft={class:"dialogConfirm"},Ut=["src"],Ht={class:"textCon"},Vt=["innerHTML"],Qt={key:1,class:"dialogBtn"};var Yt=(0,i.aZ)({__name:"coursewarePlayTip",props:{modalData:{}},emits:["onClose","onCancel","onOk"],setup(t,{emit:e}){const n=t,r=(0,i.Fl)((()=>{const{btnShow:t}=n.modalData;return!(!t[0]&&!t[1])}));function o(){e("onClose")}function s(){e("onCancel")}function a(){e("onOk")}return(t,e)=>{const l=(0,i.up)("ElScrollbar");return(0,i.wg)(),(0,i.iD)("div",Ft,[(0,i._)("div",{class:"close",onClick:o}),n.modalData.headImg?((0,i.wg)(),(0,i.iD)("img",{key:0,class:"headImg",src:n.modalData.headImg},null,8,Ut)):(0,i.kq)("",!0),(0,i._)("div",Ht,[(0,i.Wm)(l,{class:"elScrollbar"},{default:(0,i.w5)((()=>[(0,i._)("div",{class:"text",innerHTML:n.modalData.text},null,8,Vt)])),_:1})]),r.value?((0,i.wg)(),(0,i.iD)("div",Qt,[n.modalData.btnShow[1]?((0,i.wg)(),(0,i.iD)("img",{key:0,onClick:s,src:Nt})):(0,i.kq)("",!0),n.modalData.btnShow[0]?((0,i.wg)(),(0,i.iD)("img",{key:1,onClick:a,src:Zt})):(0,i.kq)("",!0)])):(0,i.kq)("",!0)])}}});const qt=(0,L.Z)(Yt,[["__scopeId","data-v-683a49b0"]]);var $t=qt,Kt=({text:t,onCancel:e,onOk:n,onClose:i,btnShow:r,headImg:o})=>{(0,Gt.ZP)({maskClose:!0,template:$t,width:840,height:570,btnShow:[],modalData:{text:t,btnShow:r||[!0,!0],headImg:o},className:"usecoursewarePlayTip",onCancel:e,onOk:n,onClose:i})},zt=n(1451),Wt=n(1371),Jt=n(3537);const Xt=t=>((0,i.dD)("data-v-577eabb0"),t=t(),(0,i.Cn)(),t),te={key:0,class:"imgPlayBox"},ee={key:1,class:"songPlayBox"},ne=["src"],ie={class:"leftTools posTools"},re=Xt((()=>(0,i._)("img",{src:a},null,-1))),oe=[re],se=Xt((()=>(0,i._)("img",{src:l},null,-1))),ae=[se],le=Xt((()=>(0,i._)("img",{src:c},null,-1))),ce=[le],ue=Xt((()=>(0,i._)("img",{src:u},null,-1))),he=[ue],pe={class:"topTools"},de={class:"leftMenu"},fe={class:"title-section"},ge={class:"title"},me={class:"content"},ye={class:"midMenu"},ve=Xt((()=>(0,i._)("img",{src:p},null,-1))),_e=[ve],be=Xt((()=>(0,i._)("img",{class:"directory",src:d},null,-1))),Te=Xt((()=>(0,i._)("div",{class:"tit"},"知识点目录",-1))),Ee=["onClick"],Ce=Xt((()=>(0,i._)("img",{class:"directory",src:g},null,-1))),Se=Xt((()=>(0,i._)("div",{class:"tit"},"课程类型",-1))),we=["onClick"];var Ae=(0,i.aZ)({__name:"coursewarePlay",setup(t){const e=(0,W.yj)(),a=(0,W.tv)(),l=(0,z.Z)(),c=(0,o.iH)(),u=(0,o.iH)(),p=(0,o.iH)(""),d=(0,o.XI)([]),g=(0,o.XI)([]),m=(0,o.iH)([]),y=(0,o.XI)(!0),v=(0,o.iH)(e.params.id),_=(0,o.iH)(!1),b=(0,i.Fl)((()=>m.value[C.value])),T=(0,i.Fl)((()=>b.value?.typeCode||b.value?.type)),E=(0,i.Fl)((()=>{if("SONG"!==T.value)return"";const t={GYT:`${xt.PJ}?id=${b.value?.content}&modelType=practice&modeType=json&Authorization=${(0,Mt.LP)()}&isYjt=1`,GYM:`${xt.bz}#/?id=${b.value?.content}&Authorization=${(0,Mt.LP)()}&platform=pc&isHideBack=true&isHideMusicList=true&isYjt=1&systemType=teacher`,KLX:`${xt.lI}?Authorization=${(0,Mt.LP)()}&id=${b.value?.content}&isHideBack=true&limitModel=practice&isYjt=1&client=teacher`};return t[l.roles]})),C=(0,o.iH)(0),S=(0,o.iH)(!1),w=(0,o.iH)(!1),A=(0,o.iH)(0);async function k(t){const n={GYT:F.eJ,GYM:F.Tw,KLX:F.OA};await(0,K.Jj)(n[l.roles],t||e.params.id).then((t=>{if(200===t.code){const{lockFlag:e,knowledgePointList:n,lessonTargetDesc:i}=t.data||{};if(e)return void J.T.alert("课件已锁定","温馨提示",{confirmButtonText:"退出",type:"error"}).then((()=>{ot()})).catch((()=>{ot()}));if((n||[]).length<1)return void J.T.alert("没有找到课件","温馨提示",{confirmButtonText:"退出",type:"error"}).then((()=>{ot()})).catch((()=>{ot()}));p.value=i?i.replace(/\n/g,"
"):"",R(n)}}))}function B(t){const n={GYT:Y,GYM:$,KLX:q};(0,K.Jj)(n[l.roles],{lessonCoursewareDetailId:t||e.params.id,courseScheduleId:e.query.modeId}).then((t=>{200===t.code&&(d.value=t.data||[])}))}(0,i.YP)(b,(()=>{"VIDEO"===T.value&&(0,i.Y3)((()=>{N({src:b.value?.content,name:b.value?.name})})),it()})),k(),B();let I=[];function R(t){if(A.value=0,g.value=P(t),e.query.materialId){const t=I.findIndex((t=>e.query.materialId===t.id+""&&e.query.knowledgePointId===t.knowledgePointId+""));t>-1&&(C.value=t)}m.value=I}function P(t,e){return t.map((t=>t.children?Object.assign(t,{children:P(t.children,{ids:[...e?.ids||[],t.id],name:t.name})}):(A.value+=t.totalMaterialTimeSecond,Object.assign(t,{materialList:t.materialList.map((n=>(n.parentData={ids:[...e?.ids||[],t.id],name:t.name},I.push(n),n)))}))))}function D(t){G(),M();const e=t+C.value;e<0||e>m.value.length-1||(C.value=e)}function j(t){C.value=m.value.findIndex((e=>t.id===e.id&&t.knowledgePointId===e.knowledgePointId)),S.value=!1}async function O(t){v.value!==t.id&&(Wt.Z.loading(!0),v.value=t.id,y.value=t.id===e.params.id,I=[],_.value=!0,await k(t.id),B(t.id),w.value=!1,C.value=0,(0,i.Y3)((()=>{S.value=!0})),Wt.Z.loading(!1))}function M(){u.value?.contentWindow?.postMessage({api:"setPlayState"},"*"),it()}function x(){c.value?.handlePlay(),it()}function L(t){c.value?.speedCurrentTime(t),it()}function G(){c.value?.pauseVideo(),it()}function N({src:t,name:e}){c.value?.playVideo({src:t,name:e}),it()}function U(t){t.preventDefault()}function H(t){const e=t.key;" "===e?((0,Gt.AV)(),S.value=!1,"VIDEO"===T.value&&x()):"ArrowLeft"===e?((0,Gt.AV)(),S.value=!1,"VIDEO"===T.value&&L("slow")):"ArrowRight"===e?((0,Gt.AV)(),S.value=!1,"VIDEO"===T.value&&L("fast")):"ArrowDown"===e?((0,Gt.AV)(),S.value=!1,D(1)):"ArrowUp"===e&&((0,Gt.AV)(),S.value=!1,D(-1))}function V(t){"VIDEO"===T.value&&G(),"menu"===t?w.value=!0:"point"===t&&(S.value=!0)}function X(){it()}function tt(){"VIDEO"===T.value&&et.value&&x(),it()}(0,Lt.U)(!0,!1),(0,i.bv)((()=>{document.addEventListener("keydown",H),document.addEventListener("contextmenu",U),it()})),(0,i.Ah)((()=>{document.removeEventListener("keydown",H),document.removeEventListener("contextmenu",U)}));const et=(0,o.iH)(!0);let nt;function it(){et.value=!0,nt&&clearTimeout(nt),nt=setTimeout(rt,3e3)}function rt(){et.value=!1}function ot(){a.go(-1)}function st(){e.query.modeId?"GYM"===l.roles?(0,K.Ms)(Ot.j,e.query.modeId).then((t=>{200===t.code&&(3===t.data?.signOutStatusEnum?(0,zt.Z)({headImg:n(9893),text:"请确认是否结束课程,结束后请到APP进行签退。",btnShow:[!0,!0],onOk(){ot()}}):ot())})):"GYT"===l.roles&&(0,K.Ms)(Q,e.query.modeId).then((t=>{200===t.code&&(!1===t.data?.signOut?(0,zt.Z)({headImg:n(9893),text:"请确认是否结束课程,结束后请到APP进行签退。",btnShow:[!0,!0],onOk(){ot()}}):ot())})):ot()}(0,i.YP)((()=>et.value),(()=>{et.value?Jt.wU.value=!1:(Jt.wU.value=!0,Jt.Y5.value=!1)})),(0,i.YP)((()=>[Jt.K4.value,Jt.ys.value]),(()=>{(Jt.K4.value||Jt.ys.value)&&(G(),M())}));const at=(0,i.Fl)((()=>{const t=b.value?.materialRefs;return t?["GYM","KLX"].includes(l.roles)?t[0]?.resourceIdStr:t[0]?.resourceId:void 0})),lt=(0,o.iH)(!1),ct=(0,o.iH)("");function ut(t){const e={GYT:`${xt.PJ}?id=${t}&modelType=practice&modeType=json&Authorization=${(0,Mt.LP)()}&isYjt=1&&isHideBack=false`,GYM:`${xt.bz}#/?id=${t}&Authorization=${(0,Mt.LP)()}&platform=pc&isYjt=1&systemType=teacher&isHideMusicList=true`,KLX:`${xt.lI}?Authorization=${(0,Mt.LP)()}&id=${t}&limitModel=practice&isYjt=1&client=teacher`};lt.value=!0,ct.value=e[l.roles]}function ht(){lt.value=!1,ct.value=""}function pt(t,e){Kt({headImg:n(6162)(`./${"phaseGoals"===t?"ts3":"ts4"}.png`),text:e,btnShow:[!1,!1]}),G()}return(t,n)=>{const a=(0,i.up)("ElImage"),v=(0,i.up)("ElScrollbar"),k=(0,i.up)("el-drawer");return(0,i.wg)(),(0,i.iD)("div",{class:(0,r.C_)(["coursewarePlay",[!et.value&&"hideController","SONG"===T.value&&"fileType_song"]])},[(0,i._)("div",{class:"coursewarePlayCon",onMousemove:X,onClick:tt,onTouchstart:tt},[(0,i.wy)((0,i.Wm)((0,o.SU)(Z),{ref_key:"videoPlayDom",ref:c,onEnded:n[0]||(n[0]=t=>D(1)),onLoadedmetadata:n[1]||(n[1]=()=>{_.value=!1}),autoPlay:!0,onPlaybackRate:it,disableEvents:!0,isShowController:et.value},null,8,["isShowController"]),[[s.F8,"VIDEO"===T.value]]),"IMG"===T.value?((0,i.wg)(),(0,i.iD)("div",te,[(0,i.Wm)(a,{"hide-on-click-modal":!0,fit:"contain",src:b.value?.content,class:"imgPlay"},null,8,["src"])])):(0,i.kq)("",!0),"SONG"===T.value?((0,i.wg)(),(0,i.iD)("div",ee,[(0,i._)("iframe",{ref_key:"songPlayDom",ref:u,class:"songIframe",onMousemove:X,src:E.value,frameborder:"0"},null,40,ne)])):(0,i.kq)("",!0)],32),(0,i._)("div",ie,[(0,i._)("div",{class:"posBtn",onClick:n[2]||(n[2]=t=>V("menu"))},oe),(0,i._)("div",{class:"posBtn",onClick:n[3]||(n[3]=t=>V("point"))},ae),(0,i._)("div",{class:(0,r.C_)(["posBtn",C.value>0?"":"disabled"]),onClick:n[4]||(n[4]=()=>{C.value>0&&D(-1)})},ce,2),(0,i._)("div",{class:(0,r.C_)(["posBtn",C.value{C.value{G(),ut(at.value)}),class:"goPracticeBtn"})):(0,i.kq)("",!0),(0,i._)("div",pe,[(0,i._)("div",de,[(0,i._)("img",{onClick:ot,class:"backImg",src:h}),(0,i._)("div",fe,[(0,i._)("div",ge,(0,r.zw)(b.value?.parentData.name||""),1),(0,i._)("div",me,[(0,i._)("p",null,(0,r.zw)(b.value?.name||""),1),p.value?((0,i.wg)(),(0,i.iD)("span",{key:0,onClick:n[7]||(n[7]=t=>pt("phaseGoals",p.value))},"阶段目标")):(0,i.kq)("",!0),b.value?.checkItem?((0,i.wg)(),(0,i.iD)("span",{key:1,onClick:n[8]||(n[8]=t=>pt("checkItem",b.value?.checkItem))},"检查事项")):(0,i.kq)("",!0)])])]),(0,i._)("div",ye,[(0,o.SU)(e).query.modeId&&A.value&&"GYT"===(0,o.SU)(l).roles?((0,i.wg)(),(0,i.j4)((0,o.SU)(Dt),{key:0,modeId:(0,o.SU)(e).query.modeId,isCurrentCoursewareMenu:y.value,coursewareTotalTime:A.value},null,8,["modeId","isCurrentCoursewareMenu","coursewareTotalTime"])):(0,i.kq)("",!0)]),(0,i._)("div",{class:"rightMenu"},[(0,i._)("div",{class:"posCloseBtn",onClick:st},_e)])]),(0,i.Wm)(k,{class:"elDrawer",direction:"ltr",modelValue:S.value,"onUpdate:modelValue":n[9]||(n[9]=t=>S.value=t),"show-close":!1},{header:(0,i.w5)((({close:t})=>[be,Te,(0,i._)("img",{class:"close",onClick:t,src:f},null,8,Ee)])),default:(0,i.w5)((()=>[(0,i.Wm)(v,{class:"elScrollbar"},{default:(0,i.w5)((()=>[(0,i.Wm)((0,o.SU)(dt),{activeCollapse:b.value,courseList:g.value,onHandleClick:j},null,8,["activeCollapse","courseList"])])),_:1})])),_:1},8,["modelValue"]),(0,i.Wm)(k,{class:"elDrawer elCourseMenu",direction:"ltr",modelValue:w.value,"onUpdate:modelValue":n[10]||(n[10]=t=>w.value=t),"show-close":!1},{header:(0,i.w5)((({close:t})=>[Ce,Se,(0,i._)("img",{class:"close",onClick:t,src:f},null,8,we)])),default:(0,i.w5)((()=>[(0,i.Wm)(v,{class:"elScrollbar"},{default:(0,i.w5)((()=>[(0,i.Wm)((0,o.SU)(St),{courseMenuList:d.value,onHandleClick:O},null,8,["courseMenuList"])])),_:1})])),_:1},8,["modelValue"]),(0,i.Wm)((0,o.SU)(jt.Z),{modelValue:lt.value,"onUpdate:modelValue":n[11]||(n[11]=t=>lt.value=t),practiceUrl:ct.value,onClose:ht},null,8,["modelValue","practiceUrl"])],2)}}});const ke=(0,L.Z)(Ae,[["__scopeId","data-v-577eabb0"]]);var Be=ke,Ie=Be},769:function(module,__unused_webpack_exports,__webpack_require__){__webpack_require__(7658),__webpack_require__(1439),__webpack_require__(7585),__webpack_require__(5315),__webpack_require__(6229),__webpack_require__(7330),__webpack_require__(2062),__webpack_require__(2801),function(t,e){module.exports=e()}(0,(function(){function unwrapExports(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}function createCommonjsModule(t,e){return e={exports:{}},t(e,e.exports),e.exports}function each(t,e){keys(t).forEach((function(n){return e(t[n],n)}))}function reduce(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return keys(t).reduce((function(n,i){return e(n,t[i],i)}),n)}function assign(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],r=document_1.createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(log$2.warn(tsml(_templateObject,t,n)),r.setAttribute(t,n)):"textContent"===t?textContent(r,n):r[t]=n})),Object.getOwnPropertyNames(n).forEach((function(t){r.setAttribute(t,n[t])})),i&&appendContent(r,i),r}function textContent(t,e){return"undefined"==typeof t.textContent?t.innerText=e:t.textContent=e,t}function prependTo(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function hasClass(t,e){return throwIfWhitespace(e),t.classList?t.classList.contains(e):classRegExp(e).test(t.className)}function addClass(t,e){return t.classList?t.classList.add(e):hasClass(t,e)||(t.className=(t.className+" "+e).trim()),t}function removeClass(t,e){return t.classList?t.classList.remove(e):(throwIfWhitespace(e),t.className=t.className.split(/\s+/).filter((function(t){return t!==e})).join(" ")),t}function toggleClass(t,e,n){var i=hasClass(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!i),n!==i)return n?addClass(t,e):removeClass(t,e),t}function setAttributes(t,e){Object.getOwnPropertyNames(e).forEach((function(n){var i=e[n];null===i||void 0===i||!1===i?t.removeAttribute(n):t.setAttribute(n,!0===i?"":i)}))}function getAttributes(t){var e={};if(t&&t.attributes&&t.attributes.length>0)for(var n=t.attributes,i=n.length-1;i>=0;i--){var r=n[i].name,o=n[i].value;"boolean"!=typeof t[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(o=null!==o),e[r]=o}return e}function getAttribute(t,e){return t.getAttribute(e)}function setAttribute(t,e,n){t.setAttribute(e,n)}function removeAttribute(t,e){t.removeAttribute(e)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(t){void 0!==e[t]&&(n[t]=e[t])})),n.height||(n.height=parseFloat(computedStyle(t,"height"))),n.width||(n.width=parseFloat(computedStyle(t,"width"))),n}}function findPosition(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=document_1.documentElement,i=document_1.body,r=n.clientLeft||i.clientLeft||0,o=window_1.pageXOffset||i.scrollLeft,s=e.left+o-r,a=n.clientTop||i.clientTop||0,l=window_1.pageYOffset||i.scrollTop,c=e.top+l-a;return{left:Math.round(s),top:Math.round(c)}}function getPointerPosition(t,e,n){var i={},r=findPosition(t),o=t.offsetWidth,s=t.offsetHeight,a=r.top,l=r.left,c=e.pageY,u=e.pageX;if(e.changedTouches&&(u=e.changedTouches[0].pageX,c=e.changedTouches[0].pageY),n){var h=[c,u];u=h[0],c=h[1]}return i.y=Math.max(0,Math.min(1,(a-c+s)/s)),i.x=Math.max(0,Math.min(1,(u-l)/o)),i}function isTextNode(t){return isObject$1(t)&&3===t.nodeType}function emptyEl(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function normalizeContent(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map((function(t){return"function"==typeof t&&(t=t()),isEl(t)||isTextNode(t)?t:"string"==typeof t&&/\S/.test(t)?document_1.createTextNode(t):void 0})).filter((function(t){return t}))}function appendContent(t,e){return normalizeContent(e).forEach((function(e){return t.appendChild(e)})),t}function insertContent(t,e){return appendContent(emptyEl(t),e)}function isSingleLeftClick(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||9===IE_VERSION||0===t.button&&1===t.buttons}function newGUID(){return _guid++}function getData(t){var e=t[elIdAttr];return e||(e=t[elIdAttr]=newGUID()),elData[e]||(elData[e]={}),elData[e]}function hasData(t){var e=t[elIdAttr];return!!e&&!!Object.getOwnPropertyNames(elData[e]).length}function removeData(t){var e=t[elIdAttr];if(e){delete elData[e];try{delete t[elIdAttr]}catch(n){t.removeAttribute?t.removeAttribute(elIdAttr):t[elIdAttr]=null}}}function _cleanUpEvents(t,e){var n=getData(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&removeData(t)}function _handleMultipleEvents(t,e,n,i){n.forEach((function(n){t(e,n,i)}))}function fixEvent(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var i=t||window_1.event;for(var r in t={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&i.preventDefault||(t[r]=i[r]));if(t.target||(t.target=t.srcElement||document_1),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=!1,i.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=!0,i.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&void 0!==t.clientX){var o=document_1.documentElement,s=document_1.body;t.pageX=t.clientX+(o&&o.scrollLeft||s&&s.scrollLeft||0)-(o&&o.clientLeft||s&&s.clientLeft||0),t.pageY=t.clientY+(o&&o.scrollTop||s&&s.scrollTop||0)-(o&&o.clientTop||s&&s.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&void 0!==t.button&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}function on(t,e,n){if(Array.isArray(e))return _handleMultipleEvents(on,t,e,n);var i=getData(t);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),n.guid||(n.guid=newGUID()),i.handlers[e].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(e,n){if(!i.disabled){e=fixEvent(e);var r=i.handlers[e.type];if(r)for(var o=r.slice(0),s=0,a=o.length;s-1&&(r={passive:!0}),t.addEventListener(e,i.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function off(t,e,n){if(hasData(t)){var i=getData(t);if(i.handlers){if(Array.isArray(e))return _handleMultipleEvents(off,t,e,n);var r=function(t,e){i.handlers[e]=[],_cleanUpEvents(t,e)};if(void 0!==e){var o=i.handlers[e];if(o){if(!n)return void r(t,e);if(n.guid)for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=e.eventBusKey;if(n){if(!t[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');t.eventBusEl_=t[n]}else t.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(t,EventedMixin),t.on("dispose",(function(){t.off(),window_1.setTimeout((function(){t.eventBusEl_=null}),0)})),t}function stateful(t,e){return assign(t,StatefulMixin),t.state=assign({},t.state,e),"function"==typeof t.handleStateChanged&&isEvented(t)&&t.on("statechanged",t.handleStateChanged),t}function toTitleCase(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function titleCaseEquals(t,e){return toTitleCase(t)===toTitleCase(e)}function mergeOptions(){for(var t={},e=arguments.length,n=Array(e),i=0;i-1}function listCacheSet(t,e){var n=this.__data__,i=_assocIndexOf(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}function ListCache(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1)t=t.replace(".sdp",".flv"),e.push(t.replace(".sdp",".m3u8"));else{var n=t.replace("webrtc://","https://").replace("?",".flv?");-1===n.indexOf("?")&&-1===n.indexOf(".flv")&&(n+=".flv"),hlsSrc=t.replace("webrtc://","https://").replace("?",".m3u8?"),-1===hlsSrc.indexOf("?")&&-1===hlsSrc.indexOf(".m3u8")&&(hlsSrc+=".m3u8"),e.push(hlsSrc)}return e}function replaceHost(t,e){var n=/^http(s)?:\/\/(.*?)\//,i=t.match(n);return t.replace(i[2],e)}function getViewportSize(){var t=document,e=t.documentElement,n=t.body;return{width:e&&e.clientWidth||n&&n.offsetWidth||window.innerWidth||0,height:e&&e.clientHeight||n&&n.offsetHeight||window.innerHeight||0}}function getTimeStamp(){return(new Date).getTime()}function getTimeStampBySecond(){return Date.parse(new Date)/1e3}function loadCssText(t,e){var n=document.getElementById(t);if(n)n.innerHTML=e;else{var i=document.createElement("style");i.id=t,i.type="text/css",i.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(i)}}function releaseCssText(t){var e=document.getElementById(t);e&&e.remove()}function loadScript(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=document.createElement("script");if(r.onload=r.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||("function"==typeof e&&e(),r.onload=r.onreadystatechange=null,r.parentNode&&!i&&r.parentNode.removeChild(r))},n)for(var o in n)if(n.hasOwnProperty(o)){var s=n[o];null===s?r.removeAttribute(s):r.setAttribute(o,s)}r.src=t,document.getElementsByTagName("head")[0].appendChild(r)}function serializeParams(t){var e=[],n=function(t,n){n="function"==typeof n?n():n,n=null===n||void 0===n?"":n,e[e.length]=encodeURIComponent(t)+"="+encodeURIComponent(n)};return function t(i,r){var o=void 0,s=void 0,a=void 0;if(i)if(Array.isArray(r))for(o=0,s=r.length;o/g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/"):""}function isWebrtcUrl(t){return/webrtc:\/\//.test(t)||/\.sdp/.test(t)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function arrangeWebrtcSource(t,e){var n=getParams("tabr_bitrates",t),i=getParams("tabr_start_bitrate",t),r="auto"===getParams("tabr_control",t);t=t.replace("&tabr_control=auto","");var o=[],s=[];if(n&&i){var a;if(s=n.split(",").map((function(n){var r,s=e.webrtcConfig.abrLabels[n]||n;return o.push(s),r={},r[s]=[{src:t.replace("tabr_start_bitrate="+i,"tabr_start_bitrate="+n)}],r})),r)s.push((a={},a[e.webrtcConfig.abrLabels.auto||"AUTO"]=[{src:t+"&tabr_control=auto"}],a)),o.push(e.webrtcConfig.abrLabels.auto||"AUTO");var l={};s.forEach((function(t){for(var e in t)l[e]=t[e]})),e.showOrder=o,e.defaultRes=r?e.webrtcConfig.abrLabels.auto||"AUTO":e.webrtcConfig.abrLabels[i]||i||o[0];var c={};o.forEach((function(t){c[t]=e.webrtcConfig.abrLabels[t]||t})),e.labels=c,e.label=c,e.sources=[],e.multiResolution={sources:l}}}function rangeCheck(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}function getRange(t,e,n,i){return rangeCheck(t,i,n.length-1),n[i][e]}function createTimeRangesObj(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:getRange.bind(null,"start",0,t),end:getRange.bind(null,"end",1,t)}}function createTimeRanges(t,e){return Array.isArray(t)?createTimeRangesObj(t):void 0===t||void 0===e?createTimeRangesObj():createTimeRangesObj([[t,e]])}function bufferedPercent(t,e){var n=0,i=void 0,r=void 0;if(!e)return 0;t&&t.length||(t=createTimeRanges(0,0));for(var o=0;oe&&(r=e),n+=r-i;return n/e}function MediaError(t){if(t instanceof MediaError)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:isObject$1(t)&&("number"==typeof t.code&&(this.code=t.code),assign(this,t)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(t,e){var n,i=null;try{n=JSON.parse(t,e)}catch(r){i=r}return[i,n]}function isPromise(t){return void 0!==t&&"function"==typeof t.then}function silencePromise(t){isPromise(t)&&t.then(null,(function(t){}))}function isFunction$3(t){if(!t)return!1;var e=toString$3.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}function extend$1(){for(var t={},e=0;e0&&(u=setTimeout((function(){if(!c){c=!0,a.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}}),t.timeout)),a.setRequestHeader)for(l in f)f.hasOwnProperty(l)&&a.setRequestHeader(l,f[l]);else if(t.headers&&!isEmpty(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(a.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(a),a.send(d||null),a}function getXml(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}function noop(){}function ParsingError(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function parseTimeStamp(t){function e(t,e,n,i){return 3600*(0|t)+60*(0|e)+(0|n)+(0|i)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(t,e,n,i){var r=i?t.split(i):[t];for(var o in r)if("string"==typeof r[o]){var s=r[o].split(n);if(2===s.length){var a=s[0],l=s[1];e(a,l)}}}function parseCue(t,e,n){function i(){var e=parseTimeStamp(t);if(null===e)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+o);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function r(){t=t.replace(/^\s+/,"")}var o=t;if(r(),e.startTime=i(),r(),"--\x3e"!==t.substr(0,3))throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);t=t.substr(3),r(),e.endTime=i(),r(),function(t,e){var i=new Settings;parseOptions(t,(function(t,e){switch(t){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),s=o[0];i.integer(t,s),i.percent(t,s)&&i.set("snapToLines",!1),i.alt(t,s,["auto"]),2===o.length&&i.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=e.split(","),i.percent(t,o[0]),2===o.length&&i.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start","middle","end","left","right"])}}),/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical",""),e.line=i.get("line","auto"),e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align","middle"),e.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}function parseContent(t,e){function n(t){return ESCAPE[t]}for(var i,r=t.document.createElement("div"),o=r,s=[];null!==(i=function(){if(!e)return null;var t=e.match(/^([^<]*)(<[^>]+>?)?/);return function(t){return e=e.substr(t.length),t}(t[1]?t[1]:t[2])}());)if("<"!==i[0])o.appendChild(t.document.createTextNode(function(t){for(;c=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(c[0],n);return t}(i)));else{if("/"===i[1]){s.length&&s[s.length-1]===i.substr(2).replace(">","")&&(s.pop(),o=o.parentNode);continue}var a,l=parseTimeStamp(i.substr(1,i.length-2));if(l){a=t.document.createProcessingInstruction("timestamp",l),o.appendChild(a);continue}var c=i.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!c)continue;if(!(a=function(e,n){var i=TAG_NAME[e];if(!i)return null;var r=t.document.createElement(i);r.localName=i;var o=TAG_ANNOTATION[e];return o&&n&&(r[o]=n.trim()),r}(c[1],c[3])))continue;if(!function(t,e){return!NEEDS_PARENT[e.localName]||NEEDS_PARENT[e.localName]===t.localName}(o,a))continue;c[2]&&(a.className=c[2].substr(1).replace("."," ")),s.push(c[1]),o.appendChild(a),o=a}return r}function isStrongRTLChar(t){for(var e=0;e=n[0]&&t<=n[1])return!0}return!1}function determineBidi(t){function e(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function n(t){if(!t||!t.length)return null;var i=t.pop(),r=i.textContent||i.innerText;if(r){var o=r.match(/^.*(\n|\r)/);return o?(t.length=0,o[0]):r}return"ruby"===i.tagName?n(t):i.childNodes?(e(t,i),n(t)):void 0}var i,r=[],o="";if(!t||!t.childNodes)return"ltr";for(e(r,t);o=n(r);)for(var s=0;s=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,i=0,r=0;rh&&(u=u<0?-1:1,u*=Math.ceil(h/c)*c),s<0&&(u+=""===o.vertical?n.height:n.width,a=a.reverse()),r.move(p,u)}else{var d=r.lineHeight/n.height*100;switch(o.lineAlign){case"middle":s-=d/2;break;case"end":s-=d}switch(o.vertical){case"":e.applyStyles({top:e.formatStyle(s,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(s,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(s,"%")})}a=["+y","-x","+x","-y"],r=new BoxPosition(e)}var f=function(t,e){for(var r,o=new BoxPosition(t),s=1,a=0;al&&(r=new BoxPosition(t),s=l),t=new BoxPosition(o)}return r||o}(r,a);e.move(f.toCSSCompatValues(n))}function WebVTT$1(){}function findDirectionSetting(t){return"string"==typeof t&&!!directionSetting[t.toLowerCase()]&&t.toLowerCase()}function findAlignSetting(t){return"string"==typeof t&&!!alignSetting[t.toLowerCase()]&&t.toLowerCase()}function extend$2(t){for(var e=1;e100)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",extend$2({},o,{get:function(){return y},set:function(t){var e=findAlignSetting(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");y=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",extend$2({},o,{get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",extend$2({},o,{get:function(){return _},set:function(t){var e=findAlignSetting(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),i.displayState=void 0,r)return i}function findScrollSetting(t){return"string"==typeof t&&!!scrollSetting[t.toLowerCase()]&&t.toLowerCase()}function isValidPercentValue(t){return"number"==typeof t&&t>=0&&t<=100}function VTTRegion(){var t=100,e=3,n=0,i=100,r=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!isValidPercentValue(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!isValidPercentValue(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!isValidPercentValue(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!isValidPercentValue(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!isValidPercentValue(t))throw new Error("ViewportAnchorX must be between 0 and 100.");r=t}},scroll:{enumerable:!0,get:function(){return s},set:function(t){var e=findScrollSetting(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");s=e}}})}function createTrackHelper(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.textTracks();r.kind=e,n&&(r.label=n),i&&(r.language=i),r.tech=t;var s=new ALL.text.TrackClass(r);return o.addTrack(s),s}function use(t,e){middlewares[t]=middlewares[t]||[],middlewares[t].push(e)}function setSource(t,e,n){t.setTimeout((function(){return setSourceHelper(e,middlewares[e.type],n,t)}),1)}function setTech(t,e){t.forEach((function(t){return t.setTech&&t.setTech(e)}))}function get$3(t,e,n){return t.reduceRight(middlewareIterator(n),e[n]())}function set$1(t,e,n,i){return e[n](t.reduce(middlewareIterator(n),i))}function middlewareIterator(t){return function(e,n){return n[t]?n[t](e):e}}function setSourceHelper(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],i=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e[0],a=e.slice(1);if("string"==typeof s)setSourceHelper(t,middlewares[s],n,i,r,o);else if(s){var l=s(i);l.setSource(assign({},t),(function(e,s){if(e)return setSourceHelper(t,a,n,i,r,o);r.push(l),setSourceHelper(s,t.type===s.type?a:middlewares[s.type],n,i,r,o)}))}else a.length?setSourceHelper(t,a,n,i,r,o):o?n(t,r):setSourceHelper(t,middlewares["*"],n,i,r,!0)}function constructColor(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function tryUpdateStyle(t,e,n){try{t.style[e]=n}catch(i){return}}function formatTime(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;t=t<0?0:t;var n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600),o=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(r=i=n="-"),r=r>0||s>0?r+":":"",i=((r||o>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n}function formatDate(t,e){if(!t)return"";var n=new Date(t),i=n.getFullYear(),r=n.getMonth()+1,o=n.getDate(),s=n.getHours(),a=n.getMinutes();return n.getSeconds(),i+"/"+r+"/"+o+" "+s+":"+(a<10?"0"+a:a)}function parseOptionValue(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}function getSelectedOptionValue(t,e){return parseOptionValue(t.options[t.options.selectedIndex].value,e)}function setSelectedOption(t,e,n){if(e)for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fill",n=t,i="draw-"+e;return['\n \n \n ','\n \n \n ','\n \n \n '][n]}function trimmedEndIndex(t){for(var e=t.length;e--&&reWhitespace.test(t.charAt(e)););return e}function baseTrim(t){return t?t.slice(0,_trimmedEndIndex(t)+1).replace(reTrimStart,""):t}function toNumber(t){if("number"==typeof t)return t;if(isSymbol_1(t))return NAN;if(isObject_1(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=isObject_1(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=_baseTrim(t);var n=reIsBinary.test(t);return n||reIsOctal.test(t)?freeParseInt(t.slice(2),n?2:8):reIsBadHex.test(t)?NAN:+t}function debounce(t,e,n){function i(e){var n=p,i=d;return p=d=void 0,v=e,g=t.apply(i,n)}function r(t){return v=t,m=setTimeout(a,e),_?i(t):g}function o(t){var n=t-y,i=t-v,r=e-n;return b?nativeMin(r,f-i):r}function s(t){var n=t-y,i=t-v;return void 0===y||n>=e||n<0||b&&i>=f}function a(){var t=now_1();if(s(t))return l(t);m=setTimeout(a,o(t))}function l(t){return m=void 0,T&&p?i(t):(p=d=void 0,g)}function c(){void 0!==m&&clearTimeout(m),v=0,p=y=d=m=void 0}function u(){return void 0===m?g:l(now_1())}function h(){var t=now_1(),n=s(t);if(p=arguments,d=this,y=t,n){if(void 0===m)return r(y);if(b)return clearTimeout(m),m=setTimeout(a,e),i(y)}return void 0===m&&(m=setTimeout(a,e)),g}var p,d,f,g,m,y,v=0,_=!1,b=!1,T=!0;if("function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$2);return e=toNumber_1(e)||0,isObject_1(n)&&(_=!!n.leading,b="maxWait"in n,f=b?nativeMax(toNumber_1(n.maxWait)||0,e):f,T="trailing"in n?!!n.trailing:T),h.cancel=c,h.flush=u,h}function throttle$1(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject_1(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),debounce_1(t,e,{leading:i,maxWait:e,trailing:r})}function mountFlvProvider(t){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(!videojs.browser.IS_TBS&&!videojs.browser.IS_MQQB&&(!IS_IOS||!videojs.browser.IS_SAFARI)&&!videojs.browser.IE_VERSION||t)try{var e=videojs.getTech&&videojs.getTech("Html5");e&&e.registerSourceHandler(FlvSourceHandler,0)}catch(n){}}function mountWebRTCProvider(t){if(!videojs.browser.isWebRTCSupported())return!1;try{var e=videojs.getTech&&videojs.getTech("Html5");e&&e.registerSourceHandler(sourceHandler,0)}catch(n){}}function FlashRtmpDecorator(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),i=void 0;return-1!==n?i=n+1:0===(n=i=t.lastIndexOf("/")+1)&&(n=i=t.length),e.connection=t.substring(0,n),e.stream=t.substring(i,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canPlayType=function(e){return t.isStreamingType(e)?"maybe":""},t.rtmpSourceHandler.canHandleSource=function(e,n){var i=t.rtmpSourceHandler.canPlayType(e.type);return i||(t.isStreamingSrc(e.src)?"maybe":"")},t.rtmpSourceHandler.handleSource=function(e,n,i){var r=t.streamToParts(e.src);n.setRtmpConnection(r.connection),n.setRtmpStream(r.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t}function _createSetter(t){var e=t.charAt(0).toUpperCase()+t.slice(1);_api["set"+e]=function(e){return this.el_.vjs_setProperty(t,e)}}function _createGetter(t){_api[t]=function(){return this.el_.vjs_getProperty(t)}}function TCPlayer(t,e,n){var i=void 0,r=(new Date).getTime(),o=videojs.dom;if("string"==typeof t)i=document.querySelector("#"+t);else{if(!t||!t.nodeName)throw new TypeError("The ID or element supplied is not valid.");i=t}if("video"!=i.nodeName.toLowerCase()&&"audio"!=i.nodeName.toLowerCase())throw new TypeError("The element type must be