xlink-player
Version:
xlink-player is based on flv.js and video.js
1 lines • 2.6 MB
JavaScript
(function(root,factory){"object"===typeof exports&&"object"===typeof module?module.exports=factory(require("vue")):"function"===typeof define&&define.amd?define(["vue"],factory):"object"===typeof exports?exports["xlink-player"]=factory(require("vue")):root["xlink-player"]=factory(root["Vue"])})("undefined"!==typeof self?self:this,(function(__WEBPACK_EXTERNAL_MODULE__8bbf__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"===typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s="1c25")}({0:function(module,exports){},"01eb":function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){return protoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}var _aes=__webpack_require__("4fd5"),_aes2=_interopRequireDefault(_aes),_asyncStream=__webpack_require__("ca78"),_asyncStream2=_interopRequireDefault(_asyncStream),_pkcs7=__webpack_require__("ad65"),ntoh=function(word){return word<<24|(65280&word)<<8|(16711680&word)>>8|word>>>24},decrypt=function(encrypted,key,initVector){var encrypted32=new Int32Array(encrypted.buffer,encrypted.byteOffset,encrypted.byteLength>>2),decipher=new _aes2["default"](Array.prototype.slice.call(key)),decrypted=new Uint8Array(encrypted.byteLength),decrypted32=new Int32Array(decrypted.buffer),init0=void 0,init1=void 0,init2=void 0,init3=void 0,encrypted0=void 0,encrypted1=void 0,encrypted2=void 0,encrypted3=void 0,wordIx=void 0;for(init0=initVector[0],init1=initVector[1],init2=initVector[2],init3=initVector[3],wordIx=0;wordIx<encrypted32.length;wordIx+=4)encrypted0=ntoh(encrypted32[wordIx]),encrypted1=ntoh(encrypted32[wordIx+1]),encrypted2=ntoh(encrypted32[wordIx+2]),encrypted3=ntoh(encrypted32[wordIx+3]),decipher.decrypt(encrypted0,encrypted1,encrypted2,encrypted3,decrypted32,wordIx),decrypted32[wordIx]=ntoh(decrypted32[wordIx]^init0),decrypted32[wordIx+1]=ntoh(decrypted32[wordIx+1]^init1),decrypted32[wordIx+2]=ntoh(decrypted32[wordIx+2]^init2),decrypted32[wordIx+3]=ntoh(decrypted32[wordIx+3]^init3),init0=encrypted0,init1=encrypted1,init2=encrypted2,init3=encrypted3;return decrypted};exports.decrypt=decrypt;var Decrypter=function(){function Decrypter(encrypted,key,initVector,done){_classCallCheck(this,Decrypter);var step=Decrypter.STEP,encrypted32=new Int32Array(encrypted.buffer),decrypted=new Uint8Array(encrypted.byteLength),i=0;for(this.asyncStream_=new _asyncStream2["default"],this.asyncStream_.push(this.decryptChunk_(encrypted32.subarray(i,i+step),key,initVector,decrypted)),i=step;i<encrypted32.length;i+=step)initVector=new Uint32Array([ntoh(encrypted32[i-4]),ntoh(encrypted32[i-3]),ntoh(encrypted32[i-2]),ntoh(encrypted32[i-1])]),this.asyncStream_.push(this.decryptChunk_(encrypted32.subarray(i,i+step),key,initVector,decrypted));this.asyncStream_.push((function(){done(null,(0,_pkcs7.unpad)(decrypted))}))}return _createClass(Decrypter,[{key:"decryptChunk_",value:function(encrypted,key,initVector,decrypted){return function(){var bytes=decrypt(encrypted,key,initVector);decrypted.set(bytes,encrypted.byteOffset)}}}],[{key:"STEP",get:function(){return 32e3}}]),Decrypter}();exports.Decrypter=Decrypter,exports["default"]={Decrypter:Decrypter,decrypt:decrypt}},"02e1":function(module,exports,__webpack_require__){function _getPrototypeOf(o){return module.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(o)}__webpack_require__("e68e"),module.exports=_getPrototypeOf},"03bf":function(module){module.exports=JSON.parse('{"a":"5.4.2"}')},"0446":function(module,exports,__webpack_require__){var classof=__webpack_require__("da06"),Iterators=__webpack_require__("5bb7"),wellKnownSymbol=__webpack_require__("7d53"),ITERATOR=wellKnownSymbol("iterator");module.exports=function(it){if(void 0!=it)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},"07d9":function(module,exports,__webpack_require__){exports.nextTick=function(fn){var args=Array.prototype.slice.call(arguments);args.shift(),setTimeout((function(){fn.apply(null,args)}),0)},exports.platform=exports.arch=exports.execPath=exports.title="browser",exports.pid=1,exports.browser=!0,exports.env={},exports.argv=[],exports.binding=function(name){throw new Error("No such module. (Possibly not yet loaded)")},function(){var path,cwd="/";exports.cwd=function(){return cwd},exports.chdir=function(dir){path||(path=__webpack_require__("a0d5")),cwd=path.resolve(dir,cwd)}}(),exports.exit=exports.kill=exports.umask=exports.dlopen=exports.uptime=exports.memoryUsage=exports.uvCounters=function(){},exports.features={}},"083f":function(module,exports,__webpack_require__){var isObject=__webpack_require__("7526");module.exports=function(input,PREFERRED_STRING){if(!isObject(input))return input;var fn,val;if(PREFERRED_STRING&&"function"==typeof(fn=input.toString)&&!isObject(val=fn.call(input)))return val;if("function"==typeof(fn=input.valueOf)&&!isObject(val=fn.call(input)))return val;if(!PREFERRED_STRING&&"function"==typeof(fn=input.toString)&&!isObject(val=fn.call(input)))return val;throw TypeError("Can't convert object to primitive value")}},"0a1e":function(module,exports,__webpack_require__){"use strict";var getBuiltIn=__webpack_require__("5428"),definePropertyModule=__webpack_require__("abdf"),wellKnownSymbol=__webpack_require__("7d53"),DESCRIPTORS=__webpack_require__("d4cb"),SPECIES=wellKnownSymbol("species");module.exports=function(CONSTRUCTOR_NAME){var Constructor=getBuiltIn(CONSTRUCTOR_NAME),defineProperty=definePropertyModule.f;DESCRIPTORS&&Constructor&&!Constructor[SPECIES]&&defineProperty(Constructor,SPECIES,{configurable:!0,get:function(){return this}})}},"0a6e":function(module,exports,__webpack_require__){"use strict";__webpack_require__("f3b8");var EOF,$=__webpack_require__("6b1d"),DESCRIPTORS=__webpack_require__("d4cb"),USE_NATIVE_URL=__webpack_require__("5e39"),global=__webpack_require__("f498"),defineProperties=__webpack_require__("b99b"),redefine=__webpack_require__("b8ba"),anInstance=__webpack_require__("4cce"),has=__webpack_require__("f1a7"),assign=__webpack_require__("174d"),arrayFrom=__webpack_require__("ccae"),codeAt=__webpack_require__("b7fb").codeAt,toASCII=__webpack_require__("2dd8"),setToStringTag=__webpack_require__("fa46"),URLSearchParamsModule=__webpack_require__("2abb"),InternalStateModule=__webpack_require__("cdcd"),NativeURL=global.URL,URLSearchParams=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,setInternalState=InternalStateModule.set,getInternalURLState=InternalStateModule.getterFor("URL"),floor=Math.floor,pow=Math.pow,INVALID_AUTHORITY="Invalid authority",INVALID_SCHEME="Invalid scheme",INVALID_HOST="Invalid host",INVALID_PORT="Invalid port",ALPHA=/[A-Za-z]/,ALPHANUMERIC=/[\d+-.A-Za-z]/,DIGIT=/\d/,HEX_START=/^(0x|0X)/,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\dA-Fa-f]+$/,FORBIDDEN_HOST_CODE_POINT=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,TAB_AND_NEW_LINE=/[\u0009\u000A\u000D]/g,parseHost=function(url,input){var result,codePoints,index;if("["==input.charAt(0)){if("]"!=input.charAt(input.length-1))return INVALID_HOST;if(result=parseIPv6(input.slice(1,-1)),!result)return INVALID_HOST;url.host=result}else if(isSpecial(url)){if(input=toASCII(input),FORBIDDEN_HOST_CODE_POINT.test(input))return INVALID_HOST;if(result=parseIPv4(input),null===result)return INVALID_HOST;url.host=result}else{if(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input))return INVALID_HOST;for(result="",codePoints=arrayFrom(input),index=0;index<codePoints.length;index++)result+=percentEncode(codePoints[index],C0ControlPercentEncodeSet);url.host=result}},parseIPv4=function(input){var partsLength,numbers,index,part,radix,number,ipv4,parts=input.split(".");if(parts.length&&""==parts[parts.length-1]&&parts.pop(),partsLength=parts.length,partsLength>4)return input;for(numbers=[],index=0;index<partsLength;index++){if(part=parts[index],""==part)return input;if(radix=10,part.length>1&&"0"==part.charAt(0)&&(radix=HEX_START.test(part)?16:8,part=part.slice(8==radix?1:2)),""===part)number=0;else{if(!(10==radix?DEC:8==radix?OCT:HEX).test(part))return input;number=parseInt(part,radix)}numbers.push(number)}for(index=0;index<partsLength;index++)if(number=numbers[index],index==partsLength-1){if(number>=pow(256,5-partsLength))return null}else if(number>255)return null;for(ipv4=numbers.pop(),index=0;index<numbers.length;index++)ipv4+=numbers[index]*pow(256,3-index);return ipv4},parseIPv6=function(input){var value,length,numbersSeen,ipv4Piece,number,swaps,swap,address=[0,0,0,0,0,0,0,0],pieceIndex=0,compress=null,pointer=0,char=function(){return input.charAt(pointer)};if(":"==char()){if(":"!=input.charAt(1))return;pointer+=2,pieceIndex++,compress=pieceIndex}while(char()){if(8==pieceIndex)return;if(":"!=char()){value=length=0;while(length<4&&HEX.test(char()))value=16*value+parseInt(char(),16),pointer++,length++;if("."==char()){if(0==length)return;if(pointer-=length,pieceIndex>6)return;numbersSeen=0;while(char()){if(ipv4Piece=null,numbersSeen>0){if(!("."==char()&&numbersSeen<4))return;pointer++}if(!DIGIT.test(char()))return;while(DIGIT.test(char())){if(number=parseInt(char(),10),null===ipv4Piece)ipv4Piece=number;else{if(0==ipv4Piece)return;ipv4Piece=10*ipv4Piece+number}if(ipv4Piece>255)return;pointer++}address[pieceIndex]=256*address[pieceIndex]+ipv4Piece,numbersSeen++,2!=numbersSeen&&4!=numbersSeen||pieceIndex++}if(4!=numbersSeen)return;break}if(":"==char()){if(pointer++,!char())return}else if(char())return;address[pieceIndex++]=value}else{if(null!==compress)return;pointer++,pieceIndex++,compress=pieceIndex}}if(null!==compress){swaps=pieceIndex-compress,pieceIndex=7;while(0!=pieceIndex&&swaps>0)swap=address[pieceIndex],address[pieceIndex--]=address[compress+swaps-1],address[compress+--swaps]=swap}else if(8!=pieceIndex)return;return address},findLongestZeroSequence=function(ipv6){for(var maxIndex=null,maxLength=1,currStart=null,currLength=0,index=0;index<8;index++)0!==ipv6[index]?(currLength>maxLength&&(maxIndex=currStart,maxLength=currLength),currStart=null,currLength=0):(null===currStart&&(currStart=index),++currLength);return currLength>maxLength&&(maxIndex=currStart,maxLength=currLength),maxIndex},serializeHost=function(host){var result,index,compress,ignore0;if("number"==typeof host){for(result=[],index=0;index<4;index++)result.unshift(host%256),host=floor(host/256);return result.join(".")}if("object"==typeof host){for(result="",compress=findLongestZeroSequence(host),index=0;index<8;index++)ignore0&&0===host[index]||(ignore0&&(ignore0=!1),compress===index?(result+=index?":":"::",ignore0=!0):(result+=host[index].toString(16),index<7&&(result+=":")));return"["+result+"]"}return host},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign({},C0ControlPercentEncodeSet,{" ":1,'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(char,set){var code=codeAt(char,0);return code>32&&code<127&&!has(set,char)?char:encodeURIComponent(char)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(url){return has(specialSchemes,url.scheme)},includesCredentials=function(url){return""!=url.username||""!=url.password},cannotHaveUsernamePasswordPort=function(url){return!url.host||url.cannotBeABaseURL||"file"==url.scheme},isWindowsDriveLetter=function(string,normalized){var second;return 2==string.length&&ALPHA.test(string.charAt(0))&&(":"==(second=string.charAt(1))||!normalized&&"|"==second)},startsWithWindowsDriveLetter=function(string){var third;return string.length>1&&isWindowsDriveLetter(string.slice(0,2))&&(2==string.length||"/"===(third=string.charAt(2))||"\\"===third||"?"===third||"#"===third)},shortenURLsPath=function(url){var path=url.path,pathSize=path.length;!pathSize||"file"==url.scheme&&1==pathSize&&isWindowsDriveLetter(path[0],!0)||path.pop()},isSingleDot=function(segment){return"."===segment||"%2e"===segment.toLowerCase()},isDoubleDot=function(segment){return segment=segment.toLowerCase(),".."===segment||"%2e."===segment||".%2e"===segment||"%2e%2e"===segment},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},parseURL=function(url,input,stateOverride,base){var codePoints,char,bufferCodePoints,failure,state=stateOverride||SCHEME_START,pointer=0,buffer="",seenAt=!1,seenBracket=!1,seenPasswordToken=!1;stateOverride||(url.scheme="",url.username="",url.password="",url.host=null,url.port=null,url.path=[],url.query=null,url.fragment=null,url.cannotBeABaseURL=!1,input=input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE,"")),input=input.replace(TAB_AND_NEW_LINE,""),codePoints=arrayFrom(input);while(pointer<=codePoints.length){switch(char=codePoints[pointer],state){case SCHEME_START:if(!char||!ALPHA.test(char)){if(stateOverride)return INVALID_SCHEME;state=NO_SCHEME;continue}buffer+=char.toLowerCase(),state=SCHEME;break;case SCHEME:if(char&&(ALPHANUMERIC.test(char)||"+"==char||"-"==char||"."==char))buffer+=char.toLowerCase();else{if(":"!=char){if(stateOverride)return INVALID_SCHEME;buffer="",state=NO_SCHEME,pointer=0;continue}if(stateOverride&&(isSpecial(url)!=has(specialSchemes,buffer)||"file"==buffer&&(includesCredentials(url)||null!==url.port)||"file"==url.scheme&&!url.host))return;if(url.scheme=buffer,stateOverride)return void(isSpecial(url)&&specialSchemes[url.scheme]==url.port&&(url.port=null));buffer="","file"==url.scheme?state=FILE:isSpecial(url)&&base&&base.scheme==url.scheme?state=SPECIAL_RELATIVE_OR_AUTHORITY:isSpecial(url)?state=SPECIAL_AUTHORITY_SLASHES:"/"==codePoints[pointer+1]?(state=PATH_OR_AUTHORITY,pointer++):(url.cannotBeABaseURL=!0,url.path.push(""),state=CANNOT_BE_A_BASE_URL_PATH)}break;case NO_SCHEME:if(!base||base.cannotBeABaseURL&&"#"!=char)return INVALID_SCHEME;if(base.cannotBeABaseURL&&"#"==char){url.scheme=base.scheme,url.path=base.path.slice(),url.query=base.query,url.fragment="",url.cannotBeABaseURL=!0,state=FRAGMENT;break}state="file"==base.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"!=char||"/"!=codePoints[pointer+1]){state=RELATIVE;continue}state=SPECIAL_AUTHORITY_IGNORE_SLASHES,pointer++;break;case PATH_OR_AUTHORITY:if("/"==char){state=AUTHORITY;break}state=PATH;continue;case RELATIVE:if(url.scheme=base.scheme,char==EOF)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=base.query;else if("/"==char||"\\"==char&&isSpecial(url))state=RELATIVE_SLASH;else if("?"==char)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query="",state=QUERY;else{if("#"!=char){url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.path.pop(),state=PATH;continue}url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT}break;case RELATIVE_SLASH:if(!isSpecial(url)||"/"!=char&&"\\"!=char){if("/"!=char){url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,state=PATH;continue}state=AUTHORITY}else state=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:if(state=SPECIAL_AUTHORITY_IGNORE_SLASHES,"/"!=char||"/"!=buffer.charAt(pointer+1))continue;pointer++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=char&&"\\"!=char){state=AUTHORITY;continue}break;case AUTHORITY:if("@"==char){seenAt&&(buffer="%40"+buffer),seenAt=!0,bufferCodePoints=arrayFrom(buffer);for(var i=0;i<bufferCodePoints.length;i++){var codePoint=bufferCodePoints[i];if(":"!=codePoint||seenPasswordToken){var encodedCodePoints=percentEncode(codePoint,userinfoPercentEncodeSet);seenPasswordToken?url.password+=encodedCodePoints:url.username+=encodedCodePoints}else seenPasswordToken=!0}buffer=""}else if(char==EOF||"/"==char||"?"==char||"#"==char||"\\"==char&&isSpecial(url)){if(seenAt&&""==buffer)return INVALID_AUTHORITY;pointer-=arrayFrom(buffer).length+1,buffer="",state=HOST}else buffer+=char;break;case HOST:case HOSTNAME:if(stateOverride&&"file"==url.scheme){state=FILE_HOST;continue}if(":"!=char||seenBracket){if(char==EOF||"/"==char||"?"==char||"#"==char||"\\"==char&&isSpecial(url)){if(isSpecial(url)&&""==buffer)return INVALID_HOST;if(stateOverride&&""==buffer&&(includesCredentials(url)||null!==url.port))return;if(failure=parseHost(url,buffer),failure)return failure;if(buffer="",state=PATH_START,stateOverride)return;continue}"["==char?seenBracket=!0:"]"==char&&(seenBracket=!1),buffer+=char}else{if(""==buffer)return INVALID_HOST;if(failure=parseHost(url,buffer),failure)return failure;if(buffer="",state=PORT,stateOverride==HOSTNAME)return}break;case PORT:if(!DIGIT.test(char)){if(char==EOF||"/"==char||"?"==char||"#"==char||"\\"==char&&isSpecial(url)||stateOverride){if(""!=buffer){var port=parseInt(buffer,10);if(port>65535)return INVALID_PORT;url.port=isSpecial(url)&&port===specialSchemes[url.scheme]?null:port,buffer=""}if(stateOverride)return;state=PATH_START;continue}return INVALID_PORT}buffer+=char;break;case FILE:if(url.scheme="file","/"==char||"\\"==char)state=FILE_SLASH;else{if(!base||"file"!=base.scheme){state=PATH;continue}if(char==EOF)url.host=base.host,url.path=base.path.slice(),url.query=base.query;else if("?"==char)url.host=base.host,url.path=base.path.slice(),url.query="",state=QUERY;else{if("#"!=char){startsWithWindowsDriveLetter(codePoints.slice(pointer).join(""))||(url.host=base.host,url.path=base.path.slice(),shortenURLsPath(url)),state=PATH;continue}url.host=base.host,url.path=base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT}}break;case FILE_SLASH:if("/"==char||"\\"==char){state=FILE_HOST;break}base&&"file"==base.scheme&&!startsWithWindowsDriveLetter(codePoints.slice(pointer).join(""))&&(isWindowsDriveLetter(base.path[0],!0)?url.path.push(base.path[0]):url.host=base.host),state=PATH;continue;case FILE_HOST:if(char==EOF||"/"==char||"\\"==char||"?"==char||"#"==char){if(!stateOverride&&isWindowsDriveLetter(buffer))state=PATH;else if(""==buffer){if(url.host="",stateOverride)return;state=PATH_START}else{if(failure=parseHost(url,buffer),failure)return failure;if("localhost"==url.host&&(url.host=""),stateOverride)return;buffer="",state=PATH_START}continue}buffer+=char;break;case PATH_START:if(isSpecial(url)){if(state=PATH,"/"!=char&&"\\"!=char)continue}else if(stateOverride||"?"!=char)if(stateOverride||"#"!=char){if(char!=EOF&&(state=PATH,"/"!=char))continue}else url.fragment="",state=FRAGMENT;else url.query="",state=QUERY;break;case PATH:if(char==EOF||"/"==char||"\\"==char&&isSpecial(url)||!stateOverride&&("?"==char||"#"==char)){if(isDoubleDot(buffer)?(shortenURLsPath(url),"/"==char||"\\"==char&&isSpecial(url)||url.path.push("")):isSingleDot(buffer)?"/"==char||"\\"==char&&isSpecial(url)||url.path.push(""):("file"==url.scheme&&!url.path.length&&isWindowsDriveLetter(buffer)&&(url.host&&(url.host=""),buffer=buffer.charAt(0)+":"),url.path.push(buffer)),buffer="","file"==url.scheme&&(char==EOF||"?"==char||"#"==char))while(url.path.length>1&&""===url.path[0])url.path.shift();"?"==char?(url.query="",state=QUERY):"#"==char&&(url.fragment="",state=FRAGMENT)}else buffer+=percentEncode(char,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==char?(url.query="",state=QUERY):"#"==char?(url.fragment="",state=FRAGMENT):char!=EOF&&(url.path[0]+=percentEncode(char,C0ControlPercentEncodeSet));break;case QUERY:stateOverride||"#"!=char?char!=EOF&&("'"==char&&isSpecial(url)?url.query+="%27":url.query+="#"==char?"%23":percentEncode(char,C0ControlPercentEncodeSet)):(url.fragment="",state=FRAGMENT);break;case FRAGMENT:char!=EOF&&(url.fragment+=percentEncode(char,fragmentPercentEncodeSet));break}pointer++}},URLConstructor=function(url){var baseState,failure,that=anInstance(this,URLConstructor,"URL"),base=arguments.length>1?arguments[1]:void 0,urlString=String(url),state=setInternalState(that,{type:"URL"});if(void 0!==base)if(base instanceof URLConstructor)baseState=getInternalURLState(base);else if(failure=parseURL(baseState={},String(base)),failure)throw TypeError(failure);if(failure=parseURL(state,urlString,null,baseState),failure)throw TypeError(failure);var searchParams=state.searchParams=new URLSearchParams,searchParamsState=getInternalSearchParamsState(searchParams);searchParamsState.updateSearchParams(state.query),searchParamsState.updateURL=function(){state.query=String(searchParams)||null},DESCRIPTORS||(that.href=serializeURL.call(that),that.origin=getOrigin.call(that),that.protocol=getProtocol.call(that),that.username=getUsername.call(that),that.password=getPassword.call(that),that.host=getHost.call(that),that.hostname=getHostname.call(that),that.port=getPort.call(that),that.pathname=getPathname.call(that),that.search=getSearch.call(that),that.searchParams=getSearchParams.call(that),that.hash=getHash.call(that))},URLPrototype=URLConstructor.prototype,serializeURL=function(){var url=getInternalURLState(this),scheme=url.scheme,username=url.username,password=url.password,host=url.host,port=url.port,path=url.path,query=url.query,fragment=url.fragment,output=scheme+":";return null!==host?(output+="//",includesCredentials(url)&&(output+=username+(password?":"+password:"")+"@"),output+=serializeHost(host),null!==port&&(output+=":"+port)):"file"==scheme&&(output+="//"),output+=url.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):"",null!==query&&(output+="?"+query),null!==fragment&&(output+="#"+fragment),output},getOrigin=function(){var url=getInternalURLState(this),scheme=url.scheme,port=url.port;if("blob"==scheme)try{return new URL(scheme.path[0]).origin}catch(error){return"null"}return"file"!=scheme&&isSpecial(url)?scheme+"://"+serializeHost(url.host)+(null!==port?":"+port:""):"null"},getProtocol=function(){return getInternalURLState(this).scheme+":"},getUsername=function(){return getInternalURLState(this).username},getPassword=function(){return getInternalURLState(this).password},getHost=function(){var url=getInternalURLState(this),host=url.host,port=url.port;return null===host?"":null===port?serializeHost(host):serializeHost(host)+":"+port},getHostname=function(){var host=getInternalURLState(this).host;return null===host?"":serializeHost(host)},getPort=function(){var port=getInternalURLState(this).port;return null===port?"":String(port)},getPathname=function(){var url=getInternalURLState(this),path=url.path;return url.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):""},getSearch=function(){var query=getInternalURLState(this).query;return query?"?"+query:""},getSearchParams=function(){return getInternalURLState(this).searchParams},getHash=function(){var fragment=getInternalURLState(this).fragment;return fragment?"#"+fragment:""},accessorDescriptor=function(getter,setter){return{get:getter,set:setter,configurable:!0,enumerable:!0}};if(DESCRIPTORS&&defineProperties(URLPrototype,{href:accessorDescriptor(serializeURL,(function(href){var url=getInternalURLState(this),urlString=String(href),failure=parseURL(url,urlString);if(failure)throw TypeError(failure);getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(protocol){var url=getInternalURLState(this);parseURL(url,String(protocol)+":",SCHEME_START)})),username:accessorDescriptor(getUsername,(function(username){var url=getInternalURLState(this),codePoints=arrayFrom(String(username));if(!cannotHaveUsernamePasswordPort(url)){url.username="";for(var i=0;i<codePoints.length;i++)url.username+=percentEncode(codePoints[i],userinfoPercentEncodeSet)}})),password:accessorDescriptor(getPassword,(function(password){var url=getInternalURLState(this),codePoints=arrayFrom(String(password));if(!cannotHaveUsernamePasswordPort(url)){url.password="";for(var i=0;i<codePoints.length;i++)url.password+=percentEncode(codePoints[i],userinfoPercentEncodeSet)}})),host:accessorDescriptor(getHost,(function(host){var url=getInternalURLState(this);url.cannotBeABaseURL||parseURL(url,String(host),HOST)})),hostname:accessorDescriptor(getHostname,(function(hostname){var url=getInternalURLState(this);url.cannotBeABaseURL||parseURL(url,String(hostname),HOSTNAME)})),port:accessorDescriptor(getPort,(function(port){var url=getInternalURLState(this);cannotHaveUsernamePasswordPort(url)||(port=String(port),""==port?url.port=null:parseURL(url,port,PORT))})),pathname:accessorDescriptor(getPathname,(function(pathname){var url=getInternalURLState(this);url.cannotBeABaseURL||(url.path=[],parseURL(url,pathname+"",PATH_START))})),search:accessorDescriptor(getSearch,(function(search){var url=getInternalURLState(this);search=String(search),""==search?url.query=null:("?"==search.charAt(0)&&(search=search.slice(1)),url.query="",parseURL(url,search,QUERY)),getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(hash){var url=getInternalURLState(this);hash=String(hash),""!=hash?("#"==hash.charAt(0)&&(hash=hash.slice(1)),url.fragment="",parseURL(url,hash,FRAGMENT)):url.fragment=null}))}),redefine(URLPrototype,"toJSON",(function(){return serializeURL.call(this)}),{enumerable:!0}),redefine(URLPrototype,"toString",(function(){return serializeURL.call(this)}),{enumerable:!0}),NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;nativeCreateObjectURL&&redefine(URLConstructor,"createObjectURL",(function(blob){return nativeCreateObjectURL.apply(NativeURL,arguments)})),nativeRevokeObjectURL&&redefine(URLConstructor,"revokeObjectURL",(function(url){return nativeRevokeObjectURL.apply(NativeURL,arguments)}))}setToStringTag(URLConstructor,"URL"),$({global:!0,forced:!USE_NATIVE_URL,sham:!DESCRIPTORS},{URL:URLConstructor})},"0b4e":function(module,exports,__webpack_require__){"use strict";var Stream=__webpack_require__("1ca2"),CoalesceStream=function(options){this.numberOfTracks=0,this.metadataStream=options.metadataStream,this.videoTags=[],this.audioTags=[],this.videoTrack=null,this.audioTrack=null,this.pendingCaptions=[],this.pendingMetadata=[],this.pendingTracks=0,this.processedTracks=0,CoalesceStream.prototype.init.call(this),this.push=function(output){return output.text?this.pendingCaptions.push(output):output.frames?this.pendingMetadata.push(output):("video"===output.track.type&&(this.videoTrack=output.track,this.videoTags=output.tags,this.pendingTracks++),void("audio"===output.track.type&&(this.audioTrack=output.track,this.audioTags=output.tags,this.pendingTracks++)))}};CoalesceStream.prototype=new Stream,CoalesceStream.prototype.flush=function(flushSource){var id3,caption,i,timelineStartPts,event={tags:{},captions:[],captionStreams:{},metadata:[]};if(this.pendingTracks<this.numberOfTracks){if("VideoSegmentStream"!==flushSource&&"AudioSegmentStream"!==flushSource)return;if(0===this.pendingTracks&&(this.processedTracks++,this.processedTracks<this.numberOfTracks))return}if(this.processedTracks+=this.pendingTracks,this.pendingTracks=0,!(this.processedTracks<this.numberOfTracks)){for(this.videoTrack?timelineStartPts=this.videoTrack.timelineStartInfo.pts:this.audioTrack&&(timelineStartPts=this.audioTrack.timelineStartInfo.pts),event.tags.videoTags=this.videoTags,event.tags.audioTags=this.audioTags,i=0;i<this.pendingCaptions.length;i++)caption=this.pendingCaptions[i],caption.startTime=caption.startPts-timelineStartPts,caption.startTime/=9e4,caption.endTime=caption.endPts-timelineStartPts,caption.endTime/=9e4,event.captionStreams[caption.stream]=!0,event.captions.push(caption);for(i=0;i<this.pendingMetadata.length;i++)id3=this.pendingMetadata[i],id3.cueTime=id3.pts-timelineStartPts,id3.cueTime/=9e4,event.metadata.push(id3);event.metadata.dispatchType=this.metadataStream.dispatchType,this.videoTrack=null,this.audioTrack=null,this.videoTags=[],this.audioTags=[],this.pendingCaptions.length=0,this.pendingMetadata.length=0,this.pendingTracks=0,this.processedTracks=0,this.trigger("data",event),this.trigger("done")}},module.exports=CoalesceStream},"0c02":function(module,exports){var scrollSetting={"":!0,up:!0};function findScrollSetting(value){if("string"!==typeof value)return!1;var scroll=scrollSetting[value.toLowerCase()];return!!scroll&&value.toLowerCase()}function isValidPercentValue(value){return"number"===typeof value&&value>=0&&value<=100}function VTTRegion(){var _width=100,_lines=3,_regionAnchorX=0,_regionAnchorY=100,_viewportAnchorX=0,_viewportAnchorY=100,_scroll="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return _width},set:function(value){if(!isValidPercentValue(value))throw new Error("Width must be between 0 and 100.");_width=value}},lines:{enumerable:!0,get:function(){return _lines},set:function(value){if("number"!==typeof value)throw new TypeError("Lines must be set to a number.");_lines=value}},regionAnchorY:{enumerable:!0,get:function(){return _regionAnchorY},set:function(value){if(!isValidPercentValue(value))throw new Error("RegionAnchorX must be between 0 and 100.");_regionAnchorY=value}},regionAnchorX:{enumerable:!0,get:function(){return _regionAnchorX},set:function(value){if(!isValidPercentValue(value))throw new Error("RegionAnchorY must be between 0 and 100.");_regionAnchorX=value}},viewportAnchorY:{enumerable:!0,get:function(){return _viewportAnchorY},set:function(value){if(!isValidPercentValue(value))throw new Error("ViewportAnchorY must be between 0 and 100.");_viewportAnchorY=value}},viewportAnchorX:{enumerable:!0,get:function(){return _viewportAnchorX},set:function(value){if(!isValidPercentValue(value))throw new Error("ViewportAnchorX must be between 0 and 100.");_viewportAnchorX=value}},scroll:{enumerable:!0,get:function(){return _scroll},set:function(value){var setting=findScrollSetting(value);!1===setting?console.warn("Scroll: an invalid or illegal string was specified."):_scroll=setting}}})}module.exports=VTTRegion},"0c47":function(module,exports,__webpack_require__){var internalObjectKeys=__webpack_require__("c91c"),enumBugKeys=__webpack_require__("b17e");module.exports=Object.keys||function(O){return internalObjectKeys(O,enumBugKeys)}},"0cbe":function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__;__webpack_require__("d6de"),__webpack_require__("8d0f"),__webpack_require__("68b8"),__webpack_require__("d86f"),__webpack_require__("8f0b"),__webpack_require__("beb4"),__webpack_require__("9531"),__webpack_require__("ef14"),__webpack_require__("33ef"),__webpack_require__("11ed"),__webpack_require__("2169"),__webpack_require__("868d"),__webpack_require__("f7d3"),__webpack_require__("11fd"),__webpack_require__("2007"),__webpack_require__("75a4"),__webpack_require__("e68e"),__webpack_require__("f8a5"),__webpack_require__("ef1f"),__webpack_require__("26d3"),__webpack_require__("3996"),__webpack_require__("dc9b"),__webpack_require__("345a"),__webpack_require__("2aa5"),__webpack_require__("16d1"),__webpack_require__("0d9f"),__webpack_require__("f3b8"),__webpack_require__("58d3"),__webpack_require__("62c8"),__webpack_require__("b2c2"),__webpack_require__("5a6a"),__webpack_require__("4258"),__webpack_require__("5d84"),__webpack_require__("ffd0"),__webpack_require__("1dc1"),__webpack_require__("523f"),__webpack_require__("829e"),__webpack_require__("194e"),__webpack_require__("69a7"),__webpack_require__("655c"),__webpack_require__("4a04"),__webpack_require__("f28a"),__webpack_require__("d0d3"),__webpack_require__("d9d9"),__webpack_require__("7de7"),__webpack_require__("53fc"),__webpack_require__("8b79"),__webpack_require__("e890"),__webpack_require__("56c2"),__webpack_require__("3c4c"),__webpack_require__("9e77"),__webpack_require__("7846"),__webpack_require__("cecc"),__webpack_require__("d9ce"),__webpack_require__("fa8c"),__webpack_require__("918c"),__webpack_require__("0a6e");var _typeof=__webpack_require__("5c97");!function(e,t){"object"==_typeof(exports)&&"undefined"!=typeof module?module.exports=t():(__WEBPACK_AMD_DEFINE_FACTORY__=t,__WEBPACK_AMD_DEFINE_RESULT__="function"===typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.call(exports,__webpack_require__,exports,module):__WEBPACK_AMD_DEFINE_FACTORY__,void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(0,(function(){"use strict";function e(t){return(e="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)})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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,n.key,n)}}function n(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}function s(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&&a(e,t)}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){return!t||"object"!=_typeof(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(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{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=r(e);if(t){var s=r(this).constructor;i=Reflect.construct(n,arguments,s)}else i=n.apply(this,arguments);return o(this,i)}}function u(e,t,i){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(i):s.value}})(e,t,i||e)}var l=function(){function e(){t(this,e)}return n(e,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){var t=arguments;if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),n=function(e){var n=t[e];null!=n&&Object.keys(n).forEach((function(e){i[e]=n[e]}))},s=1;s<arguments.length;s++)n(s);return i},"function"!=typeof self.Promise&&__webpack_require__("728e").polyfill()}}]),e}();function d(){}function c(){c.init.call(this)}function _(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function f(e,t,i){if(t)e.call(i);else for(var n=e.length,s=E(e,n),r=0;r<n;++r)s[r].call(i)}function m(e,t,i,n){if(t)e.call(i,n);else for(var s=e.length,r=E(e,s),a=0;a<s;++a)r[a].call(i,n)}function v(e,t,i,n,s){if(t)e.call(i,n,s);else for(var r=e.length,a=E(e,r),o=0;o<r;++o)a[o].call(i,n,s)}function p(e,t,i,n,s,r){if(t)e.call(i,n,s,r);else for(var a=e.length,o=E(e,a),h=0;h<a;++h)o[h].call(i,n,s,r)}function g(e,t,i,n){if(t)e.apply(i,n);else for(var s=e.length,r=E(e,s),a=0;a<s;++a)r[a].apply(i,n)}function y(e,t,i,n){var s,r,a,o;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((r=e._events)?(r.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),r=e._events),a=r[t]):(r=e._events=new d,e._eventsCount=0),a){if("function"==typeof a?a=r[t]=n?[i,a]:[a,i]:n?a.unshift(i):a.push(i),!a.warned&&(s=_(e))&&s>0&&a.length>s){a.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=e,h.type=t,h.count=a.length,o=h,"function"==typeof console.warn?console.warn(o):console.log(o)}}else a=r[t]=i,++e._eventsCount;return e}function k(e,t,i){var n=!1;function s(){e.removeListener(t,s),n||(n=!0,i.apply(e,arguments))}return s.listener=i,s}function S(e){var t=this._events;if(t){var i=t[e];if("function"==typeof i)return 1;if(i)return i.length}return 0}function E(e,t){for(var i=new Array(t);t--;)i[t]=e[t];return i}l.install(),d.prototype=Object.create(null),c.EventEmitter=c,c.usingDomains=!1,c.prototype.domain=void 0,c.prototype._events=void 0,c.prototype._maxListeners=void 0,c.defaultMaxListeners=10,c.init=function(){this.domain=null,c.usingDomains&&(void 0).active,this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new d,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return _(this)},c.prototype.emit=function(e){var t,i,n,s,r,a,o,h="error"===e;if(a=this._events)h=h&&null==a.error;else if(!h)return!1;if(o=this.domain,h){if(t=arguments[1],!o){if(t instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=o,t.domainThrown=!1,o.emit("error",t),!1}if(!(i=a[e]))return!1;var l="function"==typeof i;switch(n=arguments.length){case 1:f(i,l,this);break;case 2:m(i,l,this,arguments[1]);break;case 3:v(i,l,this,arguments[1],arguments[2]);break;case 4:p(i,l,this,arguments[1],arguments[2],arguments[3]);break;default:for(s=new Array(n-1),r=1;r<n;r++)s[r-1]=arguments[r];g(i,l,this,s)}return!0},c.prototype.addListener=function(e,t){return y(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return y(this,e,t,!0)},c.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,k(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,k(this,e,t)),this},c.prototype.removeListener=function(e,t){var i,n,s,r,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(i=n[e]))return this;if(i===t||i.listener&&i.listener===t)0==--this._eventsCount?this._events=new d:(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(s=-1,r=i.length;r-- >0;)if(i[r]===t||i[r].listener&&i[r].listener===t){a=i[r].listener,s=r;break}if(s<0)return this;if(1===i.length){if(i[0]=void 0,0==--this._eventsCount)return this._events=new d,this;delete n[e]}else!function(e,t){for(var i=t,n=i+1,s=e.length;n<s;i+=1,n+=1)e[i]=e[n];e.pop()}(i,s);n.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.removeAllListeners=function(e){var t,i;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=new d,this._eventsCount=0):i[e]&&(0==--this._eventsCount?this._events=new d:delete i[e]),this;if(0===arguments.length){for(var n,s=Object.keys(i),r=0;r<s.length;++r)"removeListener"!==(n=s[r])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=new d,this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(t)do{this.removeListener(e,t[t.length-1])}while(t[0]);return this},c.prototype.listeners=function(e){var t,i=this._events;return i&&(t=i[e])?"function"==typeof t?[t.listener||t]:function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(t):[]},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):S.call(e,t)},c.prototype.listenerCount=S,c.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]};var b=function(){function e(){t(this,e)}return n(e,null,[{key:"e",value:function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","error",n),e.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}},{key:"i",value:function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","info",n),e.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}},{key:"w",value:function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","warn",n),e.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}},{key:"d",value:function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","debug",n),e.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}},{key:"v",value:function(t,i){t&&!e.FORCE_GLOBAL_TAG||(t=e.GLOBAL_TAG);var n="[".concat(t,"] > ").concat(i);e.ENABLE_CALLBACK&&e.emitter.emit("log","verbose",n),e.ENABLE_VERBOSE&&console.log(n)}}]),e}();b.GLOBAL_TAG="flv.js",b.FORCE_GLOBAL_TAG=!1,b.ENABLE_ERROR=!0,b.ENABLE_INFO=!0,b.ENABLE_WARN=!0,b.ENABLE_DEBUG=!0,b.ENABLE_VERBOSE=!0,b.ENABLE_CALLBACK=!1,b.emitter=new c;var L=function(){function e(){t(this,e),this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return n(e,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024}},{key:"lastSecondKBps",get:function(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}},{key:"averageKBps",get:function(){var e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}]),e}(),A=function(){function e(i){t(this,e),this._message=i}return n(e,[{key:"toString",value:function(){return this.name+": "+this.message}},{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}}]),e}(),w=function(e){s(r,e);var i=h(r);function r(e){return t(this,r),i.call(this,e)}return n(r,[{key:"name",get:function(){return"IllegalStateException"}}]),r}(A),R=function(e){s(r,e);var i=h(r);function r(e){return t(this,r),i.call(this,e)}return n(r,[{key:"name",get:function(){return"InvalidArgumentException"}}]),r}(A),C=function(e){s(r,e);var i=h(r);function r(e){return t(this,r),i.call(this,e)}return n(r,[{key:"name",get:function(){return"NotImplementedException"}}]),r}(A),T={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},D={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"},B=function(){function e(i){t(this,e),this._type=i||"undefined",this._status=T.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return n(e,[{key:"destroy",value:function(){this._status=T.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===T.kConnecting||this._status===T.kBuffering}},{key:"open",value:function(e,t){throw new C("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new C("Unimplemented abstract function!")}},{key:"type",get:function(){return this._type}},{key:"status",get:function(){return this._status}},{key:"needStashBuffer",get:function(){return this._needStash}},{key:"onContentLengthKnown",get:function(){return this._onContentLengthKnown},set:function(e){this._onContentLengthKnown=e}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(e){this._onURLRedirect=e}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(e){this._onDataArrival=e}},{key:"onError",get:function(){return this._onError},set:function(e){this._onError=e}},{key:"onComplete",get:function(){return this._onComplete},set:function(e){this._onComplete=e}}]),e}(),I={};!function(){var e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],i=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],n={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:i[0]||""},s={};if(n.browser){s[n.browser]=!0;var r=n.majorVersion.split(".");s.version={major:parseInt(n.majorVersion,10),string:n.version},r.length>1&&(s.version.minor=parseInt(r[1],10)),r.length>2&&(s.version.build=parseInt(r[2],10))}if(n.platform&&(s[n.platform]=!0),(s.chrome||s.opr||s.safari)&&(s.webkit=!0),s.rv||s.iemobile){s.rv&&delete s.rv;var a="msie";n.browser=a,s.msie=!0}if(s.edge){delete s.edge;var o="msedge";n.browser=o,s.msedge=!0}if(s.opr){var h="opera";n.browser=h,s.opera=!0}if(s.safari&&s.android){var u="android";n.browser=u,s.android=!0}s.name=n.browser,s.platform=n.platform,Object.keys(I).forEach((function(e){delete I[e]})),Object.assign(I,s)}();var x=function(i){s(o,i);var a=h(o);function o(e,i){var n;return t(this,o),(n=a.call(this,"fetch-stream-loader")).TAG="FetchStreamLoader",n._seekHandler=e,n._config=i,n._needStash=!0,n._requestAbort=!1,n._contentLength=null,n._receivedLength=0,n}return n(o,null,[{key:"isSupported",value:function(){try{var e=I.msedge&&I.version.minor>=15048,t=!I.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}}]),n(o,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),u(r(o.prototype),"destroy",this).call(this)}},{key:"open",value:function(t,i){var n=this;this._dataSource=t,this._range=i;var s=t.url;this._config.reuseRedirectedURL&&