<<<<<<<< HEAD:dist/assets/index-70e464ed.js import{U as commonjsGlobal,a8 as getDefaultExportFromCjs,d as defineComponent,g as createVNode,a9 as Loading,h as createTextVNode,O as reactive,i as ref,o as onMounted,w as watch,P as Popup,F as Fragment,I as Icon,s as state,L as browser,X as isVNode,a4 as showLoadingToast,M as postMessage,aa as closeToast}from"./index-6ef77773.js";import{c as checkFile}from"./toolsValidate-2f258ec3.js";import{b as Swipe,c as SwipeItem}from"./index-e5198b82.js";import{I as Image$1}from"./index-6cce5316.js";const overlayPreview="_overlayPreview_wx5z7_1",imagePreview="_imagePreview_wx5z7_4",videSection="_videSection_wx5z7_9",styles$1={overlayPreview,imagePreview,videSection},iconPreviewClose="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAOVBMVEUAAAAAAADv7+80NDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADj4+PZ2dkAAAAAAABkZGT////w1mHvAAAAEnRSTlNMANxYRiQFOj8xKhkMzLxCHWlXlmF+AAABS0lEQVRYw6WX2ZLCIBBFzyiLBLKY///YcSynUEk6yz2PVu4pMKTp5meFkH2KowM3xuRzWHtuWVC6G1/curJXEPwr3Th8MAQ17ljF+bAlmBwmbjIFJbJJLOuC7NiBy2uCjp10y4LEbtKSIHKA2AoSBsYaMPZv0n0KMofJ74LiOIwrb4LICWIVTJxi+hcExylceAk8J/FPgbmA7SUgLAD8U9DWn3s/XPniOvT3tkb9CQoN/Txfrl/5yzz3NJSHoKNhmKuh5udh6UBTd/D5+MNg/FD3QADLYOchkLENdp6MxzbYeTwJ22DnSURsg50nMmIb7DwjDttg52vcMFh5kAXyFuQ/UX6N8kGSj7L8Mcmfs1pQ5JImF1W1rMsXi3y1qZerfL2rDYba4shNltrmqY2m2urKzbbe7usDhz7y6EOXPvbpg6c++urDtzz+/wLKehSFlfKj2AAAAABJRU5ErkJggg==",iconPreviewDownload="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAaVBMVEUAAAAAAAB1dXUAAAAAAAAAAADV1dXV1dUAAAAAAAAAAAAAAAAAAAD7+/t6enqqqqoAAAAAAAAAAAAAAAD9/f37+/v09PSLi4tnZ2cAAADR0dHNzc3y8vLl5eW/v7+cnJxwcHA+Pj7///+d7TGsAAAAInRSTlNMAG9GJAW4tT87MSoZ9HOOQh0PCvn253tqNrOu482ghm1bnhpUjAAAAcZJREFUWMOl19mSgyAQheGTADMgTKLG7JON93/IIY6Waxul/8pFKhW+Ki4UGisi5WRiUgGI1CTSKep/40BuNXppm88FlNQYTUs1A1BSgEzUBA1kApOJbBLYGXzM7GjACcxIOAqwmJkdBxLMLhkDzljQeQgkWFTSBywWZruAw+JcG9iJ5YDYtQADotPhcAKRaYAMVBfvr6DKakDRG/jy/pvehKoAiTgA8h9QIhYQqgQkYgHIEtDxgH4DOeIB5AGwHMAGQHMAvYICB4CC4wEOkgdIUC+Sx7MNPB/UiwWm//xdj9VTtG2ArfcXhI7X/rNpkKLbwRcvADcfhBoI6/0NwKvwB3RLIdAt/HcNYP3zFkqgXP9T/hi+oJsAxgFsSuENlOs3GAdAALXwGz7VegIgtlALoXo9tYWUAhohrCeBFIYGglCtpwGDhAaCsPd+v8EEkEBOATju90dMARKOBppowEHxAIWV5gC6fKUxABuAfABs10TbAZAPX+v+Q70dDA+WYnp9gXZy5Gi7TwrFfeRoW0lEJpvjPSqhmgtGVFn7ihORYV+yuNc87kWTe9VlX7b5133+wMEfefhDF3/s4w+e/NGXP3yzx/8/aHIywATB/+4AAAAASUVORK5CYII=",video="_video_jvegi_1",loadingVideo="_loadingVideo_jvegi_56",playOver="_playOver_jvegi_65",tips="_tips_jvegi_73",btn="_btn_jvegi_77",replay="_replay_jvegi_84",freeTxt="_freeTxt_jvegi_87",freeRate="_freeRate_jvegi_93",styles={"video-container":"_video-container_jvegi_1",video,loadingVideo,playOver,tips,btn,replay,freeTxt,freeRate};var tcplayer_v4_8_0_minExports={},tcplayer_v4_8_0_min={get exports(){return tcplayer_v4_8_0_minExports},set exports(r){tcplayer_v4_8_0_minExports=r}};(function(module,exports){(function(r,t){module.exports=t()})(commonjsGlobal,function(){function unwrapExports(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function createCommonjsModule(r,t){return t={exports:{}},r(t,t.exports),t.exports}function each(r,t){keys(r).forEach(function(e){return t(r[e],e)})}function reduce(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return keys(r).reduce(function(n,s){return t(n,r[s],s)},e)}function assign(r){for(var t=arguments.length,e=Array(t>1?t-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments[3],s=document_1.createElement(r);return Object.getOwnPropertyNames(t).forEach(function(a){var l=t[a];a.indexOf("aria-")!==-1||a==="role"||a==="type"?(log$2.warn(tsml(_templateObject,a,l)),s.setAttribute(a,l)):a==="textContent"?textContent(s,l):s[a]=l}),Object.getOwnPropertyNames(e).forEach(function(a){s.setAttribute(a,e[a])}),n&&appendContent(s,n),s}function textContent(r,t){return typeof r.textContent>"u"?r.innerText=t:r.textContent=t,r}function prependTo(r,t){t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}function hasClass(r,t){return throwIfWhitespace(t),r.classList?r.classList.contains(t):classRegExp(t).test(r.className)}function addClass(r,t){return r.classList?r.classList.add(t):hasClass(r,t)||(r.className=(r.className+" "+t).trim()),r}function removeClass(r,t){return r.classList?r.classList.remove(t):(throwIfWhitespace(t),r.className=r.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),r}function toggleClass(r,t,e){var n=hasClass(r,t);if(typeof e=="function"&&(e=e(r,t)),typeof e!="boolean"&&(e=!n),e!==n)return e?addClass(r,t):removeClass(r,t),r}function setAttributes(r,t){Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];n==null||n===!1?r.removeAttribute(e):r.setAttribute(e,n===!0?"":n)})}function getAttributes(r){var t={};if(r&&r.attributes&&r.attributes.length>0)for(var e=r.attributes,n=e.length-1;n>=0;n--){var s=e[n].name,a=e[n].value;typeof r[s]!="boolean"&&",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+",")===-1||(a=a!==null),t[s]=a}return t}function getAttribute(r,t){return r.getAttribute(t)}function setAttribute(r,t,e){r.setAttribute(t,e)}function removeAttribute(r,t){r.removeAttribute(t)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(r){if(r&&r.getBoundingClientRect&&r.parentNode){var t=r.getBoundingClientRect(),e={};return["bottom","height","left","right","top","width"].forEach(function(n){t[n]!==void 0&&(e[n]=t[n])}),e.height||(e.height=parseFloat(computedStyle(r,"height"))),e.width||(e.width=parseFloat(computedStyle(r,"width"))),e}}function findPosition(r){var t=void 0;if(r.getBoundingClientRect&&r.parentNode&&(t=r.getBoundingClientRect()),!t)return{left:0,top:0};var e=document_1.documentElement,n=document_1.body,s=e.clientLeft||n.clientLeft||0,a=window_1.pageXOffset||n.scrollLeft,l=t.left+a-s,u=e.clientTop||n.clientTop||0,c=window_1.pageYOffset||n.scrollTop,h=t.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function getPointerPosition(r,t){var e={},n=findPosition(r),s=r.offsetWidth,a=r.offsetHeight,l=n.top,u=n.left,c=t.pageY,h=t.pageX;return t.changedTouches&&(h=t.changedTouches[0].pageX,c=t.changedTouches[0].pageY),e.y=Math.max(0,Math.min(1,(l-c+a)/a)),e.x=Math.max(0,Math.min(1,(h-u)/s)),e}function isTextNode(r){return isObject$1(r)&&r.nodeType===3}function emptyEl(r){for(;r.firstChild;)r.removeChild(r.firstChild);return r}function normalizeContent(r){return typeof r=="function"&&(r=r()),(Array.isArray(r)?r:[r]).map(function(t){return typeof t=="function"&&(t=t()),isEl(t)||isTextNode(t)?t:typeof t=="string"&&/\S/.test(t)?document_1.createTextNode(t):void 0}).filter(function(t){return t})}function appendContent(r,t){return normalizeContent(t).forEach(function(e){return r.appendChild(e)}),r}function insertContent(r,t){return appendContent(emptyEl(r),t)}function isSingleLeftClick(r){return r.button===void 0&&r.buttons===void 0||r.button===0&&r.buttons===void 0||IE_VERSION===9||r.button===0&&r.buttons===1}function newGUID(){return _guid++}function getData(r){var t=r[elIdAttr];return t||(t=r[elIdAttr]=newGUID()),elData[t]||(elData[t]={}),elData[t]}function hasData(r){var t=r[elIdAttr];return!!t&&!!Object.getOwnPropertyNames(elData[t]).length}function removeData(r){var t=r[elIdAttr];if(t){delete elData[t];try{delete r[elIdAttr]}catch(e){r.removeAttribute?r.removeAttribute(elIdAttr):r[elIdAttr]=null}}}function _cleanUpEvents(r,t){var e=getData(r);e.handlers[t].length===0&&(delete e.handlers[t],r.removeEventListener?r.removeEventListener(t,e.dispatcher,!1):r.detachEvent&&r.detachEvent("on"+t,e.dispatcher)),Object.getOwnPropertyNames(e.handlers).length<=0&&(delete e.handlers,delete e.dispatcher,delete e.disabled),Object.getOwnPropertyNames(e).length===0&&removeData(r)}function _handleMultipleEvents(r,t,e,n){e.forEach(function(s){r(t,s,n)})}function fixEvent(r){function t(){return!0}function e(){return!1}if(!r||!r.isPropagationStopped){var n=r||window_1.event;r={};for(var s in n)s!=="layerX"&&s!=="layerY"&&s!=="keyLocation"&&s!=="webkitMovementX"&&s!=="webkitMovementY"&&(s==="returnValue"&&n.preventDefault||(r[s]=n[s]));if(r.target||(r.target=r.srcElement||document_1),r.relatedTarget||(r.relatedTarget=r.fromElement===r.target?r.toElement:r.fromElement),r.preventDefault=function(){n.preventDefault&&n.preventDefault(),r.returnValue=!1,n.returnValue=!1,r.defaultPrevented=!0},r.defaultPrevented=!1,r.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),r.cancelBubble=!0,n.cancelBubble=!0,r.isPropagationStopped=t},r.isPropagationStopped=e,r.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),r.isImmediatePropagationStopped=t,r.stopPropagation()},r.isImmediatePropagationStopped=e,r.clientX!==null&&r.clientX!==void 0){var a=document_1.documentElement,l=document_1.body;r.pageX=r.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),r.pageY=r.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}r.which=r.charCode||r.keyCode,r.button!==null&&r.button!==void 0&&(r.button=1&r.button?0:4&r.button?1:2&r.button?2:0)}return r}function on(r,t,e){if(Array.isArray(t))return _handleMultipleEvents(on,r,t,e);var n=getData(r);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),e.guid||(e.guid=newGUID()),n.handlers[t].push(e),n.dispatcher||(n.disabled=!1,n.dispatcher=function(a,l){if(!n.disabled){a=fixEvent(a);var u=n.handlers[a.type];if(u)for(var c=u.slice(0),h=0,p=c.length;h-1&&(s={passive:!0}),r.addEventListener(t,n.dispatcher,s)}else r.attachEvent&&r.attachEvent("on"+t,n.dispatcher)}function off(r,t,e){if(hasData(r)){var n=getData(r);if(n.handlers){if(Array.isArray(t))return _handleMultipleEvents(off,r,t,e);var s=function(c,h){n.handlers[h]=[],_cleanUpEvents(c,h)};if(t!==void 0){var a=n.handlers[t];if(a){if(!e)return void s(r,t);if(e.guid)for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},e=t.eventBusKey;if(e){if(!r[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');r.eventBusEl_=r[e]}else r.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(r,EventedMixin),r.on("dispose",function(){r.off(),window_1.setTimeout(function(){r.eventBusEl_=null},0)}),r}function stateful(r,t){return assign(r,StatefulMixin),r.state=assign({},r.state,t),typeof r.handleStateChanged=="function"&&isEvented(r)&&r.on("statechanged",r.handleStateChanged),r}function toTitleCase(r){return typeof r!="string"?r:r.charAt(0).toUpperCase()+r.slice(1)}function titleCaseEquals(r,t){return toTitleCase(r)===toTitleCase(t)}function mergeOptions(){for(var r={},t=arguments.length,e=Array(t),n=0;n3&&arguments[3]!==void 0&&arguments[3],s=document.createElement("script");if(s.onload=s.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof t=="function"&&t(),s.onload=s.onreadystatechange=null,s.parentNode&&!n&&s.parentNode.removeChild(s))},e){for(var a in e)if(e.hasOwnProperty(a)){var l=e[a];l===null?s.removeAttribute(l):s.setAttribute(a,l)}}s.src=r,document.getElementsByTagName("head")[0].appendChild(s)}function serializeParams(r){var t=[],e=function(n,s){s=typeof s=="function"?s():s,s=s===null||s===void 0?"":s,t[t.length]=encodeURIComponent(n)+"="+encodeURIComponent(s)};return function n(s,a){var l=void 0,u=void 0,c=void 0;if(s)if(Array.isArray(a))for(l=0,u=a.length;l/g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/"):""}function isWebrtcUrl(r){return/webrtc:\/\//.test(r)||/\.sdp/.test(r)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function rangeCheck(r,t,e){if(typeof t!="number"||t<0||t>e)throw new Error("Failed to execute '"+r+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+e+").")}function getRange(r,t,e,n){return rangeCheck(r,n,e.length-1),e[n][t]}function createTimeRangesObj(r){return r===void 0||r.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:r.length,start:getRange.bind(null,"start",0,r),end:getRange.bind(null,"end",1,r)}}function createTimeRanges(r,t){return Array.isArray(r)?createTimeRangesObj(r):r===void 0||t===void 0?createTimeRangesObj():createTimeRangesObj([[r,t]])}function bufferedPercent(r,t){var e=0,n=void 0,s=void 0;if(!t)return 0;r&&r.length||(r=createTimeRanges(0,0));for(var a=0;at&&(s=t),e+=s-n;return e/t}function MediaError(r){if(r instanceof MediaError)return r;typeof r=="number"?this.code=r:typeof r=="string"?this.message=r:isObject$1(r)&&(typeof r.code=="number"&&(this.code=r.code),assign(this,r)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(r,t){var e,n=null;try{e=JSON.parse(r,t)}catch(s){n=s}return[n,e]}function isPromise(r){return r!==void 0&&typeof r.then=="function"}function silencePromise(r){isPromise(r)&&r.then(null,function(t){})}function isFunction$1(r){if(!r)return!1;var t=toString$1.call(r);return t==="[object Function]"||typeof r=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(r===window.setTimeout||r===window.alert||r===window.confirm||r===window.prompt)}function extend$1(){for(var r={},t=0;t"u")throw new Error("callback argument missing");var a=!1,l=function(A,k,P){a||(a=!0,r.callback(A,k,P))},u=r.xhr||null;u||(u=r.cors||r.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var c,h,p,y=u.url=r.uri||r.url,b=u.method=r.method||"GET",d=r.body||r.data,f=u.headers=r.headers||{},m=!!r.sync,v=!1,C={body:void 0,headers:{},statusCode:0,method:b,url:y,rawRequest:u};if("json"in r&&r.json!==!1&&(v=!0,f.accept||f.Accept||(f.Accept="application/json"),b!=="GET"&&b!=="HEAD"&&(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),d=JSON.stringify(r.json===!0?d:r.json))),u.onreadystatechange=t,u.onload=s,u.onerror=n,u.onprogress=function(){},u.onabort=function(){h=!0},u.ontimeout=n,u.open(b,y,!m,r.username,r.password),m||(u.withCredentials=!!r.withCredentials),!m&&r.timeout>0&&(p=setTimeout(function(){if(!h){h=!0,u.abort("timeout");var A=new Error("XMLHttpRequest timeout");A.code="ETIMEDOUT",n(A)}},r.timeout)),u.setRequestHeader)for(c in f)f.hasOwnProperty(c)&&u.setRequestHeader(c,f[c]);else if(r.headers&&!isEmpty(r.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in r&&(u.responseType=r.responseType),"beforeSend"in r&&typeof r.beforeSend=="function"&&r.beforeSend(u),u.send(d||null),u}function getXml(r){if(r.responseType==="document")return r.responseXML;var t=r.responseXML&&r.responseXML.documentElement.nodeName==="parsererror";return r.responseType!==""||t?null:r.responseXML}function noop(){}function ParsingError(r,t){this.name="ParsingError",this.code=r.code,this.message=t||r.message}function parseTimeStamp(r){function t(n,s,a,l){return 3600*(0|n)+60*(0|s)+(0|a)+(0|l)/1e3}var e=r.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):e[1]>59?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(r,t,e,n){var s=n?r.split(n):[r];for(var a in s)if(typeof s[a]=="string"){var l=s[a].split(e);if(l.length===2){var u=l[0],c=l[1];t(u,c)}}}function parseCue(r,t,e){function n(){var l=parseTimeStamp(r);if(l===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+a);return r=r.replace(/^[^\sa-zA-Z-]+/,""),l}function s(){r=r.replace(/^\s+/,"")}var a=r;if(s(),t.startTime=n(),s(),r.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+a);r=r.substr(3),s(),t.endTime=n(),s(),function(l,u){var c=new Settings;parseOptions(l,function(h,p){switch(h){case"region":for(var y=e.length-1;y>=0;y--)if(e[y].id===p){c.set(h,e[y].region);break}break;case"vertical":c.alt(h,p,["rl","lr"]);break;case"line":var b=p.split(","),d=b[0];c.integer(h,d),c.percent(h,d)&&c.set("snapToLines",!1),c.alt(h,d,["auto"]),b.length===2&&c.alt("lineAlign",b[1],["start","middle","end"]);break;case"position":b=p.split(","),c.percent(h,b[0]),b.length===2&&c.alt("positionAlign",b[1],["start","middle","end"]);break;case"size":c.percent(h,p);break;case"align":c.alt(h,p,["start","middle","end","left","right"])}},/:/,/\s/),u.region=c.get("region",null),u.vertical=c.get("vertical",""),u.line=c.get("line","auto"),u.lineAlign=c.get("lineAlign","start"),u.snapToLines=c.get("snapToLines",!0),u.size=c.get("size",100),u.align=c.get("align","middle"),u.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},u.align),u.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},u.align)}(r,t)}function parseContent(r,t){function e(p){return ESCAPE[p]}for(var n,s=r.document.createElement("div"),a=s,l=[];(n=function(){if(!t)return null;var p=t.match(/^([^<]*)(<[^>]+>?)?/);return function(y){return t=t.substr(y.length),y}(p[1]?p[1]:p[2])}())!==null;)if(n[0]!=="<")a.appendChild(r.document.createTextNode(function(p){for(;h=p.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)p=p.replace(h[0],e);return p}(n)));else{if(n[1]==="/"){l.length&&l[l.length-1]===n.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var u,c=parseTimeStamp(n.substr(1,n.length-2));if(c){u=r.document.createProcessingInstruction("timestamp",c),a.appendChild(u);continue}var h=n.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||!(u=function(p,y){var b=TAG_NAME[p];if(!b)return null;var d=r.document.createElement(b);d.localName=b;var f=TAG_ANNOTATION[p];return f&&y&&(d[f]=y.trim()),d}(h[1],h[3]))||!function(p,y){return!NEEDS_PARENT[y.localName]||NEEDS_PARENT[y.localName]===p.localName}(a,u))continue;h[2]&&(u.className=h[2].substr(1).replace("."," ")),l.push(h[1]),a.appendChild(u),a=u}return s}function isStrongRTLChar(r){for(var t=0;t=e[0]&&r<=e[1])return!0}return!1}function determineBidi(r){function t(u,c){for(var h=c.childNodes.length-1;h>=0;h--)u.push(c.childNodes[h])}function e(u){if(!u||!u.length)return null;var c=u.pop(),h=c.textContent||c.innerText;if(h){var p=h.match(/^.*(\n|\r)/);return p?(u.length=0,p[0]):h}return c.tagName==="ruby"?e(u):c.childNodes?(t(u,c),e(u)):void 0}var n,s=[],a="";if(!r||!r.childNodes)return"ltr";for(t(s,r);a=e(s);)for(var l=0;l=0&&r.line<=100))return r.line;if(!r.track||!r.track.textTrackList||!r.track.textTrackList.mediaElement)return-1;for(var t=r.track,e=t.textTrackList,n=0,s=0;sy&&(p=p<0?-1:1,p*=Math.ceil(y/h)*h),l<0&&(p+=a.vertical===""?e.height:e.width,u=u.reverse()),s.move(b,p)}else{var d=s.lineHeight/e.height*100;switch(a.lineAlign){case"middle":l-=d/2;break;case"end":l-=d}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(l,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(l,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(l,"%")})}u=["+y","-x","+x","-y"],s=new BoxPosition(t)}var f=function(m,v){for(var C,A=new BoxPosition(m),k=1,P=0;Pw&&(C=new BoxPosition(m),k=w),m=new BoxPosition(A)}return C||A}(s,u);t.move(f.toCSSCompatValues(e))}function WebVTT$1(){}function findDirectionSetting(r){return typeof r=="string"&&!!directionSetting[r.toLowerCase()]&&r.toLowerCase()}function findAlignSetting(r){return typeof r=="string"&&!!alignSetting[r.toLowerCase()]&&r.toLowerCase()}function extend$2(r){for(var t=1;t100)throw new Error("Position must be between 0 and 100.");v=P,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",extend$2({},a,{get:function(){return C},set:function(P){var w=findAlignSetting(P);if(!w)throw new SyntaxError("An invalid or illegal string was specified.");C=w,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",extend$2({},a,{get:function(){return A},set:function(P){if(P<0||P>100)throw new Error("Size must be between 0 and 100.");A=P,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",extend$2({},a,{get:function(){return k},set:function(P){var w=findAlignSetting(P);if(!w)throw new SyntaxError("An invalid or illegal string was specified.");k=w,this.hasBeenReset=!0}})),n.displayState=void 0,s)return n}function findScrollSetting(r){return typeof r=="string"&&!!scrollSetting[r.toLowerCase()]&&r.toLowerCase()}function isValidPercentValue(r){return typeof r=="number"&&r>=0&&r<=100}function VTTRegion(){var r=100,t=3,e=0,n=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return r},set:function(u){if(!isValidPercentValue(u))throw new Error("Width must be between 0 and 100.");r=u}},lines:{enumerable:!0,get:function(){return t},set:function(u){if(typeof u!="number")throw new TypeError("Lines must be set to a number.");t=u}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorX must be between 0 and 100.");n=u}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorY must be between 0 and 100.");e=u}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorY must be between 0 and 100.");a=u}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorX must be between 0 and 100.");s=u}},scroll:{enumerable:!0,get:function(){return l},set:function(u){var c=findScrollSetting(u);if(c===!1)throw new SyntaxError("An invalid or illegal string was specified.");l=c}}})}function createTrackHelper(r,t,e,n){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=r.textTracks();s.kind=t,e&&(s.label=e),n&&(s.language=n),s.tech=r;var l=new ALL.text.TrackClass(s);return a.addTrack(l),l}function use(r,t){middlewares[r]=middlewares[r]||[],middlewares[r].push(t)}function setSource(r,t,e){r.setTimeout(function(){return setSourceHelper(t,middlewares[t.type],e,r)},1)}function setTech(r,t){r.forEach(function(e){return e.setTech&&e.setTech(t)})}function get$1(r,t,e){return r.reduceRight(middlewareIterator(e),t[e]())}function set$1(r,t,e,n){return t[e](r.reduce(middlewareIterator(e),n))}function middlewareIterator(r){return function(t,e){return e[r]?e[r](t):t}}function setSourceHelper(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=arguments[2],n=arguments[3],s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],l=t[0],u=t.slice(1);if(typeof l=="string")setSourceHelper(r,middlewares[l],e,n,s,a);else if(l){var c=l(n);c.setSource(assign({},r),function(h,p){if(h)return setSourceHelper(r,u,e,n,s,a);s.push(c),setSourceHelper(p,r.type===p.type?u:middlewares[p.type],e,n,s,a)})}else u.length?setSourceHelper(r,u,e,n,s,a):a?e(r,s):setSourceHelper(r,middlewares["*"],e,n,s,!0)}function constructColor(r,t){return"rgba("+parseInt(r[1]+r[1],16)+","+parseInt(r[2]+r[2],16)+","+parseInt(r[3]+r[3],16)+","+t+")"}function tryUpdateStyle(r,t,e){try{r.style[t]=e}catch(n){return}}function formatTime(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;r=r<0?0:r;var e=Math.floor(r%60),n=Math.floor(r/60%60),s=Math.floor(r/3600),a=Math.floor(t/60%60),l=Math.floor(t/3600);return(isNaN(r)||r===1/0)&&(s=n=e="-"),s=s>0||l>0?s+":":"",n=((s||a>=10)&&n<10?"0"+n:n)+":",e=e<10?"0"+e:e,s+n+e}function parseOptionValue(r,t){if(t&&(r=t(r)),r&&r!=="none")return r}function getSelectedOptionValue(r,t){return parseOptionValue(r.options[r.options.selectedIndex].value,t)}function setSelectedOption(r,t,e){if(t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fill",e=r,n="draw-"+t;return[` ======== import{U as commonjsGlobal,a8 as getDefaultExportFromCjs,d as defineComponent,g as createVNode,a9 as Loading,h as createTextVNode,O as reactive,i as ref,o as onMounted,w as watch,P as Popup,F as Fragment,I as Icon,s as state,L as browser,X as isVNode,a4 as showLoadingToast,M as postMessage,aa as closeToast}from"./index-dbd58bee.js";import{c as checkFile}from"./toolsValidate-2f258ec3.js";import{b as Swipe,c as SwipeItem}from"./index-96c8c221.js";import{I as Image$1}from"./index-56f13818.js";const overlayPreview="_overlayPreview_wx5z7_1",imagePreview="_imagePreview_wx5z7_4",videSection="_videSection_wx5z7_9",styles$1={overlayPreview,imagePreview,videSection},iconPreviewClose="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAOVBMVEUAAAAAAADv7+80NDQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADj4+PZ2dkAAAAAAABkZGT////w1mHvAAAAEnRSTlNMANxYRiQFOj8xKhkMzLxCHWlXlmF+AAABS0lEQVRYw6WX2ZLCIBBFzyiLBLKY///YcSynUEk6yz2PVu4pMKTp5meFkH2KowM3xuRzWHtuWVC6G1/curJXEPwr3Th8MAQ17ljF+bAlmBwmbjIFJbJJLOuC7NiBy2uCjp10y4LEbtKSIHKA2AoSBsYaMPZv0n0KMofJ74LiOIwrb4LICWIVTJxi+hcExylceAk8J/FPgbmA7SUgLAD8U9DWn3s/XPniOvT3tkb9CQoN/Txfrl/5yzz3NJSHoKNhmKuh5udh6UBTd/D5+MNg/FD3QADLYOchkLENdp6MxzbYeTwJ22DnSURsg50nMmIb7DwjDttg52vcMFh5kAXyFuQ/UX6N8kGSj7L8Mcmfs1pQ5JImF1W1rMsXi3y1qZerfL2rDYba4shNltrmqY2m2urKzbbe7usDhz7y6EOXPvbpg6c++urDtzz+/wLKehSFlfKj2AAAAABJRU5ErkJggg==",iconPreviewDownload="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAaVBMVEUAAAAAAAB1dXUAAAAAAAAAAADV1dXV1dUAAAAAAAAAAAAAAAAAAAD7+/t6enqqqqoAAAAAAAAAAAAAAAD9/f37+/v09PSLi4tnZ2cAAADR0dHNzc3y8vLl5eW/v7+cnJxwcHA+Pj7///+d7TGsAAAAInRSTlNMAG9GJAW4tT87MSoZ9HOOQh0PCvn253tqNrOu482ghm1bnhpUjAAAAcZJREFUWMOl19mSgyAQheGTADMgTKLG7JON93/IIY6Waxul/8pFKhW+Ki4UGisi5WRiUgGI1CTSKep/40BuNXppm88FlNQYTUs1A1BSgEzUBA1kApOJbBLYGXzM7GjACcxIOAqwmJkdBxLMLhkDzljQeQgkWFTSBywWZruAw+JcG9iJ5YDYtQADotPhcAKRaYAMVBfvr6DKakDRG/jy/pvehKoAiTgA8h9QIhYQqgQkYgHIEtDxgH4DOeIB5AGwHMAGQHMAvYICB4CC4wEOkgdIUC+Sx7MNPB/UiwWm//xdj9VTtG2ArfcXhI7X/rNpkKLbwRcvADcfhBoI6/0NwKvwB3RLIdAt/HcNYP3zFkqgXP9T/hi+oJsAxgFsSuENlOs3GAdAALXwGz7VegIgtlALoXo9tYWUAhohrCeBFIYGglCtpwGDhAaCsPd+v8EEkEBOATju90dMARKOBppowEHxAIWV5gC6fKUxABuAfABs10TbAZAPX+v+Q70dDA+WYnp9gXZy5Gi7TwrFfeRoW0lEJpvjPSqhmgtGVFn7ihORYV+yuNc87kWTe9VlX7b5133+wMEfefhDF3/s4w+e/NGXP3yzx/8/aHIywATB/+4AAAAASUVORK5CYII=",video="_video_jvegi_1",loadingVideo="_loadingVideo_jvegi_56",playOver="_playOver_jvegi_65",tips="_tips_jvegi_73",btn="_btn_jvegi_77",replay="_replay_jvegi_84",freeTxt="_freeTxt_jvegi_87",freeRate="_freeRate_jvegi_93",styles={"video-container":"_video-container_jvegi_1",video,loadingVideo,playOver,tips,btn,replay,freeTxt,freeRate};var tcplayer_v4_8_0_minExports={},tcplayer_v4_8_0_min={get exports(){return tcplayer_v4_8_0_minExports},set exports(r){tcplayer_v4_8_0_minExports=r}};(function(module,exports){(function(r,t){module.exports=t()})(commonjsGlobal,function(){function unwrapExports(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function createCommonjsModule(r,t){return t={exports:{}},r(t,t.exports),t.exports}function each(r,t){keys(r).forEach(function(e){return t(r[e],e)})}function reduce(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return keys(r).reduce(function(n,s){return t(n,r[s],s)},e)}function assign(r){for(var t=arguments.length,e=Array(t>1?t-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:"div",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments[3],s=document_1.createElement(r);return Object.getOwnPropertyNames(t).forEach(function(a){var l=t[a];a.indexOf("aria-")!==-1||a==="role"||a==="type"?(log$2.warn(tsml(_templateObject,a,l)),s.setAttribute(a,l)):a==="textContent"?textContent(s,l):s[a]=l}),Object.getOwnPropertyNames(e).forEach(function(a){s.setAttribute(a,e[a])}),n&&appendContent(s,n),s}function textContent(r,t){return typeof r.textContent>"u"?r.innerText=t:r.textContent=t,r}function prependTo(r,t){t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}function hasClass(r,t){return throwIfWhitespace(t),r.classList?r.classList.contains(t):classRegExp(t).test(r.className)}function addClass(r,t){return r.classList?r.classList.add(t):hasClass(r,t)||(r.className=(r.className+" "+t).trim()),r}function removeClass(r,t){return r.classList?r.classList.remove(t):(throwIfWhitespace(t),r.className=r.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),r}function toggleClass(r,t,e){var n=hasClass(r,t);if(typeof e=="function"&&(e=e(r,t)),typeof e!="boolean"&&(e=!n),e!==n)return e?addClass(r,t):removeClass(r,t),r}function setAttributes(r,t){Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];n==null||n===!1?r.removeAttribute(e):r.setAttribute(e,n===!0?"":n)})}function getAttributes(r){var t={};if(r&&r.attributes&&r.attributes.length>0)for(var e=r.attributes,n=e.length-1;n>=0;n--){var s=e[n].name,a=e[n].value;typeof r[s]!="boolean"&&",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+",")===-1||(a=a!==null),t[s]=a}return t}function getAttribute(r,t){return r.getAttribute(t)}function setAttribute(r,t,e){r.setAttribute(t,e)}function removeAttribute(r,t){r.removeAttribute(t)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(r){if(r&&r.getBoundingClientRect&&r.parentNode){var t=r.getBoundingClientRect(),e={};return["bottom","height","left","right","top","width"].forEach(function(n){t[n]!==void 0&&(e[n]=t[n])}),e.height||(e.height=parseFloat(computedStyle(r,"height"))),e.width||(e.width=parseFloat(computedStyle(r,"width"))),e}}function findPosition(r){var t=void 0;if(r.getBoundingClientRect&&r.parentNode&&(t=r.getBoundingClientRect()),!t)return{left:0,top:0};var e=document_1.documentElement,n=document_1.body,s=e.clientLeft||n.clientLeft||0,a=window_1.pageXOffset||n.scrollLeft,l=t.left+a-s,u=e.clientTop||n.clientTop||0,c=window_1.pageYOffset||n.scrollTop,h=t.top+c-u;return{left:Math.round(l),top:Math.round(h)}}function getPointerPosition(r,t){var e={},n=findPosition(r),s=r.offsetWidth,a=r.offsetHeight,l=n.top,u=n.left,c=t.pageY,h=t.pageX;return t.changedTouches&&(h=t.changedTouches[0].pageX,c=t.changedTouches[0].pageY),e.y=Math.max(0,Math.min(1,(l-c+a)/a)),e.x=Math.max(0,Math.min(1,(h-u)/s)),e}function isTextNode(r){return isObject$1(r)&&r.nodeType===3}function emptyEl(r){for(;r.firstChild;)r.removeChild(r.firstChild);return r}function normalizeContent(r){return typeof r=="function"&&(r=r()),(Array.isArray(r)?r:[r]).map(function(t){return typeof t=="function"&&(t=t()),isEl(t)||isTextNode(t)?t:typeof t=="string"&&/\S/.test(t)?document_1.createTextNode(t):void 0}).filter(function(t){return t})}function appendContent(r,t){return normalizeContent(t).forEach(function(e){return r.appendChild(e)}),r}function insertContent(r,t){return appendContent(emptyEl(r),t)}function isSingleLeftClick(r){return r.button===void 0&&r.buttons===void 0||r.button===0&&r.buttons===void 0||IE_VERSION===9||r.button===0&&r.buttons===1}function newGUID(){return _guid++}function getData(r){var t=r[elIdAttr];return t||(t=r[elIdAttr]=newGUID()),elData[t]||(elData[t]={}),elData[t]}function hasData(r){var t=r[elIdAttr];return!!t&&!!Object.getOwnPropertyNames(elData[t]).length}function removeData(r){var t=r[elIdAttr];if(t){delete elData[t];try{delete r[elIdAttr]}catch(e){r.removeAttribute?r.removeAttribute(elIdAttr):r[elIdAttr]=null}}}function _cleanUpEvents(r,t){var e=getData(r);e.handlers[t].length===0&&(delete e.handlers[t],r.removeEventListener?r.removeEventListener(t,e.dispatcher,!1):r.detachEvent&&r.detachEvent("on"+t,e.dispatcher)),Object.getOwnPropertyNames(e.handlers).length<=0&&(delete e.handlers,delete e.dispatcher,delete e.disabled),Object.getOwnPropertyNames(e).length===0&&removeData(r)}function _handleMultipleEvents(r,t,e,n){e.forEach(function(s){r(t,s,n)})}function fixEvent(r){function t(){return!0}function e(){return!1}if(!r||!r.isPropagationStopped){var n=r||window_1.event;r={};for(var s in n)s!=="layerX"&&s!=="layerY"&&s!=="keyLocation"&&s!=="webkitMovementX"&&s!=="webkitMovementY"&&(s==="returnValue"&&n.preventDefault||(r[s]=n[s]));if(r.target||(r.target=r.srcElement||document_1),r.relatedTarget||(r.relatedTarget=r.fromElement===r.target?r.toElement:r.fromElement),r.preventDefault=function(){n.preventDefault&&n.preventDefault(),r.returnValue=!1,n.returnValue=!1,r.defaultPrevented=!0},r.defaultPrevented=!1,r.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),r.cancelBubble=!0,n.cancelBubble=!0,r.isPropagationStopped=t},r.isPropagationStopped=e,r.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),r.isImmediatePropagationStopped=t,r.stopPropagation()},r.isImmediatePropagationStopped=e,r.clientX!==null&&r.clientX!==void 0){var a=document_1.documentElement,l=document_1.body;r.pageX=r.clientX+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),r.pageY=r.clientY+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}r.which=r.charCode||r.keyCode,r.button!==null&&r.button!==void 0&&(r.button=1&r.button?0:4&r.button?1:2&r.button?2:0)}return r}function on(r,t,e){if(Array.isArray(t))return _handleMultipleEvents(on,r,t,e);var n=getData(r);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),e.guid||(e.guid=newGUID()),n.handlers[t].push(e),n.dispatcher||(n.disabled=!1,n.dispatcher=function(a,l){if(!n.disabled){a=fixEvent(a);var u=n.handlers[a.type];if(u)for(var c=u.slice(0),h=0,p=c.length;h-1&&(s={passive:!0}),r.addEventListener(t,n.dispatcher,s)}else r.attachEvent&&r.attachEvent("on"+t,n.dispatcher)}function off(r,t,e){if(hasData(r)){var n=getData(r);if(n.handlers){if(Array.isArray(t))return _handleMultipleEvents(off,r,t,e);var s=function(c,h){n.handlers[h]=[],_cleanUpEvents(c,h)};if(t!==void 0){var a=n.handlers[t];if(a){if(!e)return void s(r,t);if(e.guid)for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:{},e=t.eventBusKey;if(e){if(!r[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');r.eventBusEl_=r[e]}else r.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(r,EventedMixin),r.on("dispose",function(){r.off(),window_1.setTimeout(function(){r.eventBusEl_=null},0)}),r}function stateful(r,t){return assign(r,StatefulMixin),r.state=assign({},r.state,t),typeof r.handleStateChanged=="function"&&isEvented(r)&&r.on("statechanged",r.handleStateChanged),r}function toTitleCase(r){return typeof r!="string"?r:r.charAt(0).toUpperCase()+r.slice(1)}function titleCaseEquals(r,t){return toTitleCase(r)===toTitleCase(t)}function mergeOptions(){for(var r={},t=arguments.length,e=Array(t),n=0;n3&&arguments[3]!==void 0&&arguments[3],s=document.createElement("script");if(s.onload=s.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof t=="function"&&t(),s.onload=s.onreadystatechange=null,s.parentNode&&!n&&s.parentNode.removeChild(s))},e){for(var a in e)if(e.hasOwnProperty(a)){var l=e[a];l===null?s.removeAttribute(l):s.setAttribute(a,l)}}s.src=r,document.getElementsByTagName("head")[0].appendChild(s)}function serializeParams(r){var t=[],e=function(n,s){s=typeof s=="function"?s():s,s=s===null||s===void 0?"":s,t[t.length]=encodeURIComponent(n)+"="+encodeURIComponent(s)};return function n(s,a){var l=void 0,u=void 0,c=void 0;if(s)if(Array.isArray(a))for(l=0,u=a.length;l/g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/"):""}function isWebrtcUrl(r){return/webrtc:\/\//.test(r)||/\.sdp/.test(r)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function rangeCheck(r,t,e){if(typeof t!="number"||t<0||t>e)throw new Error("Failed to execute '"+r+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+e+").")}function getRange(r,t,e,n){return rangeCheck(r,n,e.length-1),e[n][t]}function createTimeRangesObj(r){return r===void 0||r.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:r.length,start:getRange.bind(null,"start",0,r),end:getRange.bind(null,"end",1,r)}}function createTimeRanges(r,t){return Array.isArray(r)?createTimeRangesObj(r):r===void 0||t===void 0?createTimeRangesObj():createTimeRangesObj([[r,t]])}function bufferedPercent(r,t){var e=0,n=void 0,s=void 0;if(!t)return 0;r&&r.length||(r=createTimeRanges(0,0));for(var a=0;at&&(s=t),e+=s-n;return e/t}function MediaError(r){if(r instanceof MediaError)return r;typeof r=="number"?this.code=r:typeof r=="string"?this.message=r:isObject$1(r)&&(typeof r.code=="number"&&(this.code=r.code),assign(this,r)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(r,t){var e,n=null;try{e=JSON.parse(r,t)}catch(s){n=s}return[n,e]}function isPromise(r){return r!==void 0&&typeof r.then=="function"}function silencePromise(r){isPromise(r)&&r.then(null,function(t){})}function isFunction$1(r){if(!r)return!1;var t=toString$1.call(r);return t==="[object Function]"||typeof r=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(r===window.setTimeout||r===window.alert||r===window.confirm||r===window.prompt)}function extend$1(){for(var r={},t=0;t"u")throw new Error("callback argument missing");var a=!1,l=function(A,k,P){a||(a=!0,r.callback(A,k,P))},u=r.xhr||null;u||(u=r.cors||r.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var c,h,p,y=u.url=r.uri||r.url,b=u.method=r.method||"GET",d=r.body||r.data,f=u.headers=r.headers||{},m=!!r.sync,v=!1,C={body:void 0,headers:{},statusCode:0,method:b,url:y,rawRequest:u};if("json"in r&&r.json!==!1&&(v=!0,f.accept||f.Accept||(f.Accept="application/json"),b!=="GET"&&b!=="HEAD"&&(f["content-type"]||f["Content-Type"]||(f["Content-Type"]="application/json"),d=JSON.stringify(r.json===!0?d:r.json))),u.onreadystatechange=t,u.onload=s,u.onerror=n,u.onprogress=function(){},u.onabort=function(){h=!0},u.ontimeout=n,u.open(b,y,!m,r.username,r.password),m||(u.withCredentials=!!r.withCredentials),!m&&r.timeout>0&&(p=setTimeout(function(){if(!h){h=!0,u.abort("timeout");var A=new Error("XMLHttpRequest timeout");A.code="ETIMEDOUT",n(A)}},r.timeout)),u.setRequestHeader)for(c in f)f.hasOwnProperty(c)&&u.setRequestHeader(c,f[c]);else if(r.headers&&!isEmpty(r.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in r&&(u.responseType=r.responseType),"beforeSend"in r&&typeof r.beforeSend=="function"&&r.beforeSend(u),u.send(d||null),u}function getXml(r){if(r.responseType==="document")return r.responseXML;var t=r.responseXML&&r.responseXML.documentElement.nodeName==="parsererror";return r.responseType!==""||t?null:r.responseXML}function noop(){}function ParsingError(r,t){this.name="ParsingError",this.code=r.code,this.message=t||r.message}function parseTimeStamp(r){function t(n,s,a,l){return 3600*(0|n)+60*(0|s)+(0|a)+(0|l)/1e3}var e=r.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):e[1]>59?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(r,t,e,n){var s=n?r.split(n):[r];for(var a in s)if(typeof s[a]=="string"){var l=s[a].split(e);if(l.length===2){var u=l[0],c=l[1];t(u,c)}}}function parseCue(r,t,e){function n(){var l=parseTimeStamp(r);if(l===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+a);return r=r.replace(/^[^\sa-zA-Z-]+/,""),l}function s(){r=r.replace(/^\s+/,"")}var a=r;if(s(),t.startTime=n(),s(),r.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+a);r=r.substr(3),s(),t.endTime=n(),s(),function(l,u){var c=new Settings;parseOptions(l,function(h,p){switch(h){case"region":for(var y=e.length-1;y>=0;y--)if(e[y].id===p){c.set(h,e[y].region);break}break;case"vertical":c.alt(h,p,["rl","lr"]);break;case"line":var b=p.split(","),d=b[0];c.integer(h,d),c.percent(h,d)&&c.set("snapToLines",!1),c.alt(h,d,["auto"]),b.length===2&&c.alt("lineAlign",b[1],["start","middle","end"]);break;case"position":b=p.split(","),c.percent(h,b[0]),b.length===2&&c.alt("positionAlign",b[1],["start","middle","end"]);break;case"size":c.percent(h,p);break;case"align":c.alt(h,p,["start","middle","end","left","right"])}},/:/,/\s/),u.region=c.get("region",null),u.vertical=c.get("vertical",""),u.line=c.get("line","auto"),u.lineAlign=c.get("lineAlign","start"),u.snapToLines=c.get("snapToLines",!0),u.size=c.get("size",100),u.align=c.get("align","middle"),u.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},u.align),u.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},u.align)}(r,t)}function parseContent(r,t){function e(p){return ESCAPE[p]}for(var n,s=r.document.createElement("div"),a=s,l=[];(n=function(){if(!t)return null;var p=t.match(/^([^<]*)(<[^>]+>?)?/);return function(y){return t=t.substr(y.length),y}(p[1]?p[1]:p[2])}())!==null;)if(n[0]!=="<")a.appendChild(r.document.createTextNode(function(p){for(;h=p.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)p=p.replace(h[0],e);return p}(n)));else{if(n[1]==="/"){l.length&&l[l.length-1]===n.substr(2).replace(">","")&&(l.pop(),a=a.parentNode);continue}var u,c=parseTimeStamp(n.substr(1,n.length-2));if(c){u=r.document.createProcessingInstruction("timestamp",c),a.appendChild(u);continue}var h=n.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||!(u=function(p,y){var b=TAG_NAME[p];if(!b)return null;var d=r.document.createElement(b);d.localName=b;var f=TAG_ANNOTATION[p];return f&&y&&(d[f]=y.trim()),d}(h[1],h[3]))||!function(p,y){return!NEEDS_PARENT[y.localName]||NEEDS_PARENT[y.localName]===p.localName}(a,u))continue;h[2]&&(u.className=h[2].substr(1).replace("."," ")),l.push(h[1]),a.appendChild(u),a=u}return s}function isStrongRTLChar(r){for(var t=0;t=e[0]&&r<=e[1])return!0}return!1}function determineBidi(r){function t(u,c){for(var h=c.childNodes.length-1;h>=0;h--)u.push(c.childNodes[h])}function e(u){if(!u||!u.length)return null;var c=u.pop(),h=c.textContent||c.innerText;if(h){var p=h.match(/^.*(\n|\r)/);return p?(u.length=0,p[0]):h}return c.tagName==="ruby"?e(u):c.childNodes?(t(u,c),e(u)):void 0}var n,s=[],a="";if(!r||!r.childNodes)return"ltr";for(t(s,r);a=e(s);)for(var l=0;l=0&&r.line<=100))return r.line;if(!r.track||!r.track.textTrackList||!r.track.textTrackList.mediaElement)return-1;for(var t=r.track,e=t.textTrackList,n=0,s=0;sy&&(p=p<0?-1:1,p*=Math.ceil(y/h)*h),l<0&&(p+=a.vertical===""?e.height:e.width,u=u.reverse()),s.move(b,p)}else{var d=s.lineHeight/e.height*100;switch(a.lineAlign){case"middle":l-=d/2;break;case"end":l-=d}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(l,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(l,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(l,"%")})}u=["+y","-x","+x","-y"],s=new BoxPosition(t)}var f=function(m,v){for(var C,A=new BoxPosition(m),k=1,P=0;Pw&&(C=new BoxPosition(m),k=w),m=new BoxPosition(A)}return C||A}(s,u);t.move(f.toCSSCompatValues(e))}function WebVTT$1(){}function findDirectionSetting(r){return typeof r=="string"&&!!directionSetting[r.toLowerCase()]&&r.toLowerCase()}function findAlignSetting(r){return typeof r=="string"&&!!alignSetting[r.toLowerCase()]&&r.toLowerCase()}function extend$2(r){for(var t=1;t100)throw new Error("Position must be between 0 and 100.");v=P,this.hasBeenReset=!0}})),Object.defineProperty(n,"positionAlign",extend$2({},a,{get:function(){return C},set:function(P){var w=findAlignSetting(P);if(!w)throw new SyntaxError("An invalid or illegal string was specified.");C=w,this.hasBeenReset=!0}})),Object.defineProperty(n,"size",extend$2({},a,{get:function(){return A},set:function(P){if(P<0||P>100)throw new Error("Size must be between 0 and 100.");A=P,this.hasBeenReset=!0}})),Object.defineProperty(n,"align",extend$2({},a,{get:function(){return k},set:function(P){var w=findAlignSetting(P);if(!w)throw new SyntaxError("An invalid or illegal string was specified.");k=w,this.hasBeenReset=!0}})),n.displayState=void 0,s)return n}function findScrollSetting(r){return typeof r=="string"&&!!scrollSetting[r.toLowerCase()]&&r.toLowerCase()}function isValidPercentValue(r){return typeof r=="number"&&r>=0&&r<=100}function VTTRegion(){var r=100,t=3,e=0,n=100,s=0,a=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return r},set:function(u){if(!isValidPercentValue(u))throw new Error("Width must be between 0 and 100.");r=u}},lines:{enumerable:!0,get:function(){return t},set:function(u){if(typeof u!="number")throw new TypeError("Lines must be set to a number.");t=u}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorX must be between 0 and 100.");n=u}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(u){if(!isValidPercentValue(u))throw new Error("RegionAnchorY must be between 0 and 100.");e=u}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorY must be between 0 and 100.");a=u}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(u){if(!isValidPercentValue(u))throw new Error("ViewportAnchorX must be between 0 and 100.");s=u}},scroll:{enumerable:!0,get:function(){return l},set:function(u){var c=findScrollSetting(u);if(c===!1)throw new SyntaxError("An invalid or illegal string was specified.");l=c}}})}function createTrackHelper(r,t,e,n){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=r.textTracks();s.kind=t,e&&(s.label=e),n&&(s.language=n),s.tech=r;var l=new ALL.text.TrackClass(s);return a.addTrack(l),l}function use(r,t){middlewares[r]=middlewares[r]||[],middlewares[r].push(t)}function setSource(r,t,e){r.setTimeout(function(){return setSourceHelper(t,middlewares[t.type],e,r)},1)}function setTech(r,t){r.forEach(function(e){return e.setTech&&e.setTech(t)})}function get$1(r,t,e){return r.reduceRight(middlewareIterator(e),t[e]())}function set$1(r,t,e,n){return t[e](r.reduce(middlewareIterator(e),n))}function middlewareIterator(r){return function(t,e){return e[r]?e[r](t):t}}function setSourceHelper(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=arguments[2],n=arguments[3],s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],l=t[0],u=t.slice(1);if(typeof l=="string")setSourceHelper(r,middlewares[l],e,n,s,a);else if(l){var c=l(n);c.setSource(assign({},r),function(h,p){if(h)return setSourceHelper(r,u,e,n,s,a);s.push(c),setSourceHelper(p,r.type===p.type?u:middlewares[p.type],e,n,s,a)})}else u.length?setSourceHelper(r,u,e,n,s,a):a?e(r,s):setSourceHelper(r,middlewares["*"],e,n,s,!0)}function constructColor(r,t){return"rgba("+parseInt(r[1]+r[1],16)+","+parseInt(r[2]+r[2],16)+","+parseInt(r[3]+r[3],16)+","+t+")"}function tryUpdateStyle(r,t,e){try{r.style[t]=e}catch(n){return}}function formatTime(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r;r=r<0?0:r;var e=Math.floor(r%60),n=Math.floor(r/60%60),s=Math.floor(r/3600),a=Math.floor(t/60%60),l=Math.floor(t/3600);return(isNaN(r)||r===1/0)&&(s=n=e="-"),s=s>0||l>0?s+":":"",n=((s||a>=10)&&n<10?"0"+n:n)+":",e=e<10?"0"+e:e,s+n+e}function parseOptionValue(r,t){if(t&&(r=t(r)),r&&r!=="none")return r}function getSelectedOptionValue(r,t){return parseOptionValue(r.options[r.options.selectedIndex].value,t)}function setSelectedOption(r,t,e){if(t){for(var n=0;n0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fill",e=r,n="draw-"+t;return[` >>>>>>>> 87d4d1b1 (更新):dist/assets/index-a7dfe424.js `,` `,` `][e]}function isObject$2(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}function trimmedEndIndex(r){for(var t=r.length;t--&&reWhitespace.test(r.charAt(t)););return t}function baseTrim(r){return r&&r.slice(0,_trimmedEndIndex(r)+1).replace(reTrimStart,"")}function getRawTag(r){var t=hasOwnProperty$2.call(r,symToStringTag$1),e=r[symToStringTag$1];try{r[symToStringTag$1]=void 0;var n=!0}catch(a){}var s=nativeObjectToString.call(r);return n&&(t?r[symToStringTag$1]=e:delete r[symToStringTag$1]),s}function objectToString(r){return nativeObjectToString$1.call(r)}function baseGetTag(r){return r==null?r===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(r)?_getRawTag(r):_objectToString(r)}function isObjectLike(r){return r!=null&&typeof r=="object"}function isSymbol(r){return typeof r=="symbol"||isObjectLike_1(r)&&_baseGetTag(r)==symbolTag}function toNumber(r){if(typeof r=="number")return r;if(isSymbol_1(r))return NAN;if(isObject_1(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=isObject_1(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=_baseTrim(r);var e=reIsBinary.test(r);return e||reIsOctal.test(r)?freeParseInt(r.slice(2),e?2:8):reIsBadHex.test(r)?NAN:+r}function debounce(r,t,e){function n(g){var _=b,S=d;return b=d=void 0,A=g,m=r.apply(S,_)}function s(g){return A=g,v=setTimeout(u,t),k?n(g):m}function a(g){var _=g-C,S=g-A,E=t-_;return P?nativeMin(E,f-S):E}function l(g){var _=g-C,S=g-A;return C===void 0||_>=t||_<0||P&&S>=f}function u(){var g=now_1();if(l(g))return c(g);v=setTimeout(u,a(g))}function c(g){return v=void 0,w&&b?n(g):(b=d=void 0,m)}function h(){v!==void 0&&clearTimeout(v),A=0,b=C=d=v=void 0}function p(){return v===void 0?m:c(now_1())}function y(){var g=now_1(),_=l(g);if(b=arguments,d=this,C=g,_){if(v===void 0)return s(C);if(P)return clearTimeout(v),v=setTimeout(u,t),n(C)}return v===void 0&&(v=setTimeout(u,t)),m}var b,d,f,m,v,C,A=0,k=!1,P=!1,w=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return t=toNumber_1(t)||0,isObject_1(e)&&(k=!!e.leading,P="maxWait"in e,f=P?nativeMax(toNumber_1(e.maxWait)||0,t):f,w="trailing"in e?!!e.trailing:w),y.cancel=h,y.flush=p,y}function throttle$1(r,t,e){var n=!0,s=!0;if(typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject_1(e)&&(n="leading"in e?!!e.leading:n,s="trailing"in e?!!e.trailing:s),debounce_1(r,t,{leading:n,maxWait:t,trailing:s})}function mountFlvProvider(r){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||r)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(FlvSourceHandler,0)}catch(e){}}function mountWebRTCProvider(r){if(!videojs.browser.isWebRTCSupported())return!1;try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(sourceHandler,0)}catch(e){}}function FlashRtmpDecorator(r){return r.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},r.streamFromParts=function(t,e){return t+"&"+e},r.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),s=void 0;return n!==-1?s=n+1:(n=s=t.lastIndexOf("/")+1)===0&&(n=s=t.length),e.connection=t.substring(0,n),e.stream=t.substring(s,t.length),e},r.isStreamingType=function(t){return t in r.streamingFormats},r.RTMP_RE=/^rtmp[set]?:\/\//i,r.isStreamingSrc=function(t){return r.RTMP_RE.test(t)},r.rtmpSourceHandler={},r.rtmpSourceHandler.canPlayType=function(t){return r.isStreamingType(t)?"maybe":""},r.rtmpSourceHandler.canHandleSource=function(t,e){var n=r.rtmpSourceHandler.canPlayType(t.type);return n||(r.isStreamingSrc(t.src)?"maybe":"")},r.rtmpSourceHandler.handleSource=function(t,e,n){var s=r.streamToParts(t.src);e.setRtmpConnection(s.connection),e.setRtmpStream(s.stream)},r.registerSourceHandler(r.rtmpSourceHandler),r}function _createSetter(r){var t=r.charAt(0).toUpperCase()+r.slice(1);_api["set"+t]=function(e){return this.el_.vjs_setProperty(r,e)}}function _createGetter(r){_api[r]=function(){return this.el_.vjs_getProperty(r)}}function TCPlayer(r,t,e){var n=void 0,s=new Date().getTime(),a=videojs.dom;if(typeof r=="string")n=document.querySelector("#"+r);else{if(!r||!r.nodeName)throw new TypeError("The ID or element supplied is not valid.");n=r}if(n.nodeName.toLowerCase()!="video"&&n.nodeName.toLowerCase()!="audio")throw new TypeError("The element type must be ',className:this.buildCSSClass(),tabIndex:0},n),e==="button"&&log$2.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),s=assign({role:"button","aria-live":"polite"},s),this.tabIndex_=n.tabIndex;var a=r.prototype.createEl.call(this,e,n,s);return this.createControlTextEl(a),a},t.prototype.dispose=function(){this.controlTextEl_=null,r.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=createEl("span",{className:"vjs-control-text"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.el();if(e===void 0)return this.controlText_||"Need Text";var s=this.localize(e);this.controlText_=e,textContent(this.controlTextEl_,s),this.nonIconControl||n.setAttribute("title",s)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+r.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){e.which===32||e.which===13?(e.preventDefault(),this.trigger("click")):r.prototype.handleKeyPress&&r.prototype.handleKeyPress.call(this,e)},t.prototype.handleBlur=function(e){off(document_1,"keydown",bind(this,this.handleKeyPress))},t}(Component);Component.registerComponent("ClickableComponent",ClickableComponent);var PosterImage=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.update(),e.on("posterchange",bind(s,s.update)),s}return inherits(t,r),t.prototype.dispose=function(){this.player().off("posterchange",this.update),r.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=createEl("div",{className:"vjs-poster",tabIndex:-1});if(!BACKGROUND_SIZE_SUPPORTED){this.fallbackImg_=createEl("img");var n=this.player().height()||parseInt(this.player().el().style.height);this.player().width()||parseInt(this.player().el().style.width),this.fallbackImg_.onload=function(){this.width,this.height>n&&(this.style.maxHeight=n+"px",this.style.width="auto")};var s=createEl("div"),a=createEl("span");a.appendChild(this.fallbackImg_),s.appendChild(a),e.appendChild(s)}return e},t.prototype.update=function(e){var n=this.player().poster();this.setSrc(n),n?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var n="";e&&(n='url("'+e+'")'),this.el_.style.backgroundImage=n}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},t}(ClickableComponent);Component.registerComponent("PosterImage",PosterImage);var darkGray="#222",lightGray="#ccc",fontMap={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},TextTrackDisplay=function(r){function t(e,n,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,r.call(this,e,n,s));return e.on("loadstart",bind(a,a.toggleDisplay)),e.on("texttrackchange",bind(a,a.updateDisplay)),e.on("loadstart",bind(a,a.preselectTrack)),e.ready(bind(a,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",bind(this,this.updateDisplay));for(var l=this.options_.playerOptions.tracks||[],u=0;u1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};e="button",n=assign({innerHTML:'',className:this.buildCSSClass()},n),s=assign({type:"button","aria-live":"polite"},s);var a=Component.prototype.createEl.call(this,e,n,s);return this.createControlTextEl(a),a},t.prototype.addChild=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=this.constructor.name;return log$2.warn("Adding an actionable (user controllable) child to a Button ("+s+") is not supported; use a ClickableComponent instead."),Component.prototype.addChild.call(this,e,n)},t.prototype.enable=function(){r.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){r.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(e){e.which!==32&&e.which!==13&&r.prototype.handleKeyPress.call(this,e)},t}(ClickableComponent);Component.registerComponent("Button",Button);var BigPlayButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.mouseused_=!1,s.on("mousedown",s.handleMouseDown),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var n=this.player_.play();if(!(this.mouseused_&&e.clientX&&e.clientY)){var s=this.player_.getChild("controlBar"),a=s&&s.getChild("playToggle");if(!a)return void this.player_.focus();var l=function(){return a.focus()};isPromise(n)?n.then(l,function(){}):this.setTimeout(l,1)}},t.prototype.handleKeyPress=function(e){this.mouseused_=!1,r.prototype.handleKeyPress.call(this,e)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(Button);BigPlayButton.prototype.controlText_="Play Video",Component.registerComponent("BigPlayButton",BigPlayButton);var CloseButton=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.controlText(n&&n.controlText||s.localize("Close")),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-close-button "+r.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(Button);Component.registerComponent("CloseButton",CloseButton);var PlayToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"play",s.handlePlay),s.on(e,"pause",s.handlePause),s.on(e,"ended",s.handleEnded),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-play-control "+r.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Button);PlayToggle.prototype.controlText_="Play",Component.registerComponent("PlayToggle",PlayToggle);var TimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.throttledUpdateContent=throttle(bind(s,s.updateContent),25),s.on(e,"timeupdate",s.throttledUpdateContent),s}return inherits(t,r),t.prototype.createEl=function(e){var n=this.buildCSSClass(),s=r.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control"});return this.contentEl_=createEl("div",{className:n+"-display"},{"aria-live":"off"},createEl("span",{className:"vjs-control-text",textContent:this.localize(this.controlText_)})),this.updateTextNode_(),s.appendChild(this.contentEl_),s},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,r.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=document_1.createTextNode(this.formattedTime_||"0:00"),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return formatTime(e)},t.prototype.updateFormattedTime_=function(e){var n=this.formatTime_(e);n!==this.formattedTime_&&(this.formattedTime_=n,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(Component);TimeDisplay.prototype.controlText_="Time",Component.registerComponent("TimeDisplay",TimeDisplay);var CurrentTimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"ended",s.handleEnded),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(n)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(TimeDisplay);CurrentTimeDisplay.prototype.controlText_="Current Time",Component.registerComponent("CurrentTimeDisplay",CurrentTimeDisplay);var DurationDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"durationchange",s.updateContent),s.on(e,"loadedmetadata",s.throttledUpdateContent),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var n=this.player_.duration();n&&this.duration_!==n&&(this.duration_=n,this.updateFormattedTime_(n))},t}(TimeDisplay);DurationDisplay.prototype.controlText_="Duration Time",Component.registerComponent("DurationDisplay",DurationDisplay);var TimeDivider=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},t}(Component);Component.registerComponent("TimeDivider",TimeDivider);var RemainingTimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"durationchange",s.throttledUpdateContent),s.on(e,"ended",s.handleEnded),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(e){return"-"+r.prototype.formatTime_.call(this,e)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(TimeDisplay);RemainingTimeDisplay.prototype.controlText_="Remaining Time",Component.registerComponent("RemainingTimeDisplay",RemainingTimeDisplay);var LiveDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.isLoadedMetaData=!1,s.hide(),s.on(s.player(),"durationchange",s.onDurationChange),s.on(s.player(),"loadedmetadata",s.onLoadMetadata),e.on("loadnewvideo",videojs.bind(s,s.resetStatus)),s}return inherits(t,r),t.prototype.createEl=function(){var e=r.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=createEl("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.dispose=function(){this.contentEl_=null,r.prototype.dispose.call(this)},t.prototype.resetStatus=function(){this.setStatus(!1)},t.prototype.onDurationChange=function(){this.isLoadedMetaData&&this.update()},t.prototype.onLoadMetadata=function(){this.setStatus(!0),this.update()},t.prototype.setStatus=function(e){this.isLoadedMetaData=e},t.prototype.update=function(){this.player().duration()===1/0?this.show():this.hide()},t}(Component);Component.registerComponent("LiveDisplay",LiveDisplay);var Slider=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.bar=s.getChild(s.options_.barName),s.vertical(!!s.options_.vertical),s.enable(),s}return inherits(t,r),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n.className=n.className+" vjs-slider",n=assign({tabIndex:0},n),s=assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},s),r.prototype.createEl.call(this,e,n,s)},t.prototype.handleMouseDown=function(e){var n=this.bar.el_.ownerDocument;e.preventDefault(),blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n,"mousemove",this.handleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchmove",this.handleMouseMove),this.on(n,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),n=this.bar;if(n){(typeof e!="number"||e!==e||e<0||e===1/0)&&(e=0);var s=(100*e).toFixed(2)+"%",a=n.el().style;return this.vertical()?a.height=s:a.width=s,e}}},t.prototype.calculateDistance=function(e){var n=getPointerPosition(this.el_,e);return this.vertical()?n.y:n.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){e.which===37||e.which===40?(e.preventDefault(),this.stepBack()):e.which!==38&&e.which!==39||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(e===void 0)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Component);Component.registerComponent("Slider",Slider);var LoadProgressBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.partEls_=[],s.on(e,"progress",s.update),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},t.prototype.dispose=function(){this.partEls_=null,r.prototype.dispose.call(this)},t.prototype.update=function(e){var n=this.player_.buffered(),s=this.player_.duration(),a=this.player_.bufferedEnd(),l=this.partEls_,u=function(d,f){var m=d/f||0;return 100*(m>=1?1:m)+"%"};this.el_.style.width=u(a,s);for(var c=0;cn.length;b--)this.el_.removeChild(l[b-1]);l.length=n.length},t}(Component);Component.registerComponent("LoadProgressBar",LoadProgressBar);var TimeTooltip=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,n,s){var a=getBoundingClientRect(this.el_),l=getBoundingClientRect(this.player_.el()),u=e.width*n;if(l&&a){var c=e.left-l.left+u,h=e.width-u+(l.right-e.right),p=a.width/2;ca.width&&(p=a.width),this.el_.style.right="-"+p+"px",textContent(this.el_,s)}},t}(Component);Component.registerComponent("TimeTooltip",TimeTooltip);var PlayProgressBar=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},t.prototype.update=function(e,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.scrubbing()?s.player_.getCache().currentTime:s.player_.currentTime(),l=formatTime(a,s.player_.duration()),u=s.getChild("timeTooltip");u&&u.update(e,n,l)})},t}(Component);PlayProgressBar.prototype.options_={children:[]},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||PlayProgressBar.prototype.options_.children.push("timeTooltip"),Component.registerComponent("PlayProgressBar",PlayProgressBar);var MouseTimeDisplay=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.update=throttle(bind(s,s.update),25),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,n){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.duration(),l=formatTime(n*a,a);s.el_.style.left=e.width*n+"px",s.getChild("timeTooltip").update(e,n,l)})},t}(Component);MouseTimeDisplay.prototype.options_={children:["timeTooltip"]},Component.registerComponent("MouseTimeDisplay",MouseTimeDisplay);var STEP_SECONDS=5,UPDATE_REFRESH_INTERVAL=30,SeekBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.update=throttle(bind(s,s.update),UPDATE_REFRESH_INTERVAL),s.on(e,"timeupdate",s.update),s.on(e,"ended",s.handleEnded),s.updateInterval=null,s.on(e,["playing"],function(){s.clearInterval(s.updateInterval),s.updateInterval=s.setInterval(function(){s.requestAnimationFrame(function(){s.update()})},UPDATE_REFRESH_INTERVAL)}),s.on(e,["ended","pause","waiting"],function(){s.clearInterval(s.updateInterval)}),s.on(e,["timeupdate","ended"],s.update),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,n){var s=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[formatTime(e,s),formatTime(s,s)],"{1} of {2}")),this.bar.update(getBoundingClientRect(this.el_),n)},t.prototype.update=function(e){var n=r.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(e){isSingleLeftClick(e)&&(this.player_.trigger("beforeseek"),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),r.prototype.handleMouseDown.call(this,e))},t.prototype.handleMouseMove=function(e){if(isSingleLeftClick(e)){var n=this.calculateDistance(e)*this.player_.duration();n===this.player_.duration()&&(n-=.1),this.player_.currentTime(n)}},t.prototype.enable=function(){r.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},t.prototype.disable=function(){r.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},t.prototype.handleMouseUp=function(e){r.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&silencePromise(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+STEP_SECONDS)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-STEP_SECONDS)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(e){e.which===32||e.which===13?(e.preventDefault(),this.handleAction(e)):r.prototype.handleKeyPress&&r.prototype.handleKeyPress.call(this,e)},t}(Slider);SeekBar.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},IE_VERSION&&!(IE_VERSION>8)||IS_IOS||IS_ANDROID||SeekBar.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),SeekBar.prototype.playerEvent="timeupdate",Component.registerComponent("SeekBar",SeekBar);var ProgressControl=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.handleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.throttledHandleMouseSeek=throttle(bind(s,s.handleMouseSeek),25),s.enable(),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var n=this.getChild("seekBar"),s=n.getChild("mouseTimeDisplay"),a=n.el(),l=getBoundingClientRect(a),u=getPointerPosition(a,e).x;u>1?u=1:u<0&&(u=0),s&&s.update(l,u)},t.prototype.handleMouseSeek=function(e){this.getChild("seekBar").handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseSeek),this.on(n,"touchmove",this.throttledHandleMouseSeek),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseSeek),this.off(n,"touchmove",this.throttledHandleMouseSeek),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t}(Component);ProgressControl.prototype.options_={children:["seekBar"]},Component.registerComponent("ProgressControl",ProgressControl);var FullscreenToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on(e,"fullscreenchange",s.handleFullscreenChange),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+r.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Button);FullscreenToggle.prototype.controlText_="Fullscreen",Component.registerComponent("FullscreenToggle",FullscreenToggle);var checkVolumeSupport=function(r,t){!t.tech_||t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_&&t.tech_.featuresVolumeControl&&r.addClass("enable-volume-control"):r.addClass("vjs-hidden"),r.on(t,"loadstart",function(){t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_.featuresVolumeControl&&(r.removeClass("vjs-hidden"),r.addClass("enable-volume-control")):r.addClass("vjs-hidden")})},VolumeLevel=function(r){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,r.apply(this,arguments))}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},t}(Component);Component.registerComponent("VolumeLevel",VolumeLevel);var VolumeBar=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.on("slideractive",s.updateLastVolume_),s.on(e,"volumechange",s.updateARIAAttributes),e.ready(function(){return s.updateARIAAttributes()}),s}return inherits(t,r),t.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(e){isSingleLeftClick(e)&&r.prototype.handleMouseDown.call(this,e)},t.prototype.handleMouseMove=function(e){isSingleLeftClick(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n),this.el_.setAttribute("aria-valuetext",n+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,n=this.player_.volume();this.one("sliderinactive",function(){e.player_.volume()===0&&e.player_.lastVolume_(n)})},t}(Slider);VolumeBar.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},VolumeBar.prototype.playerEvent="volumechange",Component.registerComponent("VolumeBar",VolumeBar);var VolumeControl=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||isPlain(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical);var s=possibleConstructorReturn(this,r.call(this,e,n));return checkVolumeSupport(s,e),s.throttledHandleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.on("mousedown",s.handleMouseDown),s.on("touchstart",s.handleMouseDown),s.on(s.volumeBar,["focus","slideractive"],function(){s.volumeBar.addClass("vjs-slider-active"),s.addClass("vjs-slider-active"),s.trigger("slideractive")}),s.on(s.volumeBar,["blur","sliderinactive"],function(){s.volumeBar.removeClass("vjs-slider-active"),s.removeClass("vjs-slider-active"),s.trigger("sliderinactive")}),s}return inherits(t,r),t.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),r.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},t.prototype.handleMouseDown=function(e){var n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove),this.on(n,"touchmove",this.throttledHandleMouseMove),this.on(n,"mouseup",this.handleMouseUp),this.on(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove),this.off(n,"touchmove",this.throttledHandleMouseMove),this.off(n,"mouseup",this.handleMouseUp),this.off(n,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Component);VolumeControl.prototype.options_={children:["volumeBar"]},Component.registerComponent("VolumeControl",VolumeControl);var MuteToggle=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return checkVolumeSupport(s,e),s.on(e,["loadstart","volumechange"],s.update),s}return inherits(t,r),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+r.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var n=this.player_.volume(),s=this.player_.lastVolume_();if(n===0){var a=s<.1?.1:s;this.player_.volume(a),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),n=3;e===0||this.player_.muted()?n=0:e<.33?n=1:e<.67&&(n=2);for(var s=0;s<4;s++)removeClass(this.el_,"vjs-vol-"+s);addClass(this.el_,"vjs-vol-"+n)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||this.player_.volume()===0,n=e?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)},t}(Button);MuteToggle.prototype.controlText_="Mute",Component.registerComponent("MuteToggle",MuteToggle);var VolumePanel=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||isPlain(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline);var s=possibleConstructorReturn(this,r.call(this,e,n));return checkVolumeSupport(s,e),s.on(s.volumeControl,["slideractive"],s.sliderActive_),s.on(s.muteToggle,"focus",s.sliderActive_),s.on(s.volumeControl,["sliderinactive"],s.sliderInactive_),s.on(s.muteToggle,"blur",s.sliderInactive_),s}return inherits(t,r),t.prototype.sliderActive_=function(){IS_ANDROID||IS_IOS||this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){IS_ANDROID||IS_IOS||this.removeClass("vjs-slider-active")},t.prototype.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),r.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},t}(Component);VolumePanel.prototype.options_={children:["muteToggle","volumeControl"]},Component.registerComponent("VolumePanel",VolumePanel);var Menu=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return n&&(s.menuButton_=n.menuButton),s.focusedChild_=-1,s.on("keydown",s.handleKeyPress),s}return inherits(t,r),t.prototype.addItem=function(e){this.addChild(e),e.on("click",bind(this,function(n){this.menuButton_&&(this.menuButton_.unpressButton(),e.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus())}))},t.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=createEl(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=r.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),on(n,"click",function(s){s.preventDefault(),s.stopImmediatePropagation()}),n},t.prototype.dispose=function(){this.contentEl_=null,r.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){e.which===37||e.which===40?(e.preventDefault(),this.stepForward()):e.which!==38&&e.which!==39||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;this.focusedChild_!==void 0&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=this.children().slice();n.length&&n[0].className&&/vjs-menu-title/.test(n[0].className)&&n.shift(),n.length>0&&(e<0?e=0:e>=n.length&&(e=n.length-1),this.focusedChild_=e,n[e].el_.focus())},t}(Component);Component.registerComponent("Menu",Menu);var MenuButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));s.menuButton_=new Button(e,n),s.menuButton_.controlText(s.controlText_),s.menuButton_.el_.setAttribute("aria-haspopup","true");var a=Button.prototype.buildCSSClass();return s.menuButton_.el_.className=s.buildCSSClass()+" "+a,s.menuButton_.removeClass("vjs-control"),s.addChild(s.menuButton_),s.update(),s.enabled_=!0,s.on(s.menuButton_,"tap",s.handleClick),s.on(s.menuButton_,"click",s.handleClick),s.on(s.menuButton_,"focus",s.handleFocus),s.on(s.menuButton_,"blur",s.handleBlur),s.on("keydown",s.handleSubmenuKeyPress),s}return inherits(t,r),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new Menu(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var n=createEl("li",{className:"vjs-menu-title",innerHTML:toTitleCase(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(n),prependTo(n,e.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s1&&arguments[1]!==void 0?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,n)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",bind(this,function(n){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){on(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleBlur=function(){off(document_1,"keydown",bind(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){e.which===27||e.which===9?(this.buttonPressed_&&this.unpressButton(),e.which!==9&&(e.preventDefault(),this.menuButton_.el_.focus())):e.which!==38&&e.which!==40||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){e.which!==27&&e.which!==9||(this.buttonPressed_&&this.unpressButton(),e.which!==9&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),IS_IOS&&isInFrame())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Component);Component.registerComponent("MenuButton",MenuButton);var TrackButton=function(r){function t(e,n){classCallCheck(this,t);var s=n.tracks,a=possibleConstructorReturn(this,r.call(this,e,n));if(a.items.length<=1&&a.hide(),!s)return possibleConstructorReturn(a);var l=bind(a,a.update);return s.addEventListener("removetrack",l),s.addEventListener("addtrack",l),a.player_.on("ready",l),a.player_.on("dispose",function(){s.removeEventListener("removetrack",l),s.removeEventListener("addtrack",l)}),a}return inherits(t,r),t}(MenuButton);Component.registerComponent("TrackButton",TrackButton);var MenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=possibleConstructorReturn(this,r.call(this,e,n));return s.selectable=n.selectable,s.selected(n.selected),s.selectable?s.el_.setAttribute("role","menuitemcheckbox"):s.el_.setAttribute("role","menuitem"),s}return inherits(t,r),t.prototype.createEl=function(e,n,s){return this.nonIconControl=!0,r.prototype.createEl.call(this,"li",assign({className:"vjs-menu-item",innerHTML:''+this.localize(this.options_.label)+"",tabIndex:-1},n),s)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected")):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText("")))},t}(ClickableComponent);Component.registerComponent("MenuItem",MenuItem);var TextTrackMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.track,a=e.textTracks();n.label=s.label||s.language||"Unknown",n.selected=s.mode==="showing";var l=possibleConstructorReturn(this,r.call(this,e,n));l.track=s;var u=function(){for(var p=arguments.length,y=Array(p),b=0;b-1?u.mode!=="showing"&&(u.mode="showing"):u.mode!=="disabled"&&(u.mode="disabled")}},t.prototype.handleTracksChange=function(e){this.selected(this.track.mode==="showing")},t.prototype.handleSelectedLanguageChange=function(e){if(this.track.mode==="showing"){var n=this.player_.cache_.selectedLanguage;if(n&&n.enabled&&n.language===this.track.language&&n.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,r.prototype.dispose.call(this)},t}(MenuItem);Component.registerComponent("TextTrackMenuItem",TextTrackMenuItem);var OffTextTrackMenuItem=function(r){function t(e,n){return classCallCheck(this,t),n.track={player:e,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.handleTracksChange=function(e){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a-1&&u.mode==="showing"){s=!1;break}}this.selected(s)},t.prototype.handleSelectedLanguageChange=function(e){for(var n=this.player().textTracks(),s=!0,a=0,l=n.length;a-1&&u.mode==="showing"){s=!1;break}}s&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(TextTrackMenuItem);Component.registerComponent("OffTextTrackMenuItem",OffTextTrackMenuItem);var TextTrackButton=function(r){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),n.tracks=e.textTracks(),possibleConstructorReturn(this,r.call(this,e,n))}return inherits(t,r),t.prototype.createItems=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:TextTrackMenuItem,s=void 0;this.label_&&(s=this.label_+" off"),e.push(new OffTextTrackMenuItem(this.player_,{kinds:this.kinds_,kind:this.kind_,label:s})),this.hideThreshold_+=1;var a=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var l=0;l-1){var c=new n(this.player_,{track:u,selectable:!0});c.addClass("vjs-"+u.kind+"-menu-item"),e.push(c)}}return e},t}(TrackButton);Component.registerComponent("TextTrackButton",TextTrackButton);var ChaptersTrackMenuItem=function(r){function t(e,n){classCallCheck(this,t);var s=n.track,a=n.cue,l=e.currentTime();n.selectable=!0,n.label=a.text,n.selected=a.startTime<=l&&l=0;n--){var s=e[n];if(s.kind===this.kind_)return s}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(toTitleCase(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),r.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var n=this.track_.cues;if(!n)return e;for(var s=0,a=n.length;s