!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.TCPlayer=e()}(this,function(){function unwrapExports(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t}function createCommonjsModule(t,e){return e={exports:{}},t(e,e.exports),e.exports}function each(t,e){keys(t).forEach(function(n){return e(t[n],n)})}function reduce(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;return keys(t).reduce(function(n,i){return e(n,t[i],i)},n)}function assign(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i0&&arguments[0]!==undefined?arguments[0]:"div",e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},i=arguments[3],r=document_1.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(log$2.warn(tsml(_templateObject,t,n)),r.setAttribute(t,n)):"textContent"===t?textContent(r,n):r[t]=n}),Object.getOwnPropertyNames(n).forEach(function(t){r.setAttribute(t,n[t])}),i&&appendContent(r,i),r}function textContent(t,e){return"undefined"==typeof t.textContent?t.innerText=e:t.textContent=e,t}function prependTo(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function hasClass(t,e){return throwIfWhitespace(e),t.classList?t.classList.contains(e):classRegExp(e).test(t.className)}function addClass(t,e){return t.classList?t.classList.add(e):hasClass(t,e)||(t.className=(t.className+" "+e).trim()),t}function removeClass(t,e){return t.classList?t.classList.remove(e):(throwIfWhitespace(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function toggleClass(t,e,n){var i=hasClass(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!i),n!==i)return n?addClass(t,e):removeClass(t,e),t}function setAttributes(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var i=e[n];null===i||void 0===i||!1===i?t.removeAttribute(n):t.setAttribute(n,!0===i?"":i)})}function getAttributes(t){var e={};if(t&&t.attributes&&t.attributes.length>0)for(var n=t.attributes,i=n.length-1;i>=0;i--){var r=n[i].name,o=n[i].value;"boolean"!=typeof t[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(o=null!==o),e[r]=o}return e}function getAttribute(t,e){return t.getAttribute(e)}function setAttribute(t,e,n){t.setAttribute(e,n)}function removeAttribute(t,e){t.removeAttribute(e)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(t){if(t&&t.getBoundingClientRect&&t.parentNode){var e=t.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(t){e[t]!==undefined&&(n[t]=e[t])}),n.height||(n.height=parseFloat(computedStyle(t,"height"))),n.width||(n.width=parseFloat(computedStyle(t,"width"))),n}}function findPosition(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=document_1.documentElement,i=document_1.body,r=n.clientLeft||i.clientLeft||0,o=window_1.pageXOffset||i.scrollLeft,s=e.left+o-r,a=n.clientTop||i.clientTop||0,l=window_1.pageYOffset||i.scrollTop,u=e.top+l-a;return{left:Math.round(s),top:Math.round(u)}}function getPointerPosition(t,e){var n={},i=findPosition(t),r=t.offsetWidth,o=t.offsetHeight,s=i.top,a=i.left,l=e.pageY,u=e.pageX;return e.changedTouches&&(u=e.changedTouches[0].pageX,l=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(s-l+o)/o)),n.x=Math.max(0,Math.min(1,(u-a)/r)),n}function isTextNode(t){return isObject$1(t)&&3===t.nodeType}function emptyEl(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function normalizeContent(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),isEl(t)||isTextNode(t)?t:"string"==typeof t&&/\S/.test(t)?document_1.createTextNode(t):void 0}).filter(function(t){return t})}function appendContent(t,e){return normalizeContent(e).forEach(function(e){return t.appendChild(e)}),t}function insertContent(t,e){return appendContent(emptyEl(t),e)}function isSingleLeftClick(t){return t.button===undefined&&t.buttons===undefined||(0===t.button&&t.buttons===undefined||(9===IE_VERSION||0===t.button&&1===t.buttons))}function newGUID(){return _guid++}function getData(t){var e=t[elIdAttr];return e||(e=t[elIdAttr]=newGUID()),elData[e]||(elData[e]={}),elData[e]}function hasData(t){var e=t[elIdAttr];return!!e&&!!Object.getOwnPropertyNames(elData[e]).length}function removeData(t){var e=t[elIdAttr];if(e){delete elData[e];try{delete t[elIdAttr]}catch(n){t.removeAttribute?t.removeAttribute(elIdAttr):t[elIdAttr]=null}}}function _cleanUpEvents(t,e){var n=getData(t);0===n.handlers[e].length&&(delete n.handlers[e],t.removeEventListener?t.removeEventListener(e,n.dispatcher,!1):t.detachEvent&&t.detachEvent("on"+e,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&removeData(t)}function _handleMultipleEvents(t,e,n,i){n.forEach(function(n){t(e,n,i)})}function fixEvent(t){function e(){return!0}function n(){return!1}if(!t||!t.isPropagationStopped){var i=t||window_1.event;t={};for(var r in i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&("returnValue"===r&&i.preventDefault||(t[r]=i[r]));if(t.target||(t.target=t.srcElement||document_1),t.relatedTarget||(t.relatedTarget=t.fromElement===t.target?t.toElement:t.fromElement),t.preventDefault=function(){i.preventDefault&&i.preventDefault(),t.returnValue=!1,i.returnValue=!1,t.defaultPrevented=!0},t.defaultPrevented=!1,t.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),t.cancelBubble=!0,i.cancelBubble=!0,t.isPropagationStopped=e},t.isPropagationStopped=n,t.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),t.isImmediatePropagationStopped=e,t.stopPropagation()},t.isImmediatePropagationStopped=n,null!==t.clientX&&t.clientX!==undefined){var o=document_1.documentElement,s=document_1.body;t.pageX=t.clientX+(o&&o.scrollLeft||s&&s.scrollLeft||0)-(o&&o.clientLeft||s&&s.clientLeft||0),t.pageY=t.clientY+(o&&o.scrollTop||s&&s.scrollTop||0)-(o&&o.clientTop||s&&s.clientTop||0)}t.which=t.charCode||t.keyCode,null!==t.button&&t.button!==undefined&&(t.button=1&t.button?0:4&t.button?1:2&t.button?2:0)}return t}function on(t,e,n){if(Array.isArray(e))return _handleMultipleEvents(on,t,e,n);var i=getData(t);if(i.handlers||(i.handlers={}),i.handlers[e]||(i.handlers[e]=[]),n.guid||(n.guid=newGUID()),i.handlers[e].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(e,n){if(!i.disabled){e=fixEvent(e);var r=i.handlers[e.type];if(r)for(var o=r.slice(0),s=0,a=o.length;s-1&&(r={passive:!0}),t.addEventListener(e,i.dispatcher,r)}else t.attachEvent&&t.attachEvent("on"+e,i.dispatcher)}function off(t,e,n){if(hasData(t)){var i=getData(t);if(i.handlers){if(Array.isArray(e))return _handleMultipleEvents(off,t,e,n);var r=function(t,e){i.handlers[e]=[],_cleanUpEvents(t,e)};if(e!==undefined){var o=i.handlers[e];if(o){if(!n)return void r(t,e);if(n.guid)for(var s=0;s1&&arguments[1]!==undefined?arguments[1]:{},n=e.eventBusKey;if(n){if(!t[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');t.eventBusEl_=t[n]}else t.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(t,EventedMixin),t.on("dispose",function(){t.off(),window_1.setTimeout(function(){t.eventBusEl_=null},0)}),t}function stateful(t,e){return assign(t,StatefulMixin),t.state=assign({},t.state,e),"function"==typeof t.handleStateChanged&&isEvented(t)&&t.on("statechanged",t.handleStateChanged),t}function toTitleCase(t){return"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}function titleCaseEquals(t,e){return toTitleCase(t)===toTitleCase(e)}function mergeOptions(){for(var t={},e=arguments.length,n=Array(e),i=0;i3&&arguments[3]!==undefined&&arguments[3],r=document.createElement("script");if(r.onload=r.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||("function"==typeof e&&e(),r.onload=r.onreadystatechange=null,r.parentNode&&!i&&r.parentNode.removeChild(r))},n)for(var o in n)if(n.hasOwnProperty(o)){var s=n[o];null===s?r.removeAttribute(s):r.setAttribute(o,s)}r.src=t,document.getElementsByTagName("head")[0].appendChild(r)}function serializeParams(t){var e=[],n=function(t,n){n="function"==typeof n?n():n,n=null===n?"":n===undefined?"":n,e[e.length]=encodeURIComponent(t)+"="+encodeURIComponent(n)};return function i(t,r){var o=void 0,s=void 0,a=void 0;if(t)if(Array.isArray(r))for(o=0,s=r.length;o/g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/"):""}function isWebrtcUrl(t){return/webrtc:\/\//.test(t)||/\.sdp/.test(t)}function rangeCheck(t,e,n){if("number"!=typeof e||e<0||e>n)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is non-numeric or out of bounds (0-"+n+").")}function getRange(t,e,n,i){return rangeCheck(t,i,n.length-1),n[i][e]}function createTimeRangesObj(t){return t===undefined||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:getRange.bind(null,"start",0,t),end:getRange.bind(null,"end",1,t)}}function createTimeRanges(t,e){return Array.isArray(t)?createTimeRangesObj(t):t===undefined||e===undefined?createTimeRangesObj():createTimeRangesObj([[t,e]])}function bufferedPercent(t,e){var n=0,i=void 0,r=void 0;if(!e)return 0;t&&t.length||(t=createTimeRanges(0,0));for(var o=0;oe&&(r=e),n+=r-i;return n/e}function MediaError(t){if(t instanceof MediaError)return t;"number"==typeof t?this.code=t:"string"==typeof t?this.message=t:isObject$1(t)&&("number"==typeof t.code&&(this.code=t.code),assign(this,t)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(t,e){var n,i=null;try{n=JSON.parse(t,e)}catch(r){i=r}return[i,n]}function isPromise(t){return t!==undefined&&"function"==typeof t.then}function silencePromise(t){isPromise(t)&&t.then(null,function(t){})}function isFunction$1(t){if(!t)return!1;var e=toString$1.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)}function extend$1(){for(var t={},e=0;e0&&(c=setTimeout(function(){if(!u){u=!0,a.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",i(t)}},t.timeout)),a.setRequestHeader)for(l in f)f.hasOwnProperty(l)&&a.setRequestHeader(l,f[l]);else if(t.headers&&!isEmpty(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(a.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(a),a.send(d||null),a}function getXml(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}function noop(){}function ParsingError(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function parseTimeStamp(t){function e(t,e,n,i){return 3600*(0|t)+60*(0|e)+(0|n)+(0|i)/1e3}var n=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?e(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function Settings(){this.values=_objCreate(null)}function parseOptions(t,e,n,i){var r=i?t.split(i):[t];for(var o in r)if("string"==typeof r[o]){var s=r[o].split(n);if(2===s.length){var a=s[0],l=s[1];e(a,l)}}}function parseCue(t,e,n){function i(){var e=parseTimeStamp(t);if(null===e)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+o);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function r(){t=t.replace(/^\s+/,"")}var o=t;if(r(),e.startTime=i(),r(),"--\x3e"!==t.substr(0,3))throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);t=t.substr(3),r(),e.endTime=i(),r(),function(t,e){var i=new Settings;parseOptions(t,function(t,e){switch(t){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===e){i.set(t,n[r].region);break}break;case"vertical":i.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),s=o[0];i.integer(t,s),i.percent(t,s)&&i.set("snapToLines",!1),i.alt(t,s,["auto"]),2===o.length&&i.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=e.split(","),i.percent(t,o[0]),2===o.length&&i.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":i.percent(t,e);break;case"align":i.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=i.get("region",null),e.vertical=i.get("vertical",""),e.line=i.get("line","auto"),e.lineAlign=i.get("lineAlign","start"),e.snapToLines=i.get("snapToLines",!0),e.size=i.get("size",100),e.align=i.get("align","middle"),e.position=i.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=i.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,e)}function parseContent(t,e){function n(t){return ESCAPE[t]}for(var i,r=t.document.createElement("div"),o=r,s=[];null!==(i=function(){if(!e)return null;var t=e.match(/^([^<]*)(<[^>]+>?)?/);return function(t){return e=e.substr(t.length),t}(t[1]?t[1]:t[2])}());)if("<"!==i[0])o.appendChild(t.document.createTextNode(function(t){for(;u=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(u[0],n);return t}(i)));else{if("/"===i[1]){s.length&&s[s.length-1]===i.substr(2).replace(">","")&&(s.pop(),o=o.parentNode);continue}var a,l=parseTimeStamp(i.substr(1,i.length-2));if(l){a=t.document.createProcessingInstruction("timestamp",l),o.appendChild(a);continue}var u=i.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!u)continue;if(!(a=function(e,n){var i=TAG_NAME[e];if(!i)return null;var r=t.document.createElement(i);r.localName=i;var o=TAG_ANNOTATION[e];return o&&n&&(r[o]=n.trim()),r}(u[1],u[3])))continue;if(!function(t,e){return!NEEDS_PARENT[e.localName]||NEEDS_PARENT[e.localName]===t.localName}(o,a))continue;u[2]&&(a.className=u[2].substr(1).replace("."," ")),s.push(u[1]),o.appendChild(a),o=a}return r}function isStrongRTLChar(t){for(var e=0;e=n[0]&&t<=n[1])return!0}return!1}function determineBidi(t){function e(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function n(t){if(!t||!t.length)return null;var i=t.pop(),r=i.textContent||i.innerText;if(r){var o=r.match(/^.*(\n|\r)/);return o?(t.length=0,o[0]):r}return"ruby"===i.tagName?n(t):i.childNodes?(e(t,i),n(t)):void 0}var i,r=[],o="";if(!t||!t.childNodes)return"ltr";for(e(r,t);o=n(r);)for(var s=0;s=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,i=0,r=0;rh&&(c=c<0?-1:1,c*=Math.ceil(h/u)*u),s<0&&(c+=""===o.vertical?n.height:n.width,a=a.reverse()),r.move(p,c)}else{var d=r.lineHeight/n.height*100;switch(o.lineAlign){case"middle":s-=d/2;break;case"end":s-=d}switch(o.vertical){case"":e.applyStyles({top:e.formatStyle(s,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(s,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(s,"%")})}a=["+y","-x","+x","-y"],r=new BoxPosition(e)}var f=function(t,e){for(var r,o=new BoxPosition(t),s=1,a=0;al&&(r=new BoxPosition(t),s=l),t=new BoxPosition(o)}return r||o}(r,a);e.move(f.toCSSCompatValues(n))}function WebVTT$1(){}function findDirectionSetting(t){return"string"==typeof t&&(!!directionSetting[t.toLowerCase()]&&t.toLowerCase())}function findAlignSetting(t){return"string"==typeof t&&(!!alignSetting[t.toLowerCase()]&&t.toLowerCase())}function extend$2(t){for(var e=1;e100)throw new Error("Position must be between 0 and 100.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"positionAlign",extend$2({},o,{get:function(){return m},set:function(t){var e=findAlignSetting(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(i,"size",extend$2({},o,{get:function(){return v},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(i,"align",extend$2({},o,{get:function(){return _},set:function(t){var e=findAlignSetting(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");_=e,this.hasBeenReset=!0}})),i.displayState=undefined,r)return i}function findScrollSetting(t){return"string"==typeof t&&(!!scrollSetting[t.toLowerCase()]&&t.toLowerCase())}function isValidPercentValue(t){return"number"==typeof t&&t>=0&&t<=100}function VTTRegion(){var t=100,e=3,n=0,i=100,r=0,o=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!isValidPercentValue(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!isValidPercentValue(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(t){if(!isValidPercentValue(t))throw new Error("RegionAnchorY must be between 0 and 100.");n=t}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(t){if(!isValidPercentValue(t))throw new Error("ViewportAnchorY must be between 0 and 100.");o=t}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(t){if(!isValidPercentValue(t))throw new Error("ViewportAnchorX must be between 0 and 100.");r=t}},scroll:{enumerable:!0,get:function(){return s},set:function(t){var e=findScrollSetting(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");s=e}}})}function createTrackHelper(t,e,n,i){var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{},o=t.textTracks();r.kind=e,n&&(r.label=n),i&&(r.language=i),r.tech=t;var s=new ALL.text.TrackClass(r);return o.addTrack(s),s}function use(t,e){middlewares[t]=middlewares[t]||[],middlewares[t].push(e)}function setSource(t,e,n){t.setTimeout(function(){return setSourceHelper(e,middlewares[e.type],n,t)},1)}function setTech(t,e){t.forEach(function(t){return t.setTech&&t.setTech(e)})}function get$1(t,e,n){return t.reduceRight(middlewareIterator(n),e[n]())}function set$1(t,e,n,i){return e[n](t.reduce(middlewareIterator(n),i))}function middlewareIterator(t){return function(e,n){return n[t]?n[t](e):e}}function setSourceHelper(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[],n=arguments[2],i=arguments[3],r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:[],o=arguments.length>5&&arguments[5]!==undefined&&arguments[5],s=e[0],a=e.slice(1);if("string"==typeof s)setSourceHelper(t,middlewares[s],n,i,r,o);else if(s){var l=s(i);l.setSource(assign({},t),function(e,s){if(e)return setSourceHelper(t,a,n,i,r,o);r.push(l),setSourceHelper(s,t.type===s.type?a:middlewares[s.type],n,i,r,o)})}else a.length?setSourceHelper(t,a,n,i,r,o):o?n(t,r):setSourceHelper(t,middlewares["*"],n,i,r,!0)}function constructColor(t,e){return"rgba("+parseInt(t[1]+t[1],16)+","+parseInt(t[2]+t[2],16)+","+parseInt(t[3]+t[3],16)+","+e+")"}function tryUpdateStyle(t,e,n){try{t.style[e]=n}catch(i){return}}function formatTime(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:t;t=t<0?0:t;var n=Math.floor(t%60),i=Math.floor(t/60%60),r=Math.floor(t/3600),o=Math.floor(e/60%60),s=Math.floor(e/3600);return(isNaN(t)||t===Infinity)&&(r=i=n="-"),r=r>0||s>0?r+":":"",i=((r||o>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n}function parseOptionValue(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}function getSelectedOptionValue(t,e){return parseOptionValue(t.options[t.options.selectedIndex].value,e)}function setSelectedOption(t,e,n){if(e)for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:0,e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"fill",n=t,i="draw-"+e;return['\n \n \n ','\n \n \n ','\n \n \n '][n]}function isObject$2(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function trimmedEndIndex(t){for(var e=t.length;e--&&reWhitespace.test(t.charAt(e)););return e}function baseTrim(t){return t?t.slice(0,_trimmedEndIndex(t)+1).replace(reTrimStart,""):t}function getRawTag(t){var e=hasOwnProperty$2.call(t,symToStringTag$1),n=t[symToStringTag$1];try{t[symToStringTag$1]=undefined;var i=!0}catch(o){}var r=nativeObjectToString.call(t);return i&&(e?t[symToStringTag$1]=n:delete t[symToStringTag$1]),r}function objectToString(t){return nativeObjectToString$1.call(t)}function baseGetTag(t){return null==t?t===undefined?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?_getRawTag(t):_objectToString(t)}function isObjectLike(t){return null!=t&&"object"==typeof t}function isSymbol(t){return"symbol"==typeof t||isObjectLike_1(t)&&_baseGetTag(t)==symbolTag}function toNumber(t){if("number"==typeof t)return t;if(isSymbol_1(t))return NAN;if(isObject_1(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=isObject_1(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=_baseTrim(t);var n=reIsBinary.test(t);return n||reIsOctal.test(t)?freeParseInt(t.slice(2),n?2:8):reIsBadHex.test(t)?NAN:+t}function debounce(t,e,n){function i(e){var n=p,i=d;return p=d=undefined,v=e,g=t.apply(i,n)}function r(t){return v=t,y=setTimeout(a,e),_?i(t):g}function o(t){var n=t-m,i=t-v,r=e-n;return T?nativeMin(r,f-i):r}function s(t){var n=t-m,i=t-v;return m===undefined||n>=e||n<0||T&&i>=f}function a(){var t=now_1();if(s(t))return l(t);y=setTimeout(a,o(t))}function l(t){return y=undefined,b&&p?i(t):(p=d=undefined,g)}function u(){y!==undefined&&clearTimeout(y),v=0,p=m=d=y=undefined}function c(){return y===undefined?g:l(now_1())}function h(){var t=now_1(),n=s(t);if(p=arguments,d=this,m=t,n){if(y===undefined)return r(m);if(T)return clearTimeout(y),y=setTimeout(a,e),i(m)}return y===undefined&&(y=setTimeout(a,e)),g}var p,d,f,g,y,m,v=0,_=!1,T=!1,b=!0;if("function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$1);return e=toNumber_1(e)||0,isObject_1(n)&&(_=!!n.leading,T="maxWait"in n,f=T?nativeMax(toNumber_1(n.maxWait)||0,e):f,b="trailing"in n?!!n.trailing:b),h.cancel=u,h.flush=c,h}function throttle$1(t,e,n){var i=!0,r=!0;if("function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT);return isObject_1(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),debounce_1(t,e,{leading:i,maxWait:e,trailing:r})}function mountFlvProvider(t){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ)return!1;if(!videojs.browser.IS_TBS&&!videojs.browser.IS_MQQB&&(!IS_IOS||!videojs.browser.IS_SAFARI)&&!videojs.browser.IE_VERSION||t)try{var e=videojs.getTech&&videojs.getTech("Html5");e&&e.registerSourceHandler(FlvSourceHandler,0)}catch(n){}}function mountWebRTCProvider(t){if(!videojs.browser.isWebRTCSupported())return!1;try{var e=videojs.getTech&&videojs.getTech("Html5");e&&e.registerSourceHandler(sourceHandler,0)}catch(n){}}function FlashRtmpDecorator(t){return t.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},t.streamFromParts=function(t,e){return t+"&"+e},t.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var n=t.search(/&(?!\w+=)/),i=void 0;return-1!==n?i=n+1:0===(n=i=t.lastIndexOf("/")+1)&&(n=i=t.length),e.connection=t.substring(0,n),e.stream=t.substring(i,t.length),e},t.isStreamingType=function(e){return e in t.streamingFormats},t.RTMP_RE=/^rtmp[set]?:\/\//i,t.isStreamingSrc=function(e){return t.RTMP_RE.test(e)},t.rtmpSourceHandler={},t.rtmpSourceHandler.canPlayType=function(e){return t.isStreamingType(e)?"maybe":""},t.rtmpSourceHandler.canHandleSource=function(e,n){var i=t.rtmpSourceHandler.canPlayType(e.type);return i||(t.isStreamingSrc(e.src)?"maybe":"")},t.rtmpSourceHandler.handleSource=function(e,n,i){var r=t.streamToParts(e.src);n.setRtmpConnection(r.connection),n.setRtmpStream(r.stream)},t.registerSourceHandler(t.rtmpSourceHandler),t}function _createSetter(t){var e=t.charAt(0).toUpperCase()+t.slice(1);_api["set"+e]=function(e){return this.el_.vjs_setProperty(t,e)}}function _createGetter(t){_api[t]=function(){return this.el_.vjs_getProperty(t)}}function TCPlayer(t,e,n){var i=void 0,r=(new Date).getTime(),o=videojs.dom;if("string"==typeof t)i=document.querySelector("#"+t);else{if(!t||!t.nodeName)throw new TypeError("The ID or element supplied is not valid.");i=t}if("video"!=i.nodeName.toLowerCase()&&"audio"!=i.nodeName.toLowerCase())throw new TypeError("The element type must be