leted",i.arg
i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg)
n="executing"
var u=d(e,t,i)
if("normal"===u.type){if(n=i.done?"completed":"suspendedYield",u.arg===h)continue
return{value:u.arg,done:i.done}}"throw"===u.type&&(n="completed",i.method="throw",i.arg=u.arg)}}}function S(e,t){var i=t.method,n=e.iterator[i]
if(void 0===n)return t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),h
var r=d(n,e.iterator,t.arg)
if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,h
var a=r.arg
return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]}
1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{}
t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function I(e){if(e){var t=e[s]
if(t)return t.call(e)
if("function"==typeof e.next)return e
if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t
return t.value=void 0,t.done=!0,t}
return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=m,r(_,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:f,configurable:!0}),f.displayName=l(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor
return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,l(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},e.awrap=function(e){return{__await:e}},b(T.prototype),l(T.prototype,o,(function(){return this})),e.AsyncIterator=T,e.async=function(t,i,n,r,a){void 0===a&&(a=Promise)
var s=new T(c(t,i,n,r),a)
return e.isGeneratorFunction(i)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},b(_),l(_,u,"Generator"),l(_,s,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),i=[]
for(var n in t)i.push(n)
return i.reverse(),function e(){for(;i.length;){var n=i.pop()
if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=I,w.prototype={constructor:w,reset:function(e){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(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0
var e=this.tryEntries[0].completion
if("throw"===e.type)throw e.arg
return this.rval},dispatchException:function(e){if(this.done)throw e
var t=this
function n(i,n){return s.type="throw",s.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion
if("root"===a.tryLoc)return n("end")
if(a.tryLoc<=this.prev){var o=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc")
if(o&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)
if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally")
if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n]
if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r
break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null)
var s=a?a.completion:{}
return s.type=e,s.arg=t,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg
return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t]
if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),C(i),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t]
if(i.tryLoc===e){var n=i.completion
if("throw"===n.type){var r=n.arg
C(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:I(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),h}},e}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function a(e,t,i,n,r,a,s){try{var o=e[a](s),u=o.value}catch(e){i(e)
return}o.done?t(u):Promise.resolve(u).then(n,r)}function s(e){return function(){var t=this,i=arguments
return new Promise((function(n,r){var s=e.apply(t,i)
function o(e){a(s,n,r,o,u,"next",e)}function u(e){a(s,n,r,o,u,"throw",e)}o(void 0)}))}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var i=0;i<t.length;i++){var n=t[i]
n.enumerable=n.enumerable||!1
n.configurable=!0
"value"in n&&(n.writable=!0)
Object.defineProperty(e,k(n.key),n)}}function l(e,t,i){t&&u(e.prototype,t)
i&&u(e,i)
Object.defineProperty(e,"prototype",{writable:!1})
return e}function c(e,t,i){(t=k(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i
return e}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}})
Object.defineProperty(e,"prototype",{writable:!1})
t&&p(e,t)}function h(e){h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)}
return h(e)}function p(e,t){p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){e.__proto__=t
return e}
return p(e,t)}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}function m(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t
if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined")
return f(e)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))
return!0}catch(e){return!1}}()
return function(){var i,n=h(e)
if(t){var r=h(this).constructor
i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments)
return m(this,i)}}function v(){v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t)
if(n){var r=Object.getOwnPropertyDescriptor(n,t)
return r.get?r.get.call(arguments.length<3?e:i):r.value}}
return v.apply(this,arguments)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]
if(null!=i){var n,r,a,s,o=[],u=!0,l=!1
try{if(a=(i=i.call(e)).next,0===t){if(Object(i)!==i)return
u=!1}else for(;!(u=(n=a.call(i)).done)&&(o.push(n.value),o.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(l)throw r}}return o}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e){return function(e){if(Array.isArray(e))return T(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return T(e,t)
var i=Object.prototype.toString.call(e).slice(8,-1)
"Object"===i&&e.constructor&&(i=e.constructor.name)
return"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?T(e,t):void 0}}function T(e,t){(null==t||t>e.length)&&(t=e.length)
for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i]
return n}function k(e){var t=function(e,t){if("object"!=typeof e||null===e)return e
var i=e[Symbol.toPrimitive]
if(void 0!==i){var n=i.call(e,t||"default")
if("object"!=typeof n)return n
throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string")
return"symbol"==typeof t?t:String(t)}var S="undefined"!=typeof window&&window&&"node"!==window.appEnvironment
S&&(window.VIDEOJS_NO_DYNAMIC_STYLE=!0)
var E="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{}
function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function w(e,t){return e(t={exports:{}},t.exports),t.exports}var I,P,x="undefined"!=typeof window?window:void 0!==E?E:"undefined"!=typeof self?self:{},A=(I=Object.freeze({__proto__:null,default:{}}))&&I.default||I,O=void 0!==E?E:"undefined"!=typeof window?window:{}
"undefined"!=typeof document?P=document:(P=O["__GLOBAL_DOCUMENT_CACHE@4"])||(P=O["__GLOBAL_DOCUMENT_CACHE@4"]=A)
var L=P,D=w((function(e){function t(){e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]
for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}
e.exports.default=e.exports,e.exports.__esModule=!0
return t.apply(this,arguments)}e.exports=t
e.exports.default=e.exports,e.exports.__esModule=!0})),R=C(D),M=w((function(e,t){function i(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode
t&&(e=t)}if("number"==typeof e)return s[e]
var i,a=String(e)
return(i=n[a.toLowerCase()])?i:(i=r[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}i.isEventKey=function(e,t){if(e&&"object"==typeof e){var i=e.which||e.keyCode||e.charCode
if(null==i)return!1
if("string"==typeof t){var a
if(a=n[t.toLowerCase()])return a===i
if(a=r[t.toLowerCase()])return a===i}else if("number"==typeof t)return t===i
return!1}}
var n=(t=e.exports=i).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91}

;/*!
   * Programatically add the following
   */
for(a=97;a<123;a++)n[String.fromCharCode(a)]=a-32
for(var a=48;a<58;a++)n[a-48]=a
for(a=1;a<13;a++)n["f"+a]=a+111
for(a=0;a<10;a++)n["numpad "+a]=a+96
var s=t.names=t.title={}
for(a in n)s[n[a]]=a
for(var o in r)n[o]=r[o]})),N=(M.code,M.codes,M.aliases,M.names,M.title,C(w((function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return e}
e.exports.default=e.exports,e.exports.__esModule=!0})))),U=w((function(e){function t(i,n){e.exports=t=Object.setPrototypeOf||function(e,t){e.__proto__=t
return e}
e.exports.default=e.exports,e.exports.__esModule=!0
return t(i,n)}e.exports=t
e.exports.default=e.exports,e.exports.__esModule=!0}))
C(U)
var B=C(w((function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype)
e.prototype.constructor=e
U(e,t)}
e.exports.default=e.exports,e.exports.__esModule=!0}))),F=function(e,t){var i,n=null
try{i=JSON.parse(e,t)}catch(e){n=e}return[n,i]}
var j=function(e){if(!e)return!1
var t=V.call(e)
return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},V=Object.prototype.toString
var H=function(e,t){void 0===t&&(t=!1)
return function(i,n,r){if(i)e(i)
else if(n.statusCode>=400&&n.statusCode<=599){var a=r
if(t)if(x.TextDecoder){var s=function(e){void 0===e&&(e="")
return e.toLowerCase().split(";").reduce((function(e,t){var i=t.split("="),n=i[0],r=i[1]
return"charset"===n.trim()?r.trim():e}),"utf-8")}(n.headers&&n.headers["content-type"])
try{a=new TextDecoder(s).decode(r)}catch(e){}}else a=String.fromCharCode.apply(null,new Uint8Array(r))
e({cause:a})}else e(null,r)}}
K.httpHandler=H

;/**
   * @license
   * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
   * Copyright (c) 2014 David Björklund
   * Available under the MIT license
   * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
   */var q=function(e){var t={}
if(!e)return t
e.trim().split("\n").forEach((function(e){var i=e.indexOf(":"),n=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim()
void 0===t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]}))
return t},W=K,G=K
K.XMLHttpRequest=x.XMLHttpRequest||function(){}
K.XDomainRequest="withCredentials"in new K.XMLHttpRequest?K.XMLHttpRequest:x.XDomainRequest
!function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],(function(e){K["delete"===e?"del":e]=function(t,i,n){(i=z(t,i,n)).method=e.toUpperCase()
return X(i)}}))
function z(e,t,i){var n=e
if(j(t)){i=t
"string"==typeof e&&(n={uri:e})}else n=D({},t,{uri:e})
n.callback=i
return n}function K(e,t,i){return X(t=z(e,t,i))}function X(e){if(void 0===e.callback)throw new Error("callback argument missing")
var t=!1,i=function(i,n,r){if(!t){t=!0
e.callback(i,n,r)}}
function n(){var e=void 0
e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML
var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName
if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u)
if(m)try{e=JSON.parse(e)}catch(e){}return e}function r(e){clearTimeout(l)
e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error")))
e.statusCode=0
return i(e,g)}function a(){if(!o){var t
clearTimeout(l)
t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status
var r=g,a=null
if(0!==t){r={body:n(),statusCode:t,method:d,headers:{},url:c,rawRequest:u}
u.getAllResponseHeaders&&(r.headers=q(u.getAllResponseHeaders()))}else a=new Error("Internal XMLHttpRequest Error")
return i(a,r,r.body)}}var s,o,u=e.xhr||null
u||(u=e.cors||e.useXDR?new K.XDomainRequest:new K.XMLHttpRequest)
var l,c=u.url=e.uri||e.url,d=u.method=e.method||"GET",h=e.body||e.data,p=u.headers=e.headers||{},f=!!e.sync,m=!1,g={body:void 0,headers:{},statusCode:0,method:d,url:c,rawRequest:u}
if("json"in e&&!1!==e.json){m=!0
p.accept||p.Accept||(p.Accept="application/json")
if("GET"!==d&&"HEAD"!==d){p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json")
h=JSON.stringify(!0===e.json?h:e.json)}}u.onreadystatechange=function(){4===u.readyState&&setTimeout(a,0)}
u.onload=a
u.onerror=r
u.onprogress=function(){}
u.onabort=function(){o=!0}
u.ontimeout=r
u.open(d,c,!f,e.username,e.password)
f||(u.withCredentials=!!e.withCredentials)
!f&&e.timeout>0&&(l=setTimeout((function(){if(!o){o=!0
u.abort("timeout")
var e=new Error("XMLHttpRequest timeout")
e.code="ETIMEDOUT"
r(e)}}),e.timeout))
if(u.setRequestHeader)for(s in p)p.hasOwnProperty(s)&&u.setRequestHeader(s,p[s])
else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1
return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object")
"responseType"in e&&(u.responseType=e.responseType)
"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u)
u.send(h||null)
return u}W.default=G
var Y=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.")
e.prototype=t
return new e}}()
function Q(e,t){this.name="ParsingError"
this.code=e.code
this.message=t||e.message}Q.prototype=Y(Error.prototype)
Q.prototype.constructor=Q
Q.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}}
function $(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/)
return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function J(){this.values=Y(null)}J.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t)
break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){if(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100){this.set(e,t)
return!0}return!1}}
function Z(e,t,i,n){var r=n?e.split(n):[e]
for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i)
if(2===s.length){t(s[0],s[1])}}}function ee(e,t,i){var n=e
function r(){var t=$(e)
if(null===t)throw new Q(Q.Errors.BadTimeStamp,"Malformed timestamp: "+n)
e=e.replace(/^[^\sa-zA-Z-]+/,"")
return t}function a(){e=e.replace(/^\s+/,"")}a()
t.startTime=r()
a()
if("--\x3e"!==e.substr(0,3))throw new Q(Q.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n)
e=e.substr(3)
a()
t.endTime=r()
a()
!function(e,t){var n=new J
Z(e,(function(e,t){switch(e){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===t){n.set(e,i[r].region)
break}break
case"vertical":n.alt(e,t,["rl","lr"])
break
case"line":var a=t.split(","),s=a[0]
n.integer(e,s)
n.percent(e,s)&&n.set("snapToLines",!1)
n.alt(e,s,["auto"])
2===a.length&&n.alt("lineAlign",a[1],["start","center","end"])
break
case"position":a=t.split(",")
n.percent(e,a[0])
2===a.length&&n.alt("positionAlign",a[1],["start","center","end"])
break
case"size":n.percent(e,t)
break
case"align":n.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/)
t.region=n.get("region",null)
t.vertical=n.get("vertical","")
try{t.line=n.get("line","auto")}catch(e){}t.lineAlign=n.get("lineAlign","start")
t.snapToLines=n.get("snapToLines",!0)
t.size=n.get("size",100)
try{t.align=n.get("align","center")}catch(e){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(e){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}var te=L.createElement&&L.createElement("textarea"),ie={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},ne={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},re={v:"title",lang:"lang"},ae={rt:"ruby"}
function se(e,t){function i(){if(!t)return null
var e=t.match(/^([^<]*)(<[^>]*>?)?/)
return function(e){t=t.substr(e.length)
return e}(e[1]?e[1]:e[2])}function n(e){te.innerHTML=e
e=te.textContent
te.textContent=""
return e}function r(e,t){return!ae[t.localName]||ae[t.localName]===e.localName}function a(t,i){var n=ie[t]
if(!n)return null
var r=e.document.createElement(n),a=re[t]
a&&i&&(r[a]=i.trim())
return r}for(var s,o=e.document.createElement("div"),u=o,l=[];null!==(s=i());)if("<"!==s[0])u.appendChild(e.document.createTextNode(n(s)))
else{if("/"===s[1]){if(l.length&&l[l.length-1]===s.substr(2).replace(">","")){l.pop()
u=u.parentNode}continue}var c,d=$(s.substr(1,s.length-2))
if(d){c=e.document.createProcessingInstruction("timestamp",d)
u.appendChild(c)
continue}var h=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/)
if(!h)continue
if(!(c=a(h[1],h[3])))continue
if(!r(u,c))continue
if(h[2]){var p=h[2].split(".")
p.forEach((function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e
if(ne.hasOwnProperty(i)){var n=t?"background-color":"color",r=ne[i]
c.style[n]=r}}))
c.className=p.join(" ")}l.push(h[1])
u.appendChild(c)
u=c}return o}var oe=[[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]]
function ue(e){for(var t=0;t<oe.length;t++){var i=oe[t]
if(e>=i[0]&&e<=i[1])return!0}return!1}function le(e){var t=[],i=""
if(!e||!e.childNodes)return"ltr"
function n(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function r(e){if(!e||!e.length)return null
var t=e.pop(),i=t.textContent||t.innerText
if(i){var a=i.match(/^.*(\n|\r)/)
if(a){e.length=0
return a[0]}return i}if("ruby"===t.tagName)return r(e)
if(t.childNodes){n(e,t)
return r(e)}}n(t,e)
for(;i=r(t);)for(var a=0;a<i.length;a++)if(ue(i.charCodeAt(a)))return"rtl"
return"ltr"}function ce(){}ce.prototype.applyStyles=function(e,t){t=t||this.div
for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i])}
ce.prototype.formatStyle=function(e,t){return 0===e?0:e+t}
function de(e,t,i){ce.call(this)
this.cue=t
this.cueDiv=se(e,t.text)
var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"}
this.applyStyles(n,this.cueDiv)
this.div=e.document.createElement("div")
n={direction:le(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"}
this.applyStyles(n)
this.div.appendChild(this.cueDiv)
var r=0
switch(t.positionAlign){case"start":r=t.position
break
case"center":r=t.position-t.size/2
break
case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")})
this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}de.prototype=Y(ce.prototype)
de.prototype.constructor=de
function he(e){var t,i,n,r
if(e.div){i=e.div.offsetHeight
n=e.div.offsetWidth
r=e.div.offsetTop
var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects()
e=e.div.getBoundingClientRect()
t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left
this.right=e.right
this.top=e.top||r
this.height=e.height||i
this.bottom=e.bottom||r+(e.height||i)
this.width=e.width||n
this.lineHeight=void 0!==t?t:e.lineHeight}he.prototype.move=function(e,t){t=void 0!==t?t:this.lineHeight
switch(e){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}}
he.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top}
he.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0
return!1}
he.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right}
he.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left
case"-x":return this.right>e.right
case"+y":return this.top<e.top
case"-y":return this.bottom>e.bottom}}
he.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)}
he.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}}
he.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0
return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}}
function pe(e,t,i,n){var r=new he(t),a=t.cue,s=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line
if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1
for(var t=e.track,i=t.textTrackList,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++
return-1*++n}(a),o=[]
if(a.snapToLines){var u
switch(a.vertical){case"":o=["+y","-y"]
u="height"
break
case"rl":o=["+x","-x"]
u="width"
break
case"lr":o=["-x","+x"]
u="width"}var l=r.lineHeight,c=l*Math.round(s),d=i[u]+l,h=o[0]
if(Math.abs(c)>d){c=c<0?-1:1
c*=Math.ceil(d/l)*l}if(s<0){c+=""===a.vertical?i.height:i.width
o=o.reverse()}r.move(h,c)}else{var p=r.lineHeight/i.height*100
switch(a.lineAlign){case"center":s-=p/2
break
case"end":s-=p}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")})
break
case"rl":t.applyStyles({left:t.formatStyle(s,"%")})
break
case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}o=["+y","-x","+x","-y"]
r=new he(t)}var f=function(e,t){for(var r,a=new he(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(i,t[o])||e.within(i)&&e.overlapsAny(n);)e.move(t[o])
if(e.within(i))return e
var u=e.intersectPercentage(i)
if(s>u){r=new he(e)
s=u}e=new he(a)}return r||a}(r,o)
t.move(f.toCSSCompatValues(i))}function fe(){}fe.StringDecoder=function(){return{decode:function(e){if(!e)return""
if("string"!=typeof e)throw new Error("Error - expected string data.")
return decodeURIComponent(encodeURIComponent(e))}}}
fe.convertCueToDOMTree=function(e,t){return e&&t?se(e,t):null}
fe.processCues=function(e,t,i){if(!e||!t||!i)return null
for(;i.firstChild;)i.removeChild(i.firstChild)
var n=e.document.createElement("div")
n.style.position="absolute"
n.style.left="0"
n.style.right="0"
n.style.top="0"
n.style.bottom="0"
n.style.margin="1.5%"
i.appendChild(n)
if(function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0
return!1}(t)){var r=[],a=he.getSimpleBoxPosition(n),s={font:Math.round(.05*a.height*100)/100+"px sans-serif"}
!function(){for(var i,o,u=0;u<t.length;u++){o=t[u]
i=new de(e,o,s)
n.appendChild(i.div)
pe(0,i,a,r)
o.displayState=i.div
r.push(he.getSimpleBoxPosition(i))}}()}else for(var o=0;o<t.length;o++)n.appendChild(t[o].displayState)}
fe.Parser=function(e,t,i){if(!i){i=t
t={}}t||(t={})
this.window=e
this.vttjs=t
this.state="INITIAL"
this.buffer=""
this.decoder=i||new TextDecoder("utf8")
this.regionList=[]}
fe.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof Q))throw e
this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this
e&&(t.buffer+=t.decoder.decode(e,{stream:!0}))
function i(){for(var e=t.buffer,i=0;i<e.length&&"\r"!==e[i]&&"\n"!==e[i];)++i
var n=e.substr(0,i)
"\r"===e[i]&&++i
"\n"===e[i]&&++i
t.buffer=e.substr(i)
return n}function n(e){e.match(/X-TIMESTAMP-MAP/)?Z(e,(function(e,i){if("X-TIMESTAMP-MAP"===e)!function(e){var i=new J
Z(e,(function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t)
break
case"LOCA":i.set(e+"L",$(t))}}),/[^\d]:/,/,/)
t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}(i)}),/=/):Z(e,(function(e,i){if("Region"===e)!function(e){var i=new J
Z(e,(function(e,t){switch(e){case"id":i.set(e,t)
break
case"width":i.percent(e,t)
break
case"lines":i.integer(e,t)
break
case"regionanchor":case"viewportanchor":var n=t.split(",")
if(2!==n.length)break
var r=new J
r.percent("x",n[0])
r.percent("y",n[1])
if(!r.has("x")||!r.has("y"))break
i.set(e+"X",r.get("x"))
i.set(e+"Y",r.get("y"))
break
case"scroll":i.alt(e,t,["up"])}}),/=/,/\s/)
if(i.has("id")){var n=new(t.vttjs.VTTRegion||t.window.VTTRegion)
n.width=i.get("width",100)
n.lines=i.get("lines",3)
n.regionAnchorX=i.get("regionanchorX",0)
n.regionAnchorY=i.get("regionanchorY",100)
n.viewportAnchorX=i.get("viewportanchorX",0)
n.viewportAnchorY=i.get("viewportanchorY",100)
n.scroll=i.get("scroll","")
t.onregion&&t.onregion(n)
t.regionList.push({id:i.get("id"),region:n})}}(i)}),/:/)}try{var r
if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this
var a=(r=i()).match(/^WEBVTT([ \t].*)?$/)
if(!a||!a[0])throw new Q(Q.Errors.BadSignature)
t.state="HEADER"}for(var s=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this
s?s=!1:r=i()
switch(t.state){case"HEADER":/:/.test(r)?n(r):r||(t.state="ID")
continue
case"NOTE":r||(t.state="ID")
continue
case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE"
break}if(!r)continue
t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"")
try{t.cue.align="center"}catch(e){t.cue.align="middle"}t.state="CUE"
if(-1===r.indexOf("--\x3e")){t.cue.id=r
continue}case"CUE":try{ee(r,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e)
t.cue=null
t.state="BADCUE"
continue}t.state="CUETEXT"
continue
case"CUETEXT":var o=-1!==r.indexOf("--\x3e")
if(!r||o&&(s=!0)){t.oncue&&t.oncue(t.cue)
t.cue=null
t.state="ID"
continue}t.cue.text&&(t.cue.text+="\n")
t.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n")
continue
case"BADCUE":r||(t.state="ID")
continue}}}catch(e){t.reportOrThrowError(e)
"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue)
t.cue=null
t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this
try{e.buffer+=e.decoder.decode()
if(e.cue||"HEADER"===e.state){e.buffer+="\n\n"
e.parse()}if("INITIAL"===e.state)throw new Q(Q.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}e.onflush&&e.onflush()
return this}}
var me=fe,ge={"":1,lr:1,rl:1},ve={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1}
function ye(e){return"string"==typeof e&&(!!ve[e.toLowerCase()]&&e.toLowerCase())}function _e(e,t,i){this.hasBeenReset=!1
var n="",r=!1,a=e,s=t,o=i,u=null,l="",c=!0,d="auto",h="start",p="auto",f="auto",m=100,g="center"
Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(e){r=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.")
a=e
this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.")
s=e
this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(e){o=""+e
this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e
this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(e){var t=function(e){return"string"==typeof e&&!!ge[e.toLowerCase()]&&e.toLowerCase()}(e)
if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.")
l=t
this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(e){c=!!e
this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.")
d=e
this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){var t=ye(e)
if(t){h=t
this.hasBeenReset=!0}else console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.")
p=e
this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=ye(e)
if(t){f=t
this.hasBeenReset=!0}else console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.")
m=e
this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=ye(e)
if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.")
g=t
this.hasBeenReset=!0}}})
this.displayState=void 0}_e.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)}
var be=_e,Te={"":!0,up:!0}
function ke(e){return"number"==typeof e&&e>=0&&e<=100}var Se=function(){var e=100,t=3,i=0,n=100,r=0,a=100,s=""
Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!ke(t))throw new Error("Width must be between 0 and 100.")
e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.")
t=e}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(e){if(!ke(e))throw new Error("RegionAnchorX must be between 0 and 100.")
n=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!ke(e))throw new Error("RegionAnchorY must be between 0 and 100.")
i=e}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!ke(e))throw new Error("ViewportAnchorY must be between 0 and 100.")
a=e}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!ke(e))throw new Error("ViewportAnchorX must be between 0 and 100.")
r=e}},scroll:{enumerable:!0,get:function(){return s},set:function(e){var t=function(e){return"string"==typeof e&&!!Te[e.toLowerCase()]&&e.toLowerCase()}(e)
!1===t?console.warn("Scroll: an invalid or illegal string was specified."):s=t}}})},Ee=w((function(e){var t=e.exports={WebVTT:me,VTTCue:be,VTTRegion:Se}
x.vttjs=t
x.WebVTT=t.WebVTT
var i=t.VTTCue,n=t.VTTRegion,r=x.VTTCue,a=x.VTTRegion
t.shim=function(){x.VTTCue=i
x.VTTRegion=n}
t.restore=function(){x.VTTCue=r
x.VTTRegion=a}
x.VTTCue||t.shim()})),Ce=(Ee.WebVTT,Ee.VTTCue,Ee.VTTRegion,w((function(e){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1
if(Reflect.construct.sham)return!1
if("function"==typeof Proxy)return!0
try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))
return!0}catch(e){return!1}}
e.exports.default=e.exports,e.exports.__esModule=!0})))
C(Ce)
var we=w((function(e){function t(i,n,r){if(Ce()){e.exports=t=Reflect.construct
e.exports.default=e.exports,e.exports.__esModule=!0}else{e.exports=t=function(e,t,i){var n=[null]
n.push.apply(n,t)
var r=new(Function.bind.apply(e,n))
i&&U(r,i.prototype)
return r}
e.exports.default=e.exports,e.exports.__esModule=!0}return t.apply(null,arguments)}e.exports=t
e.exports.default=e.exports,e.exports.__esModule=!0})),Ie=C(we),Pe=C(w((function(e){e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function")
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}})
t&&U(e,t)}
e.exports.default=e.exports,e.exports.__esModule=!0}))),xe=w((function(e,t){i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,n=/^([^\/?#]*)(.*)$/,r=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,i){i=i||{}
e=e.trim()
if(!(t=t.trim())){if(!i.alwaysNormalize)return e
var r=s.parseURL(e)
if(!r)throw new Error("Error trying to parse base URL.")
r.path=s.normalizePath(r.path)
return s.buildURLFromParts(r)}var a=s.parseURL(t)
if(!a)throw new Error("Error trying to parse relative URL.")
if(a.scheme){if(!i.alwaysNormalize)return t
a.path=s.normalizePath(a.path)
return s.buildURLFromParts(a)}var o=s.parseURL(e)
if(!o)throw new Error("Error trying to parse base URL.")
if(!o.netLoc&&o.path&&"/"!==o.path[0]){var u=n.exec(o.path)
o.netLoc=u[1]
o.path=u[2]}o.netLoc&&!o.path&&(o.path="/")
var l={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment}
if(!a.netLoc){l.netLoc=o.netLoc
if("/"!==a.path[0])if(a.path){var c=o.path,d=c.substring(0,c.lastIndexOf("/")+1)+a.path
l.path=s.normalizePath(d)}else{l.path=o.path
if(!a.params){l.params=o.params
a.query||(l.query=o.query)}}}null===l.path&&(l.path=i.alwaysNormalize?s.normalizePath(a.path):a.path)
return s.buildURLFromParts(l)},parseURL:function(e){var t=i.exec(e)
return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){e=e.split("").reverse().join("").replace(r,"")
for(;e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s
var i,n,r,a,s})),Ae="http://example.com",Oe=function(){function e(){this.listeners={}}var t=e.prototype
t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[])
this.listeners[e].push(t)}
t.off=function(e,t){if(!this.listeners[e])return!1
var i=this.listeners[e].indexOf(t)
this.listeners[e]=this.listeners[e].slice(0)
this.listeners[e].splice(i,1)
return i>-1}
t.trigger=function(e){var t=this.listeners[e]
if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1])
else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)}
t.dispose=function(){this.listeners={}}
t.pipe=function(e){this.on("data",(function(t){e.push(t)}))}
return e}()
function Le(e){for(var t,i=(t=e,x.atob?x.atob(t):Buffer.from(t,"base64").toString("binary")),n=new Uint8Array(i.length),r=0;r<i.length;r++)n[r]=i.charCodeAt(r)
return n}
/*! @name m3u8-parser @version 4.7.0 @license Apache-2.0 */var De=function(e){B(t,e)
function t(){var t;(t=e.call(this)||this).buffer=""
return t}t.prototype.push=function(e){var t
this.buffer+=e
t=this.buffer.indexOf("\n")
for(;t>-1;t=this.buffer.indexOf("\n")){this.trigger("data",this.buffer.substring(0,t))
this.buffer=this.buffer.substring(t+1)}}
return t}(Oe),Re=String.fromCharCode(9),Me=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),i={}
t[1]&&(i.length=parseInt(t[1],10))
t[2]&&(i.offset=parseInt(t[2],10))
return i},Ne=function(e){for(var t,i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)if(""!==i[r]){(t=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,"")
t[1]=t[1].replace(/^\s+|\s+$/g,"")
t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1")
n[t[0]]=t[1]}return n},Ue=function(e){B(t,e)
function t(){var t;(t=e.call(this)||this).customParsers=[]
t.tagMappers=[]
return t}var i=t.prototype
i.push=function(e){var t,i,n=this
if(0!==(e=e.trim()).length)if("#"===e[0]){this.tagMappers.reduce((function(t,i){var n=i(e)
return n===e?t:t.concat([n])}),[e]).forEach((function(e){for(var r=0;r<n.customParsers.length;r++)if(n.customParsers[r].call(n,e))return
if(0===e.indexOf("#EXT")){e=e.replace("\r","")
if(t=/^#EXTM3U/.exec(e))n.trigger("data",{type:"tag",tagType:"m3u"})
else if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e)){i={type:"tag",tagType:"inf"}
t[1]&&(i.duration=parseFloat(t[1]))
t[2]&&(i.title=t[2])
n.trigger("data",i)}else if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e)){i={type:"tag",tagType:"targetduration"}
t[1]&&(i.duration=parseInt(t[1],10))
n.trigger("data",i)}else if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e)){i={type:"tag",tagType:"version"}
t[1]&&(i.version=parseInt(t[1],10))
n.trigger("data",i)}else if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e)){i={type:"tag",tagType:"media-sequence"}
t[1]&&(i.number=parseInt(t[1],10))
n.trigger("data",i)}else if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e)){i={type:"tag",tagType:"discontinuity-sequence"}
t[1]&&(i.number=parseInt(t[1],10))
n.trigger("data",i)}else if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e)){i={type:"tag",tagType:"playlist-type"}
t[1]&&(i.playlistType=t[1])
n.trigger("data",i)}else if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e)){i=R(Me(t[1]),{type:"tag",tagType:"byterange"})
n.trigger("data",i)}else if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e)){i={type:"tag",tagType:"allow-cache"}
t[1]&&(i.allowed=!/NO/.test(t[1]))
n.trigger("data",i)}else if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){i={type:"tag",tagType:"map"}
if(t[1]){var a=Ne(t[1])
a.URI&&(i.uri=a.URI)
a.BYTERANGE&&(i.byterange=Me(a.BYTERANGE))}n.trigger("data",i)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){i={type:"tag",tagType:"stream-inf"}
if(t[1]){i.attributes=Ne(t[1])
if(i.attributes.RESOLUTION){var s=i.attributes.RESOLUTION.split("x"),o={}
s[0]&&(o.width=parseInt(s[0],10))
s[1]&&(o.height=parseInt(s[1],10))
i.attributes.RESOLUTION=o}i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10))
i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))}n.trigger("data",i)}else if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e)){i={type:"tag",tagType:"media"}
t[1]&&(i.attributes=Ne(t[1]))
n.trigger("data",i)}else if(t=/^#EXT-X-ENDLIST/.exec(e))n.trigger("data",{type:"tag",tagType:"endlist"})
else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))n.trigger("data",{type:"tag",tagType:"discontinuity"})
else if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e)){i={type:"tag",tagType:"program-date-time"}
if(t[1]){i.dateTimeString=t[1]
i.dateTimeObject=new Date(t[1])}n.trigger("data",i)}else if(t=/^#EXT-X-KEY:?(.*)$/.exec(e)){i={type:"tag",tagType:"key"}
if(t[1]){i.attributes=Ne(t[1])
if(i.attributes.IV){"0x"===i.attributes.IV.substring(0,2).toLowerCase()&&(i.attributes.IV=i.attributes.IV.substring(2))
i.attributes.IV=i.attributes.IV.match(/.{8}/g)
i.attributes.IV[0]=parseInt(i.attributes.IV[0],16)
i.attributes.IV[1]=parseInt(i.attributes.IV[1],16)
i.attributes.IV[2]=parseInt(i.attributes.IV[2],16)
i.attributes.IV[3]=parseInt(i.attributes.IV[3],16)
i.attributes.IV=new Uint32Array(i.attributes.IV)}}n.trigger("data",i)}else if(t=/^#EXT-X-START:?(.*)$/.exec(e)){i={type:"tag",tagType:"start"}
if(t[1]){i.attributes=Ne(t[1])
i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"])
i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)}n.trigger("data",i)}else if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e)){i={type:"tag",tagType:"cue-out-cont"}
t[1]?i.data=t[1]:i.data=""
n.trigger("data",i)}else if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e)){i={type:"tag",tagType:"cue-out"}
t[1]?i.data=t[1]:i.data=""
n.trigger("data",i)}else if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e)){i={type:"tag",tagType:"cue-in"}
t[1]?i.data=t[1]:i.data=""
n.trigger("data",i)}else if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1]){(i={type:"tag",tagType:"skip"}).attributes=Ne(t[1])
i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10))
i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(Re))
n.trigger("data",i)}else if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1]){(i={type:"tag",tagType:"part"}).attributes=Ne(t[1]);["DURATION"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}));["INDEPENDENT","GAP"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))}))
i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=Me(i.attributes.BYTERANGE))
n.trigger("data",i)}else if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1]){(i={type:"tag",tagType:"server-control"}).attributes=Ne(t[1]);["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}));["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))}))
n.trigger("data",i)}else if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1]){(i={type:"tag",tagType:"part-inf"}).attributes=Ne(t[1]);["PART-TARGET"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))}))
n.trigger("data",i)}else if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1]){(i={type:"tag",tagType:"preload-hint"}).attributes=Ne(t[1]);["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(i.attributes.hasOwnProperty(e)){i.attributes[e]=parseInt(i.attributes[e],10)
var t="BYTERANGE-LENGTH"===e?"length":"offset"
i.attributes.byterange=i.attributes.byterange||{}
i.attributes.byterange[t]=i.attributes[e]
delete i.attributes[e]}}))
n.trigger("data",i)}else if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1]){(i={type:"tag",tagType:"rendition-report"}).attributes=Ne(t[1]);["LAST-MSN","LAST-PART"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseInt(i.attributes[e],10))}))
n.trigger("data",i)}else n.trigger("data",{type:"tag",data:e.slice(4)})}else n.trigger("data",{type:"comment",text:e.slice(1)})}))}else this.trigger("data",{type:"uri",uri:e})}
i.addParser=function(e){var t=this,i=e.expression,n=e.customType,r=e.dataParser,a=e.segment
"function"!=typeof r&&(r=function(e){return e})
this.customParsers.push((function(e){if(i.exec(e)){t.trigger("data",{type:"custom",data:r(e),customType:n,segment:a})
return!0}}))}
i.addTagMapper=function(e){var t=e.expression,i=e.map
this.tagMappers.push((function(e){return t.test(e)?i(e):e}))}
return t}(Oe),Be=function(e){var t={}
Object.keys(e).forEach((function(i){t[(n=i,n.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()})))]=e[i]
var n}))
return t},Fe=function(e){var t=e.serverControl,i=e.targetDuration,n=e.partTargetDuration
if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",s="partHoldBack",o=i&&3*i,u=n&&2*n
if(i&&!t.hasOwnProperty(a)){t[a]=o
this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+o+")."})}if(o&&t[a]<o){this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+o+")"})
t[a]=o}if(n&&!t.hasOwnProperty(s)){t[s]=3*n
this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[s]+")."})}if(n&&t[s]<u){this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[s]+") to partTargetDuration * 2 ("+u+")."})
t[s]=u}}},je=function(e){B(t,e)
function t(){var t;(t=e.call(this)||this).lineStream=new De
t.parseStream=new Ue
t.lineStream.pipe(t.parseStream)
var i,n,r=N(t),a=[],s={},o=!1,u=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},c=0
t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]}
var d=0,h=0
t.on("end",(function(){if(!s.uri&&(s.parts||s.preloadHints)){!s.map&&i&&(s.map=i)
!s.key&&n&&(s.key=n)
s.timeline||"number"!=typeof c||(s.timeline=c)
t.manifest.preloadSegment=s}}))
t.parseStream.on("data",(function(e){var t,p;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed
if(!("allowed"in e)){this.trigger("info",{message:"defaulting allowCache to YES"})
this.manifest.allowCache=!0}},byterange:function(){var t={}
if("length"in e){s.byterange=t
t.length=e.length
"offset"in e||(e.offset=d)}if("offset"in e){s.byterange=t
t.offset=e.offset}d=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){if(!("mediaSequence"in this.manifest)){this.manifest.mediaSequence=0
this.trigger("info",{message:"defaulting media sequence to zero"})}if(!("discontinuitySequence"in this.manifest)){this.manifest.discontinuitySequence=0
this.trigger("info",{message:"defaulting discontinuity sequence to zero"})}e.duration>0&&(s.duration=e.duration)
if(0===e.duration){s.duration=.01
this.trigger("info",{message:"updating zero segment duration to a small value"})}this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI)if("com.apple.streamingkeydelivery"!==e.attributes.KEYFORMAT)if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"!==e.attributes.KEYFORMAT){e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"})
n={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI}
void 0!==e.attributes.IV&&(n.iv=e.attributes.IV)}else{if(-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)){this.trigger("warn",{message:"invalid key method provided for Widevine"})
return}"SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"})
if("data:text/plain;base64,"!==e.attributes.URI.substring(0,23)){this.trigger("warn",{message:"invalid key URI provided for Widevine"})
return}if(!e.attributes.KEYID||"0x"!==e.attributes.KEYID.substring(0,2)){this.trigger("warn",{message:"invalid key ID provided for Widevine"})
return}this.manifest.contentProtection=this.manifest.contentProtection||{}
this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Le(e.attributes.URI.split(",")[1])}}else{this.manifest.contentProtection=this.manifest.contentProtection||{}
this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes}}else this.trigger("warn",{message:"ignoring key declaration without URI"})
else n=null
else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){if(isFinite(e.number)){this.manifest.discontinuitySequence=e.number
c=e.number}else this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){i={}
e.uri&&(i.uri=e.uri)
e.byterange&&(i.byterange=e.byterange)
n&&(i.key=n)},"stream-inf":function(){this.manifest.playlists=a
this.manifest.mediaGroups=this.manifest.mediaGroups||l
if(e.attributes){s.attributes||(s.attributes={})
R(s.attributes,e.attributes)}else this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){this.manifest.mediaGroups=this.manifest.mediaGroups||l
if(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var i=this.manifest.mediaGroups[e.attributes.TYPE]
i[e.attributes["GROUP-ID"]]=i[e.attributes["GROUP-ID"]]||{}
t=i[e.attributes["GROUP-ID"]];(p={default:/yes/i.test(e.attributes.DEFAULT)}).default?p.autoselect=!0:p.autoselect=/yes/i.test(e.attributes.AUTOSELECT)
e.attributes.LANGUAGE&&(p.language=e.attributes.LANGUAGE)
e.attributes.URI&&(p.uri=e.attributes.URI)
e.attributes["INSTREAM-ID"]&&(p.instreamId=e.attributes["INSTREAM-ID"])
e.attributes.CHARACTERISTICS&&(p.characteristics=e.attributes.CHARACTERISTICS)
e.attributes.FORCED&&(p.forced=/yes/i.test(e.attributes.FORCED))
t[e.attributes.NAME]=p}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){c+=1
s.discontinuity=!0
this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){if(void 0===this.manifest.dateTimeString){this.manifest.dateTimeString=e.dateTimeString
this.manifest.dateTimeObject=e.dateTimeObject}s.dateTimeString=e.dateTimeString
s.dateTimeObject=e.dateTimeObject},targetduration:function(){if(!isFinite(e.duration)||e.duration<0)this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration})
else{this.manifest.targetDuration=e.duration
Fe.call(this,this.manifest)}},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){s.cueOut=e.data},"cue-out-cont":function(){s.cueOutCont=e.data},"cue-in":function(){s.cueIn=e.data},skip:function(){this.manifest.skip=Be(e.attributes)
this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this
o=!0
var i=this.manifest.segments.length,n=Be(e.attributes)
s.parts=s.parts||[]
s.parts.push(n)
if(n.byterange){n.byterange.hasOwnProperty("offset")||(n.byterange.offset=h)
h=n.byterange.offset+n.byterange.length}var r=s.parts.length-1
this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+i,e.attributes,["URI","DURATION"])
this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,i){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+i+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=Be(e.attributes)
if(!t.hasOwnProperty("canBlockReload")){t.canBlockReload=!1
this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})}Fe.call(this,this.manifest)
t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,i=Be(e.attributes),n=i.type&&"PART"===i.type
s.preloadHints=s.preloadHints||[]
s.preloadHints.push(i)
if(i.byterange&&!i.byterange.hasOwnProperty("offset")){i.byterange.offset=n?h:0
n&&(h=i.byterange.offset+i.byterange.length)}var r=s.preloadHints.length-1
this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"])
if(i.type)for(var a=0;a<s.preloadHints.length-1;a++){var o=s.preloadHints[a]
o.type&&(o.type===i.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+i.type+" as preload hint #"+a}))}},"rendition-report":function(){var t=Be(e.attributes)
this.manifest.renditionReports=this.manifest.renditionReports||[]
this.manifest.renditionReports.push(t)
var i=this.manifest.renditionReports.length-1,n=["LAST-MSN","URI"]
o&&n.push("LAST-PART")
this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+i,e.attributes,n)},"part-inf":function(){this.manifest.partInf=Be(e.attributes)
this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"])
this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget)
Fe.call(this,this.manifest)}}[e.tagType]||u).call(r)},uri:function(){s.uri=e.uri
a.push(s)
if(this.manifest.targetDuration&&!("duration"in s)){this.trigger("warn",{message:"defaulting segment duration to the target duration"})
s.duration=this.manifest.targetDuration}n&&(s.key=n)
s.timeline=c
i&&(s.map=i)
h=0
s={}},comment:function(){},custom:function(){if(e.segment){s.custom=s.custom||{}
s.custom[e.customType]=e.data}else{this.manifest.custom=this.manifest.custom||{}
this.manifest.custom[e.customType]=e.data}}})[e.type].call(r)}))
return t}var i=t.prototype
i.warnOnMissingAttributes_=function(e,t,i){var n=[]
i.forEach((function(e){t.hasOwnProperty(e)||n.push(e)}))
n.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+n.join(", ")})}
i.push=function(e){this.lineStream.push(e)}
i.end=function(){this.lineStream.push("\n")
this.trigger("end")}
i.addParser=function(e){this.parseStream.addParser(e)}
i.addTagMapper=function(e){this.parseStream.addTagMapper(e)}
return t}(Oe),Ve={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},He=["video","audio","text"],qe=["Video","Audio","Text"],We=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)})):e},Ge=function(e){void 0===e&&(e="")
var t=e.split(","),i=[]
t.forEach((function(e){e=e.trim()
var t
He.forEach((function(n){var r=Ve[n].exec(e.toLowerCase())
if(r&&!(r.length<=1)){t=n
var a=e.substring(0,r[1].length),s=e.replace(a,"")
i.push({type:a,details:s,mediaType:n})}}))
t||i.push({type:e,details:"",mediaType:"unknown"})}))
return i},ze=function(e){void 0===e&&(e="")
return Ve.audio.test(e.trim().toLowerCase())},Ke=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map((function(e){return We(e.trim())})),i="video"
1===t.length&&ze(t[0])?i="audio":1===t.length&&function(e){void 0===e&&(e="")
return Ve.text.test(e.trim().toLowerCase())}(t[0])&&(i="application")
var n="mp4"
t.every((function(e){return Ve.mp4.test(e)}))?n="mp4":t.every((function(e){return Ve.webm.test(e)}))?n="webm":t.every((function(e){return Ve.ogg.test(e)}))&&(n="ogg")
return i+"/"+n+';codecs="'+e+'"'}},Xe=function(e){void 0===e&&(e="")
return x.MediaSource&&x.MediaSource.isTypeSupported&&x.MediaSource.isTypeSupported(Ke(e))||!1},Ye=function(e){void 0===e&&(e="")
return e.toLowerCase().split(",").every((function(e){e=e.trim()
for(var t=0;t<qe.length;t++){if(Ve["muxer"+qe[t]].test(e))return!0}return!1}))},Qe="mp4a.40.2",$e=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Je=/^application\/dash\+xml/i,Ze=function(e){return $e.test(e)?"hls":Je.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},et="http://example.com",tt=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=x.location&&x.location.href||"")
var i="function"==typeof x.URL,n=/^\/\//.test(e),r=!x.location&&!/\/\//i.test(e)
i?e=new x.URL(e,x.location||et):/\/\//i.test(e)||(e=xe.buildAbsoluteURL(x.location&&x.location.href||"",e))
if(i){var a=new URL(t,e)
return r?a.href.slice(18):n?a.href.slice(a.protocol.length):a.href}return xe.buildAbsoluteURL(e,t)}
function it(e,t){void 0===t&&(t=Object)
return t&&"function"==typeof t.freeze?t.freeze(e):e}var nt=it({HTML:"text/html",isHTML:function(e){return e===nt.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),rt=it({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===rt.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),at={freeze:it,MIME_TYPE:nt,NAMESPACE:rt},st=at.NAMESPACE
function ot(e){return""!==e}function ut(e,t){e.hasOwnProperty(t)||(e[t]=!0)
return e}function lt(e){if(!e)return[]
var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(ot):[]}(e)
return Object.keys(t.reduce(ut,{}))}function ct(e,t){for(var i in e)t[i]=e[i]}function dt(e,t){var i=e.prototype
if(!(i instanceof t)){function n(){}n.prototype=t.prototype
ct(i,n=new n)
e.prototype=i=n}if(i.constructor!=e){"function"!=typeof e&&console.error("unknown Class:"+e)
i.constructor=e}}var ht={},pt=ht.ELEMENT_NODE=1,ft=ht.ATTRIBUTE_NODE=2,mt=ht.TEXT_NODE=3,gt=ht.CDATA_SECTION_NODE=4,vt=ht.ENTITY_REFERENCE_NODE=5,yt=ht.ENTITY_NODE=6,_t=ht.PROCESSING_INSTRUCTION_NODE=7,bt=ht.COMMENT_NODE=8,Tt=ht.DOCUMENT_NODE=9,kt=ht.DOCUMENT_TYPE_NODE=10,St=ht.DOCUMENT_FRAGMENT_NODE=11,Et=ht.NOTATION_NODE=12,Ct={},wt={},It=(Ct.INDEX_SIZE_ERR=(wt[1]="Index size error",1),Ct.DOMSTRING_SIZE_ERR=(wt[2]="DOMString size error",2),Ct.HIERARCHY_REQUEST_ERR=(wt[3]="Hierarchy request error",3)),Pt=(Ct.WRONG_DOCUMENT_ERR=(wt[4]="Wrong document",4),Ct.INVALID_CHARACTER_ERR=(wt[5]="Invalid character",5),Ct.NO_DATA_ALLOWED_ERR=(wt[6]="No data allowed",6),Ct.NO_MODIFICATION_ALLOWED_ERR=(wt[7]="No modification allowed",7),Ct.NOT_FOUND_ERR=(wt[8]="Not found",8)),xt=(Ct.NOT_SUPPORTED_ERR=(wt[9]="Not supported",9),Ct.INUSE_ATTRIBUTE_ERR=(wt[10]="Attribute in use",10))
Ct.INVALID_STATE_ERR=(wt[11]="Invalid state",11),Ct.SYNTAX_ERR=(wt[12]="Syntax error",12),Ct.INVALID_MODIFICATION_ERR=(wt[13]="Invalid modification",13),Ct.NAMESPACE_ERR=(wt[14]="Invalid namespace",14),Ct.INVALID_ACCESS_ERR=(wt[15]="Invalid access",15)
function At(e,t){if(t instanceof Error)var i=t
else{i=this
Error.call(this,wt[e])
this.message=wt[e]
Error.captureStackTrace&&Error.captureStackTrace(this,At)}i.code=e
t&&(this.message=this.message+": "+t)
return i}At.prototype=Error.prototype
ct(Ct,At)
function Ot(){}Ot.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var i=[],n=0;n<this.length;n++)li(this[n],i,e,t)
return i.join("")}}
function Lt(e,t){this._node=e
this._refresh=t
Dt(this)}function Dt(e){var t=e._node._inc||e._node.ownerDocument._inc
if(e._inc!=t){var i=e._refresh(e._node)
hi(e,"length",i.length)
ct(i,e)
e._inc=t}}Lt.prototype.item=function(e){Dt(this)
return this[e]}
dt(Lt,Ot)
function Rt(){}function Mt(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function Nt(e,t,i,n){n?t[Mt(t,n)]=i:t[t.length++]=i
if(e){i.ownerElement=e
var r=e.ownerDocument
if(r){n&&qt(r,e,n)
!function(e,t,i){e&&e._inc++
var n=i.namespaceURI
n===st.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}(r,e,i)}}}function Ut(e,t,i){var n=Mt(t,i)
if