88 lines
635 KiB
JavaScript
88 lines
635 KiB
JavaScript
import{c as commonjsGlobal,a as getDefaultExportFromCjs}from"./nprogress-BpICrWuH.js";var tcplayer_v5_3_4_min$1={exports:{}},tcplayer_v5_3_4_min=tcplayer_v5_3_4_min$1.exports,hasRequiredTcplayer_v5_3_4_min;function requireTcplayer_v5_3_4_min(){return hasRequiredTcplayer_v5_3_4_min||(hasRequiredTcplayer_v5_3_4_min=1,(function(module,exports$1){var define_process_env_default={};(function(n,t){module.exports=t()})(tcplayer_v5_3_4_min,function(){function unwrapExports(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function createCommonjsModule(n,t){return t={exports:{}},n(t,t.exports),t.exports}function each(n,t){keys(n).forEach(function(e){return t(n[e],e)})}function reduce(n,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return keys(n).reduce(function(r,s){return t(r,n[s],s)},e)}function assign(n){for(var t=arguments.length,e=Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[n].concat(e)):(e.forEach(function(s){s&&each(s,function(a,u){n[u]=a})}),n)}function isObject$1(n){return!!n&&(n===void 0?"undefined":_typeof(n))==="object"}function isPlain(n){return isObject$1(n)&&toString.call(n)==="[object Object]"&&n.constructor===Object}function isFunction(n){return typeof n=="function"&&typeof n.nodeType!="number"}function clean(n){return n.replace(/\n\r?\s*/g,"")}function computedStyle(n,t){if(!n||!t)return"";if(typeof window_1.getComputedStyle=="function"){var e=window_1.getComputedStyle(n);return e?e[t]:""}return n.currentStyle[t]||""}function isNonBlankString(n){return typeof n=="string"&&/\S/.test(n)}function throwIfWhitespace(n){if(/\s/.test(n))throw new Error("class has illegal whitespace characters")}function classRegExp(n){return new RegExp("(^|\\s)"+n+"($|\\s)")}function isReal(){return document_1===window_1.document&&typeof document_1.createElement<"u"}function isEl(n){return isObject$1(n)&&n.nodeType===1}function isInFrame(){try{return window_1.parent!==window_1.self}catch{return!0}}function createQuerier(n){return function(t,e){if(!isNonBlankString(t))return document_1[n](null);isNonBlankString(e)&&(e=document_1.querySelector(e));var r=isEl(e)?e:document_1;return r[n]&&r[n](t)}}function createEl(){var n=arguments.length>0&&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]:{},r=arguments[3],s=document_1.createElement(n);return Object.getOwnPropertyNames(t).forEach(function(a){var u=t[a];a.indexOf("aria-")!==-1||a==="role"||a==="type"?(log$2.warn(tsml(_templateObject,a,u)),s.setAttribute(a,u)):a==="textContent"?textContent(s,u):s[a]=u}),Object.getOwnPropertyNames(e).forEach(function(a){s.setAttribute(a,e[a])}),r&&appendContent(s,r),s}function textContent(n,t){return typeof n.textContent>"u"?n.innerText=t:n.textContent=t,n}function prependTo(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)}function hasClass(n,t){return throwIfWhitespace(t),n.classList?n.classList.contains(t):classRegExp(t).test(n.className)}function addClass(n,t){return n.classList?n.classList.add(t):hasClass(n,t)||(n.className=(n.className+" "+t).trim()),n}function removeClass(n,t){return n.classList?n.classList.remove(t):(throwIfWhitespace(t),n.className=n.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),n}function toggleClass(n,t,e){var r=hasClass(n,t);if(typeof e=="function"&&(e=e(n,t)),typeof e!="boolean"&&(e=!r),e!==r)return e?addClass(n,t):removeClass(n,t),n}function setAttributes(n,t){Object.getOwnPropertyNames(t).forEach(function(e){var r=t[e];r==null||r===!1?n.removeAttribute(e):n.setAttribute(e,r===!0?"":r)})}function getAttributes(n){var t={};if(n&&n.attributes&&n.attributes.length>0)for(var e=n.attributes,r=e.length-1;r>=0;r--){var s=e[r].name,a=e[r].value;typeof n[s]!="boolean"&&",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+s+",")===-1||(a=a!==null),t[s]=a}return t}function getAttribute(n,t){return n.getAttribute(t)}function setAttribute(n,t,e){n.setAttribute(t,e)}function removeAttribute(n,t){n.removeAttribute(t)}function blockTextSelection(){document_1.body.focus(),document_1.onselectstart=function(){return!1}}function unblockTextSelection(){document_1.onselectstart=function(){return!0}}function getBoundingClientRect(n){if(n&&n.getBoundingClientRect&&n.parentNode){var t=n.getBoundingClientRect(),e={};return["bottom","height","left","right","top","width"].forEach(function(r){t[r]!==void 0&&(e[r]=t[r])}),e.height||(e.height=parseFloat(computedStyle(n,"height"))),e.width||(e.width=parseFloat(computedStyle(n,"width"))),e}}function findPosition(n){var t=void 0;if(n.getBoundingClientRect&&n.parentNode&&(t=n.getBoundingClientRect()),!t)return{left:0,top:0};var e=document_1.documentElement,r=document_1.body,s=e.clientLeft||r.clientLeft||0,a=window_1.pageXOffset||r.scrollLeft,u=t.left+a-s,l=e.clientTop||r.clientTop||0,c=window_1.pageYOffset||r.scrollTop,h=t.top+c-l;return{left:Math.round(u),top:Math.round(h)}}function getPointerPosition(n,t,e){var r={},s=findPosition(n),a=n.offsetWidth,u=n.offsetHeight,l=s.top,c=s.left,h=t.pageY,p=t.pageX;if(t.changedTouches&&(p=t.changedTouches[0].pageX,h=t.changedTouches[0].pageY),e){var d=[h,p];p=d[0],h=d[1]}return r.y=Math.max(0,Math.min(1,(l-h+u)/u)),r.x=Math.max(0,Math.min(1,(p-c)/a)),r}function isTextNode(n){return isObject$1(n)&&n.nodeType===3}function emptyEl(n){for(;n.firstChild;)n.removeChild(n.firstChild);return n}function normalizeContent(n){return typeof n=="function"&&(n=n()),(Array.isArray(n)?n:[n]).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(n,t){return normalizeContent(t).forEach(function(e){return n.appendChild(e)}),n}function insertContent(n,t){return appendContent(emptyEl(n),t)}function isSingleLeftClick(n){return n.button===void 0&&n.buttons===void 0||n.button===0&&n.buttons===void 0||IE_VERSION===9||n.button===0&&n.buttons===1}function newGUID(){return _guid++}function getData(n){if(!n)return{};var t=n[elIdAttr];return t||(t=n[elIdAttr]=newGUID()),elData[t]||(elData[t]={}),elData[t]}function hasData(n){if(!n)return!1;var t=n[elIdAttr];return!!t&&!!Object.getOwnPropertyNames(elData[t]).length}function removeData(n){var t=n[elIdAttr];if(t){delete elData[t];try{delete n[elIdAttr]}catch{n.removeAttribute?n.removeAttribute(elIdAttr):n[elIdAttr]=null}}}function _cleanUpEvents(n,t){var e=getData(n);e.handlers[t].length===0&&(delete e.handlers[t],n.removeEventListener?n.removeEventListener(t,e.dispatcher,!1):n.detachEvent&&n.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(n)}function _handleMultipleEvents(n,t,e,r){e.forEach(function(s){n(t,s,r)})}function fixEvent(n){function t(){return!0}function e(){return!1}if(!n||!n.isPropagationStopped){var r=n||window_1.event;n={};for(var s in r)s!=="layerX"&&s!=="layerY"&&s!=="keyLocation"&&s!=="webkitMovementX"&&s!=="webkitMovementY"&&(s==="returnValue"&&r.preventDefault||(n[s]=r[s]));if(n.target||(n.target=n.srcElement||document_1),n.relatedTarget||(n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement),n.preventDefault=function(){r.preventDefault&&r.preventDefault(),n.returnValue=!1,r.returnValue=!1,n.defaultPrevented=!0},n.defaultPrevented=!1,n.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),n.cancelBubble=!0,r.cancelBubble=!0,n.isPropagationStopped=t},n.isPropagationStopped=e,n.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),n.isImmediatePropagationStopped=t,n.stopPropagation()},n.isImmediatePropagationStopped=e,n.clientX!==null&&n.clientX!==void 0){var a=document_1.documentElement,u=document_1.body;n.pageX=n.clientX+(a&&a.scrollLeft||u&&u.scrollLeft||0)-(a&&a.clientLeft||u&&u.clientLeft||0),n.pageY=n.clientY+(a&&a.scrollTop||u&&u.scrollTop||0)-(a&&a.clientTop||u&&u.clientTop||0)}n.which=n.charCode||n.keyCode,n.button!==null&&n.button!==void 0&&(n.button=1&n.button?0:4&n.button?1:2&n.button?2:0)}return n}function on(n,t,e){if(Array.isArray(t))return _handleMultipleEvents(on,n,t,e);var r=getData(n);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),e.guid||(e.guid=newGUID()),r.handlers[t].push(e),r.dispatcher||(r.disabled=!1,r.dispatcher=function(a,u){if(!r.disabled){a=fixEvent(a);var l=r.handlers[a.type];if(l)for(var c=l.slice(0),h=0,p=c.length;h<p&&(!a.isImmediatePropagationStopped||!a.isImmediatePropagationStopped());h++)try{c[h].call(n,a,u)}catch(d){log$2.error(d)}}}),r.handlers[t].length===1)if(n.addEventListener){var s=!1;_supportsPassive&&passiveEvents.indexOf(t)>-1&&(s={passive:!0}),n.addEventListener(t,r.dispatcher,s)}else n.attachEvent&&n.attachEvent("on"+t,r.dispatcher)}function off(n,t,e){if(hasData(n)){var r=getData(n);if(r.handlers){if(Array.isArray(t))return _handleMultipleEvents(off,n,t,e);var s=function(c,h){r.handlers[h]=[],_cleanUpEvents(c,h)};if(t!==void 0){var a=r.handlers[t];if(a){if(!e)return void s(n,t);if(e.guid)for(var u=0;u<a.length;u++)a[u].guid===e.guid&&a.splice(u--,1);_cleanUpEvents(n,t)}}else for(var l in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},l)&&s(n,l)}}}function trigger(n,t,e){if(!n)return!1;var r=hasData(n)?getData(n):{},s=n.parentNode||n.ownerDocument;if(typeof t=="string"&&(t={type:t,target:n}),t=fixEvent(t),r.dispatcher&&r.dispatcher.call(n,t,e),s&&!t.isPropagationStopped()&&t.bubbles===!0)trigger.call(null,s,t,e);else if(!s&&!t.defaultPrevented){var a=getData(t.target);t.target[t.type]&&(a.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function one(n,t,e){if(Array.isArray(t))return _handleMultipleEvents(one,n,t,e);var r=function s(){off(n,t,s),e.apply(this,arguments)};r.guid=e.guid=e.guid||newGUID(),on(n,t,r)}function autoSetupTimeout(n,t){t&&(videojs$2=t),window_1.setTimeout(autoSetup,n)}function evented(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=t.eventBusKey;if(e){if(!n[e].nodeName)throw new Error('The eventBusKey "'+e+'" does not refer to an element.');n.eventBusEl_=n[e]}else n.eventBusEl_=createEl("span",{className:"vjs-event-bus"});return assign(n,EventedMixin),n.on("dispose",function(){n.off(),window_1.setTimeout(function(){n.eventBusEl_=null},0)}),n}function stateful(n,t){return assign(n,StatefulMixin),n.state=assign({},n.state,t),typeof n.handleStateChanged=="function"&&isEvented(n)&&n.on("statechanged",n.handleStateChanged),n}function toTitleCase(n){return typeof n!="string"?n:n.charAt(0).toUpperCase()+n.slice(1)}function titleCaseEquals(n,t){return toTitleCase(n)===toTitleCase(t)}function mergeOptions(){for(var n={},t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.forEach(function(s){s&&each(s,function(a,u){if(!isPlain(a))return void(n[u]=a);isPlain(n[u])||(n[u]={}),n[u]=mergeOptions(n[u],a)})}),n}function extend(){var n,t,e,r,s,a,u=arguments[0]||{},l=1,c=arguments.length,h=!1;for(typeof u=="boolean"&&(h=u,u=arguments[l]||{},l++),(u===void 0?"undefined":_typeof(u))==="object"||isFunction(u)||(u={}),l===c&&(u=this,l--);l<c;l++)if((n=arguments[l])!=null)for(t in n)e=u[t],r=n[t],u!==r&&(h&&r&&(isPlain(r)||(s=Array.isArray(r)))?(s?(s=!1,a=e&&Array.isArray(e)?e:[]):a=e&&isPlain(e)?e:{},u[t]=extend(h,a,r)):r!==void 0&&(u[t]=r));return u}function getRawTag(n){var t=hasOwnProperty.call(n,symToStringTag$1),e=n[symToStringTag$1];try{n[symToStringTag$1]=void 0;var r=!0}catch{}var s=nativeObjectToString.call(n);return r&&(t?n[symToStringTag$1]=e:delete n[symToStringTag$1]),s}function objectToString(n){return nativeObjectToString$1.call(n)}function baseGetTag(n){return n==null?n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(n)?_getRawTag(n):_objectToString(n)}function isObjectLike(n){return n!=null&&typeof n=="object"}function isSymbol(n){return typeof n=="symbol"||isObjectLike_1(n)&&_baseGetTag(n)==symbolTag}function isKey(n,t){if(isArray_1(n))return!1;var e=typeof n;return!(e!="number"&&e!="symbol"&&e!="boolean"&&n!=null&&!isSymbol_1(n))||reIsPlainProp.test(n)||!reIsDeepProp.test(n)||t!=null&&n in Object(t)}function isObject$2(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}function isFunction$1(n){if(!isObject_1(n))return!1;var t=_baseGetTag(n);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}function isMasked(n){return!!maskSrcKey&&maskSrcKey in n}function toSource(n){if(n!=null){try{return funcToString$1.call(n)}catch{}try{return n+""}catch{}}return""}function baseIsNative(n){return!(!isObject_1(n)||_isMasked(n))&&(isFunction_1(n)?reIsNative:reIsHostCtor).test(_toSource(n))}function getValue(n,t){return n==null?void 0:n[t]}function getNative(n,t){var e=_getValue(n,t);return _baseIsNative(e)?e:void 0}function hashClear(){this.__data__=_nativeCreate?_nativeCreate(null):{},this.size=0}function hashDelete(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function hashGet(n){var t=this.__data__;if(_nativeCreate){var e=t[n];return e===HASH_UNDEFINED?void 0:e}return hasOwnProperty$2.call(t,n)?t[n]:void 0}function hashHas(n){var t=this.__data__;return _nativeCreate?t[n]!==void 0:hasOwnProperty$3.call(t,n)}function hashSet(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=_nativeCreate&&t===void 0?HASH_UNDEFINED$1:t,this}function Hash(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function listCacheClear(){this.__data__=[],this.size=0}function eq(n,t){return n===t||n!==n&&t!==t}function assocIndexOf(n,t){for(var e=n.length;e--;)if(eq_1(n[e][0],t))return e;return-1}function listCacheDelete(n){var t=this.__data__,e=_assocIndexOf(t,n);return!(e<0)&&(e==t.length-1?t.pop():splice.call(t,e,1),--this.size,!0)}function listCacheGet(n){var t=this.__data__,e=_assocIndexOf(t,n);return e<0?void 0:t[e][1]}function listCacheHas(n){return _assocIndexOf(this.__data__,n)>-1}function listCacheSet(n,t){var e=this.__data__,r=_assocIndexOf(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this}function ListCache(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function mapCacheClear(){this.size=0,this.__data__={hash:new _Hash,map:new(_Map||_ListCache),string:new _Hash}}function isKeyable(n){var t=typeof n;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?n!=="__proto__":n===null}function getMapData(n,t){var e=n.__data__;return _isKeyable(t)?e[typeof t=="string"?"string":"hash"]:e.map}function mapCacheDelete(n){var t=_getMapData(this,n).delete(n);return this.size-=t?1:0,t}function mapCacheGet(n){return _getMapData(this,n).get(n)}function mapCacheHas(n){return _getMapData(this,n).has(n)}function mapCacheSet(n,t){var e=_getMapData(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this}function MapCache(n){var t=-1,e=n==null?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function memoize(n,t){if(typeof n!="function"||t!=null&&typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT);var e=function(){var r=arguments,s=t?t.apply(this,r):r[0],a=e.cache;if(a.has(s))return a.get(s);var u=n.apply(this,r);return e.cache=a.set(s,u)||a,u};return e.cache=new(memoize.Cache||_MapCache),e}function memoizeCapped(n){var t=memoize_1(n,function(r){return e.size===MAX_MEMOIZE_SIZE&&e.clear(),r}),e=t.cache;return t}function arrayMap(n,t){for(var e=-1,r=n==null?0:n.length,s=Array(r);++e<r;)s[e]=t(n[e],e,n);return s}function baseToString(n){if(typeof n=="string")return n;if(isArray_1(n))return _arrayMap(n,baseToString)+"";if(isSymbol_1(n))return symbolToString?symbolToString.call(n):"";var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function toString$1(n){return n==null?"":_baseToString(n)}function castPath(n,t){return isArray_1(n)?n:_isKey(n,t)?[n]:_stringToPath(toString_1(n))}function toKey(n){if(typeof n=="string"||isSymbol_1(n))return n;var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}function baseGet(n,t){t=_castPath(t,n);for(var e=0,r=t.length;n!=null&&e<r;)n=n[_toKey(t[e++])];return e&&e==r?n:void 0}function get$1(n,t,e){var r=n==null?void 0:_baseGet(n,t);return r===void 0?e:r}function getParams(n,t){var e=t.split("?")[1];if(e){var r=new RegExp("(^|&)"+n+"=([^&]*)(&|$)","i"),s=e.match(r);return s!=null?decodeURIComponent(s[2]):null}}function guid(){function n(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()}function unifyProtocol(n){n=n.replace(/^(http|https):/,"");var t=window.location.protocol;return t!="http:"&&t!="https:"&&(t="https:"),n=t+n}function convertProtocol(n){var t=[];if(n.indexOf(".sdp")>-1)n=n.replace(".sdp",".flv"),t.push(n.replace(".sdp",".m3u8"));else{var e=n.replace("webrtc://","https://").replace("?",".flv?");e.indexOf("?")===-1&&e.indexOf(".flv")===-1&&(e+=".flv");var r=n.replace("webrtc://","https://").replace("?",".m3u8?");r.indexOf("?")===-1&&r.indexOf(".m3u8")===-1&&(r+=".m3u8"),t.push(r)}return t}function replaceHost(n,t){var e=/^http(s)?:\/\/(.*?)\//,r=n.match(e);return n.replace(r[2],t)}function getViewportSize(){var n=document,t=n.documentElement,e=n.body;return{width:t&&t.clientWidth||e&&e.offsetWidth||window.innerWidth||0,height:t&&t.clientHeight||e&&e.offsetHeight||window.innerHeight||0}}function getTimeStamp(){return new Date().getTime()}function getTimeStampBySecond(){return Date.parse(new Date)/1e3}function loadCssText(n,t){var e=document.getElementById(n);if(e)e.innerHTML=t;else{var r=document.createElement("style");r.id=n,r.type="text/css",r.appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(r)}}function releaseCssText(n){var t=document.getElementById(n);t&&t.remove()}function loadScript(n,t,e){var r=arguments.length>3&&arguments[3]!==void 0&&arguments[3],s=document.createElement("script");s.onload=s.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof t=="function"&&t(),s.onload=s.onreadystatechange=null,s.parentNode&&!r&&s.parentNode.removeChild(s))},s.onerror=function(a){t(!0)},s.src=n,document.getElementsByTagName("head")[0].appendChild(s)}function serializeParams(n){var t=[],e=function(r,s){s=typeof s=="function"?s():s,s=s===null||s===void 0?"":s,t[t.length]=encodeURIComponent(r)+"="+encodeURIComponent(s)};return(function r(s,a){var u=void 0,l=void 0,c=void 0;if(s)if(Array.isArray(a))for(u=0,l=a.length;u<l;u++)r(s+"["+(_typeof(a[u])==="object"&&a[u]?u:"")+"]",a[u]);else if(String(a)==="[object Object]")for(c in a)r(s+"["+c+"]",a[c]);else e(s,a);else if(Array.isArray(a))for(u=0,l=a.length;u<l;u++)e(a[u].name,a[u].value);else for(c in a)r(c,a[c]);return t})("",n).join("&")}function encodeHTML(n){return n.length?String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/\'/g,"'").replace(/\//g,"/"):""}function isWebrtcUrl(n){return/webrtc:\/\//.test(n)||/\.sdp/.test(n)}function getperformance(){return window.performance||window.msPerformance||window.webkitPerformance||{}}function arrangeWebrtcSource(n,t){var e=getParams("tabr_bitrates",n),r=getParams("tabr_start_bitrate",n),s=getParams("tabr_control",n)==="auto";n=n.replace("&tabr_control=auto","");var a=[],u=[];if(e&&r){if(u=e.split(",").map(function(p){var d,y=t.webrtcConfig.abrLabels[p]||p;return a.push(y),d={},d[y]=[{src:n.replace("tabr_start_bitrate="+r,"tabr_start_bitrate="+p)}],d}),s){var l;u.push((l={},l[t.webrtcConfig.abrLabels.auto||"AUTO"]=[{src:n+"&tabr_control=auto"}],l)),a.push(t.webrtcConfig.abrLabels.auto||"AUTO")}var c={};u.forEach(function(p){for(var d in p)c[d]=p[d]}),t.showOrder=a,t.defaultRes=s?t.webrtcConfig.abrLabels.auto||"AUTO":t.webrtcConfig.abrLabels[r]||r||a[0];var h={};a.forEach(function(p){h[p]=t.webrtcConfig.abrLabels[p]||p}),t.labels=h,t.label=h,t.sources=[],t.multiResolution={sources:c}}}function rangeCheck(n,t,e){if(typeof t!="number"||t<0||t>e)throw new Error("Failed to execute '"+n+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+e+").")}function getRange(n,t,e,r){return rangeCheck(n,r,e.length-1),e[r][t]}function createTimeRangesObj(n){return n===void 0||n.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:n.length,start:getRange.bind(null,"start",0,n),end:getRange.bind(null,"end",1,n)}}function createTimeRanges(n,t){return Array.isArray(n)?createTimeRangesObj(n):n===void 0||t===void 0?createTimeRangesObj():createTimeRangesObj([[n,t]])}function bufferedPercent(n,t){var e=0,r=void 0,s=void 0;if(!t)return 0;n&&n.length||(n=createTimeRanges(0,0));for(var a=0;a<n.length;a++)r=n.start(a),s=n.end(a),s>t&&(s=t),e+=s-r;return e/t}function MediaError(n){if(n instanceof MediaError)return n;typeof n=="number"?this.code=n:typeof n=="string"?this.message=n:isObject$1(n)&&(typeof n.code=="number"&&(this.code=n.code),assign(this,n)),this.message||(this.message=MediaError.defaultMessages[this.code]||"")}function SafeParseTuple(n,t){var e,r=null;try{e=JSON.parse(n,t)}catch(s){r=s}return[r,e]}function isPromise(n){return n!==void 0&&typeof n.then=="function"}function silencePromise(n){isPromise(n)&&n.then(null,function(t){})}function isFunction$3(n){if(!n)return!1;var t=toString$3.call(n);return t==="[object Function]"||typeof n=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(n===window.setTimeout||n===window.alert||n===window.confirm||n===window.prompt)}function extend$1(){for(var n={},t=0;t<arguments.length;t++){var e=arguments[t];for(var r in e)hasOwnProperty$4.call(e,r)&&(n[r]=e[r])}return n}function forEachArray(n,t){for(var e=0;e<n.length;e++)t(n[e])}function isEmpty(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function initParams(n,t,e){var r=n;return isFunction_1$2(t)?(e=t,typeof n=="string"&&(r={uri:n})):r=immutable(t,{uri:n}),r.callback=e,r}function createXHR(n,t,e){return t=initParams(n,t,e),_createXHR(t)}function _createXHR(n){function t(){l.readyState===4&&setTimeout(s,0)}function e(){var U=void 0;if(U=l.response?l.response:l.responseText||getXml(l),C)try{U=JSON.parse(U)}catch{}return U}function r(U){return clearTimeout(p),U instanceof Error||(U=new Error(""+(U||"Unknown XMLHttpRequest Error"))),U.statusCode=0,u(U,k)}function s(){if(!h){var U;clearTimeout(p),U=n.useXDR&&l.status===void 0?200:l.status===1223?204:l.status;var M=k,V=null;return U!==0?(M={body:e(),statusCode:U,method:y,headers:{},url:d,rawRequest:l},l.getAllResponseHeaders&&(M.headers=parseHeaders(l.getAllResponseHeaders()))):V=new Error("Internal XMLHttpRequest Error"),u(V,M,M.body)}}if(typeof n.callback>"u")throw new Error("callback argument missing");var a=!1,u=function(U,M,V){a||(a=!0,n.callback(U,M,V))},l=n.xhr||null;l||(l=n.cors||n.useXDR?new createXHR.XDomainRequest:new createXHR.XMLHttpRequest);var c,h,p,d=l.url=n.uri||n.url,y=l.method=n.method||"GET",g=n.body||n.data,v=l.headers=n.headers||{},S=!!n.sync,C=!1,k={body:void 0,headers:{},statusCode:0,method:y,url:d,rawRequest:l};if("json"in n&&n.json!==!1&&(C=!0,v.accept||v.Accept||(v.Accept="application/json"),y!=="GET"&&y!=="HEAD"&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),g=JSON.stringify(n.json===!0?g:n.json))),l.onreadystatechange=t,l.onload=s,l.onerror=r,l.onprogress=function(){},l.onabort=function(){h=!0},l.ontimeout=r,l.open(y,d,!S,n.username,n.password),S||(l.withCredentials=!!n.withCredentials),!S&&n.timeout>0&&(p=setTimeout(function(){if(!h){h=!0,l.abort("timeout");var U=new Error("XMLHttpRequest timeout");U.code="ETIMEDOUT",r(U)}},n.timeout)),l.setRequestHeader)for(c in v)v.hasOwnProperty(c)&&l.setRequestHeader(c,v[c]);else if(n.headers&&!isEmpty(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(l.responseType=n.responseType),"beforeSend"in n&&typeof n.beforeSend=="function"&&n.beforeSend(l),l.send(g||null),l}function getXml(n){if(n.responseType==="document")return n.responseXML;var t=n.responseXML&&n.responseXML.documentElement.nodeName==="parsererror";return n.responseType!==""||t?null:n.responseXML}function noop(){}function ParsingError(n,t){this.name="ParsingError",this.code=n.code,this.message=t||n.message}function parseTimeStamp(n){function t(r,s,a,u){return 3600*(0|r)+60*(0|s)+(0|a)+(0|u)/1e3}var e=n.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(n,t,e,r){var s=r?n.split(r):[n];for(var a in s)if(typeof s[a]=="string"){var u=s[a].split(e);if(u.length===2){var l=u[0],c=u[1];t(l,c)}}}function parseCue(n,t,e){function r(){var u=parseTimeStamp(n);if(u===null)throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed timestamp: "+a);return n=n.replace(/^[^\sa-zA-Z-]+/,""),u}function s(){n=n.replace(/^\s+/,"")}var a=n;if(s(),t.startTime=r(),s(),n.substr(0,3)!=="-->")throw new ParsingError(ParsingError.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+a);n=n.substr(3),s(),t.endTime=r(),s(),(function(u,l){var c=new Settings;parseOptions(u,function(h,p){switch(h){case"region":for(var d=e.length-1;d>=0;d--)if(e[d].id===p){c.set(h,e[d].region);break}break;case"vertical":c.alt(h,p,["rl","lr"]);break;case"line":var y=p.split(","),g=y[0];c.integer(h,g),c.percent(h,g)&&c.set("snapToLines",!1),c.alt(h,g,["auto"]),y.length===2&&c.alt("lineAlign",y[1],["start","middle","end"]);break;case"position":y=p.split(","),c.percent(h,y[0]),y.length===2&&c.alt("positionAlign",y[1],["start","middle","end"]);break;case"size":c.percent(h,p);break;case"align":c.alt(h,p,["start","middle","end","left","right"])}},/:/,/\s/),l.region=c.get("region",null),l.vertical=c.get("vertical",""),l.line=c.get("line","auto"),l.lineAlign=c.get("lineAlign","start"),l.snapToLines=c.get("snapToLines",!0),l.size=c.get("size",100),l.align=c.get("align","middle"),l.position=c.get("position",{start:0,left:0,middle:50,end:100,right:100},l.align),l.positionAlign=c.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},l.align)})(n,t)}function parseContent(n,t){function e(p){return ESCAPE[p]}for(var r,s=n.document.createElement("div"),a=s,u=[];(r=(function(){if(!t)return null;var p=t.match(/^([^<]*)(<[^>]+>?)?/);return(function(d){return t=t.substr(d.length),d})(p[1]?p[1]:p[2])})())!==null;)if(r[0]!=="<")a.appendChild(n.document.createTextNode((function(p){for(;h=p.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)p=p.replace(h[0],e);return p})(r)));else{if(r[1]==="/"){u.length&&u[u.length-1]===r.substr(2).replace(">","")&&(u.pop(),a=a.parentNode);continue}var l,c=parseTimeStamp(r.substr(1,r.length-2));if(c){l=n.document.createProcessingInstruction("timestamp",c),a.appendChild(l);continue}var h=r.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||!(l=(function(p,d){var y=TAG_NAME[p];if(!y)return null;var g=n.document.createElement(y);g.localName=y;var v=TAG_ANNOTATION[p];return v&&d&&(g[v]=d.trim()),g})(h[1],h[3]))||!(function(p,d){return!NEEDS_PARENT[d.localName]||NEEDS_PARENT[d.localName]===p.localName})(a,l))continue;h[2]&&(l.className=h[2].substr(1).replace("."," ")),u.push(h[1]),a.appendChild(l),a=l}return s}function isStrongRTLChar(n){for(var t=0;t<strongRTLRanges.length;t++){var e=strongRTLRanges[t];if(n>=e[0]&&n<=e[1])return!0}return!1}function determineBidi(n){function t(l,c){for(var h=c.childNodes.length-1;h>=0;h--)l.push(c.childNodes[h])}function e(l){if(!l||!l.length)return null;var c=l.pop(),h=c.textContent||c.innerText;if(h){var p=h.match(/^.*(\n|\r)/);return p?(l.length=0,p[0]):h}return c.tagName==="ruby"?e(l):c.childNodes?(t(l,c),e(l)):void 0}var r,s=[],a="";if(!n||!n.childNodes)return"ltr";for(t(s,n);a=e(s);)for(var u=0;u<a.length;u++)if(r=a.charCodeAt(u),isStrongRTLChar(r))return"rtl";return"ltr"}function computeLinePos(n){if(typeof n.line=="number"&&(n.snapToLines||n.line>=0&&n.line<=100))return n.line;if(!n.track||!n.track.textTrackList||!n.track.textTrackList.mediaElement)return-1;for(var t=n.track,e=t.textTrackList,r=0,s=0;s<e.length&&e[s]!==t;s++)e[s].mode==="showing"&&r++;return-1*++r}function StyleBox(){}function CueStyleBox(n,t,e){var r=/MSIE\s8\.0/.test(navigator.userAgent),s="rgba(255, 255, 255, 1)",a="rgba(0, 0, 0, 0.8)";r&&(s="rgb(255, 255, 255)",a="rgb(0, 0, 0)"),StyleBox.call(this),this.cue=t,this.cueDiv=parseContent(n,t.text);var u={color:s,backgroundColor:a,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};r||(u.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",u.unicodeBidi="plaintext"),this.applyStyles(u,this.cueDiv),this.div=n.document.createElement("div"),u={textAlign:t.align==="middle"?"center":t.align,font:e.font,whiteSpace:"pre-line",position:"absolute"},r||(u.direction=determineBidi(this.cueDiv),u.writingMode=t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(u),this.div.appendChild(this.cueDiv);var l=0;switch(t.positionAlign){case"start":l=t.position;break;case"middle":l=t.position-t.size/2;break;case"end":l=t.position-t.size}t.vertical===""?this.applyStyles({left:this.formatStyle(l,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(l,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(c){this.applyStyles({top:this.formatStyle(c.top,"px"),bottom:this.formatStyle(c.bottom,"px"),left:this.formatStyle(c.left,"px"),right:this.formatStyle(c.right,"px"),height:this.formatStyle(c.height,"px"),width:this.formatStyle(c.width,"px")})}}function BoxPosition(n){var t,e,r,s,a=/MSIE\s8\.0/.test(navigator.userAgent);if(n.div){e=n.div.offsetHeight,r=n.div.offsetWidth,s=n.div.offsetTop;var u=(u=n.div.childNodes)&&(u=u[0])&&u.getClientRects&&u.getClientRects();n=n.div.getBoundingClientRect(),t=u?Math.max(u[0]&&u[0].height||0,n.height/u.length):0}this.left=n.left,this.right=n.right,this.top=n.top||s,this.height=n.height||e,this.bottom=n.bottom||s+(n.height||e),this.width=n.width||r,this.lineHeight=t!==void 0?t:n.lineHeight,a&&!this.lineHeight&&(this.lineHeight=13)}function moveBoxToLinePosition(n,t,e,r){var s=new BoxPosition(t),a=t.cue,u=computeLinePos(a),l=[];if(a.snapToLines){var c;switch(a.vertical){case"":l=["+y","-y"],c="height";break;case"rl":l=["+x","-x"],c="width";break;case"lr":l=["-x","+x"],c="width"}var h=s.lineHeight,p=h*Math.round(u),d=e[c]+h,y=l[0];Math.abs(p)>d&&(p=p<0?-1:1,p*=Math.ceil(d/h)*h),u<0&&(p+=a.vertical===""?e.height:e.width,l=l.reverse()),s.move(y,p)}else{var g=s.lineHeight/e.height*100;switch(a.lineAlign){case"middle":u-=g/2;break;case"end":u-=g}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(u,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(u,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(u,"%")})}l=["+y","-x","+x","-y"],s=new BoxPosition(t)}var v=(function(S,C){for(var k,U=new BoxPosition(S),M=1,V=0;V<C.length;V++){for(;S.overlapsOppositeAxis(e,C[V])||S.within(e)&&S.overlapsAny(r);)S.move(C[V]);if(S.within(e))return S;var I=S.intersectPercentage(e);M>I&&(k=new BoxPosition(S),M=I),S=new BoxPosition(U)}return k||U})(s,l);t.move(v.toCSSCompatValues(e))}function WebVTT$1(){}function findDirectionSetting(n){return typeof n=="string"&&!!directionSetting[n.toLowerCase()]&&n.toLowerCase()}function findAlignSetting(n){return typeof n=="string"&&!!alignSetting[n.toLowerCase()]&&n.toLowerCase()}function extend$2(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)n[r]=e[r]}return n}function VTTCue(n,t,e){var r=this,s=/MSIE\s8\.0/.test(navigator.userAgent),a={};s?r=document.createElement("custom"):a.enumerable=!0,r.hasBeenReset=!1;var u="",l=!1,c=n,h=t,p=e,d=null,y="",g=!0,v="auto",S="start",C=50,k="middle",U=50,M="middle";if(Object.defineProperty(r,"id",extend$2({},a,{get:function(){return u},set:function(V){u=""+V}})),Object.defineProperty(r,"pauseOnExit",extend$2({},a,{get:function(){return l},set:function(V){l=!!V}})),Object.defineProperty(r,"startTime",extend$2({},a,{get:function(){return c},set:function(V){if(typeof V!="number")throw new TypeError("Start time must be set to a number.");c=V,this.hasBeenReset=!0}})),Object.defineProperty(r,"endTime",extend$2({},a,{get:function(){return h},set:function(V){if(typeof V!="number")throw new TypeError("End time must be set to a number.");h=V,this.hasBeenReset=!0}})),Object.defineProperty(r,"text",extend$2({},a,{get:function(){return p},set:function(V){p=""+V,this.hasBeenReset=!0}})),Object.defineProperty(r,"region",extend$2({},a,{get:function(){return d},set:function(V){d=V,this.hasBeenReset=!0}})),Object.defineProperty(r,"vertical",extend$2({},a,{get:function(){return y},set:function(V){var I=findDirectionSetting(V);if(I===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=I,this.hasBeenReset=!0}})),Object.defineProperty(r,"snapToLines",extend$2({},a,{get:function(){return g},set:function(V){g=!!V,this.hasBeenReset=!0}})),Object.defineProperty(r,"line",extend$2({},a,{get:function(){return v},set:function(V){if(typeof V!="number"&&V!==autoKeyword)throw new SyntaxError("An invalid number or illegal string was specified.");v=V,this.hasBeenReset=!0}})),Object.defineProperty(r,"lineAlign",extend$2({},a,{get:function(){return S},set:function(V){var I=findAlignSetting(V);if(!I)throw new SyntaxError("An invalid or illegal string was specified.");S=I,this.hasBeenReset=!0}})),Object.defineProperty(r,"position",extend$2({},a,{get:function(){return C},set:function(V){if(V<0||V>100)throw new Error("Position must be between 0 and 100.");C=V,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",extend$2({},a,{get:function(){return k},set:function(V){var I=findAlignSetting(V);if(!I)throw new SyntaxError("An invalid or illegal string was specified.");k=I,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",extend$2({},a,{get:function(){return U},set:function(V){if(V<0||V>100)throw new Error("Size must be between 0 and 100.");U=V,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",extend$2({},a,{get:function(){return M},set:function(V){var I=findAlignSetting(V);if(!I)throw new SyntaxError("An invalid or illegal string was specified.");M=I,this.hasBeenReset=!0}})),r.displayState=void 0,s)return r}function findScrollSetting(n){return typeof n=="string"&&!!scrollSetting[n.toLowerCase()]&&n.toLowerCase()}function isValidPercentValue(n){return typeof n=="number"&&n>=0&&n<=100}function VTTRegion(){var n=100,t=3,e=0,r=100,s=0,a=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return n},set:function(l){if(!isValidPercentValue(l))throw new Error("Width must be between 0 and 100.");n=l}},lines:{enumerable:!0,get:function(){return t},set:function(l){if(typeof l!="number")throw new TypeError("Lines must be set to a number.");t=l}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(l){if(!isValidPercentValue(l))throw new Error("RegionAnchorX must be between 0 and 100.");r=l}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(l){if(!isValidPercentValue(l))throw new Error("RegionAnchorY must be between 0 and 100.");e=l}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(l){if(!isValidPercentValue(l))throw new Error("ViewportAnchorY must be between 0 and 100.");a=l}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(l){if(!isValidPercentValue(l))throw new Error("ViewportAnchorX must be between 0 and 100.");s=l}},scroll:{enumerable:!0,get:function(){return u},set:function(l){var c=findScrollSetting(l);if(c===!1)throw new SyntaxError("An invalid or illegal string was specified.");u=c}}})}function createTrackHelper(n,t,e,r){var s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},a=n.textTracks();s.kind=t,e&&(s.label=e),r&&(s.language=r),s.tech=n;var u=new ALL.text.TrackClass(s);return a.addTrack(u),u}function use(n,t){middlewares[n]=middlewares[n]||[],middlewares[n].push(t)}function setSource(n,t,e){n.setTimeout(function(){return setSourceHelper(t,middlewares[t.type],e,n)},1)}function setTech(n,t){n.forEach(function(e){return e.setTech&&e.setTech(t)})}function get$3(n,t,e){return n.reduceRight(middlewareIterator(e),t[e]())}function set$1(n,t,e,r){return t[e](n.reduce(middlewareIterator(e),r))}function middlewareIterator(n){return function(t,e){return e[n]?e[n](t):t}}function setSourceHelper(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=arguments[2],r=arguments[3],s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0&&arguments[5],u=t[0],l=t.slice(1);if(typeof u=="string")setSourceHelper(n,middlewares[u],e,r,s,a);else if(u){var c=u(r);c.setSource(assign({},n),function(h,p){if(h)return setSourceHelper(n,l,e,r,s,a);s.push(c),setSourceHelper(p,n.type===p.type?l:middlewares[p.type],e,r,s,a)})}else l.length?setSourceHelper(n,l,e,r,s,a):a?e(n,s):setSourceHelper(n,middlewares["*"],e,r,s,!0)}function constructColor(n,t){return"rgba("+parseInt(n[1]+n[1],16)+","+parseInt(n[2]+n[2],16)+","+parseInt(n[3]+n[3],16)+","+t+")"}function tryUpdateStyle(n,t,e){try{n.style[t]=e}catch{return}}function formatTime(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n;n=n<0?0:n;var e=Math.floor(n%60),r=Math.floor(n/60%60),s=Math.floor(n/3600),a=Math.floor(t/60%60),u=Math.floor(t/3600);return(isNaN(n)||n===1/0)&&(s=r=e="-"),s=s>0||u>0?s+":":"",r=((s||a>=10)&&r<10?"0"+r:r)+":",e=e<10?"0"+e:e,s+r+e}function formatDate(n,t){if(!n)return"";var e=new Date(n),r=e.getFullYear(),s=e.getMonth()+1,a=e.getDate(),u=e.getHours(),l=e.getMinutes();return e.getSeconds(),r+"/"+s+"/"+a+" "+u+":"+(l<10?"0"+l:l)}function parseOptionValue(n,t){if(t&&(n=t(n)),n&&n!=="none")return n}function getSelectedOptionValue(n,t){return parseOptionValue(n.options[n.options.selectedIndex].value,t)}function setSelectedOption(n,t,e){if(t){for(var r=0;r<n.options.length;r++)if(parseOptionValue(n.options[r].value,e)===t){n.selectedIndex=r;break}}}function videojs(n,t,e){var r=void 0;if(typeof n=="string"){var s=videojs.getPlayers();if(n.indexOf("#")===0&&(n=n.slice(1)),s[n])return t&&log$2.warn('Player "'+n+'" is already initialised. Options will not be applied.'),e&&s[n].ready(e),s[n];r=$("#"+n)}else r=n;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(r.player||Player.players[r.playerId])return r.player||Player.players[r.playerId];isEl(r)&&!document_1.body.contains(r)&&log$2.warn("The element supplied is not included in the DOM"),t=t||{},videojs.hooks("beforesetup").forEach(function(l){var c=l(r,mergeOptions(t));if(!isObject$1(c)||Array.isArray(c))return void log$2.error("please return an object in beforesetup hooks");t=mergeOptions(t,c)});var a=Component.getComponent("Player"),u=new a(r,t,e);return videojs.hooks("setup").forEach(function(l){return l(u)}),u}function toObject(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function shouldUseNative(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var t={},e=0;e<10;e++)t["_"+String.fromCharCode(e)]=e;if(Object.getOwnPropertyNames(t).map(function(s){return t[s]}).join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(s){r[s]=s}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}function decodeComponents(n,t){try{return decodeURIComponent(n.join(""))}catch{}if(n.length===1)return n;t=t||1;var e=n.slice(0,t),r=n.slice(t);return Array.prototype.concat.call([],decodeComponents(e),decodeComponents(r))}function decode(n){try{return decodeURIComponent(n)}catch{for(var t=n.match(singleMatcher),e=1;e<t.length;e++)n=decodeComponents(t,e).join(""),t=n.match(singleMatcher);return n}}function customDecodeURIComponent(n){for(var t={"%FE%FF":"��","%FF%FE":"��"},e=multiMatcher.exec(n);e;){try{t[e[0]]=decodeURIComponent(e[0])}catch{var r=decode(e[0]);r!==e[0]&&(t[e[0]]=r)}e=multiMatcher.exec(n)}t["%C2"]="�";for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a];n=n.replace(new RegExp(u,"g"),t[u])}return n}function encoderForArrayFormat(n){switch(n.arrayFormat){case"index":return function(t,e,r){return e===null?[encode(t,n),"[",r,"]"].join(""):[encode(t,n),"[",encode(r,n),"]=",encode(e,n)].join("")};case"bracket":return function(t,e){return e===null?encode(t,n):[encode(t,n),"[]=",encode(e,n)].join("")};default:return function(t,e){return e===null?encode(t,n):[encode(t,n),"=",encode(e,n)].join("")}}}function parserForArrayFormat(n){var t;switch(n.arrayFormat){case"index":return function(e,r,s){if(t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!t)return void(s[e]=r);s[e]===void 0&&(s[e]={}),s[e][t[1]]=r};case"bracket":return function(e,r,s){return t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?s[e]===void 0?void(s[e]=[r]):void(s[e]=[].concat(s[e],r)):void(s[e]=r)};default:return function(e,r,s){if(s[e]===void 0)return void(s[e]=r);s[e]=[].concat(s[e],r)}}}function encode(n,t){return t.encode?t.strict?strictUriEncode(n):encodeURIComponent(n):n}function keysSorter(n){return Array.isArray(n)?n.sort():typeof n=="object"?keysSorter(Object.keys(n)).sort(function(t,e){return Number(t)-Number(e)}).map(function(t){return n[t]}):n}function extract(n){var t=n.indexOf("?");return t===-1?"":n.slice(t+1)}function parse(n,t){t=objectAssign({arrayFormat:"none"},t);var e=parserForArrayFormat(t),r=Object.create(null);return typeof n!="string"?r:(n=n.trim().replace(/^[?#&]/,""))?(n.split("&").forEach(function(s){var a=s.replace(/\+/g," ").split("="),u=a.shift(),l=a.length>0?a.join("="):void 0;l=l===void 0?null:decodeUriComponent(l),e(decodeUriComponent(u),l,r)}),Object.keys(r).sort().reduce(function(s,a){var u=r[a];return u&&typeof u=="object"&&!Array.isArray(u)?s[a]=keysSorter(u):s[a]=u,s},Object.create(null))):r}function jsonp(n,t,e){function r(){h.parentNode&&h.parentNode.removeChild(h),window[l]="",p&&clearTimeout(p)}function s(){window[l]&&r()}typeof t=="function"&&(e=t,t={}),t||(t={});var a,u=t.prefix||"__jp",l=t.name||u+count++,c=t.funcKey||"callback";a=_typeof(t.param)=="object"?queryString.stringify(t.param):t.param;var h,p,d=t.timeout!=null?t.timeout:6e3,y=encodeURIComponent,g=document.getElementsByTagName("script")[0]||document.head;return d&&(p=setTimeout(function(){r(),e&&e(new Error("Timeout"))},d)),window[l]=function(v){r(),e&&e(null,v)},n+=(~n.indexOf("?")?"&":"?")+a+"&"+c+"="+y(l),n=n.replace("?&","?"),h=document.createElement("script"),h.setAttribute("src",n),h.setAttribute("async",!0),h.onload=function(v){},h.onreadystatechange=function(){this.readyState==="loaded"&&window[l]&&(r(),e&&e(new Error("ServerError")))},h.onerror=function(v){r(),e&&e(new Error("ServerError"))},g.parentNode.insertBefore(h,g),s}function mountHlsProvider(n){if(videojs.browser.IS_IOS&&videojs.browser.IS_MQQ||videojs.browser.IS_UC)return!1;if(videojs.browser.IS_ENABLED_MSE||videojs.browser.IS_SIMULATOR||n)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(HlsSourceHandler,0)}catch{}}function getTemplate(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"fill",e=n,r="draw-"+t;return[`<svg height="100%" width="100%" viewBox="0 0 484 348">
|
||
<path class="`+r+`" transform="translate(4 4)" d="M383,124C350-42,122.3-40.5,90.6,123.5c-110.4,18.5-131,185,.6,216.5H381.6C519.7,310.7,494.1,137.8,383,124Z"/>
|
||
<path transform="translate(4 4)" d="M200.4,110.2c-9.4-5.8-19.6,2.7-19.4,11.7V256.2c0,8,10.4,16.7,19.4,10.8,2.2-1.4,111.8-65.9,114-67.3,7.4-4,10.1-15.8,0-22.2Z" style="fill:#fff ;"/>
|
||
</svg>`,`<svg height="100%" width="100%" viewBox="0 0 476 340">
|
||
<path class="`+r+`" d="M383,124C350-42,122.3-40.5,90.6,123.5c-110.4,18.5-131,185,.6,216.5H381.6C519.7,310.7,494.1,137.8,383,124Z"/>
|
||
<path d="M200.4,110.2c-9.4-5.8-19.6,2.7-19.4,11.7V256.2c0,8,10.4,16.7,19.4,10.8,2.2-1.4,111.8-65.9,114-67.3,7.4-4,10.1-15.8,0-22.2Z" style="fill:#fff ;"/>
|
||
</svg>`,`<svg height="100%" width="100%" viewBox="0 14 96 68">
|
||
<path class="`+r+`" d="M96,44.3v7.3c-0.1,7.7-1,15.5-1,15.5s-0.9,6.6-3.8,9.5c-3.6,3.8-7.7,3.8-9.6,4c-13.4,1-33.5,0.9-33.5,0.9 c-0.8,0-25-0.2-32.5-0.9c-2.1-0.4-6.9-0.3-10.6-4.1c-2.9-2.9-3.8-9.5-3.8-9.5s-1-7.7-1.1-15.5v-7.3c0.2-7.8,1.1-15.5,1.1-15.5 s0.9-6.6,3.8-9.5c3.6-3.8,7.7-3.8,9.6-4.1c13.4-1,33.5-0.9,33.5-0.9s20.1-0.1,33.5,0.9c1.9,0.2,5.9,0.2,9.6,4.1 c2.9,2.9,3.8,9.5,3.8,9.5S95.9,36.6,96,44.3z M38.3,61.4L64,47.9L38.3,34.4V61.4z"/>
|
||
<polygon points="64,47.9 38.3,61.4 38.3,34.4" fill="#fff"/>
|
||
</svg>`][e]}function trimmedEndIndex(n){for(var t=n.length;t--&&reWhitespace.test(n.charAt(t)););return t}function baseTrim(n){return n&&n.slice(0,_trimmedEndIndex(n)+1).replace(reTrimStart,"")}function toNumber(n){if(typeof n=="number")return n;if(isSymbol_1(n))return NAN;if(isObject_1(n)){var t=typeof n.valueOf=="function"?n.valueOf():n;n=isObject_1(t)?t+"":t}if(typeof n!="string")return n===0?n:+n;n=_baseTrim(n);var e=reIsBinary.test(n);return e||reIsOctal.test(n)?freeParseInt(n.slice(2),e?2:8):reIsBadHex.test(n)?NAN:+n}function debounce(n,t,e){function r(m){var _=y,b=g;return y=g=void 0,U=m,S=n.apply(b,_)}function s(m){return U=m,C=setTimeout(l,t),M?r(m):S}function a(m){var _=m-k,b=m-U,E=t-_;return V?nativeMin(E,v-b):E}function u(m){var _=m-k,b=m-U;return k===void 0||_>=t||_<0||V&&b>=v}function l(){var m=now_1();if(u(m))return c(m);C=setTimeout(l,a(m))}function c(m){return C=void 0,I&&y?r(m):(y=g=void 0,S)}function h(){C!==void 0&&clearTimeout(C),U=0,y=k=g=C=void 0}function p(){return C===void 0?S:c(now_1())}function d(){var m=now_1(),_=u(m);if(y=arguments,g=this,k=m,_){if(C===void 0)return s(k);if(V)return clearTimeout(C),C=setTimeout(l,t),r(k)}return C===void 0&&(C=setTimeout(l,t)),S}var y,g,v,S,C,k,U=0,M=!1,V=!1,I=!0;if(typeof n!="function")throw new TypeError(FUNC_ERROR_TEXT$2);return t=toNumber_1(t)||0,isObject_1(e)&&(M=!!e.leading,V="maxWait"in e,v=V?nativeMax(toNumber_1(e.maxWait)||0,t):v,I="trailing"in e?!!e.trailing:I),d.cancel=h,d.flush=p,d}function throttle$1(n,t,e){var r=!0,s=!0;if(typeof n!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return isObject_1(e)&&(r="leading"in e?!!e.leading:r,s="trailing"in e?!!e.trailing:s),debounce_1(n,t,{leading:r,maxWait:t,trailing:s})}function baseIsArguments(n){return isObjectLike_1(n)&&_baseGetTag(n)==argsTag$1}function stubFalse(){return!1}function mountFlvProvider(n){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||n)try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(FlvSourceHandler,0)}catch{}}function mountWebRTCProvider(n){if(!videojs.browser.isWebRTCSupported())return!1;try{var t=videojs.getTech&&videojs.getTech("Html5");t&&t.registerSourceHandler(sourceHandler,0)}catch{}}function mountDashProvider(n){(window_1.MediaSource||n)&&videojs.getTech("Html5").registerSourceHandler(videojs.DashSourceHandler(),0)}function FlashRtmpDecorator(n){return n.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},n.streamFromParts=function(t,e){return t+"&"+e},n.streamToParts=function(t){var e={connection:"",stream:""};if(!t)return e;var r=t.search(/&(?!\w+=)/),s=void 0;return r!==-1?s=r+1:(r=s=t.lastIndexOf("/")+1)===0&&(r=s=t.length),e.connection=t.substring(0,r),e.stream=t.substring(s,t.length),e},n.isStreamingType=function(t){return t in n.streamingFormats},n.RTMP_RE=/^rtmp[set]?:\/\//i,n.isStreamingSrc=function(t){return n.RTMP_RE.test(t)},n.rtmpSourceHandler={},n.rtmpSourceHandler.canPlayType=function(t){return n.isStreamingType(t)?"maybe":""},n.rtmpSourceHandler.canHandleSource=function(t,e){var r=n.rtmpSourceHandler.canPlayType(t.type);return r||(n.isStreamingSrc(t.src)?"maybe":"")},n.rtmpSourceHandler.handleSource=function(t,e,r){var s=n.streamToParts(t.src);e.setRtmpConnection(s.connection),e.setRtmpStream(s.stream)},n.registerSourceHandler(n.rtmpSourceHandler),n}function _createSetter(n){var t=n.charAt(0).toUpperCase()+n.slice(1);_api["set"+t]=function(e){return this.el_.vjs_setProperty(n,e)}}function _createGetter(n){_api[n]=function(){return this.el_.vjs_getProperty(n)}}function TCPlayer(n,t,e){JSON.stringify(t);var r=void 0,s=new Date().getTime(),a=videojs.dom;if(typeof n=="string")r=document.querySelector("#"+n);else{if(!n||!n.nodeName)throw new TypeError("The ID or element supplied is not valid.");r=n}if(r.nodeName.toLowerCase()!="video"&&r.nodeName.toLowerCase()!="audio")throw new TypeError("The element type must be <video>.");a.hasClass(r,"tcplayer")||a.addClass(r,"tcplayer"),a.hasClass(r,"video-js")||a.addClass(r,"video-js"),videojs.browser.IE_VERSION&&(r.style.width||r.offsetWidth&&r.offsetWidth!==300)&&(window_1.VIDEOJS_NO_DYNAMIC_STYLE=!0);var u={controls:!0,language:"zh-CN",playbackRates:[.5,1,1.25,1.5,2],controlBar:{volumePanel:{inline:r.nodeName.toLowerCase()!="video"},cssFullscreenToggle:!1,fullscreenToggle:r.nodeName.toLowerCase()=="video",QualitySwitcherMenuButton:!0,pictureInPictureToggle:!1},plugins:{Skin:"",QualitySwitcher:{},MultiResolution:{},Errors:{},Reporter:{},ContextMenu:{},LevelSwitch:{},VttThumbnail:{},PlayerMetrics:{}},webrtcConfig:{enableAbr:!0,abrLabels:{}}};t.plugins&&t.plugins.Dvr&&(u.plugins.LiveDvr=t.plugins.Dvr),t=videojs.mergeOptions(u,t),t.webrtcConfig.enableAbr&&(isWebrtcUrl(t.sources)&&t.sources&&typeof t.sources=="string"&&arrangeWebrtcSource(t.sources,t),t.sources&&Array.isArray(t.sources)&&t.sources[0]&&t.sources[0].src&&isWebrtcUrl(t.sources[0].src)&&arrangeWebrtcSource(t.sources[0].src,t)),"exitPictureInPicture"in document||(t.controlBar.pictureInPictureToggle=!1),log("player initializing",t),videojs.getComponent("player").prototype.options_.children.splice(1,0,"logoImage");var l=videojs(n,t,e);return l.PlayerMetrics(t).setTimingData({initStart:s}),log("player initialized",t),l}var version="5.3.4",commonjsGlobal$1=typeof window<"u"?window:typeof commonjsGlobal<"u"?commonjsGlobal:typeof self<"u"?self:{},win;win=typeof window<"u"?window:commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof self<"u"?self:{};var window_1=win,empty={},empty$1=(Object.freeze||Object)({default:empty}),minDoc=empty$1&&empty||empty$1,topLevel=commonjsGlobal$1!==void 0?commonjsGlobal$1:typeof window<"u"?window:{},doccy;typeof document<"u"?doccy=document:(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"])||(doccy=topLevel["__GLOBAL_DOCUMENT_CACHE@4"]=minDoc);var document_1=doccy,USER_AGENT=window_1.navigator&&window_1.navigator.userAgent||"",VENDOR=window_1.navigator&&window_1.navigator.vendor||"",webkitVersionMap=/AppleWebKit\/([\d.]+)/i.exec(USER_AGENT),appleWebkitVersion=webkitVersionMap?parseFloat(webkitVersionMap.pop()):null,IS_IPAD=/iPad/i.test(USER_AGENT),IS_IPHONE=/iPhone/i.test(USER_AGENT)&&!IS_IPAD,IS_IPOD=/iPod/i.test(USER_AGENT),IS_IOS=IS_IPHONE||IS_IPAD||IS_IPOD,IOS_VERSION=(function(){var n=USER_AGENT.match(/OS (\d+)_/i);return n&&n[1]?n[1]:null})(),IOS_VERSION_ARRAY=(function(){var n=USER_AGENT.match(/OS (\d+)_(\d+)_?(\d+)?/i);return n&&[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||"0",10)]||[]})(),IS_ANDROID=/Android/i.test(USER_AGENT),ANDROID_VERSION=(function(){var n=USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!n)return null;var t=n[1]&&parseFloat(n[1]),e=n[2]&&parseFloat(n[2]);return t&&e?parseFloat(n[1]+"."+n[2]):t||null})(),IS_TBS=/TBS\/\d+/i.test(USER_AGENT),TBS_VERSION=(function(){var n=USER_AGENT.match(/TBS\/(\d+)/i);if(n&&n[1])return n[1]})(),IS_MQQB=!IS_TBS&&/MQQBrowser\/\d+/i.test(USER_AGENT),IS_QQB=!IS_TBS&&/ QQBrowser\/\d+/i.test(USER_AGENT),IS_PC_WECHAT=/windowswechat/i.test(USER_AGENT),IS_WECHAT=/(micromessenger|webbrowser)/i.test(USER_AGENT),IS_MQQ=/ QQ\/\d+/i.test(USER_AGENT)||/MQQBrowser\/\d+/i.test(USER_AGENT),IS_OLD_ANDROID=IS_ANDROID&&/webkit/i.test(USER_AGENT)&&ANDROID_VERSION<2.3,IS_NATIVE_ANDROID=IS_ANDROID&&ANDROID_VERSION<5&&appleWebkitVersion<537,IS_FIREFOX=/Firefox/i.test(USER_AGENT),IS_EDGE=/Edge/i.test(USER_AGENT),IS_EDG=/Edg/i.test(USER_AGENT),IS_EDGA=/EdgA/i.test(USER_AGENT),EDG_VERSION=IS_EDG&&(function(){var n=USER_AGENT.match(/Edg\/(\d+)/);return n&&n[1]?parseFloat(n[1]):null})(),EDGA_VERSION=IS_EDGA&&(function(){var n=USER_AGENT.match(/EdgA\/(\d+)/);return n&&n[1]?parseFloat(n[1]):null})(),IS_CHROME=(function(){return!(IS_EDGE||!/Chrome/i.test(USER_AGENT))||!(!/Safari/i.test(USER_AGENT)||!/CriOS/i.test(USER_AGENT))})()&&!IS_WECHAT&&!IS_MQQB&&!IS_QQB,CHROME_VERSION=(function(){var n=USER_AGENT.match(/Chrome\/(\d+)/),t=USER_AGENT.match(/CriOS\/(\d+)/);return n&&n[1]?parseFloat(n[1]):t&&t[1]?parseFloat(t[1]):null})(),IS_IE8=/MSIE\s8\.0/.test(USER_AGENT),IE_VERSION=(function(){var n=/MSIE\s(\d+)\.\d/.exec(USER_AGENT),t=n&&parseFloat(n[1]);return!t&&/Trident\/7.0/i.test(USER_AGENT)&&/rv:11.0/.test(USER_AGENT)&&(t=11),t})(),IS_SAFARI=/Safari/i.test(USER_AGENT)&&!IS_CHROME&&!IS_ANDROID&&!IS_EDGE&&!IS_MQQB&&!IS_QQB&&!IS_PC_WECHAT,IS_ANY_SAFARI=IS_SAFARI||IS_IOS,IS_SIMULATOR=IS_SAFARI&&VENDOR==="Google Inc.",IS_UC=/UCBrowser\/(\d+)\./i.test(USER_AGENT),IS_QUARK=/Quark\/(\d+)\./i.test(USER_AGENT),TOUCH_ENABLED=isReal()&&("ontouchstart"in window_1||window_1.DocumentTouch&&window_1.document instanceof window_1.DocumentTouch),BACKGROUND_SIZE_SUPPORTED=isReal()&&"backgroundSize"in window_1.document.createElement("video").style,IS_WIN=/Windows/i.test(USER_AGENT),IS_MAC=/MAC OS X/i.test(USER_AGENT),WIN_VER=(function(){return RegExp.$1})(),MAC_VER=(function(){return RegExp.$1})(),QQ_VER=(function(){return RegExp.$1})(),EDGE_VER=(function(){return RegExp.$1})(),SAFARI_VER=(function(){return RegExp.$1})(),FIREFOX_VER=(function(){return RegExp.$1})(),CHROME_VER=(function(){return RegExp.$1})(),IS_HUAWEI=/HUAWEI|honor|HMA/i.test(USER_AGENT),IS_XIAOMI=/HM|RedMi|Mi/i.test(USER_AGENT)&&!IS_HUAWEI,IS_OPPO=/OPPO/i.test(USER_AGENT),IS_VIVO=/VIVO/i.test(USER_AGENT),IS_SX=/GT-|SM-|SCH-/i.test(USER_AGENT),IS_ONE=/ONE/i.test(USER_AGENT),IS_CP=/Coolpad/i.test(USER_AGENT),IS_ZX=/ZTE/i.test(USER_AGENT),IS_TV=/SmartTV|Smart-TV|WebOS|Tizen|Roku|AndroidTV|AppleTV|FireTV|Chromecast|Xbox|PlayStation/i.test(USER_AGENT)||/TV|Television|Set-top|STB/i.test(USER_AGENT)||window_1.screen&&window_1.screen.width>=1920&&window_1.screen.height>=1080&&!IS_MAC&&!IS_WIN&&!IS_ANDROID,isWebRTCAPISupported=function(){return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].filter(function(n){return n in window_1}).length>0},isWebRTCSupported=function(){return!IS_UC&&!IS_EDGE&&!(IS_EDG&&EDG_VERSION<80&&IS_EDGA&&EDGA_VERSION<80)&&!(IS_FIREFOX&&FIREFOX_VER<56)&&!(!IS_TBS&&IS_SAFARI&&IS_IOS&&(IOS_VERSION_ARRAY.length===0||IOS_VERSION_ARRAY[0]<11||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]<1||IOS_VERSION_ARRAY[0]===11&&IOS_VERSION_ARRAY[1]===1&&IOS_VERSION_ARRAY[2]<2))&&!IS_QUARK&&isWebRTCAPISupported()},IS_ENABLED_MSE=(function(){var n=window_1.MediaSource=window_1.MediaSource||window_1.WebKitMediaSource,t=window_1.SourceBuffer=window_1.SourceBuffer||window_1.WebKitSourceBuffer,e=n&&typeof n.isTypeSupported=="function"&&n.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function";return IS_IOS?void 0:e&&r})(),browser=(Object.freeze||Object)({USER_AGENT,IS_IPAD,IS_IPHONE,IS_IPOD,IS_IOS,IOS_VERSION,IOS_VERSION_ARRAY,IS_ANDROID,ANDROID_VERSION,IS_TBS,TBS_VERSION,IS_MQQB,IS_QQB,IS_PC_WECHAT,IS_WECHAT,IS_MQQ,IS_OLD_ANDROID,IS_NATIVE_ANDROID,IS_FIREFOX,IS_EDGE,IS_EDG,IS_EDGA,EDG_VERSION,EDGA_VERSION,IS_CHROME,CHROME_VERSION,IS_IE8,IE_VERSION,IS_SAFARI,IS_ANY_SAFARI,IS_SIMULATOR,IS_UC,IS_QUARK,TOUCH_ENABLED,BACKGROUND_SIZE_SUPPORTED,IS_WIN,IS_MAC,WIN_VER,MAC_VER,QQ_VER,EDGE_VER,SAFARI_VER,FIREFOX_VER,CHROME_VER,IS_HUAWEI,IS_XIAOMI,IS_OPPO,IS_VIVO,IS_SX,IS_ONE,IS_CP,IS_ZX,IS_TV,isWebRTCAPISupported,isWebRTCSupported,IS_ENABLED_MSE}),_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},classCallCheck=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")},createClass=(function(){function n(t,e){for(var r=0;r<e.length;r++){var s=e[r];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}})(),inherits=function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)},possibleConstructorReturn=function(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?n:t},taggedTemplateLiteralLoose=function(n,t){return n.raw=t,n},toString=Object.prototype.toString,keys=function(n){return isObject$1(n)?Object.keys(n):[]},log$1=void 0,level="info",history=[],logByType=function(n,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!!IE_VERSION&&IE_VERSION<11,r=log$1.levels[level],s=new RegExp("^("+r+")$");if(n!=="log"&&t.unshift(n.toUpperCase()+":"),history&&history.push([].concat(t)),(log$1.enableLog||n!="log")&&(t.unshift("TCPlayer:"),window_1.console)){var a=window_1.console[n];a||n!=="debug"||(a=window_1.console.info||window_1.console.log),a&&r&&s.test(n)&&(e&&(t=t.map(function(u){if(isObject$1(u)||Array.isArray(u))try{return JSON.stringify(u)}catch{return String(u)}return String(u)}).join(" ")),a.apply?a[Array.isArray(t)?"apply":"call"](window_1.console,t):a(t))}};log$1=function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];logByType("log",t)},log$1.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:level},log$1.level=function(n){if(typeof n=="string"){if(!log$1.levels.hasOwnProperty(n))throw new Error('"'+n+'" in not a valid log level');level=n}return level},log$1.history=function(){return history?[].concat(history):[]},log$1.history.clear=function(){history&&(history.length=0)},log$1.history.disable=function(){history!==null&&(history.length=0,history=null)},log$1.history.enable=function(){history===null&&(history=[])},log$1.enableLog=!1,log$1.error=function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];return logByType("error",t)},log$1.warn=function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];return logByType("warn",t)},log$1.debug=function(){for(var n=arguments.length,t=Array(n),e=0;e<n;e++)t[e]=arguments[e];return logByType("debug",t)};var log$2=log$1,tsml=function(n){for(var t="",e=0;e<arguments.length;e++)t+=clean(n[e])+(arguments[e+1]||"");return t},_templateObject=taggedTemplateLiteralLoose([`Setting attributes in the second argument of createEl()
|
||
has been deprecated. Use the third argument instead.
|
||
createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl()
|
||
has been deprecated. Use the third argument instead.
|
||
createEl(type, properties, attributes). Attempting to set `," to ","."]),$=createQuerier("querySelector"),$$=createQuerier("querySelectorAll"),Dom=(Object.freeze||Object)({isReal,isEl,isInFrame,createEl,textContent,prependTo,hasClass,addClass,removeClass,toggleClass,setAttributes,getAttributes,getAttribute,setAttribute,removeAttribute,blockTextSelection,unblockTextSelection,getBoundingClientRect,findPosition,getPointerPosition,isTextNode,emptyEl,normalizeContent,appendContent,insertContent,isSingleLeftClick,$,$$}),_guid=1,elData={},elIdAttr="vdata"+new Date().getTime(),_supportsPassive=!1;(function(){try{var n=Object.defineProperty({},"passive",{get:function(){_supportsPassive=!0}});window_1.addEventListener("test",null,n),window_1.removeEventListener("test",null,n)}catch{}})();var passiveEvents=["touchstart","touchmove"],Events=(Object.freeze||Object)({fixEvent,on,off,trigger,one}),_windowLoaded=!1,videojs$2=void 0,autoSetup=function(){if(isReal()){var n=document_1.getElementsByTagName("video"),t=document_1.getElementsByTagName("audio"),e=document_1.getElementsByTagName("video-js"),r=[];if(n&&n.length>0)for(var s=0,a=n.length;s<a;s++)r.push(n[s]);if(t&&t.length>0)for(var u=0,l=t.length;u<l;u++)r.push(t[u]);if(e&&e.length>0)for(var c=0,h=e.length;c<h;c++)r.push(e[c]);if(r&&r.length>0)for(var p=0,d=r.length;p<d;p++){var y=r[p];if(!y||!y.getAttribute){autoSetupTimeout(1);break}if(y.player===void 0){var g=y.getAttribute("data-setup");g!==null&&videojs$2(y)}}else _windowLoaded||autoSetupTimeout(1)}};isReal()&&document_1.readyState==="complete"?_windowLoaded=!0:one(window_1,"load",function(){_windowLoaded=!0});var createStyleElement=function(n){var t=document_1.createElement("style");return t.className=n,t},setTextContent=function(n,t){n.styleSheet?n.styleSheet.cssText=t:n.textContent=t},bind=function(n,t,e){t.guid||(t.guid=newGUID());var r=function(){return t.apply(n,arguments)};return r.guid=e?e+"_"+t.guid:t.guid,r},throttle=function(n,t){var e=Date.now();return function(){var r=Date.now();r-e>=t&&(n.apply(void 0,arguments),e=r)}},EventTarget=function(){};EventTarget.prototype.allowedEvents_={},EventTarget.prototype.on=function(n,t){var e=this.addEventListener;this.addEventListener=function(){},on(this,n,t),this.addEventListener=e},EventTarget.prototype.addEventListener=EventTarget.prototype.on,EventTarget.prototype.off=function(n,t){off(this,n,t)},EventTarget.prototype.removeEventListener=EventTarget.prototype.off,EventTarget.prototype.one=function(n,t){var e=this.addEventListener;this.addEventListener=function(){},one(this,n,t),this.addEventListener=e},EventTarget.prototype.trigger=function(n){var t=n.type||n;typeof n=="string"&&(n={type:t}),n=fixEvent(n),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](n),trigger(this,n)},EventTarget.prototype.dispatchEvent=EventTarget.prototype.trigger;var isEvented=function(n){return n instanceof EventTarget||!!n.eventBusEl_&&["on","one","off","trigger"].every(function(t){return typeof n[t]=="function"})},isValidEventType=function(n){return typeof n=="string"&&/\S/.test(n)||Array.isArray(n)&&!!n.length},validateTarget=function(n){if(!n.nodeName&&!isEvented(n))throw new Error("Invalid target; must be a DOM node or evented object.")},validateEventType=function(n){if(!isValidEventType(n))throw new Error("Invalid event type; must be a non-empty string or array.")},validateListener=function(n){if(typeof n!="function")throw new Error("Invalid listener; must be a function.")},normalizeListenArgs=function(n,t){var e=t.length<3||t[0]===n||t[0]===n.eventBusEl_,r=void 0,s=void 0,a=void 0;return e?(r=n.eventBusEl_,t.length>=3&&t.shift(),s=t[0],a=t[1]):(r=t[0],s=t[1],a=t[2]),validateTarget(r),validateEventType(s),validateListener(a),a=bind(n,a),{isTargetingSelf:e,target:r,type:s,listener:a}},listen=function(n,t,e,r){validateTarget(n),n.nodeName?Events[t](n,e,r):n[t](e,r)},EventedMixin={on:function(){for(var n=this,t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var s=normalizeListenArgs(this,e),a=s.isTargetingSelf,u=s.target,l=s.type,c=s.listener;if(listen(u,"on",l,c),!a){var h=function(){return n.off(u,l,c)};h.guid=c.guid;var p=function(){return n.off("dispose",h)};p.guid=c.guid,listen(this,"on","dispose",h),listen(u,"on","dispose",p)}},one:function(){for(var n=this,t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var s=normalizeListenArgs(this,e),a=s.isTargetingSelf,u=s.target,l=s.type,c=s.listener;if(a)listen(u,"one",l,c);else{var h=function p(){for(var d=arguments.length,y=Array(d),g=0;g<d;g++)y[g]=arguments[g];n.off(u,l,p),c.apply(null,y)};h.guid=c.guid,listen(u,"one",l,h)}},off:function(n,t,e){if(!n||isValidEventType(n))isValidEventType(t)?off(this.eventBusEl_,t,e):off(this.eventBusEl_,n,t);else{var r=n,s=t;validateTarget(r),validateEventType(s),validateListener(e),e=bind(this,e),this.off("dispose",e),r.nodeName?(off(r,s,e),off(r,"dispose",e)):isEvented(r)&&(r.off(s,e),r.off("dispose",e))}},trigger:function(n,t){return trigger(this.eventBusEl_,n,t)}},StatefulMixin={state:{},setState:function(n){var t=this;typeof n=="function"&&(n=n());var e=void 0;return each(n,function(r,s){t.state[s]!==r&&(e=e||{},e[s]={from:t.state[s],to:r}),t.state[s]=r}),e&&isEvented(this)&&this.trigger({changes:e,type:"statechanged"}),e}},isArray=Array.isArray,isArray_1=isArray,freeGlobal=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=_freeGlobal||freeSelf||Function("return this")(),_root=root,Symbol$1=_root.Symbol,_Symbol=Symbol$1,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag$1=_Symbol?_Symbol.toStringTag:void 0,_getRawTag=getRawTag,objectProto$1=Object.prototype,nativeObjectToString$1=objectProto$1.toString,_objectToString=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0,_baseGetTag=baseGetTag,isObjectLike_1=isObjectLike,symbolTag="[object Symbol]",isSymbol_1=isSymbol,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,_isKey=isKey,isObject_1=isObject$2,asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]",isFunction_1=isFunction$1,coreJsData=_root["__core-js_shared__"],_coreJsData=coreJsData,maskSrcKey=(function(){var n=/[^.]+$/.exec(_coreJsData&&_coreJsData.keys&&_coreJsData.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),_isMasked=isMasked,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString,_toSource=toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$1=objectProto$2.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$1).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_baseIsNative=baseIsNative,_getValue=getValue,_getNative=getNative,nativeCreate=_getNative(Object,"create"),_nativeCreate=nativeCreate,_hashClear=hashClear,_hashDelete=hashDelete,HASH_UNDEFINED="__lodash_hash_undefined__",objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty,_hashGet=hashGet,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty,_hashHas=hashHas,HASH_UNDEFINED$1="__lodash_hash_undefined__",_hashSet=hashSet;Hash.prototype.clear=_hashClear,Hash.prototype.delete=_hashDelete,Hash.prototype.get=_hashGet,Hash.prototype.has=_hashHas,Hash.prototype.set=_hashSet;var _Hash=Hash,_listCacheClear=listCacheClear,eq_1=eq,_assocIndexOf=assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice,_listCacheDelete=listCacheDelete,_listCacheGet=listCacheGet,_listCacheHas=listCacheHas,_listCacheSet=listCacheSet;ListCache.prototype.clear=_listCacheClear,ListCache.prototype.delete=_listCacheDelete,ListCache.prototype.get=_listCacheGet,ListCache.prototype.has=_listCacheHas,ListCache.prototype.set=_listCacheSet;var _ListCache=ListCache,Map$1=_getNative(_root,"Map"),_Map=Map$1,_mapCacheClear=mapCacheClear,_isKeyable=isKeyable,_getMapData=getMapData,_mapCacheDelete=mapCacheDelete,_mapCacheGet=mapCacheGet,_mapCacheHas=mapCacheHas,_mapCacheSet=mapCacheSet;MapCache.prototype.clear=_mapCacheClear,MapCache.prototype.delete=_mapCacheDelete,MapCache.prototype.get=_mapCacheGet,MapCache.prototype.has=_mapCacheHas,MapCache.prototype.set=_mapCacheSet;var _MapCache=MapCache,FUNC_ERROR_TEXT="Expected a function";memoize.Cache=_MapCache;var memoize_1=memoize,MAX_MEMOIZE_SIZE=500,_memoizeCapped=memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=_memoizeCapped(function(n){var t=[];return n.charCodeAt(0)===46&&t.push(""),n.replace(rePropName,function(e,r,s,a){t.push(s?a.replace(reEscapeChar,"$1"):r||e)}),t}),_stringToPath=stringToPath,_arrayMap=arrayMap,symbolProto=_Symbol?_Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,_baseToString=baseToString,toString_1=toString$1,_castPath=castPath,_toKey=toKey,_baseGet=baseGet,get_1=get$1,Component=(function(){function n(t,e,r){if(classCallCheck(this,n),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=extend(!0,{},this.options_),e=this.options_=mergeOptions(this.options_,e),this.id_=e.id||e.el&&e.el.id,!this.id_){var s=t&&t.id&&t.id()||"no_player";this.id_=s+"_component_"+newGUID()}this.name_=e.name||null,e.el?this.el_=e.el:e.createEl!==!1&&(this.el_=this.createEl()),e.evented!==!1&&evented(this,{eventBusKey:this.el_?"el_":null}),stateful(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},e.initChildren!==!1&&this.initChildren(),this.ready(r),e.reportTouchActivity!==!1&&this.enableTouchActivity()}return n.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),removeData(this.el_),this.el_=null),this.player_=null},n.prototype.player=function(){return this.player_},n.prototype.options=function(t){return log$2.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=mergeOptions(this.options_,t),this.options_):this.options_},n.prototype.el=function(){return this.el_},n.prototype.createEl=function(t,e,r){return createEl(t,e,r)},n.prototype.localize=function(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,s=this.player_.language&&this.player_.language(),a=this.player_.languages&&this.player_.languages(),u=a&&a[s],l=s&&s.split("-")[0],c=a&&a[l],h=r;return u&&u[t]?h=u[t]:c&&c[t]&&(h=c[t]),e&&(h=h.replace(/\{(\d+)\}/g,function(p,d){var y=e[d-1],g=y;return y===void 0&&(g=p),g})),h},n.prototype.contentEl=function(){return this.contentEl_||this.el_},n.prototype.id=function(){return this.id_},n.prototype.name=function(){return this.name_},n.prototype.children=function(){return this.children_},n.prototype.getChildById=function(t){return this.childIndex_[t]},n.prototype.getChild=function(t){if(t)return t=toTitleCase(t),this.childNameIndex_[t]},n.prototype.addChild=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.children_.length,s=void 0,a=void 0;if(typeof t=="string"){a=toTitleCase(t);var u=e.componentClass||a;e.name=a;var l=n.getComponent(u);if(!l)throw new Error("Component "+u+" does not exist");if(typeof l!="function")return null;s=new l(this.player_||this,e)}else s=t;if(this.children_.splice(r,0,s),typeof s.id=="function"&&(this.childIndex_[s.id()]=s),a=a||s.name&&toTitleCase(s.name()),a&&(this.childNameIndex_[a]=s),typeof s.el=="function"&&s.el()){var c=this.contentEl().children,h=c[r]||null;this.contentEl().insertBefore(s.el(),h)}return s},n.prototype.removeChild=function(t){if(typeof t=="string"&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,r=this.children_.length-1;r>=0;r--)if(this.children_[r]===t){e=!0,this.children_.splice(r,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var s=t.el();s&&s.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},n.prototype.initChildren=function(){var t=this,e=this.options_.children;if(e){var r=this.options_,s=function(l){var c=l.name,h=l.opts;if(r[c]!==void 0&&(h=r[c]),h!==!1){h===!0&&(h={}),h.playerOptions=t.options_.playerOptions;var p=t.addChild(c,h);p&&(t[c]=p)}},a=void 0,u=n.getComponent("Tech");a=Array.isArray(e)?e:Object.keys(e),a.concat(Object.keys(this.options_).filter(function(l){return!a.some(function(c){return typeof c=="string"?l===c:l===c.name})})).map(function(l){var c=void 0,h=void 0;return typeof l=="string"?(c=l,h=e[c]||t.options_[c]||{}):(c=l.name,h=l),{name:c,opts:h}}).filter(function(l){var c=n.getComponent(l.opts.componentClass||toTitleCase(l.name));return c&&!u.isTech(c)}).forEach(s)}},n.prototype.buildCSSClass=function(){return""},n.prototype.ready=function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(t)return this.isReady_?void(e?t.call(this):this.setTimeout(t,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(t))},n.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(e){e&&typeof e=="function"&&e.call(this)},this),this.trigger("ready")},1)},n.prototype.$=function(t,e){return $(t,e||this.contentEl())},n.prototype.$$=function(t,e){return $$(t,e||this.contentEl())},n.prototype.hasClass=function(t){return hasClass(this.el_,t)},n.prototype.addClass=function(t){addClass(this.el_,t)},n.prototype.removeClass=function(t){if(removeClass(this.el_,t),t==="vjs-lock-showing"&&(IS_IOS||IS_ANDROID)){var e=document.getElementsByClassName("vjs-subs-caps-button"),r=get_1(e,"[0].children[1]");r&&(r.className="vjs-menu")}},n.prototype.toggleClass=function(t,e){toggleClass(this.el_,t,e)},n.prototype.show=function(){this.removeClass("vjs-hidden")},n.prototype.hide=function(){this.addClass("vjs-hidden")},n.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},n.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},n.prototype.getAttribute=function(t){return getAttribute(this.el_,t)},n.prototype.setAttribute=function(t,e){setAttribute(this.el_,t,e)},n.prototype.removeAttribute=function(t){removeAttribute(this.el_,t)},n.prototype.width=function(t,e){return this.dimension("width",t,e)},n.prototype.height=function(t,e){return this.dimension("height",t,e)},n.prototype.dimensions=function(t,e){this.width(t,!0),this.height(e)},n.prototype.dimension=function(t,e,r){if(e!==void 0)return e!==null&&e===e||(e=0),(""+e).indexOf("%")!==-1||(""+e).indexOf("px")!==-1?this.el_.style[t]=e:this.el_.style[t]=e==="auto"?"":e+"px",void(r||this.trigger("componentresize"));if(!this.el_)return 0;var s=this.el_.style[t],a=s.indexOf("px");return parseInt(a!==-1?s.slice(0,a):this.el_["offset"+toTitleCase(t)],10)},n.prototype.currentDimension=function(t){var e=0;if(t!=="width"&&t!=="height")throw new Error("currentDimension only accepts width or height value");if(typeof window_1.getComputedStyle=="function"){var r=window_1.getComputedStyle(this.el_);e=r.getPropertyValue(t)||r[t]}if((e=parseFloat(e))===0){var s="offset"+toTitleCase(t);e=this.el_[s]}return e},n.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},n.prototype.currentWidth=function(){return this.currentDimension("width")},n.prototype.currentHeight=function(){return this.currentDimension("height")},n.prototype.focus=function(){this.el_.focus()},n.prototype.blur=function(){this.el_.blur()},n.prototype.emitTapEvents=function(){var t=0,e=null,r=void 0;this.on("touchstart",function(a){a.touches.length===1&&(e={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY},t=new Date().getTime(),r=!0)}),this.on("touchmove",function(a){if(a.touches.length>1)r=!1;else if(e){var u=a.touches[0].pageX-e.pageX,l=a.touches[0].pageY-e.pageY,c=Math.sqrt(u*u+l*l);c>10&&(r=!1)}});var s=function(){r=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",function(a){e=null,r===!0&&new Date().getTime()-t<200&&(a.preventDefault(),this.trigger("tap"))})},n.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var r=function(s){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",r),this.on("touchcancel",r)}},n.prototype.setTimeout=function(t,e){var r=this;t=bind(this,t);var s=window_1.setTimeout(t,e),a=function(){return r.clearTimeout(s)};return a.guid="vjs-timeout-"+s,this.on("dispose",a),s},n.prototype.clearTimeout=function(t){window_1.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},n.prototype.setInterval=function(t,e){var r=this;t=bind(this,t);var s=window_1.setInterval(t,e),a=function(){return r.clearInterval(s)};return a.guid="vjs-interval-"+s,this.on("dispose",a),s},n.prototype.clearInterval=function(t){window_1.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},n.prototype.requestAnimationFrame=function(t){var e=this;if(this.supportsRaf_){t=bind(this,t);var r=window_1.requestAnimationFrame(t),s=function(){return e.cancelAnimationFrame(r)};return s.guid="vjs-raf-"+r,this.on("dispose",s),r}return this.setTimeout(t,1e3/60)},n.prototype.cancelAnimationFrame=function(t){if(this.supportsRaf_){window_1.cancelAnimationFrame(t);var e=function(){};return e.guid="vjs-raf-"+t,this.off("dispose",e),t}return this.clearTimeout(t)},n.registerComponent=function(t,e){if(typeof t!="string"||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r=n.getComponent("Tech"),s=r&&r.isTech(e),a=n===e||n.prototype.isPrototypeOf(e.prototype);if(s||!a){var u=void 0;throw u=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+u+".")}t=toTitleCase(t),n.components_||(n.components_={});var l=n.getComponent("Player");if(t==="Player"&&l&&l.players){var c=l.players,h=Object.keys(c);if(c&&h.length>0&&h.map(function(p){return c[p]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return n.components_[t]=e,e},n.getComponent=function(t){if(t)return t=toTitleCase(t),n.components_&&n.components_[t]?n.components_[t]:void 0},n})();Component.prototype.supportsRaf_=typeof window_1.requestAnimationFrame=="function"&&typeof window_1.cancelAnimationFrame=="function",Component.registerComponent("Component",Component);for(var EXT_MIME={m3u8:"application/x-mpegURL",flv:"video/flv",mp4:"video/mp4",webm:"video/webm",rtmp:"rtmp/flv",mpd:"application/dash+xml",mp3:"audio/mpeg",m4a:"audio/mp4",m4v:"video/x-m4v",mov:"video/mp4",mkv:"video/mp4"},SERVER_PATH="playvideo.vodplayvideo.net",SERVER_PATH_V3="playvideo.vodplayvideo.net",SERVER_PATH_BACKUP="playvideo.vodglcdn.com",LICENSE_PATH="https://drm.vod2.myqcloud.com/getlicense/v1",HLS_PATH="https://tcsdk.com/player/tcplayer/release/v"+version+"/libs/hls.min.1.1.8.js",FLV_PATH="https://tcsdk.com/player/tcplayer/release/v"+version+"/libs/flv.min.1.6.4.js",WEBRTC_PATH="https://tcsdk.com/player/tcplayer/release/v"+version+"/libs/TXLivePlayer-1.3.7-beta.5.min.js",SHAKA_PATH="https://tcsdk.com/player/tcplayer/release/v5.3.4/libs/shaka.min.4.15.7.js",DASH_PATH="https://tcsdk.com/player/tcplayer/release/v"+version+"/libs/dash.all.min.v5.1.0.js",XP2P_HLS_PATH="https://tcsdk.com/player/tcplayer/release/v"+version+"/libs/hlsp2p.min.1.6.28.js",XP2P_FLV_PATH="https://tcsdk.com/player/tcplayer/release/v"+version+"/libs/qvbp2p_common.min.1.8.29.js",parseUrl=function(n){var t=["protocol","hostname","port","pathname","search","hash","host"],e=document_1.createElement("a");e.href=n;var r=e.host===""&&e.protocol!=="file:",s=void 0;r&&(s=document_1.createElement("div"),s.innerHTML='<a href="'+n+'"></a>',e=s.firstChild,s.setAttribute("style","display:none; position:absolute;"),document_1.body.appendChild(s));for(var a={},u=0;u<t.length;u++)a[t[u]]=e[t[u]];return a.protocol==="http:"&&(a.host=a.host.replace(/:80$/,"")),a.protocol==="https:"&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=window_1.location.protocol),r&&document_1.body.removeChild(s),a},getAbsoluteURL=function(n){if(!n.match(/^https?:\/\//)){var t=document_1.createElement("div");t.innerHTML='<a href="'+n+'">x</a>',n=t.firstChild.href}return n},getFileExtension=function(n){if(typeof n=="string"){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,e=t.exec(n);if(e)return e.pop().toLowerCase()}return""},isCrossOrigin=function(n){var t=window_1.location,e=parseUrl(n);return(e.protocol===":"?t.protocol:e.protocol)+e.host!==t.protocol+t.host},Url=(Object.freeze||Object)({parseUrl,getAbsoluteURL,getFileExtension,isCrossOrigin}),FullscreenApi={},apiMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],specApi=apiMap[0],browserApi=void 0,prefixedAPI=!1,i$1=0;i$1<apiMap.length;i$1++)if(apiMap[i$1][1]in document_1){browserApi=apiMap[i$1];break}if(browserApi){for(var _i=0;_i<browserApi.length;_i++)FullscreenApi[specApi[_i]]=browserApi[_i];prefixedAPI=browserApi[0]===specApi[0]}MediaError.prototype.code=0,MediaError.prototype.message="",MediaError.prototype.status=null,MediaError.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],MediaError.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var errNum=0;errNum<MediaError.errorTypes.length;errNum++)MediaError[MediaError.errorTypes[errNum]]=errNum,MediaError.prototype[MediaError.errorTypes[errNum]]=errNum;var tuple=SafeParseTuple,trackToJson_=function(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,e,r){return n[e]&&(t[e]=n[e]),t},{cues:n.cues&&Array.prototype.map.call(n.cues,function(t){return{startTime:t.startTime,endTime:t.endTime,text:t.text,id:t.id}})})},textTracksToJson=function(n){var t=n.$$("track"),e=Array.prototype.map.call(t,function(r){return r.track});return Array.prototype.map.call(t,function(r){var s=trackToJson_(r.track);return r.src&&(s.src=r.src),s}).concat(Array.prototype.filter.call(n.textTracks(),function(r){return e.indexOf(r)===-1}).map(trackToJson_))},jsonToTextTracks=function(n,t){return n.forEach(function(e){var r=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(s){return r.addCue(s)})}),t.textTracks()},textTrackConverter={textTracksToJson,jsonToTextTracks,trackToJson_},MODAL_CLASS_NAME="vjs-modal-dialog",ESC=27,ModalDialog=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.opened_=s.hasBeenOpened_=s.hasBeenFilled_=!1,s.closeable(!s.options_.uncloseable),s.content(s.options_.content),s.contentEl_=createEl("div",{className:MODAL_CLASS_NAME+"-content"},{role:"document"}),s.descEl_=createEl("p",{className:MODAL_CLASS_NAME+"-description vjs-control-text",id:s.el().getAttribute("aria-describedby")}),textContent(s.descEl_,s.description()),s.el_.appendChild(s.descEl_),s.el_.appendChild(s.contentEl_),s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,n.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return MODAL_CLASS_NAME+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){e.which===ESC&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.prototype.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return typeof e=="boolean"&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",bind(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(e){if(typeof e=="boolean"){var r=this.closeable_=!!e,s=this.getChild("closeButton");if(r&&!s){var a=this.contentEl_;this.contentEl_=this.el_,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=a,this.on(s,"close",this.close)}!r&&s&&(this.off(s,"close",this.close),this.removeChild(s),s.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(e){var r=this.contentEl(),s=r.parentNode,a=r.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,s.removeChild(r),this.empty(),insertContent(r,e),this.trigger("modalfill"),a?s.insertBefore(r,a):s.appendChild(r);var u=this.getChild("closeButton");u&&s.appendChild(u.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),emptyEl(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return e!==void 0&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=document_1.activeElement,r=this.player_.el_;this.previouslyActiveEl_=null,(r.contains(e)||r===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(document_1,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(document_1,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(e.which===9){for(var r=this.focusableEls_(),s=this.el_.querySelector(":focus"),a=void 0,u=0;u<r.length;u++)if(s===r[u]){a=u;break}document_1.activeElement===this.el_&&(a=0),e.shiftKey&&a===0?(r[r.length-1].focus(),e.preventDefault()):e.shiftKey||a!==r.length-1||(r[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(r){return(r instanceof window_1.HTMLAnchorElement||r instanceof window_1.HTMLAreaElement)&&r.hasAttribute("href")||(r instanceof window_1.HTMLInputElement||r instanceof window_1.HTMLSelectElement||r instanceof window_1.HTMLTextAreaElement||r instanceof window_1.HTMLButtonElement)&&!r.hasAttribute("disabled")||r instanceof window_1.HTMLIFrameElement||r instanceof window_1.HTMLObjectElement||r instanceof window_1.HTMLEmbedElement||r.hasAttribute("tabindex")&&r.getAttribute("tabindex")!==-1||r.hasAttribute("contenteditable")})},t})(Component);ModalDialog.prototype.options_={pauseOnOpen:!0,temporary:!0},Component.registerComponent("ModalDialog",ModalDialog);var TrackList=(function(n){function t(){var e,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;classCallCheck(this,t);var a=possibleConstructorReturn(this,n.call(this));if(!s&&(s=a,IS_IE8)){s=document_1.createElement("custom");for(var u in t.prototype)u!=="constructor"&&(s[u]=t.prototype[u])}s.tracks_=[],Object.defineProperty(s,"length",{get:function(){return this.tracks_.length}});for(var l=0;l<r.length;l++)s.addTrack(r[l]);return e=s,possibleConstructorReturn(a,e)}return inherits(t,n),t.prototype.addTrack=function(e){var r=this.tracks_.length;""+r in this||Object.defineProperty(this,r,{get:function(){return this.tracks_[r]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var r=void 0,s=0,a=this.length;s<a;s++)if(this[s]===e){r=this[s],r.off&&r.off(),this.tracks_.splice(s,1);break}r&&this.trigger({track:r,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var r=null,s=0,a=this.length;s<a;s++){var u=this[s];if(u.id===e){r=u;break}}return r},t})(EventTarget);TrackList.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var event$1 in TrackList.prototype.allowedEvents_)TrackList.prototype["on"+event$1]=null;var disableOthers=function(n,t){for(var e=0;e<n.length;e++)Object.keys(n[e]).length&&t.id!==n[e].id&&(n[e].enabled=!1)},AudioTrackList=(function(n){function t(){var e,r,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,u=s.length-1;u>=0;u--)if(s[u].enabled){disableOthers(s,s[u]);break}if(IS_IE8){a=document_1.createElement("custom");for(var l in TrackList.prototype)l!=="constructor"&&(a[l]=TrackList.prototype[l]);for(var c in t.prototype)c!=="constructor"&&(a[c]=t.prototype[c])}return a=e=possibleConstructorReturn(this,n.call(this,s,a)),a.changing_=!1,r=a,possibleConstructorReturn(e,r)}return inherits(t,n),t.prototype.addTrack=function(e){var r=this;e.enabled&&disableOthers(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){r.changing_||(r.changing_=!0,disableOthers(r,e),r.changing_=!1,r.trigger("change"))})},t})(TrackList),disableOthers$1=function(n,t){for(var e=0;e<n.length;e++)Object.keys(n[e]).length&&t.id!==n[e].id&&(n[e].selected=!1)},VideoTrackList=(function(n){function t(){var e,r,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);for(var a=void 0,u=s.length-1;u>=0;u--)if(s[u].selected){disableOthers$1(s,s[u]);break}if(IS_IE8){a=document_1.createElement("custom");for(var l in TrackList.prototype)l!=="constructor"&&(a[l]=TrackList.prototype[l]);for(var c in t.prototype)c!=="constructor"&&(a[c]=t.prototype[c])}return a=e=possibleConstructorReturn(this,n.call(this,s,a)),a.changing_=!1,Object.defineProperty(a,"selectedIndex",{get:function(){for(var h=0;h<this.length;h++)if(this[h].selected)return h;return-1},set:function(){}}),r=a,possibleConstructorReturn(e,r)}return inherits(t,n),t.prototype.addTrack=function(e){var r=this;e.selected&&disableOthers$1(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&e.addEventListener("selectedchange",function(){r.changing_||(r.changing_=!0,disableOthers$1(r,e),r.changing_=!1,r.trigger("change"))})},t})(TrackList),TextTrackList=(function(n){function t(){var e,r,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,t);var a=void 0;if(IS_IE8){a=document_1.createElement("custom");for(var u in TrackList.prototype)u!=="constructor"&&(a[u]=TrackList.prototype[u]);for(var l in t.prototype)l!=="constructor"&&(a[l]=t.prototype[l])}return a=e=possibleConstructorReturn(this,n.call(this,s,a)),r=a,possibleConstructorReturn(e,r)}return inherits(t,n),t.prototype.addTrack=function(e){return!(e.mode==="disabled"&&!e.label)&&!(e.kind==="captions"&&!e.label)&&!(IS_IOS&&e.kind==="subtitles"&&!window.textTrackCleared_)&&(n.prototype.addTrack.call(this,e),e.addEventListener("modechange",bind(this,function(){this.trigger("change")})),void(["metadata","chapters"].indexOf(e.kind)===-1&&e.addEventListener("modechange",bind(this,function(){this.trigger("selectedlanguagechange")}))))},t})(TrackList),HtmlTrackElementList=(function(){function n(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];classCallCheck(this,n);var e=this;if(IS_IE8){e=document_1.createElement("custom");for(var r in n.prototype)r!=="constructor"&&(e[r]=n.prototype[r])}e.trackElements_=[],Object.defineProperty(e,"length",{get:function(){return this.trackElements_.length}});for(var s=0,a=t.length;s<a;s++)e.addTrackElement_(t[s]);if(IS_IE8)return e}return n.prototype.addTrackElement_=function(t){var e=this.trackElements_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.trackElements_[e]}}),this.trackElements_.indexOf(t)===-1&&this.trackElements_.push(t)},n.prototype.getTrackElementByTrack_=function(t){for(var e=void 0,r=0,s=this.trackElements_.length;r<s;r++)if(t===this.trackElements_[r].track){e=this.trackElements_[r];break}return e},n.prototype.removeTrackElement_=function(t){for(var e=0,r=this.trackElements_.length;e<r;e++)if(t===this.trackElements_[e]){this.trackElements_.splice(e,1);break}},n})(),TextTrackCueList=(function(){function n(t){classCallCheck(this,n);var e=this;if(IS_IE8){e=document_1.createElement("custom");for(var r in n.prototype)r!=="constructor"&&(e[r]=n.prototype[r])}if(n.prototype.setCues_.call(e,t),Object.defineProperty(e,"length",{get:function(){return this.length_}}),IS_IE8)return e}return n.prototype.setCues_=function(t){var e=this.length||0,r=0,s=t.length;this.cues_=t,this.length_=t.length;var a=function(u){""+u in this||Object.defineProperty(this,""+u,{get:function(){return this.cues_[u]}})};if(e<s)for(r=e;r<s;r++)a.call(this,r)},n.prototype.getCueById=function(t){for(var e=null,r=0,s=this.length;r<s;r++){var a=this[r];if(a.id===t){e=a;break}}return e},n})(),VideoTrackKind={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},AudioTrackKind={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},TextTrackKind={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},TextTrackMode={disabled:"disabled",hidden:"hidden",showing:"showing"},Track=(function(n){function t(){var e,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this)),a=s;if(IS_IE8){a=document_1.createElement("custom");for(var u in t.prototype)u!=="constructor"&&(a[u]=t.prototype[u])}var l={id:r.id||(r.id===0?0:"vjs_track_"+newGUID()),kind:r.kind||"",label:r.label||"",language:r.language||""};for(var c in l)(function(h){Object.defineProperty(a,h,{get:function(){return l[h]},set:function(){}})})(c);return e=a,possibleConstructorReturn(s,e)}return inherits(t,n),t})(EventTarget),isFunction_1$2=isFunction$3,toString$3=Object.prototype.toString,trim=function(n){return n.replace(/^\s+|\s+$/g,"")},isArray$2=function(n){return Object.prototype.toString.call(n)==="[object Array]"},parseHeaders=function(n){if(!n)return{};for(var t={},e=trim(n).split(`
|
||
`),r=0;r<e.length;r++){var s=e[r],a=s.indexOf(":"),u=trim(s.slice(0,a)).toLowerCase(),l=trim(s.slice(a+1));typeof t[u]>"u"?t[u]=l:isArray$2(t[u])?t[u].push(l):t[u]=[t[u],l]}return t},immutable=extend$1,hasOwnProperty$4=Object.prototype.hasOwnProperty,xhr=createXHR;createXHR.XMLHttpRequest=window_1.XMLHttpRequest||noop,createXHR.XDomainRequest="withCredentials"in new createXHR.XMLHttpRequest?createXHR.XMLHttpRequest:window_1.XDomainRequest,forEachArray(["get","put","post","patch","head","delete"],function(n){createXHR[n==="delete"?"del":n]=function(t,e,r){return e=initParams(t,e,r),e.method=n.toUpperCase(),_createXHR(e)}});var parseCues=function(n,t){var e=new window_1.WebVTT.Parser(window_1,window_1.vttjs,window_1.WebVTT.StringDecoder()),r=[];e.oncue=function(s){t.addCue(s)},e.onparsingerror=function(s){r.push(s)},e.onflush=function(){t.trigger({type:"loadeddata",target:t})},e.parse(n),r.length>0&&(window_1.console&&window_1.console.groupCollapsed&&window_1.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(s){return log$2.error(s)}),window_1.console&&window_1.console.groupEnd&&window_1.console.groupEnd()),e.flush()},loadTrack=function(n,t){var e={uri:n},r=isCrossOrigin(n);r&&(e.cors=r),xhr(e,bind(this,function(s,a,u){if(s)return log$2.error(s,a);if(t.loaded_=!0,typeof window_1.WebVTT!="function"){if(t.tech_){var l=function(){return parseCues(u,t)};t.tech_.on("vttjsloaded",l),t.tech_.on("vttjserror",function(){log$2.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",l)})}}else parseCues(u,t)}))},TextTrack=(function(n){function t(){var e,r,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(classCallCheck(this,t),!s.tech)throw new Error("A tech was not provided.");var a=mergeOptions(s,{kind:TextTrackKind[s.kind]||s.kind||"subtitles",language:s.language||s.srclang||""}),u=TextTrackMode[a.mode]||"disabled",l=a.default;a.kind!=="metadata"&&a.kind!=="chapters"||(u="hidden");var c=e=possibleConstructorReturn(this,n.call(this,a));if(c.tech_=a.tech,IS_IE8)for(var h in t.prototype)h!=="constructor"&&(c[h]=t.prototype[h]);c.cues_=[],c.activeCues_=[];var p=new TextTrackCueList(c.cues_),d=new TextTrackCueList(c.activeCues_),y=!1,g=bind(c,function(){this.activeCues,y&&(this.trigger("cuechange"),y=!1)});return u!=="disabled"&&c.tech_.ready(function(){c.tech_.on("timeupdate",g)},!0),Object.defineProperty(c,"default",{get:function(){return l},set:function(){}}),Object.defineProperty(c,"mode",{get:function(){return u},set:function(v){var S=this;TextTrackMode[v]&&(u=v,u==="showing"&&this.tech_.ready(function(){S.tech_.on("timeupdate",g)},!0),this.trigger("modechange"))}}),Object.defineProperty(c,"cues",{get:function(){return this.loaded_?p:null},set:function(){}}),Object.defineProperty(c,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return d;for(var v=this.tech_.currentTime(),S=[],C=0,k=this.cues.length;C<k;C++){var U=this.cues[C];(U.startTime<=v&&U.endTime>=v||U.startTime===U.endTime&&U.startTime<=v&&U.startTime+.5>=v)&&S.push(U)}if(y=!1,S.length!==this.activeCues_.length)y=!0;else for(var M=0;M<S.length;M++)this.activeCues_.indexOf(S[M])===-1&&(y=!0);return this.activeCues_=S,d.setCues_(this.activeCues_),d},set:function(){}}),a.src?(c.src=a.src,loadTrack(a.src,c)):c.loaded_=!0,r=c,possibleConstructorReturn(e,r)}return inherits(t,n),t.prototype.addCue=function(e){var r=e;if(window_1.vttjs&&!(e instanceof window_1.vttjs.VTTCue)){r=new window_1.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(var s in e)s in r||(r[s]=e[s]);r.id=e.id,r.originalCue_=e}for(var a=this.tech_.textTracks(),u=0;u<a.length;u++)a[u]!==this&&a[u].removeCue(r);this.cues_.push(r),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){for(var r=this.cues_.length;r--;){var s=this.cues_[r];if(s===e||s.originalCue_&&s.originalCue_===e){this.cues_.splice(r,1),this.cues.setCues_(this.cues_);break}}},t})(Track);TextTrack.prototype.allowedEvents_={cuechange:"cuechange"};var AudioTrack=(function(n){function t(){var e,r,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:AudioTrackKind[s.kind]||""}),u=e=possibleConstructorReturn(this,n.call(this,a)),l=!1;if(IS_IE8)for(var c in t.prototype)c!=="constructor"&&(u[c]=t.prototype[c]);return Object.defineProperty(u,"enabled",{get:function(){return l},set:function(h){typeof h=="boolean"&&h!==l&&(l=h,this.trigger("enabledchange"))}}),a.enabled&&(u.enabled=a.enabled),u.loaded_=!0,r=u,possibleConstructorReturn(e,r)}return inherits(t,n),t})(Track),VideoTrack=(function(n){function t(){var e,r,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var a=mergeOptions(s,{kind:VideoTrackKind[s.kind]||""}),u=e=possibleConstructorReturn(this,n.call(this,a)),l=!1;if(IS_IE8)for(var c in t.prototype)c!=="constructor"&&(u[c]=t.prototype[c]);return Object.defineProperty(u,"selected",{get:function(){return l},set:function(h){typeof h=="boolean"&&h!==l&&(l=h,this.trigger("selectedchange"))}}),a.selected&&(u.selected=a.selected),r=u,possibleConstructorReturn(e,r)}return inherits(t,n),t})(Track),NONE=0,LOADING=1,LOADED=2,ERROR=3,HTMLTrackElement=(function(n){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};classCallCheck(this,t);var r=possibleConstructorReturn(this,n.call(this)),s=void 0,a=r;if(IS_IE8){a=document_1.createElement("custom");for(var u in t.prototype)u!=="constructor"&&(a[u]=t.prototype[u])}var l=new TextTrack(e);if(a.kind=l.kind,a.src=l.src,a.srclang=l.language,a.label=l.label,a.default=l.default,Object.defineProperty(a,"readyState",{get:function(){return s}}),Object.defineProperty(a,"track",{get:function(){return l}}),s=NONE,l.addEventListener("loadeddata",function(){s=LOADED,a.trigger({type:"load",target:a})}),IS_IE8){var c;return c=a,possibleConstructorReturn(r,c)}return r}return inherits(t,n),t})(EventTarget);HTMLTrackElement.prototype.allowedEvents_={load:"load"},HTMLTrackElement.NONE=NONE,HTMLTrackElement.LOADING=LOADING,HTMLTrackElement.LOADED=LOADED,HTMLTrackElement.ERROR=ERROR;var NORMAL={audio:{ListClass:AudioTrackList,TrackClass:AudioTrack,capitalName:"Audio"},video:{ListClass:VideoTrackList,TrackClass:VideoTrack,capitalName:"Video"},text:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"Text"}};Object.keys(NORMAL).forEach(function(n){NORMAL[n].getterName=n+"Tracks",NORMAL[n].privateName=n+"Tracks_"});var REMOTE={remoteText:{ListClass:TextTrackList,TrackClass:TextTrack,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:HtmlTrackElementList,TrackClass:HTMLTrackElement,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ALL=mergeOptions(NORMAL,REMOTE);REMOTE.names=Object.keys(REMOTE),NORMAL.names=Object.keys(NORMAL),ALL.names=[].concat(REMOTE.names).concat(NORMAL.names);var _objCreate=Object.create||(function(){function n(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return n.prototype=t,new n}})();ParsingError.prototype=_objCreate(Error.prototype),ParsingError.prototype.constructor=ParsingError,ParsingError.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},Settings.prototype={set:function(n,t){this.get(n)||t===""||(this.values[n]=t)},get:function(n,t,e){return e?this.has(n)?this.values[n]:t[e]:this.has(n)?this.values[n]:t},has:function(n){return n in this.values},alt:function(n,t,e){for(var r=0;r<e.length;++r)if(t===e[r]){this.set(n,t);break}},integer:function(n,t){/^-?\d+$/.test(t)&&this.set(n,parseInt(t,10))},percent:function(n,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(n,t),!0)}};var ESCAPE={"&":"&","<":"<",">":">","‎":"","‏":""," ":" "},TAG_NAME={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},TAG_ANNOTATION={v:"title",lang:"lang"},NEEDS_PARENT={rt:"ruby"},strongRTLRanges=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];StyleBox.prototype.applyStyles=function(n,t){t=t||this.div;for(var e in n)n.hasOwnProperty(e)&&(t.style[e]=n[e])},StyleBox.prototype.formatStyle=function(n,t){return n===0?0:n+t},CueStyleBox.prototype=_objCreate(StyleBox.prototype),CueStyleBox.prototype.constructor=CueStyleBox,BoxPosition.prototype.move=function(n,t){switch(t=t!==void 0?t:this.lineHeight,n){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},BoxPosition.prototype.overlaps=function(n){return this.left<n.right&&this.right>n.left&&this.top<n.bottom&&this.bottom>n.top},BoxPosition.prototype.overlapsAny=function(n){for(var t=0;t<n.length;t++)if(this.overlaps(n[t]))return!0;return!1},BoxPosition.prototype.within=function(n){return this.top>=n.top&&this.bottom<=n.bottom&&this.left>=n.left&&this.right<=n.right},BoxPosition.prototype.overlapsOppositeAxis=function(n,t){switch(t){case"+x":return this.left<n.left;case"-x":return this.right>n.right;case"+y":return this.top<n.top;case"-y":return this.bottom>n.bottom}},BoxPosition.prototype.intersectPercentage=function(n){return Math.max(0,Math.min(this.right,n.right)-Math.max(this.left,n.left))*Math.max(0,Math.min(this.bottom,n.bottom)-Math.max(this.top,n.top))/(this.height*this.width)},BoxPosition.prototype.toCSSCompatValues=function(n){return{top:this.top-n.top,bottom:n.bottom-this.bottom,left:this.left-n.left,right:n.right-this.right,height:this.height,width:this.width}},BoxPosition.getSimpleBoxPosition=function(n){var t=n.div?n.div.offsetHeight:n.tagName?n.offsetHeight:0,e=n.div?n.div.offsetWidth:n.tagName?n.offsetWidth:0,r=n.div?n.div.offsetTop:n.tagName?n.offsetTop:0;return n=n.div?n.div.getBoundingClientRect():n.tagName?n.getBoundingClientRect():n,{left:n.left,right:n.right,top:n.top||r,height:n.height||t,bottom:n.bottom||r+(n.height||t),width:n.width||e}},WebVTT$1.StringDecoder=function(){return{decode:function(n){if(!n)return"";if(typeof n!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(n))}}},WebVTT$1.convertCueToDOMTree=function(n,t){return n&&t?parseContent(n,t):null},WebVTT$1.processCues=function(n,t,e){if(!n||!t||!e)return null;for(;e.firstChild;)e.removeChild(e.firstChild);var r=n.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",e.appendChild(r),(function(h){for(var p=0;p<h.length;p++)if(h[p].hasBeenReset||!h[p].displayState)return!0;return!1})(t)){var s=[],a=BoxPosition.getSimpleBoxPosition(r),u=Math.round(.05*a.height*100)/100,l={font:u+"px sans-serif"};(function(){for(var h,p,d=0;d<t.length;d++)p=t[d],h=new CueStyleBox(n,p,l),r.appendChild(h.div),moveBoxToLinePosition(n,h,a,s),p.displayState=h.div,s.push(BoxPosition.getSimpleBoxPosition(h))})()}else for(var c=0;c<t.length;c++)r.appendChild(t[c].displayState)},WebVTT$1.Parser=function(n,t,e){e||(e=t,t={}),t||(t={}),this.window=n,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=e||new TextDecoder("utf8"),this.regionList=[]},WebVTT$1.Parser.prototype={reportOrThrowError:function(n){if(!(n instanceof ParsingError))throw n;this.onparsingerror&&this.onparsingerror(n)},parse:function(n){function t(){for(var h=s.buffer,p=0;p<h.length&&h[p]!=="\r"&&h[p]!==`
|
||
`;)++p;var d=h.substr(0,p);return h[p]==="\r"&&++p,h[p]===`
|
||
`&&++p,s.buffer=h.substr(p),d}function e(h){var p=new Settings;if(parseOptions(h,function(y,g){switch(y){case"id":p.set(y,g);break;case"width":p.percent(y,g);break;case"lines":p.integer(y,g);break;case"regionanchor":case"viewportanchor":var v=g.split(",");if(v.length!==2)break;var S=new Settings;if(S.percent("x",v[0]),S.percent("y",v[1]),!S.has("x")||!S.has("y"))break;p.set(y+"X",S.get("x")),p.set(y+"Y",S.get("y"));break;case"scroll":p.alt(y,g,["up"])}},/=/,/\s/),p.has("id")){var d=new(s.vttjs.VTTRegion||s.window.VTTRegion);d.width=p.get("width",100),d.lines=p.get("lines",3),d.regionAnchorX=p.get("regionanchorX",0),d.regionAnchorY=p.get("regionanchorY",100),d.viewportAnchorX=p.get("viewportanchorX",0),d.viewportAnchorY=p.get("viewportanchorY",100),d.scroll=p.get("scroll",""),s.onregion&&s.onregion(d),s.regionList.push({id:p.get("id"),region:d})}}function r(h){var p=new Settings;parseOptions(h,function(d,y){switch(d){case"MPEGT":p.integer(d+"S",y);break;case"LOCA":p.set(d+"L",parseTimeStamp(y))}},/[^\d]:/,/,/),s.ontimestampmap&&s.ontimestampmap({MPEGTS:p.get("MPEGTS"),LOCAL:p.get("LOCAL")})}var s=this;n&&(s.buffer+=s.decoder.decode(n,{stream:!0}));try{var a;if(s.state==="INITIAL"){if(!/\r\n|\n/.test(s.buffer))return this;a=t();var u=a.match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new ParsingError(ParsingError.Errors.BadSignature);s.state="HEADER"}for(var l=!1;s.buffer;){if(!/\r\n|\n/.test(s.buffer))return this;switch(l?l=!1:a=t(),s.state){case"HEADER":/:/.test(a)?(function(h){h.match(/X-TIMESTAMP-MAP/)?parseOptions(h,function(p,d){switch(p){case"X-TIMESTAMP-MAP":r(d)}},/=/):parseOptions(h,function(p,d){switch(p){case"Region":e(d)}},/:/)})(a):a||(s.state="ID");continue;case"NOTE":a||(s.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){s.state="NOTE";break}if(!a)continue;if(s.cue=new(s.vttjs.VTTCue||s.window.VTTCue)(0,0,""),s.state="CUE",a.indexOf("-->")===-1){s.cue.id=a;continue}case"CUE":try{parseCue(a,s.cue,s.regionList)}catch(h){s.reportOrThrowError(h),s.cue=null,s.state="BADCUE";continue}s.state="CUETEXT";continue;case"CUETEXT":var c=a.indexOf("-->")!==-1;if(!a||c&&(l=!0)){s.oncue&&s.oncue(s.cue),s.cue=null,s.state="ID";continue}s.cue.text&&(s.cue.text+=`
|
||
`),s.cue.text+=a;continue;case"BADCUE":a||(s.state="ID");continue}}}catch(h){s.reportOrThrowError(h),s.state==="CUETEXT"&&s.cue&&s.oncue&&s.oncue(s.cue),s.cue=null,s.state=s.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var n=this;try{if(n.buffer+=n.decoder.decode(),(n.cue||n.state==="HEADER")&&(n.buffer+=`
|
||
|
||
`,n.parse()),n.state==="INITIAL")throw new ParsingError(ParsingError.Errors.BadSignature)}catch(t){n.reportOrThrowError(t)}return n.onflush&&n.onflush(),this}};var vtt$1=WebVTT$1,autoKeyword="auto",directionSetting={"":!0,lr:!0,rl:!0},alignSetting={start:!0,middle:!0,end:!0,left:!0,right:!0};VTTCue.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var vttcue=VTTCue,scrollSetting={"":!0,up:!0},vttregion=VTTRegion,browserIndex=createCommonjsModule(function(n){var t=n.exports={WebVTT:vtt$1,VTTCue:vttcue,VTTRegion:vttregion};window_1.vttjs=t,window_1.WebVTT=t.WebVTT;var e=t.VTTCue,r=t.VTTRegion,s=window_1.VTTCue,a=window_1.VTTRegion;t.shim=function(){window_1.VTTCue=e,window_1.VTTRegion=r},t.restore=function(){window_1.VTTCue=s,window_1.VTTRegion=a},window_1.VTTCue||t.shim()}),Tech=(function(n){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){};classCallCheck(this,t),r.reportTouchActivity=!1;var a=possibleConstructorReturn(this,n.call(this,e,r,s));return a.hasStarted_=!1,a.on("playing",function(){this.hasStarted_=!0}),a.on("loadstart",function(){this.hasStarted_=!1}),ALL.names.forEach(function(u){var l=ALL[u];r&&r[l.getterName]&&(a[l.privateName]=r[l.getterName])}),a.featuresProgressEvents||a.manualProgressOn(),a.featuresTimeupdateEvents||a.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(u){r["native"+u+"Tracks"]===!1&&(a["featuresNative"+u+"Tracks"]=!1)}),r.nativeCaptions===!1||r.nativeTextTracks===!1||IS_MAC&&IS_SAFARI?a.featuresNativeTextTracks=!1:r.nativeCaptions!==!0&&r.nativeTextTracks!==!0||(a.featuresNativeTextTracks=!0),a.featuresNativeTextTracks=!1,a.featuresNativeTextTracks||a.emulateTextTracks(),a.autoRemoteTextTracks_=new ALL.text.ListClass,a.initTrackListeners(),r.nativeControlsForTouch||a.emitTapEvents(),a.constructor&&(a.name_=a.constructor.name||"Unknown Tech"),a}return inherits(t,n),t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(bind(this,function(){var r=this.bufferedPercent();this.bufferedPercent_!==r&&this.trigger("progress"),this.bufferedPercent_=r,r===1&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return createTimeRanges(0,0)},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(NORMAL.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),n.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var r=this;e=[].concat(e),e.forEach(function(s){for(var a=r[s+"Tracks"]()||[],u=a.length;u--;){var l=a[u];s==="text"&&r.removeRemoteTextTrack(l),a.removeTrack(l)}})},t.prototype.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],r=e.length;r--;){var s=e[r];this.removeRemoteTextTrack(s)}},t.prototype.reset=function(){},t.prototype.error=function(e){return e!==void 0&&(this.error_=new MediaError(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?createTimeRanges(0,0):createTimeRanges()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;NORMAL.names.forEach(function(r){var s=NORMAL[r],a=function(){e.trigger(r+"trackchange")},u=e[s.getterName]();u.addEventListener("removetrack",a),u.addEventListener("addtrack",a),e.on("dispose",function(){u.removeEventListener("removetrack",a),u.removeEventListener("addtrack",a)})})},t.prototype.addWebVttScript_=function(){var e=this;if(!window_1.WebVTT)if(document_1.body.contains(this.el())){if(!this.options_["vtt.js"]&&isPlain(browserIndex)&&Object.keys(browserIndex).length>0)return void this.trigger("vttjsloaded");var r=document_1.createElement("script");r.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",r.onload=function(){e.trigger("vttjsloaded")},r.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){r.onload=null,r.onerror=null}),window_1.WebVTT=!0,this.el().parentNode.appendChild(r)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,r=this.textTracks(),s=this.remoteTextTracks(),a=function(h){return r.addTrack(h.track)},u=function(h){return r.removeTrack(h.track)};s.on("addtrack",a),s.on("removetrack",u),this.addWebVttScript_();var l=function(){return e.trigger("texttrackchange")},c=function(){l();for(var h=0;h<r.length;h++){var p=r[h];p.removeEventListener("cuechange",l),p.mode==="showing"&&p.addEventListener("cuechange",l)}};c(),r.addEventListener("change",c),r.addEventListener("addtrack",c),r.addEventListener("removetrack",c),this.on("dispose",function(){s.off("addtrack",a),s.off("removetrack",u),r.removeEventListener("change",c),r.removeEventListener("addtrack",c),r.removeEventListener("removetrack",c);for(var h=0;h<r.length;h++)r[h].removeEventListener("cuechange",l)})},t.prototype.addTextTrack=function(e,r,s){if(!e)throw new Error("TextTrack kind is required but was not provided");return createTrackHelper(this,e,r,s)},t.prototype.createRemoteTextTrack=function(e){var r=mergeOptions(e,{tech:this});return new REMOTE.remoteTextEl.TrackClass(r)},t.prototype.addRemoteTextTrack=function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.createRemoteTextTrack(r);return s!==!0&&s!==!1&&(log$2.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),s=!0),this.remoteTextTrackEls().addTrackElement_(a),this.remoteTextTracks().addTrack(a.track),s!==!0&&this.ready(function(){return e.autoRemoteTextTracks_.addTrack(a.track)}),a},t.prototype.addAudioTrack=function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=mergeOptions(r,{tech:this}),u=new NORMAL.audio.TrackClass(a);return this.audioTracks_.addTrack(u),s!==!0&&this.ready(function(){return e.audioTracks_.addTrack(u)}),u},t.prototype.removeRemoteTextTrack=function(e){var r=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(r),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.requestPictureInPicture=function(){var e=this.options_.Promise||window_1.Promise;if(e)return e.reject()},t.prototype.disablePictureInPicture=function(){return!0},t.prototype.setDisablePictureInPicture=function(){},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,r){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,r){if(t.techs_||(t.techs_={}),!t.isTech(r))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=toTitleCase(e),t.techs_[e]=r,e!=="Tech"&&t.defaultTechOrder_.push(e),r},t.getTech=function(e){if(e)return e=toTitleCase(e),t.techs_&&t.techs_[e]?t.techs_[e]:window_1&&window_1.videojs&&window_1.videojs[e]?(log$2.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),window_1.videojs[e]):void 0},t})(Component);ALL.names.forEach(function(n){var t=ALL[n];Tech.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),Tech.prototype.featuresVolumeControl=!0,Tech.prototype.featuresMuteControl=!0,Tech.prototype.featuresFullscreenResize=!1,Tech.prototype.featuresPlaybackRate=!1,Tech.prototype.featuresProgressEvents=!1,Tech.prototype.featuresTimeupdateEvents=!1,Tech.prototype.featuresNativeTextTracks=!1,Tech.withSourceHandlers=function(n){n.registerSourceHandler=function(t,e){var r=n.sourceHandlers;r||(r=n.sourceHandlers=[]),e===void 0&&(e=r.length),r.splice(e,0,t)},n.canPlayType=function(t){for(var e=n.sourceHandlers||[],r=void 0,s=0;s<e.length;s++)if(r=e[s].canPlayType(t))return r;return""},n.selectSourceHandler=function(t,e){for(var r=n.sourceHandlers||[],s=0;s<r.length;s++)if(r[s].canHandleSource(t,e))return r[s];return null},n.canPlaySource=function(t,e){var r=n.selectSourceHandler(t,e);return r?r.canHandleSource(t,e):""},["seekable","duration"].forEach(function(t){var e=this[t];typeof e=="function"&&(this[t]=function(){return this.sourceHandler_&&this.sourceHandler_[t]?this.sourceHandler_[t].apply(this.sourceHandler_,arguments):e.apply(this,arguments)})},n.prototype),n.prototype.setSource=function(t){var e=n.selectSourceHandler(t,this.options_);e||(n.nativeSourceHandler?e=n.nativeSourceHandler:log$2.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),e!==n.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=e.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},n.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Component.registerComponent("Tech",Tech),Tech.registerTech("Tech",Tech),Tech.defaultTechOrder_=[];var middlewares={},allowedGetters={buffered:1,currentTime:1,duration:1,seekable:1,played:1},allowedSetters={setCurrentTime:1},MimetypesKind={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},getMimetype=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=getFileExtension(n);return MimetypesKind[t.toLowerCase()]||""},filterSource=function n(t){if(Array.isArray(t)){var e=[];t.forEach(function(r){r=n(r),Array.isArray(r)?e=e.concat(r):isObject$1(r)&&e.push(r)}),t=e}else t=typeof t=="string"&&t.trim()?[fixSource({src:t})]:isObject$1(t)&&typeof t.src=="string"&&t.src&&t.src.trim()?[fixSource(t)]:[];return t},fixSource=function(n){if(!n.type){var t=getMimetype(n.src);t&&(n.type=t)}return n},enc=createCommonjsModule(function(module,exports$1){(function(n,t){module.exports=t()})(self,function(){return(function(){function __webpack_require__(n){var t=__webpack_module_cache__[n];if(t!==void 0)return t.exports;var e=__webpack_module_cache__[n]={exports:{}};return __webpack_modules__[n](e,e.exports,__webpack_require__),e.exports}var __webpack_modules__={"./node_modules/@tencent/js-armor-loader/dist/runtime.js":function node_modulesTencentJsArmorLoaderDistRuntimeJs(module){function T(n,t,e,r,s,a,u,l){function c(){return(function(C,k,U){return new(Function.bind.apply(C,k))}).apply(null,arguments)}var h,p=!r,d=(n=+n,t=t||[0],r=r||[[this],[{}]],s=s||{},[]),y=null;Function.prototype.bind||(h=[].slice,Function.prototype.bind=function(C){if(typeof this!="function")throw new TypeError("bind101");var k=h.call(arguments,1),U=k.length,M=this,V=function(){},I=function(){return k.length=U,k.push.apply(k,arguments),M.apply(V.prototype.isPrototypeOf(this)?this:C,k)};return this.prototype&&(V.prototype=this.prototype),I.prototype=new V,I});for(var g=[function(){r[r.length-2]=r[r.length-2]>>>r.pop()},function(){r[r.length-2]=r[r.length-2]-r.pop()},function(){r[r.length-2]=r[r.length-2]+r.pop()},function(){var C=t[n++];r[C]=r[C]===void 0?[]:r[C]},function(){r[r.length-2]=r[r.length-2]|r.pop()},function(){r[r.length-1]=e[r[r.length-1]]},function(){r[r.length-2]=r[r.length-2]in r.pop()},function(){var C=r.pop();s[C]||(e[C]=e[C](),s[C]=1),r.push([e,C])},function(){r[r.length-2]=r[r.length-2]/r.pop()},function(){r[r.length-2]=r[r.length-2]<=r.pop()},function(){var C=t[n++],k=r[r.length-2-C];r[r.length-2-C]=r.pop(),r.push(k)},function(){},function(){r[r.length-1]=t[n++]},function(){r.push(_typeof(r.pop()))},function(){r.push("")},function(){r[r.length-2]=r[r.length-2]>r.pop()},function(){r.push(!0)},function(){var C=t[n++],k=C?r.slice(-C):[];r.length-=C,k.unshift(null),r.push(c(r.pop(),k))},function(){return!0},function(){var C,k=[];for(C in r.pop())k.push(C);r.push(k)},function(){r[r.length-2]=r[r.length-2]<<r.pop()},function(){d.pop()},function(){var C=r.pop();s[C]||(e[C]=e[C](),s[C]=1),r.push(e[C])},function(){r.pop()},function(){r[r.length-2]=r[r.length-2]*r.pop()},function(){y=null},function(){var C=r.pop(),k=r.pop();r.push([k[0][k[1]],C])},function(){d.push([t[n++],r.length,t[n++]])},function(){r.push(!1)},function(){var C=r.pop();r.push(C[0][C[1]])},function(){var k=t[n++],C=k?r.slice(-k):[],k=(r.length-=k,C.unshift(null),r.pop());r.push(c(k[0][k[1]],C))},function(){throw r[r.length-1]},function(){r.push([r.pop(),r.pop()].reverse())},function(){for(var C=t[n++],k=[],U=t[n++],M=t[n++],V=[],I=0;I<U;I++)k[t[n++]]=r[t[n++]];for(I=0;I<M;I++)V[I]=t[n++];r.push(function m(){var _=k.slice(0);_[0]=[this],_[1]=[arguments],_[2]=[m];for(var b=0;b<V.length&&b<arguments.length;b++)0<V[b]&&(_[V[b]]=[arguments[b]]);return T(C,t,e,_,s)})},function(){r.push(t[n++])},function(){r.push(r[r.length-1])},function(){r[r.length-2]=r[r.length-2]&r.pop()},function(){return!!y},function(){r[r.length-2]=r[r.length-2]<r.pop()},function(){r[r.length-1].length?r.push(r[r.length-1].shift(),!0):r.push(void 0,!1)},function(){r.push(null)},function(){r.length-=t[n++]},function(){r[r[r.length-1][0]]=r[r[r.length-1][0]]===void 0?[]:r[r[r.length-1][0]]},function(){var k=t[n++],C=k?r.slice(-k):[],k=(r.length-=k,r.pop());r.push(k[0][k[1]].apply(k[0],C))},function(){r[r.length-2]=r[r.length-2]>=r.pop()},function(){for(var C=r.pop(),k=t[n++],U=[],M=t[n++],V=t[n++],I=[],m=0;m<M;m++)U[t[n++]]=r[t[n++]];for(m=0;m<V;m++)I[m]=t[n++];var _=function b(){var E=U.slice(0);E[0]=[this],E[1]=[arguments],E[2]=[b];for(var P=0;P<I.length&&P<arguments.length;P++)0<I[P]&&(E[I[P]]=[arguments[P]]);return T(k,t,e,E,s)};_.toString=function(){return C},r.push(_)},function(){r[r.length-1]+=String.fromCharCode(t[n++])},function(){r.push([e,r.pop()])},function(){r[r.length-2]=r[r.length-2]==r.pop()},function(){r[r.length-2]=r[r.length-2]===r.pop()},function(){r.push([t[n++]])},function(){r.push(r[t[n++]][0])},function(){r[r.length-2]=r[r.length-2]%r.pop()},function(){var C=t[n++];r[r.length-1]&&(n=C)},function(){r[r.length-2]=r[r.length-2]>>r.pop()},function(){n=t[n++]},function(){r.push(~r.pop())},function(){var C=r.pop();r.push([r[r.pop()][0],C])},function(){var C=t[n++],k=C?r.slice(-C):[];r.length-=C,r.push(r.pop().apply(e,k))},function(){r[r[r.length-2][0]][0]=r[r.length-1]},function(){r.length=t[n++]},function(){var C=r[r.length-2];C[0][C[1]]=r[r.length-1]},function(){var C=r.pop();r.push(delete C[0][C[1]])},function(){r.push(r[r.pop()[0]][0])},function(){r[r.length-2]=r[r.length-2]instanceof r.pop()},function(){r.push(!r.pop())},function(){r[r.length-2]=r[r.length-2]^r.pop()},function(){var C=r[r.length-2],k=Object.getOwnPropertyDescriptor(C[0],C[1])||{configurable:!0,enumerable:!0};k.get=r[r.length-1],Object.defineProperty(C[0],C[1],k)},function(){var C=r[r.length-2],k=Object.getOwnPropertyDescriptor(C[0],C[1])||{configurable:!0,enumerable:!0};k.set=r[r.length-1],Object.defineProperty(C[0],C[1],k)},function(){r.push(void 0)}];;)try{for(var v=!1;!v;)v=g[t[n++]]();if(y)throw y;return p?(r.pop(),r.slice(3+T.v)):r.pop()}catch(C){var S=d.pop();if(S===void 0)throw C;y=C,n=S[0],r.length=S[1],S[2]&&(r[S[2]][0]=y)}}function arrayIndexOf(n,t,e){if(typeof Array.prototype.indexOf=="function")return Array.prototype.indexOf.call(n,t,e);var r,s=o.length;if(s===0)return-1;var a=0|e;if(a>=s)return-1;for(r=Math.max(a,0);r<s;r++)if(r in o&&o[r]===t)return r;return-1}function base64Decode(n){for(var t,e,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),s=String(n).replace(/[=]+$/,""),a=0,u=0,l="";e=s.charAt(u++);~e&&(t=a%4?64*t+e:e,a++%4)?l+=String.fromCharCode(255&t>>(-2*a&6)):0)e=arrayIndexOf(r,e);return l}T.v=0,module.exports.r=function(symbols){for(var result=[],i=0;i<symbols.length;i++)try{result.push(eval(symbols[i]))}catch(n){result.push(void 0)}return result},module.exports.d=function(n){function t(){for(;c===u;)s.push(l),c++,u=r.shift(),l=r.shift()}if(typeof n[1]!="object")return n;for(var e=n[0],r=n[1],s=[],a=base64Decode(e),u=r.shift(),l=r.shift(),c=0,h=0;h<a.length;h++){var p=a.charAt(h).charCodeAt(0);t(),s.push(p),c++}return t(),s},module.exports.g=function(n){return n.shift()[0]},module.exports.v=T},"./utils.js":function(n,t,e){function r(p,d,y){var g=arguments.length>3&&arguments[3]!==void 0&&arguments[3],v=document.createElement("script");if(v.onload=v.onreadystatechange=function(){this.readyState&&this.readyState!=="loaded"&&this.readyState!=="complete"||(typeof d=="function"&&d(),v.onload=v.onreadystatechange=null,v.parentNode&&!g&&v.parentNode.removeChild(v))},y){for(var S in y)if(y.hasOwnProperty(S)){var C=y[S];C===null?v.removeAttribute(C):v.setAttribute(S,C)}}v.src=p,document.getElementsByTagName("head")[0].appendChild(v)}function s(){for(var p="",d=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],y=0;y<32;y++)p+=d[a(0,15)];return p}function a(p,d){return Math.floor(Math.random()*(d-p+1)+p)}function u(p){return h.g(h.v(0,h.d(["PAQDAgMDNzw8CgMCAwMDBAMFAwYDBwMIAwkiABYNDi5zLnQuci5pLm4uZzFBNTQXNzcRF0USMgMiARYRADsXFzIEIhk7FxcyBSJ7OxcXMgYiADsXFzIGPyIABw4ubC5lLm4uZy50LmgaHSxBNXMXN+gbFzIHIgAHDi5jLmguYS5yLkMuby5kLmUuQS50GjMGKwE7FxcyBzMHIgEYMwVCOxcXMgcyBw4udC5vLlMudC5yLmkubi5nOTMEKwE7FxcyAw4ucC51LnMuaDkzBysBFzIGIz8jCgEKACIBAjsXDAAKAAQXN1Y8MggiAgcOLmYuci5vLm0uQy5oLmEuci5DLm8uZC5lGjMEImECKwE7FxcyCTIDDi5qLm8uaS5uOTMIKwE7FxczCRIyAyEJAAA7FxdFEg==",[7,297]]),[function(){return p===void 0?void 0:p},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String}])).call(this)}function l(p){return h.g(h.v(0,h.d(["PAQDAgMDNy48DAMCAwMDBAMFAwYDBwMIAwkDCgMLIgAWDQ4ucy50LnIuaS5uLmcxQTU4Fzc7AxdFEjIDIgEWEQA7FxcyBCIBFhEAOxcXMgUiGTsXFzIGIns7FxcyByICBw4uZi5yLm8ubS5DLmguYS5yLkMuby5kLmUaMwUiYQIrATsXFzIDIgAHDi5zLnAubC5pLnQaMwcrATsXFzIIIgA7FxcyCD8yAw4ubC5lLm4uZy50Lmg5HSxBNcEXNyEXMgkiAwcyAzMIOR0zBSsCOxcXMgkzCSIBGDMGQjsXFzIKIgIHDi5mLnIuby5tLkMuaC5hLnIuQy5vLmQuZRozCSsBOxcXMgQOLnAudS5zLmg5MworARcyCCM/IwoBCgAiAQI7FwwACgAEFzelGzILMgQOLmouby5pLm45DisBOxcXMwsSMgMhCQAAOxcXRRI=",[7,326,191,303]]),[function(){return p===void 0?void 0:p},function(){return typeof Array>"u"?void 0:Array},function(){return typeof String>"u"?void 0:String},function(){return typeof parseInt>"u"?void 0:parseInt}])).call(this)}function c(p,d){if(!d)return!1;var y=new RegExp("^"+d.replace("*",".*")+"$","i");return d.toLowerCase().replace("*.","")===p||y.test(p)}var h=e("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(t,"__esModule",{value:!0}),t.decrypto=l,t.encrypto=u,t.genOverlay=s,t.getRandomInt=a,t.isDomainMatchingWildcard=c,t.loadScript=r},"./utils/aes.js":function(n,t,e){function r(A){return parseInt(A)===A}function s(A){if(!r(A.length))return!1;for(var O=0;O<A.length;O++)if(!r(A[O])||A[O]<0||A[O]>255)return!1;return!0}function a(A,O){if(A.buffer&&A.name==="Uint8Array")return O&&(A=A.slice?A.slice():Array.prototype.slice.call(A)),A;if(Array.isArray(A)){if(!s(A))throw new Error("Array contains invalid value: "+A);return new Uint8Array(A)}if(r(A.length)&&s(A))return new Uint8Array(A);throw new Error("unsupported array-like object")}function u(A){return new Uint8Array(A)}function l(A,O,z,H,x){H==null&&x==null||(A=A.slice?A.slice(H,x):Array.prototype.slice.call(A,H,x)),O.set(A,z)}function c(A){for(var O=[],z=0;z<A.length;z+=4)O.push(A[z]<<24|A[z+1]<<16|A[z+2]<<8|A[z+3]);return O}function h(A){A=a(A,!0);var O=16-A.length%16,z=u(A.length+O);l(A,z);for(var H=A.length;H<z.length;H++)z[H]=O;return z}function p(A){if(A=a(A,!0),A.length<16)throw new Error("PKCS#7 invalid length");var O=A[A.length-1];if(O>16)throw new Error("PKCS#7 padding byte out of range");for(var z=A.length-O,H=0;H<O;H++)if(A[z+H]!==O)throw new Error("PKCS#7 invalid padding byte");var x=u(z);return l(A,x,0,0,z),x}e.r(t),e.d(t,{default:function(){return ve}});var d=(function(){function A(z){var H=[],x=0;for(z=encodeURI(z);x<z.length;){var ee=z.charCodeAt(x++);ee===37?(H.push(parseInt(z.substr(x,2),16)),x+=2):H.push(ee)}return a(H)}function O(z){for(var H=[],x=0;x<z.length;){var ee=z[x];ee<128?(H.push(String.fromCharCode(ee)),x++):ee>191&&ee<224?(H.push(String.fromCharCode((31&ee)<<6|63&z[x+1])),x+=2):(H.push(String.fromCharCode((15&ee)<<12|(63&z[x+1])<<6|63&z[x+2])),x+=3)}return H.join("")}return{toBytes:A,fromBytes:O}})(),y=(function(){function A(H){for(var x=[],ee=0;ee<H.length;ee+=2)x.push(parseInt(H.substr(ee,2),16));return x}function O(H){for(var x=[],ee=0;ee<H.length;ee++){var ne=H[ee];x.push(z[(240&ne)>>4]+z[15&ne])}return x.join("")}var z="0123456789abcdef";return{toBytes:A,fromBytes:O}})(),g={16:10,24:12,32:14},v=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],S=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],C=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],k=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],U=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],M=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],V=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],I=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],m=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],_=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],b=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],E=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],P=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],N=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],j=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925],G=function A(O){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:a(O,!0)}),this._prepare()};G.prototype._prepare=function(){var A=g[this.key.length];if(A==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var O=0;O<=A;O++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var z,H=4*(A+1),x=this.key.length/4,ee=c(this.key),O=0;O<x;O++)z=O>>2,this._Ke[z][O%4]=ee[O],this._Kd[A-z][O%4]=ee[O];for(var ne,ge=0,Ce=x;Ce<H;){if(ne=ee[x-1],ee[0]^=S[ne>>16&255]<<24^S[ne>>8&255]<<16^S[255&ne]<<8^S[ne>>24&255]^v[ge]<<24,ge+=1,x!=8)for(var O=1;O<x;O++)ee[O]^=ee[O-1];else{for(var O=1;O<x/2;O++)ee[O]^=ee[O-1];ne=ee[x/2-1],ee[x/2]^=S[255&ne]^S[ne>>8&255]<<8^S[ne>>16&255]<<16^S[ne>>24&255]<<24;for(var O=x/2+1;O<x;O++)ee[O]^=ee[O-1]}for(var Te,He,O=0;O<x&&Ce<H;)Te=Ce>>2,He=Ce%4,this._Ke[Te][He]=ee[O],this._Kd[A-Te][He]=ee[O++],Ce++}for(var Te=1;Te<A;Te++)for(var He=0;He<4;He++)ne=this._Kd[Te][He],this._Kd[Te][He]=E[ne>>24&255]^P[ne>>16&255]^N[ne>>8&255]^j[255&ne]},G.prototype.encrypt=function(A){if(A.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var O=this._Ke.length-1,z=[0,0,0,0],H=c(A),x=0;x<4;x++)H[x]^=this._Ke[0][x];for(var ee=1;ee<O;ee++){for(var x=0;x<4;x++)z[x]=k[H[x]>>24&255]^U[H[(x+1)%4]>>16&255]^M[H[(x+2)%4]>>8&255]^V[255&H[(x+3)%4]]^this._Ke[ee][x];H=z.slice()}for(var ne,ge=u(16),x=0;x<4;x++)ne=this._Ke[O][x],ge[4*x]=255&(S[H[x]>>24&255]^ne>>24),ge[4*x+1]=255&(S[H[(x+1)%4]>>16&255]^ne>>16),ge[4*x+2]=255&(S[H[(x+2)%4]>>8&255]^ne>>8),ge[4*x+3]=255&(S[255&H[(x+3)%4]]^ne);return ge},G.prototype.decrypt=function(A){if(A.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var O=this._Kd.length-1,z=[0,0,0,0],H=c(A),x=0;x<4;x++)H[x]^=this._Kd[0][x];for(var ee=1;ee<O;ee++){for(var x=0;x<4;x++)z[x]=I[H[x]>>24&255]^m[H[(x+3)%4]>>16&255]^_[H[(x+2)%4]>>8&255]^b[255&H[(x+1)%4]]^this._Kd[ee][x];H=z.slice()}for(var ne,ge=u(16),x=0;x<4;x++)ne=this._Kd[O][x],ge[4*x]=255&(C[H[x]>>24&255]^ne>>24),ge[4*x+1]=255&(C[H[(x+3)%4]>>16&255]^ne>>16),ge[4*x+2]=255&(C[H[(x+2)%4]>>8&255]^ne>>8),ge[4*x+3]=255&(C[255&H[(x+1)%4]]^ne);return ge};var ue=function A(O,z){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",z){if(z.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)")}else z=u(16);this._lastCipherblock=a(z,!0),this._aes=new G(O)};ue.prototype.encrypt=function(A){if(A=a(A),A.length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var O=u(A.length),z=u(16),H=0;H<A.length;H+=16){l(A,z,0,H,H+16);for(var x=0;x<16;x++)z[x]^=this._lastCipherblock[x];this._lastCipherblock=this._aes.encrypt(z),l(this._lastCipherblock,O,H)}return O},ue.prototype.decrypt=function(A){if(A=a(A),A.length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var O=u(A.length),z=u(16),H=0;H<A.length;H+=16){l(A,z,0,H,H+16),z=this._aes.decrypt(z);for(var x=0;x<16;x++)O[H+x]=z[x]^this._lastCipherblock[x];l(A,this._lastCipherblock,0,H,H+16)}return O};var le=function A(O){if(!(this instanceof A))throw Error("Counter must be instanitated with `new`");O===0||O||(O=1),typeof O=="number"?(this._counter=u(16),this.setValue(O)):this.setBytes(O)};le.prototype.setValue=function(A){if(typeof A!="number"||parseInt(A)!=A)throw new Error("invalid counter value (must be an integer)");if(A>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var O=15;O>=0;--O)this._counter[O]=A%256,A=parseInt(A/256)},le.prototype.setBytes=function(A){if(A=a(A,!0),A.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=A},le.prototype.increment=function(){for(var A=15;A>=0;A--){if(this._counter[A]!==255){this._counter[A]++;break}this._counter[A]=0}};var Re={AES:G,Counter:le,modeOfOperation:{cbc:ue},utils:{hex:y,utf8:d},padding:{pkcs7:{pad:h,strip:p}},_arrayTest:{coerceArray:a,createArray:u,copyArray:l}},ve=Re},"./utils/drm-checker.js":function(n,t,e){function r(){function A(X,W,te){return Object.defineProperty(X,W,{value:te,enumerable:!0,configurable:!0,writable:!0}),X[W]}function O(X,W,te,ce){var oe=W&&W.prototype instanceof H?W:H,_e=Object.create(oe.prototype),we=new Ne(ce||[]);return Y(_e,"_invoke",{value:Ce(X,te,we)}),_e}function z(X,W,te){try{return{type:"normal",arg:X.call(W,te)}}catch(ce){return{type:"throw",arg:ce}}}function H(){}function x(){}function ee(){}function ne(X){["next","throw","return"].forEach(function(W){A(X,W,function(te){return this._invoke(W,te)})})}function ge(X,W){function te(oe,_e,we,ae){var ke=z(X[oe],X,_e);if(ke.type!=="throw"){var Ve=ke.arg,Pe=Ve.value;return Pe&&v(Pe)=="object"&&K.call(Pe,"__await")?W.resolve(Pe.__await).then(function(De){te("next",De,we,ae)},function(De){te("throw",De,we,ae)}):W.resolve(Pe).then(function(De){Ve.value=De,we(Ve)},function(De){return te("throw",De,we,ae)})}ae(ke.arg)}var ce;Y(this,"_invoke",{value:function(oe,_e){function we(){return new W(function(ae,ke){te(oe,_e,ae,ke)})}return ce=ce?ce.then(we,we):we()}})}function Ce(X,W,te){var ce="suspendedStart";return function(oe,_e){if(ce==="executing")throw new Error("Generator is already running");if(ce==="completed"){if(oe==="throw")throw _e;return $e()}for(te.method=oe,te.arg=_e;;){var we=te.delegate;if(we){var ae=Te(we,te);if(ae){if(ae===pe)continue;return ae}}if(te.method==="next")te.sent=te._sent=te.arg;else if(te.method==="throw"){if(ce==="suspendedStart")throw ce="completed",te.arg;te.dispatchException(te.arg)}else te.method==="return"&&te.abrupt("return",te.arg);ce="executing";var ke=z(X,W,te);if(ke.type==="normal"){if(ce=te.done?"completed":"suspendedYield",ke.arg===pe)continue;return{value:ke.arg,done:te.done}}ke.type==="throw"&&(ce="completed",te.method="throw",te.arg=ke.arg)}}}function Te(X,W){var te=W.method,ce=X.iterator[te];if(ce===void 0)return W.delegate=null,te==="throw"&&X.iterator.return&&(W.method="return",W.arg=void 0,Te(X,W),W.method==="throw")||te!=="return"&&(W.method="throw",W.arg=new TypeError("The iterator does not provide a '"+te+"' method")),pe;var oe=z(ce,X.iterator,W.arg);if(oe.type==="throw")return W.method="throw",W.arg=oe.arg,W.delegate=null,pe;var _e=oe.arg;return _e?_e.done?(W[X.resultName]=_e.value,W.next=X.nextLoc,W.method!=="return"&&(W.method="next",W.arg=void 0),W.delegate=null,pe):_e:(W.method="throw",W.arg=new TypeError("iterator result is not an object"),W.delegate=null,pe)}function He(X){var W={tryLoc:X[0]};1 in X&&(W.catchLoc=X[1]),2 in X&&(W.finallyLoc=X[2],W.afterLoc=X[3]),this.tryEntries.push(W)}function Ke(X){var W=X.completion||{};W.type="normal",delete W.arg,X.completion=W}function Ne(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(He,this),this.reset(!0)}function Ye(X){if(X){var W=X[se];if(W)return W.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var te=-1,ce=function oe(){for(;++te<X.length;)if(K.call(X,te))return oe.value=X[te],oe.done=!1,oe;return oe.value=void 0,oe.done=!0,oe};return ce.next=ce}}return{next:$e}}function $e(){return{value:void 0,done:!0}}r=function(){return Ie};var Ie={},Be=Object.prototype,K=Be.hasOwnProperty,Y=Object.defineProperty||function(X,W,te){X[W]=te.value},Z=typeof Symbol=="function"?Symbol:{},se=Z.iterator||"@@iterator",ie=Z.asyncIterator||"@@asyncIterator",fe=Z.toStringTag||"@@toStringTag";try{A({},"")}catch{A=function(W,te,ce){return W[te]=ce}}Ie.wrap=O;var pe={},Ae={};A(Ae,se,function(){return this});var Le=Object.getPrototypeOf,Fe=Le&&Le(Le(Ye([])));Fe&&Fe!==Be&&K.call(Fe,se)&&(Ae=Fe);var xe=ee.prototype=H.prototype=Object.create(Ae);return x.prototype=ee,Y(xe,"constructor",{value:ee,configurable:!0}),Y(ee,"constructor",{value:x,configurable:!0}),x.displayName=A(ee,fe,"GeneratorFunction"),Ie.isGeneratorFunction=function(X){var W=typeof X=="function"&&X.constructor;return!!W&&(W===x||(W.displayName||W.name)==="GeneratorFunction")},Ie.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,ee):(X.__proto__=ee,A(X,fe,"GeneratorFunction")),X.prototype=Object.create(xe),X},Ie.awrap=function(X){return{__await:X}},ne(ge.prototype),A(ge.prototype,ie,function(){return this}),Ie.AsyncIterator=ge,Ie.async=function(X,W,te,ce,oe){oe===void 0&&(oe=Promise);var _e=new ge(O(X,W,te,ce),oe);return Ie.isGeneratorFunction(W)?_e:_e.next().then(function(we){return we.done?we.value:_e.next()})},ne(xe),A(xe,fe,"Generator"),A(xe,se,function(){return this}),A(xe,"toString",function(){return"[object Generator]"}),Ie.keys=function(X){var W=Object(X),te=[];for(var ce in W)te.push(ce);return te.reverse(),function oe(){for(;te.length;){var _e=te.pop();if(_e in W)return oe.value=_e,oe.done=!1,oe}return oe.done=!0,oe}},Ie.values=Ye,Ne.prototype={constructor:Ne,reset:function(X){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Ke),!X)for(var W in this)W.charAt(0)==="t"&&K.call(this,W)&&!isNaN(+W.slice(1))&&(this[W]=void 0)},stop:function(){this.done=!0;var X=this.tryEntries[0].completion;if(X.type==="throw")throw X.arg;return this.rval},dispatchException:function(X){function W(ke,Ve){return _e.type="throw",_e.arg=X,te.next=ke,Ve&&(te.method="next",te.arg=void 0),!!Ve}if(this.done)throw X;for(var te=this,ce=this.tryEntries.length-1;ce>=0;--ce){var oe=this.tryEntries[ce],_e=oe.completion;if(oe.tryLoc==="root")return W("end");if(oe.tryLoc<=this.prev){var we=K.call(oe,"catchLoc"),ae=K.call(oe,"finallyLoc");if(we&&ae){if(this.prev<oe.catchLoc)return W(oe.catchLoc,!0);if(this.prev<oe.finallyLoc)return W(oe.finallyLoc)}else if(we){if(this.prev<oe.catchLoc)return W(oe.catchLoc,!0)}else{if(!ae)throw new Error("try statement without catch or finally");if(this.prev<oe.finallyLoc)return W(oe.finallyLoc)}}}},abrupt:function(X,W){for(var te=this.tryEntries.length-1;te>=0;--te){var ce=this.tryEntries[te];if(ce.tryLoc<=this.prev&&K.call(ce,"finallyLoc")&&this.prev<ce.finallyLoc){var oe=ce;break}}oe&&(X==="break"||X==="continue")&&oe.tryLoc<=W&&W<=oe.finallyLoc&&(oe=null);var _e=oe?oe.completion:{};return _e.type=X,_e.arg=W,oe?(this.method="next",this.next=oe.finallyLoc,pe):this.complete(_e)},complete:function(X,W){if(X.type==="throw")throw X.arg;return X.type==="break"||X.type==="continue"?this.next=X.arg:X.type==="return"?(this.rval=this.arg=X.arg,this.method="return",this.next="end"):X.type==="normal"&&W&&(this.next=W),pe},finish:function(X){for(var W=this.tryEntries.length-1;W>=0;--W){var te=this.tryEntries[W];if(te.finallyLoc===X)return this.complete(te.completion,te.afterLoc),Ke(te),pe}},catch:function(X){for(var W=this.tryEntries.length-1;W>=0;--W){var te=this.tryEntries[W];if(te.tryLoc===X){var ce=te.completion;if(ce.type==="throw"){var oe=ce.arg;Ke(te)}return oe}}throw new Error("illegal catch attempt")},delegateYield:function(X,W,te){return this.delegate={iterator:Ye(X),resultName:W,nextLoc:te},this.method==="next"&&(this.arg=void 0),pe}},Ie}function s(A,O){var z=typeof Symbol<"u"&&A[Symbol.iterator]||A["@@iterator"];if(!z){if(Array.isArray(A)||(z=a(A))||O){z&&(A=z);var H=0,x=function(){};return{s:x,n:function(){return H>=A.length?{done:!0}:{done:!1,value:A[H++]}},e:function(Ce){throw Ce},f:x}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee,ne=!0,ge=!1;return{s:function(){z=z.call(A)},n:function(){var Ce=z.next();return ne=Ce.done,Ce},e:function(Ce){ge=!0,ee=Ce},f:function(){try{ne||z.return==null||z.return()}finally{if(ge)throw ee}}}}function a(A,O){if(A){if(typeof A=="string")return u(A,O);var z=Object.prototype.toString.call(A).slice(8,-1);return z==="Object"&&A.constructor&&(z=A.constructor.name),z==="Map"||z==="Set"?Array.from(A):z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(z)?u(A,O):void 0}}function u(A,O){(O==null||O>A.length)&&(O=A.length);for(var z=0,H=new Array(O);z<O;z++)H[z]=A[z];return H}function l(A,O,z,H,x,ee,ne){try{var ge=A[ee](ne),Ce=ge.value}catch(Te){return void z(Te)}ge.done?O(Ce):Promise.resolve(Ce).then(H,x)}function c(A){return function(){var O=this,z=arguments;return new Promise(function(H,x){function ee(Ce){l(ge,H,x,ee,ne,"next",Ce)}function ne(Ce){l(ge,H,x,ee,ne,"throw",Ce)}var ge=A.apply(O,z);ee(void 0)})}}function h(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}function p(A,O){for(var z=0;z<O.length;z++){var H=O[z];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(A,y(H.key),H)}}function d(A,O,z){return O&&p(A.prototype,O),Object.defineProperty(A,"prototype",{writable:!1}),A}function y(A){var O=g(A,"string");return v(O)==="symbol"?O:String(O)}function g(A,O){if(v(A)!=="object"||A===null)return A;var z=A[Symbol.toPrimitive];if(z!==void 0){var H=z.call(A,O);if(v(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function v(A){"@babel/helpers - typeof";return(v=typeof Symbol=="function"&&_typeof(Symbol.iterator)=="symbol"?function(O){return O===void 0?"undefined":_typeof(O)}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":O===void 0?"undefined":_typeof(O)})(A)}function S(A){var O={};return A.forEach(function(z,H){O[H]=z}),O}function C(A){var O=new WeakSet;return(function z(H){switch(v(H)){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return H;case"object":default:if(!H||ArrayBuffer.isView(H))return H;if(O.has(H))return null;var x=H.constructor==Array;if(H.constructor!=Object&&!x)return null;O.add(H);var ee=x?[]:{};for(var ne in H)ee[ne]=z(H[ne]);return x&&(ee.length=H.length),ee}})(A)}function k(A){return(navigator.userAgent||"").includes(A)}function U(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="windows":!!navigator.platform&&navigator.platform.toLowerCase().includes("win32")}function M(){return k("Firefox")}function V(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="android":k("Android")}function I(){return(navigator.vendor||"").includes("Apple")}function m(){return navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform.toLowerCase()=="macos":!!navigator.platform&&navigator.platform.toLowerCase().includes("mac")}function _(){return!!/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||I()&&navigator.maxTouchPoints>1}function b(){return I()&&(m()||_())}function E(A){return A==="org.w3.clearkey"}function P(A,O){return Promise.race([O,new Promise(function(z,H){new ve(H).tickAfter(A)})])}function N(){return!!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)}function j(){return G.apply(this,arguments)}function G(){return G=c(r().mark(function A(){var O,z,H,x,ee,ne,ge,Ce,Te,He,Ke,Ne,Ye,$e,Ie,Be,K,Y,Z,se,ie,fe,pe,Ae,Le,Fe,xe,X,W,te,ce,oe,_e,we;return r().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(O=["com.widevine.alpha","com.widevine.alpha.experiment","com.microsoft.playready","com.microsoft.playready.hardware","com.microsoft.playready.recommendation","com.microsoft.playready.recommendation.3000","com.microsoft.playready.recommendation.3000.clearlead","com.chromecast.playready","com.apple.fps.1_0","com.apple.fps","com.huawei.wiseplay"],N()){ae.next=6;break}z={},H=s(O);try{for(H.s();!(x=H.n()).done;)ee=x.value,z[ee]=null}catch(ke){H.e(ke)}finally{H.f()}return ae.abrupt("return",z);case 6:for(ne=["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3"],ge=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],Ce=["150","2000","3000"],Te={"com.widevine.alpha":ge,"com.widevine.alpha.experiment":ge,"com.microsoft.playready.recommendation":Ce},He=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],Ke=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],Ne={videoCapabilities:He,audioCapabilities:Ke,initDataTypes:["cenc","sinf","skd","keyids"]},Ye=[null,"cenc","cbcs","cbcs-1-9"],$e=new Map,Ie=(function(){var ke=c(r().mark(function Ve(Pe,De){var Xe,it,Qe,Ge,We,Me,Ee,nt,et,Ze,ut,tt,ot;return r().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:if(me.prev=0,!U()||!M()){me.next=5;break}throw new Error("Suppressing Firefox Windows DRM in testing!");case 5:return me.next=7,De.createMediaKeys();case 7:Xe=me.sent;case 8:me.next=13;break;case 10:return me.prev=10,me.t0=me.catch(0),me.abrupt("return");case 13:if(it=De.getConfiguration().sessionTypes,Qe=!!it&&it.includes("persistent-license"),Ge=De.getConfiguration().videoCapabilities,We=De.getConfiguration().audioCapabilities,Me={persistentState:Qe,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},$e.has(Pe)&&$e.get(Pe)?Me=$e.get(Pe):$e.set(Pe,Me),Ee=Ge[0].encryptionScheme,Ee&&!Me.encryptionSchemes.includes(Ee)&&Me.encryptionSchemes.push(Ee),nt=Ge[0].robustness,nt&&!Me.videoRobustnessLevels.includes(nt)&&Me.videoRobustnessLevels.push(nt),et=We[0].robustness,et&&!Me.audioRobustnessLevels.includes(et)&&Me.audioRobustnessLevels.push(et),!("getStatusForPolicy"in Xe)){me.next=39;break}Ze=[],ut=r().mark(function ct(){var ht;return r().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(ht=ot[tt],!Me.minHdcpVersions.includes(ht)){st.next=3;break}return st.abrupt("return","continue");case 3:Ze.push(Xe.getStatusForPolicy({minHdcpVersion:ht}).then(function(pt){pt!="usable"||Me.minHdcpVersions.includes(ht)||Me.minHdcpVersions.push(ht)}));case 4:case"end":return st.stop()}},ct)}),tt=0,ot=ne;case 29:if(!(tt<ot.length)){me.next=37;break}return me.delegateYield(ut(),"t1",31);case 31:if(me.t1!=="continue"){me.next=34;break}return me.abrupt("continue",34);case 34:tt++,me.next=29;break;case 37:return me.next=39,Promise.all(Ze);case 39:case"end":return me.stop()}},Ve,null,[[0,10]])}));return function(Ve,Pe){return ke.apply(this,arguments)}})(),Be=(function(){var ke=c(r().mark(function Ve(Pe,De,Xe,it){var Qe,Ge,We,Me,Ee,nt,et,Ze,ut,tt,ot;return r().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:me.prev=0,Qe=C(Ne),Ge=s(Qe.videoCapabilities);try{for(Ge.s();!(We=Ge.n()).done;)Me=We.value,Me.encryptionScheme=De,Me.robustness=Xe}catch(ct){Ge.e(ct)}finally{Ge.f()}Ee=s(Qe.audioCapabilities);try{for(Ee.s();!(nt=Ee.n()).done;)et=nt.value,et.encryptionScheme=De,et.robustness=it}catch(ct){Ee.e(ct)}finally{Ee.f()}if(Ze=C(Qe),Ze.persistentState="required",Ze.sessionTypes=["persistent-license"],ut=[Ze,Qe],tt=5,!V()){me.next=17;break}return me.next=14,P(tt,navigator.requestMediaKeySystemAccess(Pe,ut));case 14:ot=me.sent,me.next=20;break;case 17:return me.next=19,navigator.requestMediaKeySystemAccess(Pe,ut);case 19:ot=me.sent;case 20:return me.next=22,Ie(Pe,ot);case 22:me.next=26;break;case 24:me.prev=24,me.t0=me.catch(0);case 26:case"end":return me.stop()}},Ve,null,[[0,24]])}));return function(Ve,Pe,De,Xe){return ke.apply(this,arguments)}})(),K=(function(){var ke=c(r().mark(function Ve(Pe,De,Xe,it){var Qe,Ge,We,Me;return r().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(Ee.prev=0,Qe={type:"media-source",video:{contentType:He[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:Ke[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:Pe,video:{encryptionScheme:De,robustness:Xe},audio:{encryptionScheme:De,robustness:it}}},Ge=5,!V()){Ee.next=9;break}return Ee.next=6,P(Ge,navigator.mediaCapabilities.decodingInfo(Qe));case 6:We=Ee.sent,Ee.next=12;break;case 9:return Ee.next=11,navigator.mediaCapabilities.decodingInfo(Qe);case 11:We=Ee.sent;case 12:return Me=We.keySystemAccess,Ee.next=15,Ie(Pe,Me);case 15:Ee.next=20;break;case 17:Ee.prev=17,Ee.t0=Ee.catch(0);case 20:case"end":return Ee.stop()}},Ve,null,[[0,17]])}));return function(Ve,Pe,De,Xe){return ke.apply(this,arguments)}})(),Y=0,Z=O;Y<Z.length;Y++)se=Z[Y],$e.set(se,null);ie=function(ke){return!E(ke)||!b()},fe=[],pe=0,Ae=Ye;case 22:if(!(pe<Ae.length)){ae.next=46;break}Le=Ae[pe],Fe=s(O),ae.prev=25,Fe.s();case 27:if((xe=Fe.n()).done){ae.next=35;break}if(X=xe.value,ie(X)){ae.next=31;break}return ae.abrupt("continue",33);case 31:fe.push(Be(X,Le,"","")),fe.push(K(X,Le,"",""));case 33:ae.next=27;break;case 35:ae.next=40;break;case 37:ae.prev=37,ae.t0=ae.catch(25),Fe.e(ae.t0);case 40:return ae.prev=40,Fe.f(),ae.finish(40);case 43:pe++,ae.next=22;break;case 46:W=0,te=O;case 47:if(!(W<te.length)){ae.next=73;break}ce=te[W],oe=s(Te[ce]||[]),ae.prev=50,oe.s();case 52:if((_e=oe.n()).done){ae.next=62;break}if(we=_e.value,ie(ce)){ae.next=56;break}return ae.abrupt("continue",60);case 56:fe.push(Be(ce,null,we,"")),fe.push(Be(ce,null,"",we)),fe.push(K(ce,null,we,"")),fe.push(K(ce,null,"",we));case 60:ae.next=52;break;case 62:ae.next=67;break;case 64:ae.prev=64,ae.t1=ae.catch(50),oe.e(ae.t1);case 67:return ae.prev=67,oe.f(),ae.finish(67);case 70:W++,ae.next=47;break;case 73:return ae.next=75,Promise.all(fe);case 75:return ae.abrupt("return",S($e));case 76:case"end":return ae.stop()}},A,null,[[25,37,40,43],[50,64,67,70]])})),G.apply(this,arguments)}function ue(){return le.apply(this,arguments)}function le(){return le=c(r().mark(function A(){var O,z,H;return r().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(N()){x.next=2;break}return x.abrupt("return",{isSupported:!1,securityLevel:null});case 2:return x.prev=2,x.next=5,j();case 5:if(O=x.sent,z=O["com.widevine.alpha"]){x.next=11;break}return x.abrupt("return",{isSupported:!1,securityLevel:null});case 11:return H=z.videoRobustnessLevels.includes("HW_SECURE_ALL"),x.abrupt("return",{isSupported:!0,securityLevel:H?"L1":"L3"});case 15:return x.prev=15,x.t0=x.catch(2),x.abrupt("return",{isSupported:!1,securityLevel:null});case 19:case"end":return x.stop()}},A,null,[[2,15]])})),le.apply(this,arguments)}e.r(t),e.d(t,{checkWidevineSupport:function(){return ue}});var Re=(function(){function A(O){h(this,A),this.onTick_=O,this.cancelPending_=null}return d(A,[{key:"tickAfter",value:function(O){var z=this;this.stop();var H=!0,x=null;this.cancelPending_=function(){window.clearTimeout(x),H=!1};var ee=function(){H&&z.onTick_()};return x=window.setTimeout(ee,1e3*O),this}},{key:"stop",value:function(){this.cancelPending_&&(this.cancelPending_(),this.cancelPending_=null)}}]),A})(),ve=(function(){function A(O){h(this,A),this.onTick_=O,this.ticker_=null}return d(A,[{key:"tickNow",value:function(){return this.stop(),this.onTick_(),this}},{key:"tickAfter",value:function(O){var z=this;return this.stop(),this.ticker_=new Re(function(){z.onTick_()}).tickAfter(O),this}},{key:"stop",value:function(){this.ticker_&&(this.ticker_.stop(),this.ticker_=null)}}]),A})()},"./utils/index.js":function(n,t,e){e.r(t),e.d(t,{isVisible:function(){return r}});var r=function(s){if(!s)return!1;var a=window.getComputedStyle(s),u=a.getPropertyValue("display"),l=a.getPropertyValue("visibility"),c=a.getPropertyValue("opacity");return u!=="none"&&l!=="hidden"&&c!=="0"}},"./node_modules/charenc/charenc.js":function(n){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var r=[],s=0;s<e.length;s++)r.push(255&e.charCodeAt(s));return r},bytesToString:function(e){for(var r=[],s=0;s<e.length;s++)r.push(String.fromCharCode(e[s]));return r.join("")}}};n.exports=t},"./node_modules/crypt/crypt.js":function(n){(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(r,s){return r<<s|r>>>32-s},rotr:function(r,s){return r<<32-s|r>>>s},endian:function(r){if(r.constructor==Number)return 16711935&e.rotl(r,8)|4278255360&e.rotl(r,24);for(var s=0;s<r.length;s++)r[s]=e.endian(r[s]);return r},randomBytes:function(r){for(var s=[];r>0;r--)s.push(Math.floor(256*Math.random()));return s},bytesToWords:function(r){for(var s=[],a=0,u=0;a<r.length;a++,u+=8)s[u>>>5]|=r[a]<<24-u%32;return s},wordsToBytes:function(r){for(var s=[],a=0;a<32*r.length;a+=8)s.push(r[a>>>5]>>>24-a%32&255);return s},bytesToHex:function(r){for(var s=[],a=0;a<r.length;a++)s.push((r[a]>>>4).toString(16)),s.push((15&r[a]).toString(16));return s.join("")},hexToBytes:function(r){for(var s=[],a=0;a<r.length;a+=2)s.push(parseInt(r.substr(a,2),16));return s},bytesToBase64:function(r){for(var s=[],a=0;a<r.length;a+=3)for(var u=r[a]<<16|r[a+1]<<8|r[a+2],l=0;l<4;l++)8*a+6*l<=8*r.length?s.push(t.charAt(u>>>6*(3-l)&63)):s.push("=");return s.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var s=[],a=0,u=0;a<r.length;u=++a%4)u!=0&&s.push((t.indexOf(r.charAt(a-1))&Math.pow(2,-2*u+8)-1)<<2*u|t.indexOf(r.charAt(a))>>>6-2*u);return s}};n.exports=e})()},"./node_modules/is-buffer/index.js":function(n){function t(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function e(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&t(r.slice(0,0))}n.exports=function(r){return r!=null&&(t(r)||e(r)||!!r._isBuffer)}},"./node_modules/jsencrypt/lib/JSEncrypt.js":function(n,t,e){e.r(t),e.d(t,{JSEncrypt:function(){return l}});var r,s=e("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),a=e("./node_modules/jsencrypt/lib/JSEncryptRSAKey.js"),u=typeof process<"u"?(r=define_process_env_default)===null||r===void 0?void 0:r.npm_package_version:void 0,l=(function(){function c(h){h===void 0&&(h={}),h=h||{},this.default_key_size=h.default_key_size?parseInt(h.default_key_size,10):1024,this.default_public_exponent=h.default_public_exponent||"010001",this.log=h.log||!1,this.key=null}return c.prototype.setKey=function(h){this.log&&this.key,this.key=new a.JSEncryptRSAKey(h)},c.prototype.setPrivateKey=function(h){this.setKey(h)},c.prototype.setPublicKey=function(h){this.setKey(h)},c.prototype.decrypt=function(h){try{return this.getKey().decrypt((0,s.b64tohex)(h))}catch{return!1}},c.prototype.encrypt=function(h){try{return(0,s.hex2b64)(this.getKey().encrypt(h))}catch{return!1}},c.prototype.sign=function(h,p,d){try{return(0,s.hex2b64)(this.getKey().sign(h,p,d))}catch{return!1}},c.prototype.verify=function(h,p,d){try{return this.getKey().verify(h,(0,s.b64tohex)(p),d)}catch{return!1}},c.prototype.getKey=function(h){if(!this.key){if(this.key=new a.JSEncryptRSAKey,h&&{}.toString.call(h)==="[object Function]")return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,h);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},c.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},c.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},c.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},c.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},c.version=u,c})()},"./node_modules/jsencrypt/lib/JSEncryptRSAKey.js":function(n,t,e){e.r(t),e.d(t,{JSEncryptRSAKey:function(){return d}});var r=e("./node_modules/jsencrypt/lib/lib/jsbn/base64.js"),s=e("./node_modules/jsencrypt/lib/lib/asn1js/hex.js"),a=e("./node_modules/jsencrypt/lib/lib/asn1js/base64.js"),u=e("./node_modules/jsencrypt/lib/lib/asn1js/asn1.js"),l=e("./node_modules/jsencrypt/lib/lib/jsbn/rsa.js"),c=e("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),h=e("./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js"),p=(function(){var y=function(g,v){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,C){S.__proto__=C}||function(S,C){for(var k in C)Object.prototype.hasOwnProperty.call(C,k)&&(S[k]=C[k])})(g,v)};return function(g,v){function S(){this.constructor=g}if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");y(g,v),g.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}})(),d=(function(y){function g(v){var S=y.call(this)||this;return v&&(typeof v=="string"?S.parseKey(v):(g.hasPrivateKeyProperty(v)||g.hasPublicKeyProperty(v))&&S.parsePropertiesFrom(v)),S}return p(g,y),g.prototype.parseKey=function(v){try{var S=0,C=0,k=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/,U=k.test(v)?s.Hex.decode(v):a.Base64.unarmor(v),M=u.ASN1.decode(U);if(M.sub.length===3&&(M=M.sub[2].sub[0]),M.sub.length===9){S=M.sub[1].getHexStringValue(),this.n=(0,c.parseBigInt)(S,16),C=M.sub[2].getHexStringValue(),this.e=parseInt(C,16);var V=M.sub[3].getHexStringValue();this.d=(0,c.parseBigInt)(V,16);var I=M.sub[4].getHexStringValue();this.p=(0,c.parseBigInt)(I,16);var m=M.sub[5].getHexStringValue();this.q=(0,c.parseBigInt)(m,16);var _=M.sub[6].getHexStringValue();this.dmp1=(0,c.parseBigInt)(_,16);var b=M.sub[7].getHexStringValue();this.dmq1=(0,c.parseBigInt)(b,16);var E=M.sub[8].getHexStringValue();this.coeff=(0,c.parseBigInt)(E,16)}else{if(M.sub.length!==2)return!1;if(M.sub[0].sub){var P=M.sub[1],N=P.sub[0];S=N.sub[0].getHexStringValue(),this.n=(0,c.parseBigInt)(S,16),C=N.sub[1].getHexStringValue(),this.e=parseInt(C,16)}else S=M.sub[0].getHexStringValue(),this.n=(0,c.parseBigInt)(S,16),C=M.sub[1].getHexStringValue(),this.e=parseInt(C,16)}return!0}catch{return!1}},g.prototype.getPrivateBaseKey=function(){var v={array:[new h.KJUR.asn1.DERInteger({int:0}),new h.KJUR.asn1.DERInteger({bigint:this.n}),new h.KJUR.asn1.DERInteger({int:this.e}),new h.KJUR.asn1.DERInteger({bigint:this.d}),new h.KJUR.asn1.DERInteger({bigint:this.p}),new h.KJUR.asn1.DERInteger({bigint:this.q}),new h.KJUR.asn1.DERInteger({bigint:this.dmp1}),new h.KJUR.asn1.DERInteger({bigint:this.dmq1}),new h.KJUR.asn1.DERInteger({bigint:this.coeff})]};return new h.KJUR.asn1.DERSequence(v).getEncodedHex()},g.prototype.getPrivateBaseKeyB64=function(){return(0,r.hex2b64)(this.getPrivateBaseKey())},g.prototype.getPublicBaseKey=function(){var v=new h.KJUR.asn1.DERSequence({array:[new h.KJUR.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new h.KJUR.asn1.DERNull]}),S=new h.KJUR.asn1.DERSequence({array:[new h.KJUR.asn1.DERInteger({bigint:this.n}),new h.KJUR.asn1.DERInteger({int:this.e})]}),C=new h.KJUR.asn1.DERBitString({hex:"00"+S.getEncodedHex()});return new h.KJUR.asn1.DERSequence({array:[v,C]}).getEncodedHex()},g.prototype.getPublicBaseKeyB64=function(){return(0,r.hex2b64)(this.getPublicBaseKey())},g.wordwrap=function(v,S){if(S=S||64,!v)return v;var C="(.{1,"+S+`})( +|$
|
||
?)|(.{1,`+S+"})";return v.match(RegExp(C,"g")).join(`
|
||
`)},g.prototype.getPrivateKey=function(){var v=`-----BEGIN RSA PRIVATE KEY-----
|
||
`;return v+=g.wordwrap(this.getPrivateBaseKeyB64())+`
|
||
`,v+="-----END RSA PRIVATE KEY-----"},g.prototype.getPublicKey=function(){var v=`-----BEGIN PUBLIC KEY-----
|
||
`;return v+=g.wordwrap(this.getPublicBaseKeyB64())+`
|
||
`,v+="-----END PUBLIC KEY-----"},g.hasPublicKeyProperty=function(v){return v=v||{},v.hasOwnProperty("n")&&v.hasOwnProperty("e")},g.hasPrivateKeyProperty=function(v){return v=v||{},v.hasOwnProperty("n")&&v.hasOwnProperty("e")&&v.hasOwnProperty("d")&&v.hasOwnProperty("p")&&v.hasOwnProperty("q")&&v.hasOwnProperty("dmp1")&&v.hasOwnProperty("dmq1")&&v.hasOwnProperty("coeff")},g.prototype.parsePropertiesFrom=function(v){this.n=v.n,this.e=v.e,v.hasOwnProperty("d")&&(this.d=v.d,this.p=v.p,this.q=v.q,this.dmp1=v.dmp1,this.dmq1=v.dmq1,this.coeff=v.coeff)},g})(l.RSAKey)},"./node_modules/jsencrypt/lib/index.js":function(n,t,e){e.r(t),e.d(t,{JSEncrypt:function(){return r.JSEncrypt},default:function(){return s}});var r=e("./node_modules/jsencrypt/lib/JSEncrypt.js"),s=r.JSEncrypt},"./node_modules/jsencrypt/lib/lib/asn1js/asn1.js":function(n,t,e){function r(d,y){return d.length>y&&(d=d.substring(0,y)+a),d}e.r(t),e.d(t,{ASN1:function(){return h},ASN1Tag:function(){return p},Stream:function(){return c}});var s=e("./node_modules/jsencrypt/lib/lib/asn1js/int10.js"),a="…",u=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,l=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,c=(function(){function d(y,g){this.hexDigits="0123456789ABCDEF",y instanceof d?(this.enc=y.enc,this.pos=y.pos):(this.enc=y,this.pos=g)}return d.prototype.get=function(y){if(y===void 0&&(y=this.pos++),y>=this.enc.length)throw new Error("Requesting byte offset ".concat(y," on a stream of length ").concat(this.enc.length));return typeof this.enc=="string"?this.enc.charCodeAt(y):this.enc[y]},d.prototype.hexByte=function(y){return this.hexDigits.charAt(y>>4&15)+this.hexDigits.charAt(15&y)},d.prototype.hexDump=function(y,g,v){for(var S="",C=y;C<g;++C)if(S+=this.hexByte(this.get(C)),v!==!0)switch(15&C){case 7:S+=" ";break;case 15:S+=`
|
||
`;break;default:S+=" "}return S},d.prototype.isASCII=function(y,g){for(var v=y;v<g;++v){var S=this.get(v);if(S<32||S>176)return!1}return!0},d.prototype.parseStringISO=function(y,g){for(var v="",S=y;S<g;++S)v+=String.fromCharCode(this.get(S));return v},d.prototype.parseStringUTF=function(y,g){for(var v="",S=y;S<g;){var C=this.get(S++);v+=C<128?String.fromCharCode(C):C>191&&C<224?String.fromCharCode((31&C)<<6|63&this.get(S++)):String.fromCharCode((15&C)<<12|(63&this.get(S++))<<6|63&this.get(S++))}return v},d.prototype.parseStringBMP=function(y,g){for(var v,S,C="",k=y;k<g;)v=this.get(k++),S=this.get(k++),C+=String.fromCharCode(v<<8|S);return C},d.prototype.parseTime=function(y,g,v){var S=this.parseStringISO(y,g),C=(v?u:l).exec(S);return C?(v&&(C[1]=+C[1],C[1]+=+C[1]<70?2e3:1900),S=C[1]+"-"+C[2]+"-"+C[3]+" "+C[4],C[5]&&(S+=":"+C[5],C[6]&&(S+=":"+C[6],C[7]&&(S+="."+C[7]))),C[8]&&(S+=" UTC",C[8]!="Z"&&(S+=C[8],C[9]&&(S+=":"+C[9]))),S):"Unrecognized time: "+S},d.prototype.parseInteger=function(y,g){for(var v,S=this.get(y),C=S>127,k=C?255:0,U="";S==k&&++y<g;)S=this.get(y);if((v=g-y)===0)return C?-1:0;if(v>4){for(U=S,v<<=3;(128&(+U^k))==0;)U=+U<<1,--v;U="("+v+` bit)
|
||
`}C&&(S-=256);for(var M=new s.Int10(S),V=y+1;V<g;++V)M.mulAdd(256,this.get(V));return U+M.toString()},d.prototype.parseBitString=function(y,g,v){for(var S=this.get(y),C=(g-y-1<<3)-S,k="("+C+` bit)
|
||
`,U="",M=y+1;M<g;++M){for(var V=this.get(M),I=M==g-1?S:0,m=7;m>=I;--m)U+=V>>m&1?"1":"0";if(U.length>v)return k+r(U,v)}return k+U},d.prototype.parseOctetString=function(y,g,v){if(this.isASCII(y,g))return r(this.parseStringISO(y,g),v);var S=g-y,C="("+S+` byte)
|
||
`;v/=2,S>v&&(g=y+v);for(var k=y;k<g;++k)C+=this.hexByte(this.get(k));return S>v&&(C+=a),C},d.prototype.parseOID=function(y,g,v){for(var S="",C=new s.Int10,k=0,U=y;U<g;++U){var M=this.get(U);if(C.mulAdd(128,127&M),k+=7,!(128&M)){if(S==="")if((C=C.simplify())instanceof s.Int10)C.sub(80),S="2."+C.toString();else{var V=C<80?C<40?0:1:2;S=V+"."+(C-40*V)}else S+="."+C.toString();if(S.length>v)return r(S,v);C=new s.Int10,k=0}}return k>0&&(S+=".incomplete"),S},d})(),h=(function(){function d(y,g,v,S,C){if(!(S instanceof p))throw new Error("Invalid tag value.");this.stream=y,this.header=g,this.length=v,this.tag=S,this.sub=C}return d.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},d.prototype.content=function(y){if(this.tag===void 0)return null;y===void 0&&(y=1/0);var g=this.posContent(),v=Math.abs(this.length);if(!this.tag.isUniversal())return this.sub!==null?"("+this.sub.length+" elem)":this.stream.parseOctetString(g,g+v,y);switch(this.tag.tagNumber){case 1:return this.stream.get(g)===0?"false":"true";case 2:return this.stream.parseInteger(g,g+v);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(g,g+v,y);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(g,g+v,y);case 6:return this.stream.parseOID(g,g+v,y);case 16:case 17:return this.sub!==null?"("+this.sub.length+" elem)":"(no elem)";case 12:return r(this.stream.parseStringUTF(g,g+v),y);case 18:case 19:case 20:case 21:case 22:case 26:return r(this.stream.parseStringISO(g,g+v),y);case 30:return r(this.stream.parseStringBMP(g,g+v),y);case 23:case 24:return this.stream.parseTime(g,g+v,this.tag.tagNumber==23)}return null},d.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(this.sub===null?"null":this.sub.length)+"]"},d.prototype.toPrettyString=function(y){y===void 0&&(y="");var g=y+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(g+="+"),g+=this.length,this.tag.tagConstructed?g+=" (constructed)":!this.tag.isUniversal()||this.tag.tagNumber!=3&&this.tag.tagNumber!=4||this.sub===null||(g+=" (encapsulates)"),g+=`
|
||
`,this.sub!==null){y+=" ";for(var v=0,S=this.sub.length;v<S;++v)g+=this.sub[v].toPrettyString(y)}return g},d.prototype.posStart=function(){return this.stream.pos},d.prototype.posContent=function(){return this.stream.pos+this.header},d.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},d.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},d.decodeLength=function(y){var g=y.get(),v=127&g;if(v==g)return v;if(v>6)throw new Error("Length over 48 bits not supported at position "+(y.pos-1));if(v===0)return null;g=0;for(var S=0;S<v;++S)g=256*g+y.get();return g},d.prototype.getHexStringValue=function(){var y=this.toHexString(),g=2*this.header,v=2*this.length;return y.substr(g,v)},d.decode=function(y){var g;g=y instanceof c?y:new c(y,0);var v=new c(g),S=new p(g),C=d.decodeLength(g),k=g.pos,U=k-v.pos,M=null,V=function(){var m=[];if(C!==null){for(var _=k+C;g.pos<_;)m[m.length]=d.decode(g);if(g.pos!=_)throw new Error("Content size is not correct for container starting at offset "+k)}else try{for(;;){var b=d.decode(g);if(b.tag.isEOC())break;m[m.length]=b}C=k-g.pos}catch(E){throw new Error("Exception while decoding undefined length content: "+E)}return m};if(S.tagConstructed)M=V();else if(S.isUniversal()&&(S.tagNumber==3||S.tagNumber==4))try{if(S.tagNumber==3&&g.get()!=0)throw new Error("BIT STRINGs with unused bits cannot encapsulate.");M=V();for(var I=0;I<M.length;++I)if(M[I].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch{M=null}if(M===null){if(C===null)throw new Error("We can't skip over an invalid tag with undefined length at offset "+k);g.pos=k+Math.abs(C)}return new d(v,U,C,S,M)},d})(),p=(function(){function d(y){var g=y.get();if(this.tagClass=g>>6,this.tagConstructed=(32&g)!=0,this.tagNumber=31&g,this.tagNumber==31){var v=new s.Int10;do g=y.get(),v.mulAdd(128,127&g);while(128&g);this.tagNumber=v.simplify()}}return d.prototype.isUniversal=function(){return this.tagClass===0},d.prototype.isEOC=function(){return this.tagClass===0&&this.tagNumber===0},d})()},"./node_modules/jsencrypt/lib/lib/asn1js/base64.js":function(n,t,e){e.r(t),e.d(t,{Base64:function(){return s}});var r,s={decode:function(a){var u;if(r===void 0){var l=`= \f
|
||
\r \u2028\u2029`;for(r=Object.create(null),u=0;u<64;++u)r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(u)]=u;for(r["-"]=62,r._=63,u=0;u<l.length;++u)r[l.charAt(u)]=-1}var c=[],h=0,p=0;for(u=0;u<a.length;++u){var d=a.charAt(u);if(d=="=")break;if((d=r[d])!=-1){if(d===void 0)throw new Error("Illegal character at offset "+u);h|=d,++p>=4?(c[c.length]=h>>16,c[c.length]=h>>8&255,c[c.length]=255&h,h=0,p=0):h<<=6}}switch(p){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:c[c.length]=h>>10;break;case 3:c[c.length]=h>>16,c[c.length]=h>>8&255}return c},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(a){var u=s.re.exec(a);if(u)if(u[1])a=u[1];else{if(!u[2])throw new Error("RegExp out of sync");a=u[2]}return s.decode(a)}}},"./node_modules/jsencrypt/lib/lib/asn1js/hex.js":function(n,t,e){e.r(t),e.d(t,{Hex:function(){return s}});var r,s={decode:function(a){var u;if(r===void 0){var l="0123456789ABCDEF",c=` \f
|
||
\r \u2028\u2029`;for(r={},u=0;u<16;++u)r[l.charAt(u)]=u;for(l=l.toLowerCase(),u=10;u<16;++u)r[l.charAt(u)]=u;for(u=0;u<c.length;++u)r[c.charAt(u)]=-1}var h=[],p=0,d=0;for(u=0;u<a.length;++u){var y=a.charAt(u);if(y=="=")break;if((y=r[y])!=-1){if(y===void 0)throw new Error("Illegal character at offset "+u);p|=y,++d>=2?(h[h.length]=p,p=0,d=0):p<<=4}}if(d)throw new Error("Hex encoding incomplete: 4 bits missing");return h}}},"./node_modules/jsencrypt/lib/lib/asn1js/int10.js":function(n,t,e){e.r(t),e.d(t,{Int10:function(){return r}});var r=(function(){function s(a){this.buf=[+a||0]}return s.prototype.mulAdd=function(a,u){var l,c,h=this.buf,p=h.length;for(l=0;l<p;++l)c=h[l]*a+u,c<1e13?u=0:(u=0|c/1e13,c-=1e13*u),h[l]=c;u>0&&(h[l]=u)},s.prototype.sub=function(a){var u,l,c=this.buf,h=c.length;for(u=0;u<h;++u)l=c[u]-a,l<0?(l+=1e13,a=1):a=0,c[u]=l;for(;c[c.length-1]===0;)c.pop()},s.prototype.toString=function(a){if((a||10)!=10)throw new Error("only base 10 is supported");for(var u=this.buf,l=u[u.length-1].toString(),c=u.length-2;c>=0;--c)l+=(1e13+u[c]).toString().substring(1);return l},s.prototype.valueOf=function(){for(var a=this.buf,u=0,l=a.length-1;l>=0;--l)u=1e13*u+a[l];return u},s.prototype.simplify=function(){var a=this.buf;return a.length==1?a[0]:this},s})()},"./node_modules/jsencrypt/lib/lib/jsbn/base64.js":function(n,t,e){function r(h){var p,d,y="";for(p=0;p+3<=h.length;p+=3)d=parseInt(h.substring(p,p+3),16),y+=l.charAt(d>>6)+l.charAt(63&d);for(p+1==h.length?(d=parseInt(h.substring(p,p+1),16),y+=l.charAt(d<<2)):p+2==h.length&&(d=parseInt(h.substring(p,p+2),16),y+=l.charAt(d>>2)+l.charAt((3&d)<<4));(3&y.length)>0;)y+=c;return y}function s(h){var p,d="",y=0,g=0;for(p=0;p<h.length&&h.charAt(p)!=c;++p){var v=l.indexOf(h.charAt(p));v<0||(y==0?(d+=(0,u.int2char)(v>>2),g=3&v,y=1):y==1?(d+=(0,u.int2char)(g<<2|v>>4),g=15&v,y=2):y==2?(d+=(0,u.int2char)(g),d+=(0,u.int2char)(v>>2),g=3&v,y=3):(d+=(0,u.int2char)(g<<2|v>>4),d+=(0,u.int2char)(15&v),y=0))}return y==1&&(d+=(0,u.int2char)(g<<2)),d}function a(h){var p,d=s(h),y=[];for(p=0;2*p<d.length;++p)y[p]=parseInt(d.substring(2*p,2*p+2),16);return y}e.r(t),e.d(t,{b64toBA:function(){return a},b64tohex:function(){return s},hex2b64:function(){return r}});var u=e("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c="="},"./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js":function(n,t,e){function r(){return new y(null)}function s(I,m){return new y(I,m)}function a(I,m){var _=V[I.charCodeAt(m)];return _??-1}function u(I){var m=r();return m.fromInt(I),m}function l(I){var m,_=1;return(m=I>>>16)!=0&&(I=m,_+=16),(m=I>>8)!=0&&(I=m,_+=8),(m=I>>4)!=0&&(I=m,_+=4),(m=I>>2)!=0&&(I=m,_+=2),(m=I>>1)!=0&&(I=m,_+=1),_}e.r(t),e.d(t,{BigInteger:function(){return y},intAt:function(){return a},nbi:function(){return r},nbits:function(){return l},nbv:function(){return u},parseBigInt:function(){return s}});var c,h=e("./node_modules/jsencrypt/lib/lib/jsbn/util.js"),p=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],d=(1<<26)/p[p.length-1],y=(function(){function I(m,_,b){m!=null&&(typeof m=="number"?this.fromNumber(m,_,b):_==null&&typeof m!="string"?this.fromString(m,256):this.fromString(m,_))}return I.prototype.toString=function(m){if(this.s<0)return"-"+this.negate().toString(m);var _;if(m==16)_=4;else if(m==8)_=3;else if(m==2)_=1;else if(m==32)_=5;else{if(m!=4)return this.toRadix(m);_=2}var b,E=(1<<_)-1,P=!1,N="",j=this.t,G=this.DB-j*this.DB%_;if(j-- >0)for(G<this.DB&&(b=this[j]>>G)>0&&(P=!0,N=(0,h.int2char)(b));j>=0;)G<_?(b=(this[j]&(1<<G)-1)<<_-G,b|=this[--j]>>(G+=this.DB-_)):(b=this[j]>>(G-=_)&E,G<=0&&(G+=this.DB,--j)),b>0&&(P=!0),P&&(N+=(0,h.int2char)(b));return P?N:"0"},I.prototype.negate=function(){var m=r();return I.ZERO.subTo(this,m),m},I.prototype.abs=function(){return this.s<0?this.negate():this},I.prototype.compareTo=function(m){var _=this.s-m.s;if(_!=0)return _;var b=this.t;if((_=b-m.t)!=0)return this.s<0?-_:_;for(;--b>=0;)if((_=this[b]-m[b])!=0)return _;return 0},I.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+l(this[this.t-1]^this.s&this.DM)},I.prototype.mod=function(m){var _=r();return this.abs().divRemTo(m,null,_),this.s<0&&_.compareTo(I.ZERO)>0&&m.subTo(_,_),_},I.prototype.modPowInt=function(m,_){var b;return b=m<256||_.isEven()?new v(_):new S(_),this.exp(m,b)},I.prototype.clone=function(){var m=r();return this.copyTo(m),m},I.prototype.intValue=function(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},I.prototype.byteValue=function(){return this.t==0?this.s:this[0]<<24>>24},I.prototype.shortValue=function(){return this.t==0?this.s:this[0]<<16>>16},I.prototype.signum=function(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1},I.prototype.toByteArray=function(){var m=this.t,_=[];_[0]=this.s;var b,E=this.DB-m*this.DB%8,P=0;if(m-- >0)for(E<this.DB&&(b=this[m]>>E)!=(this.s&this.DM)>>E&&(_[P++]=b|this.s<<this.DB-E);m>=0;)E<8?(b=(this[m]&(1<<E)-1)<<8-E,b|=this[--m]>>(E+=this.DB-8)):(b=this[m]>>(E-=8)&255,E<=0&&(E+=this.DB,--m)),(128&b)!=0&&(b|=-256),P==0&&(128&this.s)!=(128&b)&&++P,(P>0||b!=this.s)&&(_[P++]=b);return _},I.prototype.equals=function(m){return this.compareTo(m)==0},I.prototype.min=function(m){return this.compareTo(m)<0?this:m},I.prototype.max=function(m){return this.compareTo(m)>0?this:m},I.prototype.and=function(m){var _=r();return this.bitwiseTo(m,h.op_and,_),_},I.prototype.or=function(m){var _=r();return this.bitwiseTo(m,h.op_or,_),_},I.prototype.xor=function(m){var _=r();return this.bitwiseTo(m,h.op_xor,_),_},I.prototype.andNot=function(m){var _=r();return this.bitwiseTo(m,h.op_andnot,_),_},I.prototype.not=function(){for(var m=r(),_=0;_<this.t;++_)m[_]=this.DM&~this[_];return m.t=this.t,m.s=~this.s,m},I.prototype.shiftLeft=function(m){var _=r();return m<0?this.rShiftTo(-m,_):this.lShiftTo(m,_),_},I.prototype.shiftRight=function(m){var _=r();return m<0?this.lShiftTo(-m,_):this.rShiftTo(m,_),_},I.prototype.getLowestSetBit=function(){for(var m=0;m<this.t;++m)if(this[m]!=0)return m*this.DB+(0,h.lbit)(this[m]);return this.s<0?this.t*this.DB:-1},I.prototype.bitCount=function(){for(var m=0,_=this.s&this.DM,b=0;b<this.t;++b)m+=(0,h.cbit)(this[b]^_);return m},I.prototype.testBit=function(m){var _=Math.floor(m/this.DB);return _>=this.t?this.s!=0:(this[_]&1<<m%this.DB)!=0},I.prototype.setBit=function(m){return this.changeBit(m,h.op_or)},I.prototype.clearBit=function(m){return this.changeBit(m,h.op_andnot)},I.prototype.flipBit=function(m){return this.changeBit(m,h.op_xor)},I.prototype.add=function(m){var _=r();return this.addTo(m,_),_},I.prototype.subtract=function(m){var _=r();return this.subTo(m,_),_},I.prototype.multiply=function(m){var _=r();return this.multiplyTo(m,_),_},I.prototype.divide=function(m){var _=r();return this.divRemTo(m,_,null),_},I.prototype.remainder=function(m){var _=r();return this.divRemTo(m,null,_),_},I.prototype.divideAndRemainder=function(m){var _=r(),b=r();return this.divRemTo(m,_,b),[_,b]},I.prototype.modPow=function(m,_){var b,E,P=m.bitLength(),N=u(1);if(P<=0)return N;b=P<18?1:P<48?3:P<144?4:P<768?5:6,E=P<8?new v(_):_.isEven()?new C(_):new S(_);var j=[],G=3,ue=b-1,le=(1<<b)-1;if(j[1]=E.convert(this),b>1){var Re=r();for(E.sqrTo(j[1],Re);G<=le;)j[G]=r(),E.mulTo(Re,j[G-2],j[G]),G+=2}var ve,A,O=m.t-1,z=!0,H=r();for(P=l(m[O])-1;O>=0;){for(P>=ue?ve=m[O]>>P-ue&le:(ve=(m[O]&(1<<P+1)-1)<<ue-P,O>0&&(ve|=m[O-1]>>this.DB+P-ue)),G=b;(1&ve)==0;)ve>>=1,--G;if((P-=G)<0&&(P+=this.DB,--O),z)j[ve].copyTo(N),z=!1;else{for(;G>1;)E.sqrTo(N,H),E.sqrTo(H,N),G-=2;G>0?E.sqrTo(N,H):(A=N,N=H,H=A),E.mulTo(H,j[ve],N)}for(;O>=0&&(m[O]&1<<P)==0;)E.sqrTo(N,H),A=N,N=H,H=A,--P<0&&(P=this.DB-1,--O)}return E.revert(N)},I.prototype.modInverse=function(m){var _=m.isEven();if(this.isEven()&&_||m.signum()==0)return I.ZERO;for(var b=m.clone(),E=this.clone(),P=u(1),N=u(0),j=u(0),G=u(1);b.signum()!=0;){for(;b.isEven();)b.rShiftTo(1,b),_?(P.isEven()&&N.isEven()||(P.addTo(this,P),N.subTo(m,N)),P.rShiftTo(1,P)):N.isEven()||N.subTo(m,N),N.rShiftTo(1,N);for(;E.isEven();)E.rShiftTo(1,E),_?(j.isEven()&&G.isEven()||(j.addTo(this,j),G.subTo(m,G)),j.rShiftTo(1,j)):G.isEven()||G.subTo(m,G),G.rShiftTo(1,G);b.compareTo(E)>=0?(b.subTo(E,b),_&&P.subTo(j,P),N.subTo(G,N)):(E.subTo(b,E),_&&j.subTo(P,j),G.subTo(N,G))}return E.compareTo(I.ONE)!=0?I.ZERO:G.compareTo(m)>=0?G.subtract(m):G.signum()<0?(G.addTo(m,G),G.signum()<0?G.add(m):G):G},I.prototype.pow=function(m){return this.exp(m,new g)},I.prototype.gcd=function(m){var _=this.s<0?this.negate():this.clone(),b=m.s<0?m.negate():m.clone();if(_.compareTo(b)<0){var E=_;_=b,b=E}var P=_.getLowestSetBit(),N=b.getLowestSetBit();if(N<0)return _;for(P<N&&(N=P),N>0&&(_.rShiftTo(N,_),b.rShiftTo(N,b));_.signum()>0;)(P=_.getLowestSetBit())>0&&_.rShiftTo(P,_),(P=b.getLowestSetBit())>0&&b.rShiftTo(P,b),_.compareTo(b)>=0?(_.subTo(b,_),_.rShiftTo(1,_)):(b.subTo(_,b),b.rShiftTo(1,b));return N>0&&b.lShiftTo(N,b),b},I.prototype.isProbablePrime=function(m){var _,b=this.abs();if(b.t==1&&b[0]<=p[p.length-1]){for(_=0;_<p.length;++_)if(b[0]==p[_])return!0;return!1}if(b.isEven())return!1;for(_=1;_<p.length;){for(var E=p[_],P=_+1;P<p.length&&E<d;)E*=p[P++];for(E=b.modInt(E);_<P;)if(E%p[_++]==0)return!1}return b.millerRabin(m)},I.prototype.copyTo=function(m){for(var _=this.t-1;_>=0;--_)m[_]=this[_];m.t=this.t,m.s=this.s},I.prototype.fromInt=function(m){this.t=1,this.s=m<0?-1:0,m>0?this[0]=m:m<-1?this[0]=m+this.DV:this.t=0},I.prototype.fromString=function(m,_){var b;if(_==16)b=4;else if(_==8)b=3;else if(_==256)b=8;else if(_==2)b=1;else if(_==32)b=5;else{if(_!=4)return void this.fromRadix(m,_);b=2}this.t=0,this.s=0;for(var E=m.length,P=!1,N=0;--E>=0;){var j=b==8?255&+m[E]:a(m,E);j<0?m.charAt(E)=="-"&&(P=!0):(P=!1,N==0?this[this.t++]=j:N+b>this.DB?(this[this.t-1]|=(j&(1<<this.DB-N)-1)<<N,this[this.t++]=j>>this.DB-N):this[this.t-1]|=j<<N,(N+=b)>=this.DB&&(N-=this.DB))}b==8&&(128&+m[0])!=0&&(this.s=-1,N>0&&(this[this.t-1]|=(1<<this.DB-N)-1<<N)),this.clamp(),P&&I.ZERO.subTo(this,this)},I.prototype.clamp=function(){for(var m=this.s&this.DM;this.t>0&&this[this.t-1]==m;)--this.t},I.prototype.dlShiftTo=function(m,_){var b;for(b=this.t-1;b>=0;--b)_[b+m]=this[b];for(b=m-1;b>=0;--b)_[b]=0;_.t=this.t+m,_.s=this.s},I.prototype.drShiftTo=function(m,_){for(var b=m;b<this.t;++b)_[b-m]=this[b];_.t=Math.max(this.t-m,0),_.s=this.s},I.prototype.lShiftTo=function(m,_){for(var b=m%this.DB,E=this.DB-b,P=(1<<E)-1,N=Math.floor(m/this.DB),j=this.s<<b&this.DM,G=this.t-1;G>=0;--G)_[G+N+1]=this[G]>>E|j,j=(this[G]&P)<<b;for(var G=N-1;G>=0;--G)_[G]=0;_[N]=j,_.t=this.t+N+1,_.s=this.s,_.clamp()},I.prototype.rShiftTo=function(m,_){_.s=this.s;var b=Math.floor(m/this.DB);if(b>=this.t)return void(_.t=0);var E=m%this.DB,P=this.DB-E,N=(1<<E)-1;_[0]=this[b]>>E;for(var j=b+1;j<this.t;++j)_[j-b-1]|=(this[j]&N)<<P,_[j-b]=this[j]>>E;E>0&&(_[this.t-b-1]|=(this.s&N)<<P),_.t=this.t-b,_.clamp()},I.prototype.subTo=function(m,_){for(var b=0,E=0,P=Math.min(m.t,this.t);b<P;)E+=this[b]-m[b],_[b++]=E&this.DM,E>>=this.DB;if(m.t<this.t){for(E-=m.s;b<this.t;)E+=this[b],_[b++]=E&this.DM,E>>=this.DB;E+=this.s}else{for(E+=this.s;b<m.t;)E-=m[b],_[b++]=E&this.DM,E>>=this.DB;E-=m.s}_.s=E<0?-1:0,E<-1?_[b++]=this.DV+E:E>0&&(_[b++]=E),_.t=b,_.clamp()},I.prototype.multiplyTo=function(m,_){var b=this.abs(),E=m.abs(),P=b.t;for(_.t=P+E.t;--P>=0;)_[P]=0;for(P=0;P<E.t;++P)_[P+b.t]=b.am(0,E[P],_,P,0,b.t);_.s=0,_.clamp(),this.s!=m.s&&I.ZERO.subTo(_,_)},I.prototype.squareTo=function(m){for(var _=this.abs(),b=m.t=2*_.t;--b>=0;)m[b]=0;for(b=0;b<_.t-1;++b){var E=_.am(b,_[b],m,2*b,0,1);(m[b+_.t]+=_.am(b+1,2*_[b],m,2*b+1,E,_.t-b-1))>=_.DV&&(m[b+_.t]-=_.DV,m[b+_.t+1]=1)}m.t>0&&(m[m.t-1]+=_.am(b,_[b],m,2*b,0,1)),m.s=0,m.clamp()},I.prototype.divRemTo=function(m,_,b){var E=m.abs();if(!(E.t<=0)){var P=this.abs();if(P.t<E.t)return _!=null&&_.fromInt(0),void(b!=null&&this.copyTo(b));b==null&&(b=r());var N=r(),j=this.s,G=m.s,ue=this.DB-l(E[E.t-1]);ue>0?(E.lShiftTo(ue,N),P.lShiftTo(ue,b)):(E.copyTo(N),P.copyTo(b));var le=N.t,Re=N[le-1];if(Re!=0){var ve=Re*(1<<this.F1)+(le>1?N[le-2]>>this.F2:0),A=this.FV/ve,O=(1<<this.F1)/ve,z=1<<this.F2,H=b.t,x=H-le,ee=_??r();for(N.dlShiftTo(x,ee),b.compareTo(ee)>=0&&(b[b.t++]=1,b.subTo(ee,b)),I.ONE.dlShiftTo(le,ee),ee.subTo(N,N);N.t<le;)N[N.t++]=0;for(;--x>=0;){var ne=b[--H]==Re?this.DM:Math.floor(b[H]*A+(b[H-1]+z)*O);if((b[H]+=N.am(0,ne,b,x,0,le))<ne)for(N.dlShiftTo(x,ee),b.subTo(ee,b);b[H]<--ne;)b.subTo(ee,b)}_!=null&&(b.drShiftTo(le,_),j!=G&&I.ZERO.subTo(_,_)),b.t=le,b.clamp(),ue>0&&b.rShiftTo(ue,b),j<0&&I.ZERO.subTo(b,b)}}},I.prototype.invDigit=function(){if(this.t<1)return 0;var m=this[0];if((1&m)==0)return 0;var _=3&m;return _=_*(2-(15&m)*_)&15,_=_*(2-(255&m)*_)&255,_=_*(2-((65535&m)*_&65535))&65535,_=_*(2-m*_%this.DV)%this.DV,_>0?this.DV-_:-_},I.prototype.isEven=function(){return(this.t>0?1&this[0]:this.s)==0},I.prototype.exp=function(m,_){if(m>4294967295||m<1)return I.ONE;var b=r(),E=r(),P=_.convert(this),N=l(m)-1;for(P.copyTo(b);--N>=0;)if(_.sqrTo(b,E),(m&1<<N)>0)_.mulTo(E,P,b);else{var j=b;b=E,E=j}return _.revert(b)},I.prototype.chunkSize=function(m){return Math.floor(Math.LN2*this.DB/Math.log(m))},I.prototype.toRadix=function(m){if(m==null&&(m=10),this.signum()==0||m<2||m>36)return"0";var _=this.chunkSize(m),b=Math.pow(m,_),E=u(b),P=r(),N=r(),j="";for(this.divRemTo(E,P,N);P.signum()>0;)j=(b+N.intValue()).toString(m).substr(1)+j,P.divRemTo(E,P,N);return N.intValue().toString(m)+j},I.prototype.fromRadix=function(m,_){this.fromInt(0),_==null&&(_=10);for(var b=this.chunkSize(_),E=Math.pow(_,b),P=!1,N=0,j=0,G=0;G<m.length;++G){var ue=a(m,G);ue<0?m.charAt(G)=="-"&&this.signum()==0&&(P=!0):(j=_*j+ue,++N>=b&&(this.dMultiply(E),this.dAddOffset(j,0),N=0,j=0))}N>0&&(this.dMultiply(Math.pow(_,N)),this.dAddOffset(j,0)),P&&I.ZERO.subTo(this,this)},I.prototype.fromNumber=function(m,_,b){if(typeof _=="number")if(m<2)this.fromInt(1);else for(this.fromNumber(m,b),this.testBit(m-1)||this.bitwiseTo(I.ONE.shiftLeft(m-1),h.op_or,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(_);)this.dAddOffset(2,0),this.bitLength()>m&&this.subTo(I.ONE.shiftLeft(m-1),this);else{var E=[],P=7&m;E.length=1+(m>>3),_.nextBytes(E),P>0?E[0]&=(1<<P)-1:E[0]=0,this.fromString(E,256)}},I.prototype.bitwiseTo=function(m,_,b){var E,P,N=Math.min(m.t,this.t);for(E=0;E<N;++E)b[E]=_(this[E],m[E]);if(m.t<this.t){for(P=m.s&this.DM,E=N;E<this.t;++E)b[E]=_(this[E],P);b.t=this.t}else{for(P=this.s&this.DM,E=N;E<m.t;++E)b[E]=_(P,m[E]);b.t=m.t}b.s=_(this.s,m.s),b.clamp()},I.prototype.changeBit=function(m,_){var b=I.ONE.shiftLeft(m);return this.bitwiseTo(b,_,b),b},I.prototype.addTo=function(m,_){for(var b=0,E=0,P=Math.min(m.t,this.t);b<P;)E+=this[b]+m[b],_[b++]=E&this.DM,E>>=this.DB;if(m.t<this.t){for(E+=m.s;b<this.t;)E+=this[b],_[b++]=E&this.DM,E>>=this.DB;E+=this.s}else{for(E+=this.s;b<m.t;)E+=m[b],_[b++]=E&this.DM,E>>=this.DB;E+=m.s}_.s=E<0?-1:0,E>0?_[b++]=E:E<-1&&(_[b++]=this.DV+E),_.t=b,_.clamp()},I.prototype.dMultiply=function(m){this[this.t]=this.am(0,m-1,this,0,0,this.t),++this.t,this.clamp()},I.prototype.dAddOffset=function(m,_){if(m!=0){for(;this.t<=_;)this[this.t++]=0;for(this[_]+=m;this[_]>=this.DV;)this[_]-=this.DV,++_>=this.t&&(this[this.t++]=0),++this[_]}},I.prototype.multiplyLowerTo=function(m,_,b){var E=Math.min(this.t+m.t,_);for(b.s=0,b.t=E;E>0;)b[--E]=0;for(var P=b.t-this.t;E<P;++E)b[E+this.t]=this.am(0,m[E],b,E,0,this.t);for(var P=Math.min(m.t,_);E<P;++E)this.am(0,m[E],b,E,0,_-E);b.clamp()},I.prototype.multiplyUpperTo=function(m,_,b){--_;var E=b.t=this.t+m.t-_;for(b.s=0;--E>=0;)b[E]=0;for(E=Math.max(_-this.t,0);E<m.t;++E)b[this.t+E-_]=this.am(_-E,m[E],b,0,0,this.t+E-_);b.clamp(),b.drShiftTo(1,b)},I.prototype.modInt=function(m){if(m<=0)return 0;var _=this.DV%m,b=this.s<0?m-1:0;if(this.t>0)if(_==0)b=this[0]%m;else for(var E=this.t-1;E>=0;--E)b=(_*b+this[E])%m;return b},I.prototype.millerRabin=function(m){var _=this.subtract(I.ONE),b=_.getLowestSetBit();if(b<=0)return!1;var E=_.shiftRight(b);(m=m+1>>1)>p.length&&(m=p.length);for(var P=r(),N=0;N<m;++N){P.fromInt(p[Math.floor(Math.random()*p.length)]);var j=P.modPow(E,this);if(j.compareTo(I.ONE)!=0&&j.compareTo(_)!=0){for(var G=1;G++<b&&j.compareTo(_)!=0;)if(j=j.modPowInt(2,this),j.compareTo(I.ONE)==0)return!1;if(j.compareTo(_)!=0)return!1}}return!0},I.prototype.square=function(){var m=r();return this.squareTo(m),m},I.prototype.gcda=function(m,_){var b=this.s<0?this.negate():this.clone(),E=m.s<0?m.negate():m.clone();if(b.compareTo(E)<0){var P=b;b=E,E=P}var N=b.getLowestSetBit(),j=E.getLowestSetBit();if(j<0)return void _(b);N<j&&(j=N),j>0&&(b.rShiftTo(j,b),E.rShiftTo(j,E));var G=function ue(){(N=b.getLowestSetBit())>0&&b.rShiftTo(N,b),(N=E.getLowestSetBit())>0&&E.rShiftTo(N,E),b.compareTo(E)>=0?(b.subTo(E,b),b.rShiftTo(1,b)):(E.subTo(b,E),E.rShiftTo(1,E)),b.signum()>0?setTimeout(ue,0):(j>0&&E.lShiftTo(j,E),setTimeout(function(){_(E)},0))};setTimeout(G,10)},I.prototype.fromNumberAsync=function(m,_,b,E){if(typeof _=="number")if(m<2)this.fromInt(1);else{this.fromNumber(m,b),this.testBit(m-1)||this.bitwiseTo(I.ONE.shiftLeft(m-1),h.op_or,this),this.isEven()&&this.dAddOffset(1,0);var P=this,N=function ue(){P.dAddOffset(2,0),P.bitLength()>m&&P.subTo(I.ONE.shiftLeft(m-1),P),P.isProbablePrime(_)?setTimeout(function(){E()},0):setTimeout(ue,0)};setTimeout(N,0)}else{var j=[],G=7&m;j.length=1+(m>>3),_.nextBytes(j),G>0?j[0]&=(1<<G)-1:j[0]=0,this.fromString(j,256)}},I})(),g=(function(){function I(){}return I.prototype.convert=function(m){return m},I.prototype.revert=function(m){return m},I.prototype.mulTo=function(m,_,b){m.multiplyTo(_,b)},I.prototype.sqrTo=function(m,_){m.squareTo(_)},I})(),v=(function(){function I(m){this.m=m}return I.prototype.convert=function(m){return m.s<0||m.compareTo(this.m)>=0?m.mod(this.m):m},I.prototype.revert=function(m){return m},I.prototype.reduce=function(m){m.divRemTo(this.m,null,m)},I.prototype.mulTo=function(m,_,b){m.multiplyTo(_,b),this.reduce(b)},I.prototype.sqrTo=function(m,_){m.squareTo(_),this.reduce(_)},I})(),S=(function(){function I(m){this.m=m,this.mp=m.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<m.DB-15)-1,this.mt2=2*m.t}return I.prototype.convert=function(m){var _=r();return m.abs().dlShiftTo(this.m.t,_),_.divRemTo(this.m,null,_),m.s<0&&_.compareTo(y.ZERO)>0&&this.m.subTo(_,_),_},I.prototype.revert=function(m){var _=r();return m.copyTo(_),this.reduce(_),_},I.prototype.reduce=function(m){for(;m.t<=this.mt2;)m[m.t++]=0;for(var _=0;_<this.m.t;++_){var b=32767&m[_],E=b*this.mpl+((b*this.mph+(m[_]>>15)*this.mpl&this.um)<<15)&m.DM;for(b=_+this.m.t,m[b]+=this.m.am(0,E,m,_,0,this.m.t);m[b]>=m.DV;)m[b]-=m.DV,m[++b]++}m.clamp(),m.drShiftTo(this.m.t,m),m.compareTo(this.m)>=0&&m.subTo(this.m,m)},I.prototype.mulTo=function(m,_,b){m.multiplyTo(_,b),this.reduce(b)},I.prototype.sqrTo=function(m,_){m.squareTo(_),this.reduce(_)},I})(),C=(function(){function I(m){this.m=m,this.r2=r(),this.q3=r(),y.ONE.dlShiftTo(2*m.t,this.r2),this.mu=this.r2.divide(m)}return I.prototype.convert=function(m){if(m.s<0||m.t>2*this.m.t)return m.mod(this.m);if(m.compareTo(this.m)<0)return m;var _=r();return m.copyTo(_),this.reduce(_),_},I.prototype.revert=function(m){return m},I.prototype.reduce=function(m){for(m.drShiftTo(this.m.t-1,this.r2),m.t>this.m.t+1&&(m.t=this.m.t+1,m.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);m.compareTo(this.r2)<0;)m.dAddOffset(1,this.m.t+1);for(m.subTo(this.r2,m);m.compareTo(this.m)>=0;)m.subTo(this.m,m)},I.prototype.mulTo=function(m,_,b){m.multiplyTo(_,b),this.reduce(b)},I.prototype.sqrTo=function(m,_){m.squareTo(_),this.reduce(_)},I})(),k=typeof navigator<"u";k&&navigator.appName=="Microsoft Internet Explorer"?(y.prototype.am=function(I,m,_,b,E,P){for(var N=32767&m,j=m>>15;--P>=0;){var G=32767&this[I],ue=this[I++]>>15,le=j*G+ue*N;G=N*G+((32767&le)<<15)+_[b]+(1073741823&E),E=(G>>>30)+(le>>>15)+j*ue+(E>>>30),_[b++]=1073741823&G}return E},c=30):k&&navigator.appName!="Netscape"?(y.prototype.am=function(I,m,_,b,E,P){for(;--P>=0;){var N=m*this[I++]+_[b]+E;E=Math.floor(N/67108864),_[b++]=67108863&N}return E},c=26):(y.prototype.am=function(I,m,_,b,E,P){for(var N=16383&m,j=m>>14;--P>=0;){var G=16383&this[I],ue=this[I++]>>14,le=j*G+ue*N;G=N*G+((16383&le)<<14)+_[b]+E,E=(G>>28)+(le>>14)+j*ue,_[b++]=268435455&G}return E},c=28),y.prototype.DB=c,y.prototype.DM=(1<<c)-1,y.prototype.DV=1<<c,y.prototype.FV=Math.pow(2,52),y.prototype.F1=52-c,y.prototype.F2=2*c-52;var U,M,V=[];for(U=48,M=0;M<=9;++M)V[U++]=M;for(U=97,M=10;M<36;++M)V[U++]=M;for(U=65,M=10;M<36;++M)V[U++]=M;y.ZERO=u(0),y.ONE=u(1)},"./node_modules/jsencrypt/lib/lib/jsbn/prng4.js":function(n,t,e){function r(){return new s}e.r(t),e.d(t,{Arcfour:function(){return s},prng_newstate:function(){return r},rng_psize:function(){return a}});var s=(function(){function u(){this.i=0,this.j=0,this.S=[]}return u.prototype.init=function(l){var c,h,p;for(c=0;c<256;++c)this.S[c]=c;for(h=0,c=0;c<256;++c)h=h+this.S[c]+l[c%l.length]&255,p=this.S[c],this.S[c]=this.S[h],this.S[h]=p;this.i=0,this.j=0},u.prototype.next=function(){var l;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,l=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=l,this.S[l+this.S[this.i]&255]},u})(),a=256},"./node_modules/jsencrypt/lib/lib/jsbn/rng.js":function(n,t,e){function r(){if(s==null){for(s=(0,u.prng_newstate)();a<u.rng_psize;){var g=Math.floor(65536*Math.random());l[a++]=255&g}for(s.init(l),a=0;a<l.length;++a)l[a]=0;a=0}return s.next()}e.r(t),e.d(t,{SecureRandom:function(){return y}});var s,a,u=e("./node_modules/jsencrypt/lib/lib/jsbn/prng4.js"),l=null;if(l==null){l=[],a=0;var c=void 0;if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){var h=new Uint32Array(256);for(window.crypto.getRandomValues(h),c=0;c<h.length;++c)l[a++]=255&h[c]}var p=0,d=function g(v){if((p=p||0)>=256||a>=u.rng_psize)return void(window.removeEventListener?window.removeEventListener("mousemove",g,!1):window.detachEvent&&window.detachEvent("onmousemove",g));try{var S=v.x+v.y;l[a++]=255&S,p+=1}catch{}};typeof window<"u"&&(window.addEventListener?window.addEventListener("mousemove",d,!1):window.attachEvent&&window.attachEvent("onmousemove",d))}var y=(function(){function g(){}return g.prototype.nextBytes=function(v){for(var S=0;S<v.length;++S)v[S]=r()},g})()},"./node_modules/jsencrypt/lib/lib/jsbn/rsa.js":function(n,t,e){function r(y,g){if(g<y.length+22)return null;for(var v=g-y.length-6,S="",C=0;C<v;C+=2)S+="ff";var k="0001"+S+"00"+y;return(0,c.parseBigInt)(k,16)}function s(y,g){if(g<y.length+11)return null;for(var v=[],S=y.length-1;S>=0&&g>0;){var C=y.charCodeAt(S--);C<128?v[--g]=C:C>127&&C<2048?(v[--g]=63&C|128,v[--g]=C>>6|192):(v[--g]=63&C|128,v[--g]=C>>6&63|128,v[--g]=C>>12|224)}v[--g]=0;for(var k=new h.SecureRandom,U=[];g>2;){for(U[0]=0;U[0]==0;)k.nextBytes(U);v[--g]=U[0]}return v[--g]=2,v[--g]=0,new c.BigInteger(v)}function a(y,g){for(var v=y.toByteArray(),S=0;S<v.length&&v[S]==0;)++S;if(v.length-S!=g-1||v[S]!=2)return null;for(++S;v[S]!=0;)if(++S>=v.length)return null;for(var C="";++S<v.length;){var k=255&v[S];k<128?C+=String.fromCharCode(k):k>191&&k<224?(C+=String.fromCharCode((31&k)<<6|63&v[S+1]),++S):(C+=String.fromCharCode((15&k)<<12|(63&v[S+1])<<6|63&v[S+2]),S+=2)}return C}function u(y){return d[y]||""}function l(y){for(var g in d)if(d.hasOwnProperty(g)){var v=d[g],S=v.length;if(y.substr(0,S)==v)return y.substr(S)}return y}e.r(t),e.d(t,{RSAKey:function(){return p}});var c=e("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),h=e("./node_modules/jsencrypt/lib/lib/jsbn/rng.js"),p=(function(){function y(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return y.prototype.doPublic=function(g){return g.modPowInt(this.e,this.n)},y.prototype.doPrivate=function(g){if(this.p==null||this.q==null)return g.modPow(this.d,this.n);for(var v=g.mod(this.p).modPow(this.dmp1,this.p),S=g.mod(this.q).modPow(this.dmq1,this.q);v.compareTo(S)<0;)v=v.add(this.p);return v.subtract(S).multiply(this.coeff).mod(this.p).multiply(this.q).add(S)},y.prototype.setPublic=function(g,v){g!=null&&v!=null&&g.length>0&&v.length>0&&(this.n=(0,c.parseBigInt)(g,16),this.e=parseInt(v,16))},y.prototype.encrypt=function(g){var v=this.n.bitLength()+7>>3,S=s(g,v);if(S==null)return null;var C=this.doPublic(S);if(C==null)return null;for(var k=C.toString(16),U=k.length,M=0;M<2*v-U;M++)k="0"+k;return k},y.prototype.setPrivate=function(g,v,S){g!=null&&v!=null&&g.length>0&&v.length>0&&(this.n=(0,c.parseBigInt)(g,16),this.e=parseInt(v,16),this.d=(0,c.parseBigInt)(S,16))},y.prototype.setPrivateEx=function(g,v,S,C,k,U,M,V){g!=null&&v!=null&&g.length>0&&v.length>0&&(this.n=(0,c.parseBigInt)(g,16),this.e=parseInt(v,16),this.d=(0,c.parseBigInt)(S,16),this.p=(0,c.parseBigInt)(C,16),this.q=(0,c.parseBigInt)(k,16),this.dmp1=(0,c.parseBigInt)(U,16),this.dmq1=(0,c.parseBigInt)(M,16),this.coeff=(0,c.parseBigInt)(V,16))},y.prototype.generate=function(g,v){var S=new h.SecureRandom,C=g>>1;this.e=parseInt(v,16);for(var k=new c.BigInteger(v,16);;){for(;this.p=new c.BigInteger(g-C,1,S),this.p.subtract(c.BigInteger.ONE).gcd(k).compareTo(c.BigInteger.ONE)!=0||!this.p.isProbablePrime(10););for(;this.q=new c.BigInteger(C,1,S),this.q.subtract(c.BigInteger.ONE).gcd(k).compareTo(c.BigInteger.ONE)!=0||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var U=this.p;this.p=this.q,this.q=U}var M=this.p.subtract(c.BigInteger.ONE),V=this.q.subtract(c.BigInteger.ONE),I=M.multiply(V);if(I.gcd(k).compareTo(c.BigInteger.ONE)==0){this.n=this.p.multiply(this.q),this.d=k.modInverse(I),this.dmp1=this.d.mod(M),this.dmq1=this.d.mod(V),this.coeff=this.q.modInverse(this.p);break}}},y.prototype.decrypt=function(g){var v=(0,c.parseBigInt)(g,16),S=this.doPrivate(v);return S==null?null:a(S,this.n.bitLength()+7>>3)},y.prototype.generateAsync=function(g,v,S){var C=new h.SecureRandom,k=g>>1;this.e=parseInt(v,16);var U=new c.BigInteger(v,16),M=this,V=function I(){var m=function(){if(M.p.compareTo(M.q)<=0){var E=M.p;M.p=M.q,M.q=E}var P=M.p.subtract(c.BigInteger.ONE),N=M.q.subtract(c.BigInteger.ONE),j=P.multiply(N);j.gcd(U).compareTo(c.BigInteger.ONE)==0?(M.n=M.p.multiply(M.q),M.d=U.modInverse(j),M.dmp1=M.d.mod(P),M.dmq1=M.d.mod(N),M.coeff=M.q.modInverse(M.p),setTimeout(function(){S()},0)):setTimeout(I,0)},_=function E(){M.q=(0,c.nbi)(),M.q.fromNumberAsync(k,1,C,function(){M.q.subtract(c.BigInteger.ONE).gcda(U,function(P){P.compareTo(c.BigInteger.ONE)==0&&M.q.isProbablePrime(10)?setTimeout(m,0):setTimeout(E,0)})})},b=function E(){M.p=(0,c.nbi)(),M.p.fromNumberAsync(g-k,1,C,function(){M.p.subtract(c.BigInteger.ONE).gcda(U,function(P){P.compareTo(c.BigInteger.ONE)==0&&M.p.isProbablePrime(10)?setTimeout(_,0):setTimeout(E,0)})})};setTimeout(b,0)};setTimeout(V,0)},y.prototype.sign=function(g,v,S){var C=u(S),k=C+v(g).toString(),U=r(k,this.n.bitLength()/4);if(U==null)return null;var M=this.doPrivate(U);if(M==null)return null;var V=M.toString(16);return(1&V.length)==0?V:"0"+V},y.prototype.verify=function(g,v,S){var C=(0,c.parseBigInt)(v,16),k=this.doPublic(C);return k==null?null:l(k.toString(16).replace(/^1f+00/,""))==S(g).toString()},y})(),d={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"}},"./node_modules/jsencrypt/lib/lib/jsbn/util.js":function(n,t,e){function r(d){return p.charAt(d)}function s(d,y){return d&y}function a(d,y){return d|y}function u(d,y){return d^y}function l(d,y){return d&~y}function c(d){if(d==0)return-1;var y=0;return(65535&d)==0&&(d>>=16,y+=16),(255&d)==0&&(d>>=8,y+=8),(15&d)==0&&(d>>=4,y+=4),(3&d)==0&&(d>>=2,y+=2),(1&d)==0&&++y,y}function h(d){for(var y=0;d!=0;)d&=d-1,++y;return y}e.r(t),e.d(t,{cbit:function(){return h},int2char:function(){return r},lbit:function(){return c},op_and:function(){return s},op_andnot:function(){return l},op_or:function(){return a},op_xor:function(){return u}});var p="0123456789abcdefghijklmnopqrstuvwxyz"},"./node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js":function(n,t,e){e.r(t),e.d(t,{KJUR:function(){return a}});var r=e("./node_modules/jsencrypt/lib/lib/jsbn/jsbn.js"),s=e("./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js"),a={};typeof a.asn1<"u"&&a.asn1||(a.asn1={}),a.asn1.ASN1Util=new function(){this.integerToByteHex=function(u){var l=u.toString(16);return l.length%2==1&&(l="0"+l),l},this.bigIntToMinTwosComplementsHex=function(u){var l=u.toString(16);if(l.substr(0,1)!="-")l.length%2==1?l="0"+l:l.match(/^[0-7]/)||(l="00"+l);else{var c=l.substr(1),h=c.length;h%2==1?h+=1:l.match(/^[0-7]/)||(h+=2);for(var p="",d=0;d<h;d++)p+="f";l=new r.BigInteger(p,16).xor(u).add(r.BigInteger.ONE).toString(16).replace(/^-/,"")}return l},this.getPEMStringFromHex=function(u,l){return hextopem(u,l)},this.newObject=function(u){var l=a,c=l.asn1,h=c.DERBoolean,p=c.DERInteger,d=c.DERBitString,y=c.DEROctetString,g=c.DERNull,v=c.DERObjectIdentifier,S=c.DEREnumerated,C=c.DERUTF8String,k=c.DERNumericString,U=c.DERPrintableString,M=c.DERTeletexString,V=c.DERIA5String,I=c.DERUTCTime,m=c.DERGeneralizedTime,_=c.DERSequence,b=c.DERSet,E=c.DERTaggedObject,P=c.ASN1Util.newObject,N=Object.keys(u);if(N.length!=1)throw"key of param shall be only one.";var j=N[0];if(":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+j+":")==-1)throw"undefined key: "+j;if(j=="bool")return new h(u[j]);if(j=="int")return new p(u[j]);if(j=="bitstr")return new d(u[j]);if(j=="octstr")return new y(u[j]);if(j=="null")return new g(u[j]);if(j=="oid")return new v(u[j]);if(j=="enum")return new S(u[j]);if(j=="utf8str")return new C(u[j]);if(j=="numstr")return new k(u[j]);if(j=="prnstr")return new U(u[j]);if(j=="telstr")return new M(u[j]);if(j=="ia5str")return new V(u[j]);if(j=="utctime")return new I(u[j]);if(j=="gentime")return new m(u[j]);if(j=="seq"){for(var G=u[j],ue=[],le=0;le<G.length;le++){var Re=P(G[le]);ue.push(Re)}return new _({array:ue})}if(j=="set"){for(var G=u[j],ue=[],le=0;le<G.length;le++){var Re=P(G[le]);ue.push(Re)}return new b({array:ue})}if(j=="tag"){var ve=u[j];if(Object.prototype.toString.call(ve)==="[object Array]"&&ve.length==3){var A=P(ve[2]);return new E({tag:ve[0],explicit:ve[1],obj:A})}var O={};if(ve.explicit!==void 0&&(O.explicit=ve.explicit),ve.tag!==void 0&&(O.tag=ve.tag),ve.obj===void 0)throw"obj shall be specified for 'tag'.";return O.obj=P(ve.obj),new E(O)}},this.jsonToASN1HEX=function(u){return this.newObject(u).getEncodedHex()}},a.asn1.ASN1Util.oidHexToInt=function(u){for(var p="",l=parseInt(u.substr(0,2),16),c=Math.floor(l/40),h=l%40,p=c+"."+h,d="",y=2;y<u.length;y+=2){var g=parseInt(u.substr(y,2),16),v=("00000000"+g.toString(2)).slice(-8);d+=v.substr(1,7),v.substr(0,1)=="0"&&(p=p+"."+new r.BigInteger(d,2).toString(10),d="")}return p},a.asn1.ASN1Util.oidIntToHex=function(u){var l=function(y){var g=y.toString(16);return g.length==1&&(g="0"+g),g};if(!u.match(/^[0-9.]+$/))throw"malformed oid string: "+u;var c="",h=u.split("."),p=40*parseInt(h[0])+parseInt(h[1]);c+=l(p),h.splice(0,2);for(var d=0;d<h.length;d++)c+=(function(y){var g="",v=new r.BigInteger(y,10),S=v.toString(2),C=7-S.length%7;C==7&&(C=0);for(var k="",U=0;U<C;U++)k+="0";S=k+S;for(var U=0;U<S.length-1;U+=7){var M=S.substr(U,7);U!=S.length-7&&(M="1"+M),g+=l(parseInt(M,2))}return g})(h[d]);return c},a.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(typeof this.hV>"u"||this.hV==null)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n=0,v="+this.hV;var u=this.hV.length/2,l=u.toString(16);if(l.length%2==1&&(l="0"+l),u<128)return l;var c=l.length/2;if(c>15)throw"ASN.1 length too long to represent by 8x: n = "+u.toString(16);return(128+c).toString(16)+l},this.getEncodedHex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},a.asn1.DERAbstractString=function(u){a.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(l){this.hTLV=null,this.isModified=!0,this.s=l,this.hV=stohex(this.s)},this.setStringHex=function(l){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=l},this.getFreshValueHex=function(){return this.hV},u!==void 0&&(typeof u=="string"?this.setString(u):typeof u.str<"u"?this.setString(u.str):typeof u.hex<"u"&&this.setStringHex(u.hex))},s.YAHOO.lang.extend(a.asn1.DERAbstractString,a.asn1.ASN1Object),a.asn1.DERAbstractTime=function(u){a.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(l){return utc=l.getTime()+6e4*l.getTimezoneOffset(),new Date(utc)},this.formatDate=function(l,c,h){var p=this.zeroPadding,d=this.localDateToUTC(l),y=String(d.getFullYear());c=="utc"&&(y=y.substr(2,2));var g=p(String(d.getMonth()+1),2),v=p(String(d.getDate()),2),S=p(String(d.getHours()),2),C=p(String(d.getMinutes()),2),k=p(String(d.getSeconds()),2),U=y+g+v+S+C+k;if(h===!0){var M=d.getMilliseconds();if(M!=0){var V=p(String(M),3);V=V.replace(/[0]+$/,""),U=U+"."+V}}return U+"Z"},this.zeroPadding=function(l,c){return l.length>=c?l:new Array(c-l.length+1).join("0")+l},this.getString=function(){return this.s},this.setString=function(l){this.hTLV=null,this.isModified=!0,this.s=l,this.hV=stohex(l)},this.setByDateValue=function(l,c,h,p,d,y){var g=new Date(Date.UTC(l,c-1,h,p,d,y,0));this.setByDate(g)},this.getFreshValueHex=function(){return this.hV}},s.YAHOO.lang.extend(a.asn1.DERAbstractTime,a.asn1.ASN1Object),a.asn1.DERAbstractStructured=function(u){a.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(l){this.hTLV=null,this.isModified=!0,this.asn1Array=l},this.appendASN1Object=function(l){this.hTLV=null,this.isModified=!0,this.asn1Array.push(l)},this.asn1Array=new Array,u!==void 0&&typeof u.array<"u"&&(this.asn1Array=u.array)},s.YAHOO.lang.extend(a.asn1.DERAbstractStructured,a.asn1.ASN1Object),a.asn1.DERBoolean=function(){a.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},s.YAHOO.lang.extend(a.asn1.DERBoolean,a.asn1.ASN1Object),a.asn1.DERInteger=function(u){a.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(l){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(l)},this.setByInteger=function(l){var c=new r.BigInteger(String(l),10);this.setByBigInteger(c)},this.setValueHex=function(l){this.hV=l},this.getFreshValueHex=function(){return this.hV},u!==void 0&&(typeof u.bigint<"u"?this.setByBigInteger(u.bigint):typeof u.int<"u"?this.setByInteger(u.int):typeof u=="number"?this.setByInteger(u):typeof u.hex<"u"&&this.setValueHex(u.hex))},s.YAHOO.lang.extend(a.asn1.DERInteger,a.asn1.ASN1Object),a.asn1.DERBitString=function(u){if(u!==void 0&&typeof u.obj<"u"){var l=a.asn1.ASN1Util.newObject(u.obj);u.hex="00"+l.getEncodedHex()}a.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(c){this.hTLV=null,this.isModified=!0,this.hV=c},this.setUnusedBitsAndHexValue=function(c,h){if(c<0||7<c)throw"unused bits shall be from 0 to 7: u = "+c;var p="0"+c;this.hTLV=null,this.isModified=!0,this.hV=p+h},this.setByBinaryString=function(c){c=c.replace(/0+$/,"");var h=8-c.length%8;h==8&&(h=0);for(var p=0;p<=h;p++)c+="0";for(var d="",p=0;p<c.length-1;p+=8){var y=c.substr(p,8),g=parseInt(y,2).toString(16);g.length==1&&(g="0"+g),d+=g}this.hTLV=null,this.isModified=!0,this.hV="0"+h+d},this.setByBooleanArray=function(c){for(var h="",p=0;p<c.length;p++)c[p]==1?h+="1":h+="0";this.setByBinaryString(h)},this.newFalseArray=function(c){for(var h=new Array(c),p=0;p<c;p++)h[p]=!1;return h},this.getFreshValueHex=function(){return this.hV},u!==void 0&&(typeof u=="string"&&u.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(u):typeof u.hex<"u"?this.setHexValueIncludingUnusedBits(u.hex):typeof u.bin<"u"?this.setByBinaryString(u.bin):typeof u.array<"u"&&this.setByBooleanArray(u.array))},s.YAHOO.lang.extend(a.asn1.DERBitString,a.asn1.ASN1Object),a.asn1.DEROctetString=function(u){if(u!==void 0&&typeof u.obj<"u"){var l=a.asn1.ASN1Util.newObject(u.obj);u.hex=l.getEncodedHex()}a.asn1.DEROctetString.superclass.constructor.call(this,u),this.hT="04"},s.YAHOO.lang.extend(a.asn1.DEROctetString,a.asn1.DERAbstractString),a.asn1.DERNull=function(){a.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},s.YAHOO.lang.extend(a.asn1.DERNull,a.asn1.ASN1Object),a.asn1.DERObjectIdentifier=function(u){var l=function(h){var p=h.toString(16);return p.length==1&&(p="0"+p),p},c=function(h){var p="",d=new r.BigInteger(h,10),y=d.toString(2),g=7-y.length%7;g==7&&(g=0);for(var v="",S=0;S<g;S++)v+="0";y=v+y;for(var S=0;S<y.length-1;S+=7){var C=y.substr(S,7);S!=y.length-7&&(C="1"+C),p+=l(parseInt(C,2))}return p};a.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(h){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=h},this.setValueOidString=function(h){if(!h.match(/^[0-9.]+$/))throw"malformed oid string: "+h;var p="",d=h.split("."),y=40*parseInt(d[0])+parseInt(d[1]);p+=l(y),d.splice(0,2);for(var g=0;g<d.length;g++)p+=c(d[g]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=p},this.setValueName=function(h){var p=a.asn1.x509.OID.name2oid(h);if(p==="")throw"DERObjectIdentifier oidName undefined: "+h;this.setValueOidString(p)},this.getFreshValueHex=function(){return this.hV},u!==void 0&&(typeof u=="string"?u.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(u):this.setValueName(u):u.oid!==void 0?this.setValueOidString(u.oid):u.hex!==void 0?this.setValueHex(u.hex):u.name!==void 0&&this.setValueName(u.name))},s.YAHOO.lang.extend(a.asn1.DERObjectIdentifier,a.asn1.ASN1Object),a.asn1.DEREnumerated=function(u){a.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(l){this.hTLV=null,this.isModified=!0,this.hV=a.asn1.ASN1Util.bigIntToMinTwosComplementsHex(l)},this.setByInteger=function(l){var c=new r.BigInteger(String(l),10);this.setByBigInteger(c)},this.setValueHex=function(l){this.hV=l},this.getFreshValueHex=function(){return this.hV},u!==void 0&&(typeof u.int<"u"?this.setByInteger(u.int):typeof u=="number"?this.setByInteger(u):typeof u.hex<"u"&&this.setValueHex(u.hex))},s.YAHOO.lang.extend(a.asn1.DEREnumerated,a.asn1.ASN1Object),a.asn1.DERUTF8String=function(u){a.asn1.DERUTF8String.superclass.constructor.call(this,u),this.hT="0c"},s.YAHOO.lang.extend(a.asn1.DERUTF8String,a.asn1.DERAbstractString),a.asn1.DERNumericString=function(u){a.asn1.DERNumericString.superclass.constructor.call(this,u),this.hT="12"},s.YAHOO.lang.extend(a.asn1.DERNumericString,a.asn1.DERAbstractString),a.asn1.DERPrintableString=function(u){a.asn1.DERPrintableString.superclass.constructor.call(this,u),this.hT="13"},s.YAHOO.lang.extend(a.asn1.DERPrintableString,a.asn1.DERAbstractString),a.asn1.DERTeletexString=function(u){a.asn1.DERTeletexString.superclass.constructor.call(this,u),this.hT="14"},s.YAHOO.lang.extend(a.asn1.DERTeletexString,a.asn1.DERAbstractString),a.asn1.DERIA5String=function(u){a.asn1.DERIA5String.superclass.constructor.call(this,u),this.hT="16"},s.YAHOO.lang.extend(a.asn1.DERIA5String,a.asn1.DERAbstractString),a.asn1.DERUTCTime=function(u){a.asn1.DERUTCTime.superclass.constructor.call(this,u),this.hT="17",this.setByDate=function(l){this.hTLV=null,this.isModified=!0,this.date=l,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return typeof this.date>"u"&&typeof this.s>"u"&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},u!==void 0&&(u.str!==void 0?this.setString(u.str):typeof u=="string"&&u.match(/^[0-9]{12}Z$/)?this.setString(u):u.hex!==void 0?this.setStringHex(u.hex):u.date!==void 0&&this.setByDate(u.date))},s.YAHOO.lang.extend(a.asn1.DERUTCTime,a.asn1.DERAbstractTime),a.asn1.DERGeneralizedTime=function(u){a.asn1.DERGeneralizedTime.superclass.constructor.call(this,u),this.hT="18",this.withMillis=!1,this.setByDate=function(l){this.hTLV=null,this.isModified=!0,this.date=l,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return this.date===void 0&&this.s===void 0&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},u!==void 0&&(u.str!==void 0?this.setString(u.str):typeof u=="string"&&u.match(/^[0-9]{14}Z$/)?this.setString(u):u.hex!==void 0?this.setStringHex(u.hex):u.date!==void 0&&this.setByDate(u.date),u.millis===!0&&(this.withMillis=!0))},s.YAHOO.lang.extend(a.asn1.DERGeneralizedTime,a.asn1.DERAbstractTime),a.asn1.DERSequence=function(u){a.asn1.DERSequence.superclass.constructor.call(this,u),this.hT="30",this.getFreshValueHex=function(){for(var l="",c=0;c<this.asn1Array.length;c++)l+=this.asn1Array[c].getEncodedHex();return this.hV=l,this.hV}},s.YAHOO.lang.extend(a.asn1.DERSequence,a.asn1.DERAbstractStructured),a.asn1.DERSet=function(u){a.asn1.DERSet.superclass.constructor.call(this,u),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var l=new Array,c=0;c<this.asn1Array.length;c++){var h=this.asn1Array[c];l.push(h.getEncodedHex())}return this.sortFlag==1&&l.sort(),this.hV=l.join(""),this.hV},u!==void 0&&typeof u.sortflag<"u"&&u.sortflag==0&&(this.sortFlag=!1)},s.YAHOO.lang.extend(a.asn1.DERSet,a.asn1.DERAbstractStructured),a.asn1.DERTaggedObject=function(u){a.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(l,c,h){this.hT=c,this.isExplicit=l,this.asn1Object=h,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=h.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,c),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},u!==void 0&&(typeof u.tag<"u"&&(this.hT=u.tag),typeof u.explicit<"u"&&(this.isExplicit=u.explicit),typeof u.obj<"u"&&(this.asn1Object=u.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},s.YAHOO.lang.extend(a.asn1.DERTaggedObject,a.asn1.ASN1Object)},"./node_modules/jsencrypt/lib/lib/jsrsasign/yahoo.js":function(n,t,e){e.r(t),e.d(t,{YAHOO:function(){return r}});var r={};r.lang={extend:function(s,a,u){if(!a||!s)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var l=function(){};if(l.prototype=a.prototype,s.prototype=new l,s.prototype.constructor=s,s.superclass=a.prototype,a.prototype.constructor==Object.prototype.constructor&&(a.prototype.constructor=a),u){var c;for(c in u)s.prototype[c]=u[c];var h=function(){},p=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(h=function(d,y){for(c=0;c<p.length;c+=1){var g=p[c],v=y[g];typeof v=="function"&&v!=Object.prototype[g]&&(d[g]=v)}})}catch{}h(s.prototype,u)}}}},"./node_modules/md5/md5.js":function(n,t,e){(function(){var r=e("./node_modules/crypt/crypt.js"),s=e("./node_modules/charenc/charenc.js").utf8,a=e("./node_modules/is-buffer/index.js"),u=e("./node_modules/charenc/charenc.js").bin,l=function c(h,p){h.constructor==String?h=p&&p.encoding==="binary"?u.stringToBytes(h):s.stringToBytes(h):a(h)?h=Array.prototype.slice.call(h,0):Array.isArray(h)||h.constructor===Uint8Array||(h=h.toString());for(var d=r.bytesToWords(h),y=8*h.length,g=1732584193,v=-271733879,S=-1732584194,C=271733878,k=0;k<d.length;k++)d[k]=16711935&(d[k]<<8|d[k]>>>24)|4278255360&(d[k]<<24|d[k]>>>8);d[y>>>5]|=128<<y%32,d[14+(y+64>>>9<<4)]=y;for(var U=c._ff,M=c._gg,V=c._hh,I=c._ii,k=0;k<d.length;k+=16){var m=g,_=v,b=S,E=C;g=U(g,v,S,C,d[k+0],7,-680876936),C=U(C,g,v,S,d[k+1],12,-389564586),S=U(S,C,g,v,d[k+2],17,606105819),v=U(v,S,C,g,d[k+3],22,-1044525330),g=U(g,v,S,C,d[k+4],7,-176418897),C=U(C,g,v,S,d[k+5],12,1200080426),S=U(S,C,g,v,d[k+6],17,-1473231341),v=U(v,S,C,g,d[k+7],22,-45705983),g=U(g,v,S,C,d[k+8],7,1770035416),C=U(C,g,v,S,d[k+9],12,-1958414417),S=U(S,C,g,v,d[k+10],17,-42063),v=U(v,S,C,g,d[k+11],22,-1990404162),g=U(g,v,S,C,d[k+12],7,1804603682),C=U(C,g,v,S,d[k+13],12,-40341101),S=U(S,C,g,v,d[k+14],17,-1502002290),v=U(v,S,C,g,d[k+15],22,1236535329),g=M(g,v,S,C,d[k+1],5,-165796510),C=M(C,g,v,S,d[k+6],9,-1069501632),S=M(S,C,g,v,d[k+11],14,643717713),v=M(v,S,C,g,d[k+0],20,-373897302),g=M(g,v,S,C,d[k+5],5,-701558691),C=M(C,g,v,S,d[k+10],9,38016083),S=M(S,C,g,v,d[k+15],14,-660478335),v=M(v,S,C,g,d[k+4],20,-405537848),g=M(g,v,S,C,d[k+9],5,568446438),C=M(C,g,v,S,d[k+14],9,-1019803690),S=M(S,C,g,v,d[k+3],14,-187363961),v=M(v,S,C,g,d[k+8],20,1163531501),g=M(g,v,S,C,d[k+13],5,-1444681467),C=M(C,g,v,S,d[k+2],9,-51403784),S=M(S,C,g,v,d[k+7],14,1735328473),v=M(v,S,C,g,d[k+12],20,-1926607734),g=V(g,v,S,C,d[k+5],4,-378558),C=V(C,g,v,S,d[k+8],11,-2022574463),S=V(S,C,g,v,d[k+11],16,1839030562),v=V(v,S,C,g,d[k+14],23,-35309556),g=V(g,v,S,C,d[k+1],4,-1530992060),C=V(C,g,v,S,d[k+4],11,1272893353),S=V(S,C,g,v,d[k+7],16,-155497632),v=V(v,S,C,g,d[k+10],23,-1094730640),g=V(g,v,S,C,d[k+13],4,681279174),C=V(C,g,v,S,d[k+0],11,-358537222),S=V(S,C,g,v,d[k+3],16,-722521979),v=V(v,S,C,g,d[k+6],23,76029189),g=V(g,v,S,C,d[k+9],4,-640364487),C=V(C,g,v,S,d[k+12],11,-421815835),S=V(S,C,g,v,d[k+15],16,530742520),v=V(v,S,C,g,d[k+2],23,-995338651),g=I(g,v,S,C,d[k+0],6,-198630844),C=I(C,g,v,S,d[k+7],10,1126891415),S=I(S,C,g,v,d[k+14],15,-1416354905),v=I(v,S,C,g,d[k+5],21,-57434055),g=I(g,v,S,C,d[k+12],6,1700485571),C=I(C,g,v,S,d[k+3],10,-1894986606),S=I(S,C,g,v,d[k+10],15,-1051523),v=I(v,S,C,g,d[k+1],21,-2054922799),g=I(g,v,S,C,d[k+8],6,1873313359),C=I(C,g,v,S,d[k+15],10,-30611744),S=I(S,C,g,v,d[k+6],15,-1560198380),v=I(v,S,C,g,d[k+13],21,1309151649),g=I(g,v,S,C,d[k+4],6,-145523070),C=I(C,g,v,S,d[k+11],10,-1120210379),S=I(S,C,g,v,d[k+2],15,718787259),v=I(v,S,C,g,d[k+9],21,-343485551),g=g+m>>>0,v=v+_>>>0,S=S+b>>>0,C=C+E>>>0}return r.endian([g,v,S,C])};l._ff=function(c,h,p,d,y,g,v){var S=c+(h&p|~h&d)+(y>>>0)+v;return(S<<g|S>>>32-g)+h},l._gg=function(c,h,p,d,y,g,v){var S=c+(h&d|p&~d)+(y>>>0)+v;return(S<<g|S>>>32-g)+h},l._hh=function(c,h,p,d,y,g,v){var S=c+(h^p^d)+(y>>>0)+v;return(S<<g|S>>>32-g)+h},l._ii=function(c,h,p,d,y,g,v){var S=c+(p^(h|~d))+(y>>>0)+v;return(S<<g|S>>>32-g)+h},l._blocksize=16,l._digestsize=16,n.exports=function(c,h){if(c==null)throw new Error("Illegal argument "+c);var p=r.wordsToBytes(l(c,h));return h&&h.asBytes?p:h&&h.asString?u.bytesToString(p):r.bytesToHex(p)}})()},"./node_modules/axios/dist/browser/axios.cjs":function(n,t,e){function r(f,w){return function(){return f.apply(w,arguments)}}function s(f){return f!==null&&!se(f)&&f.constructor!==null&&!se(f.constructor)&&pe(f.constructor.isBuffer)&&f.constructor.isBuffer(f)}function a(f){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(f):f&&f.buffer&&ie(f.buffer)}function u(f,w){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},R=L.allOwnKeys,F=R!==void 0&&R;if(f!=null){var D=void 0,q=void 0;if((f===void 0?"undefined":_typeof(f))!=="object"&&(f=[f]),Z(f))for(D=0,q=f.length;D<q;D++)w.call(null,f[D],D,f);else{var re=F?Object.getOwnPropertyNames(f):Object.keys(f),he=re.length,J=void 0;for(D=0;D<he;D++)J=re[D],w.call(null,f[J],J,f)}}}function l(f,w){w=w.toLowerCase();for(var L=Object.keys(f),R=L.length,F=void 0;R-- >0;)if(F=L[R],w===F.toLowerCase())return F;return null}function c(){for(var f=Ve(this)&&this||{},w=f.caseless,L={},R=function(q,re){var he=w&&l(L,re)||re;xe(L[he])&&xe(q)?L[he]=c(L[he],q):xe(q)?L[he]=c({},q):Z(q)?L[he]=q.slice():L[he]=q},F=0,D=arguments.length;F<D;F++)arguments[F]&&u(arguments[F],R);return L}function h(f){return!!(f&&pe(f.append)&&f[Symbol.toStringTag]==="FormData"&&f[Symbol.iterator])}function p(f,w,L,R,F){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=f,this.name="AxiosError",w&&(this.code=w),L&&(this.config=L),R&&(this.request=R),F&&(this.response=F)}function d(f){return Q.isPlainObject(f)||Q.isArray(f)}function y(f){return Q.endsWith(f,"[]")?f.slice(0,-2):f}function g(f,w,L){return f?f.concat(w).map(function(R,F){return R=y(R),!L&&F?"["+R+"]":R}).join(L?".":""):w}function v(f){return Q.isArray(f)&&!f.some(d)}function S(f,w,L){function R(ye){if(ye===null)return"";if(Q.isDate(ye))return ye.toISOString();if(!Se&&Q.isBlob(ye))throw new p("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(ye)||Q.isTypedArray(ye)?Se&&typeof Blob=="function"?new Blob([ye]):Buffer.from(ye):ye}function F(ye,be,ze){var qe=ye;if(ye&&!ze&&(ye===void 0?"undefined":_typeof(ye))==="object"){if(Q.endsWith(be,"{}"))be=q?be:be.slice(0,-2),ye=JSON.stringify(ye);else if(Q.isArray(ye)&&v(ye)||(Q.isFileList(ye)||Q.endsWith(be,"[]"))&&(qe=Q.toArray(ye)))return be=y(be),qe.forEach(function(je,er){!(Q.isUndefined(je)||je===null)&&w.append(J===!0?g([be],er,he):J===null?be:be+"[]",R(je))}),!1}return!!d(ye)||(w.append(g(ze,be,he),R(ye)),!1)}function D(ye,be){if(!Q.isUndefined(ye)){if(Oe.indexOf(ye)!==-1)throw Error("Circular reference detected in "+be.join("."));Oe.push(ye),Q.forEach(ye,function(ze,qe){(!(Q.isUndefined(ze)||ze===null)&&re.call(w,ze,Q.isString(qe)?qe.trim():qe,be,Je))===!0&&D(ze,be?be.concat(qe):[qe])}),Oe.pop()}}if(!Q.isObject(f))throw new TypeError("target must be an object");w=w||new FormData,L=Q.toFlatObject(L,{metaTokens:!0,dots:!1,indexes:!1},!1,function(ye,be){return!Q.isUndefined(be[ye])});var q=L.metaTokens,re=L.visitor||F,he=L.dots,J=L.indexes,de=L.Blob||typeof Blob<"u"&&Blob,Se=de&&Q.isSpecCompliantForm(w);if(!Q.isFunction(re))throw new TypeError("visitor must be a function");var Oe=[],Je=Object.assign(Mt,{defaultVisitor:F,convertValue:R,isVisitable:d});if(!Q.isObject(f))throw new TypeError("data must be an object");return D(f),w}function C(f){var w={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(f).replace(/[!'()~]|%20|%00/g,function(L){return w[L]})}function k(f,w){this._pairs=[],f&&S(f,this,w)}function U(f){return encodeURIComponent(f).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function M(f,w,L){if(!w)return f;var R=L&&L.encode||U,F=L&&L.serialize,D=void 0;if(D=F?F(w,L):Q.isURLSearchParams(w)?w.toString():new k(w,L).toString(R)){var q=f.indexOf("#");q!==-1&&(f=f.slice(0,q)),f+=(f.indexOf("?")===-1?"?":"&")+D}return f}function V(f,w){return S(f,new rt.classes.URLSearchParams,Object.assign({visitor:function(L,R,F,D){return rt.isNode&&Q.isBuffer(L)?(this.append(R,L.toString("base64")),!1):D.defaultVisitor.apply(this,arguments)}},w))}function I(f){return Q.matchAll(/\w+|\[(\w*)]/g,f).map(function(w){return w[0]==="[]"?"":w[1]||w[0]})}function m(f){var w={},L=Object.keys(f),R=void 0,F=L.length,D=void 0;for(R=0;R<F;R++)D=L[R],w[D]=f[D];return w}function _(f){function w(R,F,D,q){var re=R[q++],he=Number.isFinite(+re),J=q>=R.length;return re=!re&&Q.isArray(D)?D.length:re,J?(Q.hasOwnProp(D,re)?D[re]=[D[re],F]:D[re]=F,!he):(D[re]&&Q.isObject(D[re])||(D[re]=[]),w(R,F,D[re],q)&&Q.isArray(D[re])&&(D[re]=m(D[re])),!he)}if(Q.isFormData(f)&&Q.isFunction(f.entries)){var L={};return Q.forEachEntry(f,function(R,F){w(I(R),F,L,0)}),L}return null}function b(f,w,L){if(Q.isString(f))try{return(w||JSON.parse)(f),Q.trim(f)}catch(R){if(R.name!=="SyntaxError")throw R}return(L||JSON.stringify)(f)}function E(f){return f&&String(f).trim().toLowerCase()}function P(f){return f===!1||f==null?f:Q.isArray(f)?f.map(P):String(f)}function N(f){for(var w=Object.create(null),L=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,R=void 0;R=L.exec(f);)w[R[1]]=R[2];return w}function j(f,w,L,R,F){return Q.isFunction(R)?R.call(this,w,L):(F&&(w=L),Q.isString(w)?Q.isString(R)?w.indexOf(R)!==-1:Q.isRegExp(R)?R.test(w):void 0:void 0)}function G(f){return f.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(w,L,R){return L.toUpperCase()+R})}function ue(f,w){var L=Q.toCamelCase(" "+w);["get","set","has"].forEach(function(R){Object.defineProperty(f,R+L,{value:function(F,D,q){return this[R].call(this,w,F,D,q)},configurable:!0})})}function le(f,w){var L=this||vt,R=w||L,F=at.from(R.headers),D=R.data;return Q.forEach(f,function(q){D=q.call(L,D,F.normalize(),w?w.status:void 0)}),F.normalize(),D}function Re(f){return!(!f||!f.__CANCEL__)}function ve(f,w,L){p.call(this,f??"canceled",p.ERR_CANCELED,w,L),this.name="CanceledError"}function A(f,w,L){var R=L.config.validateStatus;L.status&&R&&!R(L.status)?w(new p("Request failed with status code "+L.status,[p.ERR_BAD_REQUEST,p.ERR_BAD_RESPONSE][Math.floor(L.status/100)-4],L.config,L.request,L)):f(L)}function O(f){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(f)}function z(f,w){return w?f.replace(/\/+$/,"")+"/"+w.replace(/^\/+/,""):f}function H(f,w){return f&&!O(w)?z(f,w):w}function x(f){var w=/^([-+\w]{1,25})(:?\/\/|:)/.exec(f);return w&&w[1]||""}function ee(f,w){f=f||10;var L=new Array(f),R=new Array(f),F=0,D=0,q=void 0;return w=w!==void 0?w:1e3,function(re){var he=Date.now(),J=R[D];q||(q=he),L[F]=re,R[F]=he;for(var de=D,Se=0;de!==F;)Se+=L[de++],de%=f;if(F=(F+1)%f,F===D&&(D=(D+1)%f),!(he-q<w)){var Oe=J&&he-J;return Oe?Math.round(1e3*Se/Oe):void 0}}}function ne(f,w){var L=0,R=ee(50,250);return function(F){var D=F.loaded,q=F.lengthComputable?F.total:void 0,re=D-L,he=R(re),J=D<=q;L=D;var de={loaded:D,total:q,progress:q?D/q:void 0,bytes:re,rate:he||void 0,estimated:he&&q&&J?(q-D)/he:void 0,event:F};de[w?"download":"upload"]=!0,f(de)}}function ge(f){if(f.cancelToken&&f.cancelToken.throwIfRequested(),f.signal&&f.signal.aborted)throw new ve(null,f)}function Ce(f){return ge(f),f.headers=at.from(f.headers),f.data=le.call(f,f.transformRequest),["post","put","patch"].indexOf(f.method)!==-1&&f.headers.setContentType("application/x-www-form-urlencoded",!1),Xt.getAdapter(f.adapter||vt.adapter)(f).then(function(w){return ge(f),w.data=le.call(f,f.transformResponse,w),w.headers=at.from(w.headers),w},function(w){return Re(w)||(ge(f),w&&w.response&&(w.response.data=le.call(f,f.transformResponse,w.response),w.response.headers=at.from(w.response.headers))),Promise.reject(w)})}function Te(f,w){function L(J,de,Se){return Q.isPlainObject(J)&&Q.isPlainObject(de)?Q.merge.call({caseless:Se},J,de):Q.isPlainObject(de)?Q.merge({},de):Q.isArray(de)?de.slice():de}function R(J,de,Se){return Q.isUndefined(de)?Q.isUndefined(J)?void 0:L(void 0,J,Se):L(J,de,Se)}function F(J,de){if(!Q.isUndefined(de))return L(void 0,de)}function D(J,de){return Q.isUndefined(de)?Q.isUndefined(J)?void 0:L(void 0,J):L(void 0,de)}function q(J,de,Se){return Se in w?L(J,de):Se in f?L(void 0,J):void 0}w=w||{};var re={},he={url:F,method:F,data:F,baseURL:D,transformRequest:D,transformResponse:D,paramsSerializer:D,timeout:D,timeoutMessage:D,withCredentials:D,adapter:D,responseType:D,xsrfCookieName:D,xsrfHeaderName:D,onUploadProgress:D,onDownloadProgress:D,decompress:D,maxContentLength:D,maxBodyLength:D,beforeRedirect:D,transport:D,httpAgent:D,httpsAgent:D,cancelToken:D,socketPath:D,responseEncoding:D,validateStatus:q,headers:function(J,de){return R(It(J),It(de),!0)}};return Q.forEach(Object.keys(Object.assign({},f,w)),function(J){var de=he[J]||R,Se=de(f[J],w[J],J);Q.isUndefined(Se)&&de!==q||(re[J]=Se)}),re}function He(f,w,L){if((f===void 0?"undefined":_typeof(f))!=="object")throw new p("options must be an object",p.ERR_BAD_OPTION_VALUE);for(var R=Object.keys(f),F=R.length;F-- >0;){var D=R[F],q=w[D];if(q){var re=f[D],he=re===void 0||q(re,D,f);if(he!==!0)throw new p("option "+D+" must be "+he,p.ERR_BAD_OPTION_VALUE)}else if(L!==!0)throw new p("Unknown option "+D,p.ERR_BAD_OPTION)}}function Ke(f){return function(w){return f.apply(null,w)}}function Ne(f){return Q.isObject(f)&&f.isAxiosError===!0}function Ye(f){var w=new mt(f),L=r(mt.prototype.request,w);return Q.extend(L,mt.prototype,w,{allOwnKeys:!0}),Q.extend(L,w,null,{allOwnKeys:!0}),L.create=function(R){return Ye(Te(f,R))},L}var $e=Object.prototype.toString,Ie=Object.getPrototypeOf,Be=(function(f){return function(w){var L=$e.call(w);return f[L]||(f[L]=L.slice(8,-1).toLowerCase())}})(Object.create(null)),K=function(f){return f=f.toLowerCase(),function(w){return Be(w)===f}},Y=function(f){return function(w){return(w===void 0?"undefined":_typeof(w))===f}},Z=Array.isArray,se=Y("undefined"),ie=K("ArrayBuffer"),fe=Y("string"),pe=Y("function"),Ae=Y("number"),Le=function(f){return f!==null&&(f===void 0?"undefined":_typeof(f))==="object"},Fe=function(f){return f===!0||f===!1},xe=function(f){if(Be(f)!=="object")return!1;var w=Ie(f);return!(w!==null&&w!==Object.prototype&&Object.getPrototypeOf(w)!==null||Symbol.toStringTag in f||Symbol.iterator in f)},X=K("Date"),W=K("File"),te=K("Blob"),ce=K("FileList"),oe=function(f){return Le(f)&&pe(f.pipe)},_e=function(f){var w=void 0;return f&&(typeof FormData=="function"&&f instanceof FormData||pe(f.append)&&((w=Be(f))==="formdata"||w==="object"&&pe(f.toString)&&f.toString()==="[object FormData]"))},we=K("URLSearchParams"),ae=function(f){return f.trim?f.trim():f.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},ke=(function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:e.g})(),Ve=function(f){return!se(f)&&f!==ke},Pe=function(f,w,L){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},F=R.allOwnKeys;return u(w,function(D,q){L&&pe(D)?f[q]=r(D,L):f[q]=D},{allOwnKeys:F}),f},De=function(f){return f.charCodeAt(0)===65279&&(f=f.slice(1)),f},Xe=function(f,w,L,R){f.prototype=Object.create(w.prototype,R),f.prototype.constructor=f,Object.defineProperty(f,"super",{value:w.prototype}),L&&Object.assign(f.prototype,L)},it=function(f,w,L,R){var F=void 0,D=void 0,q=void 0,re={};if(w=w||{},f==null)return w;do{for(F=Object.getOwnPropertyNames(f),D=F.length;D-- >0;)q=F[D],R&&!R(q,f,w)||re[q]||(w[q]=f[q],re[q]=!0);f=L!==!1&&Ie(f)}while(f&&(!L||L(f,w))&&f!==Object.prototype);return w},Qe=function(f,w,L){f=String(f),(L===void 0||L>f.length)&&(L=f.length),L-=w.length;var R=f.indexOf(w,L);return R!==-1&&R===L},Ge=function(f){if(!f)return null;if(Z(f))return f;var w=f.length;if(!Ae(w))return null;for(var L=new Array(w);w-- >0;)L[w]=f[w];return L},We=(function(f){return function(w){return f&&w instanceof f}})(typeof Uint8Array<"u"&&Ie(Uint8Array)),Me=function(f,w){for(var L=f&&f[Symbol.iterator],R=L.call(f),F=void 0;(F=R.next())&&!F.done;){var D=F.value;w.call(f,D[0],D[1])}},Ee=function(f,w){for(var L=void 0,R=[];(L=f.exec(w))!==null;)R.push(L);return R},nt=K("HTMLFormElement"),et=function(f){return f.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(w,L,R){return L.toUpperCase()+R})},Ze=(function(f){var w=f.hasOwnProperty;return function(L,R){return w.call(L,R)}})(Object.prototype),ut=K("RegExp"),tt=function(f,w){var L=Object.getOwnPropertyDescriptors(f),R={};u(L,function(F,D){w(F,D,f)!==!1&&(R[D]=F)}),Object.defineProperties(f,R)},ot=function(f){tt(f,function(w,L){if(pe(f)&&["arguments","caller","callee"].indexOf(L)!==-1)return!1;var R=f[L];if(pe(R)){if(w.enumerable=!1,"writable"in w)return void(w.writable=!1);w.set||(w.set=function(){throw Error("Can not rewrite read-only method '"+L+"'")})}})},me=function(f,w){var L={},R=function(F){F.forEach(function(D){L[D]=!0})};return R(Z(f)?f:String(f).split(w)),L},ct=function(){},ht=function(f,w){return f=+f,Number.isFinite(f)?f:w},st="abcdefghijklmnopqrstuvwxyz",pt={DIGIT:"0123456789",ALPHA:st,ALPHA_DIGIT:st+st.toUpperCase()+"0123456789"},Pt=function(){for(var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:16,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:pt.ALPHA_DIGIT,L="",R=w.length;f--;)L+=w[Math.random()*R|0];return L},Dt=function(f){var w=new Array(10);return(function L(R,F){if(Le(R)){if(w.indexOf(R)>=0)return;if(!("toJSON"in R)){w[F]=R;var D=Z(R)?[]:{};return u(R,function(q,re){var he=L(q,F+1);!se(he)&&(D[re]=he)}),w[F]=void 0,D}}return R})(f,0)},Ot=K("AsyncFunction"),jt=function(f){return f&&(Le(f)||pe(f))&&pe(f.then)&&pe(f.catch)},Q={isArray:Z,isArrayBuffer:ie,isBuffer:s,isFormData:_e,isArrayBufferView:a,isString:fe,isNumber:Ae,isBoolean:Fe,isObject:Le,isPlainObject:xe,isUndefined:se,isDate:X,isFile:W,isBlob:te,isRegExp:ut,isFunction:pe,isStream:oe,isURLSearchParams:we,isTypedArray:We,isFileList:ce,forEach:u,merge:c,extend:Pe,trim:ae,stripBOM:De,inherits:Xe,toFlatObject:it,kindOf:Be,kindOfTest:K,endsWith:Qe,toArray:Ge,forEachEntry:Me,matchAll:Ee,isHTMLForm:nt,hasOwnProperty:Ze,hasOwnProp:Ze,reduceDescriptors:tt,freezeMethods:ot,toObjectSet:me,toCamelCase:et,noop:ct,toFiniteNumber:ht,findKey:l,global:ke,isContextDefined:Ve,ALPHABET:pt,generateString:Pt,isSpecCompliantForm:h,toJSONObject:Dt,isAsyncFn:Ot,isThenable:jt};Q.inherits(p,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Ct=p.prototype,Tt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(f){Tt[f]={value:f}}),Object.defineProperties(p,Tt),Object.defineProperty(Ct,"isAxiosError",{value:!0}),p.from=function(f,w,L,R,F,D){var q=Object.create(Ct);return Q.toFlatObject(f,q,function(re){return re!==Error.prototype},function(re){return re!=="isAxiosError"}),p.call(q,f.message,w,L,R,F),q.cause=f,q.name=f.name,D&&Object.assign(q,D),q};var Mt=Q.toFlatObject(Q,{},null,function(f){return/^is[A-Z]/.test(f)}),Et=k.prototype;Et.append=function(f,w){this._pairs.push([f,w])},Et.toString=function(f){var w=f?function(L){return f.call(this,L,C)}:C;return this._pairs.map(function(L){return w(L[0])+"="+w(L[1])},"").join("&")};var xt=(function(){function f(){classCallCheck(this,f),this.handlers=[]}return f.prototype.use=function(w,L,R){return this.handlers.push({fulfilled:w,rejected:L,synchronous:!!R&&R.synchronous,runWhen:R?R.runWhen:null}),this.handlers.length-1},f.prototype.eject=function(w){this.handlers[w]&&(this.handlers[w]=null)},f.prototype.clear=function(){this.handlers&&(this.handlers=[])},f.prototype.forEach=function(w){Q.forEach(this.handlers,function(L){L!==null&&w(L)})},f})(),wt=xt,Lt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nt=typeof URLSearchParams<"u"?URLSearchParams:k,Bt=typeof FormData<"u"?FormData:null,Ft=typeof Blob<"u"?Blob:null,Ut=(function(){var f=void 0;return(typeof navigator>"u"||(f=navigator.product)!=="ReactNative"&&f!=="NativeScript"&&f!=="NS")&&typeof window<"u"&&typeof document<"u"})(),Ht=(function(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function"})(),rt={classes:{URLSearchParams:Nt,FormData:Bt,Blob:Ft},isStandardBrowserEnv:Ut,isStandardBrowserWebWorkerEnv:Ht,protocols:["http","https","file","blob","url","data"]},Vt={"Content-Type":void 0},dt={transitional:Lt,adapter:["xhr","http"],transformRequest:[function(f,w){var L=w.getContentType()||"",R=L.indexOf("application/json")>-1,F=Q.isObject(f);if(F&&Q.isHTMLForm(f)&&(f=new FormData(f)),Q.isFormData(f))return R&&R?JSON.stringify(_(f)):f;if(Q.isArrayBuffer(f)||Q.isBuffer(f)||Q.isStream(f)||Q.isFile(f)||Q.isBlob(f))return f;if(Q.isArrayBufferView(f))return f.buffer;if(Q.isURLSearchParams(f))return w.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),f.toString();var D=void 0;if(F){if(L.indexOf("application/x-www-form-urlencoded")>-1)return V(f,this.formSerializer).toString();if((D=Q.isFileList(f))||L.indexOf("multipart/form-data")>-1){var q=this.env&&this.env.FormData;return S(D?{"files[]":f}:f,q&&new q,this.formSerializer)}}return F||R?(w.setContentType("application/json",!1),b(f)):f}],transformResponse:[function(f){var w=this.transitional||dt.transitional,L=w&&w.forcedJSONParsing,R=this.responseType==="json";if(f&&Q.isString(f)&&(L&&!this.responseType||R)){var F=w&&w.silentJSONParsing,D=!F&&R;try{return JSON.parse(f)}catch(q){if(D)throw q.name==="SyntaxError"?p.from(q,p.ERR_BAD_RESPONSE,this,null,this.response):q}}return f}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rt.classes.FormData,Blob:rt.classes.Blob},validateStatus:function(f){return f>=200&&f<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Q.forEach(["delete","get","head"],function(f){dt.headers[f]={}}),Q.forEach(["post","put","patch"],function(f){dt.headers[f]=Q.merge(Vt)});var vt=dt,$t=Q.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zt=function(f){var w={},L=void 0,R=void 0,F=void 0;return f&&f.split(`
|
||
`).forEach(function(D){F=D.indexOf(":"),L=D.substring(0,F).trim().toLowerCase(),R=D.substring(F+1).trim(),!L||w[L]&&$t[L]||(L==="set-cookie"?w[L]?w[L].push(R):w[L]=[R]:w[L]=w[L]?w[L]+", "+R:R)}),w},kt=Symbol("internals"),Qt=function(f){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(f.trim())},ft=(function(){function f(w){classCallCheck(this,f),w&&this.set(w)}return f.prototype.set=function(w,L,R){function F(re,he,J){var de=E(he);if(!de)throw new Error("header name must be a non-empty string");var Se=Q.findKey(D,de);(!Se||D[Se]===void 0||J===!0||J===void 0&&D[Se]!==!1)&&(D[Se||he]=P(re))}var D=this,q=function(re,he){return Q.forEach(re,function(J,de){return F(J,de,he)})};return Q.isPlainObject(w)||w instanceof this.constructor?q(w,L):Q.isString(w)&&(w=w.trim())&&!Qt(w)?q(zt(w),L):w!=null&&F(L,w,R),this},f.prototype.get=function(w,L){if(w=E(w)){var R=Q.findKey(this,w);if(R){var F=this[R];if(!L)return F;if(L===!0)return N(F);if(Q.isFunction(L))return L.call(this,F,R);if(Q.isRegExp(L))return L.exec(F);throw new TypeError("parser must be boolean|regexp|function")}}},f.prototype.has=function(w,L){if(w=E(w)){var R=Q.findKey(this,w);return!(!R||this[R]===void 0||L&&!j(this,this[R],R,L))}return!1},f.prototype.delete=function(w,L){function R(q){if(q=E(q)){var re=Q.findKey(F,q);!re||L&&!j(F,F[re],re,L)||(delete F[re],D=!0)}}var F=this,D=!1;return Q.isArray(w)?w.forEach(R):R(w),D},f.prototype.clear=function(w){for(var L=Object.keys(this),R=L.length,F=!1;R--;){var D=L[R];w&&!j(this,this[D],D,w,!0)||(delete this[D],F=!0)}return F},f.prototype.normalize=function(w){var L=this,R={};return Q.forEach(this,function(F,D){var q=Q.findKey(R,D);if(q)return L[q]=P(F),void delete L[D];var re=w?G(D):String(D).trim();re!==D&&delete L[D],L[re]=P(F),R[re]=!0}),this},f.prototype.concat=function(){for(var w,L=arguments.length,R=Array(L),F=0;F<L;F++)R[F]=arguments[F];return(w=this.constructor).concat.apply(w,[this].concat(R))},f.prototype.toJSON=function(w){var L=Object.create(null);return Q.forEach(this,function(R,F){R!=null&&R!==!1&&(L[F]=w&&Q.isArray(R)?R.join(", "):R)}),L},f.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()},f.prototype.toString=function(){return Object.entries(this.toJSON()).map(function(w){return w[0]+": "+w[1]}).join(`
|
||
`)},f.from=function(w){return w instanceof this?w:new this(w)},f.concat=function(w){for(var L=new this(w),R=arguments.length,F=Array(R>1?R-1:0),D=1;D<R;D++)F[D-1]=arguments[D];return F.forEach(function(q){return L.set(q)}),L},f.accessor=function(w){function L(q){var re=E(q);F[re]||(ue(D,q),F[re]=!0)}var R=this[kt]=this[kt]={accessors:{}},F=R.accessors,D=this.prototype;return Q.isArray(w)?w.forEach(L):L(w),this},createClass(f,[{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}]),f})();ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.freezeMethods(ft.prototype),Q.freezeMethods(ft);var at=ft;Q.inherits(ve,p,{__CANCEL__:!0});var Gt=rt.isStandardBrowserEnv?(function(){return{write:function(f,w,L,R,F,D){var q=[];q.push(f+"="+encodeURIComponent(w)),Q.isNumber(L)&&q.push("expires="+new Date(L).toGMTString()),Q.isString(R)&&q.push("path="+R),Q.isString(F)&&q.push("domain="+F),D===!0&&q.push("secure"),document.cookie=q.join("; ")},read:function(f){var w=document.cookie.match(new RegExp("(^|;\\s*)("+f+")=([^;]*)"));return w?decodeURIComponent(w[3]):null},remove:function(f){this.write(f,"",Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})(),Kt=rt.isStandardBrowserEnv?(function(){function f(F){var D=F;return w&&(L.setAttribute("href",D),D=L.href),L.setAttribute("href",D),{href:L.href,protocol:L.protocol?L.protocol.replace(/:$/,""):"",host:L.host,search:L.search?L.search.replace(/^\?/,""):"",hash:L.hash?L.hash.replace(/^#/,""):"",hostname:L.hostname,port:L.port,pathname:L.pathname.charAt(0)==="/"?L.pathname:"/"+L.pathname}}var w=/(msie|trident)/i.test(navigator.userAgent),L=document.createElement("a"),R=void 0;return R=f(window.location.href),function(F){var D=Q.isString(F)?f(F):F;return D.protocol===R.protocol&&D.host===R.host}})():(function(){return function(){return!0}})(),Yt=typeof XMLHttpRequest<"u",qt=Yt&&function(f){return new Promise(function(w,L){function R(){f.cancelToken&&f.cancelToken.unsubscribe(he),f.signal&&f.signal.removeEventListener("abort",he)}function F(){if(J){var be=at.from("getAllResponseHeaders"in J&&J.getAllResponseHeaders()),ze=re&&re!=="text"&&re!=="json"?J.response:J.responseText,qe={data:ze,status:J.status,statusText:J.statusText,headers:be,config:f,request:J};A(function(je){w(je),R()},function(je){L(je),R()},qe),J=null}}var D=f.data,q=at.from(f.headers).normalize(),re=f.responseType,he=void 0;Q.isFormData(D)&&(rt.isStandardBrowserEnv||rt.isStandardBrowserWebWorkerEnv?q.setContentType(!1):q.setContentType("multipart/form-data;",!1));var J=new XMLHttpRequest;if(f.auth){var de=f.auth.username||"",Se=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";q.set("Authorization","Basic "+btoa(de+":"+Se))}var Oe=H(f.baseURL,f.url);if(J.open(f.method.toUpperCase(),M(Oe,f.params,f.paramsSerializer),!0),J.timeout=f.timeout,"onloadend"in J?J.onloadend=F:J.onreadystatechange=function(){J&&J.readyState===4&&(J.status!==0||J.responseURL&&J.responseURL.indexOf("file:")===0)&&setTimeout(F)},J.onabort=function(){J&&(L(new p("Request aborted",p.ECONNABORTED,f,J)),J=null)},J.onerror=function(){L(new p("Network Error",p.ERR_NETWORK,f,J)),J=null},J.ontimeout=function(){var be=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",ze=f.transitional||Lt;f.timeoutErrorMessage&&(be=f.timeoutErrorMessage),L(new p(be,ze.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,f,J)),J=null},rt.isStandardBrowserEnv){var Je=(f.withCredentials||Kt(Oe))&&f.xsrfCookieName&&Gt.read(f.xsrfCookieName);Je&&q.set(f.xsrfHeaderName,Je)}D===void 0&&q.setContentType(null),"setRequestHeader"in J&&Q.forEach(q.toJSON(),function(be,ze){J.setRequestHeader(ze,be)}),Q.isUndefined(f.withCredentials)||(J.withCredentials=!!f.withCredentials),re&&re!=="json"&&(J.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&J.addEventListener("progress",ne(f.onDownloadProgress,!0)),typeof f.onUploadProgress=="function"&&J.upload&&J.upload.addEventListener("progress",ne(f.onUploadProgress)),(f.cancelToken||f.signal)&&(he=function(be){J&&(L(!be||be.type?new ve(null,f,J):be),J.abort(),J=null)},f.cancelToken&&f.cancelToken.subscribe(he),f.signal&&(f.signal.aborted?he():f.signal.addEventListener("abort",he)));var ye=x(Oe);if(ye&&rt.protocols.indexOf(ye)===-1)return void L(new p("Unsupported protocol "+ye+":",p.ERR_BAD_REQUEST,f));J.send(D||null)})},gt={http:null,xhr:qt};Q.forEach(gt,function(f,w){if(f){try{Object.defineProperty(f,"name",{value:w})}catch{}Object.defineProperty(f,"adapterName",{value:w})}});var Xt={getAdapter:function(f){f=Q.isArray(f)?f:[f];for(var w=f,L=w.length,R=void 0,F=void 0,D=0;D<L&&(R=f[D],!(F=Q.isString(R)?gt[R.toLowerCase()]:R));D++);if(!F)throw F===!1?new p("Adapter "+R+" is not supported by the environment","ERR_NOT_SUPPORT"):new Error(Q.hasOwnProp(gt,R)?"Adapter '"+R+"' is not available in the build":"Unknown adapter '"+R+"'");if(!Q.isFunction(F))throw new TypeError("adapter is not a function");return F},adapters:gt},It=function(f){return f instanceof at?f.toJSON():f},At="1.4.0",_t={};["object","boolean","number","function","string","symbol"].forEach(function(f,w){_t[f]=function(L){return(L===void 0?"undefined":_typeof(L))===f||"a"+(w<1?"n ":" ")+f}});var Rt={};_t.transitional=function(f,w,L){function R(F,D){return"[Axios v"+At+"] Transitional option '"+F+"'"+D+(L?". "+L:"")}return function(F,D,q){if(f===!1)throw new p(R(D," has been removed"+(w?" in "+w:"")),p.ERR_DEPRECATED);return w&&!Rt[D]&&(Rt[D]=!0),!f||f(F,D,q)}};var bt={assertOptions:He,validators:_t},lt=bt.validators,yt=(function(){function f(w){classCallCheck(this,f),this.defaults=w,this.interceptors={request:new wt,response:new wt}}return f.prototype.request=function(w,L){typeof w=="string"?(L=L||{},L.url=w):L=w||{},L=Te(this.defaults,L);var R=L,F=R.transitional,D=R.paramsSerializer,q=R.headers;F!==void 0&&bt.assertOptions(F,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),D!=null&&(Q.isFunction(D)?L.paramsSerializer={serialize:D}:bt.assertOptions(D,{encode:lt.function,serialize:lt.function},!0)),L.method=(L.method||this.defaults.method||"get").toLowerCase();var re=void 0;re=q&&Q.merge(q.common,q[L.method]),re&&Q.forEach(["delete","get","head","post","put","patch","common"],function(je){delete q[je]}),L.headers=at.concat(re,q);var he=[],J=!0;this.interceptors.request.forEach(function(je){typeof je.runWhen=="function"&&je.runWhen(L)===!1||(J=J&&je.synchronous,he.unshift(je.fulfilled,je.rejected))});var de=[];this.interceptors.response.forEach(function(je){de.push(je.fulfilled,je.rejected)});var Se=void 0,Oe=0,Je=void 0;if(!J){var ye=[Ce.bind(this),void 0];for(ye.unshift.apply(ye,he),ye.push.apply(ye,de),Je=ye.length,Se=Promise.resolve(L);Oe<Je;)Se=Se.then(ye[Oe++],ye[Oe++]);return Se}Je=he.length;var be=L;for(Oe=0;Oe<Je;){var ze=he[Oe++],qe=he[Oe++];try{be=ze(be)}catch(je){qe.call(this,je);break}}try{Se=Ce.call(this,be)}catch(je){return Promise.reject(je)}for(Oe=0,Je=de.length;Oe<Je;)Se=Se.then(de[Oe++],de[Oe++]);return Se},f.prototype.getUri=function(w){return w=Te(this.defaults,w),M(H(w.baseURL,w.url),w.params,w.paramsSerializer)},f})();Q.forEach(["delete","get","head","options"],function(f){yt.prototype[f]=function(w,L){return this.request(Te(L||{},{method:f,url:w,data:(L||{}).data}))}}),Q.forEach(["post","put","patch"],function(f){function w(L){return function(R,F,D){return this.request(Te(D||{},{method:f,headers:L?{"Content-Type":"multipart/form-data"}:{},url:R,data:F}))}}yt.prototype[f]=w(),yt.prototype[f+"Form"]=w(!0)});var mt=yt,Wt=(function(){function f(w){if(classCallCheck(this,f),typeof w!="function")throw new TypeError("executor must be a function.");var L=void 0;this.promise=new Promise(function(F){L=F});var R=this;this.promise.then(function(F){if(R._listeners){for(var D=R._listeners.length;D-- >0;)R._listeners[D](F);R._listeners=null}}),this.promise.then=function(F){var D=void 0,q=new Promise(function(re){R.subscribe(re),D=re}).then(F);return q.cancel=function(){R.unsubscribe(D)},q},w(function(F,D,q){R.reason||(R.reason=new ve(F,D,q),L(R.reason))})}return f.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},f.prototype.subscribe=function(w){if(this.reason)return void w(this.reason);this._listeners?this._listeners.push(w):this._listeners=[w]},f.prototype.unsubscribe=function(w){if(this._listeners){var L=this._listeners.indexOf(w);L!==-1&&this._listeners.splice(L,1)}},f.source=function(){var w=void 0;return{token:new f(function(L){w=L}),cancel:w}},f})(),Zt=Wt,St={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(St).forEach(function(f){var w=f[0],L=f[1];St[L]=w});var Jt=St,Ue=Ye(vt);Ue.Axios=mt,Ue.CanceledError=ve,Ue.CancelToken=Zt,Ue.isCancel=Re,Ue.VERSION=At,Ue.toFormData=S,Ue.AxiosError=p,Ue.Cancel=Ue.CanceledError,Ue.all=function(f){return Promise.all(f)},Ue.spread=Ke,Ue.isAxiosError=Ne,Ue.mergeConfig=Te,Ue.AxiosHeaders=at,Ue.formToJSON=function(f){return _(Q.isHTMLForm(f)?new FormData(f):f)},Ue.HttpStatusCode=Jt,Ue.default=Ue,n.exports=Ue}},__webpack_module_cache__={};(function(){__webpack_require__.d=function(n,t){for(var e in t)__webpack_require__.o(t,e)&&!__webpack_require__.o(n,e)&&Object.defineProperty(n,e,{enumerable:!0,get:t[e]})}})(),(function(){__webpack_require__.g=(function(){if((typeof globalThis>"u"?"undefined":_typeof(globalThis))==="object")return globalThis;try{return this||new Function("return this")()}catch{if((typeof window>"u"?"undefined":_typeof(window))==="object")return window}})()})(),(function(){__webpack_require__.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)}})(),(function(){__webpack_require__.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})}})();var __webpack_exports__={};return(function(){function n(_){return _&&_.__esModule?_:{default:_}}function t(_){"@babel/helpers - typeof";return(t=typeof Symbol=="function"&&_typeof(Symbol.iterator)=="symbol"?function(b){return b===void 0?"undefined":_typeof(b)}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":b===void 0?"undefined":_typeof(b)})(_)}function e(){function _(K,Y,Z){return Object.defineProperty(K,Y,{value:Z,enumerable:!0,configurable:!0,writable:!0}),K[Y]}function b(K,Y,Z,se){var ie=Y&&Y.prototype instanceof P?Y:P,fe=Object.create(ie.prototype),pe=new O(se||[]);return ge(fe,"_invoke",{value:le(K,Z,pe)}),fe}function E(K,Y,Z){try{return{type:"normal",arg:K.call(Y,Z)}}catch(se){return{type:"throw",arg:se}}}function P(){}function N(){}function j(){}function G(K){["next","throw","return"].forEach(function(Y){_(K,Y,function(Z){return this._invoke(Y,Z)})})}function ue(K,Y){function Z(ie,fe,pe,Ae){var Le=E(K[ie],K,fe);if(Le.type!=="throw"){var Fe=Le.arg,xe=Fe.value;return xe&&t(xe)=="object"&&ne.call(xe,"__await")?Y.resolve(xe.__await).then(function(X){Z("next",X,pe,Ae)},function(X){Z("throw",X,pe,Ae)}):Y.resolve(xe).then(function(X){Fe.value=X,pe(Fe)},function(X){return Z("throw",X,pe,Ae)})}Ae(Le.arg)}var se;ge(this,"_invoke",{value:function(ie,fe){function pe(){return new Y(function(Ae,Le){Z(ie,fe,Ae,Le)})}return se=se?se.then(pe,pe):pe()}})}function le(K,Y,Z){var se="suspendedStart";return function(ie,fe){if(se==="executing")throw new Error("Generator is already running");if(se==="completed"){if(ie==="throw")throw fe;return H()}for(Z.method=ie,Z.arg=fe;;){var pe=Z.delegate;if(pe){var Ae=Re(pe,Z);if(Ae){if(Ae===Ne)continue;return Ae}}if(Z.method==="next")Z.sent=Z._sent=Z.arg;else if(Z.method==="throw"){if(se==="suspendedStart")throw se="completed",Z.arg;Z.dispatchException(Z.arg)}else Z.method==="return"&&Z.abrupt("return",Z.arg);se="executing";var Le=E(K,Y,Z);if(Le.type==="normal"){if(se=Z.done?"completed":"suspendedYield",Le.arg===Ne)continue;return{value:Le.arg,done:Z.done}}Le.type==="throw"&&(se="completed",Z.method="throw",Z.arg=Le.arg)}}}function Re(K,Y){var Z=Y.method,se=K.iterator[Z];if(se===void 0)return Y.delegate=null,Z==="throw"&&K.iterator.return&&(Y.method="return",Y.arg=void 0,Re(K,Y),Y.method==="throw")||Z!=="return"&&(Y.method="throw",Y.arg=new TypeError("The iterator does not provide a '"+Z+"' method")),Ne;var ie=E(se,K.iterator,Y.arg);if(ie.type==="throw")return Y.method="throw",Y.arg=ie.arg,Y.delegate=null,Ne;var fe=ie.arg;return fe?fe.done?(Y[K.resultName]=fe.value,Y.next=K.nextLoc,Y.method!=="return"&&(Y.method="next",Y.arg=void 0),Y.delegate=null,Ne):fe:(Y.method="throw",Y.arg=new TypeError("iterator result is not an object"),Y.delegate=null,Ne)}function ve(K){var Y={tryLoc:K[0]};1 in K&&(Y.catchLoc=K[1]),2 in K&&(Y.finallyLoc=K[2],Y.afterLoc=K[3]),this.tryEntries.push(Y)}function A(K){var Y=K.completion||{};Y.type="normal",delete Y.arg,K.completion=Y}function O(K){this.tryEntries=[{tryLoc:"root"}],K.forEach(ve,this),this.reset(!0)}function z(K){if(K){var Y=K[Te];if(Y)return Y.call(K);if(typeof K.next=="function")return K;if(!isNaN(K.length)){var Z=-1,se=function ie(){for(;++Z<K.length;)if(ne.call(K,Z))return ie.value=K[Z],ie.done=!1,ie;return ie.value=void 0,ie.done=!0,ie};return se.next=se}}return{next:H}}function H(){return{value:void 0,done:!0}}e=function(){return x};var x={},ee=Object.prototype,ne=ee.hasOwnProperty,ge=Object.defineProperty||function(K,Y,Z){K[Y]=Z.value},Ce=typeof Symbol=="function"?Symbol:{},Te=Ce.iterator||"@@iterator",He=Ce.asyncIterator||"@@asyncIterator",Ke=Ce.toStringTag||"@@toStringTag";try{_({},"")}catch{_=function(Y,Z,se){return Y[Z]=se}}x.wrap=b;var Ne={},Ye={};_(Ye,Te,function(){return this});var $e=Object.getPrototypeOf,Ie=$e&&$e($e(z([])));Ie&&Ie!==ee&&ne.call(Ie,Te)&&(Ye=Ie);var Be=j.prototype=P.prototype=Object.create(Ye);return N.prototype=j,ge(Be,"constructor",{value:j,configurable:!0}),ge(j,"constructor",{value:N,configurable:!0}),N.displayName=_(j,Ke,"GeneratorFunction"),x.isGeneratorFunction=function(K){var Y=typeof K=="function"&&K.constructor;return!!Y&&(Y===N||(Y.displayName||Y.name)==="GeneratorFunction")},x.mark=function(K){return Object.setPrototypeOf?Object.setPrototypeOf(K,j):(K.__proto__=j,_(K,Ke,"GeneratorFunction")),K.prototype=Object.create(Be),K},x.awrap=function(K){return{__await:K}},G(ue.prototype),_(ue.prototype,He,function(){return this}),x.AsyncIterator=ue,x.async=function(K,Y,Z,se,ie){ie===void 0&&(ie=Promise);var fe=new ue(b(K,Y,Z,se),ie);return x.isGeneratorFunction(Y)?fe:fe.next().then(function(pe){return pe.done?pe.value:fe.next()})},G(Be),_(Be,Ke,"Generator"),_(Be,Te,function(){return this}),_(Be,"toString",function(){return"[object Generator]"}),x.keys=function(K){var Y=Object(K),Z=[];for(var se in Y)Z.push(se);return Z.reverse(),function ie(){for(;Z.length;){var fe=Z.pop();if(fe in Y)return ie.value=fe,ie.done=!1,ie}return ie.done=!0,ie}},x.values=z,O.prototype={constructor:O,reset:function(K){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!K)for(var Y in this)Y.charAt(0)==="t"&&ne.call(this,Y)&&!isNaN(+Y.slice(1))&&(this[Y]=void 0)},stop:function(){this.done=!0;var K=this.tryEntries[0].completion;if(K.type==="throw")throw K.arg;return this.rval},dispatchException:function(K){function Y(Le,Fe){return fe.type="throw",fe.arg=K,Z.next=Le,Fe&&(Z.method="next",Z.arg=void 0),!!Fe}if(this.done)throw K;for(var Z=this,se=this.tryEntries.length-1;se>=0;--se){var ie=this.tryEntries[se],fe=ie.completion;if(ie.tryLoc==="root")return Y("end");if(ie.tryLoc<=this.prev){var pe=ne.call(ie,"catchLoc"),Ae=ne.call(ie,"finallyLoc");if(pe&&Ae){if(this.prev<ie.catchLoc)return Y(ie.catchLoc,!0);if(this.prev<ie.finallyLoc)return Y(ie.finallyLoc)}else if(pe){if(this.prev<ie.catchLoc)return Y(ie.catchLoc,!0)}else{if(!Ae)throw new Error("try statement without catch or finally");if(this.prev<ie.finallyLoc)return Y(ie.finallyLoc)}}}},abrupt:function(K,Y){for(var Z=this.tryEntries.length-1;Z>=0;--Z){var se=this.tryEntries[Z];if(se.tryLoc<=this.prev&&ne.call(se,"finallyLoc")&&this.prev<se.finallyLoc){var ie=se;break}}ie&&(K==="break"||K==="continue")&&ie.tryLoc<=Y&&Y<=ie.finallyLoc&&(ie=null);var fe=ie?ie.completion:{};return fe.type=K,fe.arg=Y,ie?(this.method="next",this.next=ie.finallyLoc,Ne):this.complete(fe)},complete:function(K,Y){if(K.type==="throw")throw K.arg;return K.type==="break"||K.type==="continue"?this.next=K.arg:K.type==="return"?(this.rval=this.arg=K.arg,this.method="return",this.next="end"):K.type==="normal"&&Y&&(this.next=Y),Ne},finish:function(K){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var Z=this.tryEntries[Y];if(Z.finallyLoc===K)return this.complete(Z.completion,Z.afterLoc),A(Z),Ne}},catch:function(K){for(var Y=this.tryEntries.length-1;Y>=0;--Y){var Z=this.tryEntries[Y];if(Z.tryLoc===K){var se=Z.completion;if(se.type==="throw"){var ie=se.arg;A(Z)}return ie}}throw new Error("illegal catch attempt")},delegateYield:function(K,Y,Z){return this.delegate={iterator:z(K),resultName:Y,nextLoc:Z},this.method==="next"&&(this.arg=void 0),Ne}},x}function r(_,b,E,P,N,j,G){try{var ue=_[j](G),le=ue.value}catch(Re){return void E(Re)}ue.done?b(le):Promise.resolve(le).then(P,N)}function s(_){return function(){var b=this,E=arguments;return new Promise(function(P,N){function j(le){r(ue,P,N,j,G,"next",le)}function G(le){r(ue,P,N,j,G,"throw",le)}var ue=_.apply(b,E);j(void 0)})}}function a(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function u(_,b){for(var E=0;E<b.length;E++){var P=b[E];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(_,h(P.key),P)}}function l(_,b,E){return b&&u(_.prototype,b),E&&u(_,E),Object.defineProperty(_,"prototype",{writable:!1}),_}function c(_,b,E){return b=h(b),b in _?Object.defineProperty(_,b,{value:E,enumerable:!0,configurable:!0,writable:!0}):_[b]=E,_}function h(_){var b=p(_,"string");return t(b)==="symbol"?b:String(b)}function p(_,b){if(t(_)!=="object"||_===null)return _;var E=_[Symbol.toPrimitive];if(E!==void 0){var P=E.call(_,b);if(t(P)!=="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(_)}var d=__webpack_exports__,y=__webpack_require__("./node_modules/@tencent/js-armor-loader/dist/runtime.js");Object.defineProperty(d,"__esModule",{value:!0}),d.default=void 0;var g=n(__webpack_require__("./node_modules/jsencrypt/lib/index.js")),v=__webpack_require__("./utils.js"),S=(__webpack_require__("./utils/index.js"),n(__webpack_require__("./utils/aes.js"))),C=n(__webpack_require__("./node_modules/md5/md5.js")),k=n(__webpack_require__("./node_modules/axios/dist/browser/axios.cjs")),U=__webpack_require__("./utils/drm-checker.js"),M={VR:"https://tcsdk.com/player/tcplayer/release/v5.3.1/plugins/tcplayer-vr-plugin.1.0.0.js",SafeCheck:"https://tcsdk.com/player/tcplayer/release/v5.3.1/plugins/tcplayer-safe-check-plugin.1.0.0.js",Crypto:"https://tcsdk.com/player/tcplayer/release/v5.3.1/libs/tcpcrypto.1.0.0.js"},V=["license.vodplayvideo.net","license.vodglcdn.com","license.vodplayvideo.com","license.vod-common.com"],I=(function(){function _(){var b=this;a(this,_),c(this,"handleWatermarkElementAdd",function(E){return y.g(y.v(0,y.d(["PAQDAgMDNzo8AwMCIgAHDi5vLnAudC5pLm8ubi5zGg4uay5lLmUucBodQTUxN1YDFyIABw4uby5wLnQuaS5vLm4ucxoOLmMuby5uLnQuZS5uLnQaHTWEDAEHDi5hLmQuZC5HLmguby5zLnQuTS5hLnIuay5OLmUudxoiABYrARc3KxciAAcOLnAubC5hLnkuZS5yGg4uJBoOLi4udC5jLnAuLS5kLnkubi5hLm0uaS5jLi0udy5hLnQuZS5yLm0uYS5yLmsuLS5jLm8ubi50LmEuaS5uLmUucisBQTUMAAcOLnAubC5hLnkuZS5yGg4uJBoOLi4udC5jLnAuLS5kLnkubi5hLm0uaS5jLi0udy5hLnQuZS5yLm0uYS5yLmsuLS5jLm8ubi50LmUubi50KwFBNRc3LhciAAcOLmMuby5uLnQuYS5pLm4uZS5yLkUubC5lLm0uZS5uLnQaDi5hLnAucC5lLm4uZC5DLmguaS5sLmQaIgAHDi5tLmEuci5rLkMuby5uLnQuZS5uLnQuRS5sLmUubS5lLm4udBodKwEXNyIXIgAHDi5wLmwuYS55LmUuchoOLmUubBorADU3ERciAAcOLnAubC5hLnkuZS5yGg4uZS5sGisADi5hLnAucC5lLm4uZC5DLmguaS5sLmQgIgAHDi5jLm8ubi50LmEuaS5uLmUuci5FLmwuZS5tLmUubi50Gh0rARdFEjIDIQkAADsXF0US",[7,549,130,547,223,425,310,315,313,547,423,547,452,456,454,546]]),[function(){return E===void 0?void 0:E},function(){return b===void 0?void 0:b}])).call(this)}),c(this,"addGhostMarkNew",function(E){var P=1e3*(E.isFirstShow?E.ghostCycle.firstShow:E.ghostCycle.ghostOff);setTimeout(function(){E.player&&E.player.el()&&E.player.el().appendChild(E.containerElement),E.startAnimation(),E.isFirstShow=!1,E.ghostMarkShouldExists=!0,E.watermarkCheckTimer=setInterval(function(){if(!E.ghostMarkShouldExists)return!1;document.getElementsByClassName("tcp-dynamic-watermark-container")[0]},1e3)},P),setTimeout(function(){E.ghostMarkShouldExists=!1,b.clearGhostMark(E)},P+1e3*E.ghostCycle.ghostOn)}),c(this,"clearGhostMark",function(E,P){E.ghostMarkShouldExists=!1,E.stopAnimation(),clearInterval(E.watermarkCheckTimer),E.player&&E.player.el&&E.player.el()&&E.player.el().contains(E.containerElement)&&(E.containerElement.className="tcp-dynamic-watermark-container",E.player.el().removeChild(E.containerElement))}),this.watermarkExists=!1}return l(_,[{key:"loadPlugin",value:function(b){return y.g(y.v(0,y.d(["PAQDAgMDNx48CgMCAwMDBAMFAwYDBwMIAwkyAyIABw4udS5yLmwaHTsXFzIEIgAHDi5wLmwudS5nLmkubi5OLmEubS5lGh07FxcyBSIABw4uYy5vLm4udC5lLngudBodOxcXMgYiAAcOLnYuaS5kLmUuby5qLnMaHTsXFzMDQTWFN4k6FzMEQTWPFze/MxciAQcOLncuYS5yLm4aDi5uLm8uIC5wLmwudS5nLmkubi4gLmkubi5mLm8rARccEjIFMwQ5HTXLFzfOKxccEjIHNzI8BwMCAwMyBA4uci5lLmcuaS5zLnQuZS5yLlAubC51LmcuaS5uOTMFIgIHDi5ULmMucC5sLmEueS5lLnIOLmMuby5uLmMuYS50IDMFDi5QLmwudS5nLmkubisCGh0rAhcyAzIGDi5lLmwuXzkOLmcuZS50LkUubC5lLm0uZS5uLnQucy5CLnkuVC5hLmcuTi5hLm0uZRoOLnYuaS5kLmUubysBIgAgHTsXFzMDNTc3FzIDDi5zLnQueS5sLmU5Di52Lmkucy5pLmIuaS5sLmkudC55Gg4uaC5pLmQuZC5lLm49CgAXFzIGDi5vLm45Di5jLmEubi5wLmwuYS55NyE8BQMCMgMzBDkzBDIDDi5vLnAudC5pLm8ubi5zLl85Di5wLmwudS5nLmkubi5zGjMEGh0rAhdFEiECAAMGBAUrAhdFEiHTAwAEBgUEBgU7FxcyCDc6PAYDAjIDDi5yLmUuZy5pLnMudC5lLnIuUC5sLnUuZy5pLm45MwQiAgcOLlQuYy5wLmwuYS55LmUucg4uYy5vLm4uYy5hLnQgMwQOLlAubC51LmcuaS5uKwIaHSsCFzIFMwQ5MwQyBQ4uby5wLnQuaS5vLm4ucy5fOQ4ucC5sLnUuZy5pLm4ucxozBBodKwIXRRIhAwADBgQEBQU7FxcyCTc8PAYDAjMDDi5WLlIxNRczBDoAFzcbFzMFOgAXRRIhAwADBAQIBQc7FwwCBw4uVC5jLnAubC5hLnkuZS5yDi5jLm8ubi5jLmEudCAzBA4uUC5sLnUuZy5pLm4rAhodNRczA0E1NzMXMwQ1Fzc1FzIDIgMHMwQaHTsXFyIADAQHDi5sLm8uYS5kLlMuYy5yLmkucC50Gh0zAzchPAQDAjMDOgAXRRIhAQADCToCFzc3FzMJOgAXRRIyAyEJAAA7FxdFEg==",[7,913,209,538,384,388,386,442,467,525,526,469,554,702,703,556,718,751,733,743,741,749,752,720,817,905,823,827,825,830,831,836,834,849,880,893,894,882,903,911]]),[function(){return b===void 0?void 0:b},function(){return typeof console>"u"?void 0:console},function(){return typeof window>"u"?void 0:window},function(){return M===void 0?void 0:M},function(){return v===void 0?void 0:v}])).call(this)}},{key:"initPlugins",value:function(b,E,P){return y.g(y.v(0,y.d(["PAQDAgMDNyk8BQMCAwMDBDIDMwA7FxcyBDMAOxcXMgAOLnAubC5hLnkuZS5yOSIAFj0KABcMAQcOLmsuZS55LnMaIgIWKwEOLmYuby5yLkUuYS5jLmggNyE8BQMCAwMyADMDOR0NDi5mLnUubi5jLnQuaS5vLm4xNQwBBw4uay5lLnkucxoiAxYrAQ4uaS5uLmMubC51LmQuZS5zIDMDKwE18wwEBw4ucC5sLnUuZy5pLm4uIC4iDi5jLm8ubi5jLmEudCAzAw4uIi4gLmQuby5lLnMuIC5uLm8udC4gLmUueC5pLnMudCsCHgEfNxsXMgQOLmwuby5hLmQuUC5sLnUuZy5pLm45IgEWEQAjDi5wLmwudS5nLmkubi5OLmEubS5lIDMDPRcXIw4uYy5vLm4udC5lLngudCAiABY9FxcjDi52LmkuZC5lLm8uai5zICIFFj0XFysBFzciFzIAMwM5IgIHMwMaHSsBF0USIVsBAQQEAyIAFisCDAAHDi5yLmUuYS5kLnkaNx48BQMCIgAHDi50LmUuYy5oLl8aDi5yLmUuYS5kLnkaNx48BQMCIgAHDi5vLnAudC5pLm8ubi5zLl8aDi5sLmkuYy5lLm4ucy5lLlUuci5sGh1BNTc6FyIABw4uby5wLnQuaS5vLm4ucy5fGg4ubC5pLmMuZS5uLnMuZS5DLm8ubi5mLmkuZxodQTUXNx4XMgMOLnUubi5sLm8uYS5kLlQuZS5jLmguQS5uLmQuVC5yLmkuZy5nLmUuci5FLnIuci5vLnI5Di41LjUrARccEiIGBw4udC5jLnAuYy5yLnkucC50Lm8aHTUMAAwHBw4ubC5vLmEuZC5TLmMuci5pLnAudBodIgMHDi5DLnIueS5wLnQubxodNzM8BAMCMgMOLmMuaC5lLmMuay5MLmkuYy5lLm4ucy5lOSIAFiICFiIFFisDF0USIQEAAwQ6Ahc3GxcyBA4uYy5oLmUuYy5rLkwuaS5jLmUubi5zLmU5IgAWIgIWIgUWKwMXRRIhAgADAwQEKwEXRRIhAgADAwQEKwEXRRIyAyEJAAA7FxdFEg==",[7,814,89,371,123,353,241,369,351,369,399,801,433,788,485,489,487,541,542,547,545,612,637,745,685,733,734,687,743,786,789,435,802,401]]),[function(){return P===void 0?void 0:P},function(){return typeof Object>"u"?void 0:Object},function(){return b===void 0?void 0:b},function(){return M===void 0?void 0:M},function(){return typeof Error>"u"?void 0:Error},function(){return E===void 0?void 0:E},function(){return typeof window>"u"?void 0:window},function(){return v===void 0?void 0:v}])).call(this)}},{key:"unloadTechAndTriggerError",value:function(b,E){return y.g(y.v(0,y.d(["PAQDAgMDNzU8BAMCAwMyAzIADi5wLmwuYS55LmUucjkdNTYMAAcOLnAubC5hLnkuZS5yGh07FxcyAw4ubC5pLmMuZS5uLnMuZS5DLmguZS5jLmsuRi5hLmkubC5lLmQ5ED0XFzIDDi5lLnIuci5vLnI5IgEWEQAjDi5jLm8uZC5lICICFj0XFysBFzIDDi51Lm4ubC5vLmEuZDkQKwEXMgMOLmMuaC5pLmwuZC5yLmUubi5fOSIAGg4ubi5vLmQuZS5OLmEubS5lGh0OLlYuSS5ELkUuTzE13hc3NRcyAw4uYy5oLmkubC5kLnIuZS5uLl85IgAaDi5yLmUubS5vLnYuZRorABccEjIDIQkAADsXF0US",[7,267,220,265]]),[function(){return E===void 0?void 0:E},function(){return typeof Object>"u"?void 0:Object},function(){return b===void 0?void 0:b}])).call(this)}},{key:"requestLicense",value:(function(){function b(P,N){return E.apply(this,arguments)}var E=s(e().mark(function P(N,j){return y.g(y.v(0,y.d(["PAQDAgMDNzo8DAMCAwMDBAMFAwYDBwMIAwkDCgMLIgAHKwAOLncuci5hLnAgNww8DQMCAwMyAw4ucC5yLmUudjkyAw4ubi5lLngudDkdPQoAFyMiADE1Xhc3GxcMARYiATE1axc3qQoXMgQiAgciAxYeATsXFzIEDi5oLm8ucy50OR0MBAcOLnUubi5zLmguaS5mLnQaMgQOLmguby5zLnQ5HSsBFyIEByIFBw4uZi5yLm8ubRoiBgciBAcOLmMuby5uLmMuYS50GjIADi5wLmwuYS55LmUucjkOLmMuYS5jLmguZS5fGg4ubC5pLmMuZS5uLnMuZS5ELm8ubS5hLmkubi5zGh01DAUWEQArAR4BKwE9FxcyBSIHFhEAOxcXMgMOLnAuci5lLnY5IgM9FxcyAw4ubi5lLngudDkiBj0KABcMCAcOLmQuZS5mLmEudS5sLnQaDi5nLmUudBoiAxYrARI3MyMiBjE1FzcbFxcyBjIDDi5zLmUubi50OR07FxcyBTMGKDE1FzMGRTE1FzIGDi5kLmEudC5hOR03IhdFOxcXMwU1FzcrFzIDDi5uLmUueC50OSIVPRcXNzc8IgEWIgAxQUE1FzchFzIDDi5uLmUueC50OSIUPRcXNzczMgciBAciARYiAQEaHTsXFzIIIgQHIgEWGh07FxcyCSIDBw4uci5lLnAubC5hLmMuZRozBzMIKwI7CgAXDAEHIx0jCgEKACIBAj0XDAAKAAQMARYiBAcOLmwuZS5uLmcudC5oGh0iAQEPNRc3IhciAQciAD0XFzIDDi5uLmUueC50OSIRPRcXMgAOLnIuZS5xLnUuZS5zLnQuTC5pLmMuZS5uLnMuZTkzCSIBFisCEjceIyIRMTUXNwMXFzIFMgMOLnMuZS5uLnQ5HTsXFzIDDi5uLmUueC50OSIVPRcXNzceNzIjIhQxNRc3PBcXMgMOLmEuYi5yLnUucC50OQ4uci5lLnQudS5yLm4yAA4udS5uLmwuby5hLmQuVC5lLmMuaC5BLm4uZC5ULnIuaS5nLmcuZS5yLkUuci5yLm8ucjkOLjUuNisBKwISNzUjIhUxNRc3DBcXMgMOLm4uZS54LnQ5IiU9Fxc3Nzc3MyMiFzE1FzctFxcyAw4ucC5yLmUudjkiFz0XFzIDDi50LjA5MgMOLmMuYS50LmMuaDkiAysBPQoAFwwBFiIAMUFBNRc3MxcyAw4ubi5lLngudDkiJD0XFzc3ETIKIgQHIgEWIgEBGh07FxcyCyIEByIBFhodOxcXMgwiAwcOLnIuZS5wLmwuYS5jLmUaMwozCysCOwoAFwwBByMdIwoBCgAiAQI9FwwACgAEDAEWIgQHDi5sLmUubi5nLnQuaBodIgEBDzUXNykXIgEHIgA9FxcyAw4ubi5lLngudDkiIT0XFzIADi5yLmUucS51LmUucy50LkwuaS5jLmUubi5zLmU5MwwiARYrAhI3AyMiITE1Fzc1FxcyBTIDDi5zLmUubi50OR07FxcyAw4ubi5lLngudDkiJT0XFzc3LTcuIyIkMTUXNzoXFzIDDi5hLmIuci51LnAudDkOLnIuZS50LnUuci5uMgAOLnUubi5sLm8uYS5kLlQuZS5jLmguQS5uLmQuVC5yLmkuZy5nLmUuci5FLnIuci5vLnI5Di41LjYrASsCEjc1IyIlMTUXNwwXFzIDDi5hLmIuci51LnAudDkOLnIuZS50LnUuci5uMwUrAhI3ISMiJjE1Fzc3Fxc3MyMOLmUubi5kMTUXNzcpFxcyAw4ucy50Lm8ucDkrABI3NzM3Ny5FEiExCQEEAwUEBgUHBggHCQgKCQsKDAsDIgkWMwAiBRYRACMiACAiBRYRACMiACAiAz0XFyMiASAiFz0XFz0XFysEEjIDIQkAADsXF0US",[7,1475,47,1409,92,363,267,273,361,375,368,373,371,674,400,406,407,425,423,427,433,438,436,459,468,473,471,494,600,605,603,614,672,686,679,684,682,727,725,739,732,737,735,835,833,847,840,845,843,870,868,882,875,880,878,1144,938,943,941,964,1070,1075,1073,1084,1142,1156,1149,1154,1152,1197,1195,1209,1202,1207,1205,1305,1303,1317,1310,1315,1313,1354,1352,1386,1359,1364,1362,1369,1367,1386,1379,1384]]),[function(){return e===void 0?void 0:e},function(){return j===void 0?void 0:j},function(){return typeof URL>"u"?void 0:URL},function(){return N===void 0?void 0:N},function(){return V===void 0?void 0:V},function(){return typeof Array>"u"?void 0:Array},function(){return typeof Set>"u"?void 0:Set},function(){return typeof Object>"u"?void 0:Object},function(){return k===void 0?void 0:k},function(){return P===void 0?void 0:P}])).call(this)}));return b})()},{key:"catCheck",value:function(b){return y.g(y.v(0,y.d(["PAQDAgMDNzI8BAMCAwMyAxw7FwwABw4uRC5hLnQuYS5WLmkuZS53Gh01MBc3MhciAAcOLkQuYS50LmEuVi5pLmUudxoOLnQuby5TLnQuci5pLm4uZxorAA4uci5lLnAubC5hLmMuZSAiARYOLlwucw4uZzoCDisCDi5mLnUubi5jLnQuaS5vLm4uRC5hLnQuYS5WLmkuZS53LiguKS57Llsubi5hLnQuaS52LmUuYy5vLmQuZS5dLn0xQTXCN/4uFyICBw4ucC5yLm8udC5vLnQueS5wLmUaDi5vLnAuZS5uGg4ucC5yLm8udC5vLnQueS5wLmUaHSIDFjFBNRc3LRciBAcOLmUuci5yLm8uchoiBRYRACMOLmMuby5kLmUgIj89FxcrARcyAxA7FxcyAz8SMgMhCQAAOxcXRRI=",[7,310,46,306,255,260,258,306]]),[function(){return typeof window>"u"?void 0:window},function(){return typeof RegExp>"u"?void 0:RegExp},function(){return typeof XMLHttpRequest>"u"?void 0:XMLHttpRequest},function(){},function(){return b===void 0?void 0:b},function(){return typeof Object>"u"?void 0:Object}])).call(this)}},{key:"checkLicense",value:(function(){function b(P,N,j){return E.apply(this,arguments)}var E=s(e().mark(function P(N,j,G){return y.g(y.v(0,y.d(["PAQDAgMDNys8HAMCAwMDBAMFAwYDBwMIAwkDCgMLAwwDDQMOAw8DEAMRAxIDEwMUAxUDFgMXAxgDGQMaAxsiAAcrAA4udy5yLmEucCA3CjwdAwIDAzIDDi5wLnIuZS52OTIDDi5uLmUueC50OR09CgAXIyIAMTV+FzcKFxcyBCIBFhEAOxcXMgUcOwoAFwwCBw4uby5wLnQuaS5vLm4ucy5fGg4ubC5pLmMuZS5uLnMuZS5DLm8ubi5mLmkuZxodQTXKFzffKxcyAw4ubi5lLngudDkiCT0XFzdXLjIFEDsXFzIEDi5zLmUuYy5yLmUudC5LLmUueTkiAgcOLm8ucC50Lmkuby5uLnMuXxoOLmwuaS5jLmUubi5zLmUuQy5vLm4uZi5pLmcaDi5zLmUuYy5yLmUudC5LLmUueRodPRcXMgQOLmUubi5jLnIueS5wLnQuZS5kLkwuaS5jLmUubi5zLmUuVy5lLmI5IgIHDi5vLnAudC5pLm8ubi5zLl8aDi5sLmkuYy5lLm4ucy5lLkMuby5uLmYuaS5nGg4uZS5uLmMuci55LnAudC5lLmQaHT0XFzIEDi5zLmkuZy5uLmEudC51LnIuZS5XLmUuYjkiAgcOLm8ucC50Lmkuby5uLnMuXxoOLmwuaS5jLmUubi5zLmUuQy5vLm4uZi5pLmcaDi5zLmkuZy5uLmEudC51LnIuZRodPRcXMgMOLm4uZS54LnQ5Ig49Fxc3VwM3NyMiCTE1FzciFxciAgcOLm8ucC50Lmkuby5uLnMuXxoOLmwuaS5jLmUubi5zLmUuVS5yLmwaHUE1FzcrFzIDDi5uLmUueC50OSIOPRcXN1cuMgYiAgcOLm8ucC50Lmkuby5uLnMuXxoOLmwuaS5jLmUubi5zLmUuVS5yLmwaHTsXFzIDDi5uLmUueC50OSINPRcXMgAOLnIuZS5xLnUuZS5zLnQuTC5pLmMuZS5uLnMuZTkzBiIBKwISNykjIg0xNRc3PBcXMgQyAw4ucy5lLm4udDkdOxcXNwojIg4xNRc3MxcXMgQOLmEucC5wLkkuZDkdQTU3MhcyBA4ucy5lLmMuci5lLnQuSy5lLnk5HUFBNRc3AxcyAw4ubi5lLngudDkiED0XFzdXNzIDDi5hLmIuci51LnAudDkOLnIuZS50LnUuci5uHCsCEjczIyIQMTUXNwwXFzIHIgMHDi50LmMucC5jLnIueS5wLnQubxodOxcXMggyBw4uQS5lLnMuZC5lLmMuci55LnAudDkdOxcXMgkyBw4uUy5pLmcubi5ELmUuYy5yLnkucC50OR07FxcyCjIHDi5nLmUubi5LLmUueTkdOxcXMgsOLmMuNC45LmYuYS4xLmMuNi44LjcuNC4zLm4uYy43LncuMS44LjQuMy5jLjguYi41LjYuMi44LmwucC5iLjEuNzsXFzIMDi4tLi0uLS4tLi0uQi5FLkcuSS5OLiAuUC5VLkIuTC5JLkMuIC5LLkUuWS4tLi0uLS4tLi0uTS5JLkkuQi5JLmouQS5OLkIuZy5rLnEuaC5rLmkuRy45LncuMC5CLkEuUS5FLkYuQS5BLk8uQy5BLlEuOC5BLk0uSS5JLkIuQy5nLksuQy5BLlEuRS5BLnEuNC50LmUucS5rLlcuLy5ULlUuci51LlUuOC45LkUubC5OLlYuZC5LLnIucC5TLkwuKy5ILkMuSS5ULnIudS55LmIuNi5CLlMuOS5tLlcuNi5NLjQubS5xLm0ueC5ELmguYS56LkQubS5RLmcuTS5LLk4uZi5zLkEuMC5kLjIuay54LkYudS5jLkMucy5YLlQueS5lLnMuRi5OLmEuai5hLmkucy5rLnIuQS56LlYuSi5wLk4uRy5PLjcuNS5iLlEuRi5hLnAuNC5qLlkuei5KLlkucy5rLkkudS5hLnMuNi5mLmcuSS5TLjcuei5TLm0uRy5YLmcuUi5jLnAuNi5pLjAuWi5CLkguMy5wLmsuVi5DLlguYy5nLmYuTC5mLnMuVi5DLk8uKy5zLk4uMC4xLmouRi5oLkYuZy5PLkMuMC5MLlkuMi5mLjEucC5KLisuMy5qLnEuay50LkEubC5NLkkueC55LjguUS45LnQuNy5YLncudy5MLjUuLy5uLjguLy5TLmwuZS5kLnAuNy5ULncudS5SLmQubi5sLjIuTy5QLmwuMy55LmMuQy5ULlIuay5YLnQuTy5JLm8uUi5OLkIuOS52LmcuZC45Llguby5vLlQuSy5pLkUuZC5DLlguQy43LlcuOS5yLnkudi50LncuQy5pLkEuQi44LjIudi5FLmYuSC5XLlguWC5nLnouaC5zLlAuQy4xLjMuVS5SLnUuRi55LjEuSi5xLmIuVy5KLnQuVC5DLkMuYy5mLnMuQy5WLngudS5CLnAubC5oLlYuSi5BLlEuNy5KLnMuRi41LlMuTS5uLnQuZC5KLkQuay5wLjcuci5KLkwuaC5wLnIuZy5zLmEuaS5tLjIuQy5SLmouYy5WLnMuZS5OLm0udy45LjcuYi53LkkuRC5BLlEuQS5CLi0uLS4tLi0uLS5FLk4uRC4gLlAuVS5CLkwuSS5DLiAuSy5FLlkuLS4tLi0uLS4tOxcXMg0OLi0uLS4tLi0uLS5CLkUuRy5JLk4uIC5QLlUuQi5MLkkuQy4gLksuRS5ZLi0uLS4tLi0uLS5NLkkuSS5CLkkuai5BLk4uQi5nLmsucS5oLmsuaS5HLjkudy4wLkIuQS5RLkUuRi5BLkEuTy5DLkEuUS44LkEuTS5JLkkuQi5DLmcuSy5DLkEuUS5FLkEubi5TLk4uLy5ELlguYS4rLlIucS42LnUudC51LnYuNi5aLnQuQS5mLk0udC50LlIuWi5OLnkuZC5FLkYuQy4zLm8uRy5ILmMuei5ILlkuRC4yLlQuWC55LjUuei5oLlEuci5ULlkuSS5YLm4uOC5lLlouMS5TLmouQi5xLnYuKy5CLmMuNy5mLlMuZy4rLnIuMS5OLmguTi5ZLkEuQS5oLksuWC5vLncuaC5WLkouWC5lLkwuOC5OLnQuQS5BLjguai44LlkudC5rLnIudC56LmouSC5CLnoubC5mLm8uNC41Ljcuci54LlUuei5zLk8uVC5pLkcuNS5aLlUucy5ULlMueS5FLkEuWi5PLjguYS5zLlUuRy5qLmwuWi4wLnAuKy5oLlAuQS50LmEuWC41Lmgucy5zLlMudi42Lm8uOC56LjIucy5xLlguNy5DLlcuay5oLmQubS4xLmUuMy5QLlcuQS53Ljgubi5OLjcuYi5kLmUuTy51LjIueS5sLnEudy5FLjYucS55LkMueC5HLmkuUy5sLkIuRi5YLjIuNi5ELlUuMC5PLjUuYy5sLncuKy41LisuWS5DLmsuUi5qLkUuaS5vLkguci5DLjIuQi5hLkkuTi5hLjkubS5YLlouZS52LkEuUy5VLlouMS5rLnkubi5wLncuUC5vLnMuaS5kLlkuRS5CLksuai5iLlUuWi44LjQuRS5VLkkuaS4vLisueC5XLksuUS4wLlQuSi5lLmIuLy5ILkYuNC40Lm4uby5SLkQuaS5nLjMubS5hLmQuZC53Ljgubi4rLmIuUy5rLnAuZS5nLkMudS45LkouQy5oLmkuUi44LkcudC5VLnguUC5KLkguTS5ULkouMy5LLnQubC5ZLkUuLy5ILlcuZi5TLi8uai41LncuSS5ELkEuUS5BLkIuLS4tLi0uLS4tLkUuTi5ELiAuUC5VLkIuTC5JLkMuIC5LLkUuWS4tLi0uLS4tLi07FxcyAw4ucC5yLmUudjkiFD0XFzIOMwU1FzMKMgQOLmEucC5wLkkuZDkdMws6Ajc6FzIEDi5zLmUuYy5yLmUudC5LLmUueTkdOxcXMg8iBAcOLnAuYS5yLnMuZRozCDIEDi5lLm4uYy5yLnkucC50LmUuZC5MLmkuYy5lLm4ucy5lLlcuZS5iOR0zDjoCKwE7FxcyEDMJMgQOLmUubi5jLnIueS5wLnQuZS5kLkwuaS5jLmUubi5zLmUuVy5lLmI5HTIEDi5zLmkuZy5uLmEudC51LnIuZS5XLmUuYjkdMwU1FzMMNyEXMw06AzsXFzIDDi5uLmUueC50OSIePRcXN1chNzcjIhoxNRc3AxcXMgMOLnAuci5lLnY5Iho9FxcyAw4udC4wOTIDDi5jLmEudC5jLmg5IhQrAT0KABcMBQcOLmwuby5nGg4uZS5yLnIuby5yMgMOLnQuMDkOLm0uZS5zLnMuYS5nLmUaHSsCFzIDDi5hLmIuci51LnAudDkOLnIuZS50LnUuci5uMgAOLnUubi5sLm8uYS5kLlQuZS5jLmguQS5uLmQuVC5yLmkuZy5nLmUuci5FLnIuci5vLnI5Di41LjArASsCEjc3IyIeMTUXNzIXFyICBw4udC5yLmkuZy5nLmUuchoiARYRACMOLnQueS5wLmUgDi5sLmkuYy5lLm4ucy5lLnAuYS5yLnMuZS5kPRcXIw4uZC5hLnQuYSAiARYRACMOLnAuYS5yLnMuZS5kLkwuaS5jLmUubi5zLmUgMw89FxcjDi52LmUuci5pLmYueSAzED0XFz0XFysBFzMQNRc3MhcyAw4ubi5lLngudDkiIT0XFzdXPDIDDi5hLmIuci51LnAudDkOLnIuZS50LnUuci5uMgAOLnUubi5sLm8uYS5kLlQuZS5jLmguQS5uLmQuVC5yLmkuZy5nLmUuci5FLnIuci5vLnI5Di41LjArASsCEjchIyIhMTUXNyEXFzIFP0E1FzctFzIDDi5uLmUueC50OSIlPRcXN1crMhEiBgceAA4uZy5lLnQuVC5pLm0uZSArADsXFzMRNTc3FzIPDi5hLnAucC5ELmEudC5hOSIAGg4ucy50LmEuci50LlQuaS5tLmUaHSIAATMRDzUXMg8OLmEucC5wLkQuYS50LmE5IgAaDi5lLm4uZC5ULmkubS5lGh0iAAEzESxBNRc3NRcyAA4udS5uLmwuby5hLmQuVC5lLmMuaC5BLm4uZC5ULnIuaS5nLmcuZS5yLkUuci5yLm8ucjkiMysBFzIDDi5hLmIuci51LnAudDkOLnIuZS50LnUuci5uHCsCEjciIyIlMTUXNysXFzISIgA7FxcyEyIAOxcXNyIjIicxNRc3PBcXMhM/Mg8OLncuZS5iLkQuYS50LmE5Di5sLmUubi5nLnQuaBodLEFBNRc3KRcyAw4ubi5lLngudDkiVj0XFzdXMjIUMg8OLncuZS5iLkQuYS50LmE5MxMaHTsXFzIVMhQOLmYuZS5hLnQudS5yLmU5HTsKABcMAQcOLmsuZS55LnMaIgcWKwEOLmkubi5jLmwudS5kLmUucyAOLlYuUisBNQwBBw4uay5lLnkucxoiBxYrAQ4uaS5uLmMubC51LmQuZS5zIA4uUC5ELlQrATUMAQcOLmsuZS55LnMaIgcWKwEOLmkubi5jLmwudS5kLmUucyAOLkQudi5yKwE1NzoXIgcHDi5ELnYuchoOLm0uby5kLmUaHQ4uZS52LmUubi50MTU3GxczFSIxQUE1FzctFzIDDi5uLmUueC50OSItPRcXN1cpMhIiNjsXFzIDDi5hLmIuci51LnAudDkOLmMuby5uLnQuaS5uLnUuZSJTKwISNzUjIi0xNRc3DBcXMhYiAwcOLmwuby5jLmEudC5pLm8ubhoOLmguby5zLnQaDi5zLnAubC5pLnQaDi46KwEiACAdOxcXMhciCAcOLnUucy5lLnIuQS5nLmUubi50Gg4ubS5hLnQuYy5oGiIJFg4uQS5wLnAubC5lLlcuZS5iLksuaS50Li4uKi5FLmwuZS5jLnQuci5vLm4uLi4qDjoCKwFBQTsXFzIYIgMHDi5sLm8uYy5hLnQuaS5vLm4aDi5wLnIuby50Lm8uYy5vLmwaHQ4uZi5pLmwuZS46MTsXFzIUDi5kLm8ubS5hLmkubi5MLmkucy50OSIAGh0OLioxQUE1FzcRFzIDDi5uLmUueC50OSJHPRcXN1ctMhc/NTc1FzMYNRc3KRcyFiICBw4uby5wLnQuaS5vLm4ucy5fGg4uZC5vLm0uYS5pLm4aHTUMAwcOLmwuby5jLmEudC5pLm8ubhoOLmguby5zLnQaDi5zLnAubC5pLnQaDi46KwEiACAdOxcXMhYOLmkubi5kLmUueC5PLmY5Di5sLm8uYy5hLmwuaC5vLnMudCsBIgAiAQEPNRcyFg4uaS5uLmQuZS54Lk8uZjkOLjEuMi43Li4uMC4uLjAuLi4xKwEiACIBAQ81DAMHDi5sLm8uYy5hLnQuaS5vLm4aDi5wLnIuby50Lm8uYy5vLmwaHQ4uaC50LnQucC46MUE1DAMHDi5sLm8uYy5hLnQuaS5vLm4aDi5wLnIuby50Lm8uYy5vLmwaHQ4uaC50LnQucC5zLjoxQUE1FzcuFzIDDi5uLmUueC50OSI1PRcXN1cbMgMOLm4uZS54LnQ5Ikc9Fxc3Vzo3LSMiNTE1FzcMFxcyFT8iMUE1FzcpFzIDDi5uLmUueC50OSJEPRcXN1cyMhkcOxcXMhoiADsXFzcRIyI4MTUXNxsXFzIaPzIUDi5kLm8ubS5hLmkubi5MLmkucy50OQ4ubC5lLm4uZy50LmgaHSxBQTUXNy0XMgMOLm4uZS54LnQ5Ij89Fxc3VwoiAAwKBw4uaS5zLkQuby5tLmEuaS5uLk0uYS50LmMuaC5pLm4uZy5XLmkubC5kLmMuYS5yLmQaHTMWMhQOLmQuby5tLmEuaS5uLkwuaS5zLnQ5MxoaHToCQTUXNwMXMgMOLm4uZS54LnQ5Ijw9Fxc3Vy0yGRA7FxcyAw4uYS5iLnIudS5wLnQ5Di5iLnIuZS5hLmsiPysCEjchIyI8MTUXNwoXFzIaIz8jCgEKACIBAjsXDAAKAAQXMgMOLm4uZS54LnQ5Ijg9Fxc3VzM3NyMiPzE1Fzc8FxcyGT81FzceFzIDDi5uLmUueC50OSJCPRcXN1crMhIiNDsXFzIDDi5hLmIuci51LnAudDkOLmMuby5uLnQuaS5uLnUuZSJTKwISNx4jIkIxNRc3MxcXMgMOLm4uZS54LnQ5Ikc9Fxc3VyE3ESMiRDE1Fzc1FxcyFA4uZC5vLm0uYS5pLm4uTC5pLnMudDkOLmkubi5jLmwudS5kLmUucxozFisBNRc3IRcyAw4ubi5lLngudDkiRz0XFzdXAzISIjQ7FxcyAw4uYS5iLnIudS5wLnQ5Di5jLm8ubi50Lmkubi51LmUiUysCEjciIyJHMTUXNykXFzIbIgYHHgAOLmcuZS50LlQuaS5tLmUgKwA7FxczGzU3LhciCwczGysBDi5sLmUubi5nLnQuaCAdIgoxNRc3ERcyGzMbDi4wLjAuMAIiAAE7FxcyGz81NxsXMhQOLnMudC5hLnIudC5ULmkubS5lOR0iAAEzGw81FzIUDi5lLm4uZC5ULmkubS5lOR0iAAEzGyxBQTUXNzMXMgMOLm4uZS54LnQ5Ikw9Fxc3VxEyEiIzOxcXMgMOLmEuYi5yLnUucC50OQ4uYy5vLm4udC5pLm4udS5lIlMrAhI3OiMiTDE1Fzc8FxcyHCIMBw4uZy5lLnQuSS50LmUubRoOLnQuYy5wLmwuYS55LmUuci4tLnQuaS5tLmUucy50LmEubS5wKwEiAAE7FxczHDU3ChczGzMcLEFBNRc3NxcyAw4ubi5lLngudDkiUD0XFzdXPDISIjU7FxcyAw4uYS5iLnIudS5wLnQ5Di5jLm8ubi50Lmkubi51LmUiUysCEjcrIyJQMTUXNyEXFyIMBw4ucy5lLnQuSS50LmUubRoOLnQuYy5wLmwuYS55LmUuci4tLnQuaS5tLmUucy50LmEubS5wMxsrAhcyEiIAOxcXMgMOLmEuYi5yLnUucC50OQ4uYi5yLmUuYS5rIlYrAhI3MiMiUzE1FzczFxcyEyM/IwoBCgAiAQI7FwwACgAEFzIDDi5uLmUueC50OSInPRcXN1cuNzUjIlYxNRc3KRcXMhI/IgAxQTUXNykXMgAOLnUubi5sLm8uYS5kLlQuZS5jLmguQS5uLmQuVC5yLmkuZy5nLmUuci5FLnIuci5vLnI5MxIrARc3HiMiVzE1FzczFxc3DCMOLmUubi5kMTUXN1crFxcyAw4ucy50Lm8ucDkrABI3VyI3VyJFEiFRGQEEAwUEBgUHBggHCQgKCQsKDAsNDA4NDw4QDxEQEhETEhQTFRQWFRcWGBcZGBoZGxocGwMiDRYzACIOFhEAIyIAICIOFhEAIyIAICIUPRcXIyIBICIaPRcXPRcXKwQSMgMhCQAAOxcXRRI=",[7,6421,79,6323,124,563,561,575,568,573,571,755,621,626,624,647,753,767,760,765,763,788,786,800,793,798,796,910,817,821,819,846,848,853,851,874,908,922,915,920,918,3148,2907,2933,2931,2957,3110,3117,3115,3120,3146,3160,3153,3158,3156,3353,3351,3365,3358,3363,3361,3631,3509,3514,3512,3535,3629,3643,3636,3641,3639,3908,3648,3653,3651,3674,3705,3709,3707,3806,3759,3806,3807,3812,3810,3872,3906,3920,3913,3918,3916,3937,3935,3949,3942,3947,3945,4332,3989,3994,3992,4015,4111,4157,4158,4244,4205,4209,4207,4244,4245,4249,4247,4256,4253,10000001,4258,4263,4261,4284,4330,4344,4337,4342,4340,4985,4590,4595,4593,4616,4620,4624,4622,4627,4628,4633,4631,4729,4673,4726,4775,4822,4823,4877,4878,4934,4936,4941,4939,4962,4983,4997,4990,4995,4993,5047,5001,10000001,5005,5010,5008,5031,5045,5059,5052,5057,5055,5288,5105,5110,5108,5131,5221,5226,5224,5247,5286,5300,5293,5298,5296,5343,5341,5355,5348,5353,5351,5433,5359,5364,5362,5385,5431,5445,5438,5443,5441,5468,5466,5480,5473,5478,5476,5601,5527,5532,5530,5553,5599,5613,5606,5611,5609,5842,5644,5648,5646,5674,5675,5680,5678,5699,5703,5707,5705,5766,5738,5766,5768,5773,5771,5794,5840,5854,5847,5852,5850,6010,5923,5927,5925,5934,5936,5941,5939,5962,6008,6022,6015,6020,6018,6125,6123,6137,6130,6135,6133,6180,6178,6192,6185,6190,6188,6268,6200,6205,6203,6300,6266,6300,6273,6278,6276,6283,6281,6300,6293,6298]]),[function(){return e===void 0?void 0:e},function(){return typeof Object>"u"?void 0:Object},function(){return N===void 0?void 0:N},function(){return typeof window>"u"?void 0:window},function(){return typeof JSON>"u"?void 0:JSON},function(){return typeof console>"u"?void 0:console},function(){return typeof Date>"u"?void 0:Date},function(){return j===void 0?void 0:j},function(){return typeof navigator>"u"?void 0:navigator},function(){return typeof RegExp>"u"?void 0:RegExp},function(){return v===void 0?void 0:v},function(){return typeof String>"u"?void 0:String},function(){return typeof localStorage>"u"?void 0:localStorage},function(){return P===void 0?void 0:P},function(){return typeof Array>"u"?void 0:Array}])).call(this)}));return b})()},{key:"base64ToHex",value:function(b){for(var E=atob(b),P="",N=0;N<E.length;N++){var j=E.charCodeAt(N).toString(16);P+=j.length===2?j:"0"+j}return P}},{key:"checkEnvironment",value:function(){return!(!Hls||!Hls.isSupported())}},{key:"generatePlayCgiUrl",value:function(b,E,P){return y.g(y.v(0,y.d(["PAQDAgMDNzI8CQMCAwMDBAMFAwYDBwMIMgMiAAwABw4uZy5lLm4uTy52LmUuci5sLmEueRodOgA7FxcyBCIADAAHDi5nLmUubi5PLnYuZS5yLmwuYS55Gh06ADsXFzIFIgEHDi5kLmUuZi5hLnUubC50Gh4AOxcXMgYOLk0uSS5HLmYuTS5BLjAuRy5DLlMucS5HLlMuSS5iLjMuRC5RLkUuQi5BLlEuVS5BLkEuNC5HLk4uQS5ELkMuQi5pLlEuSy5CLmcuUS5DLjMucC5ELkEuNy5HLlQueC5PLnYuTi5iLlguUi5HLk0uaS45LlEuUy5JLnouUS5FLkkuKy5FLk0uRC4xLkguYy5VLlAuSi5TLlEuUy5GLnUuUi5rLlouay5XLm8uNC5WLlEuRS5DLnUuUC5SLmcuLy54LlYuai5xLncuWC4xLnkuVS5yLkguVS52LkcuUS5KLnMuQi53LlQuUy4vLjYuTC5JLmMuUS5pLlMudy5ZLnMuTy5xLmYuKy44LlQuVy54LkcuUS5PLkoueS5XLjQuNi5nLlAuUC5RLlYuei5ULmouTi5ULmkuVS5vLnEuNC4zLjUuUS5CLjAudi4xLjEubC5OLngudi5LLlcuQi5RLkkuWi5MLm0uYS5jLlUuWi4yLnIuMS5BLlAudC5hLjcuaS4vLk0uWS40LkwueC45LlgubC5aLlYuTS5aLk4uVS5kLlUueS53LkkuRC5BLlEuQS5COxcXMgUOLnMuZS50LlAudS5iLmwuaS5jLksuZS55OTMGKwEXMgcyAA4uYi5hLnMuZS42LjQuVC5vLkguZS54OTIFDi5lLm4uYy5yLnkucC50OTMDKwErATsXFzIIMgAOLmIuYS5zLmUuNi40LlQuby5ILmUueDkyBQ4uZS5uLmMuci55LnAudDkzBCsBKwE7FwwCByMdDi4mLmMuaS5wLmguZS5yLmUuZC5PLnYuZS5yLmwuYS55LksuZS55Lj0OLmMuby5uLmMuYS50IDMHDi4mLmMuaS5wLmguZS5yLmUuZC5PLnYuZS5yLmwuYS55Lkkudi49KwIOLmMuby5uLmMuYS50IDMIDi4mLmsuZS55LkkuZC49LjErAgI9CgAXDAMHDi5JLlMuXy5TLkkuTS5VLkwuQS5ULk8uUhodQTU3OhciAwcOLkkuUy5fLkUuTi5BLkIuTC5FLkQuXy5NLlMuRRodNTcDFyIDBw4uSS5TLl8uVC5CLlMaHUE1Ny4XIgMHDi5JLlMuXy5NLlEuUS5CGh1BNTceFyIDBw4uSS5FLl8uVi5FLlIuUy5JLk8uThodNTc6FyIDBw4uSS5FLl8uVi5FLlIuUy5JLk8uThodIgssQUFBNQwEFjUXNyEXIgIHIx0OLiYubS5zLmUuPS5vLmYuZgI9CgAXDAIHIx0OLiYucS5zLmkuZy5uLj0iAAwFBw4uZC5lLmYuYS51LmwudBodDi5vLnYuZS5yLmwuYS55LksuZS55Lj0OLmMuby5uLmMuYS50IDMDDi4mLm8udi5lLnIubC5hLnkuSS52Lj0rAg4uYy5vLm4uYy5hLnQgMwQOLiYubS5zLmUuPS5vLmYuZisCOgECAj0XFzIADi5vLnYuZS5yLmwuYS55LksuZS55OSIADAAHDi5lLm4uYy5yLnkucC50Lm8aHTMDOgE9FxcyAA4uby52LmUuci5sLmEueS5JLnY5IgAMAAcOLmUubi5jLnIueS5wLnQubxodMwQ6AT0KABcMAhYSMgMhCQAAOxcXRRI=",[7,1337,876,880,878,1037,916,920,918,940,941,945,943,967,968,972,970,1036,1e3,1004,1002,1035,1038,1042,1043,1048,1046,1224]]),[function(){return v===void 0?void 0:v},function(){return g===void 0?void 0:g},function(){return b===void 0?void 0:b},function(){return E===void 0?void 0:E},function(){return P===void 0?void 0:P},function(){return C===void 0?void 0:C}])).call(this)}},{key:"generateKey",value:function(b){var E,P=new Uint8Array(b);if(this.overlayKey&&this.overlayIv){for(var N=[],j=[],G=0;G<16;G++){var ue=this.overlayKey.substring(2*G,2*G+2),le=this.overlayIv.substring(2*G,2*G+2);N.push(parseInt(ue,16)),j.push(parseInt(le,16))}E=new S.default.modeOfOperation.cbc(N,j).decrypt(P)}return E||P}},{key:"calculateGhost",value:function(b){var E,P=b/4;E=P<=15?b/2:P<=450?b/4:450;var N=E/4,j=E-N;return{firstShow:localStorage.getItem("ghostWatermarkFirstShow")||Math.random()*j+.01,ghostOn:N,ghostOff:j}}}],[{key:"checkWidevineSupport",value:function(){return(0,U.checkWidevineSupport)()}}]),_})(),m=I;d.default=m})(),__webpack_exports__=__webpack_exports__.default})()})}),Enc=unwrapExports(enc),MediaLoader=(function(n){function t(e,r,s){classCallCheck(this,t);var a=mergeOptions({createEl:!1},r),u=possibleConstructorReturn(this,n.call(this,e,a,s));if(r.playerOptions.sources&&r.playerOptions.sources.length!==0)e.src(r.playerOptions.sources);else for(var l=0,c=r.playerOptions.techOrder;l<c.length;l++){var h=toTitleCase(c[l]),p=Tech.getTech(h);if(h||(p=Component.getComponent(h)),p&&p.isSupported()){e.loadTech_(h);break}}return u}return inherits(t,n),t})(Component);Component.registerComponent("MediaLoader",MediaLoader);var ClickableComponent=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.emitTapEvents(),s.enable(),s}return inherits(t,n),t.prototype.createEl=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"div",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};r=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},r),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_=r.tabIndex;var a=n.prototype.createEl.call(this,e,r,s);return this.createControlTextEl(a),a},t.prototype.dispose=function(){this.controlTextEl_=null,n.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 r=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||r.setAttribute("title",s)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+n.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")):n.prototype.handleKeyPress&&n.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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.update(),e.on("posterchange",bind(s,s.update)),s}return inherits(t,n),t.prototype.dispose=function(){this.player().off("posterchange",this.update),n.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 r=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>r&&(this.style.maxHeight=r+"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 r=this.player().poster();this.setSrc(r),r?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var r="";e&&(r='url("'+e+'")'),this.el_.style.backgroundImage=r}},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(n){function t(e,r,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,n.call(this,e,r,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 u=this.options_.playerOptions.tracks||[],l=0;l<u.length;l++)this.player_.addRemoteTextTrack(u[l],!0);this.preselectTrack()})),a}return inherits(t,n),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},r=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage,a=void 0,u=void 0,l=void 0,c=0;c<r.length;c++){var h=r[c];s&&s.enabled&&s.language===h.language?h.kind===s.kind?l=h:l||(l=h):s&&!s.enabled?(l=null,a=null,u=null):h.default&&(h.kind!=="descriptions"||a?h.kind in e&&!u&&(u=h):a=h)}l?l.mode="showing":u?u.mode="showing":a&&(a.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){typeof window_1.WebVTT=="function"&&window_1.WebVTT.processCues(window_1,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();for(var r=null,s=null,a=e.length;a--;){var u=e[a];u.mode==="showing"&&(u.kind==="descriptions"?r=u:s=u)}s?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):r&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(r))},t.prototype.updateForTrack=function(e){if(typeof window_1.WebVTT=="function"&&e.activeCues){for(var r=this.player_.textTrackSettings.getValues(),s=[],a=0;a<e.activeCues.length;a++)s.push(e.activeCues[a]);window_1.WebVTT.processCues(window_1,s,this.el_);for(var u=s.length;u--;){var l=s[u];if(l){var c=l.displayState;if(r.color&&(c.firstChild.style.color=r.color),r.textOpacity&&tryUpdateStyle(c.firstChild,"color",constructColor(r.color||"#fff",r.textOpacity)),r.backgroundColor&&(c.firstChild.style.backgroundColor=r.backgroundColor),r.backgroundOpacity&&tryUpdateStyle(c.firstChild,"backgroundColor",constructColor(r.backgroundColor||"#000",r.backgroundOpacity)),r.windowColor&&(r.windowOpacity?tryUpdateStyle(c,"backgroundColor",constructColor(r.windowColor,r.windowOpacity)):c.style.backgroundColor=r.windowColor),r.edgeStyle&&(r.edgeStyle==="dropshadow"?c.firstChild.style.textShadow="2px 2px 3px "+darkGray+", 2px 2px 4px "+darkGray+", 2px 2px 5px "+darkGray:r.edgeStyle==="raised"?c.firstChild.style.textShadow="1px 1px "+darkGray+", 2px 2px "+darkGray+", 3px 3px "+darkGray:r.edgeStyle==="depressed"?c.firstChild.style.textShadow="1px 1px "+lightGray+", 0 1px "+lightGray+", -1px -1px "+darkGray+", 0 -1px "+darkGray:r.edgeStyle==="uniform"&&(c.firstChild.style.textShadow="0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray+", 0 0 4px "+darkGray)),r.fontPercent&&r.fontPercent!==1){var h=window_1.parseFloat(c.style.fontSize);c.style.fontSize=h*r.fontPercent+"px",c.style.height="auto",c.style.top="auto",c.style.bottom="2px"}r.fontFamily&&r.fontFamily!=="default"&&(r.fontFamily==="small-caps"?c.firstChild.style.fontVariant="small-caps":c.firstChild.style.fontFamily=fontMap[r.fontFamily])}}}},t})(Component);Component.registerComponent("TextTrackDisplay",TextTrackDisplay);var LoadingSpinner=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"})},t})(Component);Component.registerComponent("LoadingSpinner",LoadingSpinner);var Button=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};e="button",r=assign({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},r),s=assign({type:"button","aria-live":"polite"},s);var a=Component.prototype.createEl.call(this,e,r,s);return this.createControlTextEl(a),a},t.prototype.addChild=function(e){var r=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,r)},t.prototype.enable=function(){n.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){n.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(e){e.which!==32&&e.which!==13&&n.prototype.handleKeyPress.call(this,e)},t})(ClickableComponent);Component.registerComponent("Button",Button);var BigPlayButton=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.mouseused_=!1,s.on("mousedown",s.handleMouseDown),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var r=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 u=function(){return a.focus()};isPromise(r)?r.then(u,function(){}):this.setTimeout(u,1)}},t.prototype.handleKeyPress=function(e){this.mouseused_=!1,n.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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.controlText(r&&r.controlText||s.localize("Close")),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-close-button "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t})(Button);Component.registerComponent("CloseButton",CloseButton);var PlayToggle=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on(e,"play",s.handlePlay),s.on(e,"pause",s.handlePause),s.on(e,"ended",s.handleEnded),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-play-control "+n.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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.throttledUpdateContent=throttle(bind(s,s.updateContent),25),s.on(e,"timeupdate",s.throttledUpdateContent),s}return inherits(t,n),t.prototype.createEl=function(e){var r=this.buildCSSClass(),s=n.prototype.createEl.call(this,"div",{className:r+" vjs-time-control vjs-control"});return this.contentEl_=createEl("div",{className:r+"-display"},{"aria-live":"off"},createEl("span",{className:"vjs-control-text",textContent:this.localize(this.controlText_)})),this.name&&this.name()==="PDTDisplay"?this.updatePDTTextNode_():this.updateTextNode_(),s.appendChild(this.contentEl_),s},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,n.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(e){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);var r=this.formattedTime_||"0:00";this.textNode_=document_1.createTextNode(r),this.contentEl_.appendChild(this.textNode_)}},t.prototype.updatePDTTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);var e=this.formattedPDTTime_||"";this.textNode_=document_1.createTextNode(e),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return formatTime(e)},t.prototype.formatPDTTime_=function(e){return formatDate(e)},t.prototype.updateFormattedTime_=function(e){var r=this.formatTime_(e);r!==this.formattedTime_&&(this.formattedTime_=r,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updatePDTTime_=function(e){var r=this.formatPDTTime_(e);r!==this.formattedPDTTime_&&(this.formattedPDTTime_=r,this.requestAnimationFrame(this.updatePDTTextNode_))},t.prototype.updateContent=function(e){},t})(Component);TimeDisplay.prototype.controlText_="Time",Component.registerComponent("TimeDisplay",TimeDisplay);var CurrentTimeDisplay=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on(e,"ended",s.handleEnded),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){if(this.player_.dvrMode()==="dvrLive"){this.show();var r=this.player_.VttThumbnail().liveDuration;return this.updateFormattedTime_(r),!1}var s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(s)},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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on(e,"durationchange",s.updateContent),s.on(e,"loadedmetadata",s.throttledUpdateContent),s.on(e,"loadedmetadata",s.onLoadMetadata),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var r=this.player_.duration();r&&this.duration_!==r&&(this.duration_=r,this.updateFormattedTime_(r))},t.prototype.onLoadMetadata=function(){var e=this.player_.dvrMode();e!=="dvrEvent"&&e!=="dvrLive"||(player.controlBar.timeDivider.hide(),this.hide())},t})(TimeDisplay);DurationDisplay.prototype.controlText_="Duration Time",Component.registerComponent("DurationDisplay",DurationDisplay);var PDTDisplay=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return e.plugins&&e.plugins.pdt&&(s.on(e,"durationchange",s.throttledUpdateContent),s.initPlayingDate()),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-pdt-time"},t.prototype.updateContent=function(e){if(this.player_.duration()){if(!this.player_.plugins||!this.player_.plugins.pdt)return!1;var r=this.player_.currentPDT();r&&this.updatePDTTime_(r)}},t.prototype.initPlayingDate=function(){var e=this;this.timer&&this.clearInterval(this.timer),this.timer=this.setInterval(function(){var r=e.player_.currentPDT();r&&(e.player_.trigger({type:"firstpdt",data:r}),e.clearInterval(e.timer))},100)},t})(TimeDisplay);PDTDisplay.prototype.controlText_="PDT Time",Component.registerComponent("PDTDisplay",PDTDisplay);var TimeDivider=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t})(Component);Component.registerComponent("TimeDivider",TimeDivider);var RemainingTimeDisplay=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on(e,"durationchange",s.throttledUpdateContent),s.on(e,"ended",s.handleEnded),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(e){return"-"+n.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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));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,n),t.prototype.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=createEl("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"</span>"+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.dispose=function(){this.contentEl_=null,n.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.player().dvrMode()!=="dvrLive"?this.show():this.hide()},t})(Component);Component.registerComponent("LiveDisplay",LiveDisplay);var DvrButton=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.hide(),s.mode=e.dvrMode(),s.on(s.player(),"loadedmetadata",s.onLoadMetadata),s}return inherits(t,n),t.prototype.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-dvr-control vjs-control"},{style:"line-height: 3em; cursor: pointer"});return this.contentEl_=createEl("div",{className:"vjs-dvr-button-display",innerHTML:this.mode==="dvrEvent"?""+this.localize("返回直播"):""+this.localize("直播回看")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.handleClick=function(){this.dvrMode=this.player().dvrMode(),this.dvrMode==="dvrLive"?get_1(this,"player_.options_.plugins.Dvr.shiftURL")&&this.player_.LiveDvr().timeShift(0):get_1(this,"player_.options_.plugins.Dvr.liveURL")&&this.player_.LiveDvr().timeShift(100)},t.prototype.updateStatus=function(e){var r=document.getElementsByClassName("vjs-dvr-button-display")[0],s=e==="dvrLive"?""+this.localize("直播回看"):""+this.localize("返回直播");r&&(r.innerHTML=s)},t.prototype.onLoadMetadata=function(){this.dvrMode=this.player().dvrMode(),this.updateStatus(this.dvrMode),this.dvrMode==="dvrEvent"||this.dvrMode==="dvrLive"?this.show():this.hide()},t})(Button);Component.registerComponent("DvrButton",DvrButton);var Slider=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.bar=s.getChild(s.options_.barName),s.vertical(!!s.options_.vertical),s.enable(),s}return inherits(t,n),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 r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return r.className=r.className+" vjs-slider",r=assign({tabIndex:0},r),s=assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},s),n.prototype.createEl.call(this,e,r,s)},t.prototype.handleMouseDown=function(e){var r=this.bar.el_.ownerDocument;e.preventDefault(),blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(r,"mousemove",this.handleMouseMove),this.on(r,"mouseup",this.handleMouseUp),this.on(r,"touchmove",this.handleMouseMove),this.on(r,"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(),r=this.bar;if(r){(typeof e!="number"||e!==e||e<0||e===1/0)&&(e=0);var s=(100*e).toFixed(2)+"%",a=r.el().style;return this.vertical()?a.height=s:a.width=s,e}}},t.prototype.calculateDistance=function(e,r){var s=getPointerPosition(this.el_,e,r);return this.vertical()?s.y:s.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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.partEls_=[],s.on(e,"progress",s.update),s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,n.prototype.dispose.call(this)},t.prototype.update=function(e){var r=this.player_.buffered(),s=this.player_.duration(),a=this.player_.bufferedEnd(),u=this.partEls_,l=function(g,v){var S=g/v||0;return 100*(S>=1?1:S)+"%"};this.el_.style.width=l(a,s);for(var c=0;c<r.length;c++){var h=r.start(c),p=r.end(c),d=u[c];d||(d=this.el_.appendChild(createEl()),u[c]=d),d.style.left=l(h,a),d.style.width=l(p-h,a)}for(var y=u.length;y>r.length;y--)this.el_.removeChild(u[y-1]);u.length=r.length},t})(Component);Component.registerComponent("LoadProgressBar",LoadProgressBar);var TimeTooltip=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,r,s,a){var u=getBoundingClientRect(this.el_),l=getBoundingClientRect(this.player_.el()),c=e.width*r;if(l&&u){var h=e.left-l.left+c,p=e.width-c+(l.right-e.right),d=u.width/2;h<d?d+=d-h:p<d&&(d=p),d<0?d=0:d>u.width&&(d=u.width),this.el_.style.right="-"+d+"px",this.player_.plugins&&this.player_.plugins.pdt||(a="");var y=a?s+'<div style="white-space: nowrap;margin-top:5px">'+a+"</div>":s;this.el_.innerHTML=y}},t})(Component);Component.registerComponent("TimeTooltip",TimeTooltip);var PlayProgressBar=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,r){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(),u=formatDate(s.player_.currentPDT()),l=formatTime(a,s.player_.duration()),c=s.getChild("timeTooltip");c&&c.update(e,r,l,u)})},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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.update=throttle(bind(s,s.update),25),s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,r){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player_.duration(),u=formatTime(r*a,a),l=s.player_.scrubbing()?s.player_.getCache().currentTime:s.player_.currentTime(),c=r*a-l,h=s.player_.currentPDT(),p=h&&formatDate(h+1e3*c);s.el_.style.left=e.width*r+"px",s.getChild("timeTooltip").update(e,r,u,p)})},t})(Component);MouseTimeDisplay.prototype.options_={children:["timeTooltip"]},Component.registerComponent("MouseTimeDisplay",MouseTimeDisplay);var STEP_SECONDS=5,UPDATE_REFRESH_INTERVAL=30,SeekBar=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));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.farthestPercent=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,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,r){var s=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*r).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_),r)},t.prototype.update=function(e){var r=n.prototype.update.call(this);return this.farthestPercent=this.farthestPercent>r?this.farthestPercent:r,this.update_(this.getCurrentTime_(),r),r},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.beforeSeekTime=this.player_.currentTime(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),n.prototype.handleMouseDown.call(this,e))},t.prototype.handleMouseMove=function(e){if(isSingleLeftClick(e)){var r=this.calculateDistance(e,!!this.player_.screenRotated)*this.player_.duration();if(r===this.player_.duration()&&(r-=.1),this.player_.options_.forbidFartherSeek){var s=this.farthestPercent*this.player_.duration();if(r>s)return this.player_.trigger({type:"forbidseek",farthestTime:s}),!1}this.player_.currentTime(r)}},t.prototype.enable=function(){n.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},t.prototype.disable=function(){n.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},t.prototype.handleMouseUp=function(e){n.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)):n.prototype.handleKeyPress&&n.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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.handleMouseMove=throttle(bind(s,s.handleMouseMove),25),s.throttledHandleMouseSeek=throttle(bind(s,s.handleMouseSeek),25),s.enable(),s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var r=this.getChild("seekBar"),s=r.getChild("mouseTimeDisplay"),a=r.el(),u=getBoundingClientRect(a),l=getPointerPosition(a,e,!!this.player_.screenRotated).x;l>1?l=1:l<0&&(l=0),s&&s.update(u,l)},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 r=this.el_.ownerDocument;this.on(r,"mousemove",this.throttledHandleMouseSeek),this.on(r,"touchmove",this.throttledHandleMouseSeek),this.on(r,"mouseup",this.handleMouseUp),this.on(r,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var r=this.el_.ownerDocument;this.off(r,"mousemove",this.throttledHandleMouseSeek),this.off(r,"touchmove",this.throttledHandleMouseSeek),this.off(r,"mouseup",this.handleMouseUp),this.off(r,"touchend",this.handleMouseUp)},t})(Component);ProgressControl.prototype.options_={children:["seekBar"]},Component.registerComponent("ProgressControl",ProgressControl);var PictureInPictureToggle=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on(e,["enterpictureinpicture","leavepictureinpicture"],s.handlePictureInPictureChange),s.on(e,["disablepictureinpicturechanged","loadedmetadata"],s.handlePictureInPictureEnabledChange),s.disable(),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-picture-in-picture-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handlePictureInPictureEnabledChange=function(){document_1.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1?this.enable():this.disable()},t.prototype.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},t.prototype.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t})(Button);PictureInPictureToggle.prototype.controlText_="Picture-in-Picture",Component.registerComponent("PictureInPictureToggle",PictureInPictureToggle);var CssFullscreenToggle=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on(e,"fullscreenchange",s.handleFullscreenChange),s}return inherits(t,n),t.prototype.createEl=function(){var e=n.prototype.createEl.call(this,"button",{className:"vjs-css-fullscreen-control "+n.prototype.buildCSSClass.call(this)});return this.contentEl_=createEl("div",{innerHTML:'<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1735540198133" style="width: 16px;height: 16px;margin-top: 2px" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3536" width="32" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M938.666667 85.333333a42.666667 42.666667 0 0 1 42.666666 42.666667v768a42.666667 42.666667 0 0 1-42.666666 42.666667H85.333333a42.666667 42.666667 0 0 1-42.666666-42.666667V128a42.666667 42.666667 0 0 1 42.666666-42.666667h853.333334z m-42.666667 85.333334H128v682.666666h768V170.666667z m-74.666667 384a10.666667 10.666667 0 0 1 10.666667 10.666666v213.333334a10.666667 10.666667 0 0 1-10.666667 10.666666h-213.333333a10.666667 10.666667 0 0 1-10.666667-10.666666v-64a10.666667 10.666667 0 0 1 10.666667-10.666667h128a10.666667 10.666667 0 0 0 10.666667-10.688V565.333333a10.666667 10.666667 0 0 1 10.666666-10.666666h64z m-405.333333-320a10.666667 10.666667 0 0 1 10.666667 10.666666v64a10.666667 10.666667 0 0 1-10.666667 10.666667h-128a10.666667 10.666667 0 0 0-10.666667 10.666667v128a10.666667 10.666667 0 0 1-10.666666 10.666666h-64a10.666667 10.666667 0 0 1-10.666667-10.666666v-213.333334a10.666667 10.666667 0 0 1 10.666667-10.666666h213.333333z" fill="#ffffff" p-id="3537"></path></svg>'}),e.appendChild(this.contentEl_),e},t.prototype.handleFullscreenChange=function(e){setTimeout(function(){this.player_.isFullscreen()?(this.controlText("Non-Fullscreen"),this.contentEl_.className="vjs-hidden"):(this.controlText("Fullscreen"),this.contentEl_.className="")},10)},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen(!0):this.player_.requestFullscreen(!0)},t})(Button);CssFullscreenToggle.prototype.controlText_="CssFullscreen",Component.registerComponent("CssFullscreenToggle",CssFullscreenToggle);var FullscreenToggle=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on(e,"fullscreenchange",s.handleFullscreenChange),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+n.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 FullscreenRotate=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.screenRotated=!1,s}return inherits(t,n),t.prototype.createEl=function(){var e=n.prototype.createEl.call(this,"button",{className:"vjs-rotatescreen-control vjs-control"});return this.contentEl_=createEl("div",{innerHTML:`<svg style="width: 24px;height: 24px;margin-top:7px" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 40 40" fill="none">
|
||
<g clip-path="url(#clip0)">
|
||
<path transform="scale(1.5 1.5)" d="M11.6665 9.16663H4.1665C2.78579 9.16663 1.6665 10.2859 1.6665 11.6666V15.8333C1.6665 17.214 2.78579 18.3333 4.1665 18.3333H11.6665C13.0472 18.3333 14.1665 17.214 14.1665 15.8333V11.6666C14.1665 10.2859 13.0472 9.16663 11.6665 9.16663Z" fill="white"></path>
|
||
<path transform="scale(1.5 1.5)" fill-rule="evenodd" clip-rule="evenodd" d="M3.88148 4.06298C3.75371 4.21005 3.67667 4.40231 3.67749 4.61242C3.67847 4.87253 3.79852 5.10435 3.98581 5.25646L6.99111 8.05895C7.32771 8.37283 7.85502 8.35443 8.16891 8.01782C8.48279 7.68122 8.46437 7.15391 8.12778 6.84003L6.62061 5.43457L9.8198 5.4224C9.82848 5.42239 9.8372 5.42221 9.84591 5.4219C10.9714 5.38233 12.0885 5.6285 13.0931 6.13744C14.0976 6.64635 14.957 7.40148 15.5908 8.33234C16.2246 9.2632 16.6122 10.3394 16.7177 11.4606C16.823 12.5819 16.6427 13.7115 16.1934 14.7442C16.0098 15.1661 16.203 15.6571 16.6251 15.8408C17.0471 16.0243 17.5381 15.8311 17.7216 15.4091C18.2833 14.1183 18.5087 12.7063 18.3771 11.3047C18.2453 9.90318 17.7607 8.55792 16.9684 7.39433C16.1761 6.23073 15.1021 5.28683 13.8463 4.65065C12.5946 4.01651 11.203 3.70872 9.80072 3.75583L6.43415 3.76862L7.96326 2.12885C8.27715 1.79225 8.25872 1.26494 7.92213 0.951061C7.58553 0.63718 7.05822 0.655585 6.74433 0.99219L3.90268 4.0395C3.89545 4.04724 3.88841 4.05509 3.88154 4.06303L3.88148 4.06298Z" fill="white"></path>
|
||
</g>
|
||
<defs>
|
||
<clipPath id="clip0">
|
||
<rect width="40" height="40" fill="white"></rect>
|
||
</clipPath>
|
||
</defs>
|
||
</svg>`}),e.appendChild(this.contentEl_),e},t.prototype.handleClick=function(e){this.screenRotated?(this.player_.exitRotatescreen(),this.screenRotated=!1):(this.player_.requestRotatescreen(),this.screenRotated=!0)},t})(Button);FullscreenRotate.prototype.controlText_="Rotate",Component.registerComponent("FullscreenRotate",FullscreenRotate);var checkVolumeSupport=function(n,t){!t.tech_||t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_&&t.tech_.featuresVolumeControl&&n.addClass("enable-volume-control"):n.addClass("vjs-hidden"),n.on(t,"loadstart",function(){t.tech_.featuresVolumeControl||t.tech_.featuresMuteControl?t.tech_.featuresVolumeControl&&(n.removeClass("vjs-hidden"),n.addClass("enable-volume-control")):n.addClass("vjs-hidden")})},VolumeLevel=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t})(Component);Component.registerComponent("VolumeLevel",VolumeLevel);var VolumeBar=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on("slideractive",s.updateLastVolume_),s.on(e,"volumechange",s.updateARIAAttributes),e.ready(function(){return s.updateARIAAttributes()}),s}return inherits(t,n),t.prototype.createEl=function(){return n.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)&&n.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 r=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",r),this.el_.setAttribute("aria-valuetext",r+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,r=this.player_.volume();this.one("sliderinactive",function(){e.player_.volume()===0&&e.player_.lastVolume_(r)})},t})(Slider);VolumeBar.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},VolumeBar.prototype.playerEvent="volumechange",Component.registerComponent("VolumeBar",VolumeBar);var VolumeControl=(function(n){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),r.vertical=r.vertical||!1,(typeof r.volumeBar>"u"||isPlain(r.volumeBar))&&(r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=r.vertical);var s=possibleConstructorReturn(this,n.call(this,e,r));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,n),t.prototype.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},t.prototype.handleMouseDown=function(e){var r=this.el_.ownerDocument;this.on(r,"mousemove",this.throttledHandleMouseMove),this.on(r,"touchmove",this.throttledHandleMouseMove),this.on(r,"mouseup",this.handleMouseUp),this.on(r,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var r=this.el_.ownerDocument;this.off(r,"mousemove",this.throttledHandleMouseMove),this.off(r,"touchmove",this.throttledHandleMouseMove),this.off(r,"mouseup",this.handleMouseUp),this.off(r,"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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return checkVolumeSupport(s,e),s.on(e,["loadstart","volumechange"],s.update),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+n.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var r=this.player_.volume(),s=this.player_.lastVolume_();if(r===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(),r=3;e===0||this.player_.muted()?r=0:e<.33?r=1:e<.67&&(r=2);for(var s=0;s<4;s++)removeClass(this.el_,"vjs-vol-"+s);addClass(this.el_,"vjs-vol-"+r)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||this.player_.volume()===0,r=e?"Unmute":"Mute";this.controlText()!==r&&this.controlText(r)},t})(Button);MuteToggle.prototype.controlText_="Mute",Component.registerComponent("MuteToggle",MuteToggle);var VolumePanel=(function(n){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t),typeof r.inline<"u"?r.inline=r.inline:r.inline=!0,(typeof r.volumeControl>"u"||isPlain(r.volumeControl))&&(r.volumeControl=r.volumeControl||{},r.volumeControl.vertical=!r.inline);var s=possibleConstructorReturn(this,n.call(this,e,r));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,n),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"),n.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(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return r&&(s.menuButton_=r.menuButton),s.focusedChild_=-1,s.on("keydown",s.handleKeyPress),s}return inherits(t,n),t.prototype.addItem=function(e){this.addChild(e),e.on("click",bind(this,function(r){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 r=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return r.appendChild(this.contentEl_),on(r,"click",function(s){s.preventDefault(),s.stopImmediatePropagation()}),r},t.prototype.dispose=function(){this.contentEl_=null,n.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,r=this.children().slice();r.length&&r[0].className&&/vjs-menu-title/.test(r[0].className)&&r.shift(),r.length>0&&(e<0?e=0:e>=r.length&&(e=r.length-1),this.focusedChild_=e,r[e].el_.focus())},t})(Component);Component.registerComponent("Menu",Menu);var MenuButton=(function(n){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));s.menuButton_=new Button(e,r),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,n),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 r=createEl("li",{className:"vjs-menu-title",innerHTML:toTitleCase(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(r),prependTo(r,e.contentEl())}if(this.items=this.createItems(),this.items)for(var s=0;s<this.items.length;s++)e.addItem(this.items[s]);return e},t.prototype.createItems=function(){},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Button.prototype.buildCSSClass()+" "+n.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var e="vjs-menu-button";return this.options_.inline===!0?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+n.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,r)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",bind(this,function(r){this.unpressButton(),this.el_.blur()})),(IS_IOS||IS_ANDROID)&&this.name_==="SubsCapsButton"&&(this.menu.el_.className==="vjs-menu"?this.buttonPressed_=!1:this.buttonPressed_=!0),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(n){function t(e,r){classCallCheck(this,t);var s=r.tracks,a=possibleConstructorReturn(this,n.call(this,e,r));if(a.items.length<=1&&a.hide(),!s)return possibleConstructorReturn(a);var u=bind(a,a.update);return s.addEventListener("removetrack",u),s.addEventListener("addtrack",u),a.player_.on("ready",u),a.player_.on("dispose",function(){s.removeEventListener("removetrack",u),s.removeEventListener("addtrack",u)}),a}return inherits(t,n),t})(MenuButton);Component.registerComponent("TrackButton",TrackButton);var MenuItem=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.selectable=r.selectable,s.selected(r.selected),s.selectable?s.el_.setAttribute("role","menuitemcheckbox"):s.el_.setAttribute("role","menuitem"),s}return inherits(t,n),t.prototype.createEl=function(e,r,s){return this.nonIconControl=!0,n.prototype.createEl.call(this,"li",assign({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},r),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(n){function t(e,r){classCallCheck(this,t);var s=r.track,a=e.textTracks();r.label=s.label||s.language||"Unknown",r.selected=s.mode==="showing";var u=possibleConstructorReturn(this,n.call(this,e,r));u.track=s;var l=function(){for(var p=arguments.length,d=Array(p),y=0;y<p;y++)d[y]=arguments[y];u.handleTracksChange.apply(u,d)},c=function(){for(var p=arguments.length,d=Array(p),y=0;y<p;y++)d[y]=arguments[y];u.handleSelectedLanguageChange.apply(u,d)};if(e.on(["loadstart","texttrackchange"],l),a.addEventListener("change",l),a.addEventListener("selectedlanguagechange",c),u.on("dispose",function(){e.off(["loadstart","texttrackchange"],l),a.removeEventListener("change",l),a.removeEventListener("selectedlanguagechange",c)}),a.onchange===void 0){var h=void 0;u.on(["tap","click"],function(){if(_typeof(window_1.Event)!=="object")try{h=new window_1.Event("change")}catch{}h||(h=document_1.createEvent("Event"),h.initEvent("change",!0,!0)),a.dispatchEvent(h)})}return u.handleTracksChange(),u}return inherits(t,n),t.prototype.handleClick=function(e){var r=this.track.kind,s=this.track.kinds,a=this.player_.textTracks();if(s||(s=[r]),n.prototype.handleClick.call(this,e),a)for(var u=0;u<a.length;u++){var l=a[u];l===this.track&&s.indexOf(l.kind)>-1?l.mode!=="showing"&&(l.mode="showing"):l.mode!=="disabled"&&(l.mode="disabled")}},t.prototype.handleTracksChange=function(e){this.selected(this.track.mode==="showing")},t.prototype.handleSelectedLanguageChange=function(e){if(this.track.mode==="showing"){var r=this.player_.cache_.selectedLanguage;if(r&&r.enabled&&r.language===this.track.language&&r.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,n.prototype.dispose.call(this)},t})(MenuItem);Component.registerComponent("TextTrackMenuItem",TextTrackMenuItem);var OffTextTrackMenuItem=(function(n){function t(e,r){return classCallCheck(this,t),r.track={player:e,kind:r.kind,kinds:r.kinds,default:!1,mode:"disabled"},r.kinds||(r.kinds=[r.kind]),r.label?r.track.label=r.label:r.track.label=r.kinds.join(" and ")+" off",r.selectable=!0,possibleConstructorReturn(this,n.call(this,e,r))}return inherits(t,n),t.prototype.handleTracksChange=function(e){for(var r=this.player().textTracks(),s=!0,a=0,u=r.length;a<u;a++){var l=r[a];if(this.options_.kinds.indexOf(l.kind)>-1&&l.mode==="showing"){s=!1;break}}if(this.selected(s),IS_IOS||IS_ANDROID){var c=document.getElementsByClassName("vjs-subs-caps-button"),h=get_1(c,"[0].children[1]");h&&(h.className="vjs-menu")}},t.prototype.handleSelectedLanguageChange=function(e){for(var r=this.player().textTracks(),s=!0,a=0,u=r.length;a<u;a++){var l=r[a];if(["captions","descriptions","subtitles"].indexOf(l.kind)>-1&&l.mode==="showing"){s=!1;break}}s&&(this.player_.cache_.selectedLanguage={enabled:!1})},t})(TextTrackMenuItem);Component.registerComponent("OffTextTrackMenuItem",OffTextTrackMenuItem);var TextTrackButton=(function(n){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),r.tracks=e.textTracks(),possibleConstructorReturn(this,n.call(this,e,r))}return inherits(t,n),t.prototype.createItems=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=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 u=0;u<a.length;u++){var l=a[u];if(this.kinds_.indexOf(l.kind)>-1){var c=new r(this.player_,{track:l,selectable:!0});c.addClass("vjs-"+l.kind+"-menu-item"),e.push(c)}}return e},t})(TrackButton);Component.registerComponent("TextTrackButton",TextTrackButton);var ChaptersTrackMenuItem=(function(n){function t(e,r){classCallCheck(this,t);var s=r.track,a=r.cue,u=e.currentTime();r.selectable=!0,r.label=a.text,r.selected=a.startTime<=u&&u<a.endTime;var l=possibleConstructorReturn(this,n.call(this,e,r));return l.track=s,l.cue=a,s.addEventListener("cuechange",bind(l,l.update)),l}return inherits(t,n),t.prototype.handleClick=function(e){n.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var r=this.cue,s=this.player_.currentTime();this.selected(r.startTime<=s&&s<r.endTime)},t})(MenuItem);Component.registerComponent("ChaptersTrackMenuItem",ChaptersTrackMenuItem);var ChaptersButton=(function(n){function t(e,r,s){return classCallCheck(this,t),possibleConstructorReturn(this,n.call(this,e,r,s))}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(e){this.track_&&(!e||e.type!=="addtrack"&&e.type!=="removetrack")||this.setTrack(this.findChaptersTrack()),n.prototype.update.call(this)},t.prototype.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var r=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);r&&r.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var s=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);s&&s.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],r=e.length-1;r>=0;r--){var s=e[r];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(),n.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var r=this.track_.cues;if(!r)return e;for(var s=0,a=r.length;s<a;s++){var u=r[s],l=new ChaptersTrackMenuItem(this.player_,{track:this.track_,cue:u});e.push(l)}return e},t})(TextTrackButton);ChaptersButton.prototype.kind_="chapters",ChaptersButton.prototype.controlText_="Chapters",Component.registerComponent("ChaptersButton",ChaptersButton);var DescriptionsButton=(function(n){function t(e,r,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,n.call(this,e,r,s)),u=e.textTracks(),l=bind(a,a.handleTracksChange);return u.addEventListener("change",l),a.on("dispose",function(){u.removeEventListener("change",l)}),a}return inherits(t,n),t.prototype.handleTracksChange=function(e){for(var r=this.player().textTracks(),s=!1,a=0,u=r.length;a<u;a++){var l=r[a];if(l.kind!==this.kind_&&l.mode==="showing"){s=!0;break}}s?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+n.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+n.prototype.buildWrapperCSSClass.call(this)},t})(TextTrackButton);DescriptionsButton.prototype.kind_="descriptions",DescriptionsButton.prototype.controlText_="Descriptions",Component.registerComponent("DescriptionsButton",DescriptionsButton);var SubtitlesButton=(function(n){function t(e,r,s){return classCallCheck(this,t),possibleConstructorReturn(this,n.call(this,e,r,s))}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildWrapperCSSClass.call(this)},t})(TextTrackButton);SubtitlesButton.prototype.kind_="subtitles",SubtitlesButton.prototype.controlText_="Subtitles",Component.registerComponent("SubtitlesButton",SubtitlesButton);var CaptionSettingsMenuItem=(function(n){function t(e,r){classCallCheck(this,t),r.track={player:e,kind:r.kind,label:r.kind+" settings",selectable:!1,default:!1,mode:"disabled"},r.selectable=!1,r.name="CaptionSettingsMenuItem";var s=possibleConstructorReturn(this,n.call(this,e,r));return s.addClass("vjs-texttrack-settings"),s.controlText(", opens "+r.kind+" settings dialog"),s}return inherits(t,n),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t})(TextTrackMenuItem);Component.registerComponent("CaptionSettingsMenuItem",CaptionSettingsMenuItem);var CaptionsButton=(function(n){function t(e,r,s){return classCallCheck(this,t),possibleConstructorReturn(this,n.call(this,e,r,s))}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+n.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(e.push(new CaptionSettingsMenuItem(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),n.prototype.createItems.call(this,e)},t})(TextTrackButton);CaptionsButton.prototype.kind_="captions",CaptionsButton.prototype.controlText_="Captions",Component.registerComponent("CaptionsButton",CaptionsButton);var SubsCapsMenuItem=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(e,r,s){var a='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return this.options_.track.kind==="captions"&&(a+=`
|
||
<span aria-hidden="true" class="vjs-icon-placeholder"></span>
|
||
<span class="vjs-control-text"> `+this.localize("Captions")+`</span>
|
||
`),a+="</span>",n.prototype.createEl.call(this,e,assign({innerHTML:a},r),s)},t})(TextTrackMenuItem);Component.registerComponent("SubsCapsMenuItem",SubsCapsMenuItem);var SubsCapsButton=(function(n){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(s.player_.language_)>-1&&(s.label_="captions"),s.menuButton_.controlText(toTitleCase(s.label_)),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+n.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||IS_IOS||IS_ANDROID||(e.push(new CaptionSettingsMenuItem(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=n.prototype.createItems.call(this,e,SubsCapsMenuItem)},t})(TextTrackButton);SubsCapsButton.prototype.kinds_=["captions","subtitles"],SubsCapsButton.prototype.controlText_="Subtitles",Component.registerComponent("SubsCapsButton",SubsCapsButton);var AudioTrackMenuItem=(function(n){function t(e,r){classCallCheck(this,t);var s=r.track,a=e.audioTracks();r.label=s.label||s.language||"Unknown",r.selected=s.enabled;var u=possibleConstructorReturn(this,n.call(this,e,r));u.track=s;var l=function(){for(var c=arguments.length,h=Array(c),p=0;p<c;p++)h[p]=arguments[p];u.handleTracksChange.apply(u,h)};return u.changeHandler=l,a.addEventListener("change",l),a.addEventListener("enabledchange",l),u.on("dispose",function(){a.removeEventListener("change",l),a.removeEventListener("enabledchange",l)}),u}return inherits(t,n),t.prototype.handleClick=function(e){var r=this.player_.audioTracks();n.prototype.handleClick.call(this,e),this.player_.tech_.hlsProvider.hls.audioTrack=this.track.id;for(var s=0;s<r.length;s++){var a=r[s];a.enabled=a===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t})(MenuItem);Component.registerComponent("AudioTrackMenuItem",AudioTrackMenuItem);var AudioTrackButton=(function(n){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return classCallCheck(this,t),r.tracks=e.audioTracks(),possibleConstructorReturn(this,n.call(this,e,r))}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+n.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+n.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];this.hideThreshold_=1;for(var r=this.player_.audioTracks(),s=0;s<r.length;s++){var a=r[s];e.push(new AudioTrackMenuItem(this.player_,{track:a,selectable:!0}))}return e},t})(TrackButton);AudioTrackButton.prototype.controlText_="Audio Track",Component.registerComponent("AudioTrackButton",AudioTrackButton);var PlaybackRateMenuItem=(function(n){function t(e,r){classCallCheck(this,t);var s=r.rate,a=parseFloat(s,10);r.label=s,r.selected=a===1,r.selectable=!0;var u=possibleConstructorReturn(this,n.call(this,e,r));return u.label=s,u.rate=a,u.on(e,"ratechange",u.update),u}return inherits(t,n),t.prototype.handleClick=function(e){n.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t})(MenuItem);PlaybackRateMenuItem.prototype.contentElType="button",Component.registerComponent("PlaybackRateMenuItem",PlaybackRateMenuItem);var PlaybackRateMenuButton=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.updateVisibility(),s.updateLabel(),s.on(e,"loadstart",s.updateVisibility),s.on(e,"ratechange",s.updateLabel),s}return inherits(t,n),t.prototype.createEl=function(){var e=n.prototype.createEl.call(this);return this.labelEl_=createEl("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),e.appendChild(this.labelEl_),e},t.prototype.dispose=function(){this.labelEl_=null,n.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var e=new Menu(this.player()),r=this.playbackRates();if(r)for(var s=r.length-1;s>=0;s--)e.addChild(new PlaybackRateMenuItem(this.player(),{rate:r[s]+"x"}));return e},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var r=this.player().playbackRate(),s=this.playbackRates(),a=s[0],u=0;u<s.length;u++)if(s[u]>r){a=s[u];break}this.player().playbackRate(a)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){var r=this.player().playbackRate();if(r===1.1)return!1;this.playbackRateSupported()&&(this.labelEl_.innerHTML=r+"x")},t})(MenuButton);PlaybackRateMenuButton.prototype.controlText_="Playback Rate",Component.registerComponent("PlaybackRateMenuButton",PlaybackRateMenuButton);var Spacer=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t})(Component);Component.registerComponent("Spacer",Spacer);var CustomControlSpacer=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+n.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var e=n.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},t})(Spacer);Component.registerComponent("CustomControlSpacer",CustomControlSpacer);var ControlBar=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},t})(Component);ControlBar.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","PDTDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","dvrButton","playbackRateMenuButton","chaptersButton","descriptionsButton","audioTrackButton","subsCapsButton","cssFullscreenToggle","fullscreenToggle"]},"exitPictureInPicture"in document&&ControlBar.prototype.options_.children.splice(ControlBar.prototype.options_.children.length-2,0,"pictureInPictureToggle"),Component.registerComponent("ControlBar",ControlBar);var ErrorDisplay=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on(e,"error",s.open),s}return inherits(t,n),t.prototype.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t})(ModalDialog);ErrorDisplay.prototype.options_=mergeOptions(ModalDialog.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Component.registerComponent("ErrorDisplay",ErrorDisplay);var LOCAL_STORAGE_KEY="vjs-text-track-settings",COLOR_BLACK=["#000","Black"],COLOR_BLUE=["#00F","Blue"],COLOR_CYAN=["#0FF","Cyan"],COLOR_GREEN=["#0F0","Green"],COLOR_MAGENTA=["#F0F","Magenta"],COLOR_RED=["#F00","Red"],COLOR_WHITE=["#FFF","White"],COLOR_YELLOW=["#FF0","Yellow"],OPACITY_OPAQUE=["1","Opaque"],OPACITY_SEMI=["0.5","Semi-Transparent"],OPACITY_TRANS=["0","Transparent"],selectConfigs={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[COLOR_BLACK,COLOR_WHITE,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[OPACITY_SEMI,OPACITY_OPAQUE,OPACITY_TRANS]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[COLOR_WHITE,COLOR_BLACK,COLOR_RED,COLOR_GREEN,COLOR_BLUE,COLOR_YELLOW,COLOR_MAGENTA,COLOR_CYAN]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(n){return n==="1.00"?null:Number(n)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[OPACITY_OPAQUE,OPACITY_SEMI]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[OPACITY_TRANS,OPACITY_SEMI,OPACITY_OPAQUE]}};selectConfigs.windowColor.options=selectConfigs.backgroundColor.options;var TextTrackSettings=(function(n){function t(e,r){classCallCheck(this,t),r.temporary=!1;var s=possibleConstructorReturn(this,n.call(this,e,r));return s.updateDisplay=bind(s,s.updateDisplay),s.fill(),s.hasBeenOpened_=s.hasBeenFilled_=!0,s.endDialog=createEl("p",{className:"vjs-control-text",textContent:s.localize("End of dialog window.")}),s.el().appendChild(s.endDialog),s.setDefaults(),r.persistTextTrackSettings===void 0&&(s.options_.persistTextTrackSettings=s.options_.playerOptions.persistTextTrackSettings),s.on(s.$(".vjs-done-button"),"click",function(){s.saveSettings(),s.close()}),s.on(s.$(".vjs-default-button"),"click",function(){s.setDefaults(),s.updateDisplay()}),each(selectConfigs,function(a){s.on(s.$(a.selector),"change",s.updateDisplay)}),s.options_.persistTextTrackSettings&&s.restoreSettings(),s}return inherits(t,n),t.prototype.dispose=function(){this.endDialog=null,n.prototype.dispose.call(this)},t.prototype.createElSelect_=function(e){var r=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"label",u=selectConfigs[e],l=u.id.replace("%s",this.id_);return["<"+a+' id="'+l+'" class="'+(a==="label"?"vjs-label":"")+'">',this.localize(u.label),"</"+a+">",'<select aria-labelledby="'+(s!==""?s+" ":"")+l+'">'].concat(u.options.map(function(c){var h=l+"-"+c[1];return['<option id="'+h+'" value="'+c[0]+'" ','aria-labelledby="'+(s!==""?s+" ":"")+l+" "+h+'">',r.localize(c[1]),"</option>"].join("")})).concat("</select>").join("")},t.prototype.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.prototype.createElColors_=function(){return createEl("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return createEl("div",{className:'vjs-track-settings-font">',innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return createEl("div",{className:"vjs-track-settings-controls",innerHTML:['<button class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return n.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return reduce(selectConfigs,function(r,s,a){var u=getSelectedOptionValue(e.$(s.selector),s.parser);return u!==void 0&&(r[a]=u),r},{})},t.prototype.setValues=function(e){var r=this;each(selectConfigs,function(s,a){setSelectedOption(r.$(s.selector),e[a],s.parser)})},t.prototype.setDefaults=function(){var e=this;each(selectConfigs,function(r){var s=r.hasOwnProperty("default")?r.default:0;e.$(r.selector).selectedIndex=s})},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(window_1.localStorage.getItem(LOCAL_STORAGE_KEY))}catch(r){log$2.warn(r)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?window_1.localStorage.setItem(LOCAL_STORAGE_KEY,JSON.stringify(e)):window_1.localStorage.removeItem(LOCAL_STORAGE_KEY)}catch(r){log$2.warn(r)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(document_1,"keydown",this.handleKeyDown);var e=this.player_.controlBar,r=e&&e.subsCapsButton,s=e&&e.captionsButton;r?r.focus():s&&s.focus()},t})(ModalDialog);Component.registerComponent("TextTrackSettings",TextTrackSettings);var _templateObject$2=taggedTemplateLiteralLoose([`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
|
||
This may prevent text tracks from loading.`],[`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
|
||
This may prevent text tracks from loading.`]),Html5=(function(n){function t(e,r,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,n.call(this,e,r,s)),u=r.source,l=!1;if(u&&(a.el_.currentSrc!==u.src||r.tag&&r.tag.initNetworkState_===3)?a.setSource(u):a.handleLateInit_(a.el_),a.el_.hasChildNodes()){for(var c=a.el_.childNodes,h=c.length,p=[];h--;){var d=c[h];d.nodeName.toLowerCase()==="track"&&(a.featuresNativeTextTracks?(a.remoteTextTrackEls().addTrackElement_(d),a.remoteTextTracks().addTrack(d.track),a.textTracks().addTrack(d.track),l||a.el_.hasAttribute("crossorigin")||!isCrossOrigin(d.src)||(l=!0)):p.push(d))}for(var y=0;y<p.length;y++)a.el_.removeChild(p[y])}return a.proxyNativeTracks_(),a.featuresNativeTextTracks&&l&&log$2.warn(tsml(_templateObject$2)),a.restoreMetadataTracksInIOSNativePlayer_(),(TOUCH_ENABLED||IS_IPHONE||IS_NATIVE_ANDROID)&&r.nativeControlsForTouch===!0&&a.setControls(!0),a.proxyWebkitFullscreen_(),a.triggerReady(),a}return inherits(t,n),t.prototype.dispose=function(){t.disposeMediaElement(this.el_),this.options_=null,n.prototype.dispose.call(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),r=void 0,s=function(){r=[];for(var u=0;u<e.length;u++){var l=e[u];l.kind==="metadata"&&r.push({track:l,storedMode:l.mode})}};s(),e.addEventListener("change",s),this.on("dispose",function(){return e.removeEventListener("change",s)});var a=function u(){for(var l=0;l<r.length;l++){var c=r[l];c.track.mode==="disabled"&&c.track.mode!==c.storedMode&&(c.track.mode=c.storedMode)}e.removeEventListener("change",u)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",s),e.removeEventListener("change",a),e.addEventListener("change",a)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",s),e.addEventListener("change",s),e.removeEventListener("change",a)})},t.prototype.proxyNativeTracks_=function(){var e=this;NORMAL.names.forEach(function(r){var s=NORMAL[r],a=e.el()[s.getterName],u=e[s.getterName]();if(e["featuresNative"+s.capitalName+"Tracks"]&&a&&a.addEventListener){var l={change:function(h){u.trigger({type:"change",target:u,currentTarget:u,srcElement:u})},addtrack:function(h){u.addTrack(h.track)},removetrack:function(h){u.removeTrack(h.track)}},c=function(){for(var h=[],p=0;p<u.length;p++){for(var d=!1,y=0;y<a.length;y++)if(a[y]===u[p]){d=!0;break}d||h.push(u[p])}for(;h.length;)u.removeTrack(h.shift())};Object.keys(l).forEach(function(h){var p=l[h];a.addEventListener(h,p),e.on("dispose",function(d){return a.removeEventListener(h,p)})}),e.on("loadstart",c),e.on("dispose",function(h){return e.off("loadstart",c)})}})},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var r=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(r,e),t.disposeMediaElement(e),e=r}else{e=document_1.createElement("video");var s=this.options_.tag&&getAttributes(this.options_.tag),a=mergeOptions({},s);TOUCH_ENABLED&&this.options_.nativeControlsForTouch===!0||delete a.controls,setAttributes(e,assign(a,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&setAttribute(e,"preload",this.options_.preload);for(var u=["loop","muted","playsinline","autoplay"],l=0;l<u.length;l++){var c=u[l],h=this.options_[c];h!==void 0&&(h?setAttribute(e,c,c):removeAttribute(e,c),e[c]=h)}return e},t.prototype.handleLateInit_=function(e){if(e.networkState!==0&&e.networkState!==3){if(e.readyState===0){var r=!1,s=function(){r=!0};this.on("loadstart",s);var a=function(){r||this.trigger("loadstart")};return this.on("loadedmetadata",a),void this.ready(function(){this.off("loadstart",s),this.off("loadedmetadata",a),r||this.trigger("loadstart")})}var u=["loadstart"];u.push("loadedmetadata"),e.readyState>=2&&u.push("loadeddata"),e.readyState>=3&&u.push("canplay"),e.readyState>=4&&u.push("canplaythrough"),this.ready(function(){u.forEach(function(l){this.trigger(l)},this)})}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(r){log$2(r,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&IS_ANDROID&&IS_CHROME&&this.el_.currentTime===0){var r=function s(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",s))};return this.on("timeupdate",r),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var r=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},s=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",r),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",s),this.on("dispose",function(){e.off("webkitbeginfullscreen",s),e.off("webkitendfullscreen",r)})}},t.prototype.supportsFullScreen=function(){if(typeof this.el_.webkitEnterFullScreen=="function"){var e=window_1.navigator&&window_1.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(e===void 0)return this.el_.src;this.setSrc(e)},t.prototype.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(e,r,s){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,r,s):n.prototype.addTextTrack.call(this,e,r,s)},t.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return n.prototype.createRemoteTextTrack.call(this,e);var r=document_1.createElement("track");return e.kind&&(r.kind=e.kind),e.label&&(r.label=e.label),(e.language||e.srclang)&&(r.srclang=e.language||e.srclang),e.default&&(r.default=e.default),e.id&&(r.id=e.id),e.src&&(r.src=e.src),r},t.prototype.addRemoteTextTrack=function(e,r){var s=n.prototype.addRemoteTextTrack.call(this,e,r);return this.featuresNativeTextTracks&&this.el().appendChild(s),s},t.prototype.removeRemoteTextTrack=function(e){if(n.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var r=this.$$("track"),s=r.length;s--;)e!==r[s]&&e!==r[s].track||this.el().removeChild(r[s])},t.prototype.getVideoPlaybackQuality=function(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();var e={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),window_1.performance&&typeof window_1.performance.now=="function"?e.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(e.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),e},t})(Tech);if(isReal()){Html5.TEST_VID=document_1.createElement("video");var track=document_1.createElement("track");track.kind="captions",track.srclang="en",track.label="English",Html5.TEST_VID.appendChild(track)}Html5.isSupported=function(){try{Html5.TEST_VID.volume=.5}catch{return!1}return!(!Html5.TEST_VID||!Html5.TEST_VID.canPlayType)},Html5.canPlayType=function(n){return Html5.TEST_VID.canPlayType(n)},Html5.canPlaySource=function(n,t){return Html5.canPlayType(n.type)},Html5.canControlVolume=function(){try{var n=Html5.TEST_VID.volume;return Html5.TEST_VID.volume=n/2+.1,n!==Html5.TEST_VID.volume}catch{return!1}},Html5.canControlMute=function(){try{var n=Html5.TEST_VID.muted;return Html5.TEST_VID.muted=!0,n!==Html5.TEST_VID.muted}catch{return!1}},Html5.canControlPlaybackRate=function(){if(IS_ANDROID&&IS_CHROME&&CHROME_VERSION<58)return!1;try{var n=Html5.TEST_VID.playbackRate;return Html5.TEST_VID.playbackRate=n/2+.1,n!==Html5.TEST_VID.playbackRate}catch{return!1}},Html5.supportsNativeTextTracks=function(){return IS_ANY_SAFARI},Html5.supportsNativeVideoTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.videoTracks)},Html5.supportsNativeAudioTracks=function(){return!(!Html5.TEST_VID||!Html5.TEST_VID.audioTracks)},Html5.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Html5.prototype.featuresVolumeControl=Html5.canControlVolume(),Html5.prototype.featuresMuteControl=Html5.canControlMute(),Html5.prototype.featuresPlaybackRate=Html5.canControlPlaybackRate(),Html5.prototype.movingMediaElementInDOM=!IS_IOS,Html5.prototype.featuresFullscreenResize=!0,Html5.prototype.featuresProgressEvents=!0,Html5.prototype.featuresTimeupdateEvents=!0,Html5.prototype.featuresNativeTextTracks=Html5.supportsNativeTextTracks(),Html5.prototype.featuresNativeVideoTracks=Html5.supportsNativeVideoTracks(),Html5.prototype.featuresNativeAudioTracks=Html5.supportsNativeAudioTracks();var canPlayType=Html5.TEST_VID&&Html5.TEST_VID.constructor.prototype.canPlayType,mpegurlRE=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,mp4RE=/^video\/mp4/i;Html5.patchCanPlayType=function(){ANDROID_VERSION>=4&&!IS_FIREFOX?Html5.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&mpegurlRE.test(n)?"maybe":canPlayType.call(this,n)}:IS_OLD_ANDROID&&(Html5.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&mp4RE.test(n)?"maybe":canPlayType.call(this,n)})},Html5.unpatchCanPlayType=function(){var n=Html5.TEST_VID.constructor.prototype.canPlayType;return Html5.TEST_VID.constructor.prototype.canPlayType=canPlayType,n},Html5.patchCanPlayType(),Html5.disposeMediaElement=function(n){if(n){for(n.parentNode&&n.parentNode.removeChild(n);n.hasChildNodes();)n.removeChild(n.firstChild);n.removeAttribute("src"),typeof n.load=="function"&&(function(){try{n.load()}catch{}})()}},Html5.resetMediaElement=function(n){if(n){for(var t=n.querySelectorAll("source"),e=t.length;e--;)n.removeChild(t[e]);n.removeAttribute("src"),typeof n.load=="function"&&(function(){try{n.load()}catch{}})()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(n){Html5.prototype[n]=function(){return this.el_[n]||this.el_.hasAttribute(n)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(n){Html5.prototype["set"+toTitleCase(n)]=function(t){this.el_[n]=t,t?this.el_.setAttribute(n,n):this.el_.removeAttribute(n)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(n){Html5.prototype[n]=function(){return this.el_[n]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(n){Html5.prototype["set"+toTitleCase(n)]=function(t){n==="src"&&this.player_&&this.player_.trigger&&this.player_.trigger({type:"debug",data:{message:"debug === 播放地址直传 video: "+t}}),this.el_[n]=t}}),["pause","load","play"].forEach(function(n){Html5.prototype[n]=function(){return this.el_[n]()}}),Tech.withSourceHandlers(Html5),Html5.nativeSourceHandler={},Html5.nativeSourceHandler.canPlayType=function(n){setTimeout(function(){},2e3);try{return n==="video/m3u8"?"maybe":Html5.TEST_VID.canPlayType(n)}catch{return""}},Html5.nativeSourceHandler.canHandleSource=function(n,t){if(n.type)return Html5.nativeSourceHandler.canPlayType(n.type);if(n.src){var e=getFileExtension(n.src);return Html5.nativeSourceHandler.canPlayType("video/"+e)}return""},Html5.nativeSourceHandler.handleSource=function(n,t,e){t.setSrc(n.src)},Html5.nativeSourceHandler.dispose=function(){},Html5.registerSourceHandler(Html5.nativeSourceHandler),Tech.registerTech("Html5",Html5);var _templateObject$1=taggedTemplateLiteralLoose([`
|
||
Using the tech directly can be dangerous. I hope you know what you're doing.
|
||
See https://github.com/videojs/video.js/issues/2617 for more info.
|
||
`],[`
|
||
Using the tech directly can be dangerous. I hope you know what you're doing.
|
||
See https://github.com/videojs/video.js/issues/2617 for more info.
|
||
`]),preventScroll=function(n){n.preventDefault()},TECH_EVENTS_RETRIGGER=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","resize","volumechange","texttrackchange"],Player=(function(n){function t(e,r,s){if(classCallCheck(this,t),e.id=e.id||"vjs_video_"+newGUID(),r=assign(t.getTagSettings(e),r),r.initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if(typeof e.closest=="function"){var a=e.closest("[lang]");a&&a.getAttribute&&(r.language=a.getAttribute("lang"))}else for(var u=e;u&&u.nodeType===1;){if(getAttributes(u).hasOwnProperty("lang")){r.language=u.getAttribute("lang");break}u=u.parentNode}var l=possibleConstructorReturn(this,n.call(this,null,r,s));if(l.isReady_=!1,l.hasStarted_=!1,l.userActive_=!1,!l.options_||!l.options_.techOrder||!l.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(l.tag=e,l.tagAttributes=e&&getAttributes(e),l.language(l.options_.language),r.languages){var c={};Object.getOwnPropertyNames(r.languages).forEach(function(y){c[y.toLowerCase()]=r.languages[y]}),l.languages_=c}else l.languages_=t.prototype.options_.languages;l.cache_={},l.poster_=r.poster||"",l.controls_=!!r.controls,l.cache_.lastVolume=1,e.controls=!1,e.removeAttribute("controls"),r.controlBar&&r.controlBar.fullscreenRotate&&(l.conW=window_1.innerWidth||document_1.documentElement.clientWidth||document_1.body.clientWidth,l.conH=window_1.innerHeight||document_1.documentElement.clientHeight||document_1.body.clientHeight,l.currentDirection="portrait",l.lastDirection="portrait",l.recordDirection()),l.scrubbing_=!1,l.textTrackCleared_=!1,l.el_=l.createEl(),evented(l,{eventBusKey:"el_"});var h=mergeOptions(l.options_);if(r.plugins){var p=r.plugins,d=new Enc;l.enc=d,d.initPlugins(p,videojs,l)}return l.options_.playerOptions=h,l.middleware_=[],l.initChildren(),l.isAudio(e.nodeName.toLowerCase()==="audio"),l.controls()?l.addClass("vjs-controls-enabled"):l.addClass("vjs-controls-disabled"),l.el_.setAttribute("role","region"),l.isAudio()?l.el_.setAttribute("aria-label",l.localize("Audio Player")):l.el_.setAttribute("aria-label",l.localize("Video Player")),l.isAudio()&&l.addClass("vjs-audio"),l.flexNotSupported_()&&l.addClass("vjs-no-flex"),IS_IOS||IS_ANDROID||l.addClass("vjs-workinghover"),t.players[l.id_]=l,l.userActive(!0),l.reportUserActivity(),l.listenForUserActivity_(),l.on("fullscreenchange",l.handleFullscreenChange_),l.on("stageclick",l.handleStageClick_),l.changingSrc_=!1,l.playWaitingForReady_=!1,l.playOnLoadstart_=null,l.forceAutoplayInChrome_(),l}return inherits(t,n),t.prototype.setLicenseConfig=function(e){this.options_.licenseConfig=e},t.prototype.recordDirection=function(){var e=this,r=this;this.currentDirection="portrait",this.lastDirection="portrait";var s="onorientationchange"in window_1?"orientationchange":"resize";window_1.addEventListener(s,function(){if(e.fullscreenType()!=="rotate")return!1;window_1.orientation==0||window_1.orientation==180?(r.lastDirection=r.currentDirection.slice(),r.currentDirection="portrait"):(r.lastDirection=r.currentDirection.slice(),r.currentDirection="landscape"),e.screenRotated&&(r.lastDirection==="portrait"&&e.currentDirection==="landscape"&&r.landscapeForOrientation(),r.lastDirection==="landscape"&&e.currentDirection==="portrait"&&r.portrait(!0)),e.screenRotated||(r.lastDirection==="portrait"&&e.currentDirection==="landscape"&&r.landscapeForOrientation(),r.lastDirection==="landscape"&&e.currentDirection==="portrait"&&r.portrait(!0)),r.trigger("directionchanged")},!1)},t.prototype.requestRotatescreen=function(){var e=this;return e.screenRotated?(e.exitRotatescreen(),!1):(this.fullscreenType("rotate"),e.currentDirection!=="landscape"||e.screenRotated?(e.el_.style.width="100vw",e.el_.style.height="100%",e.el_.style.position="fixed",e.el_.style.zIndex="999",e.el_.style.top="0",document_1.body.style.overflowY="hidden",document_1.addEventListener("touchmove",preventScroll,{passive:!1}),void e.landscape()):(e.portrait(),!1))},t.prototype.portrait=function(){var e=this;e.screenRotated=!1,e.el_.removeAttribute("style")},t.prototype.landscapeForOrientation=function(){var e=this;e.portrait(),setTimeout(function(){var r=window_1.innerHeight||document_1.documentElement.clientHeight||document_1.body.clientHeight;e.el_.style.transform="rotate(0deg)",e.el_.style.width="100vw",e.el_.style.height=r+"px",e.el_.style["transform-origin"]="center center",e.el_.style["-webkit-transform-origin"]="center center"},150)},t.prototype.landscape=function(){var e=this;e.screenRotated=!0,e.el_.style.transform="rotate(90deg) translate("+(e.conH-e.conW)/2+"px,"+(e.conH-e.conW)/2+"px)",e.el_.style.width=e.conH+"px",e.el_.style.height=e.conW+"px",e.el_.style["transform-origin"]="center center",e.el_.style["-webkit-transform-origin"]="center center"},t.prototype.exitRotatescreen=function(){this.el_.removeAttribute("style"),document_1.removeEventListener("touchmove",preventScroll,{passive:!1}),document_1.body.style.overflowY="",this.screenRotated=!1,this.portrait(!0)},t.prototype.dispose=function(){if(!this.el_)return!1;this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),n.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=this.tag,r=void 0,s=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player"),a=this.tag.tagName.toLowerCase()==="video-js";s?r=this.el_=e.parentNode:a||(r=this.el_=n.prototype.createEl.call(this,"div"));var u=getAttributes(e);if(a){for(r=this.el_=e,e=this.tag=document_1.createElement("video");r.children.length;)e.appendChild(r.firstChild);hasClass(r,"video-js")||addClass(r,"video-js"),r.appendChild(e),s=this.playerElIngest_=r}if(e.setAttribute("tabindex","-1"),e.removeAttribute("width"),e.removeAttribute("height"),Object.getOwnPropertyNames(u).forEach(function(y){y==="class"?(r.className+=" "+u[y],a&&(e.className+=" "+u[y])):(r.setAttribute(y,u[y]),a&&e.setAttribute(y,u[y]))}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=r.player=this,this.addClass("vjs-paused"),window_1.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=createStyleElement("vjs-styles-dimensions");var l=$(".vjs-styles-defaults"),c=$("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var h=e.getElementsByTagName("a"),p=0;p<h.length;p++){var d=h.item(p);addClass(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!s&&e.parentNode.insertBefore(r,e),prependTo(e,r),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_=r,r},t.prototype.width=function(e,r){return this.dimension("width",e,r)},t.prototype.height=function(e,r){return this.dimension("height",e,r)},t.prototype.dimension=function(e,r,s){var a=e+"_";if(r===void 0)return this[a]||0;if(r==="")return this[a]=void 0,void this.updateStyleEl_();var u=parseFloat(r);if(isNaN(u))return void log$2.error('Improper value "'+r+'" supplied for for '+e);this[a]=u,this.updateStyleEl_(),this.isReady_&&!s&&this.trigger("playerresize")},t.prototype.fluid=function(e){if(e===void 0)return!!this.fluid_;this.fluid_=!!e,e?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.aspectRatio=function(e){if(e===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},t.prototype.updateStyleEl_=function(){if(window_1.VIDEOJS_NO_DYNAMIC_STYLE===!0){var e=typeof this.width_=="number"?this.width_:this.options_.width,r=typeof this.height_=="number"?this.height_:this.options_.height,s=this.tech_&&this.tech_.el();return void(s&&(e>=0&&(s.width=e),r>=0&&(s.height=r)))}var a=void 0,u=void 0,l=void 0,c=void 0;l=this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var h=l.split(":"),p=h[1]/h[0];a=this.width_!==void 0?this.width_:this.height_!==void 0?this.height_/p:this.videoWidth()||300,u=this.height_!==void 0?this.height_:a*p,c=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(c),setTextContent(this.styleEl_,`
|
||
.`+c+` {
|
||
width: `+a+`px;
|
||
height: `+u+`px;
|
||
}
|
||
|
||
.`+c+`.vjs-fluid {
|
||
padding-top: `+100*p+`%;
|
||
}
|
||
`)},t.prototype.loadTech_=function(e,r){var s=this;this.tech_&&this.unloadTech_();var a=toTitleCase(e),u=e.charAt(0).toLowerCase()+e.slice(1);a!=="Html5"&&this.tag&&(Tech.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=a,this.isReady_=!1;var l={source:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+a+"_api",autoplay:this.options_.autoplay,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],swf:this.options_.swf,hlsConfig:this.options_.hlsConfig,dashConfig:this.options_.dashConfig,flvConfig:this.options_.flvConfig,webrtcConfig:this.options_.webrtcConfig,xp2pConfig:this.options_.xp2pConfig};ALL.names.forEach(function(h){var p=ALL[h];l[p.getterName]=s[p.privateName]}),assign(l,this.options_[a]),assign(l,this.options_[u]),assign(l,this.options_[e.toLowerCase()]),this.tag&&(l.tag=this.tag),r&&r.src===this.cache_.src&&this.cache_.currentTime>0&&(l.startTime=this.cache_.currentTime);var c=Tech.getTech(e);if(!c)throw new Error("No Tech named '"+a+"' exists! '"+a+"' should be registered using videojs.registerTech()'");this.tech_=new c(this,l),this.tech_.ready(bind(this,this.handleTechReady_),!0),textTrackConverter.jsonToTextTracks(this.textTracksJson_||[],this.tech_),TECH_EVENTS_RETRIGGER.forEach(function(h){s.on(s.tech_,h,s["handleTech"+toTitleCase(h)+"_"])}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_),this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"x5videoexitfullscreen",this.handleX5ExitFullscreen_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||a==="Html5"&&this.tag||prependTo(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;ALL.names.forEach(function(r){var s=ALL[r];e[s.privateName]=e[s.getterName]()}),this.textTracksJson_=textTrackConverter.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},t.prototype.tech=function(e){return e===void 0&&log$2.warn(tsml(_templateObject$1)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.tech_&&(this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_))},t.prototype.removeTechControlsListeners_=function(){this.tech_&&(this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_))},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){log$2("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.licenseCheckFailed||this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},t.prototype.hasStarted=function(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(log$2.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){isSingleLeftClick(e)&&this.controls_&&(this.paused()?this.play():this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.toggleFullscreenClass_=function(){IS_IOS||(this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen"))},t.prototype.documentFullscreenChange_=function(e){var r=FullscreenApi;this.isFullscreen(document_1[r.fullscreenElement]),this.isFullscreen()===!1&&off(document_1,r.fullscreenchange,bind(this,this.documentFullscreenChange_)),prefixedAPI||this.trigger("fullscreenchange")},t.prototype.handleTechFullscreenChange_=function(e,r){r&&this.isFullscreen(r.isFullscreen),this.trigger("fullscreenchange")},t.prototype.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},t.prototype.handleTechEnterPictureInPicture_=function(e){this.wasPlayingBeforePictureInPicture_=!this.paused(),this.isInPictureInPicture(!0)},t.prototype.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1),this.wasPlayingBeforePictureInPicture_?silencePromise(this.play()):this.wasPlayingBeforePictureInPicture_===!1&&this.pause(),this.wasPlayingBeforePictureInPicture_=void 0},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},t.prototype.handleX5ExitFullscreen_=function(){this.removeClass("vjs-fullscreen"),this.isFullscreen_=!this.isFullscreen_},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,r){this.ready(function(){if(e in allowedSetters)return set$1(this.middleware_,this.tech_,e,r);try{this.tech_&&this.tech_[e](r)}catch(s){throw log$2(s),s}},!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in allowedGetters)return get$3(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(r){throw this.tech_[e]===void 0?(log$2("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",r),r):r.name==="TypeError"?(log$2("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",r),this.tech_.isReady_=!1,r):(log$2(r),r)}}},t.prototype.play=function(){var e=this;if(this.fatalError)return!1;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc())){try{if(this.tech_&&this.tech_.webrtcProvider&&this.tech_.webrtcProvider.webrtcPlayer){var r=this.tech_.webrtcProvider.webrtcPlayer;typeof r.resume=="function"&&r.resume()}}catch{}return this.techGet_("play")}this.playOnLoadstart_=function(){e.playOnLoadstart_=null,silencePromise(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){e.playWaitingForReady_=!1,silencePromise(e.play())})}},t.prototype.pause=function(){try{if(this.tech_&&this.tech_.webrtcProvider&&this.tech_.webrtcProvider.webrtcPlayer){var e=this.tech_.webrtcProvider.webrtcPlayer;typeof e.pause=="function"&&e.pause()}}catch{}this.techCall_("pause")},t.prototype.paused=function(){return this.techGet_("paused")!==!1},t.prototype.played=function(){return this.techGet_("played")||createTimeRanges(0,0)},t.prototype.scrubbing=function(e){if(e===void 0)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){if(e!==void 0)return e<0&&(e=0),void this.techCall_("setCurrentTime",e);try{return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime}catch{return 0}},t.prototype.currentPDT=function(e){if(!this.plugins||!this.plugins.pdt)return"";var r=get_1(this,"tech_.hlsProvider.hls.playingDate");if(!r)return"";var s=new Date(r).getTime();if(e){var a=this.currentTime(),u=e-s;return this.currentTime(a+u/1e3),!1}return s},t.prototype.duration=function(e,r){e&&r&&(this.cache_.dvrDuration=e);var s=get_1(this,"options_.plugins.Dvr.mode")==="event",a=this.dvrMode()==="dvrEvent";if(s&&a){var u=get_1(this,"tech_.hlsProvider.hls.levels[0].details.totalduration");u&&(this.cache_.duration=u),this.cache_.duration&&this.removeClass("vjs-live")}if(e===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;e=parseFloat(e),e<=0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.dvrMode=function(){if(!this.cache_.src)return"dvrDefalt";var e=this.options_.plugins.Dvr;return e&&e.mode==="event"&&e.shiftURL&&this.cache_.src===e.shiftURL&&(this.cache_.src.indexOf("tsEventmode=on")>-1||this.cache_.src.indexOf("mode")>-1)?"dvrEvent":this.cache_.src.indexOf("delay=")>-1?"dvrDelay":e&&e.mode==="event"&&e.liveURL&&e.spriteURL&&e.startTime&&this.cache_.src===e.liveURL?"dvrLive":"dvrDefalt"},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=createTimeRanges(0,0)),e},t.prototype.bufferedPercent=function(){return bufferedPercent(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),r=this.duration(),s=e.end(e.length-1);return s>r&&(s=r),s},t.prototype.volume=function(e){var r=void 0;if(e!==void 0){if(r=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=r,IS_IOS){r>0?(this.muted(!1),this.lastVolume_(r)):this.muted(!0);var s=get_1(this,"tech_.webrtcProvider.webrtcPlayer");if(s)return s.setVolume(100*r),!1}return this.techCall_("setVolume",r),void(r>0?(this.muted(!1),this.lastVolume_(r)):this.muted(!0))}return r=parseFloat(this.techGet_("volume")),isNaN(r)?1:r},t.prototype.muted=function(e){return e!==void 0?void this.techCall_("setMuted",e):this.techGet_("muted")||!1},t.prototype.defaultMuted=function(e){return e!==void 0?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){return e!==void 0&&e!==0?void(this.cache_.lastVolume=e):this.cache_.lastVolume},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){return e!==void 0?(this.isFullscreen_=!!e,void this.toggleFullscreenClass_()):!!this.isFullscreen_},t.prototype.fullscreenType=function(e){return e!==void 0?void(this.fullscreenType_=e):this.fullscreenType_},t.prototype.requestFullscreen=function(e){var r=FullscreenApi;if(this.isFullscreen(!0),e||this.options_.fakeFullscreen){this.fullscreenType("css");var s=this;return(IS_IOS||IS_ANDROID)&&s.forceFixSubtitlesFont(),IS_IOS?(s.el_.style.width="100vw",s.el_.style.height="100%",s.el_.style.position="fixed",s.el_.style.zIndex="999",s.el_.style.top="0",document_1.body.style.overflowY="hidden",document_1.addEventListener("touchmove",preventScroll,{passive:!1}),this.trigger("fullscreenchange")):(this.enterFullWindow(),this.trigger("fullscreenchange")),!1}this.fullscreenType("system"),r.requestFullscreen?(on(document_1,r.fullscreenchange,bind(this,this.documentFullscreenChange_)),this.el_[r.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(e){var r=FullscreenApi,s=this.fullscreenType();if(this.isFullscreen(!1),s==="css"||this.options_.fakeFullscreen)return(IS_IOS||IS_ANDROID)&&this.releaseSubtitlesFont(),IS_IOS?(this.el_.removeAttribute("style"),document_1.removeEventListener("touchmove",preventScroll,{passive:!1}),document_1.body.style.overflowY="",this.trigger("fullscreenchange")):(this.exitFullWindow(),this.trigger("fullscreenchange")),!1;r.requestFullscreen?document_1[r.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.forceFixSubtitlesFont=function(){loadCssText("tcp_force_fix_font",`
|
||
.vjs-text-track-display div div {
|
||
font: `+(get_1(this.getChild("textTrackDisplay").el_,"children[0].children[0].style.font")||"10px sans-serif")+`!important;
|
||
}
|
||
`)},t.prototype.releaseSubtitlesFont=function(e){var r=get_1(this.getChild("textTrackDisplay").el_,"children[0].children[0]");r&&(r.style.display="none"),e&&setTimeout(function(){releaseCssText("tcp_force_fix_font")},1e3)},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=document_1.documentElement.style.overflow,on(document_1,"keydown",bind(this,this.fullWindowOnEscKey)),document_1.documentElement.style.overflow="hidden",addClass(document_1.body,"vjs-full-window"),this.trigger("enterFullWindow")},t.prototype.fullWindowOnEscKey=function(e){e.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,off(document_1,"keydown",this.fullWindowOnEscKey),document_1.documentElement.style.overflow=this.docOrigOverflow,removeClass(document_1.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.setForbidFartherSeek=function(e){if(e===void 0)return!!this.options_.forbidFartherSeek;this.options_.forbidFartherSeek=e},t.prototype.disablePictureInPicture=function(e){if(e===void 0)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},t.prototype.isInPictureInPicture=function(e){return e!==void 0?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},t.prototype.requestPictureInPicture=function(){try{if("pictureInPictureEnabled"in document_1&&this.disablePictureInPicture()===!1)return this.techGet_("requestPictureInPicture")}catch{}},t.prototype.exitPictureInPicture=function(){if("pictureInPictureEnabled"in document_1)return document_1.exitPictureInPicture()},t.prototype.canPlayType=function(e){for(var r=void 0,s=0,a=this.options_.techOrder;s<a.length;s++){var u=a[s],l=Tech.getTech(u);if(l||(l=Component.getComponent(u)),l){if(l.isSupported()&&(r=l.canPlayType(e)))return r}else log$2.error('The "'+u+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var r=this,s=this.options_.techOrder.map(function(l){return[l,Tech.getTech(l)]}).filter(function(l){var c=l[0],h=l[1];return h?h.isSupported():(log$2.error('The "'+c+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),a=function(l,c,h){var p=void 0;return l.some(function(d){return c.some(function(y){if(p=h(d,y))return!0})}),p},u=function(l,c){var h=l[0];if(l[1].canPlaySource(c,r.options_[h.toLowerCase()]))return{source:c,tech:h}};return(this.options_.sourceOrder?a(e,s,(function(l){return function(c,h){return l(h,c)}})(u)):a(s,e,u))||!1},t.prototype.src=function(e){var r=this;if(e===void 0)return this.cache_.src||this.techGet_("src");var s=filterSource(e);if(s&&s[0]&&s[0].src&&isWebrtcUrl(s[0].src)&&!isWebRTCSupported()){if(this.options_.webrtcConfig&&this.options_.webrtcConfig.fallbackUrl)s[0].src=this.options_.webrtcConfig.fallbackUrl;else{var a=convertProtocol(s[0].src);s[0].src=a&&a[0]||s[0].src}this.setTimeout(function(){r.trigger({type:"webrtcfallback",data:{target:s[0].src}})},0)}if(!s.length)return void this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0);if(this.options_&&this.options_.hlsConfig&&(this.options_.hlsConfig.disable||this.options_.hlsConfig.skipHlsJs)&&s.map(function(l){l.skipHlsJs=!0}),this.cache_.source&&isWebrtcUrl(this.cache_.source.src)&&isWebrtcUrl(s[0].src)&&this.cache_.source.src!==s[0].src){var u=this.tech_.webrtcProvider;if(u&&u.webrtcPlayer&&u.webrtcPlayer.switchStream)return this.tech_.webrtcProvider.webrtcPlayer.switchStream(s[0].src),this.cache_.sources=s,this.cache_.source=s[0],!1}this.lastSource=this.cache_.sources&&JSON.parse(JSON.stringify(this.cache_.sources)),this.cache_.sources=s,this.changingSrc_=!0,this.cache_.source=s[0],this.lastSource&&!get_1(this,"options_.fileID")&&get_1(this,"options_.plugins.ContinuePlay")&&setTimeout(function(){r.ContinuePlay().init(r.cache_.source)},0);try{this.cache_.source&&!isWebrtcUrl(this.cache_.source.src)&&this.options_.autoplay&&setTimeout(function(){var l=r.play&&r.play();isPromise(l)&&l.then().catch(function(){r.trigger("blocked")})},1e3)}catch{}setSource(this,s[0],function(l,c){if(r.middleware_=c,r.src_(l)){if(s.length>1){var h=s.slice(1),p=h[0].qualityLabelList;return p&&r.QualitySwitcher().setOptions({qualityLabelList:{video:p.slice(1)}}),r.src(h)}return r.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void r.triggerReady()}r.changingSrc_=!1,r.cache_.src=l.src,setTech(c,r.tech_)})},t.prototype.src_=function(e){var r=this.selectSource([e]);return!r||(this.on("playing",function(){IS_IOS&&isWebrtcUrl(e.src)||this.trigger("audiorunning")}),window_1.performance&&typeof window_1.performance.mark=="function"&&window_1.performance.mark("firstFrameStart"),titleCaseEquals(r.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.options_.preload==="auto"&&this.load(),this.one("loadedmetadata",function(){this.memoryPlaybackRate!==1&&this.playbackRate(this.memoryPlaybackRate)})},!0),!1):(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.unload=function(e){if(e&&(this.fatalError=!0),!this.children_)return!1;try{this.pause(),this.tech_.hlsProvider&&this.tech_.hlsProvider.hls&&this.tech_.hlsProvider.hls.stopLoad(),this.tech_.flvProvider&&this.tech_.flvProvider.flv&&this.tech_.flvProvider.flv.unload(),this.tech_.webrtcProvider&&this.tech_.webrtcProvider.webrtcPlayer&&this.tech_.webrtcProvider.webrtcPlayer.stopPlay(),this.tech_.dashProvider&&this.tech_.dashProvider.dashPlayer&&this.tech_.dashProvider.dashPlayer.unload()}catch{}},t.prototype.reset=function(){this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var e=this.currentSource(),r=[];return Object.keys(e).length!==0&&r.push(e),this.cache_.sources||r},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return e!==void 0?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){return e!==void 0?(this.techCall_("setAutoplay",e),this.options_.autoplay=e,void this.ready(this.forceAutoplayInChrome_)):this.techGet_("autoplay",e)},t.prototype.forceAutoplayInChrome_=function(){this.paused()&&(this.autoplay()||this.options_.autoplay)&&IS_CHROME&&!IS_ANDROID&&this.play()},t.prototype.playsinline=function(e){return e!==void 0?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return e!==void 0?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=function(e){if(e===void 0)return this.poster_;e||(e=""),this.poster_=e,this.trigger("posterchange")},t.prototype.handleTechPosterChange_=function(){!this.poster_&&this.tech_&&this.tech_.poster&&(this.poster_=this.tech_.poster()||"",this.trigger("posterchange"))},t.prototype.controls=function(e){if(e===void 0)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=function(e){if(e===void 0)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},t.prototype.error=function(e){return e===void 0?this.error_||null:e===null?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new MediaError(e),this.addClass("vjs-error"),log$2.error("(CODE:"+this.error_.code+" "+MediaError.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger({type:"error",data:this.error_}))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=function(e){if(e===void 0)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(r){r.stopPropagation(),r.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},t.prototype.listenForUserActivity_=function(){var e=void 0,r=void 0,s=void 0,a=bind(this,this.reportUserActivity),u=function(p){p.screenX===r&&p.screenY===s||(r=p.screenX,s=p.screenY,a())},l=function(){a(),this.clearInterval(e),e=this.setInterval(a,250)},c=function(p){a(),this.clearInterval(e)};this.on("mousedown",l),this.on("mousemove",u),this.on("mouseup",c),this.on("keydown",a),this.on("keyup",a);var h=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(h);var p=this.options_.inactivityTimeout;p<=0||(h=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},p))}},250)},t.prototype.playbackRate=function(e){return e!==void 0?(this.techCall_("setPlaybackRate",e),void(this.memoryPlaybackRate=e)):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},t.prototype.defaultPlaybackRate=function(e){return e!==void 0?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){return e!==void 0?void(this.isAudio_=!!e):!!this.isAudio_},t.prototype.addTextTrack=function(e,r,s){if(this.tech_)return this.tech_.addTextTrack(e,r,s)},t.prototype.addRemoteTextTrack=function(e,r){if(IS_IOS&&!window_1.textTrackCleared_&&(window_1.textTrackCleared_=!0),this.tech_)return this.tech_.addRemoteTextTrack(e,r)},t.prototype.removeRemoteTextTrack=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.track,s=r===void 0?arguments[0]:r;if(this.tech_)return this.tech_.removeRemoteTextTrack(s)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(e){if(e===void 0)return this.language_;this.language_=String(e).toLowerCase()},t.prototype.languages=function(){return mergeOptions(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=mergeOptions(this.options_),r=e.tracks;e.tracks=[];for(var s=0;s<r.length;s++){var a=r[s];a=mergeOptions(a),a.player=void 0,e.tracks[s]=a}return e},t.prototype.createModal=function(e,r){var s=this;r=r||{},r.content=e||"";var a=new ModalDialog(this,r);return this.addChild(a),a.on("dispose",function(){s.removeChild(a)}),a.open(),a},t.getTagSettings=function(e){var r={sources:[],tracks:[]},s=getAttributes(e),a=s["data-setup"];if(hasClass(e,"vjs-fluid")&&(s.fluid=!0),a!==null){var u=tuple(a||"{}"),l=u[0],c=u[1];l&&log$2.error(l),assign(s,c)}if(assign(r,s),e.hasChildNodes())for(var h=e.childNodes,p=0,d=h.length;p<d;p++){var y=h[p],g=y.nodeName.toLowerCase();g==="source"?r.sources.push(getAttributes(y)):g==="track"&&r.tracks.push(getAttributes(y))}return r},t.prototype.flexNotSupported_=function(){var e=document_1.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t})(Component);ALL.names.forEach(function(n){var t=ALL[n];Player.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Player.players={};var navigator$1=window_1.navigator;Player.prototype.options_={techOrder:Tech.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","mediaAsyncLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings","videoStatisticPanel"],language:navigator$1&&(navigator$1.languages&&navigator$1.languages[0]||navigator$1.userLanguage||navigator$1.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},["ended","seeking","seekable","networkState","readyState"].forEach(function(n){Player.prototype[n]=function(){return this.techGet_(n)}}),TECH_EVENTS_RETRIGGER.forEach(function(n){Player.prototype["handleTech"+toTitleCase(n)+"_"]=function(){return this.trigger(n)}}),Component.registerComponent("Player",Player);var BASE_PLUGIN_NAME="plugin",PLUGIN_CACHE_KEY="activePlugins_",pluginStorage={},pluginExists=function(n){return pluginStorage.hasOwnProperty(n)},getPlugin=function(n){return pluginExists(n)?pluginStorage[n]:void 0},markPluginAsActive=function(n,t){n[PLUGIN_CACHE_KEY]=n[PLUGIN_CACHE_KEY]||{},n[PLUGIN_CACHE_KEY][t]=!0},triggerSetupEvent=function(n,t,e){var r=(e?"before":"")+"pluginsetup";n.trigger(r,t),n.trigger(r+":"+t.name,t)},createBasicPlugin=function(n,t){var e=function(){triggerSetupEvent(this,{name:n,plugin:t,instance:null},!0);var r=t.apply(this,arguments);return markPluginAsActive(this,n),triggerSetupEvent(this,{name:n,plugin:t,instance:r}),r};return Object.keys(t).forEach(function(r){e[r]=t[r]}),e},createPluginFactory=function(n,t){return t.prototype.name=n,function(){triggerSetupEvent(this,{name:n,plugin:t,instance:null},!0);for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(r))));return this[n]=function(){return a},triggerSetupEvent(this,a.getEventHash()),a}},Plugin=(function(){function n(t){if(classCallCheck(this,n),this.constructor===n)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,evented(this),delete this.trigger,stateful(this,this.constructor.defaultState),markPluginAsActive(t,this.name),this.dispose=bind(this,this.dispose),t.on("dispose",this.dispose)}return n.prototype.version=function(){return this.constructor.VERSION},n.prototype.getEventHash=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t.name=this.name,t.plugin=this.constructor,t.instance=this,t},n.prototype.trigger=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return trigger(this.eventBusEl_,t,this.getEventHash(e))},n.prototype.handleStateChanged=function(t){},n.prototype.dispose=function(){var t=this.name,e=this.player;this.trigger("dispose"),this.off(),e.off("dispose",this.dispose),e[PLUGIN_CACHE_KEY][t]=!1,this.player=this.state=null,e[t]=createPluginFactory(t,pluginStorage[t])},n.isBasic=function(t){var e=typeof t=="string"?getPlugin(t):t;return typeof e=="function"&&!n.prototype.isPrototypeOf(e.prototype)},n.registerPlugin=function(t,e){if(typeof t!="string")throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(t===void 0?"undefined":_typeof(t))+".");if(pluginExists(t))log$2.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Player.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if(typeof e!="function")throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(e===void 0?"undefined":_typeof(e))+".");return pluginStorage[t]=e,t!==BASE_PLUGIN_NAME&&(n.isBasic(e)?Player.prototype[t]=createBasicPlugin(t,e):Player.prototype[t]=createPluginFactory(t,e)),e},n.deregisterPlugin=function(t){if(t===BASE_PLUGIN_NAME)throw new Error("Cannot de-register base plugin.");pluginExists(t)&&(delete pluginStorage[t],delete Player.prototype[t])},n.getPlugins=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Object.keys(pluginStorage),e=void 0;return t.forEach(function(r){var s=getPlugin(r);s&&(e=e||{},e[r]=s)}),e},n.getPluginVersion=function(t){var e=getPlugin(t);return e&&e.VERSION||""},n})();Plugin.getPlugin=getPlugin,Plugin.BASE_PLUGIN_NAME=BASE_PLUGIN_NAME,Plugin.registerPlugin(BASE_PLUGIN_NAME,Plugin),Player.prototype.usingPlugin=function(n){return!!this[PLUGIN_CACHE_KEY]&&this[PLUGIN_CACHE_KEY][n]===!0},Player.prototype.hasPlugin=function(n){return!!pluginExists(n)};var _inherits=function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+(t===void 0?"undefined":_typeof(t)));n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.super_=t)},extendFn=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=function(){n.apply(this,arguments)},r={};(t===void 0?"undefined":_typeof(t))==="object"?(t.constructor!==Object.prototype.constructor&&(e=t.constructor),r=t):typeof t=="function"&&(e=t),_inherits(e,n);for(var s in r)r.hasOwnProperty(s)&&(e.prototype[s]=r[s]);return e};if(typeof HTMLVideoElement>"u"&&isReal()&&(document_1.createElement("video"),document_1.createElement("audio"),document_1.createElement("track"),document_1.createElement("video-js")),videojs.hooks_={},videojs.hooks=function(n,t){return videojs.hooks_[n]=videojs.hooks_[n]||[],t&&(videojs.hooks_[n]=videojs.hooks_[n].concat(t)),videojs.hooks_[n]},videojs.hook=function(n,t){videojs.hooks(n,t)},videojs.hookOnce=function(n,t){videojs.hooks(n,[].concat(t).map(function(e){return function r(){return videojs.removeHook(n,r),e.apply(void 0,arguments)}}))},videojs.removeHook=function(n,t){var e=videojs.hooks(n).indexOf(t);return!(e<=-1)&&(videojs.hooks_[n]=videojs.hooks_[n].slice(),videojs.hooks_[n].splice(e,1),!0)},window_1.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&isReal()){var style=$(".vjs-styles-defaults");if(!style){style=createStyleElement("vjs-styles-defaults");var head=$("head");head&&head.insertBefore(style,head.firstChild),setTextContent(style,`
|
||
.video-js {
|
||
width: 300px;
|
||
height: 150px;
|
||
}
|
||
|
||
.vjs-fluid {
|
||
padding-top: 56.25%
|
||
}
|
||
`)}}autoSetupTimeout(1,videojs),videojs.VERSION=version,videojs.options=Player.prototype.options_,videojs.getPlayers=function(){return Player.players},videojs.players=Player.players,videojs.getComponent=Component.getComponent,videojs.registerComponent=function(n,t){Tech.isTech(t)&&log$2.warn("The "+n+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Component.registerComponent.call(Component,n,t)},videojs.getTech=Tech.getTech,videojs.registerTech=Tech.registerTech,videojs.use=use,videojs.browser=browser,videojs.TOUCH_ENABLED=TOUCH_ENABLED,videojs.extend=extendFn,videojs.mergeOptions=mergeOptions,videojs.bind=bind,videojs.registerPlugin=Plugin.registerPlugin,videojs.plugin=function(n,t){return log$2.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Plugin.registerPlugin(n,t)},videojs.getPlugins=Plugin.getPlugins,videojs.getPlugin=Plugin.getPlugin,videojs.getPluginVersion=Plugin.getPluginVersion,videojs.addLanguage=function(n,t){var e;return n=(""+n).toLowerCase(),videojs.options.languages=mergeOptions(videojs.options.languages,(e={},e[n]=t,e)),videojs.options.languages[n]},videojs.log=log$2,videojs.createTimeRange=videojs.createTimeRanges=createTimeRanges,videojs.formatTime=formatTime,videojs.parseUrl=parseUrl,videojs.isCrossOrigin=isCrossOrigin,videojs.EventTarget=EventTarget,videojs.on=on,videojs.one=one,videojs.off=off,videojs.trigger=trigger,videojs.xhr=xhr,videojs.TextTrack=TextTrack,videojs.AudioTrack=AudioTrack,videojs.VideoTrack=VideoTrack,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(n){videojs[n]=function(){return log$2.warn("videojs."+n+"() is deprecated; use videojs.dom."+n+"() instead"),Dom[n].apply(null,arguments)}}),videojs.computedStyle=computedStyle,videojs.dom=Dom,videojs.url=Url;var strictUriEncode=function(n){return encodeURIComponent(n).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})},getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty$5=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable,objectAssign=shouldUseNative()?Object.assign:function(n,t){for(var e,r,s=toObject(n),a=1;a<arguments.length;a++){e=Object(arguments[a]);for(var u in e)hasOwnProperty$5.call(e,u)&&(s[u]=e[u]);if(getOwnPropertySymbols){r=getOwnPropertySymbols(e);for(var l=0;l<r.length;l++)propIsEnumerable.call(e,r[l])&&(s[r[l]]=e[r[l]])}}return s},token="%[a-f0-9]{2}",singleMatcher=new RegExp(token,"gi"),multiMatcher=new RegExp("("+token+")+","gi"),decodeUriComponent=function(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return n=n.replace(/\+/g," "),decodeURIComponent(n)}catch{return customDecodeURIComponent(n)}},extract_1=extract,parse_1=parse,stringify=function(n,t){t=objectAssign({encode:!0,strict:!0,arrayFormat:"none"},t),t.sort===!1&&(t.sort=function(){});var e=encoderForArrayFormat(t);return n?Object.keys(n).sort(t.sort).map(function(r){var s=n[r];if(s===void 0)return"";if(s===null)return encode(r,t);if(Array.isArray(s)){var a=[];return s.slice().forEach(function(u){u!==void 0&&a.push(e(r,u,a.length))}),a.join("&")}return encode(r,t)+"="+encode(s,t)}).filter(function(r){return r.length>0}).join("&"):""},parseUrl$1=function(n,t){return{url:n.split("?")[0]||"",query:parse(extract(n),t)}},queryString={extract:extract_1,parse:parse_1,stringify,parseUrl:parseUrl$1},count=0,MediaAsyncLoader=(function(n){function t(e,r,s){classCallCheck(this,t),log$2("MediaAsyncLoader initializing");var a=mergeOptions({createEl:!1},r),u=possibleConstructorReturn(this,n.call(this,e,a,s));u.enModule=new Enc,e.loadVideoByID=bind(u,u.loadVideoByID);var l=a.playerOptions||a;if(!l.fileID){var c;return c=!1,possibleConstructorReturn(u,c)}return u.playCGIHosts=(l.playCGIHosts||[]).concat([SERVER_PATH,SERVER_PATH_BACKUP,"playvideo.vodplayvideo.com","playvideo.vod-common.com"]),u.playCGIIndex=0,u.playCGIMerged=!0,u.getInfo(l),u.getEscapeDomains(l),log$2("MediaAsyncLoader initialized"),u}return inherits(t,n),t.prototype.getEscapeDomains=function(e){xhr({url:"https://get-domains.vod-backup.net/getEscapeDomains?AppId="+e.appID},bind(this,this.onDomainResult))},t.prototype.onDomainResult=function(e,r,s){try{s&&(r=JSON.parse(s))}catch{}var a=this.player();if(!e){var u=r.Data.LicenseDomains||[],l=r.Data.PlayCGIDomains||[];this.playCGIHosts=this.playCGIHosts.concat(l),a.cache_.licenseDomains=u}},t.prototype.getInfo=function(e){e&&e.fileID&&e.appID&&(performance&&typeof performance.mark=="function"&&performance.mark("firstFrameStart"),e.playDefinition?this.getInfoV3(e):e.sign||e.ssign?this.getInfoV2(e):this.getInfoV4(e))},t.prototype.getInfoV2=function(e){var r=this.player(),s=this.assemblyPath("getplayinfo",e.appID,e.fileID),a=e.t,u=e.us,l=e.exper,c=e.sign,h={};e.ssign?h.super_sign=e.ssign:c&&(h={t:a,sign:c},(u||u==0)&&(h.us=u),(l||l==0)&&(h.exper=l,r.trigger({type:"feature",data:"exper"})),r.trigger({type:"feature",data:"key"})),e.playerID&&(h.playerid=e.playerID),this.requestTimestamp=+new Date().getTime(),r.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi loading");var p=queryString.stringify(h);p&&(s+=(~s.indexOf("?")?"&":"?")+p,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(d){if(!d||!this.playCGIHosts[this.playCGIIndex+1])return!1;s=s.replace(this.playCGIHosts[this.playCGIIndex],this.playCGIHosts[this.playCGIIndex+1]),this.playCGIIndex++,IE_VERSION&&IE_VERSION<10?jsonp(s,{param:h,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResult)):xhr({url:s,timeout:3e3},bind(this,this.onResult))},this.getInfoRequest()},t.prototype.onResult=function(e,r,s){try{s?r=JSON.parse(s):e||r||(e=new Error("ServerError"))}catch{e=new Error("ServerError")}var a=this.player();if(e){if(log$2("playcgi loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<8)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:r}});var u=12;switch(e.message){case"XMLHttpRequest timeout":case"Timeout":u=10;break;case"ServerError":u=11}this.player().error({code:u})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:r}}),r.code!=0)return log$2("playcgi loaded failure"),void this.player().error({code:r.code});log$2("playcgi loaded success");var l=r.coverInfo,c=r.videoInfo,h=r.playerInfo;this.setPoster(l),this.setLogo(h),this.setSrc(r),this.setPatch(h),this.setVttThumbnail(r),this.setDots(r),this.setOriginDuration(c),this.setPlayList(h)}},t.prototype.getInfoV3=function(e){var r=this.player(),s=this.assemblyPathV3("getplayinfo",e.appID,e.fileID,e.playDefinition),a=e.t,u=e.us,l=e.rlimit,c=e.sign,h={};e.ssign?h.super_sign=e.ssign:c&&(h={t:a,sign:c},(u||u==0)&&(h.us=u),l&&(h.rlimit=l),r.trigger({type:"feature",data:"key"})),e.playerID&&(h.playerid=e.playerID),this.requestTimestamp=+new Date().getTime(),r.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v3 loading");var p=queryString.stringify(h);p&&(s+=(~s.indexOf("?")?"&":"?")+p,s=s.replace("?&","?")),this.getInfoRetryTimes=0,this.getInfoRequest=function(d){d&&(s=s.replace(SERVER_PATH_V3,SERVER_PATH_BACKUP)),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:h,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV3)):xhr({url:s,timeout:3e3},bind(this,this.onResultV3))},this.getInfoRequest()},t.prototype.onResultV3=function(e,r,s){try{s?r=JSON.parse(s):e||r.body||(e=new Error("ServerError"))}catch{e=new Error("ServerError")}var a=this.player();if(e){if(log$2("playcgi v3 loaded failure"),this.getInfoRetryTimes<3)return this.getInfoRetryTimes++,void this.getInfoRequest();if(this.getInfoRetryTimes<8)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:r}});var u=12;switch(e.message){case"XMLHttpRequest timeout":case"Timeout":u=10;break;case"ServerError":u=11}this.player().error({code:u})}else{if(a.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:r}}),r.code!=0)return log$2("playcgi v3 loaded failure"),void this.player().error({code:r.code});log$2("playcgi v3 loaded success");var l=r.mediaInfo,c=r.playerInfo;this.setPoster({coverUrl:l.basicInfo.coverUrl}),this.setLogo(c),this.setSrcV3(l),this.setPatch(c),this.setVttThumbnail(l),this.setDots(l)}},t.prototype.setSrcV3=function(e,r){var s=this,a=this.player(),u=a.options_.plugins,l=a.DRM().options||u.DRM,c=void 0,h=void 0,p=void 0,d=[],y={},g={};if(r=r||(l?l.skipPlan:""),e.previewStreamingInfo&&e.previewStreamingInfo.previewStreamingList.length>0)e.previewStreamingInfo.previewStreamingList.forEach(function(C,k){C.mineType=s.getMIMEType(C.url),y[getFileExtension(C.url)]=C});else{if(!(e.dynamicStreamingInfo.adaptiveStreamingInfoList&&e.dynamicStreamingInfo.adaptiveStreamingInfoList.length>0))return void this.player().error({code:13,message:"no video stream"});if(e.dynamicStreamingInfo.adaptiveStreamingInfoList.forEach(function(C,k){C.mineType=s.getMIMEType(C.url),g[C.drmType.toLowerCase()||getFileExtension(C.url)]=C}),l&&l.token?(c=l.token,p=l.certificateUri,r=IS_SAFARI&&!p?"fairplay":r,h=window_1.encodeURIComponent(c)):r="all",(IS_CHROME||IS_FIREFOX)&&window_1.navigator.requestMediaKeySystemAccess&&g.widevine&&r!="widevine"&&r!="all"?(d.push({src:unifyProtocol(g.widevine.url),type:this.getMIMEType(g.widevine.url),keySystems:{"com.widevine.alpha":{serverURL:LICENSE_PATH+"?token="+h+"&drmType="+g.widevine.drmType}}}),log$2("DRM source widevine",d)):IS_SAFARI&&!IS_MQQB&&g.fairplay&&r!="fairplay"&&r!="all"&&(d.push({src:unifyProtocol(g.fairplay.url),type:this.getMIMEType(g.fairplay.url),keySystems:{"com.apple.fps.1_0":{certificateUri:p,licenseUri:LICENSE_PATH+"?token="+h+"&drmType="+g.fairplay.drmType}}}),log$2("DRM source fairplay",d)),g.simpleaes&&r!="all"){var v=g.simpleaes.url.split("/");v[v.length-1]="voddrm.token."+h+"."+v[v.length-1],d.push({src:unifyProtocol(v.join("/")),type:this.getMIMEType(g.simpleaes.url)}),log$2("DRM source simpleaes",d)}g.m3u8&&d.push({src:unifyProtocol(g.m3u8.url),type:this.getMIMEType(g.m3u8.url)}),g.mpd&&d.push({src:unifyProtocol(g.mpd.url),type:this.getMIMEType(g.mpd.url)})}if(!(d.length>0))return void this.player().error({code:4});a.src(d);var S=function(C){return log$2("DRM init Error",d),C.data.code!==5&&C.data.code!==2||!d[0].keySystems["com.widevine.alpha"]?C.data.code===3&&d[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV3(e,"fairplay"):C.data.code===14||C.data.code===3?void s.setSrcV3(e,"all"):void 0:void s.setSrcV3(e,"widevine")};r!=="all"&&(window_1.setTimeout(function(){a.one("error",S)},0),a.one("playing",function(C){}))},t.prototype.getInfoV4=function(e){var r=this.player(),s=this.assemblyPathV4("getplayinfo",e.appID,e.fileID),a=r.options_,u=e.t,l=e.us,c=e.rlimit,h=e.psign,p=e.exper,d={};e.ssign?d.super_sign=e.ssign:h&&(d={t:u,psign:h},(l||l==0)&&(d.us=l),c&&(d.rlimit=c),p&&(d.exper=p)),e.playerConfig&&(d.pcfg=e.playerConfig),e.playerID&&(d.playerid=e.playerID),this.requestTimestamp=+new Date().getTime(),r.trigger({type:"playcgistart",data:{time:this.requestTimestamp,url:s}}),log$2("playcgi v4 loading");var y=queryString.stringify(d);y?(s+=(~s.indexOf("?")?"&":"?")+y,s=s.replace("?&","?")):s+=~s.indexOf("?")?"":"?";var g=a&&a.hlsConfig&&(a.hlsConfig.disable||a.hlsConfig.skipHlsJs);s=this.enModule.generatePlayCgiUrl(s,browser,g),this.getInfoRetryTimes=0,this.getInfoRequest=function(v){v&&this.playCGIHosts[this.playCGIIndex+1]&&(s=s.replace(this.playCGIHosts[this.playCGIIndex],this.playCGIHosts[this.playCGIIndex+1]),this.playCGIIndex++),IE_VERSION&&IE_VERSION<10?jsonp(s,{param:d,timeout:3e3,prefix:"TcCallBack"},bind(this,this.onResultV4)):xhr({url:s,timeout:3e3},bind(this,this.onResultV4))},this.getInfoRequest()},t.prototype.onResultV4=function(e,r,s){var a=r,u=a.rawRequest;try{s?r=JSON.parse(s):e||r.body||(e=new Error("ServerError"))}catch{e=new Error("ServerError")}var l=this.player();if(!l)return!1;if(e){if(log$2("playcgi v4 loaded failure"),this.getInfoRetryTimes<8)return this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0});l.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:r}});var c=12;switch(e.message){case"XMLHttpRequest timeout":case"Timeout":c=10;break;case"ServerError":c=11}this.player().error({code:c})}else{if(l.trigger({type:"playcgiend",data:{time:+new Date().getTime(),startTime:this.requestTimestamp,error:e,result:r,rawRequest:u,overlayIv:this.enModule.overlayIv,overlayKey:this.enModule.overlayKey}}),r.code!=0)return log$2("playcgi v4 loaded failure"),r.code>=2e3&&r.code<3e3&&this.getInfoRetryTimes<8?(this.getInfoRetryTimes++,void this.getInfoRequest({isBackup:!0})):void this.player().error({code:r.code});if(log$2("playcgi v4 loaded success",r),r.version===4){var h=r.media;this.setPoster({coverUrl:h.basicInfo.coverUrl}),this.setGhostContent(h.ghostWatermarkInfo),this.setSrcV4(h),this.setVttThumbnailV4(h),this.setDots(h)}else if(r.version===2){var p=r.coverInfo,d=r.videoInfo,y=r.playerInfo;this.setPoster(p),this.setLogo(y),this.setSrc(r),this.setPatch(y),this.setVttThumbnail(r),this.setDots(r),this.setOriginDuration(d)}}},t.prototype.setSrcV4=function(e,r){var s=this,a=this.player(),u=a.options_,l=void 0,c=a.options_.plugins,h=a.DRM().options||c.DRM,p=[],d="plain";r=r||(h?h.skipPlan:"");var y=[],g=[];if(e.audioVideoType==="Original"||e.audioVideoType==="Transcode")return this.setSrc(e),!1;if(!e.streamingInfo)return void this.player().error({code:13,message:"no stream info"});if(e.streamingInfo){if(e.streamingInfo.drmOutput&&Array.isArray(e.streamingInfo.drmOutput)){for(var v=e.streamingInfo.drmOutput,S=0;S<v.length;S++)g.push(v[S].type);if(IS_ANY_SAFARI&&!IS_MQQB&&g.indexOf("FairPlay")!==-1&&r!="fairplay"&&r!="all"){var C=g.indexOf("FairPlay"),k=v[C].subStreams;p.push(k),y.push({src:unifyProtocol(v[C].url),type:this.getMIMEType(v[C].url),qualityLabelList:k,keySystems:{"com.apple.fps.1_0":{certificateUri:e.streamingInfo.fairPlayCertificateUrl||(h||{}).certificateUri,licenseUri:e.streamingInfo.fairplayLicenseUrl}}}),log$2("DRM source fairplay",l)}else if(window_1.navigator.requestMediaKeySystemAccess&&g.indexOf("Widevine")!==-1&&!IS_SAFARI&&r!=="widevine"&&r!=="all"){var U=g.indexOf("Widevine"),M=v[U].subStreams,V=M[M.length-1];(V.type==="audio"||V.width===0&&V.height===0)&&M.pop(),p.push(M),y.push({src:unifyProtocol(v[U].url),type:this.getMIMEType(v[U].url),qualityLabelList:M,keySystems:{"com.widevine.alpha":{serverURL:e.streamingInfo.widevineLicenseUrl}}}),log$2("DRM source widevine",l)}if(g.indexOf("SimpleAES")!==-1&&r!="all"){var I,m=g.indexOf("SimpleAES");d="SimpleAES";var _=v[m].url.split("/");_[_.length-1]="voddrm.token."+e.streamingInfo.drmToken+"."+_[_.length-1],l=_.join("/");var b=v[m].subStreams;p.push(v[m].subStreams),l&&y.push({src:unifyProtocol(l),type:EXT_MIME.m3u8,qualityLabelList:b,keySystems:(I={},I[d]={},I)})}}else if(e.streamingInfo.plainOutput){var E;l=e.streamingInfo.plainOutput.url;var P=e.streamingInfo.plainOutput.subStreams;p.push(e.streamingInfo.plainOutput.subStreams),l&&y.push({src:unifyProtocol(l),type:EXT_MIME.m3u8,qualityLabelList:P,keySystems:(E={},E[d]={},E)})}this.setHlsConfig(u,p[0],!1),y.length>0?a.src(y):g.length!==0?!r&&this.player().error({code:18}):this.player().error({code:13,message:"no stream info"}),this.setQualityLabelList(p[0])}var N=function(j){return log$2("DRM init Error",y),y[0].keySystems["com.widevine.alpha"]?void s.setSrcV4(e,"widevine"):y[0].keySystems["com.apple.fps.1_0"]?void s.setSrcV4(e,"fairplay"):j.data.code===3?void s.setSrcV4(e,"all"):void 0};r!=="all"&&window_1.setTimeout(function(){a.one("error",N)},0)},t.prototype.setHlsConfig=function(e,r,s){var a={};(!IS_ENABLED_MSE||IS_TBS||IS_MQQB||IE_VERSION&&IE_VERSION<11)&&!IS_SIMULATOR||(a={overlayKey:this.enModule&&this.enModule.overlayKey,overlayIv:this.enModule&&this.enModule.overlayIv}),e.hlsConfig?(e.hlsConfig.qualityLabelList=r,e.hlsConfig.startLevel||(e.hlsConfig.startLevel=r?r.length-1:5)):e.hlsConfig={qualityLabelList:r,startLevel:r?r.length-1:5},Object.assign(e.hlsConfig,a,{forbid:s})},t.prototype.setQualityLabelList=function(e){this.player().QualitySwitcher().setOptions({qualityLabelList:{video:e}})},t.prototype.setLogo=function(e){var r=this.player();e.logoPic?(r.logoImage.update({img:{url:unifyProtocol(e.logoPic),position:e.logoLocation},link:unifyProtocol(e.logoUrl)}),r.trigger({type:"feature",data:"logo"})):r.logoImage.reset()},t.prototype.setPoster=function(e){var r=this.player();e&&e.coverUrl?r.poster(unifyProtocol(e.coverUrl)):r.options_.playerOptions.poster||r.poster("")},t.prototype.setDots=function(e){var r=this.player();if(r.options_.dots=[],e.keyFrameDescInfo&&e.keyFrameDescInfo.keyFrameDescList&&e.keyFrameDescInfo.keyFrameDescList.length>0){var s=e.keyFrameDescInfo.keyFrameDescList;r.options_.dots=s}var a=r.options_.plugins;a&&a.ProgressMarker&&a.ProgressMarker.markers&&a.ProgressMarker.markers.length>0&&(r.options_.dots=r.options_.dots.concat(a.ProgressMarker.markers)),r.ProgressMarker().init()},t.prototype.setSrc=function(e){var r=this.player(),s=e.videoInfo||{};if(e.audioVideoType==="Original"&&(s.sourceVideo=e.originalInfo),e.audioVideoType==="Transcode"&&(s.sourceVideo=e.transcodeInfo),(r.options_.definition!=null||r.options_.definition!=null)&&s.transcodeList&&s.transcodeList.length>0){r.trigger({type:"feature",data:"definition"});var a=this.getSrcByDefinition(s,r.options_.definition);if(a)return r.src({src:unifyProtocol(a.url),type:this.getMIMEType(a.url)}),!0}if(r.MultiResolution().reset(),s.masterPlayList){r.src(this.getMasterSouces(s));var u=r.options_.hlsConfig;u?u.forbid=!0:Object.assign(r.options_,{hlsConfig:{forbid:!0}}),this.setQualityLabelList([]),r.MultiResolution().store(this.getMultiResolutionData(e))}else if(s.transcodeList&&s.transcodeList.length>0){var l=this.getMultiResolutionData(e);if(l.showOrder.length>0)r.MultiResolution().init(l);else{var c=s.transcodeList[0].url;r.src({src:unifyProtocol(c),type:this.getMIMEType(c)})}}else s.sourceVideo&&this.getMIMEType(s.sourceVideo.url)?r.src({src:unifyProtocol(s.sourceVideo.url),type:this.getMIMEType(s.sourceVideo.url)}):this.player().error({code:13})},t.prototype.setPatch=function(e){var r=this.player();e.patchInfo?r.ImagePatch().init(e.patchInfo):r.ImagePatch().reset()},t.prototype.setVttThumbnail=function(e){var r=this.player();e.imageSpriteInfo&&e.imageSpriteInfo.imageSpriteList?r.ready(bind(this,function(){r.VttThumbnail().init({vttUrl:unifyProtocol(e.imageSpriteInfo.imageSpriteList[0].webVttUrl)})})):r.VttThumbnail().reset()},t.prototype.setVttThumbnailV4=function(e){var r=this.player();e.imageSpriteInfo&&e.imageSpriteInfo.webVttUrl?r.ready(bind(this,function(){r.VttThumbnail().init({vttUrl:unifyProtocol(e.imageSpriteInfo.webVttUrl)})})):r.VttThumbnail().reset()},t.prototype.setOriginDuration=function(e){var r=this.player();if(r.options_.exper>0){var s=e.sourceVideo?e.sourceVideo.floatDuration:e.transcodeList[0].floatDuration;r.one("play",function(){r.duration(s)})}},t.prototype.setOriginDurationV4=function(e){var r=this,s=this.player();s.cache_.originDuration=e.basicInfo.duration,s.off("durationchange",this.keepOriginDuration),s.one("durationchange",function(a){(!s.duration()||s.duration()>0&&Math.floor(s.cache_.originDuration)!==Math.floor(s.duration()))&&(r.keepOriginDuration(a),s.on("durationchange",r.keepOriginDuration))})},t.prototype.setGhostContent=function(e){var r=this.player(),s=r&&r.DynamicWatermark();this.enModule.clearGhostMark(s,!0),e?(s.options.content=e.text,s.options.keep=!0,s.init()):(s.options.keep=!1,s.content?(s.options.content=s.content,s.init(),s.startAnimation()):s.options.content="")},t.prototype.keepOriginDuration=function(e){var r=this.player(),s=r.cache_.originDuration;Math.floor(s)!==Math.floor(r.duration())&&(log$2("试看视频"),r.duration(Math.round(s)))},t.prototype.getMasterSouces=function(e){var r=e.masterPlayList,s=[];return s.push({src:unifyProtocol(r.url),type:EXT_MIME.m3u8}),s},t.prototype.getMultiResolutionData=function(e){var r={sources:{},labels:{},showOrder:[],defaultRes:""},s=[],a=e.videoInfo.transcodeList,u=this;return e.playerInfo.videoClassification.forEach(function(l,c){a.length>0&&(a=a.filter(function(h){if(!(l.definitionList.indexOf(h.definition)>-1))return!0;s[l.id]||(r.showOrder.push(l.id),r.labels[l.id]=l.name,s[l.id]=[]),s[l.id].push({src:unifyProtocol(h.url),type:u.getMIMEType(h.url)})}))}),r.sources=s,r.defaultRes=e.playerInfo.defaultVideoClassification||Object.keys(s)[0],r},t.prototype.getSrcByDefinition=function(e,r){var s=e.transcodeList,a=e.sourceVideo;if(r==0)return a;for(var u=0;u<s.length;u++)if(s[u].definition==r)return s[u]},t.prototype.getMIMEType=function(e){var r=EXT_MIME[getFileExtension(e)];return r||(log$2.error("MIME type no found! Ext = "+getFileExtension(e)),"")},t.prototype.assemblyPath=function(e,r,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),a+"//"+SERVER_PATH+"/"+e+"/v2/"+r+"/"+s},t.prototype.assemblyPathV3=function(e,r,s,a){var u=window_1.location.protocol;return u!="http:"&&u!="https:"&&(u="https:"),u+"//"+SERVER_PATH_V3+"/"+e+"/v3/"+r+"/"+s+"/"+a},t.prototype.assemblyPathV4=function(e,r,s){var a=window_1.location.protocol;return a!="http:"&&a!="https:"&&(a="https:"),a+"//"+this.playCGIHosts[this.playCGIIndex]+"/"+e+"/v4/"+r+"/"+s},t.prototype.customHost=function(e){var r=this.player();r.options_.customHost&&/^(?=^.{3,255}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+$/.test(r.options_.customHost)&&(e.masterPlayList&&(e.masterPlayList.url=replaceHost(e.masterPlayList.url,r.options_.customHost)),e.sourceVideo&&(e.sourceVideo.url=replaceHost(e.sourceVideo.url,r.options_.customHost)),e.transcodeList.length>0&&e.transcodeList.forEach(function(s,a){s.url=replaceHost(s.url,r.options_.customHost)}),r.trigger({type:"feature",data:"customHost"}))},t.prototype.loadVideoByID=function(e){var r=this.player();if(r.trigger({type:"loadnewvideo"}),!this.playCGIMerged){var s=r.options_;this.playCGIHosts=(s.playCGIHosts||[]).concat([SERVER_PATH,SERVER_PATH_BACKUP]),this.playCGIIndex=0}r.hasStarted(!1),this.getInfo(e),r.duration(0),r.options_.appID=e.appID,r.options_.fileID=e.fileID,r.options_.psign=e.psign,e.definition&&(r.options_.definition=e.definition),r.bigPlayButton&&r.bigPlayButton.show(),r.tech_.clearTracks("text"),r.options_.plugins.ContinuePlay&&r.ContinuePlay().init()},t.prototype.setPlayList=function(e){this.player().options_.plugins.PlayList||e.playlist&&e.playlist.data instanceof Array&&e.playlist.data.length>0&&this.player_.PlayList(e.playlist)},t})(Component);Component.registerComponent("MediaAsyncLoader",MediaAsyncLoader),videojs.getComponent("Component");var ClickableComponent$2=videojs.getComponent("ClickableComponent"),positionMap=["left-top","left-bottom","right-top","right-bottom"],LogoImage=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return e.on("logochange",videojs.bind(s,function(a){this.update(a.data)})),r.img&&s.update(r),s}return inherits(t,n),t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-logo vjs-hidden"}),r=videojs.dom.createEl("a",{className:"tcp-logo-link",target:"_blank"}),s=videojs.dom.createEl("img",{className:"tcp-logo-img"});return this.linkEl_=r,this.imgEl_=s,r.appendChild(s),e.appendChild(r),e},t.prototype.update=function(e){var r=e.img,s=e.link;this.setImg(r),this.setHref(s),this.options_=videojs.mergeOptions(this.options_,e),this.show()},t.prototype.setImg=function(e){if(this.imgEl_){this.imgEl_.src=e.url;var r=positionMap[e.position]||e.position||"left-top";videojs.dom.addClass(this.el_,r)}},t.prototype.setHref=function(e){this.linkEl_&&e&&(this.linkEl_.href=e)},t.prototype.reset=function(){this.hide(),this.imgEl_.removeAttribute("src"),this.linkEl_.removeAttribute("href")},t})(ClickableComponent$2);videojs.registerComponent("LogoImage",LogoImage);var Component$3=videojs.getComponent("Component"),Button$2=videojs.getComponent("Button"),ContinuePlayTips=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.init(r),s}return inherits(t,n),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-continue-play-tips"})},t.prototype.close=function(){this.hide()},t.prototype.init=function(e){var r=this.addChild("closeButton",{controlText:"Close"});this.on(r,"close",this.close),this.addChild("ContinuePlayTipsContent",e);var s=this.addChild("ContinuePlayButton",e);this.on(s,["tap","click"],this.close),this.setTimeout(function(){this.close()},3500)},t})(Component$3);videojs.registerComponent("ContinuePlayTips",ContinuePlayTips);var ContinuePlayTipsContent=(function(n){function t(e,r){return classCallCheck(this,t),possibleConstructorReturn(this,n.call(this,e,r))}return inherits(t,n),t.prototype.createEl=function(){var e=videojs.dom.createEl("span",{className:"tcp-continue-play-tips-content"}),r=videojs.dom.createEl("span",{className:"tcp-text",textContent:this.localize(this.options_.text||"Last time play at ")}),s=videojs.dom.createEl("span",{className:"tcp-time",textContent:videojs.formatTime(this.options_.time)});return this.textEl_=r,this.timeEl_=s,e.appendChild(r),e.appendChild(s),e},t})(Component$3);videojs.registerComponent("ContinuePlayTipsContent",ContinuePlayTipsContent);var ContinuePlayButton=(function(n){function t(e,r){return classCallCheck(this,t),possibleConstructorReturn(this,n.call(this,e,r))}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"button",{className:"tcp-continue-play-buttom",textContent:this.localize(this.options_.btnText||"Resume play")})},t.prototype.handleClick=function(){this.options_.resumeCallback.call()},t})(Button$2);videojs.registerComponent("ContinuePlayButton",ContinuePlayButton);var Component$4=videojs.getComponent("Component"),LevelSwitchTips=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.playing=!1,s.timeoutID=void 0,s.levelSwitch=e.options_.plugins.ContextMenu.levelSwitch,s.init(),e.on("playing",videojs.bind(s,function(){s.playing=!0})),e.on("resolutionswitching",videojs.bind(s,function(a){if(s.playing)if(a.data.label)s.switchHandler(s.createSwitching(a.data.label),2e3);else{var u=s.player().QualitySwitcher().options.qualityData;if(u){var l=u.video.filter(function(c){return a.data.newQuality===c.id})[0];s.switchHandler(s.createSwitching(l.label),2e3)}}})),e.on("resolutionswitched",videojs.bind(s,function(){s.playing&&s.switchHandler(s.createSwitched(),2e3)})),e.on("levelSwitchError",videojs.bind(s,function(){s.switchHandler(s.createSwitchError(),2e3)})),s}return inherits(t,n),t.prototype.switchHandler=function(e,r){var s=this;this.timeoutID&&clearTimeout(this.timeoutID),this.textNode.innerText=e,this.show(),this.timeoutID=setTimeout(function(){s.hide()},r)},t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-switch vjs-hidden"});return this.textNode=videojs.dom.createEl("div",{innerText:""}),e.appendChild(this.textNode),e},t.prototype.init=function(){var e=this.addChild("closeButton",{controlText:"Close"});this.on(e,"close",this.hide)},t.prototype.createSwitching=function(e){return this.levelSwitch.switchingText?this.levelSwitch.switchingText+e:"正在为您切换至"+e},t.prototype.createSwitched=function(){return this.levelSwitch.switchedText?this.levelSwitch.switchedText:"切换成功"},t.prototype.createSwitchError=function(){return this.levelSwitch.switchErrorText?this.levelSwitch.switchErrorText:"切换失败"},t.prototype.show=function(){n.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){n.prototype.hide.call(this),this.popped=!1},t})(Component$4);videojs.registerComponent("LevelSwitchTips",LevelSwitchTips);var Component$7=videojs.getComponent("Component"),mapKey={fileID:"file ID",requestID:"request ID",mediaType:"media type",mimeType:"mime type",provider:"provider",resolution:"resolution",rate:"rate",frames:"frames",buffer:"buffer",connectionSpeed:"connection speed",info:"info"},VideoTextItem=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.display=!1,s.displayData="loading",s}return inherits(t,n),t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-statistic-line vjs-hidden"}),r=videojs.dom.createEl("span",{className:"tcp-statistic-title",innerText:mapKey[this.options_.key]+":"}),s=videojs.dom.createEl("span",{className:"tcp-statistic-data",innerText:this.options_.data});return e.appendChild(r),e.appendChild(s),e},t.prototype.updateTextNode_=function(){for(var e=this.el_.lastChild;e.firstChild;)e.removeChild(e.firstChild);this.displayData&&this.show(),this.textNode_=document_1.createTextNode(this.displayData||""),e.appendChild(this.textNode_)},t.prototype.updateContent=function(e){e!==this.displayData&&(this.displayData=e,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.isDisplay=function(){return this.display},t.prototype.show=function(){n.prototype.show.call(this),this.display=!0,this.popped=!0},t.prototype.hide=function(){n.prototype.hide.call(this),this.display=!1,this.popped=!1},t.prototype.reset=function(){n.prototype.hide.call(this),this.display=!1,this.displayData=""},t})(Component$7);videojs.registerComponent("VideoTextItem",VideoTextItem);var defaultConfig={enableRecoverMediaError:!0,recoverMediaErrorMaxRetry:5,fragLoadingMaxRetry:3,abrMaxWithRealBitrate:!0,emeEnabled:!0,maxBufferLength:10,maxBufferSize:41943040,maxMaxBufferLength:30},Html5HlsJS=(function(){function n(t,e,r){var s=this;classCallCheck(this,n);var a={},u=e.player();r.hlsConfig=r.hlsConfig===void 0?{}:r.hlsConfig,t.keySystems&&t.keySystems["com.widevine.alpha"]&&t.keySystems["com.widevine.alpha"].serverURL?(r.hlsConfig.widevineLicenseUrl=t.keySystems["com.widevine.alpha"].serverURL,t.keySystems["com.widevine.alpha"].serverCertificateURL&&(r.hlsConfig.serverCertificateURL=t.keySystems["com.widevine.alpha"].serverCertificateURL),r.hlsConfig.enableWorker=!0,r.hlsConfig.emeEnabled=!0,r.hlsConfig.startLevel=(r.hlsConfig.qualityLabelList||[]).length-1,a=r.hlsConfig):a=e.player_.options_.hlsConfig||r.hlsConfig||{},a.forbid&&(delete a.overlayKey,delete a.overlayIv),this.drmBackup=r.hlsConfig&&r.hlsConfig.drmBackup;var l=function(){var c=window.Hls;if(u.trigger({type:"debug",data:{message:"debug === 加载hls.js完成,进入初始化 hls 阶段"}}),new Enc().catCheck(u))return!1;var h=new c(videojs.mergeOptions(defaultConfig,a)),p=e.el();s.Hls=c,s.tech=e,s.hls=h,s.switchStatus="",s.manifests=[],s.subtitlesLoadedCount=0,s.audioTrackLoadedCount=0,s.subtitles=[],s.audioTracks=[],s.hlsjsErrorHandler=s.errorHandlerFactory(),h.on(c.Events.ERROR,s.onError.bind(s)),h.on(c.Events.MANIFEST_PARSED,videojs.bind(s,s.onMetaData)),h.on(c.Events.MANIFEST_LOADED,s.loadSubtiles.bind(s)),h.on(c.Events.LEVEL_LOADED,s.onLevelLoaded.bind(s)),u.on("ready",s.addHlsSubtitles.bind(s)),u.on("error",s.onHandleError.bind(s));for(var d in c.Events)h.on(c.Events[d],videojs.bind(s,s.onEvent));h.attachMedia(p),h.loadSource(t.src),u.trigger({type:"hlsInstanceCreated",data:{hls:h}}),u.trigger({type:"instanceCreated",data:{instance:h,type:"hls"}}),u.trigger({type:"debug",data:{message:"debug === 初始化 hls.js 完成,已传递 hls 地址"}}),s.statsTimer=setInterval(function(){if(!u.el_)return!1;var y=h.levels[h.currentLevel]&&h.levels[h.currentLevel].realBitrate/1e3,g=u.getVideoPlaybackQuality(),v=g.droppedVideoFrames||0,S=g.totalVideoFrames||0,C="",k=u.tech_.hlsProvider.hls.abrController.bwEstimator;k&&k.getEstimate()&&(C=+(125e-6*k.getEstimate()).toFixed(0)),u.trigger({type:"playstatus",data:{type:"hls",droppedFrames:v,decodedFrames:S,bitrate:y,speed:C}})},1e3),window.Hls&&r.xp2pConfig&&r.xp2pConfig.useXP2P&&u.XP2PHlsjsPlugin&&u.XP2PHlsjsPlugin().startHLSP2P(s.hls,window.HLSP2P,function(y){})};u.trigger({type:"debug",data:{message:"debug === 开始加载hls.js"}}),Promise.all([(function(){return r.xp2pConfig&&r.xp2pConfig.useXP2P&&r.xp2pConfig.format==="hls"&&!window.HLSP2P?new Promise(function(c,h){loadScript(XP2P_HLS_PATH,function(p){p?h():c()})}):Promise.resolve()})(),(function(){return window.Hls?Promise.resolve():new Promise(function(c,h){loadScript(HLS_PATH,function(p){p?h():c()})})})()]).then(function(){l()}).catch(function(c){u.error({code:30})})}return n.prototype.switchQuality=function(t){t.id!=this.hls.currentLevel&&(this.switchStatus="switching",this.switchData=t,this.tech.trigger({type:"hlsresolutionswitching",data:this.switchData}),this.hls.nextLevel=t.id,this.hls.config.abrEnabled=!1),t.id===-1&&(this.hls.config.abrEnabled=!0)},n.prototype.dispose=function(){this.statsTimer&&clearInterval(this.statsTimer),this.hls&&this.hls.destroy()},n.prototype.onHandleError=function(){this.statsTimer&&clearInterval(this.statsTimer)},n.prototype.onSubtitleLoaded=function(t,e){var r=this,s=this.tech.player(),a=this.subtitlesLoadedCount,u=this.subtitles||this.hls.subtitleTracks;this.subtitles[a].url=e.details.fragments[0].url,++this.subtitlesLoadedCount<u.length?this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:u[this.subtitlesLoadedCount].url,id:u[this.subtitlesLoadedCount].id}):s.ready(function(){r.addHlsSubtitles()})},n.prototype.onAudioTrackLoaded=function(t,e){var r=this;try{var s=this.tech.player(),a=Math.min(this.audioTracks.length-1,this.audioTrackLoadedCount),u=this.hls.audioTracks;this.audioTracks[a].url=e.details.fragments[0].url,++this.audioTrackLoadedCount<u.length?this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:u[this.audioTrackLoadedCount].url,id:u[this.audioTrackLoadedCount].id}):s.ready(function(){r.addAudioTracks()})}catch{}},n.prototype.loadAudioTracks=function(){var t=this,e=this.hls.audioTracks;if(e.length){e.forEach(function(a){t.audioTracks.push({id:a.id,name:a.name,lang:a.lang,loaded:!1,default:a.default})});for(var r=void 0,s=0;s<e.length&&(!e[s].url||!(r=e[s]));s++);if(!r)return!1;this.hls.trigger(this.Hls.Events.AUDIO_TRACK_LOADING,{url:r.url,id:r.id}),this.hls.on(this.Hls.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded.bind(this))}},n.prototype.loadSubtiles=function(){var t=this,e=this.hls.subtitleTracks&&this.hls.subtitleTracks.length>0?this.hls.subtitleTracks:this.hls.subtitleTrackController.tracks;if(e.length){e.forEach(function(s){t.subtitles.push({default:s.default,autoselect:s.autoselect,forced:s.forced,name:s.name,lang:s.lang,loaded:!1,url:s.url,id:s.id})});var r=e[0];this.hls.on(this.Hls.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleLoaded.bind(this)),this.hls.trigger(this.Hls.Events.SUBTITLE_TRACK_LOADING,{url:r.url,id:r.id})}},n.prototype.addAudioTracks=function(){var t=this;this.audioTracks.length&&this.audioTracks.some(function(e){return!e.loaded})&&this.audioTracks.forEach(function(e){var r=t.tech.addAudioTrack({id:e.id,src:e.url,kind:"audio",srclang:e.lang,label:e.name,enabled:e.default},!0);e.loaded=!0,r.addEventListener("load",function(){e.loaded=!0})})},n.prototype.addHlsSubtitles=function(){var t=this;this.subtitles.length&&this.subtitles.some(function(e){return!e.loaded})&&this.subtitles.forEach(function(e){var r=t.tech.addRemoteTextTrack({src:e.url,kind:"subtitles",srclang:e.lang,label:e.name,mode:e.default?"showing":""},!0);r.addEventListener("load",function(){e.loaded=!0})})},n.prototype.onEvent=function(t,e){this.tech.trigger({type:t,data:e});var r=this.tech.player();switch(t){case this.Hls.Events.MANIFEST_LOADED:this.manifests.push(e.networkDetails.response||e.networkDetails.responseText);break;case this.Hls.Events.LEVEL_SWITCHING:break;case this.Hls.Events.LEVEL_SWITCHED:this.switchStatus=="switching"&&(this.switchStatus="switched",this.tech.trigger({type:"hlsresolutionswitched",data:this.switchData}),this.switchData=null);break;case this.Hls.Events.LEVEL_SWITCH_ERROR:r.trigger({type:"levelSwitchError"})}},n.prototype.onMetaData=function(t,e){var r=[],s=this.hls,a=this;if(e.levels.length>1){var u={id:-1,label:"auto",selected:s.manualLevel===-1};r.push(u),e.levels.forEach(function(c,h){var p={};p.id=h,p.selected=h===s.manualLevel,p.label=a.getLevelLabel(c),r.push(p)});var l={qualityData:{video:r},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:l})},1)}},n.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},n.prototype.onLevelLoaded=function(t,e){this._duration=e.details.live?1/0:e.details.totalduration},n.prototype.onError=function(t,e){var r=this.tech.player();if(e.fatal)switch(e.type){case this.Hls.ErrorTypes.NETWORK_ERROR:r.error({code:14,source:e});break;case this.Hls.ErrorTypes.MEDIA_ERROR:this.hls.config.enableRecoverMediaError?this.hlsjsErrorHandler(e):r.error({code:15,source:e});break;case this.Hls.ErrorTypes.MUX_ERROR:r.error({code:16,source:e});break;case this.Hls.ErrorTypes.OTHER_ERROR:default:r.error({code:17,source:e}),this.drmBackup&&e.type==="keySystemError"&&r.error(null)}else switch(e.details){case this.Hls.ErrorDetails.KEY_LOAD_ERROR:}},n.prototype.errorHandlerFactory=function(){var t=this.hls,e=this.tech.player(),r=null,s=null,a=0;return function(u){var l=Date.now();a==t.config.recoverMediaErrorMaxRetry?e.error({code:15,source:u}):(!r||l-r>2e3?(r=l,t.recoverMediaError()):(!s||l-s>2e3)&&(s=l,t.swapAudioCodec(),t.recoverMediaError()),a++)}},n.prototype.duration=function(){return this._duration},n})(),hlsTypeRE=/^application\/(x-mpegURL|vnd\.apple\.mpegURL)$/i,hlsExtRE=/.m3u8(?![^?])/i,HlsSourceHandler={name:"hlsSourceHandler",canHandleSource:function(n){return n.skipHlsJs||n.keySystems&&n.keySystems["com.apple.fps.1_0"]?"":hlsTypeRE.test(n.type)&&hlsExtRE.test(n.src)?"probably":hlsExtRE.test(n.src)?"maybe":""},handleSource:function(n,t,e){return t.hlsProvider?(t.hlsProvider.dispose(),t.hlsProvider=null):e.hlsConfig&&e.hlsConfig.autoStartLoad===!1&&t.on("play",function(){this.player().hasStarted()||this.hlsProvider.hls.startLoad()}),t.hlsProvider=new Html5HlsJS(n,t,e),t.hlsProvider},canPlayType:function(n){return hlsTypeRE.test(n)?"probably":""}};TCPlayer.mountHlsProvider=mountHlsProvider,mountHlsProvider();var Html5DashJS=(function(){function n(t,e,r){var s=this;classCallCheck(this,n);var a=function(){var u=window_1.dashjs;if(s.dashjs=u,r=r||e.options_,s.player=videojs(r.playerId),s.player.dash=s.player.dash||{},s.tech_=e,s.el_=e.el(),s.elParent_=s.el_.parentNode,s.hasFiniteDuration_=!1,t.src){e.isReady_=!1,n.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),t=n.updateSourceData(t)),n.hooks("updatesource").forEach(function(c){t=c(t)});var l=t.src;s.keySystemOptions_=n.buildDashJSProtData(t.keySystemOptions||t.keySystems),s.player.dash.mediaPlayer=u.MediaPlayer().create(),s.player.dash.mediaPlayer.updateSettings(r.dashConfig),s.player.dash.mediaPlayer.updateSettings({debug:{logLevel:5}}),s.mediaPlayer_=s.player.dash.mediaPlayer,n.useVideoJSDebug&&(videojs.log.warn('useVideoJSDebug has been deprecated. Please switch to using hook("beforeinitialize", callback).'),n.useVideoJSDebug(s.mediaPlayer_)),n.beforeInitialize&&(videojs.log.warn('beforeInitialize has been deprecated. Please switch to using hook("beforeinitialize", callback).'),n.beforeInitialize(s.player,s.mediaPlayer_)),n.hooks("beforeinitialize").forEach(function(c){c(s.player,s.mediaPlayer_)}),s.mediaPlayer_.initialize(),s.player.trigger({type:"dashInstanceCreated",data:{instance:s.mediaPlayer_}}),s.player.trigger({type:"instanceCreated",data:{instance:s.mediaPlayer_,type:"dash"}}),s.retriggerError_=function(c){if(c.error==="capability"&&c.event==="mediasource")s.player.error({code:4,message:"The media cannot be played because it requires a feature that your browser does not support."});else if(c.error!=="manifestError"||c.event.id!=="createParser"&&c.event.id!=="codec"&&c.event.id!=="nostreams"&&c.event.id!=="nostreamscomposed"&&c.event.id!=="parse"&&c.event.id!=="multiplexedrep")if(c.error==="mediasource")c.event.match("MEDIA_ERR_ABORTED")?s.player.error({code:1,message:c.event}):c.event.match("MEDIA_ERR_NETWORK")?s.player.error({code:2,message:c.event}):c.event.match("MEDIA_ERR_DECODE")?s.player.error({code:3,message:c.event}):c.event.match("MEDIA_ERR_SRC_NOT_SUPPORTED")?s.player.error({code:4,message:c.event}):c.event.match("MEDIA_ERR_ENCRYPTED")?s.player.error({code:5,message:c.event}):(c.event.match("UNKNOWN"),s.player.error({code:4,message:c.event}));else if(c.error==="capability"&&c.event==="encryptedmedia")s.player.error({code:5,message:"The media cannot be played because it requires encryption features that your browser does not support."});else if(c.error==="key_session")s.player.error({code:5,message:c.event});else if(c.error==="download")s.player.error({code:2,message:"The media playback was aborted because too many consecutive download errors occurred."});else{if(c.error!=="mssError")return;s.player.error({code:3,message:c.event})}else s.player.error({code:4,message:c.event.message});setTimeout(function(){s.mediaPlayer_.reset()},10)},s.mediaPlayer_.on(u.MediaPlayer.events.ERROR,s.retriggerError_),s.mediaPlayer_.on(u.MediaPlayer.events.STREAM_INITIALIZED,videojs.bind(s,s.onMetaData)),s.currentQuality={video:"",audio:""},Object.keys(u.MediaPlayer.events).forEach(function(c){s.mediaPlayer_.on(u.MediaPlayer.events[c],videojs.bind(s,s.onEvent))}),s.mediaPlayer_.attachView(s.el_),s.mediaPlayer_.setAutoPlay(!0),s.mediaPlayer_.setProtectionData(s.keySystemOptions_),s.mediaPlayer_.attachSource(l),s.tech_.triggerReady()}};window_1.dashjs?a():loadScript(DASH_PATH,function(){a()})}return n.buildDashJSProtData=function(t){var e={};if(!t)return null;if(Array.isArray(t))for(var r=0;r<t.length;r++){var s=t[r],a=videojs.mergeOptions({},s.options);a.licenseUrl&&(a.serverURL=a.licenseUrl,delete a.licenseUrl),e[s.name]=a}else e=t;return e},n.prototype.dispose=function(){var t=this;this.mediaPlayer_&&(this.mediaPlayer_.off(this.dashjs.MediaPlayer.events.ERROR,this.retriggerError_),Object.keys(this.dashjs.MediaPlayer.events).forEach(function(e){t.mediaPlayer_.off(t.dashjs.MediaPlayer.events[e],videojs.bind(t,t.onEvent))}),this.mediaPlayer_.reset()),this.player.dash&&delete this.player.dash},n.prototype.duration=function(){return this.mediaPlayer_?this.mediaPlayer_.isDynamic()&&!this.hasFiniteDuration_?1/0:this.mediaPlayer_.duration():0},n.hooks=function(t,e){return n.hooks_[t]=n.hooks_[t]||[],e&&(n.hooks_[t]=n.hooks_[t].concat(e)),n.hooks_[t]},n.hook=function(t,e){n.hooks(t,e)},n.removeHook=function(t,e){var r=n.hooks(t).indexOf(e);return r!==-1&&(n.hooks_[t]=n.hooks_[t].slice(),n.hooks_[t].splice(r,1),!0)},n.prototype.onMetaData=function(t){var e=this,r=this.mediaPlayer_;window_1._mediaPlayer=r;var s=r.getRepresentationsByType("video"),a=r.getSettings(),u=a.streaming.abr.autoSwitchBitrate.video,l=[];if(s.length>0){l.push({id:-1,label:"auto",selected:u}),s.forEach(function(d,y){l.push({id:y,label:e.getLevelLabel(d),selected:!u&&e.currentQuality.video===y})});var c={qualityData:{video:l},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech_.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:c})},1),r.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}});var h=0;s.length>1&&(h=1);var p=s[h];r.setRepresentationForTypeById("video",p.id)}},n.prototype.switchQuality=function(t){var e=this.mediaPlayer_;if(t.id===-1)e.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}});else if(t.id!=this.currentQuality[t.trackType]){e.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}});var r=e.getRepresentationsByType("video"),s=r[t.id];e.setRepresentationForTypeById("video",s.id)}},n.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},n.prototype.onEvent=function(t){switch(this.tech_.trigger({type:"dash_"+t.type,data:t}),t.type){case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_REQUESTED:this.tech_.trigger({type:"dashqualityswitching",data:t});break;case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_RENDERED:this.tech_.trigger({type:"dashqualityswitched",data:t}),this.currentQuality[t.mediaType]=t.newQuality}},n})(),Component$6=videojs.getComponent("Component"),hlsOption=["fileID","requestID","mediaType","mimeType","provider","resolution","rate","frames","buffer","connectionSpeed"],mp4Option=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer"],dashOption=["fileID","requestID","mediaType","mimeType","resolution","rate","buffer","provider","connectionSpeed"],infoOption=["info"],VideoStatisticWrapper=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.nodelist={},s.status={fileID:"",requestID:"",mediaType:"",mimeType:"",provider:"",resolution:"",rate:"",frames:"",buffer:"",connectionSpeed:"",info:""},e.on("playcgiend",function(){clearTimeout(s.timeoutID),Object.keys(s.status).forEach(function(a){s.nodelist[a].reset()})}),e.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.tick():s.clearTimeout(s.timeoutID)})),s.init(),s}return inherits(t,n),t.prototype.tick=function(){var e=this;this.timeoutID=setTimeout(videojs.bind(this,function(){e.tick()}),1e3),this.updatePanel()},t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-statistic-wrapper"})},t.prototype.init=function(){var e=this;Object.keys(this.status).forEach(function(r){var s=new VideoTextItem(e,{key:r,data:e.status[r]});e.nodelist[r]=s,e.addChild(s)})},t.prototype.updatePanel=function(){var e=this;if(this.player().techName_==="Html5")switch(this.getStatus(),this.status.mediaType){case"m3u8":hlsOption.forEach(function(r){e.nodelist[r].updateContent(e.status[r])});break;case"mp4":mp4Option.forEach(function(r){e.nodelist[r].updateContent(e.status[r])});break;case"mpd":dashOption.forEach(function(r){e.nodelist[r].updateContent(e.status[r])})}else this.player().techName_==="Flash"&&(this.getFlashStatus(),infoOption.forEach(function(r){r==="info"&&e.nodelist[r].updateContent(e.status[r])}))},t.prototype.getStatus=function(){this.getFileID(),this.getRequestID(),this.getMediaType(),this.getMIMEType(),this.getResolution(),this.getRate(),this.getProvider(),this.getBuffer(),this.status.mediaType==="m3u8"&&(this.getFrames(),this.getConnectionSpeed()),this.status.mediaType==="mpd"&&this.getConnectionSpeed()},t.prototype.getFlashStatus=function(){this.status.mediaType="flash",this.getSupport()},t.prototype.getFileID=function(){var e=this.player().options_.fileID||"";return this.status.fileID=e,e},t.prototype.getRequestID=function(){var e=this.player().PlayerMetrics().playStatus;if(e){var r=e.requestID;return this.status.requestID=r,r}},t.prototype.getMediaType=function(){this.player_.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player_.src());var e=RegExp.$2||RegExp.$4||"";return this.status.mediaType=e,e},t.prototype.getMIMEType=function(){var e=this.player().src(),r=EXT_MIME[getFileExtension(e)]||"";return this.status.mimeType=r,r},t.prototype.getResolution=function(){var e=this.player_.tech_.el_.videoHeight||0,r=this.player_.tech_.el_.videoWidth||0,s=r+" x "+e;return this.status.resolution=s,s},t.prototype.getRate=function(){var e=this.player().playbackRate()||1;return this.status.rate=e+"x",e},t.prototype.getBuffer=function(){var e=this.player_.bufferedEnd().toFixed(1)||0,r=this.player_.duration().toFixed(1)||0,s=(e/r*100).toFixed(1)+"%",a=e+" / "+r+" ("+s+")";return this.status.buffer=a,a},t.prototype.getSupport=function(){var e=void 0;return e=this.status.mediaType!=="m3u8"&&this.status.mediaType!=="mp4"&&this.status.mediaType!=="dash"?"视频统计功能不支持当前视频格式":"",this.status.info=e,e},t.prototype.getProvider=function(){var e=this.player_.tech_.sourceHandler_;return e instanceof Html5HlsJS?(this.status.provider="HlsJS","HlsJS"):e instanceof Html5DashJS?(this.status.provider="DashJS","DashJS"):""},t.prototype.getFrames=function(){var e=this.player_.getVideoPlaybackQuality(),r=(e.droppedVideoFrames||0)+" dropped of "+(e.totalVideoFrames||0);return this.status.frames=r,r},t.prototype.getConnectionSpeed=function(){var e=void 0;if(this.status.mediaType==="m3u8"){var r=this.player_.tech_.hlsProvider.hls.abrController._bwEstimator;e=r&&r.getEstimate()?(125e-6*r.getEstimate()).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=e}if(this.status.mediaType==="mpd"){var s=this.player_.dash.mediaPlayer,a=s.getDashMetrics(),u=s.getDashAdapter(),l=s.getActiveStream().getStreamInfo(),c=l.index,h=a.getCurrentRepresentationSwitch("video").to,p=u.getBandwidthForRepresentation(h,c);e=p?(125e-6*p).toFixed(0)+"KB/s":"0KB/s",this.status.connectionSpeed=e}return e},t})(Component$6);videojs.registerComponent("VideoStatisticWrapper",VideoStatisticWrapper);var Component$5=videojs.getComponent("Component"),VideoStatisticPanel=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return e.on("statistic",videojs.bind(s,function(a){a.data.action==="open"?s.show():s.hide()})),e.on("playcgistart",function(){e.trigger({type:"statistic",data:{action:"close"}})}),s.init(),s}return inherits(t,n),t.prototype.createEl=function(){var e=this,r=videojs.dom.createEl("div",{className:"tcp-statistic vjs-hidden"}),s=videojs.dom.createEl("div",{className:"tcp-statistic-close",innerText:"[X]"});return s.addEventListener("click",function(){e.hide(),e.player().trigger({type:"statistic",data:{action:"close"}})}),r.appendChild(s),r},t.prototype.init=function(){this.addChild("VideoStatisticWrapper")},t.prototype.show=function(){n.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){n.prototype.hide.call(this),this.popped=!1},t})(Component$5);videojs.registerComponent("VideoStatisticPanel",VideoStatisticPanel);var MenuItem$3=videojs.getComponent("MenuItem"),MirrorMenuItem=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.addClass("tc-menu-list"),s.open=!1,s.hasOpen=!1,s.player=e,s.setup(),s}return inherits(t,n),t.prototype.setup=function(){var e=this;this.on(["tap","click"],function(){var r=e.player.tech().el();e.hasOpen||(window.MtaH5&&MtaH5.clickStat("mirror",{appid:e.player.options_.appID,fileid:e.player.options_.fileID}),e.player.trigger({type:"feature",data:"mirror"})),e.open?(videojs.dom.removeClass(r,"tcp-mirror"),videojs.dom.removeClass(e.el_,"tcp-menu-item-select")):(videojs.dom.addClass(r,"tcp-mirror"),videojs.dom.addClass(e.el_,"tcp-menu-item-select"),e.hasOpen=!0),e.open=!e.open})},t})(MenuItem$3);videojs.registerComponent("MirrorMenuItem",MirrorMenuItem);var MenuItem$4=videojs.getComponent("MenuItem"),PoweredByMenuItem=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.addClass("tc-menu-list"),s}return inherits(t,n),t})(MenuItem$4);videojs.registerComponent("PoweredByMenuItem",PoweredByMenuItem);var MenuItem$5=videojs.getComponent("MenuItem"),StatusMenuItem=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.addClass("tc-menu-list"),s.hasOpen=!1,s.player=e,e.on("statistic",videojs.bind(s,function(a){a.data.action==="close"&&(videojs.dom.removeClass(s.el_,"tcp-menu-item-select"),s.hasOpen=!1)})),s.setup(),s}return inherits(t,n),t.prototype.setup=function(){var e=this;this.on(["tap","click"],function(){e.hasOpen?(videojs.dom.removeClass(e.el_,"tcp-menu-item-select"),e.player.trigger({type:"statistic",data:{action:"close"}}),e.hasOpen=!1):(videojs.dom.addClass(e.el_,"tcp-menu-item-select"),e.player.trigger({type:"statistic",data:{action:"open"}}),e.hasOpen=!0,window.MtaH5&&MtaH5.clickStat("mirror",{appid:e.player.options_.appID,fileid:e.player.options_.fileID}),e.player.trigger({type:"feature",data:"statistic"}))})},t})(MenuItem$5);videojs.registerComponent("StatusMenuItem",StatusMenuItem),videojs.getComponent("Component");var Menu$2=videojs.getComponent("Menu");videojs.getComponent("MenuItem");var RightClickPopupMenu=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));s.hide(),s.addChild("PoweredByMenuItem",{label:"Powered by Tencent Cloud."}),!r.statistic||IS_IOS||IS_ANDROID||s.addChild("StatusMenuItem",{label:"Video statistic"}),r.mirror&&s.addChild("MirrorMenuItem",{label:"Mirror"}),e.on("contextmenu",videojs.bind(s,s.onContextmenu)),e.on(["tap","click"],videojs.bind(s,function(u){if(this.popped)return this.hide(),u.stopPropagation(),u.preventDefault(),!1})),videojs.on(document,["tap","click"],videojs.bind(s,function(u){this.popped&&this.hide()}));var a=s;return s.children().forEach(function(u){u.on(["tap","click"],function(){a.hide()})}),s}return inherits(t,n),t.prototype.createEl=function(){var e=n.prototype.createEl.call(this);return videojs.dom.addClass(e,"tcp-right-click-popup-menu"),e},t.prototype.show=function(){n.prototype.show.call(this),this.popped=!0},t.prototype.hide=function(){n.prototype.hide.call(this),this.popped=!1},t.prototype.onContextmenu=function(e){e.preventDefault(),this.show();var r=this.el(),s=e.clientX,a=e.clientY,u=getViewportSize(),l=u.width,c=u.height,h=s+r.offsetWidth-l+5;h=Math.max(0,h);var p=a+r.offsetHeight-c+5;p=Math.max(0,p);var d=this.player().el().getBoundingClientRect();r.style.left=Math.max(0,s-d.left-h)+"px",r.style.top=Math.max(0,a-d.top-p)+"px"},t})(Menu$2);videojs.registerComponent("RightClickPopupMenu",RightClickPopupMenu);var clickableComponent=videojs.getComponent("ClickableComponent"),TimeTooltip$2=videojs.getComponent("TimeTooltip"),Component$9=videojs.getComponent("Component"),dom=videojs.dom,formatTime$2=videojs.formatTime,COMMENT_WIDTH=140,COMMENT_HEIGHT_SINGLE_LINE=23,COMMENT_SHOW_ON_THE_LEFT={POPUP_CONTAINER_OFFSET:-130,POPUP_CONTAINER_OFFSET_WITHOUTGIT:-100,TRIANGLE_OFFEST:96,TRIANGLE_OFFEST_WITHOUTGIF:95},COMMENT_SHOW_ON_THE_RIGHT={TRIANGLE_OFFEST:6,POPUP_CONTAINER_OFFSET:0},ProgressMarkerGenerator=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.duration=0,s.registerListener(),s}return inherits(t,n),t.prototype.registerListener=function(){this.player_.one("canplay",videojs.bind(this,this.resetDotsElement))},t.prototype.resetDotsElement=function(){var e=this.player_;this.duration=e.duration(),dom.emptyEl(this.el_),this.resetEl()},t.prototype.resetEl=function(){this.setUpEl()},t.prototype.dotMouseLeave=function(){var e=event.currentTarget,r=e.getAttribute("container-id");this.getChildById(r).hide()},t.prototype.dotHover=function(){var e=event.currentTarget.parentElement.offsetWidth,r=event.currentTarget.offsetLeft+COMMENT_WIDTH,s=this.getChildById(event.currentTarget.getAttribute("container-id")),a=s.getAttribute("class").search("tcp-without-gif")>=0,u=s.el_.querySelector(".tcp-triangle-both")||s.el_.querySelector(".tcp-triangle");r>e?a?(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET_WITHOUTGIT+"px",u.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST_WITHOUTGIF+"%"):(s.el_.style.left=COMMENT_SHOW_ON_THE_LEFT.POPUP_CONTAINER_OFFSET+"px",u.style.left=COMMENT_SHOW_ON_THE_LEFT.TRIANGLE_OFFEST+"%"):event.currentTarget.offsetLeft<=COMMENT_WIDTH&&!a&&(s.el_.style.left=COMMENT_SHOW_ON_THE_RIGHT.POPUP_CONTAINER_OFFSET+"px",u.style.left=COMMENT_SHOW_ON_THE_RIGHT.TRIANGLE_OFFEST+"px");var l=s.getChild("DotImage");if(l){var c=l.el_.getElementsByClassName("tcp-dot-timestamp")[0],h=event.currentTarget.getAttribute("dotinsecond"),p=formatTime$2(h);c.innerHTML=p}s.show()},t.prototype.setChildInTheContainer=function(e,r){var s=e.content&&e.content!==""?decodeURIComponent(e.content.replace(/\+/g," ")):"";if(s!==""){var a=r.addChild("DotComment");a.el_.innerHTML=encodeHTML(s)}if(e.img){r.el_.querySelector(".tcp-triangle").setAttribute("class","tcp-triangle-both");var u=r.addChild("DotImage");u.el_.firstChild.setAttribute("src",e.img),s==""?(r.addClass("tcp-only-gif"),u.el_.firstChild.className="tcp-image-in-container-only-image"):this.countContentSize(s)<=20&&(r.addClass("tcp-single-line"),a.el_.style.height=COMMENT_HEIGHT_SINGLE_LINE+"px")}else if(s!==""){var l=this.countContentSize(s);l<=14?r.addClass("tcp-single-line"):l<=28&&r.addClass("tcp-two-lines"),r.addClass("tcp-without-gif"),a.addClass("tcp-large-comment")}},t.prototype.markSetUp=function(e){var r=e.timeOffset>0?e.timeOffset/1e3:0,s=this.duration?this.duration:0;if(!(typeof r!="number"||r>s)){var a=document.createElement("div");a.className="tcp-dot-basic-style",a.setAttribute("dotinsecond",r.toString()),e.class&&(a.className+=" "+e.class);var u=this.addChild("PopUpContainer");return a.setAttribute("container-id",u.id_),this.setChildInTheContainer(e,u),a.appendChild(u.el_),a.style.left=r/s*100+"%",a.addEventListener("mouseover",videojs.bind(this,this.dotHover)),a.addEventListener("mouseleave",videojs.bind(this,this.dotMouseLeave)),a}},t.prototype.setUpEl=function(){var e=this,r=this.player_.options_.dots||0,s=this.el_||n.prototype.createEl.call(this);return videojs.dom.addClass(s,"tcp-dot-component"),r&&r instanceof Array&&r.length>0&&r.forEach(function(a){var u=a.content||"";if(u&&u!=""||a.img){var l=e.markSetUp(a);l&&s.appendChild(l)}}),s},t.prototype.countContentSize=function(e){for(var r=0,s=e.length,a=-1,u=0;u<s;u++)a=e.charCodeAt(u),r+=a>=0&&a<=128?1:2;return r},t.prototype.createEl=function(){return this.setUpEl()},t})(clickableComponent);videojs.registerComponent("ProgressMarkerGenerator",ProgressMarkerGenerator);var DotComment=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.addClass("tcp-dot-comment"),s}return inherits(t,n),t})(Component$9);videojs.registerComponent("DotComment",DotComment);var DotImage=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));s.addClass("tcp-dot-image");var a=s.el_||n.prototype.createEl.call(s),u=dom.createEl("img");u.className="tcp-image-in-container",a.appendChild(u);var l=dom.createEl("span");return l.className="tcp-dot-timestamp",l.innerHTML="",a.appendChild(l),s}return inherits(t,n),t})(Component$9);videojs.registerComponent("DotImage",DotImage);var PopUpContainer=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));s.addClass("tcp-popup-container");var a=dom.createEl("div");return a.setAttribute("class","tcp-triangle"),s.el_.appendChild(a),s.hide(),s}return inherits(t,n),t})(TimeTooltip$2);videojs.registerComponent("PopUpContainer",PopUpContainer);var Plugin$2=videojs.getPlugin("plugin"),SpeedUp=(function(n){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,n.call(this,e));return r.TARGET_LANTENCY=1,r.MAX_LATENCY=3,r.RATEVALUE=1.1,e.ready(videojs.bind(r,r.init)),r}return inherits(t,n),t.prototype.checkLatency=function(){var e=this.player.bufferedEnd()-this.player.currentTime();e>this.MAX_LATENCY&&this.player.playbackRate(this.RATEVALUE),e<this.TARGET_LANTENCY&&this.player.playbackRate(1)},t.prototype.init=function(){var e=this,r=this.player,s=void 0;r.on("playing",function(){r.duration()===1/0&&(s=setInterval(e.checkLatency.bind(e),1e3))}),r.on("waiting",function(){e.reset(s)}),r.on("pause",function(){e.reset(s)})},t.prototype.reset=function(e){this.player.playbackRate(1),clearInterval(e)},t})(Plugin$2);videojs.registerPlugin("SpeedUp",SpeedUp);var Button$3=videojs.getComponent("Button"),BigPlayButton$2=videojs.getComponent("BigPlayButton");BigPlayButton$2.prototype.createEl=function(){var n=Button$3.prototype.createEl.call(this),t=getTemplate();return(this.options_.shapeType||this.options_.styleType)&&(t=getTemplate(this.options_.shapeType,this.options_.styleType)),n.appendChild(videojs.dom.createEl("div",{className:"vjs-button-icon",innerHTML:t})),n},BigPlayButton$2.prototype.controlText_="Play";var Component$10=videojs.getComponent("Component"),VideoStatisticWrapper$1=videojs.getComponent("VideoStatisticWrapper"),LoadingSpinner$2=videojs.getComponent("LoadingSpinner");LoadingSpinner$2.prototype.createEl=function(){function n(s,a){var u=new VideoStatisticWrapper$1(s);if(u.getMediaType(),(u.getBuffer()||"").indexOf("100.0%")>-1)return a.innerText="",!1;a.innerText=u.getConnectionSpeed()}var t=this,e=Component$10.prototype.createEl.call(this,"div",{className:"tcp-loading-spinner",dir:"ltr"});if(!this.player_.options_.loadingSpeed)return e;var r=null;return this.player_.on("waiting",function(){r=setInterval(function(){n(t.player_,e)},100)}),this.player_.on("timeupdate",function(){r&&clearInterval(r)}),e};var Plugin$3=videojs.getPlugin("plugin"),log$3=videojs.log,Skin=(function(n){function t(e,r){classCallCheck(this,t),log$3("Skin initializing");var s=possibleConstructorReturn(this,n.call(this,e));return s.player.addClass("tcp-skin"),log$3("Skin initialized"),s}return inherits(t,n),t})(Plugin$3);videojs.registerPlugin("Skin",Skin);var now=function(){return _root.Date.now()},now_1=now,reWhitespace=/\s/,_trimmedEndIndex=trimmedEndIndex,reTrimStart=/^\s+/,_baseTrim=baseTrim,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,toNumber_1=toNumber,FUNC_ERROR_TEXT$2="Expected a function",nativeMax=Math.max,nativeMin=Math.min,debounce_1=debounce,FUNC_ERROR_TEXT$1="Expected a function",throttle_1=throttle$1,Component$11=videojs.getComponent("Component"),DvrProgressControl=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on("mousemove",s.handleMouseMove),s.on("mouseup",s.handleMouseUp),s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control tcp-dvr-progress-control"})},t.prototype.update=function(e){this.getChild("DvrSeekBar").update(e)},t.prototype.handleMouseMove=function(e){var r=this.getChild("DvrSeekBar"),s=r.calculateDistance(e),a=r.getChild("DvrMouseTimeDisplay");a&&a.update(videojs.dom.getBoundingClientRect(r.el()),s)},t.prototype.handleMouseUp=function(e){this.getChild("DvrSeekBar").handleMouseUp(e)},t})(Component$11);DvrProgressControl.prototype.options_={children:["DvrSeekBar"]},videojs.registerComponent("DvrProgressControl",DvrProgressControl);var Slider$2=videojs.getComponent("Slider"),DvrSeekBar=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.percent_=1,s.update=throttle_1(videojs.bind(s,s.update),50),s.on(e,"seekToLive",videojs.bind(s,function(a){this.update(a.data)})),s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update=function(e){e!=null&&(this.percent_=e,this.bar.update(videojs.dom.getBoundingClientRect(this.el_),e),this.updateAriaAttributes(e))},t.prototype.handleMouseDown=function(e){n.prototype.handleMouseDown.call(this,e),this.isMouseDown=!0},t.prototype.handleMouseMove=function(e){var r=this.calculateDistance(e);this.update(r)},t.prototype.handleMouseUp=function(e){n.prototype.handleMouseUp.call(this);var r=this.calculateDistance(e);this.update(r),this.player().Dvr().timeShift(r)},t.prototype.stepBack=function(){},t.prototype.stepForward=function(){},t.prototype.updateAriaAttributes=function(e){this.el().setAttribute("aria-valuenow",(100*e).toFixed(2))},t.prototype.getPercent=function(){return this.percent_},t})(Slider$2);DvrSeekBar.prototype.options_={children:["DvrMouseTimeDisplay","DvrTimeShiftBar"],barName:"DvrTimeShiftBar"},videojs.registerComponent("DvrSeekBar",DvrSeekBar);var DvrTimeShiftBar=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.el_.style.width="100%",s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar tcp-dvr-time-shift",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 100%</span>"})},t.prototype.update=function(e,r){var s=(100*r).toFixed(2)+"%";this.el_.style.width=s},t})(Component$11);videojs.registerComponent("DvrTimeShiftBar",DvrTimeShiftBar);var MouseTimeDisplay$2=videojs.getComponent("MouseTimeDisplay"),DvrMouseTimeDisplay=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.update=function(e,r){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player().Dvr().dvrData.maxTimeShift,u=videojs.formatTime((1-r)*a,a);s.el_.style.left=e.width*r+"px",s.getChild("timeTooltip").update(e,r,u)})},t})(MouseTimeDisplay$2);videojs.registerComponent("DvrMouseTimeDisplay",DvrMouseTimeDisplay);var Button$4=videojs.getComponent("Button"),LiveButton=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(){var e=Button$4.prototype.createEl.call(this,"button",{className:"vjs-live-control vjs-control"});return this.contentEl_=videojs.dom.createEl("div",{className:"vjs-live-display",innerHTML:this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.update=function(){},t.prototype.updateControlText=function(e){this.controlText(e?"直播中":"返回直播")},t.prototype.handleClick=function(e){this.player().Dvr().seekToLive()},t})(Button$4);LiveButton.prototype.controlText_="返回直播",videojs.registerComponent("LiveButton",LiveButton);var Plugin$4=videojs.getPlugin("plugin"),Dvr=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));s.isInit=!1,s.options=r;var a=s;return e.ready(function(){var u=e.tech(!0);u&&u.hlsProvider&&e.one("loadedmetadata",function(l){u.el_.setAttribute("poster",""),a.init(),a.options.liveURL&&a.seekToLive()})}),s}return inherits(t,n),t.prototype.init=function(){var e=this.player,r=e.tech(!0).hlsProvider;if(this.parseM3u8(r.manifests[0]),!this.dvrData.startTime&&!this.isInit)return void e.one("loadedmetadata",videojs.bind(this,function(s){this.init()}));this.initControl(),this.delay=getParams("delay",e.tech_.currentSource_.src)||0,this.updateControl(!this.isLive()),e.on("loadedmetadata",videojs.bind(this,function(){this.parseM3u8(r.manifests[0]),this.delay=getParams("delay",e.tech_.currentSource_.src)||0,this.updateControl()})),this.isInit=!0},t.prototype.initControl=function(){var e=this.player;e.addClass("vjs-dvr"),e.controlBar.getChild("ProgressControl").hide(),e.controlBar.getChild("LiveDisplay").hide(),e.controlBar.addChild("DvrProgressControl",{},5),e.controlBar.addChild("liveButton",{},6)},t.prototype.updateControl=function(e){var r=this.player,s=r.controlBar.getChild("ProgressControl"),a=r.controlBar.getChild("LiveDisplay"),u=r.controlBar.getChild("DvrProgressControl"),l=r.controlBar.getChild("LiveButton");r.toggleClass("vjs-dvr-live",this.isLive()),l.updateControlText(this.isLive()),e&&u.update(1-this.delay/this.dvrData.maxTimeShift),this.dvrData.startTime?(u.show(),l.show(),s.hide(),a.hide()):(u.hide(),l.hide(),s.show(),a.show())},t.prototype.seekToLive=function(){this.isLive()||(this.timeShift(1),this.player.trigger({type:"seekToLive",data:1}))},t.prototype.isLive=function(){return!(this.delay>0)},t.prototype.timeShift=function(e){var r=this.player,s=(r.getChild("ControlBar").getChild("LiveButton"),r.tech_.currentSource_),a=Math.floor(this.dvrData.maxTimeShift*(1-e));this.delay=a,a==0&&this.options.liveURL?r.src(this.options.liveURL):(s.src=(this.options.shiftURL||s.src).replace(/delay=*(\d+)/,"delay="+a),r.src(r.tech_.currentSource_.src)),r.bigPlayButton.hide(),r.posterImage.hide(),r.tech_.one("hlsManifestParsed",videojs.bind(this,function(){r.play()}))},t.prototype.parseM3u8=function(e){this.dvrData={};for(var r=new RegExp([/#EXT-TX-TS-START-TIME:*(.+)/.source,/|#EXT-TX-TS-DURATION:*(.+)/.source].join(""),"g"),s=void 0;(s=r.exec(e))!==null;)s[1]?this.dvrData.startTime=s[1]:s[2]&&(this.dvrData.duration=s[2]);this.dvrData.startTime&&(this.dvrData.maxTimeShift=Math.min(Math.floor(new Date().getTime()/1e3-this.dvrData.startTime),this.dvrData.duration))},t})(Plugin$4);videojs.registerPlugin("Dvr",Dvr);var Component$12=videojs.getComponent("Component"),LiveProgressControl=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.on("mousemove",s.handleMouseMove),s.on("mouseup",s.handleMouseUp),s.on("loadedmetadata",s.handleInit),s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control tcp-live-progress-control"})},t.prototype.update=function(e){this.getChild("LiveSeekBar").update(e)},t.prototype.handleInit=function(){this.player.dvrMode()!=="dvrLive"?this.hide():(this.player.removeClass("vjs-live"),this.show(),player.controlBar.currentTimeDisplay.show())},t.prototype.handleMouseMove=function(e){var r=this.getChild("LiveSeekBar"),s=r.calculateDistance(e),a=r.getChild("LiveMouseTimeDisplay");a&&a.update(videojs.dom.getBoundingClientRect(r.el()),s)},t.prototype.handleMouseUp=function(e){this.getChild("LiveSeekBar").handleMouseUp(e)},t})(Component$12);LiveProgressControl.prototype.options_={children:["LiveSeekBar"]},videojs.registerComponent("LiveProgressControl",LiveProgressControl);var Slider$3=videojs.getComponent("Slider"),LiveSeekBar=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.percent_=1,s.update=throttle_1(videojs.bind(s,s.update),50),s.on(e,"timeupdate",s.update),s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update=function(e){e!=null&&(this.percent_=e,this.bar.update(videojs.dom.getBoundingClientRect(this.el_),e),this.updateAriaAttributes(e))},t.prototype.handleMouseDown=function(e){n.prototype.handleMouseDown.call(this,e),this.isMouseDown=!0},t.prototype.handleMouseMove=function(e){var r=this.calculateDistance(e);this.update(r)},t.prototype.handleMouseUp=function(e){n.prototype.handleMouseUp.call(this);var r=this.calculateDistance(e);this.update(r),this.player().LiveDvr().timeShift(r)},t.prototype.stepBack=function(){},t.prototype.stepForward=function(){},t.prototype.updateAriaAttributes=function(e){this.el().setAttribute("aria-valuenow",(100*e).toFixed(2))},t.prototype.getPercent=function(){return this.percent_},t})(Slider$3);LiveSeekBar.prototype.options_={children:["LiveMouseTimeDisplay","LiveTimeShiftBar"],barName:"LiveTimeShiftBar"},videojs.registerComponent("LiveSeekBar",LiveSeekBar);var LiveTimeShiftBar=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.el_.style.width="100%",s}return inherits(t,n),t.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar tcp-dvr-time-shift tcp-live-time-shift",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 100%</span>"})},t.prototype.update=function(e,r){var s=(100*r).toFixed(2)+"%";this.el_.style.width=s},t})(Component$12);videojs.registerComponent("LiveTimeShiftBar",LiveTimeShiftBar);var MouseTimeDisplay$3=videojs.getComponent("MouseTimeDisplay"),LiveMouseTimeDisplay=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.update=function(e,r){var s=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var a=s.player().VttThumbnail().liveDuration,u=videojs.formatTime(r*a,a);s.el_.style.left=e.width*r+"px",s.getChild("timeTooltip").update(e,r,u)})},t})(MouseTimeDisplay$3);videojs.registerComponent("LiveMouseTimeDisplay",LiveMouseTimeDisplay);var Button$5=videojs.getComponent("Button"),LiveButton$1=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(){var e=Button$5.prototype.createEl.call(this,"button",{className:"vjs-live-control vjs-control"});return this.contentEl_=videojs.dom.createEl("div",{className:"vjs-live-display",innerHTML:this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},t.prototype.update=function(){},t.prototype.updateControlText=function(e){this.controlText(e?"直播中":"返回直播")},t.prototype.handleClick=function(e){this.player().LiveDvr().seekToLive()},t})(Button$5);LiveButton$1.prototype.controlText_="返回直播",videojs.registerComponent("LiveButton",LiveButton$1),(function(){try{var n=_getNative(Object,"defineProperty");return n({},"",{}),n}catch{}})();var argsTag$1="[object Arguments]",_baseIsArguments=baseIsArguments,objectProto$7=Object.prototype,hasOwnProperty$8=objectProto$7.hasOwnProperty,propertyIsEnumerable=objectProto$7.propertyIsEnumerable;_baseIsArguments((function(){return arguments})());var stubFalse_1=stubFalse;createCommonjsModule(function(n,t){var e=t&&!t.nodeType&&t,r=e&&!0&&n&&!n.nodeType&&n,s=r&&r.exports===e,a=s?_root.Buffer:void 0,u=a?a.isBuffer:void 0,l=u||stubFalse_1;n.exports=l});var _nodeUtil=createCommonjsModule(function(n,t){var e=t&&!t.nodeType&&t,r=e&&!0&&n&&!n.nodeType&&n,s=r&&r.exports===e,a=s&&_freeGlobal.process,u=(function(){try{var l=r&&r.require&&r.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}})();n.exports=u});_nodeUtil&&_nodeUtil.isTypedArray,createCommonjsModule(function(n,t){function e(c,h){if(h)return c.slice();var p=c.length,d=l?l(p):new c.constructor(p);return c.copy(d),d}var r=t&&!t.nodeType&&t,s=r&&!0&&n&&!n.nodeType&&n,a=s&&s.exports===r,u=a?_root.Buffer:void 0,l=u?u.allocUnsafe:void 0;n.exports=e});var DataView$1=_getNative(_root,"DataView"),_DataView=DataView$1,Promise$1=_getNative(_root,"Promise"),_Promise=Promise$1,Set$1=_getNative(_root,"Set"),_Set=Set$1,WeakMap=_getNative(_root,"WeakMap"),_WeakMap=WeakMap,mapTag$2="[object Map]",promiseTag="[object Promise]",setTag$2="[object Set]",weakMapTag$2="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=_toSource(_DataView),mapCtorString=_toSource(_Map),promiseCtorString=_toSource(_Promise),setCtorString=_toSource(_Set),weakMapCtorString=_toSource(_WeakMap),getTag=_baseGetTag;(_DataView&&getTag(new _DataView(new ArrayBuffer(1)))!=dataViewTag$2||_Map&&getTag(new _Map)!=mapTag$2||_Promise&&getTag(_Promise.resolve())!=promiseTag||_Set&&getTag(new _Set)!=setTag$2||_WeakMap&&getTag(new _WeakMap)!=weakMapTag$2)&&(getTag=function(n){var t=_baseGetTag(n),e=t=="[object Object]"?n.constructor:void 0,r=e?_toSource(e):"";if(r)switch(r){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$2;case promiseCtorString:return promiseTag;case setCtorString:return setTag$2;case weakMapCtorString:return weakMapTag$2}return t}),_nodeUtil&&_nodeUtil.isMap,_nodeUtil&&_nodeUtil.isSet;var Plugin$5=videojs.getPlugin("plugin"),LiveDvr=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));s.isInit=!1,s.options=r;var a=s;return e.ready(function(){var u=e.tech(!0),l=u&&u.hlsProvider,c=u&&u.webrtcProvider;(l||c)&&e.one("loadedmetadata",function(h){u.el_.setAttribute("poster",""),a.init()})}),s}return inherits(t,n),t.prototype.init=function(){var e=this,r=this.player;r.on("loadedmetadata",function(){e.durationTimer&&clearInterval(e.durationTimer);var a=r.dvrMode();a==="dvrLive"&&(r.controlBar.getChild("ProgressControl").hide(),r.controlBar.getChild("LiveProgressControl")?r.controlBar.getChild("LiveProgressControl").show():r.controlBar.addChild("LiveProgressControl",{},5),r.controlBar.PDTDisplay.hide(),r.removeClass("vjs-live"),r.addClass("vjs-live-dvr")),a==="dvrEvent"&&(r.controlBar.getChild("ProgressControl").show(),r.controlBar.getChild("LiveProgressControl",{},5).hide(),r.controlBar.PDTDisplay.show(),r.removeClass("vjs-live"),r.removeClass("vjs-live-dvr"))});var s=setInterval(function(){e.liveDuration=r.VttThumbnail().liveDuration,e.liveDuration&&(e.initControl(),e.isInit=!0,clearInterval(s))},500)},t.prototype.initControl=function(){var e=this.player;e.dvrMode()==="dvrLive"&&(e.removeClass("vjs-live"),e.addClass("vjs-live-dvr"),e.controlBar.getChild("ProgressControl").hide(),e.controlBar.getChild("LiveDisplay").hide(),e.controlBar.addChild("LiveProgressControl",{},5),e.controlBar.playbackRateMenuButton.hide(),e.controlBar.durationDisplay.hide(),e.controlBar.timeDivider.hide(),e.controlBar.currentTimeDisplay.show())},t.prototype.timeShift=function(e){var r=this.player,s=r.tech_.currentSource_;if(e===100&&this.options.liveURL){r.src(this.options.liveURL);try{r.controlBar.getChild("LiveProgressControl").LiveSeekBar.LiveTimeShiftBar.el_.style.width="100%"}catch{}}else s.src=this.options.shiftURL,r.src(r.tech_.currentSource_.src),r.one("loadedmetadata",function(){var a=r.duration()*e;r.currentTime(a)});r.bigPlayButton.hide(),r.posterImage.hide(),r.tech_.one("hlsManifestParsed",videojs.bind(this,function(){r.play()}))},t})(Plugin$5);videojs.registerPlugin("LiveDvr",LiveDvr);var Menu$4=videojs.getComponent("Menu"),QualitySwitcherMenu=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.addItem=function(e){n.prototype.addItem.call(this,e)},t})(Menu$4),MenuItem$6=videojs.getComponent("MenuItem"),QualitySwitcherMenuItem=(function(n){function t(e,r){return classCallCheck(this,t),possibleConstructorReturn(this,n.call(this,e,r))}return inherits(t,n),t.prototype.handleClick=function(e){if(n.prototype.handleClick.call(this,e),this.updateItems(),this.options_.callback(this.options_),this.options_.trackType=="video"){var r=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton");r.updateLabel(this.options_),r.unpressButton()}},t.prototype.updateItems=function(){for(var e=this.player().controlBar.getChild(this.options_.trackType+"QualitySwitcherMenuButton"),r=e.getChild(this.options_.trackType+"QualitySwitcherMenu"),s=r.children(),a=0;a<s.length;a++){var u=s[a];this!==u?(u.selected(!1),u.options_.selected=!1):u.options_.selected=!0}},t})(MenuItem$6),MenuButton$2=videojs.getComponent("MenuButton");videojs.getComponent("Menu");var QualitySwitcherMenuButton=(function(n){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,n.apply(this,arguments))}return inherits(t,n),t.prototype.createEl=function(){var e=n.prototype.createEl.call(this);return this.labelEl_=videojs.dom.createEl("div",{className:"tcp-quality-switcher-value",innerHTML:""}),e.appendChild(this.labelEl_),e},t.prototype.createMenu=function(){for(var e=this.options_.qualityList,r=new QualitySwitcherMenu(this.player(),{name:this.options_.trackType+"QualitySwitcherMenu"}),s=void 0,a=e.length-1;a>-1;a--){var u=e[a];s=videojs.mergeOptions(u,{trackType:this.options_.trackType,callback:this.options_.callback,selectable:!0}),r.addItem(new QualitySwitcherMenuItem(this.player(),s)),u.selected&&this.updateLabel(u)}return r},t.prototype.updateLabel=function(e){this.labelEl_.innerHTML="<p>"+this.localize(e.label)+"</p>"},t})(MenuButton$2),Plugin$6=videojs.getPlugin("plugin"),TRACK_TYPES=["video","audio","subtitle"],TRACK_CLASS={video:"tcp-video-quality-switcher",audio:"tcp-audio-quality-switcher",subtitle:"tcp-subtitle-quality-switcher"},log$4=videojs.log,QualitySwitcher=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.options=r,e.on("qualitydataloaded",videojs.bind(s,s.init)),s}return inherits(t,n),t.prototype.init=function(e){log$4("QualitySwitcher initializing",e);var r=this.player,s=e.data.qualityData,a=e.data.callbacks;if(this.setOptions({qualityData:s,callbacks:a}),!r.controlBar)return void log$4("QualitySwitcher can not initialize without control bar");for(var u=0;u<TRACK_TYPES.length;u++){var l=TRACK_TYPES[u],c=l+"QualitySwitcherMenuButton",h=r.controlBar.getChild(c);s[l]&&s[l].length>0&&r.controlBar.options_.QualitySwitcherMenuButton&&(h&&h.el()&&(h.dispose(),r.controlBar.removeChild(h)),this.repleaceLabel(l,s),h=new QualitySwitcherMenuButton(r,{name:c,qualityList:s[l],callback:a[l],trackType:l}),h.addClass(TRACK_CLASS[l]),r.controlBar.addChild(h,{},10))}log$4("QualitySwitcher initialized",e,this)},t.prototype.setOptions=function(e){this.options=videojs.mergeOptions(this.options,e)},t.prototype.setVideoQuality=function(e){if(this.options.qualityData&&this.options.callbacks.video){for(var r=this.options.qualityData.video,s=0;s<r.length;s++)r[s].selected&&(r[s].selected=!1),r[s].id===e.id&&(r[s].selected=!0);this.options.callbacks.video(e)}},t.prototype.getVideoQualityData=function(){return this.options.qualityData?this.options.qualityData.video:void 0},t.prototype.repleaceLabel=function(e,r){if(this.options.qualityLabelList){var s=this.options.qualityLabelList[e],a=r[e];if(a&&a.length>0&&s&&s.length>0)for(var u=0;u<a.length;u++){var l=a[u].label;l=l.slice(0,l.length-1);for(var c=0;c<s.length;c++)if(s[c].height==l){a[u].label=s[c].resolutionName;break}}}},t.prototype.reset=function(){for(var e=this.player,r=0;r<TRACK_TYPES.length;r++){var s=TRACK_TYPES[r],a=e.controlBar&&e.controlBar.getChild(s+"QualitySwitcherMenuButton");a&&a.el()&&(a.dispose(),e.controlBar.removeChild(a))}},t})(Plugin$6);videojs.registerPlugin("QualitySwitcher",QualitySwitcher);var Plugin$7=videojs.getPlugin("plugin"),log$5=videojs.log,defaultOptions={labels:{FLU:"流畅",SD:"标清",HD:"高清",FHD:"超清"},showOrder:["FLU","SD","HD","FHD"],defaultRes:"SD"},MultiResolution=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.options=r,r.useManualOption&&(s.manualOptions=extend({},r)),s.hasInit=!1,e.on("multiresolutionchange",videojs.bind(s,function(a){a.data&&this.update(data)})),e.on(["resolutionswitching","resolutionswitched"],videojs.bind(s,function(a){a.type=="resolutionswitching"?this.player.addClass("tcp-res-switching"):this.player.removeClass("tcp-res-switching")})),e.ready(videojs.bind(s,function(){var a=e.tech(!0);a&&(a.on("masterplaylistchange",videojs.bind(this,this.onMasterPlaylistChange)),a.on("hlsresolutionswitching",videojs.bind(this,this.onHlsLevelChange)),a.on("hlsresolutionswitched",videojs.bind(this,this.onHlsLevelChange)),a.on("dashqualityswitching",videojs.bind(this,this.onDashQualityChange)),a.on("dashqualityswitched",videojs.bind(this,this.onDashQualityChange))),this.hasInit=!0})),s.init(s.player.options_.multiResolution),s}return inherits(t,n),t.prototype.init=function(e){var r={};this.player.options_.label&&(r.label=this.player.options_.label),this.player.options_.labels&&(r.labels=this.player.options_.label),this.player.options_.showOrder&&(r.showOrder=this.player.options_.showOrder),this.player.options_.defaultRes&&(r.defaultRes=this.player.options_.defaultRes);var s=this.player,a=extend({},defaultOptions,e,this.manualOptions,r),u=a&&a.sources;if(this.options=a,u){log$5("MultiResolution initializing",a);var l=void 0;if(this.currentID=a.defaultRes=u[a.defaultRes]?a.defaultRes:Object.keys(u).shift(),l=u[this.currentID],s.options_.children[0]!="mediaLoader"||this.hasInit)s.src(l);else{var c;(c=s.options_.sources).push.apply(c,l)}this.hasInit||(this.hasInit=!0),s.ready(videojs.bind(this,function(){s.trigger({type:"qualitydataloaded",data:this.initQualityData(a)}),s.one("loadedmetadata",function(){var h=this.tech(!0);h.name_!="flash"&&h.el_.getAttribute("poster")&&(h.el_.removeAttribute("poster"),delete h.el_.poster)})})),log$5("MultiResolution initialized")}},t.prototype.reset=function(){this.player.QualitySwitcher().reset()},t.prototype.update=function(e){this.init(e)},t.prototype.store=function(e){if(!e)return this.options;this.options=videojs.mergeOptions(defaultOptions,this.options,e)},t.prototype.onMasterPlaylistChange=function(e){this.player.trigger({type:"qualitydataloaded",data:e.data})},t.prototype.onHlsLevelChange=function(e){e.type=="hlsresolutionswitching"?this.player.trigger({type:"resolutionswitching",data:e.data}):e.type=="hlsresolutionswitched"&&this.player.trigger({type:"resolutionswitched",data:e.data})},t.prototype.onDashQualityChange=function(e){e.type=="dashqualityswitching"?this.player.trigger({type:"resolutionswitching",data:e.data}):e.type=="dashqualityswitched"&&this.player.trigger({type:"resolutionswitched",data:e.data})},t.prototype.switchResolution=function(e){if(this.currentID!=e.id){var r=this.player,s=r.currentTime(),a=(r.paused(),r.duration()===1/0);if(r.trigger({type:"resolutionswitching",data:e}),a)r.bigPlayButton&&r.bigPlayButton.hide(),r.posterImage&&r.posterImage.hide(),r.one("loadstart",function(){r.play(),r.trigger({type:"resolutionswitched",data:e})});else{var u=r.ended(),l=r.playbackRate(),c=r.controlBar&&r.controlBar.progressControl&&r.controlBar.progressControl.seekBar.playProgressBar.el().style.width||0,h=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata";r.one(h,function(){r.controlBar&&r.controlBar.progressControl&&(r.controlBar.progressControl.seekBar.playProgressBar.el().style.width=c),u||r.currentTime(s),r.techName_=="Flash"?(r.play(),r.tech(!0).trigger("seeked")):(r.play(),r.playbackRate()!=l&&r.playbackRate(l)),r.trigger({type:"resolutionswitched",data:e})}),r.bigPlayButton&&r.bigPlayButton.hide(),r.posterImage&&r.posterImage.hide(),r.options_.preload=="none"&&r.one("suspend",function(){r.load()})}r.src(this.options.sources[e.id]),a&&setTimeout(function(){r.play(),setTimeout(function(){r.play()},900)},100),this.currentID=e.id}},t.prototype.initQualityData=function(e){var r=[],s=(e.sources,e.labels),a=e.showOrder;return a.length>0&&a.forEach(function(u,l){var c={};c.id=u,c.selected=e.defaultRes===u,c.label=s[u]||u,r.push(c)}),{qualityData:{video:r},callbacks:{video:videojs.bind(this,this.switchResolution)}}},t.prototype.sortSourceOrder=function(e){return[]},t})(Plugin$7);videojs.registerPlugin("MultiResolution",MultiResolution),videojs.getComponent("Flash");var defaultDismiss=!videojs.browser.IS_IPHONE,registerPlugin=videojs.registerPlugin||videojs.plugin,defaults$1={header:"",code:"",message:"",timeout:45e3,dismiss:defaultDismiss,progressDisabled:!1,errors:{1:{type:"MEDIA_ERR_ABORTED"},2:{type:"MEDIA_ERR_NETWORK"},3:{type:"MEDIA_ERR_DECODE"},4:{type:"MEDIA_ERR_SRC_NOT_SUPPORTED"},5:{type:"MEDIA_ERR_ENCRYPTED"},unknown:{type:"MEDIA_ERR_UNKNOWN"},"-1":{type:"PLAYER_ERR_NO_SRC",message:"No video has been loaded."},"-2":{type:"PLAYER_ERR_TIMEOUT",message:"Could not download the video."},10:{type:"SERVER_ERR",message:"Request timed out."},11:{type:"SERVER_ERR",message:"Server is not respond."},12:{type:"DATA_ERR",message:"Server respond error data."},13:{type:"DATA_ERR",message:"No video transcoding information found."},14:{type:"HLS_NETWORK_ERR",message:"A network error caused the media download to fail part-way."},15:{type:"HLS_MEDIA_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},16:{type:"HLS_MUX_ERR",message:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support."},17:{type:"HLS_OTHER_ERR",message:"Rise an internal exception when playing HLS."},18:{type:"DRM_ERR",message:"Current browser not support DRM."},20:{type:"PERMISSION_ERR",message:"This website needs a permission to access device motion."},21:{type:"PERMISSION_ERR",message:"This website needs a permission to access device motion."},30:{type:"FILE_NETWORK_ERR",message:"Failed to load hls.js file"},31:{type:"FILE_NETWORK_ERR",message:"Failed to load webrtc file"},32:{type:"FILE_NETWORK_ERR",message:"Failed to load flv file"},33:{type:"FILE_NETWORK_ERR",message:"Failed to load dash file"},50:{type:"LICENSE_ERR",message:"License verification failed."},51:{type:"LICENSE_ERR",message:"The license has expired."},52:{type:"LICENSE_ERR",message:"Domain verification failed."},53:{type:"LICENSE_ERR",message:"Time verification failed."},54:{type:"LICENSE_ERR",message:"License type error."},55:{type:"LICENSE_ERR",message:"Lack license url."},56:{type:"LICENSE_ERR",message:"Get license data failed."},60:{type:"SAFECHECK_ERR",message:"Elements check failed."},61:{type:"SAFECHECK_ERR",message:"API check failed."},62:{type:"SAFECHECK_ERR",message:"Environment check failed."},63:{type:"SAFECHECK_ERR",message:"Environment check failed."},403:{type:"SERVER_ERR",message:"Authentication failed."},500:{type:"SERVER_ERR",message:"Server failed."},1001:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},1002:{type:"SERVER_ERR",message:"The trial duration is illegal. The trial duration must be within the video duration."},1003:{type:"SERVER_ERR",message:"Param pcfg is not unique."},1004:{type:"SERVER_ERR",message:"The license has expired. Please check whether the expiration time setting is reasonable."},1005:{type:"SERVER_ERR",message:"Did not find an adaptive stream that can be played."},1006:{type:"SERVER_ERR",message:"Invalid request format, please check the request format."},1007:{type:"SERVER_ERR",message:"AppID is not exist, Please check if the AppID is correct."},1008:{type:"SERVER_ERR",message:"Without anti-leech information."},1009:{type:"SERVER_ERR",message:"psign check failed."},1010:{type:"SERVER_ERR",message:"Other errors."},1011:{type:"SERVER_ERR",message:"Get DRM license url failed"},1012:{type:"SERVER_ERR",message:"Get DRM certificate url failed"},1013:{type:"SERVER_ERR",message:"Psign missing contentInfo error"},1014:{type:"SERVER_ERR",message:"Psign contentInfo.audioVideoType invalid"},1015:{type:"SERVER_ERR",message:"Psign missing rawAdaptiveDefinition error"},1016:{type:"SERVER_ERR",message:"Psign missing drmAdaptiveInfo error"},1017:{type:"SERVER_ERR",message:"Psign missing transcodeDefinition error"},1018:{type:"SERVER_ERR",message:"Psign contentInfo.ResolutionNames json marshal error"},1019:{type:"SERVER_ERR",message:"Get super player config error"},1020:{type:"SERVER_ERR",message:"Get play key info error"},1021:{type:"SERVER_ERR",message:"Qsign invalid"},1022:{type:"SERVER_ERR",message:"Ciphered overlay info invalid"},1023:{type:"SERVER_ERR",message:"Ghost watermark info text is too long"},2001:{type:"SERVER_ERR",message:"System error"},2002:{type:"SERVER_ERR",message:"Panic error"},19:{type:"DATA_ERR",message:"Response data verification failed."},10008:{type:"SERVER_ERR",message:"The media file does not exist. Please check if the fileID is correct."},"-2001":{type:"SERVER_ERR",message:"Current browser not support play this stream, please select another one."},"-2002":{type:"SERVER_ERR",message:"Server respond error data.(eg. stream not exist)"},"-2003":{type:"SERVER_ERR",message:"Video play failed, please refresh to start play again."},"-2004":{type:"SERVER_ERR",message:"Connection to the server has failed and the number of connection retries has exceeded the set value."},"-2005":{type:"SERVER_ERR",message:"Video decoding failure."},PLAYER_ERR_DOMAIN_RESTRICTED:{message:"This video is restricted from playing on your current domain."},PLAYER_ERR_IP_RESTRICTED:{message:"This video is restricted at your current IP address."},PLAYER_ERR_GEO_RESTRICTED:{message:"This video is restricted from playing in your current geographic region."}}},initPlugin=function n(t,e){var r=void 0,s=void 0,a=void 0,u=[];videojs.getComponent("ErrorDisplay").prototype.options_.fillAlways=!1;var l=function(S){e.errors=videojs.mergeOptions(e.errors,S),Object.keys(e.errors).forEach(function(C){var k=e.errors[C];k.type||(k.type=C)})};l();var c=function(){t.clearTimeout(s),a&&(a=!1,t.removeClass("vjs-waiting")),s=t.setTimeout(function(){t.error()||t.paused()||t.ended()||(a=!0,t.addClass("vjs-waiting"))},1e3),t.clearTimeout(r),r=t.setTimeout(function(){t.error()||t.paused()||t.ended()||t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"})},e.timeout),t.error()&&t.error().code===-2&&t.error(null)},h=function(){for(var S=void 0;u.length;)S=u.shift(),t.off(S[0],S[1]);t.clearTimeout(r),t.clearTimeout(s)},p=function(S,C){var k=function(){if(!t.error()){var U=t.$(".vjs-tech");if(U&&U.type==="application/x-shockwave-flash"&&!U.vjs_getProperty)return void t.error({code:-2,type:"PLAYER_ERR_TIMEOUT"});if(t.paused()||t.ended())return c()}C.call(this)};t.on(S,k),u.push([S,k])},d=function(){var S=0;h(),c(),p(["timeupdate","adtimeupdate"],function(){var C=t.currentTime();C!==S&&(S=C,c())}),e.progressDisabled||p("progress",c)},y=function(S){var C="",k=t.error(),U=document_1.createElement("div"),M="";if(k){k=videojs.mergeOptions(k,e.errors[k.code||0]),k.message&&(C='<div class="vjs-errors-message">'+t.localize(k.message)+"</div>"),k.code&&(C+='<div class="vjs-errors-code">'+this.localize("Error Code")+" : "+k.code+"</div>"),k.type&&(C+='<div class="vjs-errors-type">'+this.localize("Error Type")+" : "+k.type+"</div>"),k.code=="10"||k.code,k.code,k.code,U.className="vjs-errors-dialog",M=`<div class="vjs-errors-content-container">
|
||
`+C+`
|
||
</div>`;var V=t.getChild("errorDisplay");V&&V.closeable(!("dismiss"in k)||k.dismiss)?(U.innerHTML=M,V.fillWith(U),V.contentEl().firstChild.appendChild(V.getChild("closeButton").el())):(U.innerHTML=M,V.fillWith(U)),V.one("modalclose",function(){return t.error(null)})}},g=function S(){h(),t.removeClass("vjs-errors"),t.off("dispose",S),t.off(["aderror","error"],y)},v=function(S){g(),n(t,videojs.mergeOptions(defaults$1,S))};v.extend=function(S){return l(S)},v.getAll=function(){return videojs.mergeOptions(e.errors)},v.disableProgress=function(S){e.progressDisabled=S,d()},t.on("dispose",g),t.on(["aderror","error"],y),t.ready(function(){t.addClass("vjs-errors")}),t.errors=v},errors=function(n){initPlugin(this,videojs.mergeOptions(defaults$1,n))};["extend","getAll","disableProgress"].forEach(function(n){errors[n]=function(){videojs.log.warn("The errors."+n+"() method is not available until the plugin has been initialized!")}}),registerPlugin("Errors",errors);var Plugin$8=videojs.getPlugin("plugin"),cgiSeq={},STATUS_CODE_REPORT_URL="//report.huatuo.qq.com/code.cgi",log$6=videojs.log,Reporter=(function(n){function t(e,r){classCallCheck(this,t),log$6("Reporter initilaizing");var s=possibleConstructorReturn(this,n.call(this,e));if(!e.options_.plugins.Reporter){var a;return a=!1,possibleConstructorReturn(s,a)}return s.reportContent={status:"idle"},s.mtaReportCache=[],log$6("Reporter initilaized"),s}return inherits(t,n),t.prototype.setStorage=function(e,r){localStorage.setItem(e,r)},t.prototype.getStorage=function(e){localStorage.getItem(e)},t.prototype.sender=function(e){var r=new Image;r.onload=r.onerror=r.onabort=function(){r.onload=r.onerror=r.onabort=null,r=null},r.src=e},t.prototype.initPlayCgiCodeReport=function(){var e=this.player;e.on("playcgistart",videojs.bind(this,this.onPlayCgiStart)),e.on("playcgiend",videojs.bind(this,this.onPlayCgiEnd))},t.prototype.onPlayCgiStart=function(e){cgiSeq[e.data.time]=cgiSeq[e.data.time]||{},cgiSeq[e.data.time].startTime=e.data.time,cgiSeq[e.data.time].url=e.data.url},t.reportPlayMetrics=function(e,r){xhr.post("https://datacenter.live.tlivesource.com",{body:JSON.stringify(e)},function(){r&&r()})},t.prototype.onPlayCgiEnd=function(e){if(cgiSeq[e.data.startTime]){var r=e.data,s=void 0,a=void 0,u=void 0;if(r.error)switch(a=2,r.error.message){case"Timeout":s=10;break;case"ServerError":s=11}else r.result.code==0?(a=1,s=0):(a=3,s=r.result.code),u=r.result.requestId;this.reportPlayCgiToISD("","",a,s,e.data.time-cgiSeq[e.data.startTime].startTime,u,void 0,void 0)}},t.prototype.reportPlayCgiToISD=function(e,r,s,a,u,l,c,h){var p={domain:e||"playvideo.qcloud.com",cgi:r||"/getplayinfo/v2",type:s,code:a,time:u,appid:20370,platform:videojs.browser.IS_IOS?"ios":videojs.browser.IS_ANDROID?"android":"pc",expansion1:l,expansion2:c,expansion3:h};this.sender(unifyProtocol(STATUS_CODE_REPORT_URL)+"?"+serializeParams(p))},t.prototype.reportMTA=function(e,r){window.MtaH5?(this.mtaReportCache.length>0&&(this.mtaReportCache.forEach(function(s){s.call()}),this.mtaReportCache=0),MtaH5.clickStat(e,r)):this.mtaReportCache.push(function(){MtaH5.clickStat(e,r)})},t})(Plugin$8);videojs.registerPlugin("Reporter",Reporter);var store2=createCommonjsModule(function(n){(function(t,e){var r={version:"2.12.0",areas:{},apis:{},inherit:function(a,u){for(var l in a)u.hasOwnProperty(l)||Object.defineProperty(u,l,Object.getOwnPropertyDescriptor(a,l));return u},stringify:function(a){return a===void 0||typeof a=="function"?a+"":JSON.stringify(a)},parse:function(a,u){try{return JSON.parse(a,u||r.revive)}catch{return a}},fn:function(a,u){r.storeAPI[a]=u;for(var l in r.apis)r.apis[l][a]=u},get:function(a,u){return a.getItem(u)},set:function(a,u,l){a.setItem(u,l)},remove:function(a,u){a.removeItem(u)},key:function(a,u){return a.key(u)},length:function(a){return a.length},clear:function(a){a.clear()},Store:function(a,u,l){var c=r.inherit(r.storeAPI,function(h,p,d){return arguments.length===0?c.getAll():typeof p=="function"?c.transact(h,p,d):p!==void 0?c.set(h,p,d):typeof h=="string"||typeof h=="number"?c.get(h):typeof h=="function"?c.each(h):h?c.setAll(h,p):c.clear()});c._id=a;try{u.setItem("__store2_test","ok"),c._area=u,u.removeItem("__store2_test")}catch{c._area=r.storage("fake")}return c._ns=l||"",r.areas[a]||(r.areas[a]=c._area),r.apis[c._ns+c._id]||(r.apis[c._ns+c._id]=c),c},storeAPI:{area:function(a,u){var l=this[a];return l&&l.area||(l=r.Store(a,u,this._ns),this[a]||(this[a]=l)),l},namespace:function(a,u){if(!a)return this._ns?this._ns.substring(0,this._ns.length-1):"";var l=a,c=this[l];if(!(c&&c.namespace||(c=r.Store(this._id,this._area,this._ns+l+"."),this[l]||(this[l]=c),u)))for(var h in r.areas)c.area(h,r.areas[h]);return c},isFake:function(){return this._area.name==="fake"},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(a){return this._area.has?this._area.has(this._in(a)):this._in(a)in this._area},size:function(){return this.keys().length},each:function(a,u){for(var l=0,c=r.length(this._area);l<c;l++){var h=this._out(r.key(this._area,l));if(h!==void 0&&a.call(this,h,this.get(h),u)===!1)break;c>r.length(this._area)&&(c--,l--)}return u||this},keys:function(a){return this.each(function(u,l,c){c.push(u)},a||[])},get:function(a,u){var l,c=r.get(this._area,this._in(a));return typeof u=="function"&&(l=u,u=null),c!==null?r.parse(c,l):u??c},getAll:function(a){return this.each(function(u,l,c){c[u]=l},a||{})},transact:function(a,u,l){var c=this.get(a,l),h=u(c);return this.set(a,h===void 0?c:h),this},set:function(a,u,l){var c=this.get(a);return c!=null&&l===!1?u:r.set(this._area,this._in(a),r.stringify(u),l)||c},setAll:function(a,u){var l,c;for(var h in a)c=a[h],this.set(h,c,u)!==c&&(l=!0);return l},add:function(a,u){var l=this.get(a);if(l instanceof Array)u=l.concat(u);else if(l!==null){var c=typeof l;if(c===typeof u&&c==="object"){for(var h in u)l[h]=u[h];u=l}else u=l+u}return r.set(this._area,this._in(a),r.stringify(u)),u},remove:function(a,u){var l=this.get(a,u);return r.remove(this._area,this._in(a)),l},clear:function(){return this._ns?this.each(function(a){r.remove(this._area,this._in(a))},1):r.clear(this._area),this},clearAll:function(){var a=this._area;for(var u in r.areas)r.areas.hasOwnProperty(u)&&(this._area=r.areas[u],this.clear());return this._area=a,this},_in:function(a){return typeof a!="string"&&(a=r.stringify(a)),this._ns?this._ns+a:a},_out:function(a){return this._ns?a&&a.indexOf(this._ns)===0?a.substring(this._ns.length):void 0:a}},storage:function(a){return r.inherit(r.storageAPI,{items:{},name:a})},storageAPI:{length:0,has:function(a){return this.items.hasOwnProperty(a)},key:function(a){var u=0;for(var l in this.items)if(this.has(l)&&a===u++)return l},setItem:function(a,u){this.has(a)||this.length++,this.items[a]=u},removeItem:function(a){this.has(a)&&(delete this.items[a],this.length--)},getItem:function(a){return this.has(a)?this.items[a]:null},clear:function(){for(var a in this.items)this.removeItem(a)}}},s=r.Store("local",(function(){try{return localStorage}catch{}})());s.local=s,s._=r,s.area("session",(function(){try{return sessionStorage}catch{}})()),s.area("page",r.storage("page")),typeof e=="function"&&e.amd!==void 0?e("store2",[],function(){return s}):n.exports?n.exports=s:(t.store&&(r.conflict=t.store),t.store=s)})(commonjsGlobal$1,commonjsGlobal$1&&commonjsGlobal$1.define)}),Plugin$9=videojs.getPlugin("plugin"),log$7=videojs.log,ContinuePlay=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.options=r,s.init(),s}return inherits(t,n),t.prototype.init=function(e){var r=this.player,s=r.options_,a=void 0;r.off("timeupdate",videojs.bind(this,this.onTimeUpdate)),r.ready(videojs.bind(this,function(){a=s&&s.appID&&s.fileID?s.fileID:this.options.playID,this.playID=a,e&&e.src?this.source=e.src.split("?")[0]:r.cache_&&r.cache_.source&&r.cache_.source.src&&(this.source=r.cache_.source.src.split("?")[0]),(a||this.source)&&(log$7("ContinuePlay initializing"),this.lastTime=store2.get(this.getStoreKey()),r.off("timeupdate",videojs.bind(this,this.onTimeUpdate)),r.on("timeupdate",videojs.bind(this,this.onTimeUpdate)),r.one(this.getTriggerEvent(),videojs.bind(this,this.onPlay)),!this.options.auto&&r.getChild("ContinuePlayTips")&&r.getChild("ContinuePlayTips").close(),log$7("ContinuePlay initialized"),r.trigger({type:"feature",data:"continue"}))}))},t.prototype.onTimeUpdate=function(e){store2.set(this.getStoreKey(),this.player.currentTime())},t.prototype.onPlay=function(e){var r=this.player;Math.round(this.lastTime)>1&&this.player.duration()>1&&this.player.duration()!==1/0&&Math.round(this.lastTime)!=Math.round(this.player.duration())?this.options.auto?this.start():r.addChild("ContinuePlayTips",videojs.mergeOptions(this.options,{time:this.lastTime,resumeCallback:videojs.bind(this,this.start)})):r.techName_=="Flash"&&Math.round(this.lastTime)>1&&Math.round(this.lastTime)!=Math.round(this.player.duration())&&this.player.duration()!==1/0&&!this.player.duration()&&r.one("loadedmetadata",videojs.bind(this,this.onPlay))},t.prototype.start=function(){var e=this.player;e.currentTime(this.lastTime),e.techName_=="Flash"&&e.tech(!0).trigger("seeked"),e.trigger({type:"continueplay",data:{lastTime:this.lastTime}})},t.prototype.generatePlayID=function(){},t.prototype.getStoreKey=function(){return"tcplayer-lpt-"+(this.playID||this.source)},t.prototype.getTriggerEvent=function(){var e=this.player,r=e.options_;return r.autoplay&&e.techName_=="Flash"?"loadedmetadata":"playing"},t})(Plugin$9);videojs.registerPlugin("ContinuePlay",ContinuePlay);var defaults$2={align:"top-left",className:"",content:"",debug:!1,showBackground:!0,attachToControlBar:!1,overlays:[]},Component$13=videojs.getComponent("Component"),dom$1=videojs.dom||videojs,registerPlugin$1=videojs.registerPlugin||videojs.plugin,isNumber=function(n){return typeof n=="number"&&n===n},hasNoWhitespace=function(n){return typeof n=="string"&&/^\S+$/.test(n)},Overlay=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return["start","end"].forEach(function(a){var u=s.options_[a];if(isNumber(u))s[a+"Event_"]="timeupdate";else if(hasNoWhitespace(u))s[a+"Event_"]=u;else if(a==="start")throw new Error('invalid "start" option; expected number or string')}),["endListener_","rewindListener_","startListener_"].forEach(function(a){s[a]=function(u){return t.prototype[a].call(s,u)}}),s.startEvent_==="timeupdate"&&s.on(e,"timeupdate",s.rewindListener_),s.debug('created, listening to "'+s.startEvent_+'" for "start" and "'+(s.endEvent_||"nothing")+'" for "end"'),s.hide(),s}return inherits(t,n),t.prototype.createEl=function(){var e=this.options_,r=e.content,s=e.showBackground?"tcp-overlay-background":"tcp-overlay-no-background",a=dom$1.createEl("div",{className:`
|
||
tcp-overlay
|
||
tcp-overlay-`+e.align+`
|
||
`+e.className+`
|
||
`+s+`
|
||
vjs-hidden
|
||
`});return typeof r=="string"?a.innerHTML=r:videojs.browser.IS_IE8||r instanceof window_1.DocumentFragment?a.appendChild(r):dom$1.appendContent(a,r),a},t.prototype.debug=function(){if(this.options_.debug){for(var e=videojs.log,r=e,s=arguments.length,a=Array(s),u=0;u<s;u++)a[u]=arguments[u];e.hasOwnProperty(a[0])&&typeof e[a[0]]=="function"&&(r=e[a.shift()]),r.apply(void 0,["overlay#"+this.id()+": "].concat(a))}},t.prototype.hide=function(){return n.prototype.hide.call(this),this.debug("hidden"),this.debug('bound `startListener_` to "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('unbound `endListener_` from "'+this.endEvent_+'"'),this.off(this.player(),this.endEvent_,this.endListener_)),this.options_.once?(videojs.browser.IS_IOS&&videojs.browser.IS_WECHAT?this.player().hasStarted()||this.player().ready(videojs.bind(this,function(){this.startListener_({type:this.startEvent_})})):this.player().hasStarted()||this.on(this.player(),this.startEvent_,this.startListener_),this):(this.startEvent_==="pause"?this.on(this.player(),this.startEvent_,this.startOnPause_):this.on(this.player(),this.startEvent_,this.startListener_),this)},t.prototype.startOnPause_=function(e){var r=this.player();e.type==="pause"?r.seeking()||r.ended()||this.startListener_({type:"pause"}):r.paused()&&this.startListener_({type:"pause"})},t.prototype.shouldHide_=function(e,r){var s=this.options_.end;return isNumber(s)?e>=s:s===r},t.prototype.show=function(){return n.prototype.show.call(this),this.startEvent_==="pause"&&this.off(this.player(),this.startEvent_,this.startOnPause_),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug('unbound `startListener_` from "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('bound `endListener_` to "'+this.endEvent_+'"'),this.on(this.player(),this.endEvent_,this.endListener_)),this},t.prototype.shouldShow_=function(e,r){var s=this.options_.start,a=this.options_.end;return isNumber(s)?isNumber(a)?e>=s&&e<a:this.hasShownSinceSeek_?Math.floor(e)===s:(this.hasShownSinceSeek_=!0,e>=s):s===r},t.prototype.startListener_=function(e){var r=this.player().currentTime();this.shouldShow_(r,e.type)&&this.show()},t.prototype.endListener_=function(e){var r=this.player().currentTime();this.shouldHide_(r,e.type)&&this.hide()},t.prototype.rewindListener_=function(e){var r=this.player().currentTime(),s=this.previousTime_,a=this.options_.start,u=this.options_.end;r<s&&(this.debug("rewind detected"),isNumber(u)&&!this.shouldShow_(r)?(this.debug("hiding; "+u+" is an integer and overlay should not show at this time"),this.hasShownSinceSeek_=!1,this.hide()):hasNoWhitespace(u)&&r<a&&(this.debug("hiding; show point ("+a+") is before now ("+r+") and end point ("+u+") is an event"),this.hasShownSinceSeek_=!1,this.hide())),this.previousTime_=r},t})(Component$13);videojs.registerComponent("Overlay",Overlay);var plugin=function(n){var t=this,e=videojs.mergeOptions(defaults$2,n);Array.isArray(this.overlays_)&&this.overlays_.forEach(function(s){t.removeChild(s),t.controlBar&&t.controlBar.removeChild(s),s.dispose()});var r=e.overlays;delete e.overlays,this.overlays_=r.map(function(s){var a=videojs.mergeOptions(e,s);return a.attachToControlBar&&t.controlBar&&a.align.indexOf("bottom")!==-1?t.controlBar.addChild("overlay",a):t.addChild("overlay",a)})};registerPlugin$1("Patch",plugin);var Plugin$10=videojs.getPlugin("plugin"),log$8=videojs.log,locations=["start","pause","ended"],startEvent=["loadstart","pause","ended"],endEvent=["play","play","play"],ImagePatch=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.hasInit=!1,s.init(r),s}return inherits(t,n),t.prototype.init=function(e){var r=this,s=this.player,a={showBackground:!1,overlays:[]};Array.isArray(e)&&e.length>0&&(log$8("ImagePatch initializing"),e.forEach(function(u){var l=void 0,c=void 0,h=void 0,p=void 0,d=document.createDocumentFragment();h=document.createElement("a"),h.className="tcp-overlay-link",h.target="_blank",u.link&&(h.href=u.link),u.url&&(p=r.loadImg(unifyProtocol(u.url),videojs.bind(r,r.onImgLoaded)),p.className="tcp-overlay-img",h.appendChild(p),videojs.browser.IS_IE8?(l=document.createElement("div"),l.className="tcp-overlay-table",c=document.createElement("div"),c.className="tcp-overlay-cell",c.appendChild(h),l.appendChild(c),d.appendChild(l)):d.appendChild(h),a.overlays.push({content:d,className:"tcp-image-patch tcp-image-patch-"+locations[u.location],start:startEvent[u.location],end:endEvent[u.location],once:u.location==0,align:"center"}))}),a.overlays.length>0?(s.Patch(a),s.trigger({type:"feature",data:"patch"}),this.hasInit=!0):this.reset(),log$8("ImagePatch initialized"))},t.prototype.loadImg=function(e,r){var s,a,u,l,c,h=new Image;return h.src=e,h.complete?(r&&r.call(r,h),h):(a=h.width,u=h.height,h.onerror=function(){s.end=!0,h=h.onload=h.onerror=null},s=function(){l=h.width,c=h.height,(l!==a||c!==u||l*c>1024)&&(r&&r.call(r,h),s.end=!0)},s(),h.onload=function(){!s.end&&s(),h=h.onload=h.onerror=null},h)},t.prototype.onImgLoaded=function(e){if(videojs.browser.IE_VERSION){var r=parseInt(this.player.el().currentStyle.width),s=parseInt(this.player.el().currentStyle.height);if(e.width>r||e.height>s){var a=r/(e.width/e.height);e.width/e.height>r/s||(e.style.marginTop=(s-a)/2+"px"),e.style.width="100%",e.style.height="auto"}}},t.prototype.reset=function(){this.hasInit&&(log$8("ImagePatch reset"),this.player.Patch(),this.hasInit=!1)},t})(Plugin$10);videojs.registerPlugin("ImagePatch",ImagePatch);var Plugin$11=videojs.getPlugin("plugin"),log$9=videojs.log,ContextMenu=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.options=r,log$9("ContextMenu initializing"),s.init(),log$9("ContextMenu initialized"),s}return inherits(t,n),t.prototype.init=function(){this.player.addChild("RightClickPopupMenu",this.options)},t})(Plugin$11);videojs.registerPlugin("ContextMenu",ContextMenu);var Plugin$12=videojs.getPlugin("plugin"),LevelSwitch=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.options=r,s.init(),s}return inherits(t,n),t.prototype.init=function(){var e=this.player,r=e.options_.plugins.ContextMenu;r&&r.levelSwitch&&r.levelSwitch.open&&e.addChild("LevelSwitchTips",this.options)},t})(Plugin$12);videojs.registerPlugin("LevelSwitch",LevelSwitch);var getParams$2=getParams,Plugin$13=videojs.getPlugin("plugin"),log$11=videojs.log,VttThumbnail=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.hasInit=!1,s.spriteData=[],s.firstShowSprite=!0,s.defaults={width:0,height:0,basePath:""},(r.vttUrl||r.enable===!0)&&e.on("loadedmetadata",function(){s.getSpriteConfig(),s.init(r)}),s}return inherits(t,n),t.prototype.checkEventDvr=function(){var e=this.player.dvrMode();return!!this.player.src()&&(e==="dvrLive"||e==="dvrEvent")},t.prototype.loadTrackFile=function(e){var r=this,s=this.player,a=s.addRemoteTextTrack({src:e.vttUrl,kind:"metadata"},!0);a&&a.addEventListener("load",function(){r.trackInfo=a})},t.prototype.getSpriteConfig=function(){if(!this.checkEventDvr())return!1;var e=this,r=this.player;this.canGetNewSprite=!1;var s=r.src(),a=(getParams$2(s,"tsEnd"),parseInt(new Date().getTime()/1e3),get_1(r,"options_.plugins.Dvr.spriteURL")),u=get_1(r,"options_.plugins.Dvr.startTime"),l=a.indexOf("http://")>-1?"http://":"https://",c=a.replace("https://","").replace("http://","").split("/")[0];xhr({url:a,timeout:3e3},function(h,p,d){if(!d)return!1;e.spriteData=JSON.parse(d),e.lastTime=e.spriteData[e.spriteData.length-1].last_time,e.liveDuration=0,e.spriteData.sort(function(v,S){return v.start_time-S.start_time});for(var y=0;y<e.spriteData.length;y++){var g=e.spriteData[y];y==0&&u>g.start_time?(g.hidden_dur=u-g.start_time,g.play_dur=g.end_time-u,g.hasOwnProperty("duration")&&(g.play_dur=g.duration*g.play_dur/(g.end_time-g.start_time),g.hidden_dur=g.duration-g.play_dur,e.liveDuration+=g.play_dur)):(g.hidden_dur=0,g.play_dur=g.end_time-g.start_time,g.hasOwnProperty("duration")&&(g.play_dur=g.duration,e.liveDuration+=g.play_dur))}e.initLiveDuration=e.liveDuration,e.canGetNewSprite=!0,e.baseHost=l+c,e.prefix=e.baseHost+e.spriteData[e.spriteData.length-1].path,e.durationTimer&&clearInterval(e.durationTimer),e.durationTimer=setInterval(function(){e.player&&!e.player.paused()&&(e.liveDuration=e.liveDuration+1)},1e3)})},t.prototype.init=function(e){if(!videojs.browser.IS_IOS&&!videojs.browser.IS_ANDROID&&this.player.controlBar&&this.player.controlBar.progressControl){if(log$11("VttThumbnail initializing",e),!this.player.controlBar)return void log$11("VttThumbnail can not initialize without control bar");this.options=e;var r=this.player;e.vttUrl&&(this.loadTrackFile(e),this.defaults.basePath=parseBasePath(e.vttUrl)),this.initUI(),this.hasInit=!0,log$11("VttThumbnail initialized"),r.trigger({type:"feature",data:"thumbnail"})}},t.prototype.initTrackFile=function(e){e.track,this.trackInfo=e},t.prototype.initUI=function(){var e=this,r=videojs.dom.createEl("div",{className:"tcp-vtt-thumbnail-container"}),s=videojs.dom.createEl("img",{className:"tcp-vtt-thumbnail-img"});r.appendChild(s),this.containerEl=r,this.imgEl=s,this.cleanTimer&&clearInterval(this.cleanTimer),this.cleanTimer=setInterval(function(){window.getComputedStyle(e.imgEl).opacity==="0"&&(e.containerEl.style.display="none")},200);var a=setInterval(function(){var u=e.player.dvrMode(),l=void 0;(l=u==="dvrLive"?e.player.controlBar.getChild("LiveProgressControl"):e.player.controlBar.progressControl)&&(l.el().appendChild(r),l.on("mouseenter",videojs.bind(e,e.onMouseEnter)),l.on("mousemove",videojs.bind(e,e.onMouseMove)),l.on("mouseleave",videojs.bind(e,e.onMouseOut)),clearInterval(a))},500)},t.prototype.onMouseEnter=function(){this.containerEl.style.display="block"},t.prototype.getRelativeOffset=function(e){for(var r=0,s=e,a=0,u=0;u<this.spriteData.length;u++){if(e<r+this.spriteData[u].play_dur){a=u,s=e-r+this.spriteData[u].hidden_dur;break}r+=this.spriteData[u].play_dur}return{relativeOffset:s,gConfigIndex:a}},t.prototype.getSpritePosition=function(e){var r=this.getRelativeOffset(e),s=r.relativeOffset,a=r.gConfigIndex,u=Math.floor(s/60),l=Math.floor(s%60/10);this.prefix=this.baseHost+this.spriteData[a].path;var c=this.baseHost+this.spriteData[a].path+u+".jpg";return c+="?txTimeshift=on",{picUrl:c,xpos:160*Math.floor(l%3),ypos:90*Math.floor(l/3)}},t.prototype.onMouseMove=function(e){var r=void 0,s=void 0,a=void 0,u=void 0,l=void 0,c=void 0,h=void 0,p=void 0,d=0,y=void 0,g=void 0,v=void 0,S=void 0,C=this.player.dvrMode();if(a=C==="dvrLive"?this.player.controlBar.getChild("LiveProgressControl"):this.player.controlBar.progressControl,u=C==="dvrLive"?a.LiveSeekBar:a.seekBar,l=offsetParent(a.el()).getBoundingClientRect(),c=offsetParent(u.el()).getBoundingClientRect(),r=e.clientX,p=C==="dvrLive"?this.liveDuration:this.player.duration(),h=((r-c.left)/u.width()*p).toFixed(3),h>this.initLiveDuration&&this.canGetNewSprite&&this.getSpriteConfig(),!+h)return!1;if(C==="dvrEvent"||C==="dvrLive"){var k=player.currentPDT()/100;if(k&&(k>this.lastTime||!this.prefix))return this.getSpriteConfig(),!1;var U=this.getSpritePosition(h);return v={h:90,left:0,src:U.picUrl,w:160,x:U.xpos,y:U.ypos},S=r-c.left+v.w/2-u.width(),S=Math.max(0,S),s=r-l.left-v.w/2-S,s=Math.max(u.el().offsetLeft,s),v.left=s,this.setView(v),!1}if(!this.trackInfo)return!1;for(y=this.trackInfo.track||this.trackInfo;d<y.cues.length;){if(g=y.cues[d],g.startTime<=h&&g.endTime>=h){v=parseImageLink(g.text,this.defaults);break}d++}if(!v)return this.onMouseOut(),!1;S=r-c.left+v.w/2-u.width(),S=Math.max(0,S),s=r-l.left-v.w/2-S,s=Math.max(u.el().offsetLeft,s),v.left=s,this.setView(v)},t.prototype.onMouseOut=function(){this.containerEl.style.display="none"},t.prototype.setView=function(e){var r=this.containerEl,s=this.imgEl,a=this.options;this.firstShowSprite&&(r.style.display="none",this.firstShowSprite=!1),r.style.width==e.w&&r.style.height==e.h||(r.style.width=e.w+"px",r.style.height=e.h+"px"),r.style.left=e.left+"px",s.src!==e.src&&(a.imgUrl&&s.src!=a.imgUrl?s.src=a.imgUrl:s.src=e.src),s.onload=function(){r.style.display="block"},s.onerror=function(){r.style.display="none",setTimeout(function(){r.style.display="none"},200)},s.style.left=-e.x+"px",s.style.top=-e.y+"px",s.style.clip="rect("+e.y+"px,"+(e.w+e.x)+"px,"+(e.y+e.h)+"px,"+e.x+"px)"},t.prototype.reset=function(){if(this.hasInit){log$11("VttThumbnail reset");var e=this.player,r=e.controlBar.progressControl;r.off("mousemove",videojs.bind(this,this.onMouseMove,10)),r.off("mouseleave",videojs.bind(this,this.onMouseOut)),this.hasInit=!1}},t})(Plugin$13),getComputedStyle=function(n,t){return function(e){return window.getComputedStyle?window.getComputedStyle(n,t)[e]:n.currentStyle[e]}},offsetParent=function n(t){return t.nodeName!=="HTML"&&getComputedStyle(t)("position")==="static"?n(t.offsetParent):t},parseImageLink=function(n,t){var e=void 0,r=void 0,s=void 0;if((r=n.indexOf("#"))===-1)return{src:n,w:0,h:0,x:0,y:0};if(e=n.substring(0,r),/^(http:|https:|\/\/)/.test(e)||(e=t.basePath+e),s=n.substring(r+1),s.substring(0,5)!=="xywh=")return{src:e,w:0,h:0,x:0,y:0};var a=s.substring(5).split(",");return{src:e,w:parseInt(a[2]),h:parseInt(a[3]),x:parseInt(a[0]),y:parseInt(a[1])}},parseBasePath=function(n){/^(\/\/)/.test(n)&&(n="https:"+n);var t=/(\w+):\/\/([^\:|\/]+)(\:\d*)?(.*\/)([^#|\?|\n]+)?(#.*)?(\?.*)?/i,e=n.match(t);if(e&&e[2]&&e[4])return"//"+e[2]+e[4]};videojs.registerPlugin("VttThumbnail",VttThumbnail);var Plugin$14=videojs.getPlugin("plugin"),log$12=videojs.log,PlayerMetrics=(function(n){function t(e,r){classCallCheck(this,t),log$12("PlayerMetrics initializing");var s=possibleConstructorReturn(this,n.call(this,e));if(e.options_.reportable===!1){var a;return a=!1,possibleConstructorReturn(s,a)}return s.player=e,s.checkPrevData(),s.initData(),s.registerListener(),log$12("PlayerMetrics initialized"),s}return inherits(t,n),t.prototype.checkPrevData=function(){var e=localStorage.getItem("tcplayer_data");if(e){var r=JSON.parse(e);Reporter.reportPlayMetrics(r,function(){localStorage.removeItem("tcplayer_data")})}},t.prototype.initData=function(){this.bytes_token=guid(),this.vodBaseData={uint32_service:2,uint32_platform:3,bytes_version:String(version),uint64_appid:0,bytes_bizid:this.guid("dev_uuid"),bytes_stream_id:"",uint32_module_id:1011,uint32_data_type:1,uint32_command:40303,uint64_data_time:0,bytes_token:this.bytes_token,token:this.bytes_token,dev_uuid:this.guid("dev_uuid"),str_app_name:"",str_app_version:"",str_stream_url:"",str_brand_type:this.getDevice(),str_device_resolution:screen.width+"_"+screen.height,str_device_type:"",str_package_name:"",str_sdk_name:"TCPlayer",str_user_id:this.guid("dev_uuid"),sys_type:this.getSystem(),sys_version:String(this.getSystemVer()),str_user_agent:USER_AGENT,str_browser_version:String(this.getBrowserVer()),str_browser_model:String(this.getBrowser()),u32_app_id:String(this.player.options_.appID),str_fileid:String(this.player.options_.fileID),u32_network_type:this.getNetworkType()},this.liveBaseData={str_user_id:this.guid("dev_uuid"),dev_uuid:this.guid("dev_uuid"),str_session_id:this.bytes_token,bytes_token:this.bytes_token,str_device_type:"",str_os_info:this.getSystem(),str_package_name:"",u32_network_type:this.getNetworkType()!=="0xFF"?this.getNetworkType():"",u32_server_ip:"",str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_link_type:1,u32_channel_type:1,str_app_version:"",platform:3,uint32_platform:3,str_browser_version:this.getBrowserVer(),str_browser_model:this.getBrowser(),str_user_agent:USER_AGENT,u32_video_drop:"",u32_drop_usage:"",float64_rtt:""},this.features=[],this.afterCanplay=!1,this.videoDuration=0,this.consumeDuration=0,this.playScene=this.player.options_.fileID?2:1,this.timing={},this.playStatus={isFirstPlay:!1,pauseDuration:0},this.contentComputTimePoint=[],this.firstFrameDuration=0,this.firstIFrameDuration=0,this.blockInterval=5e3,this.bufferBlock=[],this.u32_drm_type="plain",this.resetLagStatus(),this.resetBlockData()},t.prototype.getComsumeDuration=function(e){var r=getTimeStamp()-this.timing.firstPlaying;this.consumeDuration=r-this.lagStatus.lagDuration-this.playStatus.pauseDuration,e&&this.consumeDuration<0&&(this.consumeDuration=r>0?r:0)},t.prototype.registerListener=function(){var e=this.player;e.on("loadedmetadata",videojs.bind(this,this.onLoadedmetadata)),e.one("canplay",videojs.bind(this,this.oneCanplay)),e.one("play",videojs.bind(this,this.onePlay)),e.on("play",videojs.bind(this,this.onPlay)),e.on("playing",videojs.bind(this,this.onPlaying)),e.on("seeking",videojs.bind(this,this.onSeeking)),e.on("seeked",videojs.bind(this,this.onSeeked)),e.on("error",videojs.bind(this,this.onError)),e.on("resolutionswitching",videojs.bind(this,this.onResolutionSwitching)),e.on("pause",videojs.bind(this,this.onPause)),e.on("playcgiend",videojs.bind(this,this.onPlaycgiend)),e.on("ended",videojs.bind(this,this.onEnded)),e.on("feature",videojs.bind(this,this.onFeature)),e.on("dispose",videojs.bind(this,this.onDispose)),document.addEventListener("visibilitychange",videojs.bind(this,this.onVisibilityChange)),window.addEventListener("pagehide",videojs.bind(this,this.onPageHide))},t.prototype.onPageHide=function(){this.saveData()},t.prototype.onVisibilityChange=function(){document.visibilityState==="hidden"&&this.saveData()},t.prototype.saveData=function(){this.bytes_token&&this.playScene!==3&&this.player&&(this.getComsumeDuration(),this.report(this.playScene===2?40304:40102,{},function(e){localStorage.setItem("tcplayer_data",JSON.stringify(e))}))},t.prototype.onLoadedmetadata=function(){this.player.tech_.webrtcProvider?this.playScene=3:this.playScene=this.player.duration()===1/0?1:2,this.videoDuration=parseInt(this.player.duration())||0,videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===2&&this.report(40303)},t.prototype.oneCanplay=function(){videojs.bind(this,this.calculateFirstFrameDuration)(),this.playScene===1&&this.report(40101)},t.prototype.calculateFirstFrameDuration=function(){var e=getperformance();e.mark&&e.measure&&e.getEntriesByName&&(e.mark("firstIFrameEnd"),e.measure("firstIFrame","firstFrameStart","firstIFrameEnd"),this.firstIFrameDuration=e.getEntriesByName("firstIFrame")[0].duration)},t.prototype.onePlay=function(){var e=this;this.setTimingData({firstPlay:getTimeStamp()});var r=this.player.el_.firstChild;this.bufferStart=r&&r.buffered&&r.buffered.length>0?r.buffered.start(r.buffered.length-1):0,this.bufferBlock=[this.bufferStart];var s=this.player.getVideoPlaybackQuality();this.recvFrames=s.totalVideoFrames,this.renderedFrames=s.totalVideoFrames-s.droppedVideoFrames,this.blockStartTime=getTimeStamp(),this.blockTimer=setInterval(function(){if(e.playScene===2)return!1;if(e.lagStatus.lagging&&e.lagStatus.lagStart){var a=getTimeStamp()-e.lagStatus.lagStart;a>e.blockInterval?e.blockData.lagBlockDuration=e.blockInterval:e.blockData.lagBlockDuration+=a}e.blockStartTime=getTimeStamp();var u=r&&r.buffered&&r.buffered.length>0?r.buffered.end(r.buffered.length-1):0,l=e.player.getVideoPlaybackQuality(),c=l.totalVideoFrames,h=l.totalVideoFrames-l.droppedVideoFrames;Object.assign(e.blockData,{buffer_avg:parseInt(1e3*(u-e.bufferStart)),recv_frames:c-e.recvFrames,render_frames:h-e.renderedFrames}),e.bufferBlock.push(e.blockData.buffer_avg),e.bufferStart=u,e.recvFrames=c,e.renderedFrames=h,e.report(40100)},this.blockInterval)},t.prototype.onDispose=function(){clearInterval(this.blockTimer)},t.prototype.onPlay=function(){this.playStatus.pauseTime&&(this.playStatus.pauseDuration=this.playStatus.pauseDuration+getTimeStamp()-this.playStatus.pauseTime,this.playStatus.pauseTime=0)},t.prototype.onPlaying=function(){var e=this;if(!this.playStatus.isFirstPlay&&(this.playStatus.isFirstPlay=!0,this.setTimingData({firstPlaying:getTimeStamp()}),this.player.on("waiting",function(){e.lagStatus.lagging||e.player.seeking()||e.lagStatus.skip||(e.lagStatus.lagging=!0,e.lagStatus.lagStart=getTimeStamp())}),this.player.currentSource().keySystems)){var r=this.player.currentSource().keySystems;r.plain&&(this.u32_drm_type="plain"),r.SimpleAES&&(this.u32_drm_type="SimpleAES")}this.lagStatus.lagging&&(this.lagStatus.lagEnd=getTimeStamp())-this.lagStatus.lagStart>this.lagStatus.lagInterval&&(this.lagStatus.lagging=!1,this.lagStatus.lagCount++,this.lagStatus.lagAvg.push(this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart,this.lagStatus.lagStart<this.blockStartTime&&(this.blockData.lagBlockDuration=this.lagStatus.lagEnd-this.blockStartTime),this.lagStatus.lagStart>=this.blockStartTime&&(this.blockData.lagBlockDuration+=this.lagStatus.lagEnd-this.lagStatus.lagStart),this.lagStatus.lagEnd=this.lagStatus.lagStart=0,this.lagStatus.isFirstLag||(this.lagStatus.isFirstLag=!0,this.setTimingData({firstLag:getTimeStamp()}))),[60,200,500,1e3].forEach(function(s){e.lagStatus.lagging&&(e.lagStatus.lagEnd=getTimeStamp())-e.lagStatus.lagStart>s&&e.blockData["lagCount_"+s]++}),this.lagStatus.skip=!1},t.prototype.onSeeking=function(){this.contentComputTimePoint.push({type:"end",time:this.player.currentTime()})},t.prototype.onSeeked=function(){this.contentComputTimePoint.push({type:"start",time:this.player.currentTime()})},t.prototype.onError=function(e){this.getComsumeDuration(!0);var r={u64_err_code:e.data.code,str_err_info:e.data.message||(defaults$1.errors[e.data.code]||{}).message},s=(this.player.cache_.src||"").indexOf("vod")>-1||this.player.options_.fileID;e&&e.data&&e.data.code&&(this.playScene===2&&s?this.report(40304,r):this.afterCanplay?this.report(40102,r):this.report(40101,r))},t.prototype.onResolutionSwitching=function(){this.lagStatus.skip=!0},t.prototype.onPause=function(){this.playStatus.pauseTime=getTimeStamp(),this.lagStatus.lagging&&(this.lagStatus.skip=!0)},t.prototype.onPlaycgiend=function(e){var r=this,s=e.data;s.result&&s.result.code==0&&(this.playStatus.requestID=s.result.requestId,setTimeout(function(){if(r.player.currentSources().length>0&&r.player.currentSources()[0].keySystems){var a=r.player.currentSources()[0].keySystems;a["com.widevine.alpha"]&&r.reportMTA("drm",{initialized:"Widevine"}),a["com.apple.fps.1_0"]&&r.reportMTA("drm",{initialized:"FairPlay"})}else r.player.options_.plugins.DRM&&r.player.options_.plugins.DRM.token&&r.reportMTA("drm",{initialized:"SimpleAES"})},0)),this.setTimingData({cgiStart:e.data.startTime,cgiEnd:e.data.time})},t.prototype.onEnded=function(){this.getComsumeDuration(),this.playScene===1?this.report(40102):this.report(40304)},t.prototype.onFeature=function(e){this.features.indexOf(e.data)==-1&&this.features.push(e.data)},t.prototype.guid=function(e){var r=localStorage.getItem(e);return r||(r=guid(),localStorage.setItem(e,r)),r},t.prototype.report=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments[2];if(this.playScene===3)return!1;e&&this["report_"+e](r,s)},t.prototype.report_40101=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!this.player||this.playScene===3&&!e.fromTxliveplayer)return!1;var r={uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,u64_timestamp:this.player.startTime,u32_dns_time:"",u32_connect_server_time:parseInt(this.firstFrameDuration),u32_video_decode_type:0,u32_first_frame_down:parseInt(this.firstFrameDuration),u32_first_video_decode_time:parseInt(this.firstIFrameDuration),u32_first_i_frame:parseInt(this.firstIFrameDuration),u32_first_audio_frame_down:parseInt(this.firstFrameDuration),u32_first_audio_render_time:parseInt(this.firstIFrameDuration),u64_err_code:e.u64_err_code||"",str_err_info:e.str_err_info||""},s={app_id:0,data:[Object.assign({},this.liveBaseData,r,e)],module_id:1005,command:40101};Reporter.reportPlayMetrics(s)},t.prototype.report_40100=function(e){var r=this;if(this.playScene===3&&!e.fromTxliveplayer)return!1;var s=this.player||{};this.blockData=this.blockData||{};var a={u32_cpu_usage:"",u32_app_cpu_usage:"",u32_avg_memory:"",u32_avg_cpu_usage:"",str_stream_url:s.cache_&&s.cache_.src,uint64_data_time:getTimeStampBySecond(),u32_recv_av_diff_time:0,u32_play_av_diff_time:0,u64_playtime:getTimeStamp()-this.timing.firstPlaying,u32_audio_decode_type:2,u32_audio_block_count:this.blockData.lagCount_500,u32_audio_cache_time:this.blockData.buffer_avg,u32_audio_drop:"",u32_video_decode_type:0,u32_video_recv_fps:this.blockData.recv_frames,u32_fps:this.blockData.render_frames,u32_video_cache_time:this.blockData.buffer_avg,u32_avg_cache_count:0,u32_video_block_count:this.blockData.lagCount_1000,u32_avg_net_speed:"",u32_video_light_block_count:this.blockData.lagCount_200,u32_video_large_block_count:this.blockData.lagCount_500,u32_audio_jitter_60ms_count:this.blockData.lagCount_60,u32_video_decode_fail:"",u32_audio_decode_fail:"",u32_avg_video_bitrate:0,u32_avg_audio_bitrate:0,u32_block_usage:1e3*parseInt(this.blockData.lagBlockDuration/this.blockInterval)},u={app_id:0,data:[Object.assign({},this.liveBaseData,a,e)],module_id:1005,command:40100};Reporter.reportPlayMetrics(u,function(){r.resetBlockData()})},t.prototype.report_40102=function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1];if(this.playScene===3&&!r.fromTxliveplayer)return!1;var a=this.player||{},u=0,l=0,c=0;JSON.stringify(a)!=="{}"?(u=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(d,y){return d+y},0)/this.lagStatus.lagAvg.length:0,l=this.bufferBlock.length>0?this.bufferBlock.reduce(function(d,y){return d+y},0)/this.bufferBlock.length:0,c=(a.getVideoPlaybackQuality&&a.getVideoPlaybackQuality()||{}).totalVideoFrames/r.duration):this.resetLagStatus();var h={uint64_data_time:getTimeStampBySecond(),str_stream_url:a.cache_&&a.cache_.src,u64_timestamp:getTimeStamp(),u32_avg_cpu_usage:"",u32_avg_memory:"",u64_begin_timestamp:a.startTime,u32_result:this.consumeDuration,u64_err_code:r.u64_err_code,u32_speed_cnt:0,u32_avg_cache_time:l,u32_max_load:Math.max.apply(Math,this.lagStatus.lagAvg),u32_audio_block_time:this.lagStatus.lagDuration,u32_avg_load:u,u32_load_cnt:this.lagStatus.lagAvg.length||0,u32_nodata_cnt:this.lagStatus.lagAvg.length||0,u32_first_i_frame:this.firstIFrameDuration,u32_video_width:a.width_,u32_video_height:a.height_,u32_video_avg_fps:c,u32_avg_block_time:u,u64_block_count:this.lagStatus.lagAvg.length||0,u32_video_block_time:this.lagStatus.lagDuration,u64_jitter_cache_max:0,u64_block_duration_max:Math.max.apply(Math,this.lagStatus.lagAvg),u64_jitter_cache_avg:0,u32_ip_count_quic:"",u32_connect_count_quic:"",u32_connect_count_tcp:"",u32_is_real_time:"",u32_first_frame_black:"",u32_delay_report:0},p={app_id:0,data:[Object.assign({},this.liveBaseData,h,r)],module_id:1005,command:40102};return r.u32_delay_report?(localStorage.setItem("tcplayer_data",JSON.stringify(p)),!1):s?(p.data.u32_delay_report=1,s(p)):void Reporter.reportPlayMetrics(p,function(){e.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.report_40303=function(){this.setTimingData({initEnd:getTimeStamp()});var e={msg_client_ip:{uint32_ip:""},uint32_service:this.playScene,uint64_data_time:getTimeStampBySecond(),str_stream_url:this.player.cache_.src,uint32_command:40303,u32_app_id:String(this.player.options_.appID),str_fileid:String(this.player.options_.fileID)},r={app_id:0,data:[Object.assign({},this.vodBaseData,e)],module_id:1011,command:40303};Reporter.reportPlayMetrics(r)},t.prototype.report_40304=function(){var e=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments[1],a=this.lagStatus.lagAvg.length>0?this.lagStatus.lagAvg.reduce(function(c,h){return c+h},0)/this.lagStatus.lagAvg.length:0,u={u32_app_id:String(this.player.options_.appID),str_fileid:String(this.player.options_.fileID),uint64_data_time:getTimeStampBySecond(),uint32_command:40304,str_stream_url:this.player.cache_.src,u32_timeuse:String(parseInt(this.consumeDuration/1e3)||0),u32_videotime:String(this.videoDuration),u32_avg_load:String(a),u32_load_cnt:String(this.lagStatus.lagCount),u32_max_load:this.lagStatus.lagAvg.length>0?String(Math.max.apply(Math,this.lagStatus.lagAvg)):String(0),u32_avg_block_time:String(this.lagStatus.lagDuration),u32_player_type:String(4),u32_dns_time:"",u32_tcp_did_connect:"",u32_first_video_packet:String(parseInt(this.firstFrameDuration)),u32_first_i_frame:String(parseInt(this.firstIFrameDuration)),u32_server_ip:"",u32_drm_type:this.u32_drm_type,u32_playmode:String(1),u64_err_code:String(r.u64_err_code||""),str_err_info:String(r.str_err_info||""),u32_video_decode_type:String(0),u32_speed:this.player&&String(100*this.player.playbackRate())||"1000"},l={app_id:0,data:[Object.assign({},this.vodBaseData,u)],module_id:1011,command:40304};if(s)return s(l);Reporter.reportPlayMetrics(l,function(){e.bytes_token=null,localStorage.removeItem("tcplayer_data")})},t.prototype.setTimingData=function(e){this.timing=videojs.mergeOptions(this.timing,e)},t.prototype.reset=function(){this.playStatus={isFirstPlay:!1}},t.prototype.resetLagStatus=function(){this.lagStatus={lagCount:0,lagging:!1,lagStart:0,lagEnd:0,lagInterval:500,lagDuration:0,lagAvg:[],isFirstLag:!1,skip:!1}},t.prototype.resetBlockData=function(){this.blockData={lagCount_60:0,lagCount_200:0,lagCount_500:0,lagCount_1000:0,lagBlockDuration:0,buffer_avg:0,recv_frames:0,render_frames:0}},t.prototype.reportMTA=function(e,r){},t.prototype.getSystem=function(){return IS_IOS?"ios":IS_ANDROID?"android":IS_WIN?"win":IS_MAC?"mac":"other"},t.prototype.getSystemVer=function(){var e=this.getSystem();return e=="ios"?IOS_VERSION:e=="android"?ANDROID_VERSION:e=="win"?WIN_VER:e=="mac"?MAC_VER:void 0},t.prototype.getBrowser=function(){return IS_FIREFOX?"firefox":IS_EDGE?"edge":IS_MQQB?"mqq":IS_QQB?"qq":IS_TBS?"tbs":IS_CHROME?"chrome":IE_VERSION?"ie":IS_SAFARI?"safari":"other"},t.prototype.getBrowserVer=function(){var e=this.getBrowser();return e=="firefox"?FIREFOX_VER:e=="edge"?EDGE_VER:e=="chrome"?CHROME_VER:e=="ie"?IE_VERSION:e=="safari"?SAFARI_VER:e=="qq"||e=="mqq"?QQ_VER:e=="tbs"?TBS_VERSION:"other"},t.prototype.getDevice=function(){return IS_IOS?"IPHONE":IS_HUAWEI?"HUAWEI":IS_XIAOMI?"XIAOMI":IS_OPPO?"OPPO":IS_VIVO?"VIVO":IS_SX?"SUMSUNG":IS_CP?"COOLPAD":IS_ONE?"ONEPLUS":IS_ZX?"ZTE":"OTHER"},t.prototype.getMediaType=function(){return this.player.src()&&/\/(.+)\.(.+)\?|\/(.+)\.(.+)/.test(this.player.src()),RegExp.$2||RegExp.$4},t.prototype.getNetworkType=function(){var e=navigator.userAgent,r=e.match(/NetType\/\w+/)?e.match(/NetType\/\w+/)[0]:"NetType/other";r=r.toLowerCase().replace("nettype/","");var s;switch(r){case"wifi":s="1";break;case"4g":s="2";break;case"3g":case"3gnet":s="3";break;case"2g":s="4";break;default:s="0xFF"}return s},t})(Plugin$14);videojs.registerPlugin("PlayerMetrics",PlayerMetrics);var Plugin$15=videojs.getPlugin("plugin"),log$13=videojs.log,ProgressMarker=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return e.ready(videojs.bind(s,s.init)),s}return inherits(t,n),t.prototype.init=function(){var e=this.player;if(e.options_.dots){var r=function a(){Array.isArray(e.options_.dots)&&e.options_.dots.length>0&&(e.options_.dots.forEach(function(u){!u.emitted&&u.timeOffset-1e3*(e.currentTime()||0)<500&&(u.emitted=!0,e.trigger("marker",u.content))}),e.options_.dots[e.options_.dots.length-1].emitted||window.requestAnimationFrame(a))};window.requestAnimationFrame(r)}if(IS_IOS||IS_ANDROID)return!1;if(!e.controlBar||!this.player.controlBar.progressControl)return void log$13("ProgressMarker can not initialize without control bar or progress control");log$13("ProgressMarker initializing");var s=e.controlBar.getChild("ProgressControl").getChild("SeekBar");s.getChild("ProgressMarkerGenerator")&&s.removeChild("ProgressMarkerGenerator"),e.options_.plugins.ProgressMarker&&(s.addChild("ProgressMarkerGenerator"),log$13("ProgressMarker initialized"),e.trigger({type:"feature",data:"marker"}))},t})(Plugin$15);videojs.registerPlugin("ProgressMarker",ProgressMarker);var Component$16=videojs.getComponent("Component"),PlayListItem=(function(n){function t(e,r){return classCallCheck(this,t),possibleConstructorReturn(this,n.call(this,e,r))}return inherits(t,n),t.prototype.createEl=function(){var e=this.options_,r=videojs.dom.createEl("div",{className:"tcp-playlist-item"}),s=videojs.dom.createEl("div",{className:"tcp-playlist-item-video",innerHTML:e.img?'<img src="'+e.img+'" class="tcp-playlist-item-img">':'<img src="https://imgcache.qq.com/open_proj/proj_qcloud_v2/mc_2014/video/console/v2/css/img/vod/default-cover.png" height="100" class="tcp-playlist-item-img">'}),a=videojs.dom.createEl("div",{className:"tcp-playlist-item-duration",textContent:this.timeFormat(e.duration)});s.appendChild(a);var u=videojs.dom.createEl("div",{className:"tcp-playlist-item-desc",textContent:e.text});return r.appendChild(s),r.appendChild(u),this.bindEvent(r),r},t.prototype.bindEvent=function(e){var r=this;videojs.on(e,["click"],function(){r.player_.trigger({type:"playItem",data:r.options_})})},t.prototype.timeFormat=function(e){var r="",s=Math.floor(e/3600);s!=0&&(e-=3600*s,s<10&&(s="0"+s),r+=s+":");var a=Math.floor(e/60);return a<10&&(a="0"+a),e-=60*a,e<10&&(e="0"+e),r+=a+":"+e},t})(Component$16);videojs.registerComponent("PlayListItem",PlayListItem);var Component$17=videojs.getComponent("Component"),PlayListTitle=(function(n){function t(e,r){return classCallCheck(this,t),possibleConstructorReturn(this,n.call(this,e,r))}return inherits(t,n),t.prototype.createEl=function(){var e=this.options_;return videojs.dom.createEl("div",{className:"tcp-playlist-title",textContent:e.title})},t})(Component$17);videojs.registerComponent("PlayListTitle",PlayListTitle);var Component$15=videojs.getComponent("Component"),PlayListBox=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.init(),s.activeIndex=-1,s}return inherits(t,n),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist-box"})},t.prototype.init=function(){var e=this,r=this.options_.data;this.addChild("PlayListTitle",{title:this.options_.title}),r.forEach(function(s,a){s.index=a,e.addChild("PlayListItem",s)}),this.player_.on("ready",function(){e.options_.loop&&(e.activeIndex=0,e.player_.on("ended",videojs.bind(e,function(){e.player_.trigger({type:"playItem"})})))}),this.player_.on("playItem",function(s){var a=s.data,u=void 0;e.activeIndex=a?a.index:(e.activeIndex+1)%r.length,u=r[e.activeIndex],e.player_.loadVideoByID({fileID:u.fileID,appID:u.appID,psign:u.psign}),e.player_.one("loadedmetadata",videojs.bind(e,function(){e.player_.play()})),document.querySelectorAll(".tcp-playlist-item").forEach(function(c){videojs.dom.removeClass(c,"tcp-playlist-item-active")});var l=document.querySelectorAll(".tcp-playlist-item")[e.activeIndex];videojs.dom.addClass(l,"tcp-playlist-item-active")})},t})(Component$15);videojs.registerComponent("PlayListBox",PlayListBox);var Component$18=videojs.getComponent("Component"),PlayListToggle=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.status=0,s}return inherits(t,n),t.prototype.createEl=function(){var e=videojs.dom.createEl("div",{className:"tcp-playlist-toggle",textContent:"<"});return this.bindEvent(e),e},t.prototype.bindEvent=function(e){var r=this;videojs.on(e,["click"],function(s){r.status=!r.status;var a=document.querySelector(".tcp-playlist");r.status?(e.textContent=">",videojs.dom.addClass(a,"tcp-playlist-open"),videojs.dom.removeClass(a,"tcp-playlist-close")):(videojs.dom.addClass(a,"tcp-playlist-close"),videojs.dom.removeClass(a,"tcp-playlist-open"),e.textContent="<")})},t})(Component$18);videojs.registerComponent("PlayListToggle",PlayListToggle);var Component$14=videojs.getComponent("Component"),PlayList$1=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.init(),s}return inherits(t,n),t.prototype.createEl=function(){return videojs.dom.createEl("div",{className:"tcp-playlist tcp-playlist-close"})},t.prototype.init=function(){this.addChild("PlayListToggle"),this.addChild("PlayListBox",this.options_)},t})(Component$14);videojs.registerComponent("PlayList",PlayList$1);var Button$6=videojs.getComponent("Button"),PlayNextButton=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e,r));return s.addClass(),s}return inherits(t,n),t.prototype.addClass=function(){videojs.dom.addClass(this.el_,"vjs-play-next")},t.prototype.update=function(){},t.prototype.handleClick=function(e){this.player_.trigger({type:"playItem"})},t})(Button$6);PlayNextButton.prototype.controlText_="Play Next",videojs.registerComponent("PlayNextButton",PlayNextButton);var Plugin$16=videojs.getPlugin("plugin"),log$14=videojs.log,PlayList=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return IS_IOS||IS_ANDROID?possibleConstructorReturn(s):(s.options=r,r&&r.data instanceof Array&&r.data.length>0&&e.ready(videojs.bind(s,s.init)),s)}return inherits(t,n),t.prototype.init=function(){log$14("PlayList initializing"),this.player.addChild("PlayList",this.options),this.player.controlBar.addChild("PlayNextButton",{},1),log$14("PlayList initialized"),this.player.trigger({type:"feature",data:"playlist"})},t})(Plugin$16);videojs.registerPlugin("PlayList",PlayList);var Plugin$17=videojs.getPlugin("plugin"),log$15=videojs.log,HLSToken=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return log$15("HLSToken",e,r),s.init(r),s}return inherits(t,n),t.prototype.init=function(e){log$15("HLSToken init",e,this.player);var r=this.player;e.token&&(this.options=e,r.on("playcgiend",videojs.bind(this,function(s){this.modifyData(s.data)})))},t.prototype.modifyData=function(e){var r=this;if(log$15("HLSToken modifyData",e),e.result.code===0){var s=e.result.videoInfo;if(s.masterPlayList){var a=s.masterPlayList.url.split("/");a[a.length-1]="voddrm.token."+this.options.token+"."+a[a.length-1],s.masterPlayList.url=a.join("/")}s.transcodeList&&s.transcodeList.length>0&&(s.transcodeList=s.transcodeList.map(function(u){var l=u.url.split("/");return l[l.length-1]="voddrm.token."+r.options.token+"."+l[l.length-1],u.url=l.join("/"),u}))}},t})(Plugin$17);videojs.registerPlugin("HLSToken",HLSToken);var getMessageContents=function(n){var t=new window_1.DOMParser().parseFromString(String.fromCharCode.apply(null,new Uint16Array(n)),"application/xml"),e=t.getElementsByTagName("HttpHeaders")[0],r={};if(e)for(var s=e.getElementsByTagName("name"),a=e.getElementsByTagName("value"),u=0;u<s.length;u++)r[s[u].childNodes[0].nodeValue]=a[u].childNodes[0].nodeValue;var l=t.getElementsByTagName("Challenge")[0],c=void 0;return l&&(c=window_1.atob(l.childNodes[0].nodeValue)),{headers:r,message:c}},requestPlayreadyLicense=function(n,t,e){var r=getMessageContents(t),s=r.headers,a=r.message;videojs.xhr({uri:n,method:"post",headers:s,body:a,responseType:"arraybuffer"},e)},getSupportedKeySystem=function(n){var t=void 0;return Object.keys(n).forEach(function(e){var r={},s=n[e].audioContentType,a=n[e].videoContentType;s&&(r.audioCapabilities=[{contentType:s}]),a&&(r.videoCapabilities=[{contentType:a}]),t=t?t.catch(function(u){return window_1.navigator.requestMediaKeySystemAccess(e,[r])}):window_1.navigator.requestMediaKeySystemAccess(e,[r])}),t},makeNewRequest=function(n){var t=n.mediaKeys,e=n.initDataType,r=n.initData,s=n.options,a=n.getLicense,u=n.removeSession,l=n.eventBus,c=t.createSession();c.addEventListener("message",function(h){a(s,h.message).then(function(p){return c.update(p)}).catch(videojs.log.error.bind(videojs.log.error,"failed to get and set license"))},!1),c.addEventListener("keystatuseschange",function(h){var p=!1;c.keyStatuses.forEach(function(d,y){switch(l.trigger({keyId:y,status:d,target:c,type:"keystatuschange"}),d){case"expired":p=!0;break;case"internal-error":videojs.log.warn(`Key status reported as "internal-error." Leaving the session open since we don't have enough details to know if this error is fatal.`,h)}}),p&&c.close().then(function(){u(r)})},!1),c.generateRequest(e,r).catch(videojs.log.error.bind(videojs.log.error,"Unable to create or initialize key session"))},addSession=function(n){var t=n.video,e=n.initDataType,r=n.initData,s=n.options,a=n.getLicense,u=n.removeSession,l=n.eventBus;t.mediaKeysObject?makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:e,initData:r,options:s,getLicense:a,removeSession:u,eventBus:l}):t.pendingSessionData.push({initDataType:e,initData:r})},setMediaKeys=function(n){var t=n.video,e=n.certificate,r=n.createdMediaKeys,s=n.options,a=n.getLicense,u=n.removeSession,l=n.eventBus;t.mediaKeysObject=r,e&&r.setServerCertificate(e);for(var c=0;c<t.pendingSessionData.length;c++){var h=t.pendingSessionData[c];makeNewRequest({mediaKeys:t.mediaKeysObject,initDataType:h.initDataType,initData:h.initData,options:s,getLicense:a,removeSession:u,eventBus:l})}return t.pendingSessionData=[],t.setMediaKeys(r)},defaultPlayreadyGetLicense=function(n){return function(t,e,r){requestPlayreadyLicense(n,e,function(s,a,u){if(s)return void r(s);r(null,u)})}},defaultGetLicense=function(n){return function(t,e,r){videojs.xhr({uri:n,method:"POST",responseType:"arraybuffer",body:e,headers:{"Content-type":"application/octet-stream"}},function(s,a,u){if(s)return void r(s);r(null,u)})}},promisifyGetLicense=function(n,t){return function(e,r){return new Promise(function(s,a){n(e,r,function(u,l){t&&t.trigger("licenserequestattempted"),u&&a(u),s(l)})})}},standardizeKeySystemOptions=function(n,t){if(typeof t=="string"&&(t={url:t}),!t.url&&!t.getLicense)throw new Error("Neither URL nor getLicense function provided to get license");return t.url&&!t.getLicense&&(t.getLicense=n==="com.microsoft.playready"?defaultPlayreadyGetLicense(t.url):defaultGetLicense(t.url)),t},standard5July2016=function(n){var t=n.video,e=n.initDataType,r=n.initData,s=n.options,a=n.removeSession,u=n.eventBus,l=Promise.resolve();if(typeof t.mediaKeysObject>"u"){t.mediaKeysObject=null,t.pendingSessionData=[];var c=void 0,h=void 0;if(!(l=getSupportedKeySystem(s.keySystems)))return videojs.log.error("No supported key system found"),Promise.resolve();l=l.then(function(p){return new Promise(function(d,y){if(t.keySystem=p.keySystem,h=standardizeKeySystemOptions(p.keySystem,s.keySystems[p.keySystem]),!h.getCertificate)return void d(p);h.getCertificate(s,function(g,v){if(g)return void y(g);c=v,d(p)})})}).then(function(p){return p.createMediaKeys()}).then(function(p){return setMediaKeys({video:t,certificate:c,createdMediaKeys:p,options:s,getLicense:promisifyGetLicense(h.getLicense,u),removeSession:a,eventBus:u})}).catch(videojs.log.error.bind(videojs.log.error,"Failed to create and initialize a MediaKeys object"))}return l.then(function(){addSession({video:t,initDataType:e,initData:r,options:s,getLicense:t.keySystem?promisifyGetLicense(standardizeKeySystemOptions(t.keySystem,s.keySystems[t.keySystem]).getLicense,u):null,removeSession:a,eventBus:u})})},stringToUint16Array=function(n){for(var t=new ArrayBuffer(2*n.length),e=new Uint16Array(t),r=0;r<n.length;r++)e[r]=n.charCodeAt(r);return e},uint8ArrayToString=function(n){return String.fromCharCode.apply(null,new Uint16Array(n.buffer))},getHostnameFromUri=function(n){var t=document_1.createElement("a");return n=n.match(/.*(skd\:\/\/.+)/i)[1],t.href=n,t.hostname},arrayBuffersEqual=function(n,t){if(n===t)return!0;if(n.byteLength!==t.byteLength)return!1;for(var e=new DataView(n),r=new DataView(t),s=0;s<e.byteLength;s++)if(e.getUint8(s)!==r.getUint8(s))return!1;return!0},arrayBufferFrom=function(n){return n instanceof Uint8Array||n instanceof Uint16Array?n.buffer:n},FAIRPLAY_KEY_SYSTEM="com.apple.fps.1_0",concatInitDataIdAndCertificate=function(n){var t=n.initData,e=n.id,r=n.cert;typeof e=="string"&&(e=stringToUint16Array(e));var s=0,a=new ArrayBuffer(t.byteLength+4+e.byteLength+4+r.byteLength),u=new DataView(a);new Uint8Array(a,s,t.byteLength).set(t),s+=t.byteLength,u.setUint32(s,e.byteLength,!0),s+=4;var l=new Uint16Array(a,s,e.length);return l.set(e),s+=l.byteLength,u.setUint32(s,r.byteLength,!0),s+=4,new Uint8Array(a,s,r.byteLength).set(r),new Uint8Array(a,0,a.byteLength)},addKey=function(n){var t=n.video,e=n.contentId,r=n.initData,s=n.cert,a=n.options,u=n.getLicense,l=n.eventBus;return new Promise(function(c,h){if(t.webkitKeys||t.webkitSetMediaKeys(new window_1.WebKitMediaKeys(FAIRPLAY_KEY_SYSTEM)),!t.webkitKeys)return void h("Could not create MediaKeys");var p=t.webkitKeys.createSession("video/mp4",concatInitDataIdAndCertificate({id:e,initData:r,cert:s}));if(!p)return void h("Could not create key session");p.contentId=e,p.addEventListener("webkitkeymessage",function(d){u(a,e,d,function(y,g){if(l&&l.trigger("licenserequestattempted"),y)return void h(y);p.update(new Uint8Array(g))})}),p.addEventListener("webkitkeyadded",function(d){c(d)}),p.addEventListener("webkitkeyerror",function(d){h(d)})})},defaultGetCertificate=function(n){return function(t,e){videojs.xhr({uri:n,responseType:"arraybuffer"},function(r,s,a){if(r)return void e(r);e(null,new Uint8Array(a))})}},defaultGetContentId=function(n,t){return getHostnameFromUri(uint8ArrayToString(t))},defaultGetLicense$1=function(n){return function(t,e,r,s){videojs.xhr({uri:n,method:"POST",responseType:"arraybuffer",body:r.message,headers:{"Content-type":"application/x-www-form-urlencoded"}},function(a,u,l){if(a)return void s(a);s(null,l)})}},fairplay=function(n){var t=n.video,e=n.initData,r=n.options,s=n.eventBus,a=r.keySystems[FAIRPLAY_KEY_SYSTEM],u=a.getCertificate||defaultGetCertificate(a.certificateUri),l=a.getContentId||defaultGetContentId,c=a.getLicense||defaultGetLicense$1(a.licenseUri);return new Promise(function(h,p){u(r,function(d,y){if(d)return void p(d);h(y)})}).then(function(h){return addKey({video:t,cert:h,initData:e,getLicense:c,options:r,contentId:l(r,e),eventBus:s})}).catch(function(h){s.player_.error({code:3,message:h})})},PLAYREADY_KEY_SYSTEM="com.microsoft.playready",addKeyToSession=function(n,t,e,r){var s=n.keySystems[PLAYREADY_KEY_SYSTEM];if(typeof s.getKey=="function")return void s.getKey(n,e.destinationURL,e.message.buffer,function(u,l){if(u)return void videojs.log.error("Unable to get key: "+u);t.update(l)});typeof s=="string"&&(s={url:s});var a=s.url||e.destinationURL;requestPlayreadyLicense(a,e.message.buffer,function(u,l){if(r&&r.trigger("licenserequestattempted"),u)return void videojs.log.error("Unable to request key from url: "+a);t.update(new Uint8Array(l.body))})},createSession=function(n,t,e,r){var s=n.msKeys.createSession("video/mp4",t);if(!s)return void videojs.log.error("Could not create key session.");s.addEventListener("mskeymessage",function(a){addKeyToSession(e,s,a,r)}),s.addEventListener("mskeyerror",function(a){videojs.log.error("Unexpected key error from key session with code: "+s.error.code+" and systemCode: "+s.error.systemCode)})},msPrefixed=function(n){var t=n.video,e=n.initData,r=n.options,s=n.eventBus;t.msKeys&&delete t.msKeys;try{t.msSetMediaKeys(new window_1.MSMediaKeys(PLAYREADY_KEY_SYSTEM))}catch(a){return void videojs.log.error("Unable to create media keys for PlayReady key system. Error: "+a.message)}createSession(t,e,r,s)},Plugin$18=videojs.getPlugin("plugin"),hasSession=function(n,t){for(var e=0;e<n.length;e++)if(n[e].initData){var r=arrayBufferFrom(n[e].initData),s=arrayBufferFrom(t);if(arrayBuffersEqual(r,s))return!0}return!1},removeSession=function(n,t){for(var e=0;e<n.length;e++)if(n[e].initData===t)return void n.splice(e,1)},handleEncryptedEvent=function(n,t,e,r){if(!t||!t.keySystems||t.src&&t.src.indexOf("m3u8")>-1)return Promise.resolve();var s=n.initData;return getSupportedKeySystem(t.keySystems).then(function(a){var u=a.keySystem;if(t.keySystems[u]&&t.keySystems[u].pssh&&(s=t.keySystems[u].pssh),!hasSession(e,s)&&s)return e.push({initData:s}),standard5July2016({video:n.target,initDataType:n.initDataType,initData:s,options:t,removeSession:removeSession.bind(null,e),eventBus:r})})},handleWebKitNeedKeyEvent=function(n,t,e){if(t.keySystems&&t.keySystems[FAIRPLAY_KEY_SYSTEM]&&n.initData)return fairplay({video:n.target,initData:n.initData,options:t,eventBus:e})},handleMsNeedKeyEvent=function(n,t,e,r){if(t.keySystems&&t.keySystems[PLAYREADY_KEY_SYSTEM]&&!e.reduce(function(a,u){return a||u.playready},!1)){var s=n.initData;t.keySystems[PLAYREADY_KEY_SYSTEM]&&t.keySystems[PLAYREADY_KEY_SYSTEM].pssh&&(s=t.keySystems[PLAYREADY_KEY_SYSTEM].pssh),s&&(e.push({playready:!0,initData:s}),msPrefixed({video:n.target,initData:s,options:t,eventBus:r}))}},getOptions=function(n){return videojs.mergeOptions(n.currentSource(),n.eme.options)},setupSessions=function(n){var t=n.src();t!==n.eme.activeSrc&&(n.eme.activeSrc=t,n.eme.sessions=[])},onPlayerReady=function(n){n.$(".vjs-tech").tagName.toLowerCase()==="video"&&n.tech_&&(setupSessions(n),n.tech_.el_.addEventListener("encrypted",function(t){if(n.currentSource().keySystems&&n.currentSource().keySystems["com.widevine.alpha"]&&n.currentSource().type==="application/dash+xml")return!1;setupSessions(n),handleEncryptedEvent(t,getOptions(n),n.eme.sessions,n.tech_)}),n.tech_.el_.addEventListener("webkitneedkey",function(t){setupSessions(n),handleWebKitNeedKeyEvent(t,getOptions(n),n.tech_)}),videojs.browser.IS_EDGE||n.tech_.el_.addEventListener("msneedkey",function(t){setupSessions(n),handleMsNeedKeyEvent(t,getOptions(n),n.eme.sessions,n.tech_)}))},DRM=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.options=r,e.ready(function(){return onPlayerReady(e)}),e.eme={initializeMediaKeys:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},l=videojs.mergeOptions(e.currentSource(),r,a),c={initDataType:"cenc",initData:null,target:e.tech_.el_};setupSessions(e),e.tech_.el_.setMediaKeys?handleEncryptedEvent(c,l,e.eme.sessions,e.tech_).then(function(){return u()}).catch(function(h){return u(h)}):e.tech_.el_.msSetMediaKeys&&(handleMsNeedKeyEvent(c,l,e.eme.sessions,e.tech_),u())},options:r},s}return inherits(t,n),t.prototype.setOptions=function(e){this.options=e,this.player.options_.plugins.DRM=e},t})(Plugin$18),registerPlugin$2=videojs.registerPlugin||videojs.plugin;registerPlugin$2("DRM",DRM);var Plugin$19=videojs.getPlugin("plugin"),PDT=(function(n){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,n.call(this,e));return e.plugins=e.plugins||{},e.plugins.pdt=!0,r}return inherits(t,n),t})(Plugin$19);videojs.registerPlugin("PDT",PDT);var Plugin$20=videojs.getPlugin("plugin"),dom$2=videojs.dom;if(!window.requestAnimationFrame){var lastTime=0;window.requestAnimationFrame=function(n){var t=new Date().getTime(),e=Math.max(0,16.7-(t-lastTime)),r=window.setTimeout(function(){n(t+e)},e);return lastTime=t+e,r}}window.cancelAnimationFrame||(window.cancelAnimationFrame=function(n){clearTimeout(n)});var DynamicWatermark=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.options=r||{},s.content=s.options.content,s.options.content&&s.init(),s}return inherits(t,n),t.prototype.dispose=function(){this.stopAnimation(),this.player.$(".tcp-dynamic-watermark-container")&&this.player.el().removeChild(this.containerElement),n.prototype.dispose.call(this)},t.prototype.init=function(){var e=this,r=this.player;this.isFirstShow=!0,this.initUI(),this.initStyle(),this.initSpeed(),r.on("canplay",function(){e.calculateStyle(),e.setStyle(),dom$2.removeClass(e.containerElement,"vjs-hidden")}),r.one("play",function(){e.encModule=new Enc,e.ghostCycle=e.encModule.calculateGhost(e.player.duration()),e.startAnimation()}),r.on(["fullscreenchange","playerresize"],function(){setTimeout(function(){e.calculateStyle()},200)})},t.prototype.initUI=function(){var e=this.player,r=dom$2.createEl("div",{className:"tcp-dynamic-watermark-container vjs-hidden"}),s=dom$2.createEl("div",{innerHTML:encodeHTML(this.options.content),className:"tcp-dynamic-watermark-content"});if(r.appendChild(s),!this.options.keep&&this.options.content&&e.el().appendChild(r),this.containerElement=r,this.markContentElement=s,this.options.type==="image"){var a=document.createElement("img");this.options.width&&(a.style.width=this.options.width),this.options.height&&(a.style.height=this.options.height),a.setAttribute("src",this.options.content),this.markContentElement.innerHTML="",this.markContentElement.appendChild(a)}},t.prototype.initStyle=function(){this.style={containerWidth:"",containerHeight:"",containerLeft:"",containerTop:"",contentLeft:80*Math.random(),contentTop:80*Math.random(),margin:0,padding:0,display:"block",visibility:"visible",opacity:.5,position:"absolute",color:"rgba(255, 255, 255)"}},t.prototype.initSpeed=function(){if(this.options.keep&&(!this.options.speed||this.options.speed===0))return this.speed=.2,!1;this.speed=this.options.speed},t.prototype.calculateStyle=function(){var e=this.player,r=this.style,s=e.videoWidth(),a=e.videoHeight(),u=dom$2.getBoundingClientRect(e.el()),l=u.width,c=u.height,h=(l/c).toFixed(2),p=(s/a).toFixed(2),d=void 0,y=void 0;p<h?(y=c,d=y*p):p>h?(d=l,y=d/p):p==h&&(d=l,y=c),r.containerLeft=(l-d)/2/l*100,r.containerTop=(c-y)/2/c*100,r.containerWidth=d/l*100,r.containerHeight=y/c*100},t.prototype.setStyle=function(){var e=this.containerElement,r=this.markContentElement,s=this.style;e.style.left=s.containerLeft+"%",e.style.top=s.containerTop+"%",e.style.width=s.containerWidth+"%",e.style.height=s.containerHeight+"%",e.style.display=r.style.display=s.display,e.style.visibility=r.style.visibility=s.visibility,e.style.opacity=r.style.opacity=s.opacity,e.style.position=r.style.position=s.position,e.style.margin=r.style.margin=s.margin,e.style.padding=r.style.padding=s.padding,r.style.left=this.options.left||s.contentLeft+"%",r.style.top=this.options.top||s.contentTop+"%",this.options.right&&(r.style.right=this.options.right),this.options.bottom&&(r.style.bottom=this.options.bottom),r.style.color=this.options.color||s.color,this.options.keep||(e.style.opacity=r.style.opacity=this.options.opacity||s.opacity),this.options.type==="text"&&(r.style.fontSize=this.options.fontSize||"12px",r.innerHTML=encodeHTML(this.options.content))},t.prototype.setContent=function(e){this.options.content=e},t.prototype.startAnimation=function(){var e=this;if(!this.rafID){var r=(this.player,this.style),s=this.containerElement,a=this.markContentElement,u=1,l=1,c=Math.random(),h=function p(){try{if(!e.isPauseAnimation){var d=Math.min(1,e.speed===0?0:e.speed?e.speed:.2),y=dom$2.getBoundingClientRect(s),g=dom$2.getBoundingClientRect(a),v=g.left-y.left,S=g.top-y.top;v+=d*u*c,S+=d*l*(1-c),v+g.width>y.width?(u=-1,c=Math.random()):v<0&&(u=1,c=Math.random()),S+g.height>y.height?(l=-1,c=Math.random()):S<0&&(l=1,c=Math.random()),v=Math.min(y.width-g.width,v),S=Math.min(y.height-g.height,S),r.contentLeft=v/y.width*100,r.contentTop=S/y.height*100,e.setStyle()}}catch{e.player&&e.encModule.handleWatermarkElementAdd(e)}if(e.isStopAnimation)return e.isStopAnimation=!1,cancelAnimationFrame(e.rafID),void(e.rafID=null);e.speed!==0&&requestAnimationFrame(p)};this.rafID=requestAnimationFrame(h)}},t.prototype.resumeAnimation=function(){this.isPauseAnimation=!1},t.prototype.pauseAnimation=function(){this.isPauseAnimation=!0},t.prototype.stopAnimation=function(){this.isStopAnimation=!0},t})(Plugin$20);videojs.registerPlugin("DynamicWatermark",DynamicWatermark);var Plugin$21=videojs.getPlugin("plugin"),XP2PHlsjsPlugin=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.options=r,s.hlsp2p=null,s}return inherits(t,n),t.prototype.startHLSP2P=function(e,r,s){var a=this,u=this.player.tech_,l=u.options_,c=l.xp2pConfig;if(r.isSupported()&&!window.hlsp2p){for(var h=["videoType","xp2pPackage","xp2pAppId","tencentCloudAppId"],y=h,p=Array.isArray(y),d=0,y=p?y:y[Symbol.iterator]();;){var g;if(p){if(d>=y.length)break;g=y[d++]}else{if(d=y.next(),d.done)break;g=d.value}var v=g;if(c[v]===void 0)return}var S={videoId:l.playerId+"_html5_api",url:l.source.src,videoType:c.videoType,cloudAppId:c.tencentCloudAppId,domain:c.xp2pPackage,xp2pAppId:c.xp2pAppId,p2pStartDelay:1e3},C=HLSP2P.create(e,Object.assign(S,c));C.on(HLSP2P.Events.Rollback,function(k){a.destroy(),s&&s(k)}),this.hlsp2p=C}},t.prototype.destroy=function(){this.hlsp2p&&(this.hlsp2p.destroy(),this.hlsp2p=null,window.hlsp2p=void 0)},t.prototype.dispose=function(){this.destroy()},t})(Plugin$21);videojs.registerPlugin("XP2PHlsjsPlugin",XP2PHlsjsPlugin);var Plugin$22=videojs.getPlugin("plugin"),XP2PFlvjsPlugin=(function(n){function t(e,r){classCallCheck(this,t);var s=possibleConstructorReturn(this,n.call(this,e));return s.options=r,s}return inherits(t,n),t.prototype.createLoader=function(e,r,s){var a=this.player.tech();return(function(u){function l(c,h){classCallCheck(this,l);var p=possibleConstructorReturn(this,u.call(this));return p._qvbp2p=null,p._receivedLength=0,p._config=h,p}return inherits(l,u),l.isSupported=function(){return r&&r.isSupported()},l.prototype.destroy=function(){this._destroyQVBP2P(),u.prototype.destroy.call(this)},l.prototype.open=function(c){this._createQVBP2P(),this._qvbp2p.on(r.ComEvents.STATE_CHANGE,this._onQVBP2PStateChange.bind(this)),this._qvbp2p.setMediaElement(a.el());var h={src:c.url};this._qvbp2p.loadSource(h)},l.prototype.abort=function(){this._destroyQVBP2P()},l.prototype._onQVBP2PStateChange=function(c,h){var p=r.ComCodes;switch(h.code){case p.RECEIVE_BUFFER:this._receiveBuffer(h.payload);break;case p.ROLLBACK:this._rollback(h)}},l.prototype._receiveBuffer=function(c){var h=this._receivedLength;this._receivedLength+=c.byteLength,this._onDataArrival&&this._onDataArrival(c,h,this._receivedLength)},l.prototype._rollback=function(c){s&&s(c)},l.prototype._createQVBP2P=function(){this._qvbp2p&&this._destroyQVBP2P(),this._qvbp2p=r.create(this._config.xp2pConfig),window.qvbp2p=this._qvbp2p},l.prototype._destroyQVBP2P=function(){this._qvbp2p&&(this._qvbp2p.destroy(),this._qvbp2p=null,window.qvbp2p=null)},l})(e.BaseLoader)},t})(Plugin$22);videojs.registerPlugin("XP2PFlvjsPlugin",XP2PFlvjsPlugin);var defaultConfig$1={enableStashBuffer:!1,lazyLoadMaxDuration:300},Html5FlvJS=(function(){function n(t,e,r){var s=this;classCallCheck(this,n),this.tech=e,this.player=this.tech.player();var a=function(){var u=window.flvjs;s.flvjs=u;var l=videojs.mergeOptions(defaultConfig$1,r.flvConfig,{xp2pConfig:r.xp2pConfig}),c=e.player();if(window.QVBP2P&&r.xp2pConfig&&r.xp2pConfig.useXP2P&&c.XP2PFlvjsPlugin){var h=c.XP2PFlvjsPlugin().createLoader(u,window.QVBP2P,function(y){s.dispose(),r.xp2pConfig.useXP2P=!1;var g=s.tech.player(),v=s.tech.currentSource_.src;g.src(v)});s.xp2pFlvLoader=h,l.customLoader=h}var p=new u.createPlayer(Object.assign({isLive:!1,url:t.src,type:"flv"},l),l);p.on(u.Events.ERROR,videojs.bind(s,s.onError));for(var d in u.Events)(function(y){p.on(u.Events[y],videojs.bind(s,function(g){this.onEvent(y,g)}))})(d);p.on(u.Events.STATISTICS_INFO,function(y){var g=(y.bps_audio||0)+(y.bps_video||0);c.trigger({type:"playstatus",data:{type:"flv",decodedFrames:y.decodedFrames,droppedFrames:y.droppedFrames,speed:y.speed.toFixed(0),bitrate:g||0,bpsAudio:y.bps_audio||0,bpsVideo:y.bps_video||0}})}),s.flv=p,c.trigger({type:"flvInstanceCreated",data:{flv:p}}),s._id=new Date().getTime(),e.el().srcObject&&(e.el().srcObject=null),p.attachMediaElement(e.el()),p.load()};Promise.all([(function(){return r.xp2pConfig&&r.xp2pConfig.useXP2P&&r.xp2pConfig.format==="flv"&&!window.QVBP2P?new Promise(function(u){loadScript(XP2P_FLV_PATH,function(){u()})}):Promise.resolve()})(),(function(){return window.flvjs?Promise.resolve():new Promise(function(u){loadScript(FLV_PATH,function(){u()})})})()]).then(function(){a()}).catch(function(u){s.player.error({code:32})})}return n.prototype.onError=function(t,e,r){var s=this.tech.player();t===this.flvjs.ErrorTypes.NETWORK_ERROR&&s.error({code:2,source:r}),t===this.flvjs.ErrorTypes.MEDIA_ERROR&&s.error({code:3,source:r})},n.prototype.onEvent=function(t,e){this.tech.player().trigger({type:"FLVJS_EVENT",data:{type:t,data:e}})},n.prototype.dispose=function(){if(this.tech.player().pause(),this.tech.flvProvider)try{this.flv.destroy()}catch{}this.tech.flvProvider=null},n})(),flvTypeRE=/^video\/flv$/i,flvExtRE=/.flv(?![^?])/i,flvProtoRE=/^(ws:\/\/)/i,FlvSourceHandler={name:"flvSourceHandler",canHandleSource:function(n){return flvTypeRE.test(n.type)?"probably":flvExtRE.test(n.src)||flvProtoRE.test(n.src)?"maybe":""},handleSource:function(n,t,e){return t.flvProvider&&t.flvProvider.dispose(),t.flvProvider=new Html5FlvJS(n,t,e),t.flvProvider},canPlayType:function(n){if(flvTypeRE.test(n))return"probably"}};TCPlayer.mountFlvProvider=mountFlvProvider,mountFlvProvider();var guid$1=function(n){var t=localStorage.getItem(n);return t||(t=guid(),localStorage.setItem(n,t)),t};guid(),guid$1("dev_uuid"),guid$1("dev_uuid"),getTimeStamp();var reportLog=function(n,t){return!1},defaultConfig$2={connectRetryCount:2,connectTimeout:5,receiveVideo:!0,receiveAudio:!0,showLog:!1},WebRTCProvider=(function(){function n(t,e,r){var s=this;classCallCheck(this,n),this.tech=e,this.player=this.tech.player();var a=function(){if(!s.player)return!1;s.playerMetrics=s.player.PlayerMetrics(),s.report=s.player.options_.reportable;var u=window.TXLivePlayer;s.TXLivePlayer=u,s.eventStack=[];var l=videojs.mergeOptions(defaultConfig$2,r.webrtcConfig);r.xp2pConfig&&r.xp2pConfig.format==="webrtc"&&r.xp2pConfig.useXP2P&&Object.assign(l,{p2pEnable:r.xp2pConfig.useXP2P,p2pConfig:{cloudAppid:r.xp2pConfig.tencentCloudAppId,xp2pAppid:r.xp2pConfig.xp2pAppId,appKey:r.xp2pConfig.xp2pAppKey,xp2pDomain:r.xp2pConfig.xp2pPackage}});var c=new u;s.webrtcConfig=l,c.setPlayerView(e.el()),c.setConfig(l),c.setPlayListener({onPlayEvent:videojs.bind(s,s.onPlayEvent),onPlayStats:videojs.bind(s,s.onPlayStats),onPlayReport:videojs.bind(s,s.onPlayReport),onPlaySEI:videojs.bind(s,s.onPlaySEI)}),c.startPlay(s.player.currentSrc()),s.player.one("playing",function(){s.eventStack.length!==0&&reportLog({str_ext_content:"eventStack on playing: "+JSON.stringify(s.eventStack),str_stream_url:s.player.cache_&&s.player.cache_.src})}),s.player.one("error",function(){s.eventStack.length!==0&&reportLog({str_ext_content:"eventStack on error: "+JSON.stringify(s.eventStack),str_stream_url:s.player.cache_&&s.player.cache_.src})}),s.webrtcPlayer=c,IS_IOS&&(s.player.cache_.volume||s.player.cache_.volume===0)&&c.setVolume(100*s.player.cache_.volume),s.player.trigger({type:"webrtcInstanceCreated",data:{webrtc:c}})};Promise.all([(function(){return window.TXLivePlayer?Promise.resolve():new Promise(function(u,l){loadScript(WEBRTC_PATH,function(c){c?l():u()})})})()]).then(function(){a()}).catch(function(u){s.player.error({code:31})})}return n.prototype.onPlayStats=function(t){this.tech.player().trigger({type:"webrtcstats",data:t})},n.prototype.onPlayEvent=function(t,e){t===-2003?this.eventStack.push({event:t,data:e}):this.eventStack.push({event:t,message:e&&e.message});var r=this.tech.player();if(r.trigger({type:"debug",data:{code:t,data:e}}),t===1005&&r.addClass("vjs-waiting"),t===1007&&(this.traceId="webrtc_user="+e.iceInfo),IS_IOS&&t===1101&&r.trigger("audiorunning"),IS_IOS&&t===1102&&r.trigger("audiosuspended"),t<-2e3){if(t===-2003&&e&&e.videoActive&&(r.trigger("blocked"),r.trigger({type:"webrtcevent",data:{code:2005}})),t===-2003||t===-2006)return!1;if(t===-2005||t===-2001||t===-2004){r.trigger({type:"debug",data:{message:"debug === webrtc 状态码 "+t+",进入降级逻辑"}});var s=r.options_.webrtcConfig;if(!s||s.fallback!==!1)return this.switchPlaySource(t),!1}return r.error({code:t,source:e}),!1}r.trigger({type:"webrtcevent",data:{code:t,data:e}})},n.prototype.onPlayReport=function(t){if(this.report===!1||!this)return!1;if(t.fromTxliveplayer=!0,t.uint32_command===40101){var e=this.tech.player();e&&e.trigger({type:"debug",data:{code:"report",data:t}}),this.playerMetrics.report_40101(t)}t.uint32_command===40100&&this.playerMetrics.report_40100(t),t.uint32_command===40102&&this.playerMetrics.report_40102(t)},n.prototype.onPlaySEI=function(t){var e=this.tech.player();e&&e.trigger({type:"webrtcsei",data:t})},n.prototype.dispose=function(){this.webrtcPlayer&&(this.webrtcPlayer.setPlayListener({onPlayEvent:function(){},onPlayStats:function(){}}),this.webrtcPlayer.stopPlay(),this.webrtcPlayer.setPlayerView(videojs.dom.createEl("video"))),this.webrtcPlayer=null},n.prototype.setSource=function(t){var e=this;this.webrtcPlayer.startPlay(t.src),this.tech.player().one("webrtcevent",function(r){r.data.code===-1002&&e.tech.player().play()})},n.prototype.recovery=function(){var t=this,e=this.tech.player(),r=void 0;e.one("waiting",function(){r=setTimeout(function(){e.one("webrtcevent",function(s){if(s.data.code===1004){t.webrtcPlayer&&t.webrtcPlayer.startPlay(e.src()),e.play();var a=function u(l){l.data.code===1002&&(e.play(),e.off("webrtcevent",u))};e.on("webrtcevent",a)}}),t.webrtcPlayer&&t.webrtcPlayer.stopPlay()},2e3)}),e.one("playing",function(){r&&clearTimeout(r)})},n.prototype.switchPlaySource=function(t){var e=this.tech.player(),r=void 0,s=this.tech.currentSource_.src;r=this.webrtcConfig&&this.webrtcConfig.fallbackUrl?[{src:this.webrtcConfig.fallbackUrl}]:[{src:(this.convertProtocol(s)||[])[0]}],e.trigger({type:"webrtcfallback",data:{target:r[0].src,code:t,traceId:this.traceId}}),e.options_.autoplay&&(e.bigPlayButton&&e.bigPlayButton.hide(),e.posterImage&&e.posterImage.hide());var a=[];e.options_.hlsConfig&&e.options_.hlsConfig.skipHlsJs?r.forEach(function(c){c.src?a.push({src:c.src,skipHlsJs:!0}):a.push({src:c,skipHlsJs:!0})}):a=[].concat(r),reportLog({str_ext_content:"webrtc fallback: "+JSON.stringify(a),str_stream_url:e.cache_&&e.cache_.src}),e.src(a);var u=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID?"loadeddata":"loadedmetadata",l=function c(){e.options_.autoplay&&e.play(),e.one("progress",function(){e.options_.autoplay&&e.play(),e.off(u,c)})};e.on(u,l)},n.prototype.convertProtocol=function(t){var e=[];if(t.indexOf(".sdp")>-1)t=t.replace(".sdp",".flv"),e.push(t.replace(".sdp",".m3u8"));else{var r=t.replace("webrtc://","https://").replace("?",".flv?");r.indexOf("?")===-1&&r.indexOf(".flv")===-1&&(r+=".flv");var s=t.replace("webrtc://","https://").replace("?",".m3u8?");s.indexOf("?")===-1&&s.indexOf(".m3u8")===-1&&(s+=".m3u8"),e.push(s)}return e},n})(),webrtcTypeRE=/^webrtc/i,webrtcExtRE=/\.sdp/i,webrtcProtoRE=/^(webrtc:\/\/)/i,sourceHandler={name:"webrtcSourceHandler",canHandleSource:function(n){return webrtcTypeRE.test(n.type)?"probably":webrtcExtRE.test(n.src)||webrtcProtoRE.test(n.src)?"maybe":""},handleSource:function(n,t,e){return t.webrtcProvider&&t.webrtcProvider.dispose(),t.webrtcProvider=new WebRTCProvider(n,t,e),t.webrtcProvider},canPlayType:function(n){if(webrtcTypeRE.test(n))return"probably"}};mountWebRTCProvider();var Html5DashJS$4=(function(){function n(t,e,r){var s=this;classCallCheck(this,n);var a=function(){var u=window_1.dashjs;if(s.dashjs=u,r=r||e.options_,s.player=videojs(r.playerId),s.player.dash=s.player.dash||{},s.tech_=e,s.el_=e.el(),s.elParent_=s.el_.parentNode,s.hasFiniteDuration_=!1,t.src){e.isReady_=!1;var l=t.src;s.keySystemOptions_=n.buildDashJSProtData(t.keySystemOptions||t.keySystems),shaka.polyfill.installAll(),shaka.Player.isBrowserSupported()&&(function(){var c=new shaka.Player(s.el_);r.dashConfig&&c.configure(r.dashConfig),s.mediaPlayer_=c,window_1.splayer=c,c.addEventListener("error",s.onErrorEvent),s.dashPlayer=c,s.keySystemOptions_&&s.keySystemOptions_["com.widevine.alpha"]?s.keySystemOptions_["com.widevine.alpha"].serverCertificateURL?new Promise(function(h,p){if(!s.keySystemOptions_["com.widevine.alpha"].serverCertificateURL)return void h(null);fetch(s.keySystemOptions_["com.widevine.alpha"].serverCertificateURL).then(function(d){if(!d.ok)throw new Error("HTTP error! status: "+d.status);return d.arrayBuffer()}).then(function(d){h(new Uint8Array(d))}).catch(function(d){p(new Error("获取Widevine服务器证书失败: "+d.message))})}).then(function(h){s.keySystemOptions_["com.widevine.alpha"].serverURL&&c.configure({drm:{servers:{"com.widevine.alpha":s.keySystemOptions_["com.widevine.alpha"].serverURL},advanced:{"com.widevine.alpha":{serverCertificate:h}}}}),c.load(l).then(function(){s.onMetaData()}).catch(s.onError)}):(c.configure({drm:{servers:{"com.widevine.alpha":s.keySystemOptions_["com.widevine.alpha"].serverURL}}}),c.load(l).then(function(){s.onMetaData()}).catch(s.onError)):c.load(l).then(function(){s.onMetaData()}).catch(s.onError)})(),s.player.trigger({type:"shakaInstanceCreated",data:{instance:s.mediaPlayer_}}),s.player.trigger({type:"instanceCreated",data:{instance:s.mediaPlayer_,type:"shaka"}}),s.tech_.triggerReady()}};window_1.dashjs?a():loadScript(SHAKA_PATH,function(){a()})}return n.prototype.onError=function(t){t.severity===shaka.util.Error.Severity.CRITICAL&&this.player.error({code:14,message:"specific error code: "+t.code})},n.prototype.onErrorEvent=function(t){this.onError(t.detail)},n.buildDashJSProtData=function(t){var e={};if(!t)return null;if(Array.isArray(t))for(var r=0;r<t.length;r++){var s=t[r],a=videojs.mergeOptions({},s.options);a.licenseUrl&&(a.serverURL=a.licenseUrl,delete a.licenseUrl),e[s.name]=a}else e=t;return e},n.prototype.dispose=function(){if(this.mediaPlayer_)try{this.mediaPlayer_.destroy()}catch{}this.player.dash&&delete this.player.dash},n.prototype.unload=function(){if(this.mediaPlayer_)try{this.mediaPlayer_.unload()}catch{}this.player.dash&&delete this.player.dash},n.prototype.duration=function(){return this.mediaPlayer_?this.mediaPlayer_.isLive()?1/0:this.mediaPlayer_.getDuration():0},n.hooks=function(t,e){return n.hooks_[t]=n.hooks_[t]||[],e&&(n.hooks_[t]=n.hooks_[t].concat(e)),n.hooks_[t]},n.hook=function(t,e){n.hooks(t,e)},n.removeHook=function(t,e){var r=n.hooks(t).indexOf(e);return r!==-1&&(n.hooks_[t]=n.hooks_[t].slice(),n.hooks_[t].splice(r,1),!0)},n.prototype.onMetaData=function(t){var e=this,r=this.mediaPlayer_;window_1._mediaPlayer=r;var s=r.getVariantTracks(),a=[];if(s.length>0){a.push({id:-1,label:"auto",selected:!0}),s.forEach(function(l,c){a.push({id:c,label:e.getLevelLabel(l),selected:!1})});var u={qualityData:{video:a},callbacks:{video:videojs.bind(this,this.switchQuality)}};this.tech_.setTimeout(function(){this.trigger({type:"masterplaylistchange",data:u})},1)}},n.prototype.switchQuality=function(t){var e=this,r=this.mediaPlayer_,s=r.getVariantTracks(),a=r.getVariantTracks().find(function(l){return l.active});if(a.id===t.id)return!1;if(t.id!==-1){this.tech_.trigger({type:"dashqualityswitching"});var u=setInterval(function(){var l=e.el_.videoHeight;a.height!==l&&(e.tech_.trigger({type:"dashqualityswitched"}),clearInterval(u))},1e3)}t.id===-1?r.configure({abr:{enabled:!0}}):t.id!=-1&&s[t.id]&&(r.configure({abr:{enabled:!1}}),r.selectVariantTrack(s[t.id],!1))},n.prototype.getLevelLabel=function(t){return t.height?t.height+"p":t.width?Math.round(9*t.width/16)+"p":t.bitrate?t.bitrate/1e3+"kbps":0},n.prototype.onEvent=function(t){switch(this.tech_.trigger({type:"dash_"+t.type,data:t}),t.type){case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_REQUESTED:this.tech_.trigger({type:"dashqualityswitching",data:t});break;case this.dashjs.MediaPlayer.events.QUALITY_CHANGE_RENDERED:this.tech_.trigger({type:"dashqualityswitched",data:t}),this.currentQuality[t.mediaType]=t.newQuality}},n})(),Html5DashJS$2=IS_TV?Html5DashJS$4:Html5DashJS;Html5DashJS$2.hooks_={};var canHandleKeySystems=function(n){n=JSON.parse(JSON.stringify(n)),Html5DashJS$2.updateSourceData&&(videojs.log.warn('updateSourceData has been deprecated. Please switch to using hook("updatesource", callback).'),n=Html5DashJS$2.updateSourceData(n)),Html5DashJS$2.hooks("updatesource").forEach(function(e){n=e(n)});var t=document_1.createElement("video");return!(n.keySystemOptions&&!window_1.navigator.requestMediaKeySystemAccess&&!t.msSetMediaKeys)};videojs.DashSourceHandler=function(){return{name:"dashSourceHandler",canHandleSource:function(n){var t=/\.mpd/i;return canHandleKeySystems(n)?videojs.DashSourceHandler.canPlayType(n.type)?"probably":t.test(n.src)?"maybe":"":""},handleSource:function(n,t,e){return t.dashProvider&&t.dashProvider.dispose(),t.dashProvider=new Html5DashJS$2(n,t,e),t.dashProvider},canPlayType:function(n){return videojs.DashSourceHandler.canPlayType(n)}}},videojs.DashSourceHandler.canPlayType=function(n){return/^application\/dash\+xml/i.test(n)?"probably":""},TCPlayer.mountDashProvider=mountDashProvider,mountDashProvider(),videojs.Html5DashJS=Html5DashJS$2;for(var Tech$2=videojs.getComponent("Tech"),Dom$1=videojs.dom,Url$1=videojs.url,createTimeRange=videojs.createTimeRange,mergeOptions$1=videojs.mergeOptions,navigator$2=window_1&&window_1.navigator||{},Flash=(function(n){function t(e,r,s){classCallCheck(this,t);var a=possibleConstructorReturn(this,n.call(this,e,r,s));return r.source&&a.ready(function(){this.setSource(r.source)},!0),r.startTime&&a.ready(function(){this.load(),this.play(),this.currentTime(r.startTime)},!0),window_1.videojs=window_1.videojs||{},window_1.videojs.Flash=window_1.videojs.Flash||{},window_1.videojs.Flash.onReady=t.onReady,window_1.videojs.Flash.onEvent=t.onEvent,window_1.videojs.Flash.onError=t.onError,a.on("seeked",function(){this.lastSeekTarget_=void 0}),a}return inherits(t,n),t.prototype.createEl=function(){var e=this.options_;e.swf||(e.swf=unifyProtocol("//imgcache.qq.com/open/qcloud/video/tcplayer/player.swf"));var r=e.techId,s=mergeOptions$1({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:e.autoplay,preload:e.preload,loop:e.loop,muted:e.muted},e.flashVars),a=mergeOptions$1({wmode:"opaque",bgcolor:"#000000"},e.params),u=mergeOptions$1({id:r,name:r,class:"vjs-tech"},e.attributes);return this.el_=t.embed(e.swf,s,a,u),this.el_.tech=this,this.el_},t.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},t.prototype.pause=function(){this.el_.vjs_pause()},t.prototype.src=function(e){return e===void 0?this.currentSrc():this.setSrc(e)},t.prototype.setSrc=function(e){var r=this;e=Url$1.getAbsoluteURL(e),this.el_.vjs_src(e),this.autoplay()&&this.setTimeout(function(){return r.play()},0)},t.prototype.seeking=function(){return this.lastSeekTarget_!==void 0},t.prototype.setCurrentTime=function(e){var r=this.seekable();r.length&&(e=e>r.start(0)?e:r.start(0),e=e<r.end(r.length-1)?e:r.end(r.length-1),this.lastSeekTarget_=e,this.trigger("seeking"),this.el_.vjs_setProperty("currentTime",e),n.prototype.setCurrentTime.call(this))},t.prototype.currentTime=function(){return this.seeking()?this.lastSeekTarget_||0:this.el_.vjs_getProperty("currentTime")},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.vjs_getProperty("currentSrc")},t.prototype.duration=function(){if(this.readyState()===0)return NaN;var e=this.el_.vjs_getProperty("duration");return e>=0?e:1/0},t.prototype.load=function(){this.el_.vjs_load()},t.prototype.poster=function(){this.el_.vjs_getProperty("poster")},t.prototype.setPoster=function(){},t.prototype.seekable=function(){var e=this.duration();return e===0?createTimeRange():createTimeRange(0,e)},t.prototype.buffered=function(){var e=this.el_.vjs_getProperty("buffered");return e.length===0?createTimeRange():createTimeRange(e[0][0],e[0][1])},t.prototype.supportsFullScreen=function(){return!1},t.prototype.enterFullScreen=function(){return!1},t.prototype.getVideoPlaybackQuality=function(){var e=this.el_.vjs_getProperty("getVideoPlaybackQuality");return window_1.performance&&typeof window_1.performance.now=="function"?e.creationTime=window_1.performance.now():window_1.performance&&window_1.performance.timing&&typeof window_1.performance.timing.navigationStart=="number"&&(e.creationTime=window_1.Date.now()-window_1.performance.timing.navigationStart),e},t})(Tech$2),_readWrite=["rtmpConnection","rtmpStream","preload","defaultPlaybackRate","playbackRate","autoplay","loop","controls","volume","muted","defaultMuted"],_readOnly=["networkState","readyState","initialTime","startOffsetTime","paused","ended","videoWidth","videoHeight"],_api=Flash.prototype,i$2=0;i$2<_readWrite.length;i$2++)_createGetter(_readWrite[i$2]),_createSetter(_readWrite[i$2]);for(var _i$1=0;_i$1<_readOnly.length;_i$1++)_createGetter(_readOnly[_i$1]);Flash.isSupported=function(){return Flash.version()[0]>=10},Tech$2.withSourceHandlers(Flash),Flash.nativeSourceHandler={},Flash.nativeSourceHandler.canPlayType=function(n){return n in Flash.formats?"maybe":""},Flash.nativeSourceHandler.canHandleSource=function(n,t){var e=void 0;return e=n.type?n.type.replace(/;.*/,"").toLowerCase():(function(r){var s=Url$1.getFileExtension(r);return s?"video/"+s:""})(n.src),Flash.nativeSourceHandler.canPlayType(e)},Flash.nativeSourceHandler.handleSource=function(n,t,e){t.setSrc(n.src)},Flash.nativeSourceHandler.dispose=function(){},Flash.registerSourceHandler(Flash.nativeSourceHandler),Flash.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},Flash.onReady=function(n){var t=Dom$1.$("#"+n),e=t&&t.tech;e&&e.el()&&Flash.checkReady(e)},Flash.checkReady=function(n){n.el()&&(n.el().vjs_getProperty?n.triggerReady():this.setTimeout(function(){Flash.checkReady(n)},50))},Flash.onEvent=function(n,t){var e=Dom$1.$("#"+n).tech,r=Array.prototype.slice.call(arguments,2);e.setTimeout(function(){e.trigger(t,r)},1)},Flash.onError=function(n,t){var e=Dom$1.$("#"+n).tech;if(t==="srcnotfound")return e.error(4);e.error("FLASH: "+t)},Flash.version=function(){var n="0,0,0";try{n=new window_1.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch{try{navigator$2.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(navigator$2.plugins["Shockwave Flash 2.0"]||navigator$2.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch{}}return n.split(",")},Flash.embed=function(n,t,e,r){var s=Flash.getEmbedCode(n,t,e,r);return Dom$1.createEl("div",{innerHTML:s}).childNodes[0]},Flash.getEmbedCode=function(n,t,e,r){var s="",a="",u="";return t&&Object.getOwnPropertyNames(t).forEach(function(l){s+=l+"="+t[l]+"&"}),e=mergeOptions$1({movie:n,flashvars:s,allowScriptAccess:"always",allowNetworking:"all"},e),Object.getOwnPropertyNames(e).forEach(function(l){a+='<param name="'+l+'" value="'+e[l]+'" />'}),r=mergeOptions$1({data:n,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(l){u+=l+'="'+r[l]+'" '}),'<object type="application/x-shockwave-flash" '+u+">"+a+"</object>"},FlashRtmpDecorator(Flash),Tech$2.getTech("Flash")?(videojs.log.warn("Not using videojs-flash as it appears to already be registered"),videojs.log.warn("videojs-flash should only be used with video.js@6 and above")):videojs.registerTech("Flash",Flash);var FlashlsSourceHandler={},mpegurlRE$1=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;FlashlsSourceHandler.canPlayType=function(n){return mpegurlRE$1.test(n)?"maybe":""},FlashlsSourceHandler.canHandleSource=function(n,t){return FlashlsSourceHandler.canPlayType(n.type)==="maybe"},FlashlsSourceHandler.handleSource=function(n,t,e){t.setSrc(n.src)},FlashlsSourceHandler.dispose=function(){},videojs.getTech("Flash").registerSourceHandler(FlashlsSourceHandler,0),FlashlsSourceHandler.VERSION="__VERSION__";var Play="播放",Pause="暂停",LIVE="直播",Loaded="加载完毕",Progress="进度",Fullscreen="全屏",Rotate="旋转",CssFullscreen="页面全屏",Mute="静音",Unmute="取消静音",Subtitles="字幕",Captions="内嵌字幕",Chapters="节目段落",Descriptions="描述",Close="关闭",Replay="重播",Text="文字",White="白",Black="黑",Red="红",Green="绿",Blue="蓝",Yellow="黄",Magenta="紫红",Cyan="青",Background="背景",Window="视窗",Transparent="透明",Opaque="不透明",None="无",Raised="浮雕",Depressed="压低",Uniform="均匀",Dropshadow="下阴影",Casual="舒适",Script="手写体",Reset="重启",Done="完成",auto="自动",Mirror="镜像",CN={Play,Pause,LIVE,Loaded,Progress,Fullscreen,Rotate,CssFullscreen,Mute,Unmute,Subtitles,Captions,Chapters,Descriptions,Close,Replay,Text,White,Black,Red,Green,Blue,Yellow,Magenta,Cyan,Background,Window,Transparent,Opaque,None,Raised,Depressed,Uniform,Dropshadow,Casual,Script,Reset,Done,auto,Mirror,"Current Time":"当前时间","Duration Time":"时长","Remaining Time":"剩余时间","Stream Type":"媒体流类型","Non-Fullscreen":"退出全屏","Picture-in-Picture":"画中画","Exit Picture-in-Picture":"退出画中画","Playback Rate":"播放速度","subtitles off":"关闭字幕","captions off":"关闭内嵌字幕","Close Modal Dialog":"关闭弹窗","descriptions off":"关闭描述","Audio Track":"音轨","You aborted the media playback":"视频播放被终止","A network error caused the media download to fail part-way.":"网络错误导致视频下载中途失败。","The media could not be loaded, either because the server or network failed or because the format is not supported.":"视频因格式不支持或者服务器或网络的问题无法加载。","The media playback was aborted due to a corruption problem or because the media used features your browser did not support.":"由于视频文件损坏或是该视频使用了你的浏览器不支持的功能,播放终止。","No compatible source was found for this media.":"无法找到此视频兼容的源或者当前环境无法播放该视频。","The media is encrypted and we do not have the keys to decrypt it.":"视频已加密,无法解密。","Play Video":"播放视频","Modal Window":"弹窗","This is a modal window":"这是一个弹窗","This modal can be closed by pressing the Escape key or activating the close button.":"可以按ESC按键或启用关闭按钮来关闭此弹窗。",", opens captions settings dialog":", 开启标题设置弹窗",", opens subtitles settings dialog":", 开启字幕设置弹窗",", opens descriptions settings dialog":", 开启描述设置弹窗",", selected":", 选择","captions settings":"字幕设定","Audio Player":"音频播放器","Video Player":"视频播放器","Progress Bar":"进度小节","Volume Level":"音量","subtitles settings":"字幕设定","descriptions settings":"描述设定","Semi-Transparent":"半透明","Font Size":"字体尺寸","Text Edge Style":"字体边缘样式","Font Family":"字体库","Proportional Sans-Serif":"比例无细体","Monospace Sans-Serif":"单间隔无细体","Proportional Serif":"比例细体","Monospace Serif":"单间隔细体","Small Caps":"小型大写字体","restore all settings to the default values":"恢复全部设定至预设值","Caption Settings Dialog":"字幕设定视窗","Beginning of dialog window. Escape will cancel and close the window.":"开始对话视窗。离开会取消及关闭视窗","End of dialog window.":"结束对话视窗","Request timed out.":"请求超时,请稍后再试。","Could not download the video.":"无法加载视频,请检查网络。","Server is not respond.":"服务器请求失败,请稍后再试。","Server respond error data.":"服务器返回数据有误,请稍后再试。","Last time play at ":"上次看到 ","Resume play":"恢复播放","Powered by Tencent Cloud.":"腾讯云提供技术支持","Rise an internal exception when playing HLS.":"播放 HLS 时出现内部异常。","Authentication failed.":"防盗链参数鉴权失败。","Server failed.":"媒体服务器错误。","Get file error.":"媒体服务器获取文件错误。","The media file does not exist. Please check if the fileID is correct.":"媒体文件不存在,请检查 fileID 是否正确。","No video transcoding information found.":"没有找到视频转码信息。","Current browser not support DRM.":"浏览器不支持当前 DRM 方案。","The trial duration is illegal. The trial duration must be within the video duration.":"试看时长不合法,试看时长要在视频时长范围内。","Param pcfg is not unique.":"pcfg 不唯一。","The license has expired. Please check whether the expiration time setting is reasonable.":"license 过期,请检查过期时间设置是否合理。","Did not find an adaptive stream that can be played.":"没有找到可以播放的自适应码流,<a href='https://cloud.tencent.com/document/product/266/34071' style='color: white;' target='_blank'>查看文档</a>。","Failed to load hls.js file":"hls.js 文件加载失败","Invalid request format, please check the request format.":"请求格式不合法,请检查请求格式。","AppID is not exist, Please check if the AppID is correct.":"AppID 不存在,请检查 AppID 是否正确。","Without anti-leech information.":"没带防盗链检测。","qsign invalid.":"播放参数 qsign 校验失败","psign check failed.":"播放参数 psign 校验失败,<a href='https://cloud.tencent.com/document/product/266/45554' style='color: white' target='_blank'>查看文档</a>。","Other errors.":"其他错误。","Internal error.":"内部错误。","Response data verification failed.":"响应数据校验失败","Video statistic":"视频统计信息","Play Next":"下一个","Current browser not support play this stream, please select another one.":"无法找到此视频兼容的源或者当前环境无法播放该视频,请选择其他视频播放。","Server respond error data.(eg. stream not exist)":"媒体服务器获取数据异常,可能该视频不存在,请选择其他视频播放。","Video play failed, please refresh to start play again.":"视频播放器失败,请刷新并重新播放。","Connection to the server has failed and the number of connection retries has exceeded the set value.":"媒体服务器连接异常,并达到最大重试次数,请检查网络是否正常并刷新重试","Video decoding failure.":"视频解码失败,请选择其他视频播放。"},log=videojs.log;if(Function.prototype.bind&&(typeof console>"u"?"undefined":_typeof(console))=="object"&&_typeof(console.log)=="object")for(var logFns=["log","info","warn","error","assert","dir","clear","profile","profileEnd"],i=0;i<logFns.length;i++){var method=logFns[i];console[method]=Function.prototype.call.bind(console[method],console)}return videojs.addLanguage("zh-CN",CN),window_1.addEventListener("error",function(n){reportLog({str_err_info:"window global error: "+n.message})}),Object.keys(videojs).forEach(function(n){TCPlayer[n]=videojs[n]}),TCPlayer.checkWidevineSupport=Enc.checkWidevineSupport,TCPlayer})})(tcplayer_v5_3_4_min$1)),tcplayer_v5_3_4_min$1.exports}var tcplayer_v5_3_4_minExports=requireTcplayer_v5_3_4_min();const B=getDefaultExportFromCjs(tcplayer_v5_3_4_minExports);export{B};
|