(self["webpackChunkclassroom"]=self["webpackChunkclassroom"]||[]).push([[673],{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:{query:{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})},5334:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return he}});n(7658);var i=n(3396),r=n(7139),o=n(4870),s=n(9242),a=n(5099),l=n(327),c=n(8707),u=n(7026),h=n(5993),p=n(1985),d=n(4568),f=n(8329),g=n(5375),y=n(1383),m=n(7398),v=n(346),_=n(769),b=n.n(_),A=n(9327);function T(t,e=2,n="0"){if(t=String(t),t.length>=2)return t;for(let i=0,r=e-t.length;i{g.value?.hide()}),5e3)}const D=(0,o.qj)({type:"pause",loop:!1,minSpeed:.5,maxSpeed:1.5,speedStep:.1,palySpeed:1});(0,i.YP)((()=>D.palySpeed),(()=>{T()}));const O=(0,o.iH)(!0);let x,L;function G(){u=b()(c,{controls:!1,loop:!1}),u.ready((()=>{console.log("播放器初始化完成"),h=!0,a("ready")})),u.on("loadstart",(()=>{u.playbackRate(D.palySpeed)})),u.on("loadedmetadata",(()=>{console.log("loadedmetadata"),u.play()})),u.on("durationchange",(()=>{d.duration=u.duration()})),u.on("timeupdate",(()=>{d.currentTime=u.currentTime(),d.isDrag||(d.currentTimeSilder=d.currentTime)})),u.on("play",(()=>{D.type="play"})),u.on("pause",(()=>{D.type="pause"})),u.on("ended",(()=>{a("ended")}))}function N({src:t,name:e}){p.value=e,L&&clearInterval(L),h?Z(t):L=setInterval((()=>{h&&(clearInterval(L),Z(t))}),60)}function Z(t){u?.src(t),J()}function U(t){u.currentTime(t||d.currentTimeSilder),d.isDrag=!1}function V(t){d.isDrag=!0,d.currentTimeSilder=t}function F(t){U(d.currentTime+("fast"===t?5:-5)),J()}function H(){"pause"===D.type?u.play():u.pause(),J()}function Q(){u.pause(),J()}function z(){D.loop?u.loop(!1):u.loop(!0),D.loop=u.loop()}function Y(t){D.palySpeed=t,u.playbackRate(t),a("playbackRate")}function q(t){const e=parseFloat((D.palySpeed+t).toFixed(1));e>D.maxSpeed||e{O.value=l.isShowController})),(0,i.bv)((()=>{G()})),(0,i.Ah)((()=>{u?.dispose()})),e({playVideo:N,pauseVideo:Q,handlePlay:H,speedCurrentTime:F,playType:(0,o.Vh)(D,"type")}),(t,e)=>{const a=(0,i.up)("el-popover");return(0,i.wg)(),(0,i.iD)("div",{onKeydown:W,onMousemove:X,onClick:K,class:(0,r.C_)(["videoPlay",{isHideController:!O.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",S,(0,r.zw)(`${(0,o.SU)(E)(d.currentTime)} / ${(0,o.SU)(E)(d.duration)}`),1),(0,i.Wm)((0,o.SU)(C.Z),{class:"sliderController",keyboard:!1,value:d.currentTimeSilder,tooltip:O.value,step:.01,"onUpdate:value":V,"on-dragend":U,max:d.duration,"format-tooltip":t=>(0,o.SU)(E)(t)},null,8,["value","tooltip","max","format-tooltip"]),(0,i._)("div",w,[(0,i._)("div",k,[(0,i._)("img",{onClick:H,src:n(3994)(`./${"play"===D.type?"iconPause":"iconPlay"}.png`)},null,8,B),(0,i._)("img",{onClick:z,src:n(3994)(`./${D.loop?"iconLoopActive":"iconLoop"}.png`)},null,8,R),(0,i._)("img",{ref_key:"btnSpendDom",ref:f,src:y},null,512),(0,i.Wm)(a,{onShow:T,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",I,[(0,i._)("img",{onClick:e[0]||(e[0]=t=>q(D.speedStep)),src:m}),(0,i.Wm)((0,o.SU)(C.Z),{class:"sliderSpeed",tooltip:!1,keyboard:!1,value:D.palySpeed,"onUpdate:value":Y,vertical:"",step:D.speedStep,max:D.maxSpeed,min:D.minSpeed},{thumb:(0,i.w5)((()=>[(0,i._)("div",P,(0,r.zw)(D.palySpeed.toFixed(1)+"X"),1)])),_:1},8,["value","step","max","min"]),(0,i._)("img",{onClick:e[1]||(e[1]=t=>q(-D.speedStep)),src:v})])])),_:1},8,["virtual-ref"])]),(0,i._)("div",j,[(0,i._)("div",M,[(0,i._)("div",null,(0,r.zw)(p.value||""),1)])])])],32)],34)}}}),O=n(89);const x=(0,O.Z)(D,[["__scopeId","data-v-07993fd8"]]);var L=x,G=L,N=n(8039),Z=n(7053);const U=t=>Z.rO.axioseRquest({method:"post",url:"/api-teacher/courseSchedule/getCoursewarePlayTime?courseScheduleId="+t,params:{playFrom:"WEB"}}),V=(t,e)=>Z.rO.axioseRquest({method:"post",url:`/api-teacher/courseSchedule/coursewarePlayTime?courseScheduleId=${t}&playTime=${e}`,params:{playFrom:"WEB"}}),F=t=>Z.rO.axioseRquest({method:"post",url:"/api-teacher/courseSchedule/checkWebCourse/"+t});var H=n(3420),Q=n(2529),z=n(2483),Y=n(6e3),q=n.p+"img/icon-load.027b4b78.gif",K=n(1565);const W=t=>((0,i.dD)("data-v-17acc212"),t=t(),(0,i.Cn)(),t),X={class:"courseCollapseHead"},J=W((()=>(0,i._)("div",{class:"courseCollapseHeadArrow"},[(0,i._)("div",{class:"headArrow"}),(0,i._)("div",{class:"headArrowActive"})],-1))),$={class:"courseCollapseHeadTit"},tt=["onClick"],et=W((()=>(0,i._)("div",{class:"imgIcon"},null,-1))),nt={class:"ellipsisBox"},it={class:"iconArrow"},rt={key:0,src:q};var ot=(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",X,[J,(0,i._)("div",$,[(0,i.Wm)((0,o.SU)(K.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])},[et,(0,i._)("div",nt,[(0,i.Wm)((0,o.SU)(K.Z),{title:e.name},null,8,["title"])])],2),(0,i._)("div",it,[t.activeCollapse?.id===e.id&&t.activeCollapse?.knowledgePointId===e.knowledgePointId?((0,i.wg)(),(0,i.iD)("img",rt)):(0,i.kq)("",!0)])],10,tt)))),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 st=(0,O.Z)(ot,[["__scopeId","data-v-17acc212"]]);var at=st,lt=at,ct=n(6636),ut=n(4712);const ht=["src"],pt=(0,i._)("svg",{width:"22px",height:"20px",viewBox:"0 0 22 20"},[(0,i._)("path",{transform:"translate(-1.000000, -2.000000)",fill:"#FFFFFF",d:"M13,2 C13.5522847,2 14,2.44771525 14,3 C14,3.51283584 13.6139598,3.93550716 13.1166211,3.99327227 L13,4 L3,4 L3,20 L13,20 C13.5128358,20 13.9355072,20.3860402 13.9932723,20.8833789 L14,21 C14,21.5128358 13.6139598,21.9355072 13.1166211,21.9932723 L13,22 L2,22 C1.48716416,22 1.06449284,21.6139598 1.00672773,21.1166211 L1,21 L1,3 C1,2.48716416 1.38604019,2.06449284 1.88337887,2.00672773 L2,2 L13,2 Z M17.7071068,7.05025253 L21.9497475,11.2928932 L21.9497475,11.2928932 C22.3402718,11.6834175 22.3402718,12.3165825 21.9497475,12.7071068 L17.7071068,16.9497475 C17.3165825,17.3402718 16.6834175,17.3402718 16.2928932,16.9497475 C15.9023689,16.5592232 15.9023689,15.9260582 16.2928932,15.5355339 L18.828,12.999 L9.29368112,13 C8.74139637,13 8.29368112,12.5522847 8.29368112,12 C8.29368112,11.4871642 8.67972131,11.0644928 9.17706,11.0067277 L9.29368112,11 L18.827,10.999 L16.2928932,8.46446609 C15.9023689,8.0739418 15.9023689,7.44077682 16.2928932,7.05025253 C16.6834175,6.65972824 17.3165825,6.65972824 17.7071068,7.05025253 Z"})],-1),dt=[pt];var ft=(0,i.aZ)({__name:"pen",props:{isWhite:{type:Boolean},close:{type:Function}},setup(t){const e=t;function r(){(0,ut.Z)({headImg:n(6162)(`./${e.isWhite?"ts2":"ts1"}.png`),text:`请确认是否退出${e.isWhite?"白板":"批注"}?`,btnShow:[!0,!0],onOk(t){e.close(),t.remove()}})}return(t,e)=>{const n=(0,i.up)("el-dialog");return(0,i.wg)(),(0,i.j4)(n,(0,i.dG)({"modal-class":"penModalClass",class:["penElDialog",{isWhite:t.isWhite}]},t.$attrs,{fullscreen:!0,"show-close":!1}),{default:(0,i.w5)((()=>[(0,i._)("iframe",{class:"penIframe",frameborder:"0",src:(0,o.SU)(ct.z)},null,8,ht),(0,i._)("div",{class:"closeSvg",onClick:r},dt)])),_:1},16,["class"])}}});const gt=ft;var yt=gt,mt=yt;const vt=t=>((0,i.dD)("data-v-713f3a1e"),t=t(),(0,i.Cn)(),t),_t={class:"playRecordTime"},bt=vt((()=>(0,i._)("div",{class:"drop"},null,-1))),At={class:"time"},Tt=5;var Et=(0,i.aZ)({__name:"playRecordTime",props:{coursewareTotalTime:{},modeId:{}},setup(t){const e=t;let n;const s=(0,o.iH)(0);let a=0;function l(){(0,H.hk)(U,e.modeId).then((t=>{200===t.code&&(s.value+=t.data||0)}))}function c(t,e){(0,H.hk)(V,t,e).then((()=>{}))}return(0,i.Ah)((()=>{n&&clearInterval(n)})),l(),n=setInterval((()=>{if(s.value>=e.coursewareTotalTime)return n&&clearInterval(n),void(a>0&&c(e.modeId,a));a++,s.value++,a===Tt&&(c(e.modeId,a),a=0)}),1e3),(t,n)=>((0,i.wg)(),(0,i.iD)("div",_t,[bt,(0,i._)("div",At,(0,r.zw)(`${(0,o.SU)(E)(s.value)}/${(0,o.SU)(E)(e.coursewareTotalTime)}`),1)]))}});const Ct=(0,O.Z)(Et,[["__scopeId","data-v-713f3a1e"]]);var St=Ct,wt=St,kt=n(2761),Bt=n(8878),Rt=n(5402),It=n(7666);const Pt=t=>((0,i.dD)("data-v-d0f7db0a"),t=t(),(0,i.Cn)(),t),jt={key:0,class:"imgPlayBox"},Mt={key:1,class:"songPlayBox"},Dt=["src"],Ot={class:"leftTools posTools"},xt=Pt((()=>(0,i._)("img",{src:a},null,-1))),Lt=Pt((()=>(0,i._)("div",null,"上一个",-1))),Gt=[xt,Lt],Nt=Pt((()=>(0,i._)("img",{src:l},null,-1))),Zt=Pt((()=>(0,i._)("div",null,"下一个",-1))),Ut=[Nt,Zt],Vt={class:"rightTools posTools"},Ft=Pt((()=>(0,i._)("img",{src:c},null,-1))),Ht=Pt((()=>(0,i._)("div",null,"白板",-1))),Qt=[Ft,Ht],zt=Pt((()=>(0,i._)("img",{src:u},null,-1))),Yt=Pt((()=>(0,i._)("div",null,"批注",-1))),qt=[zt,Yt],Kt=Pt((()=>(0,i._)("img",{src:h},null,-1))),Wt=Pt((()=>(0,i._)("div",null,"知识点",-1))),Xt=[Kt,Wt],Jt=Pt((()=>(0,i._)("img",{src:p},null,-1))),$t=Pt((()=>(0,i._)("div",null,"结束",-1))),te=[Jt,$t],ee={class:"topTools"},ne={class:"leftMenu"},ie={class:"midMenu"},re=Pt((()=>(0,i._)("div",{class:"rightMenu"},null,-1))),oe=Pt((()=>(0,i._)("img",{class:"directory",src:f},null,-1))),se=Pt((()=>(0,i._)("div",{class:"tit"},"课程目录",-1))),ae=["onClick"];var le=(0,i.aZ)({__name:"coursewarePlay",setup(t){const e=(0,z.yj)(),a=(0,z.tv)(),l=(0,Q.Z)(),c=(0,o.iH)(!1),u=(0,o.iH)(!1),h=(0,o.iH)(),p=(0,o.XI)([]),f=(0,o.XI)([]),y=(0,i.Fl)((()=>f.value[_.value])),m=(0,i.Fl)((()=>y.value?.typeCode||y.value?.type)),v=(0,i.Fl)((()=>{if("SONG"!==m.value)return"";const t={GYT:`${ct.PJ}?id=${y.value?.content}&modelType=practice&modeType=json&Authorization=${(0,Rt.LP)()}&isYjt=1`,GYM:`${ct.bz}#/detail/${y.value?.content}?Authorization=${(0,Rt.LP)()}&platform=web&liveConfig=1&isHideBack=true&isYjt=1`,KLX:`${ct.lI}?Authorization=${(0,Rt.LP)()}&id=${y.value?.content}&isHideBack=true&limitModel=practice&isYjt=1&client=teacher`};return t[l.roles]})),_=(0,o.iH)(0),b=(0,o.iH)(!1),A=(0,o.iH)(0);function T(){const t={GYT:N.eJ,GYM:N.Tw,KLX:N.OA};(0,H.Jj)(t[l.roles],e.params.id).then((t=>{if(200===t.code){const{lockFlag:e,knowledgePointList:n}=t.data||{};if(e)return void Y.T.alert("课件已锁定","温馨提示",{confirmButtonText:"退出",type:"error"}).then((()=>{V()})).catch((()=>{V()}));if((n||[]).length<1)return void Y.T.alert("没有找到课件","温馨提示",{confirmButtonText:"退出",type:"error"}).then((()=>{V()})).catch((()=>{V()}));C(n)}}))}(0,i.YP)(y,(()=>{I(),"VIDEO"===m.value&&(0,i.Y3)((()=>{P({src:y.value?.content,name:y.value?.name})})),Z()})),T();let E=[];function C(t){if(p.value=S(t),e.query.materialId){const t=E.findIndex((t=>e.query.materialId===t.id+""&&e.query.knowledgePointId===t.knowledgePointId+""));t>-1&&(_.value=t)}f.value=E}function S(t,e){return t.map((t=>t.children?Object.assign(t,{children:S(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},E.push(n),n)))}))))}function w(t){const e=t+_.value;e<0||e>f.value.length-1||(_.value=e)}function k(t){_.value=f.value.findIndex((e=>t.id===e.id&&t.knowledgePointId===e.knowledgePointId))}function B(){h.value?.handlePlay(),Z()}function R(t){h.value?.speedCurrentTime(t),Z()}function I(){h.value?.pauseVideo(),Z()}function P({src:t,name:e}){h.value?.playVideo({src:t,name:e}),Z()}function j(t){t.preventDefault()}function M(t){const e=t.key;" "===e?"VIDEO"===m.value&&B():"ArrowLeft"===e?"VIDEO"===m.value&&R("slow"):"ArrowRight"===e?"VIDEO"===m.value&&R("fast"):"ArrowDown"===e?w(1):"ArrowUp"===e&&w(-1)}function D(){Z()}function O(){"VIDEO"===m.value&&x.value&&B(),Z()}(0,It.U)(!0,!1),(0,i.bv)((()=>{document.addEventListener("keydown",M),document.addEventListener("contextmenu",j),Z()})),(0,i.Ah)((()=>{document.removeEventListener("keydown",M),document.removeEventListener("contextmenu",j)}));const x=(0,o.iH)(!0);let L;function Z(){x.value=!0,L&&clearTimeout(L),L=setTimeout(U,3e3)}function U(){"VIDEO"===m.value&&"pause"===h.value?.playType||(x.value=!1)}function V(){a.go(-1)}function q(){e.query.modeId?"GYM"===l.roles?(0,H.Ms)(Bt.j,e.query.modeId).then((t=>{200===t.code&&(3===t.data?.signOutStatusEnum?(0,ut.Z)({headImg:n(9893),text:"请确认是否结束课程,结束后请到APP进行签退。",btnShow:[!0,!0],onOk(){V()}}):V())})):"GYT"===l.roles&&(0,H.Ms)(F,e.query.modeId).then((t=>{200===t.code&&(!1===t.data?.signOut?(0,ut.Z)({headImg:n(9893),text:"请确认是否结束课程,结束后请到APP进行签退。",btnShow:[!0,!0],onOk(){V()}}):V())})):V()}const K=(0,i.Fl)((()=>{const t=y.value?.materialRefs;return t?["GYM","KLX"].includes(l.roles)?t[0]?.resourceIdStr:t[0]?.resourceId:void 0})),W=(0,o.iH)(!1),X=(0,o.iH)("");function J(t){const e={GYT:`${ct.PJ}?id=${t}&modelType=practice&modeType=json&Authorization=${(0,Rt.LP)()}&isYjt=1&&isHideBack=false`,GYM:`${ct.bz}#/detail/${t}?Authorization=${(0,Rt.LP)()}&platform=web&liveConfig=1&isYjt=1`,KLX:`${ct.lI}?Authorization=${(0,Rt.LP)()}&id=${t}&limitModel=practice&isYjt=1&client=teacher`};W.value=!0,X.value=e[l.roles]}function $(){W.value=!1,X.value=""}return(t,n)=>{const a=(0,i.up)("ElImage"),T=(0,i.up)("ElScrollbar"),E=(0,i.up)("el-drawer");return(0,i.wg)(),(0,i.iD)("div",{class:(0,r.C_)(["coursewarePlay",[!x.value&&"hideController","SONG"===m.value&&"fileType_song"]])},[(0,i._)("div",{class:"coursewarePlayCon",onMousemove:D,onClick:O,onTouchstart:O},[(0,i.wy)((0,i.Wm)((0,o.SU)(G),{ref_key:"videoPlayDom",ref:h,onEnded:n[0]||(n[0]=t=>w(1)),onPlaybackRate:Z,disableEvents:!0,isShowController:x.value},null,8,["isShowController"]),[[s.F8,"VIDEO"===m.value]]),"IMG"===m.value?((0,i.wg)(),(0,i.iD)("div",jt,[(0,i.Wm)(a,{"hide-on-click-modal":!0,fit:"contain",src:y.value?.content,class:"imgPlay"},null,8,["src"])])):(0,i.kq)("",!0),"SONG"===m.value?((0,i.wg)(),(0,i.iD)("div",Mt,[(0,i._)("iframe",{class:"songIframe",onMousemove:D,src:v.value,frameborder:"0"},null,40,Dt)])):(0,i.kq)("",!0)],32),(0,i._)("div",Ot,[_.value>0?((0,i.wg)(),(0,i.iD)("div",{key:0,class:"posBtn",onClick:n[1]||(n[1]=t=>w(-1))},Gt)):(0,i.kq)("",!0),_.valuew(1))},Ut)):(0,i.kq)("",!0)]),(0,i._)("div",Vt,[(0,i._)("div",{class:"posBtn",onClick:n[3]||(n[3]=()=>{I(),u.value=!0})},Qt),(0,i._)("div",{class:"posBtn",onClick:n[4]||(n[4]=()=>{I(),c.value=!0})},qt),(0,i._)("div",{class:"posBtn",onClick:n[5]||(n[5]=t=>b.value=!0)},Xt),(0,i._)("div",{class:"posBtn",onClick:q},te)]),K.value?((0,i.wg)(),(0,i.iD)("div",{key:0,onClick:n[6]||(n[6]=()=>{I(),J(K.value)}),class:"goPracticeBtn"})):(0,i.kq)("",!0),(0,i._)("div",ee,[(0,i._)("div",ne,[(0,i._)("img",{onClick:V,class:"backImg",src:d}),(0,o.SU)(e).query.modeId&&A.value&&"GYT"===(0,o.SU)(l).roles?((0,i.wg)(),(0,i.j4)((0,o.SU)(wt),{key:0,modeId:(0,o.SU)(e).query.modeId,coursewareTotalTime:A.value},null,8,["modeId","coursewareTotalTime"])):(0,i.kq)("",!0)]),(0,i._)("div",ie,(0,r.zw)(y.value?.parentData.name||""),1),re]),(0,i.Wm)(E,{class:"elDrawer",modelValue:b.value,"onUpdate:modelValue":n[7]||(n[7]=t=>b.value=t),"show-close":!1},{header:(0,i.w5)((({close:t})=>[oe,se,(0,i._)("img",{class:"close",onClick:t,src:g},null,8,ae)])),default:(0,i.w5)((()=>[(0,i.Wm)(T,{class:"elScrollbar"},{default:(0,i.w5)((()=>[(0,i.Wm)((0,o.SU)(lt),{activeCollapse:y.value,courseList:p.value,onHandleClick:k},null,8,["activeCollapse","courseList"])])),_:1})])),_:1},8,["modelValue"]),(0,i.Wm)((0,o.SU)(mt),{close:()=>{c.value=!1},modelValue:c.value,"onUpdate:modelValue":n[8]||(n[8]=t=>c.value=t)},null,8,["close","modelValue"]),(0,i.Wm)((0,o.SU)(mt),{"is-white":!0,close:()=>{u.value=!1},modelValue:u.value,"onUpdate:modelValue":n[9]||(n[9]=t=>u.value=t)},null,8,["close","modelValue"]),(0,i.Wm)((0,o.SU)(kt.Z),{modelValue:W.value,"onUpdate:modelValue":n[10]||(n[10]=t=>W.value=t),practiceUrl:X.value,onClose:$},null,8,["modelValue","practiceUrl"])],2)}}});const ce=(0,O.Z)(le,[["__scopeId","data-v-d0f7db0a"]]);var ue=ce,he=ue},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.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",extend$2({},o,{get:function(){return m},set:function(t){var e=findAlignSetting(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");m=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,y=setTimeout(a,e),_?i(t):g}function o(t){var n=t-m,i=t-v,r=e-n;return b?nativeMin(r,f-i):r}function s(t){var n=t-m,i=t-v;return void 0===m||n>=e||n<0||b&&i>=f}function a(){var t=now_1();if(s(t))return l(t);y=setTimeout(a,o(t))}function l(t){return y=void 0,A&&p?i(t):(p=d=void 0,g)}function c(){void 0!==y&&clearTimeout(y),v=0,p=m=d=y=void 0}function u(){return void 0===y?g:l(now_1())}function h(){var t=now_1(),n=s(t);if(p=arguments,d=this,m=t,n){if(void 0===y)return r(m);if(b)return clearTimeout(y),y=setTimeout(a,e),i(m)}return void 0===y&&(y=setTimeout(a,e)),g}var p,d,f,g,y,m,v=0,_=!1,b=!1,A=!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,A="trailing"in n?!!n.trailing:A),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