!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t(require("global/window"),require("global/document")):"function"==typeofdefine&&define.amd?define(["global/window","global/document"],t):(e=e||self).videojs=t(e.window,e.document)}(this,function(T,d){"use strict";T=T&&Object.prototype.hasOwnProperty.call(T,"default")?T.default:T,d=d&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d;varh="7.10.2",l=[],e=function(o,u){returnfunction(e,t,i){varn=u.levels[t],r=newRegExp("^("+n+")$");if("log"!==e&&i.unshift(e.toUpperCase()+":"),i.unshift(o+":"),l){l.push([].concat(i));vara=l.length-1e3;l.splice(0,0<a?a:0)}if(T.console){vars=T.console[e];s||"debug"!==e||(s=T.console.info||T.console.log),s&&n&&r.test(e)&&s[Array.isArray(i)?"apply":"call"](T.console,i)}}};varp=functiont(i){functionn(){for(vare=arguments.length,t=newArray(e),i=0;i<e;i++)t[i]=arguments[i];r("log",a,t)}varr,a="info";returnr=e(i,n),n.createLogger=function(e){returnt(i+": "+e)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:a},n.level=function(e){if("string"==typeofe){if(!n.levels.hasOwnProperty(e))thrownewError('"'+e+'" in not a valid log level');a=e}returna},(n.history=function(){returnl?[].concat(l):[]}).filter=function(t){return(l||[]).filter(function(e){returnnewRegExp(".*"+t+".*").test(e[0])})},n.history.clear=function(){l&&(l.length=0)},n.history.disable=function(){null!==l&&(l.length=0,l=null)},n.history.enable=function(){null===l&&(l=[])},n.error=function(){for(vare=arguments.length,t=newArray(e),i=0;i<e;i++)t[i]=arguments[i];returnr("error",a,t)},n.warn=function(){for(vare=arguments.length,t=newArray(e),i=0;i<e;i++)t[i]=arguments[i];returnr("warn",a,t)},n.debug=function(){for(vare=arguments.length,t=newArray(e),i=0;i<e;i++)t[i]=arguments[i];returnr("debug",a,t)},n}("VIDEOJS"),f=p.createLogger;functiont(e){returne&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}functioni(e,t){returne(t={exports:{}},t.exports),t.exports}varm=i(function(e){functiont(){returne.exports=t=Object.assign||function(e){for(vart=1;t<arguments.length;t++){vari=arguments[t];for(varnini)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}returne},t.apply(this,arguments)}e.exports=t}),n=Object.prototype.toString,a=function(e){returns(e)?Object.keys(e):[]};functionr(t,i){a(t).forEach(function(e){returni(t[e],e)})}functiong(i){for(vare=arguments.length,t=newArray(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];returnObject.assign?m.apply(void0,[i].concat(t)):(t.forEach(function(e){e&&r(e,function(e,t){i[t]=e})}),i)}functions(e){return!!e&&"object"==typeofe}functiono(e){returns(e)&&"[object Object]"===n.call(e)&&e.constructor===Object}functionu(e,t){if(!e||!t)return"";if("function"!=typeofT.getComputedStyle)return"";vari=T.getComputedStyle(e);returni?i.getPropertyValue(t)||i[t]:""}functionc(e){return"string"==typeofe&&Boolean(e.trim())}functionv(e){if(0<=e.indexOf(" "))thrownewError("class has illegal whitespace characters")}functiony(){returnd===T.document}function_(e){returns(e)&&1===e.nodeType}functionb(){try{returnT.parent!==T.self}catch(e){return!0}}functionS(n){returnfunction(e,t){if(!c(e))returnd[n](null);c(t)&&(t=d.querySelector(t));vari=_(t)?t:d;returni[n]&&i[n](e)}}functionk(e,i,t,n){void0===e&&(e="div"),void0===i&&(i={}),void0===t&&(t={});varr=d.createElement(e);returnObject.getOwnPropertyNames(i).forEach(function(e){vart=i[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(p.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+t+"."),r.setAttribute(e,t)):"textContent"===e?C(r,t):r[e]!==t&&(r[e]=t)}),Object.getOwnPropertyNames(t).forEach(function(e){r.setAttribute(e,t[e])}),n&&H(r,n),r}functionC(e,t){return"undefined"==typeofe.textContent?e.innerText=t:e.textContent=t,e}functionE(e,t){t.firstChild?t.insert
/*! @name m3u8-parser @version 4.5.0 @license Apache-2.0 */t(wa);varIa=wa.simpleTypeFromSourceType,Aa=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,xa=newRegExp("[\\-\\.0-9"+Aa.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Pa=newRegExp("^"+Aa.source+xa.source+"*(?::"+Aa.source+xa.source+"*)?$"),La=0,Oa=1,Da=2,Ma=3,Ra=4,Na=5,Ua=6,Fa=7;functionBa(){}functionja(e,t){returnt.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}functionVa(e,t,i,n,r,a){for(vars,o=++t,u=La;;){varl=e.charAt(o);switch(l){case"=":if(u===Oa)s=e.slice(t,o),u=Ma;else{if(u!==Da)thrownewError("attribute equal must after attrName");u=Ma}break;case"'":case'"':if(u===Ma||u===Oa){if(u===Oa&&(a.warning('attribute value must after "="'),s=e.slice(t,o)),t=o+1,!(0<(o=e.indexOf(l,t))))thrownewError("attribute value no end '"+l+"' match");c=e.slice(t,o).replace(/&#?\w+;/g,r),i.add(s,c,t-1),u=Na}else{if(u!=Ra)thrownewError('attribute value must after "="');c=e.slice(t,o).replace(/&#?\w+;/g,r),i.add(s,c,t),a.warning('attribute "'+s+'" missed start quot('+l+")!!"),t=o+1,u=Na}break;case"/":switch(u){caseLa:i.setTagName(e.slice(t,o));caseNa:caseUa:caseFa:u=Fa,i.closed=!0;caseRa:caseOa:caseDa:break;default:thrownewError("attribute invalid close char('/')")}break;case"":returna.error("unexpected end of input"),u==La&&i.setTagName(e.slice(t,o)),o;case">":switch(u){caseLa:i.setTagName(e.slice(t,o));caseNa:caseUa:caseFa:break;caseRa:caseOa:"/"===(c=e.slice(t,o)).slice(-1)&&(i.closed=!0,c=c.slice(0,-1));caseDa:u===Da&&(c=s),u==Ra?(a.warning('attribute "'+c+'" missed quot(")!!'),i.add(s,c.replace(/&#?\w+;/g,r),t)):("http://www.w3.org/1999/xhtml"===n[""]&&c.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),i.add(c,c,t));break;caseMa:thrownewError("attribute value missed!!")}returno;case"":l=" ";default:if(l<=" ")switch(u){caseLa:i.setTagName(e.slice(t,o)),u=Ua;break;caseOa:s=e.slice(t,o),u=Da;break;caseRa:varc=e.slice(t,o).replace(/&#?\w+;/g,r);a.warning('attribute "'+c+'" missed quot(")!!'),i.add(s,c,t);caseNa:u=Ua}elseswitch(u){caseDa:i.tagName;"http://www.w3.org/1999/xhtml"===n[""]&&s.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+s+'" missed value!! "'+s+'" instead2!!'),i.add(s,s,t),t=o,u=Oa;break;caseNa:a.warning('attribute space is required"'+s+'"!!');caseUa:u=Oa,t=o;break;caseMa:u=Ra,t=o;break;caseFa:thrownewError("elements closed character '/' and '>' must be connected to")}}o++}}functionqa(e,t,i){for(varn=e.tagName,r=null,a=e.length;a--;){vars=e[a],o=s.qName,u=s.value;if(0<(h=o.indexOf(":")))varl=s.prefix=o.slice(0,h),c=o.slice(h+1),d="xmlns"===l&&c;elsel=null,d="xmlns"===(c=o)&&"";s.localName=c,!1!==d&&(null==r&&(r={},za(i,i={})),i[d]=r[d]=u,s.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(d,u))}for(a=e.length;a--;){(l=(s=e[a]).prefix)&&("xml"===l&&(s.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(s.uri=i[l||""]))}varh;c=0<(h=n.indexOf(":"))?(l=e.prefix=n.slice(0,h),e.localName=n.slice(h+1)):(l=null,e.localName=n);varp=e.uri=i[l||""];if(t.startElement(p,c,n,e),!e.closed)returne.currentNSMap=i,e.localNSMap=r,!0;if(t.endElement(p,c,n),r)for(linr)t.endPrefixMapping(l)}functionHa(e,t,i,n,r){if(/^(?:script|textarea)$/i.test(i)){vara=e.indexOf("</"+i+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(i)||(s=s.replace(/&#?\w+;/g,n)),r.characters(s,0,s.length),a}returnt+1}functionWa(e,t,i,n){varr=n[i];returnnull==r&&((r=e.lastIndexOf("</"+i+">"))<t&&(r=e.lastIndexOf("</"+i)),n[i]=r),r<t}functionza(e,t){for(variine)t[i]=e[i]}functionGa(e,t,i,n){switch(e.charAt(t+2)){case"-":return"-"!==e.charAt(t+3)?-1:t<(r=e.indexOf("--\x3e",t+4))?(i.comment(e,t+4,r-t-4),r+3):(n.error("Unclosed comment"),-1);default:if("CDATA["==e.substr(t+3,6)){varr=e.indexOf("]]>",t+9);returni.startCDATA(),i.characters(e,t+9,r-t-9),i.endCDATA(),r+3}vara=function(e,t){vari,n=[],r=/'[^']+'|"[^"]+"|[^