!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.flvjs=t():e.flvjs=t()}(self,(function(){return function(){var e={264:function(e,t,i){ /*! * @overview es6-promise - a tiny implementation of promises/a+. * @copyright copyright (c) 2014 yehuda katz, tom dale, stefan penner and contributors (conversion to es6 api by jake archibald) * @license licensed under mit license * see https://raw.githubusercontent.com/stefanpenner/es6-promise/master/license * @version v4.2.8+1e68dce6 */ e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var n=array.isarray?array.isarray:function(e){return"[object array]"===object.prototype.tostring.call(e)},r=0,s=void 0,o=void 0,a=function(e,t){b[r]=e,b[r+1]=t,2===(r+=2)&&(o?o(e):a())};function h(e){o=e}function u(e){a=e}var l="undefined"!=typeof window?window:void 0,d=l||{},c=d.mutationobserver||d.webkitmutationobserver,_="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.tostring.call(process),f="undefined"!=typeof uint8clampedarray&&"undefined"!=typeof importscripts&&"undefined"!=typeof messagechannel;function p(){return function(){return process.nexttick(e)}}function m(){return void 0!==s?function(){s(e)}:y()}function g(){var e=0,t=new c(e),i=document.createtextnode("");return t.observe(i,{characterdata:!0}),function(){i.data=e=++e%2}}function v(){var e=new messagechannel;return e.port1.onmessage=e,function(){return e.port2.postmessage(0)}}function y(){var e=settimeout;return function(){return e(e,1)}}var b=new array(1e3);function e(){for(var e=0;e0&&o.length>r&&!o.warned){o.warned=!0;var l=new error("possible eventemitter memory leak detected. "+o.length+" "+string(t)+" listeners added. use emitter.setmaxlisteners() to increase limit");l.name="maxlistenersexceededwarning",l.emitter=e,l.type=t,l.count=o.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){if(!this.fired)return this.target.removelistener(this.type,this.wrapfn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,i){var n={fired:!1,wrapfn:void 0,target:e,type:t,listener:i},r=l.bind(n);return r.listener=i,n.wrapfn=r,r}function c(e,t,i){var n=e._events;if(void 0===n)return[];var r=n[t];return void 0===r?[]:"function"==typeof r?i?[r.listener||r]:[r]:i?function(e){for(var t=new array(e.length),i=0;i0&&(o=t[0]),o instanceof error)throw o;var a=new error("unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var h=s[e];if(void 0===h)return!1;if("function"==typeof h)n(h,this,t);else{var u=h.length,l=f(h,u);for(i=0;i=0;s--)if(i[s]===t||i[s].listener===t){o=i[s].listener,r=s;break}if(r<0)return this;0===r?i.shift():function(e,t){for(;t+1=0;n--)this.removelistener(e,t[n]);return this},s.prototype.listeners=function(e){return c(this,e,!0)},s.prototype.rawlisteners=function(e){return c(this,e,!1)},s.listenercount=function(e,t){return"function"==typeof e.listenercount?e.listenercount(t):_.call(e,t)},s.prototype.listenercount=_,s.prototype.eventnames=function(){return this._eventscount>0?t(this._events):[]}},397:function(e,t,i){function n(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.i=function(e){return e},i.d=function(e,t,n){i.o(e,t)||object.defineproperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){object.defineproperty(e,"__esmodule",{value:!0})},i.n=function(e){var t=e&&e.__esmodule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return object.prototype.hasownproperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var n=i(i.s=entry_module);return n.default||n}var r="[\\.|\\-|\\+|\\w|/|@]+",s="\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)";function o(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function a(e,t,n){var a={};a[n]=[];var h=t.tostring(),u=h.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!u)return a;for(var l,d=u[1],c=new regexp("(\\\\n|\\w)"+o(d)+s,"g");l=c.exec(h);)"dll-reference"!==l[3]&&a[n].push(l[3]);for(c=new regexp("\\("+o(d)+'\\("(dll-reference\\s('+r+'))"\\)\\)'+s,"g");l=c.exec(h);)e[l[2]]||(a[n].push(l[1]),e[l[2]]=i(l[1]).m),a[l[2]]=a[l[2]]||[],a[l[2]].push(l[4]);for(var _,f=object.keys(a),p=0;p0}),!1)}e.exports=function(e,t){t=t||{};var r={main:i.m},s=t.all?{main:object.keys(r.main)}:function(e,t){for(var i={main:[t]},n={main:[]},r={main:{}};h(i);)for(var s=object.keys(i),o=0;o=e[r]&&t0&&e[0].originaldts=t[r].dts&&et[n].lastsample.originaldts&&e=t[n].lastsample.originaldts&&(n===t.length-1||n0&&(r=this._searchnearestsegmentbefore(i.originalbegindts)+1),this._lastappendlocation=r,this._list.splice(r,0,i)},e.prototype.getlastsegmentbefore=function(e){var t=this._searchnearestsegmentbefore(e);return t>=0?this._list[t]:null},e.prototype.getlastsamplebefore=function(e){var t=this.getlastsegmentbefore(e);return null!=t?t.lastsample:null},e.prototype.getlastsyncpointbefore=function(e){for(var t=this._searchnearestsegmentbefore(e),i=this._list[t].syncpoints;0===i.length&&t>0;)t--,i=this._list[t].syncpoints;return i.length>0?i[i.length-1]:null},e}()},949:function(e,t,i){"use strict";i.d(t,{z:function(){return r}});var n=i(716),r=i.n(n),s=i(300),o=i(538),a=i(118);function h(e,t,i){var n=e;if(t+i=128){t.push(string.fromcharcode(65535&s)),n+=2;continue}}else if(i[n]<240){if(h(i,n,2))if((s=(15&i[n])<<12|(63&i[n+1])<<6|63&i[n+2])>=2048&&55296!=(63488&s)){t.push(string.fromcharcode(65535&s)),n+=3;continue}}else if(i[n]<248){var s;if(h(i,n,3))if((s=(7&i[n])<<18|(63&i[n+1])<<12|(63&i[n+2])<<6|63&i[n+3])>65536&&s<1114112){s-=65536,t.push(string.fromcharcode(s>>>10|55296)),t.push(string.fromcharcode(1023&s|56320)),n+=4;continue}}t.push(string.fromcharcode(65533)),++n}return t.join("")},d=i(29),c=(u=new arraybuffer(2),new dataview(u).setint16(0,256,!0),256===new int16array(u)[0]),_=function(){function e(){}return e.parsescriptdata=function(t,i,n){var r={};try{var o=e.parsevalue(t,i,n),a=e.parsevalue(t,i+o.size,n-o.size);r[o.data]=a.data}catch(e){s.z.e("amf",e.tostring())}return r},e.parseobject=function(t,i,n){if(n<3)throw new d.rt("data not enough when parse scriptdataobject");var r=e.parsestring(t,i,n),s=e.parsevalue(t,i+r.size,n-r.size),o=s.objectend;return{data:{name:r.data,value:s.data},size:r.size+s.size,objectend:o}},e.parsevariable=function(t,i,n){return e.parseobject(t,i,n)},e.parsestring=function(e,t,i){if(i<2)throw new d.rt("data not enough when parse string");var n=new dataview(e,t,i).getuint16(0,!c);return{data:n>0?l(new uint8array(e,t+2,n)):"",size:2+n}},e.parselongstring=function(e,t,i){if(i<4)throw new d.rt("data not enough when parse longstring");var n=new dataview(e,t,i).getuint32(0,!c);return{data:n>0?l(new uint8array(e,t+4,n)):"",size:4+n}},e.parsedate=function(e,t,i){if(i<10)throw new d.rt("data size invalid when parse date");var n=new dataview(e,t,i),r=n.getfloat64(0,!c),s=n.getint16(8,!c);return{data:new date(r+=60*s*1e3),size:10}},e.parsevalue=function(t,i,n){if(n<1)throw new d.rt("data not enough when parse value");var r,o=new dataview(t,i,n),a=1,h=o.getuint8(0),u=!1;try{switch(h){case 0:r=o.getfloat64(1,!c),a+=8;break;case 1:r=!!o.getuint8(1),a+=1;break;case 2:var l=e.parsestring(t,i+1,n-1);r=l.data,a+=l.size;break;case 3:r={};var _=0;for(9==(16777215&o.getuint32(n-4,!c))&&(_=3);a32)throw new d.oc("expgolomb: readbits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){var t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}var i=this._current_word_bits_left?this._current_word:0;i>>>=32-this._current_word_bits_left;var n=e-this._current_word_bits_left;this._fillcurrentword();var r=math.min(n,this._current_word_bits_left),s=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,i=i<>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillcurrentword(),e+this._skipleadingzero()},e.prototype.readueg=function(){var e=this._skipleadingzero();return this.readbits(e+1)-1},e.prototype.readseg=function(){var e=this.readueg();return 1&e?e+1>>>1:-1*(e>>>1)},e}(),p=function(){function e(){}return e._ebsp2rbsp=function(e){for(var t=e,i=t.bytelength,n=new uint8array(i),r=0,s=0;s=2&&3===t[s]&&0===t[s-1]&&0===t[s-2]||(n[r]=t[s],r++);return new uint8array(n.buffer,0,r)},e.parsesps=function(t){var i=e._ebsp2rbsp(t),n=new f(i);n.readbyte();var r=n.readbyte();n.readbyte();var s=n.readbyte();n.readueg();var o=e.getprofilestring(r),a=e.getlevelstring(s),h=1,u=420,l=8;if((100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r)&&(3===(h=n.readueg())&&n.readbits(1),h<=3&&(u=[0,420,422,444][h]),l=n.readueg()+8,n.readueg(),n.readbits(1),n.readbool()))for(var d=3!==h?8:12,c=0;c0&&k<16?(l=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2][k-1],r=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1][k-1]):255===k&&(l=n.readbyte()<<8|n.readbyte(),r=n.readbyte()<<8|n.readbyte())}if(n.readbool()&&n.readbool(),n.readbool()&&(n.readbits(4),n.readbool()&&n.readbits(24)),n.readbool()&&(n.readueg(),n.readueg()),n.readbool()){var d=n.readbits(32),i=n.readbits(32);t=n.readbool(),w=(o=i)/(c=2*d)}}var m=1;1===l&&1===r||(m=l/r);var b=0,x=0;0===h?(b=1,x=2-y):(b=3===h?1:2,x=(1===h?2:1)*(2-y));var p=16*(g+1),u=16*(v+1)*(2-y);p-=(b+e)*b,u-=(s+a)*x;var n=math.ceil(p*m);return n.destroy(),n=null,{profile_string:o,level_string:a,bit_depth:l,ref_frames:m,chroma_format:u,chroma_format_string:e.getchromaformatstring(u),frame_rate:{fixed:t,fps:w,fps_den:c,fps_num:o},sar_ratio:{width:l,height:r},codec_size:{width:p,height:u},present_size:{width:n,height:u}}},e._skipscalinglist=function(e,t){for(var i=8,n=8,r=0;r>>2!=0,o=0!=(1&t[4]),a=(n=t)[r=5]<<24|n[r+1]<<16|n[r+2]<<8|n[r+3];return a<9?i:{match:!0,consumed:a,dataoffset:a,hasaudiotrack:s,hasvideotrack:o}},e.prototype.binddatasource=function(e){return e.ondataarrival=this.parsechunks.bind(this),this},object.defineproperty(e.prototype,"ontrackmetadata",{get:function(){return this._ontrackmetadata},set:function(e){this._ontrackmetadata=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"onmediainfo",{get:function(){return this._onmediainfo},set:function(e){this._onmediainfo=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"onmetadataarrived",{get:function(){return this._onmetadataarrived},set:function(e){this._onmetadataarrived=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"onscriptdataarrived",{get:function(){return this._onscriptdataarrived},set:function(e){this._onscriptdataarrived=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"onerror",{get:function(){return this._onerror},set:function(e){this._onerror=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"ondataavailable",{get:function(){return this._ondataavailable},set:function(e){this._ondataavailable=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"timestampbase",{get:function(){return this._timestampbase},set:function(e){this._timestampbase=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"overridedduration",{get:function(){return this._duration},set:function(e){this._durationoverrided=!0,this._duration=e,this._mediainfo.duration=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"overridedhasaudio",{set:function(e){this._hasaudioflagoverrided=!0,this._hasaudio=e,this._mediainfo.hasaudio=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"overridedhasvideo",{set:function(e){this._hasvideoflagoverrided=!0,this._hasvideo=e,this._mediainfo.hasvideo=e},enumerable:!1,configurable:!0}),e.prototype.resetmediainfo=function(){this._mediainfo=new a.z},e.prototype._isinitialmetadatadispatched=function(){return this._hasaudio&&this._hasvideo?this._audioinitialmetadatadispatched&&this._videoinitialmetadatadispatched:this._hasaudio&&!this._hasvideo?this._audioinitialmetadatadispatched:!(this._hasaudio||!this._hasvideo)&&this._videoinitialmetadatadispatched},e.prototype.parsechunks=function(t,i){if(!(this._onerror&&this._onmediainfo&&this._ontrackmetadata&&this._ondataavailable))throw new d.rt("flv: onerror & onmediainfo & ontrackmetadata & ondataavailable callback must be specified");var n=0,r=this._littleendian;if(0===i){if(!(t.bytelength>13))return 0;n=e.probe(t).dataoffset}this._firstparse&&(this._firstparse=!1,i+n!==this._dataoffset&&s.z.w(this.tag,"first time parsing but chunk bytestart invalid!"),0!==(o=new dataview(t,n)).getuint32(0,!r)&&s.z.w(this.tag,"prevtagsize0 !== 0 !!!"),n+=4);for(;nt.bytelength)break;var a=o.getuint8(0),h=16777215&o.getuint32(0,!r);if(n+11+h+4>t.bytelength)break;if(8===a||9===a||18===a){var u=o.getuint8(4),l=o.getuint8(5),c=o.getuint8(6)|l<<8|u<<16|o.getuint8(7)<<24;if(8===a&&c0){var h=a/1e3;this._referenceframerate.fixed=!0,this._referenceframerate.fps=h,this._referenceframerate.fps_num=a,this._referenceframerate.fps_den=1e3,this._mediainfo.fps=h}}if("object"==typeof r.keyframes){this._mediainfo.haskeyframesindex=!0;var u=r.keyframes;this._mediainfo.keyframesindex=this._parsekeyframesindex(u),r.keyframes=null}else this._mediainfo.haskeyframesindex=!1;this._dispatch=!1,this._mediainfo.metadata=r,s.z.v(this.tag,"parsed onmetadata"),this._mediainfo.iscomplete()&&this._onmediainfo(this._mediainfo)}object.keys(n).length>0&&this._onscriptdataarrived&&this._onscriptdataarrived(object.assign({},n))},e.prototype._parsekeyframesindex=function(e){for(var t=[],i=[],n=1;n>>4;if(2===o||10===o){var a=0,h=(12&r)>>>2;if(h>=0&&h<=4){a=this._flvsoundratetable[h];var u=1&r,l=this._audiometadata,d=this._audiotrack;if(l||(!1===this._hasaudio&&!1===this._hasaudioflagoverrided&&(this._hasaudio=!0,this._mediainfo.hasaudio=!0),(l=this._audiometadata={}).type="audio",l.id=d.id,l.timescale=this._timescale,l.duration=this._duration,l.audiosamplerate=a,l.channelcount=0===u?1:2),10===o){var c=this._parseaacaudiodata(e,t+1,i-1);if(null==c)return;if(0===c.packettype){l.config&&s.z.w(this.tag,"found another audiospecificconfig!");var _=c.data;l.audiosamplerate=_.samplingrate,l.channelcount=_.channelcount,l.codec=_.codec,l.originalcodec=_.originalcodec,l.config=_.config,l.refsampleduration=1024/l.audiosamplerate*l.timescale,s.z.v(this.tag,"parsed audiospecificconfig"),this._isinitialmetadatadispatched()?this._dispatch&&(this._audiotrack.length||this._videotrack.length)&&this._ondataavailable(this._audiotrack,this._videotrack):this._audioinitialmetadatadispatched=!0,this._dispatch=!1,this._ontrackmetadata("audio",l),(g=this._mediainfo).audiocodec=l.originalcodec,g.audiosamplerate=l.audiosamplerate,g.audiochannelcount=l.channelcount,g.hasvideo?null!=g.videocodec&&(g.mimetype='video/x-flv; codecs="'+g.videocodec+","+g.audiocodec+'"'):g.mimetype='video/x-flv; codecs="'+g.audiocodec+'"',g.iscomplete()&&this._onmediainfo(g)}else if(1===c.packettype){var f=this._timestampbase+n,p={unit:c.data,length:c.data.bytelength,dts:f,pts:f};d.samples.push(p),d.length+=c.data.length}else s.z.e(this.tag,"flv: unsupported aac data type "+c.packettype)}else if(2===o){if(!l.codec){var g;if(null==(_=this._parsemp3audiodata(e,t+1,i-1,!0)))return;l.audiosamplerate=_.samplingrate,l.channelcount=_.channelcount,l.codec=_.codec,l.originalcodec=_.originalcodec,l.refsampleduration=1152/l.audiosamplerate*l.timescale,s.z.v(this.tag,"parsed mpeg audio frame header"),this._audioinitialmetadatadispatched=!0,this._ontrackmetadata("audio",l),(g=this._mediainfo).audiocodec=l.codec,g.audiosamplerate=l.audiosamplerate,g.audiochannelcount=l.channelcount,g.audiodatarate=_.bitrate,g.hasvideo?null!=g.videocodec&&(g.mimetype='video/x-flv; codecs="'+g.videocodec+","+g.audiocodec+'"'):g.mimetype='video/x-flv; codecs="'+g.audiocodec+'"',g.iscomplete()&&this._onmediainfo(g)}var v=this._parsemp3audiodata(e,t+1,i-1,!1);if(null==v)return;f=this._timestampbase+n;var y={unit:v,length:v.bytelength,dts:f,pts:f};d.samples.push(y),d.length+=v.length}}else this._onerror(m.z.format_error,"flv: invalid audio sample rate idx: "+h)}else this._onerror(m.z.codec_unsupported,"flv: unsupported audio codec idx: "+o)}},e.prototype._parseaacaudiodata=function(e,t,i){if(!(i<=1)){var n={},r=new uint8array(e,t,i);return n.packettype=r[0],0===r[0]?n.data=this._parseaacaudiospecificconfig(e,t+1,i-1):n.data=r.subarray(1),n}s.z.w(this.tag,"flv: invalid aac packet, missing aacpackettype or/and data!")},e.prototype._parseaacaudiospecificconfig=function(e,t,i){var n,r,s=new uint8array(e,t,i),o=null,a=0,h=null;if(a=n=s[0]>>>3,(r=(7&s[0])<<1|s[1]>>>7)<0||r>=this._mpegsamplingrates.length)this._onerror(m.z.format_error,"flv: aac invalid sampling frequency index!");else{var u=this._mpegsamplingrates[r],l=(120&s[1])>>>3;if(!(l<0||l>=8)){5===a&&(h=(7&s[1])<<1|s[2]>>>7,(124&s[2])>>>2);var d=self.navigator.useragent.tolowercase();return-1!==d.indexof("firefox")?r>=6?(a=5,o=new array(4),h=r-3):(a=2,o=new array(2),h=r):-1!==d.indexof("android")?(a=2,o=new array(2),h=r):(a=5,h=r,o=new array(4),r>=6?h=r-3:1===l&&(a=2,o=new array(2),h=r)),o[0]=a<<3,o[0]|=(15&r)>>>1,o[1]=(15&r)<<7,o[1]|=(15&l)<<3,5===a&&(o[1]|=(15&h)>>>1,o[2]=(1&h)<<7,o[2]|=8,o[3]=0),{config:o,samplingrate:u,channelcount:l,codec:"mp4a.40."+a,originalcodec:"mp4a.40."+n}}this._onerror(m.z.format_error,"flv: aac invalid channel configuration")}},e.prototype._parsemp3audiodata=function(e,t,i,n){if(!(i<4)){this._littleendian;var r=new uint8array(e,t,i),o=null;if(n){if(255!==r[0])return;var a=r[1]>>>3&3,h=(6&r[1])>>1,u=(240&r[2])>>>4,l=(12&r[2])>>>2,d=3!==(r[3]>>>6&3)?2:1,c=0,_=0;switch(a){case 0:c=this._mpegaudiov25sampleratetable[l];break;case 2:c=this._mpegaudiov20sampleratetable[l];break;case 3:c=this._mpegaudiov10sampleratetable[l]}switch(h){case 1:34,u>>4,h=15&o;7===h?this._parseavcvideopacket(e,t+1,i-1,n,r,a):this._onerror(m.z.codec_unsupported,"flv: unsupported codec in video frame: "+h)}},e.prototype._parseavcvideopacket=function(e,t,i,n,r,o){if(i<4)s.z.w(this.tag,"flv: invalid avc packet, missing avcpackettype or/and compositiontime");else{var a=this._littleendian,h=new dataview(e,t,i),u=h.getuint8(0),l=(16777215&h.getuint32(0,!a))<<8>>8;if(0===u)this._parseavcdecoderconfigurationrecord(e,t+4,i-4);else if(1===u)this._parseavcvideodata(e,t+4,i-4,n,r,o,l);else if(2!==u)return void this._onerror(m.z.format_error,"flv: invalid video packet type "+u)}},e.prototype._parseavcdecoderconfigurationrecord=function(e,t,i){if(i<7)s.z.w(this.tag,"flv: invalid avcdecoderconfigurationrecord, lack of data!");else{var n=this._videometadata,r=this._videotrack,o=this._littleendian,a=new dataview(e,t,i);n?void 0!==n.avcc&&s.z.w(this.tag,"found another avcdecoderconfigurationrecord!"):(!1===this._hasvideo&&!1===this._hasvideoflagoverrided&&(this._hasvideo=!0,this._mediainfo.hasvideo=!0),(n=this._videometadata={}).type="video",n.id=r.id,n.timescale=this._timescale,n.duration=this._duration);var h=a.getuint8(0),u=a.getuint8(1);a.getuint8(2),a.getuint8(3);if(1===h&&0!==u)if(this._nalulengthsize=1+(3&a.getuint8(4)),3===this._nalulengthsize||4===this._nalulengthsize){var l=31&a.getuint8(5);if(0!==l){l>1&&s.z.w(this.tag,"flv: strange avcdecoderconfigurationrecord: sps count = "+l);for(var d=6,c=0;c1&&s.z.w(this.tag,"flv: strange avcdecoderconfigurationrecord: pps count = "+r),d++;for(c=0;c=i){s.z.w(this.tag,"malformed nalu near timestamp "+f+", offset = "+c+", datasize = "+i);break}var m=u.getuint32(c,!h);if(3===_&&(m>>>=8),m>i-_)return void s.z.w(this.tag,"malformed nalus near timestamp "+f+", nalusize > datasize!");var g=31&u.getuint8(c+_);5===g&&(p=!0);var v=new uint8array(e,t+c,_+m),y={type:g,data:v};l.push(y),d+=v.bytelength,c+=_+m}if(l.length){var b=this._videotrack,e={units:l,length:d,iskeyframe:p,dts:f,cts:a,pts:f+a};p&&(e.fileposition=r),b.samples.push(e),b.length+=d}},e}(),v=function(){function e(){}return e.init=function(){for(var t in e.types={avc1:[],avcc:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]},e.types)e.types.hasownproperty(t)&&(e.types[t]=[t.charcodeat(0),t.charcodeat(1),t.charcodeat(2),t.charcodeat(3)]);var i=e.constants={};i.ftyp=new uint8array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),i.stsd_prefix=new uint8array([0,0,0,0,0,0,0,1]),i.stts=new uint8array([0,0,0,0,0,0,0,0]),i.stsc=i.stco=i.stts,i.stsz=new uint8array([0,0,0,0,0,0,0,0,0,0,0,0]),i.hdlr_video=new uint8array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),i.hdlr_audio=new uint8array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),i.dref=new uint8array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i.smhd=new uint8array([0,0,0,0,0,0,0,0]),i.vmhd=new uint8array([0,0,0,1,0,0,0,0,0,0,0,0])},e.box=function(e){for(var t=8,i=null,n=array.prototype.slice.call(arguments,1),r=n.length,s=0;s>>24&255,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i.set(e,4);var o=8;for(s=0;s>>24&255,t>>>16&255,t>>>8&255,255&t,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},e.trak=function(t){return e.box(e.types.trak,e.tkhd(t),e.mdia(t))},e.tkhd=function(t){var i=t.id,n=t.duration,r=t.presentwidth,s=t.presentheight;return e.box(e.types.tkhd,new uint8array([0,0,0,7,0,0,0,0,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>>8&255,255&r,0,0,s>>>8&255,255&s,0,0]))},e.mdia=function(t){return e.box(e.types.mdia,e.mdhd(t),e.hdlr(t),e.minf(t))},e.mdhd=function(t){var i=t.timescale,n=t.duration;return e.box(e.types.mdhd,new uint8array([0,0,0,0,0,0,0,0,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,n>>>24&255,n>>>16&255,n>>>8&255,255&n,85,196,0,0]))},e.hdlr=function(t){var i=null;return i="audio"===t.type?e.constants.hdlr_audio:e.constants.hdlr_video,e.box(e.types.hdlr,i)},e.minf=function(t){var i=null;return i="audio"===t.type?e.box(e.types.smhd,e.constants.smhd):e.box(e.types.vmhd,e.constants.vmhd),e.box(e.types.minf,i,e.dinf(),e.stbl(t))},e.dinf=function(){return e.box(e.types.dinf,e.box(e.types.dref,e.constants.dref))},e.stbl=function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.constants.stts),e.box(e.types.stsc,e.constants.stsc),e.box(e.types.stsz,e.constants.stsz),e.box(e.types.stco,e.constants.stco))},e.stsd=function(t){return"audio"===t.type?"mp3"===t.codec?e.box(e.types.stsd,e.constants.stsd_prefix,e.mp3(t)):e.box(e.types.stsd,e.constants.stsd_prefix,e.mp4a(t)):e.box(e.types.stsd,e.constants.stsd_prefix,e.avc1(t))},e.mp3=function(t){var i=t.channelcount,n=t.audiosamplerate,r=new uint8array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i,0,16,0,0,0,0,n>>>8&255,255&n,0,0]);return e.box(e.types[".mp3"],r)},e.mp4a=function(t){var i=t.channelcount,n=t.audiosamplerate,r=new uint8array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i,0,16,0,0,0,0,n>>>8&255,255&n,0,0]);return e.box(e.types.mp4a,r,e.esds(t))},e.esds=function(t){var i=t.config||[],n=i.length,r=new uint8array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(i).concat([6,1,2]));return e.box(e.types.esds,r)},e.avc1=function(t){var i=t.avcc,n=t.codecwidth,r=t.codecheight,s=new uint8array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>>8&255,255&n,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return e.box(e.types.avc1,s,e.box(e.types.avcc,i))},e.mvex=function(t){return e.box(e.types.mvex,e.trex(t))},e.trex=function(t){var i=t.id,n=new uint8array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return e.box(e.types.trex,n)},e.moof=function(t,i){return e.box(e.types.moof,e.mfhd(t.sequencenumber),e.traf(t,i))},e.mfhd=function(t){var i=new uint8array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return e.box(e.types.mfhd,i)},e.traf=function(t,i){var n=t.id,r=e.box(e.types.tfhd,new uint8array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n])),s=e.box(e.types.tfdt,new uint8array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),o=e.sdtp(t),a=e.trun(t,o.bytelength+16+16+8+16+8+8);return e.box(e.types.traf,r,s,a,o)},e.sdtp=function(t){for(var i=t.samples||[],n=i.length,r=new uint8array(4+n),s=0;s>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i],0);for(var a=0;a>>24&255,h>>>16&255,h>>>8&255,255&h,u>>>24&255,u>>>16&255,u>>>8&255,255&u,l.isleading<<2|l.dependson,l.isdependedon<<6|l.hasredundancy<<4|l.isnonsync,0,0,d>>>24&255,d>>>16&255,d>>>8&255,255&d],12+16*a)}return e.box(e.types.trun,o)},e.mdat=function(t){return e.box(e.types.mdat,t)},e}();v.init();var y=v,b=function(){function e(){}return e.getsilentframe=function(e,t){if("mp4a.40.2"===e){if(1===t)return new uint8array([0,200,0,128,35,128]);if(2===t)return new uint8array([33,0,73,144,2,25,0,35,128]);if(3===t)return new uint8array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new uint8array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new uint8array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new uint8array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new uint8array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new uint8array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new uint8array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},e}(),e=i(51),s=function(){function e(e){this.tag="mp4remuxer",this._config=e,this._islive=!0===e.islive,this._dtsbase=-1,this._dtsbaseinited=!1,this._audiodtsbase=1/0,this._videodtsbase=1/0,this._audionextdts=void 0,this._videonextdts=void 0,this._audiostashedlastsample=null,this._videostashedlastsample=null,this._audiometa=null,this._videometa=null,this._audiosegmentinfolist=new e.j1("audio"),this._videosegmentinfolist=new e.j1("video"),this._oninitsegment=null,this._onmediasegment=null,this._forcefirstidr=!(!o.z.chrome||!(o.z.version.major<50||50===o.z.version.major&&o.z.version.build<2661)),this._fillsilentafterseek=o.z.msedge||o.z.msie,this._mp3usempegaudio=!o.z.firefox,this._fillaudiotimestampgap=this._config.fixaudiotimestampgap}return e.prototype.destroy=function(){this._dtsbase=-1,this._dtsbaseinited=!1,this._audiometa=null,this._videometa=null,this._audiosegmentinfolist.clear(),this._audiosegmentinfolist=null,this._videosegmentinfolist.clear(),this._videosegmentinfolist=null,this._oninitsegment=null,this._onmediasegment=null},e.prototype.binddatasource=function(e){return e.ondataavailable=this.remux.bind(this),e.ontrackmetadata=this._ontrackmetadatareceived.bind(this),this},object.defineproperty(e.prototype,"oninitsegment",{get:function(){return this._oninitsegment},set:function(e){this._oninitsegment=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"onmediasegment",{get:function(){return this._onmediasegment},set:function(e){this._onmediasegment=e},enumerable:!1,configurable:!0}),e.prototype.insertdiscontinuity=function(){this._audionextdts=this._videonextdts=void 0},e.prototype.seek=function(e){this._audiostashedlastsample=null,this._videostashedlastsample=null,this._videosegmentinfolist.clear(),this._audiosegmentinfolist.clear()},e.prototype.remux=function(e,t){if(!this._onmediasegment)throw new d.rt("mp4remuxer: onmediasegment callback must be specificed!");this._dtsbaseinited||this._calculatedtsbase(e,t),this._remuxvideo(t),this._remuxaudio(e)},e.prototype._ontrackmetadatareceived=function(e,t){var i=null,n="mp4",r=t.codec;if("audio"===e)this._audiometa=t,"mp3"===t.codec&&this._mp3usempegaudio?(n="mpeg",r="",i=new uint8array):i=y.generateinitsegment(t);else{if("video"!==e)return;this._videometa=t,i=y.generateinitsegment(t)}if(!this._oninitsegment)throw new d.rt("mp4remuxer: oninitsegment callback must be specified!");this._oninitsegment(e,{type:e,data:i.buffer,codec:r,container:e+"/"+n,mediaduration:t.duration})},e.prototype._calculatedtsbase=function(e,t){this._dtsbaseinited||(e.samples&&e.samples.length&&(this._audiodtsbase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videodtsbase=t.samples[0].dts),this._dtsbase=math.min(this._audiodtsbase,this._videodtsbase),this._dtsbaseinited=!0)},e.prototype.flushstashedsamples=function(){var e=this._videostashedlastsample,t=this._audiostashedlastsample,i={type:"video",id:1,sequencenumber:0,samples:[],length:0};null!=e&&(i.samples.push(e),i.length=e.length);var n={type:"audio",id:2,sequencenumber:0,samples:[],length:0};null!=t&&(n.samples.push(t),n.length=t.length),this._videostashedlastsample=null,this._audiostashedlastsample=null,this._remuxvideo(i,!0),this._remuxaudio(n,!0)},e.prototype._remuxaudio=function(e,t){if(null!=this._audiometa){var i,n=e,r=n.samples,a=void 0,h=-1,u=this._audiometa.refsampleduration,l="mp3"===this._audiometa.codec&&this._mp3usempegaudio,d=this._dtsbaseinited&&void 0===this._audionextdts,c=!1;if(r&&0!==r.length&&(1!==r.length||t)){var _=0,f=null,p=0;l?(_=0,p=n.length):(_=8,p=8+n.length);var m=null;if(r.length>1&&(p-=(m=r.pop()).length),null!=this._audiostashedlastsample){var g=this._audiostashedlastsample;this._audiostashedlastsample=null,r.unshift(g),p+=g.length}null!=m&&(this._audiostashedlastsample=m);var v=r[0].dts-this._dtsbase;if(this._audionextdts)a=v-this._audionextdts;else if(this._audiosegmentinfolist.isempty())a=0,this._fillsilentafterseek&&!this._videosegmentinfolist.isempty()&&"mp3"!==this._audiometa.originalcodec&&(c=!0);else{var s=this._audiosegmentinfolist.getlastsamplebefore(v);if(null!=s){var a=v-(s.originaldts+s.duration);a<=3&&(a=0),a=v-(s.dts+s.duration+a)}else a=0}if(c){var l=v-a,r=this._videosegmentinfolist.getlastsegmentbefore(v);if(null!=r&&r.begindts=3*u&&this._fillaudiotimestampgap&&!o.z.safari){i=!0;var p,u=math.floor(a/u);s.z.w(this.tag,"large audio timestamp gap detected, may cause av sync to drift. silent frames will be generated to avoid unsync.\noriginaldts: "+d+" ms, currefdts: "+x+" ms, dtscorrection: "+math.round(a)+" ms, generate: "+u+" frames"),w=math.floor(x),b=math.floor(x+u)-w,null==(p=b.getsilentframe(this._audiometa.originalcodec,this._audiometa.channelcount))&&(s.z.w(this.tag,"unable to generate silent frame for "+this._audiometa.originalcodec+" with "+this._audiometa.channelcount+" channels, repeat last frame"),p=k),m=[];for(var n=0;n=1?o[o.length-1].duration:math.floor(u);this._audionextdts=w+b}-1===h&&(h=w),o.push({dts:w,pts:w,cts:0,unit:g.unit,size:g.unit.bytelength,duration:b,originaldts:d,flags:{isleading:0,dependson:1,isdependedon:0,hasredundancy:0}}),i&&o.push.apply(o,m)}}if(0===o.length)return n.samples=[],void(n.length=0);l?f=new uint8array(p):((f=new uint8array(p))[0]=p>>>24&255,f[1]=p>>>16&255,f[2]=p>>>8&255,f[3]=255&p,f.set(y.types.mdat,4));for(c=0;c1&&(d-=(c=s.pop()).length),null!=this._videostashedlastsample){var _=this._videostashedlastsample;this._videostashedlastsample=null,s.unshift(_),d+=_.length}null!=c&&(this._videostashedlastsample=c);var f=s[0].dts-this._dtsbase;if(this._videonextdts)o=f-this._videonextdts;else if(this._videosegmentinfolist.isempty())o=0;else{var p=this._videosegmentinfolist.getlastsamplebefore(f);if(null!=p){var m=f-(p.originaldts+p.duration);m<=3&&(m=0),o=f-(p.dts+p.duration+m)}else o=0}for(var g=new e.yy,v=[],b=0;b=1?v[v.length-1].duration:math.floor(this._videometa.refsampleduration);if(a){var o=new e.wk(l,w,t,_.dts,!0);o.fileposition=_.fileposition,g.appendsyncpoint(o)}v.push({dts:l,pts:w,cts:r,units:_.units,size:_.length,iskeyframe:a,duration:t,originaldts:s,flags:{isleading:0,dependson:a?2:1,isdependedon:a?1:0,hasredundancy:0,isnonsync:a?0:1}})}(l=new uint8array(d))[0]=d>>>24&255,l[1]=d>>>16&255,l[2]=d>>>8&255,l[3]=255&d,l.set(y.types.mdat,4);for(b=0;b0)this._demuxer.binddatasource(this._ioctl),this._demuxer.timestampbase=this._mediadatasource.segments[this._currentsegmentindex].timestampbase,r=this._demuxer.parsechunks(e,t);else if((n=g.probe(e)).match){this._demuxer=new g(n,this._config),this._remuxer||(this._remuxer=new s(this._config));var o=this._mediadatasource;null==o.duration||isnan(o.duration)||(this._demuxer.overridedduration=o.duration),"boolean"==typeof o.hasaudio&&(this._demuxer.overridedhasaudio=o.hasaudio),"boolean"==typeof o.hasvideo&&(this._demuxer.overridedhasvideo=o.hasvideo),this._demuxer.timestampbase=o.segments[this._currentsegmentindex].timestampbase,this._demuxer.onerror=this._ondemuxexception.bind(this),this._demuxer.onmediainfo=this._onmediainfo.bind(this),this._demuxer.onmetadataarrived=this._onmetadataarrived.bind(this),this._demuxer.onscriptdataarrived=this._onscriptdataarrived.bind(this),this._remuxer.binddatasource(this._demuxer.binddatasource(this._ioctl)),this._remuxer.oninitsegment=this._onremuxerinitsegmentarrival.bind(this),this._remuxer.onmediasegment=this._onremuxermediasegmentarrival.bind(this),r=this._demuxer.parsechunks(e,t)}else n=null,s.z.e(this.tag,"non-flv, unsupported media type!"),promise.resolve().then((function(){i._internalabort()})),this._emitter.emit(l.z.demux_error,m.z.format_unsupported,"non-flv, unsupported media type"),r=0;return r},e.prototype._onmediainfo=function(e){var t=this;null==this._mediainfo&&(this._mediainfo=object.assign({},e),this._mediainfo.keyframesindex=null,this._mediainfo.segments=[],this._mediainfo.segmentcount=this._mediadatasource.segments.length,object.setprototypeof(this._mediainfo,a.z.prototype));var i=object.assign({},e);object.setprototypeof(i,a.z.prototype),this._mediainfo.segments[this._currentsegmentindex]=i,this._reportsegmentmediainfo(this._currentsegmentindex),null!=this._pendingseektime&&promise.resolve().then((function(){var e=t._pendingseektime;t._pendingseektime=null,t.seek(e)}))},e.prototype._onmetadataarrived=function(e){this._emitter.emit(l.z.metadata_arrived,e)},e.prototype._onscriptdataarrived=function(e){this._emitter.emit(l.z.scriptdata_arrived,e)},e.prototype._onioseeked=function(){this._remuxer.insertdiscontinuity()},e.prototype._oniocomplete=function(e){var t=e+1;t0&&i[0].originaldts===n&&(n=i[0].pts),this._emitter.emit(l.z.recommend_seekpoint,n)}},e.prototype._enablestatisticsreporter=function(){null==this._statisticsreporter&&(this._statisticsreporter=self.setinterval(this._reportstatisticsinfo.bind(this),this._config.statisticsinforeportinterval))},e.prototype._disablestatisticsreporter=function(){this._statisticsreporter&&(self.clearinterval(this._statisticsreporter),this._statisticsreporter=null)},e.prototype._reportsegmentmediainfo=function(e){var t=this._mediainfo.segments[e],i=object.assign({},t);i.duration=this._mediainfo.duration,i.segmentcount=this._mediainfo.segmentcount,delete i.segments,delete i.keyframesindex,this._emitter.emit(l.z.media_info,i)},e.prototype._reportstatisticsinfo=function(){var e={};e.url=this._ioctl.currenturl,e.hasredirect=this._ioctl.hasredirect,e.hasredirect&&(e.redirectedurl=this._ioctl.currentredirectedurl),e.speed=this._ioctl.currentspeed,e.loadertype=this._ioctl.loadertype,e.currentsegmentindex=this._currentsegmentindex,e.totalsegmentcount=this._mediadatasource.segments.length,this._emitter.emit(l.z.statistics_info,e)},e}()},257:function(e,t){"use strict";t.z={io_error:"io_error",demux_error:"demux_error",init_segment:"init_segment",media_segment:"media_segment",loading_complete:"loading_complete",recovered_early_eof:"recovered_early_eof",media_info:"media_info",metadata_arrived:"metadata_arrived",scriptdata_arrived:"scriptdata_arrived",statistics_info:"statistics_info",recommend_seekpoint:"recommend_seekpoint"}},82:function(e,t,i){"use strict";i(846),i(219),i(949),i(257)},600:function(e,t){"use strict";t.z={ok:"ok",format_error:"formaterror",format_unsupported:"formatunsupported",codec_unsupported:"codecunsupported"}},60:function(e,t,i){"use strict";i.d(t,{default:function(){return d}});var n=i(219),r=i(191),s={enableworker:!1,enablestashbuffer:!0,stashinitialsize:void 0,islive:!1,lazyload:!0,lazyloadmaxduration:180,lazyloadrecoverduration:30,deferloadaftersourceopen:!0,autocleanupmaxbackwardduration:180,autocleanupminbackwardduration:120,statisticsinforeportinterval:600,fixaudiotimestampgap:!0,accurateseek:!1,seektype:"range",seekparamstart:"bstart",seekparamend:"bend",rangeloadzerostart:!1,customseekhandler:void 0,reuseredirectedurl:!1,headers:void 0,customloader:void 0};function o(){return object.assign({},s)}var a=function(){function e(){}return e.supportmseh264playback=function(){return window.mediasource&&window.mediasource.istypesupported('video/mp4; codecs="avc1.42e01e,mp4a.40.2"')},e.supportnetworkstreamio=function(){var e=new r.z({},o()),t=e.loadertype;return e.destroy(),"fetch-stream-loader"==t||"xhr-moz-chunked-loader"==t},e.getnetworkloadertypename=function(){var e=new r.z({},o()),t=e.loadertype;return e.destroy(),t},e.supportnativemediaplayback=function(t){null==e.videoelement&&(e.videoelement=window.document.createelement("video"));var i=e.videoelement.canplaytype(t);return"probably"===i||"maybe"==i},e.getfeaturelist=function(){var t={mseflvplayback:!1,mseliveflvplayback:!1,networkstreamio:!1,networkloadername:"",nativemp4h264playback:!1,nativewebmvp8playback:!1,nativewebmvp9playback:!1};return t.mseflvplayback=e.supportmseh264playback(),t.networkstreamio=e.supportnetworkstreamio(),t.networkloadername=e.getnetworkloadertypename(),t.mseliveflvplayback=t.mseflvplayback&&t.networkstreamio,t.nativemp4h264playback=e.supportnativemediaplayback('video/mp4; codecs="avc1.42001e, mp4a.40.2"'),t.nativewebmvp8playback=e.supportnativemediaplayback('video/webm; codecs="vp8.0, vorbis"'),t.nativewebmvp9playback=e.supportnativemediaplayback('video/webm; codecs="vp9"'),t},e}(),h=i(939),u=i(716),l=i.n(u),d=i(300),c=i(538),_={error:"error",loading_complete:"loading_complete",recovered_early_eof:"recovered_early_eof",media_info:"media_info",metadata_arrived:"metadata_arrived",scriptdata_arrived:"scriptdata_arrived",statistics_info:"statistics_info"},f=i(397),p=i.n(f),m=i(846),g=i(949),v=i(257),y=i(118),b=function(){function e(e,t){if(this.tag="transmuxer",this._emitter=new(l()),t.enableworker&&"undefined"!=typeof worker)try{this._worker=p()(82),this._workerdestroying=!1,this._worker.addeventlistener("message",this._onworkermessage.bind(this)),this._worker.postmessage({cmd:"init",param:[e,t]}),this.e={onloggingconfigchanged:this._onloggingconfigchanged.bind(this)},m.z.registerlistener(this.e.onloggingconfigchanged),this._worker.postmessage({cmd:"logging_config",param:m.z.getconfig()})}catch(i){d.z.e(this.tag,"error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new g.z(e,t)}else this._controller=new g.z(e,t);if(this._controller){var i=this._controller;i.on(v.z.io_error,this._onioerror.bind(this)),i.on(v.z.demux_error,this._ondemuxerror.bind(this)),i.on(v.z.init_segment,this._oninitsegment.bind(this)),i.on(v.z.media_segment,this._onmediasegment.bind(this)),i.on(v.z.loading_complete,this._onloadingcomplete.bind(this)),i.on(v.z.recovered_early_eof,this._onrecoveredearlyeof.bind(this)),i.on(v.z.media_info,this._onmediainfo.bind(this)),i.on(v.z.metadata_arrived,this._onmetadataarrived.bind(this)),i.on(v.z.scriptdata_arrived,this._onscriptdataarrived.bind(this)),i.on(v.z.statistics_info,this._onstatisticsinfo.bind(this)),i.on(v.z.recommend_seekpoint,this._onrecommendseekpoint.bind(this))}}return e.prototype.destroy=function(){this._worker?this._workerdestroying||(this._workerdestroying=!0,this._worker.postmessage({cmd:"destroy"}),m.z.removelistener(this.e.onloggingconfigchanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removealllisteners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addlistener(e,t)},e.prototype.off=function(e,t){this._emitter.removelistener(e,t)},e.prototype.hasworker=function(){return null!=this._worker},e.prototype.open=function(){this._worker?this._worker.postmessage({cmd:"start"}):this._controller.start()},e.prototype.close=function(){this._worker?this._worker.postmessage({cmd:"stop"}):this._controller.stop()},e.prototype.seek=function(e){this._worker?this._worker.postmessage({cmd:"seek",param:e}):this._controller.seek(e)},e.prototype.pause=function(){this._worker?this._worker.postmessage({cmd:"pause"}):this._controller.pause()},e.prototype.resume=function(){this._worker?this._worker.postmessage({cmd:"resume"}):this._controller.resume()},e.prototype._oninitsegment=function(e,t){var i=this;promise.resolve().then((function(){i._emitter.emit(v.z.init_segment,e,t)}))},e.prototype._onmediasegment=function(e,t){var i=this;promise.resolve().then((function(){i._emitter.emit(v.z.media_segment,e,t)}))},e.prototype._onloadingcomplete=function(){var e=this;promise.resolve().then((function(){e._emitter.emit(v.z.loading_complete)}))},e.prototype._onrecoveredearlyeof=function(){var e=this;promise.resolve().then((function(){e._emitter.emit(v.z.recovered_early_eof)}))},e.prototype._onmediainfo=function(e){var t=this;promise.resolve().then((function(){t._emitter.emit(v.z.media_info,e)}))},e.prototype._onmetadataarrived=function(e){var t=this;promise.resolve().then((function(){t._emitter.emit(v.z.metadata_arrived,e)}))},e.prototype._onscriptdataarrived=function(e){var t=this;promise.resolve().then((function(){t._emitter.emit(v.z.scriptdata_arrived,e)}))},e.prototype._onstatisticsinfo=function(e){var t=this;promise.resolve().then((function(){t._emitter.emit(v.z.statistics_info,e)}))},e.prototype._onioerror=function(e,t){var i=this;promise.resolve().then((function(){i._emitter.emit(v.z.io_error,e,t)}))},e.prototype._ondemuxerror=function(e,t){var i=this;promise.resolve().then((function(){i._emitter.emit(v.z.demux_error,e,t)}))},e.prototype._onrecommendseekpoint=function(e){var t=this;promise.resolve().then((function(){t._emitter.emit(v.z.recommend_seekpoint,e)}))},e.prototype._onloggingconfigchanged=function(e){this._worker&&this._worker.postmessage({cmd:"logging_config",param:e})},e.prototype._onworkermessage=function(e){var t=e.data,i=t.data;if("destroyed"===t.msg||this._workerdestroying)return this._workerdestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case v.z.init_segment:case v.z.media_segment:this._emitter.emit(t.msg,i.type,i.data);break;case v.z.loading_complete:case v.z.recovered_early_eof:this._emitter.emit(t.msg);break;case v.z.media_info:object.setprototypeof(i,y.z.prototype),this._emitter.emit(t.msg,i);break;case v.z.metadata_arrived:case v.z.scriptdata_arrived:case v.z.statistics_info:this._emitter.emit(t.msg,i);break;case v.z.io_error:case v.z.demux_error:this._emitter.emit(t.msg,i.type,i.info);break;case v.z.recommend_seekpoint:this._emitter.emit(t.msg,i);break;case"logcat_callback":d.z.emitter.emit("log",i.type,i.logcat)}},e}(),e={error:"error",source_open:"source_open",update_end:"update_end",buffer_full:"buffer_full"},s=i(51),a=i(29),l=function(){function e(e){this.tag="msecontroller",this._config=e,this._emitter=new(l()),this._config.islive&&null==this._config.autocleanupsourcebuffer&&(this._config.autocleanupsourcebuffer=!0),this.e={onsourceopen:this._onsourceopen.bind(this),onsourceended:this._onsourceended.bind(this),onsourceclose:this._onsourceclose.bind(this),onsourcebuffererror:this._onsourcebuffererror.bind(this),onsourcebufferupdateend:this._onsourcebufferupdateend.bind(this)},this._mediasource=null,this._mediasourceobjecturl=null,this._mediaelement=null,this._isbufferfull=!1,this._haspendingeos=!1,this._requiresetmediaduration=!1,this._pendingmediaduration=0,this._pendingsourcebufferinit=[],this._mimetypes={video:null,audio:null},this._sourcebuffers={video:null,audio:null},this._lastinitsegments={video:null,audio:null},this._pendingsegments={video:[],audio:[]},this._pendingremoveranges={video:[],audio:[]},this._idrlist=new s.vn}return e.prototype.destroy=function(){(this._mediaelement||this._mediasource)&&this.detachmediaelement(),this.e=null,this._emitter.removealllisteners(),this._emitter=null},e.prototype.on=function(e,t){this._emitter.addlistener(e,t)},e.prototype.off=function(e,t){this._emitter.removelistener(e,t)},e.prototype.attachmediaelement=function(e){if(this._mediasource)throw new a.rt("mediasource has been attached to an htmlmediaelement!");var t=this._mediasource=new window.mediasource;t.addeventlistener("sourceopen",this.e.onsourceopen),t.addeventlistener("sourceended",this.e.onsourceended),t.addeventlistener("sourceclose",this.e.onsourceclose),this._mediaelement=e,this._mediasourceobjecturl=window.url.createobjecturl(this._mediasource),e.src=this._mediasourceobjecturl},e.prototype.detachmediaelement=function(){if(this._mediasource){var e=this._mediasource;for(var t in this._sourcebuffers){var i=this._pendingsegments[t];i.splice(0,i.length),this._pendingsegments[t]=null,this._pendingremoveranges[t]=null,this._lastinitsegments[t]=null;var n=this._sourcebuffers[t];if(n){if("closed"!==e.readystate){try{e.removesourcebuffer(n)}catch(e){d.z.e(this.tag,e.message)}n.removeeventlistener("error",this.e.onsourcebuffererror),n.removeeventlistener("updateend",this.e.onsourcebufferupdateend)}this._mimetypes[t]=null,this._sourcebuffers[t]=null}}if("open"===e.readystate)try{e.endofstream()}catch(e){d.z.e(this.tag,e.message)}e.removeeventlistener("sourceopen",this.e.onsourceopen),e.removeeventlistener("sourceended",this.e.onsourceended),e.removeeventlistener("sourceclose",this.e.onsourceclose),this._pendingsourcebufferinit=[],this._isbufferfull=!1,this._idrlist.clear(),this._mediasource=null}this._mediaelement&&(this._mediaelement.src="",this._mediaelement.removeattribute("src"),this._mediaelement=null),this._mediasourceobjecturl&&(window.url.revokeobjecturl(this._mediasourceobjecturl),this._mediasourceobjecturl=null)},e.prototype.appendinitsegment=function(e,t){if(!this._mediasource||"open"!==this._mediasource.readystate)return this._pendingsourcebufferinit.push(e),void this._pendingsegments[e.type].push(e);var i=e,n=""+i.container;i.codec&&i.codec.length>0&&(n+=";codecs="+i.codec);var r=!1;if(d.z.v(this.tag,"received initialization segment, mimetype: "+n),this._lastinitsegments[i.type]=i,n!==this._mimetypes[i.type]){if(this._mimetypes[i.type])d.z.v(this.tag,"notice: "+i.type+" mimetype changed, origin: "+this._mimetypes[i.type]+", target: "+n);else{r=!0;try{var s=this._sourcebuffers[i.type]=this._mediasource.addsourcebuffer(n);s.addeventlistener("error",this.e.onsourcebuffererror),s.addeventlistener("updateend",this.e.onsourcebufferupdateend)}catch(e){return d.z.e(this.tag,e.message),void this._emitter.emit(e.error,{code:e.code,msg:e.message})}}this._mimetypes[i.type]=n}t||this._pendingsegments[i.type].push(i),r||this._sourcebuffers[i.type]&&!this._sourcebuffers[i.type].updating&&this._doappendsegments(),c.z.safari&&"audio/mpeg"===i.container&&i.mediaduration>0&&(this._requiresetmediaduration=!0,this._pendingmediaduration=i.mediaduration/1e3,this._updatemediasourceduration())},e.prototype.appendmediasegment=function(e){var t=e;this._pendingsegments[t.type].push(t),this._config.autocleanupsourcebuffer&&this._needcleanupsourcebuffer()&&this._docleanupsourcebuffer();var i=this._sourcebuffers[t.type];!i||i.updating||this._haspendingremoveranges()||this._doappendsegments()},e.prototype.seek=function(e){for(var t in this._sourcebuffers)if(this._sourcebuffers[t]){var i=this._sourcebuffers[t];if("open"===this._mediasource.readystate)try{i.abort()}catch(e){d.z.e(this.tag,e.message)}this._idrlist.clear();var n=this._pendingsegments[t];if(n.splice(0,n.length),"closed"!==this._mediasource.readystate){for(var r=0;r=1&&e-n.start(0)>=this._config.autocleanupmaxbackwardduration)return!0}}return!1},e.prototype._docleanupsourcebuffer=function(){var e=this._mediaelement.currenttime;for(var t in this._sourcebuffers){var i=this._sourcebuffers[t];if(i){for(var n=i.buffered,r=!1,s=0;s=this._config.autocleanupmaxbackwardduration){r=!0;var h=e-this._config.autocleanupminbackwardduration;this._pendingremoveranges[t].push({start:o,end:h})}}else a0&&(isnan(t)||i>t)&&(d.z.v(this.tag,"update mediasource duration from "+t+" to "+i),this._mediasource.duration=i),this._requiresetmediaduration=!1,this._pendingmediaduration=0}},e.prototype._doremoveranges=function(){for(var e in this._pendingremoveranges)if(this._sourcebuffers[e]&&!this._sourcebuffers[e].updating)for(var t=this._sourcebuffers[e],i=this._pendingremoveranges[e];i.length&&!t.updating;){var n=i.shift();t.remove(n.start,n.end)}},e.prototype._doappendsegments=function(){var e=this._pendingsegments;for(var t in e)if(this._sourcebuffers[t]&&!this._sourcebuffers[t].updating&&e[t].length>0){var i=e[t].shift();if(i.timestampoffset){var n=this._sourcebuffers[t].timestampoffset,r=i.timestampoffset/1e3;math.abs(n-r)>.1&&(d.z.v(this.tag,"update mpeg audio timestampoffset from "+n+" to "+r),this._sourcebuffers[t].timestampoffset=r),delete i.timestampoffset}if(!i.data||0===i.data.bytelength)continue;try{this._sourcebuffers[t].appendbuffer(i.data),this._isbufferfull=!1,"video"===t&&i.hasownproperty("info")&&this._idrlist.appendarray(i.info.syncpoints)}catch(e){this._pendingsegments[t].unshift(i),22===e.code?(this._isbufferfull||this._emitter.emit(e.buffer_full),this._isbufferfull=!0):(d.z.e(this.tag,e.message),this._emitter.emit(e.error,{code:e.code,msg:e.message}))}}},e.prototype._onsourceopen=function(){if(d.z.v(this.tag,"mediasource onsourceopen"),this._mediasource.removeeventlistener("sourceopen",this.e.onsourceopen),this._pendingsourcebufferinit.length>0)for(var e=this._pendingsourcebufferinit;e.length;){var t=e.shift();this.appendinitsegment(t,!0)}this._haspendingsegments()&&this._doappendsegments(),this._emitter.emit(e.source_open)},e.prototype._onsourceended=function(){d.z.v(this.tag,"mediasource onsourceended")},e.prototype._onsourceclose=function(){d.z.v(this.tag,"mediasource onsourceclose"),this._mediasource&&null!=this.e&&(this._mediasource.removeeventlistener("sourceopen",this.e.onsourceopen),this._mediasource.removeeventlistener("sourceended",this.e.onsourceended),this._mediasource.removeeventlistener("sourceclose",this.e.onsourceclose))},e.prototype._haspendingsegments=function(){var e=this._pendingsegments;return e.video.length>0||e.audio.length>0},e.prototype._haspendingremoveranges=function(){var e=this._pendingremoveranges;return e.video.length>0||e.audio.length>0},e.prototype._onsourcebufferupdateend=function(){this._requiresetmediaduration?this._updatemediasourceduration():this._haspendingremoveranges()?this._doremoveranges():this._haspendingsegments()?this._doappendsegments():this._haspendingeos&&this.endofstream(),this._emitter.emit(e.update_end)},e.prototype._onsourcebuffererror=function(e){d.z.e(this.tag,"sourcebuffer error: "+e)},e}(),r=i(600),w={network_error:"networkerror",media_error:"mediaerror",other_error:"othererror"},t={network_exception:h.nm.exception,network_status_code_invalid:h.nm.http_status_code_invalid,network_timeout:h.nm.connecting_timeout,network_unrecoverable_early_eof:h.nm.unrecoverable_early_eof,media_mse_error:"mediamseerror",media_format_error:r.z.format_error,media_format_unsupported:r.z.format_unsupported,media_codec_unsupported:r.z.codec_unsupported},o=function(){function e(e,t){if(this.tag="flvplayer",this._type="flvplayer",this._emitter=new(l()),this._config=o(),"object"==typeof t&&object.assign(this._config,t),"flv"!==e.type.tolowercase())throw new a.oc("flvplayer requires an flv mediadatasource input!");!0===e.islive&&(this._config.islive=!0),this.e={onvloadedmetadata:this._onvloadedmetadata.bind(this),onvseeking:this._onvseeking.bind(this),onvcanplay:this._onvcanplay.bind(this),onvstalled:this._onvstalled.bind(this),onvprogress:this._onvprogress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=date.now,this._pendingseektime=null,this._requestsettime=!1,this._seekpointrecord=null,this._progresschecker=null,this._mediadatasource=e,this._mediaelement=null,this._msectl=null,this._transmuxer=null,this._msesourceopened=!1,this._haspendingload=!1,this._receivedcanplay=!1,this._mediainfo=null,this._statisticsinfo=null;var i=c.z.chrome&&(c.z.version.major<50||50===c.z.version.major&&c.z.version.build<2661);this._alwaysseekkeyframe=!!(i||c.z.msedge||c.z.msie),this._alwaysseekkeyframe&&(this._config.accurateseek=!1)}return e.prototype.destroy=function(){null!=this._progresschecker&&(window.clearinterval(this._progresschecker),this._progresschecker=null),this._transmuxer&&this.unload(),this._mediaelement&&this.detachmediaelement(),this.e=null,this._mediadatasource=null,this._emitter.removealllisteners(),this._emitter=null},e.prototype.on=function(e,t){var i=this;e===_.media_info?null!=this._mediainfo&&promise.resolve().then((function(){i._emitter.emit(_.media_info,i.mediainfo)})):e===_.statistics_info&&null!=this._statisticsinfo&&promise.resolve().then((function(){i._emitter.emit(_.statistics_info,i.statisticsinfo)})),this._emitter.addlistener(e,t)},e.prototype.off=function(e,t){this._emitter.removelistener(e,t)},e.prototype.attachmediaelement=function(e){var t=this;if(this._mediaelement=e,e.addeventlistener("loadedmetadata",this.e.onvloadedmetadata),e.addeventlistener("seeking",this.e.onvseeking),e.addeventlistener("canplay",this.e.onvcanplay),e.addeventlistener("stalled",this.e.onvstalled),e.addeventlistener("progress",this.e.onvprogress),this._msectl=new l(this._config),this._msectl.on(e.update_end,this._onmseupdateend.bind(this)),this._msectl.on(e.buffer_full,this._onmsebufferfull.bind(this)),this._msectl.on(e.source_open,(function(){t._msesourceopened=!0,t._haspendingload&&(t._haspendingload=!1,t.load())})),this._msectl.on(e.error,(function(e){t._emitter.emit(_.error,w.media_error,t.media_mse_error,e)})),this._msectl.attachmediaelement(e),null!=this._pendingseektime)try{e.currenttime=this._pendingseektime,this._pendingseektime=null}catch(e){}},e.prototype.detachmediaelement=function(){this._mediaelement&&(this._msectl.detachmediaelement(),this._mediaelement.removeeventlistener("loadedmetadata",this.e.onvloadedmetadata),this._mediaelement.removeeventlistener("seeking",this.e.onvseeking),this._mediaelement.removeeventlistener("canplay",this.e.onvcanplay),this._mediaelement.removeeventlistener("stalled",this.e.onvstalled),this._mediaelement.removeeventlistener("progress",this.e.onvprogress),this._mediaelement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)},e.prototype.load=function(){var e=this;if(!this._mediaelement)throw new a.rt("htmlmediaelement must be attached before load()!");if(this._transmuxer)throw new a.rt("flvplayer.load() has been called, please call unload() first!");this._haspendingload||(this._config.deferloadaftersourceopen&&!1===this._msesourceopened?this._haspendingload=!0:(this._mediaelement.readystate>0&&(this._requestsettime=!0,this._mediaelement.currenttime=0),this._transmuxer=new b(this._mediadatasource,this._config),this._transmuxer.on(v.z.init_segment,(function(t,i){e._msectl.appendinitsegment(i)})),this._transmuxer.on(v.z.media_segment,(function(t,i){if(e._msectl.appendmediasegment(i),e._config.lazyload&&!e._config.islive){var n=e._mediaelement.currenttime;i.info.enddts>=1e3*(n+e._config.lazyloadmaxduration)&&null==e._progresschecker&&(d.z.v(e.tag,"maximum buffering duration exceeded, suspend transmuxing task"),e._suspendtransmuxer())}})),this._transmuxer.on(v.z.loading_complete,(function(){e._msectl.endofstream(),e._emitter.emit(_.loading_complete)})),this._transmuxer.on(v.z.recovered_early_eof,(function(){e._emitter.emit(_.recovered_early_eof)})),this._transmuxer.on(v.z.io_error,(function(t,i){e._emitter.emit(_.error,w.network_error,t,i)})),this._transmuxer.on(v.z.demux_error,(function(t,i){e._emitter.emit(_.error,w.media_error,t,{code:-1,msg:i})})),this._transmuxer.on(v.z.media_info,(function(t){e._mediainfo=t,e._emitter.emit(_.media_info,object.assign({},t))})),this._transmuxer.on(v.z.metadata_arrived,(function(t){e._emitter.emit(_.metadata_arrived,t)})),this._transmuxer.on(v.z.scriptdata_arrived,(function(t){e._emitter.emit(_.scriptdata_arrived,t)})),this._transmuxer.on(v.z.statistics_info,(function(t){e._statisticsinfo=e._fillstatisticsinfo(t),e._emitter.emit(_.statistics_info,object.assign({},e._statisticsinfo))})),this._transmuxer.on(v.z.recommend_seekpoint,(function(t){e._mediaelement&&!e._config.accurateseek&&(e._requestsettime=!0,e._mediaelement.currenttime=t/1e3)})),this._transmuxer.open()))},e.prototype.unload=function(){this._mediaelement&&this._mediaelement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},e.prototype.play=function(){return this._mediaelement.play()},e.prototype.pause=function(){this._mediaelement.pause()},object.defineproperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"buffered",{get:function(){return this._mediaelement.buffered},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"duration",{get:function(){return this._mediaelement.duration},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"volume",{get:function(){return this._mediaelement.volume},set:function(e){this._mediaelement.volume=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"muted",{get:function(){return this._mediaelement.muted},set:function(e){this._mediaelement.muted=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"currenttime",{get:function(){return this._mediaelement?this._mediaelement.currenttime:0},set:function(e){this._mediaelement?this._internalseek(e):this._pendingseektime=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"mediainfo",{get:function(){return object.assign({},this._mediainfo)},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"statisticsinfo",{get:function(){return null==this._statisticsinfo&&(this._statisticsinfo={}),this._statisticsinfo=this._fillstatisticsinfo(this._statisticsinfo),object.assign({},this._statisticsinfo)},enumerable:!1,configurable:!0}),e.prototype._fillstatisticsinfo=function(e){if(e.playertype=this._type,!(this._mediaelement instanceof htmlvideoelement))return e;var t=!0,i=0,n=0;if(this._mediaelement.getvideoplaybackquality){var r=this._mediaelement.getvideoplaybackquality();i=r.totalvideoframes,n=r.droppedvideoframes}else null!=this._mediaelement.webkitdecodedframecount?(i=this._mediaelement.webkitdecodedframecount,n=this._mediaelement.webkitdroppedframecount):t=!1;return t&&(e.decodedframes=i,e.droppedframes=n),e},e.prototype._onmseupdateend=function(){if(this._config.lazyload&&!this._config.islive){for(var e=this._mediaelement.buffered,t=this._mediaelement.currenttime,i=0,n=0;n=t+this._config.lazyloadmaxduration&&null==this._progresschecker&&(d.z.v(this.tag,"maximum buffering duration exceeded, suspend transmuxing task"),this._suspendtransmuxer())}},e.prototype._onmsebufferfull=function(){d.z.v(this.tag,"mse sourcebuffer is full, suspend transmuxing task"),null==this._progresschecker&&this._suspendtransmuxer()},e.prototype._suspendtransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),null==this._progresschecker&&(this._progresschecker=window.setinterval(this._checkprogressandresume.bind(this),1e3)))},e.prototype._checkprogressandresume=function(){for(var e=this._mediaelement.currenttime,t=this._mediaelement.buffered,i=!1,n=0;n=r&&e=s-this._config.lazyloadrecoverduration&&(i=!0);break}}i&&(window.clearinterval(this._progresschecker),this._progresschecker=null,i&&(d.z.v(this.tag,"continue loading from paused position"),this._transmuxer.resume()))},e.prototype._istimepointbuffered=function(e){for(var t=this._mediaelement.buffered,i=0;i=n&&e0){var r=this._mediaelement.buffered.start(0);(r<1&&e0&&t.currenttime0){var n=i.start(0);if(n<1&&t0&&(this._mediaelement.currenttime=0),this._mediaelement.preload="auto",this._mediaelement.load(),this._statisticsreporter=window.setinterval(this._reportstatisticsinfo.bind(this),this._config.statisticsinforeportinterval)},e.prototype.unload=function(){this._mediaelement&&(this._mediaelement.src="",this._mediaelement.removeattribute("src")),null!=this._statisticsreporter&&(window.clearinterval(this._statisticsreporter),this._statisticsreporter=null)},e.prototype.play=function(){return this._mediaelement.play()},e.prototype.pause=function(){this._mediaelement.pause()},object.defineproperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"buffered",{get:function(){return this._mediaelement.buffered},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"duration",{get:function(){return this._mediaelement.duration},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"volume",{get:function(){return this._mediaelement.volume},set:function(e){this._mediaelement.volume=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"muted",{get:function(){return this._mediaelement.muted},set:function(e){this._mediaelement.muted=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"currenttime",{get:function(){return this._mediaelement?this._mediaelement.currenttime:0},set:function(e){this._mediaelement?this._mediaelement.currenttime=e:this._pendingseektime=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"mediainfo",{get:function(){var e={mimetype:(this._mediaelement instanceof htmlaudioelement?"audio/":"video/")+this._mediadatasource.type};return this._mediaelement&&(e.duration=math.floor(1e3*this._mediaelement.duration),this._mediaelement instanceof htmlvideoelement&&(e.width=this._mediaelement.videowidth,e.height=this._mediaelement.videoheight)),e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"statisticsinfo",{get:function(){var e={playertype:this._type,url:this._mediadatasource.url};if(!(this._mediaelement instanceof htmlvideoelement))return e;var t=!0,i=0,n=0;if(this._mediaelement.getvideoplaybackquality){var r=this._mediaelement.getvideoplaybackquality();i=r.totalvideoframes,n=r.droppedvideoframes}else null!=this._mediaelement.webkitdecodedframecount?(i=this._mediaelement.webkitdecodedframecount,n=this._mediaelement.webkitdroppedframecount):t=!1;return t&&(e.decodedframes=i,e.droppedframes=n),e},enumerable:!1,configurable:!0}),e.prototype._onvloadedmetadata=function(e){null!=this._pendingseektime&&(this._mediaelement.currenttime=this._pendingseektime,this._pendingseektime=null),this._emitter.emit(_.media_info,this.mediainfo)},e.prototype._reportstatisticsinfo=function(){this._emitter.emit(_.statistics_info,this.statisticsinfo)},e}();n.z.install();var k={createplayer:function(e,t){var i=e;if(null==i||"object"!=typeof i)throw new a.oc("mediadatasource must be an javascript object!");if(!i.hasownproperty("type"))throw new a.oc("mediadatasource must has type field to indicate video file type!");switch(i.type){case"flv":return new o(i,t);default:return new c(i,t)}},issupported:function(){return a.supportmseh264playback()},getfeaturelist:function(){return a.getfeaturelist()}};k.baseloader=h.fp,k.loaderstatus=h.gm,k.loadererrors=h.nm,k.events=_,k.errortypes=w,k.errordetails=t,k.flvplayer=o,k.nativeplayer=c,k.loggingcontrol=m.z,object.defineproperty(k,"version",{enumerable:!0,get:function(){return"1.6.1"}});var d=k},324:function(e,t,i){e.exports=i(60).default},191:function(e,t,i){"use strict";i.d(t,{z:function(){return y}});var n,r=i(300),s=function(){function 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 e.prototype.reset=function(){this._firstcheckpoint=this._lastcheckpoint=0,this._totalbytes=this._intervalbytes=0,this._lastsecondbytes=0},e.prototype.addbytes=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())},object.defineproperty(e.prototype,"currentkbps",{get:function(){this.addbytes(0);var e=(this._now()-this._lastcheckpoint)/1e3;return 0==e&&(e=1),this._intervalbytes/e/1024},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"lastsecondkbps",{get:function(){return this.addbytes(0),0!==this._lastsecondbytes?this._lastsecondbytes/1024:this._now()-this._lastcheckpoint>=500?this.currentkbps:0},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"averagekbps",{get:function(){var e=(this._now()-this._firstcheckpoint)/1e3;return this._totalbytes/e/1024},enumerable:!1,configurable:!0}),e}(),o=i(939),a=i(538),h=i(29),u=(n=function(e,t){return(n=object.setprototypeof||{__proto__:[]}instanceof array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)object.prototype.hasownproperty.call(t,i)&&(e[i]=t[i])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("class extends value "+string(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?object.create(t):(i.prototype=t.prototype,new i)}),l=function(e){function t(t,i){var n=e.call(this,"fetch-stream-loader")||this;return n.tag="fetchstreamloader",n._seekhandler=t,n._config=i,n._needstash=!0,n._requestabort=!1,n._contentlength=null,n._receivedlength=0,n}return u(t,e),t.issupported=function(){try{var e=a.z.msedge&&a.z.version.minor>=15048,t=!a.z.msedge||e;return self.fetch&&self.readablestream&&t}catch(e){return!1}},t.prototype.destroy=function(){this.isworking()&&this.abort(),e.prototype.destroy.call(this)},t.prototype.open=function(e,t){var i=this;this._datasource=e,this._range=t;var n=e.url;this._config.reuseredirectedurl&&null!=e.redirectedurl&&(n=e.redirectedurl);var r=this._seekhandler.getconfig(n,t),s=new self.headers;if("object"==typeof r.headers){var a=r.headers;for(var u in a)a.hasownproperty(u)&&s.append(u,a[u])}var l={method:"get",headers:s,mode:"cors",cache:"default",referrerpolicy:"no-referrer-when-downgrade"};if("object"==typeof this._config.headers)for(var u in this._config.headers)s.append(u,this._config.headers[u]);!1===e.cors&&(l.mode="same-origin"),e.withcredentials&&(l.credentials="include"),e.referrerpolicy&&(l.referrerpolicy=e.referrerpolicy),self.abortcontroller&&(this._abortcontroller=new self.abortcontroller,l.signal=this._abortcontroller.signal),this._status=o.gm.kconnecting,self.fetch(r.url,l).then((function(e){if(i._requestabort)return i._status=o.gm.kidle,void e.body.cancel();if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==r.url&&i._onurlredirect){var t=i._seekhandler.removeurlparameters(e.url);i._onurlredirect(t)}var n=e.headers.get("content-length");return null!=n&&(i._contentlength=parseint(n),0!==i._contentlength&&i._oncontentlengthknown&&i._oncontentlengthknown(i._contentlength)),i._pump.call(i,e.body.getreader())}if(i._status=o.gm.kerror,!i._onerror)throw new h.oz("fetchstreamloader: http code invalid, "+e.status+" "+e.statustext);i._onerror(o.nm.http_status_code_invalid,{code:e.status,msg:e.statustext})})).catch((function(e){if(!i._abortcontroller||!i._abortcontroller.signal.aborted){if(i._status=o.gm.kerror,!i._onerror)throw e;i._onerror(o.nm.exception,{code:-1,msg:e.message})}}))},t.prototype.abort=function(){if(this._requestabort=!0,(this._status!==o.gm.kbuffering||!a.z.chrome)&&this._abortcontroller)try{this._abortcontroller.abort()}catch(e){}},t.prototype._pump=function(e){var t=this;return e.read().then((function(i){if(i.done)if(null!==t._contentlength&&t._receivedlength299)){if(this._status=o.gm.kerror,!this._onerror)throw new h.oz("mozchunkedloader: http code invalid, "+t.status+" "+t.statustext);this._onerror(o.nm.http_status_code_invalid,{code:t.status,msg:t.statustext})}else this._status=o.gm.kbuffering}},t.prototype._onprogress=function(e){if(this._status!==o.gm.kerror){null===this._contentlength&&null!==e.total&&0!==e.total&&(this._contentlength=e.total,this._oncontentlengthknown&&this._oncontentlengthknown(this._contentlength));var t=e.target.response,i=this._range.from+this._receivedlength;this._receivedlength+=t.bytelength,this._ondataarrival&&this._ondataarrival(t,i,this._receivedlength)}},t.prototype._onloadend=function(e){!0!==this._requestabort?this._status!==o.gm.kerror&&(this._status=o.gm.kcomplete,this._oncomplete&&this._oncomplete(this._range.from,this._range.from+this._receivedlength-1)):this._requestabort=!1},t.prototype._onxhrerror=function(e){this._status=o.gm.kerror;var t=0,i=null;if(this._contentlength&&e.loaded=this._contentlength&&(i=this._range.from+this._contentlength-1),this._currentrequestrange={from:t,to:i},this._internalopen(this._datasource,this._currentrequestrange)},t.prototype._internalopen=function(e,t){this._lasttimeloaded=0;var i=e.url;this._config.reuseredirectedurl&&(null!=this._currentredirectedurl?i=this._currentredirectedurl:null!=e.redirectedurl&&(i=e.redirectedurl));var n=this._seekhandler.getconfig(i,t);this._currentrequesturl=n.url;var r=this._xhr=new xmlhttprequest;if(r.open("get",n.url,!0),r.responsetype="arraybuffer",r.onreadystatechange=this._onreadystatechange.bind(this),r.onprogress=this._onprogress.bind(this),r.onload=this._onload.bind(this),r.onerror=this._onxhrerror.bind(this),e.withcredentials&&(r.withcredentials=!0),"object"==typeof n.headers){var s=n.headers;for(var o in s)s.hasownproperty(o)&&r.setrequestheader(o,s[o])}if("object"==typeof this._config.headers){s=this._config.headers;for(var o in s)s.hasownproperty(o)&&r.setrequestheader(o,s[o])}r.send()},t.prototype.abort=function(){this._requestabort=!0,this._internalabort(),this._status=o.gm.kcomplete},t.prototype._internalabort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},t.prototype._onreadystatechange=function(e){var t=e.target;if(2===t.readystate){if(null!=t.responseurl){var i=this._seekhandler.removeurlparameters(t.responseurl);t.responseurl!==this._currentrequesturl&&i!==this._currentredirectedurl&&(this._currentredirectedurl=i,this._onurlredirect&&this._onurlredirect(i))}if(t.status>=200&&t.status<=299){if(this._waitfortotallength)return;this._status=o.gm.kbuffering}else{if(this._status=o.gm.kerror,!this._onerror)throw new h.oz("rangeloader: http code invalid, "+t.status+" "+t.statustext);this._onerror(o.nm.http_status_code_invalid,{code:t.status,msg:t.statustext})}}},t.prototype._onprogress=function(e){if(this._status!==o.gm.kerror){if(null===this._contentlength){var t=!1;if(this._waitfortotallength){this._waitfortotallength=!1,this._totallengthreceived=!0,t=!0;var i=e.total;this._internalabort(),null!=i&0!==i&&(this._totallength=i)}if(-1===this._range.to?this._contentlength=this._totallength-this._range.from:this._contentlength=this._range.to-this._range.from+1,t)return void this._opensubrange();this._oncontentlengthknown&&this._oncontentlengthknown(this._contentlength)}var n=e.loaded-this._lasttimeloaded;this._lasttimeloaded=e.loaded,this._speedsampler.addbytes(n)}},t.prototype._normalizespeed=function(e){var t=this._chunksizekblist,i=t.length-1,n=0,r=0,s=i;if(e=t[n]&&e=3&&(t=this._speedsampler.currentkbps)),0!==t){var i=this._normalizespeed(t);this._currentspeednormalized!==i&&(this._currentspeednormalized=i,this._currentchunksizekb=i)}var n=e.target.response,r=this._range.from+this._receivedlength;this._receivedlength+=n.bytelength;var s=!1;null!=this._contentlength&&this._receivedlength0&&this._receivedlength0)for(var s=i.split("&"),o=0;o0;a[0]!==this._startname&&a[0]!==this._endname&&(h&&(r+="&"),r+=s[o])}return 0===r.length?t:t+"?"+r},e}(),y=function(){function e(e,t,i){this.tag="iocontroller",this._config=t,this._extradata=i,this._stashinitialsize=393216,null!=t.stashinitialsize&&t.stashinitialsize>0&&(this._stashinitialsize=t.stashinitialsize),this._stashused=0,this._stashsize=this._stashinitialsize,this._buffersize=3145728,this._stashbuffer=new arraybuffer(this._buffersize),this._stashbytestart=0,this._enablestash=!0,!1===t.enablestashbuffer&&(this._enablestash=!1),this._loader=null,this._loaderclass=null,this._seekhandler=null,this._datasource=e,this._iswebsocketurl=/wss?:\/\/(.+?)/.test(e.url),this._reftotallength=e.filesize?e.filesize:null,this._totallength=this._reftotallength,this._fullrequestflag=!1,this._currentrange=null,this._redirectedurl=null,this._speednormalized=0,this._speedsampler=new s,this._speednormalizelist=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isearlyeofreconnecting=!1,this._paused=!1,this._resumefrom=0,this._ondataarrival=null,this._onseeked=null,this._onerror=null,this._oncomplete=null,this._onredirect=null,this._onrecoveredearlyeof=null,this._selectseekhandler(),this._selectloader(),this._createloader()}return e.prototype.destroy=function(){this._loader.isworking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderclass=null,this._datasource=null,this._stashbuffer=null,this._stashused=this._stashsize=this._buffersize=this._stashbytestart=0,this._currentrange=null,this._speedsampler=null,this._isearlyeofreconnecting=!1,this._ondataarrival=null,this._onseeked=null,this._onerror=null,this._oncomplete=null,this._onredirect=null,this._onrecoveredearlyeof=null,this._extradata=null},e.prototype.isworking=function(){return this._loader&&this._loader.isworking()&&!this._paused},e.prototype.ispaused=function(){return this._paused},object.defineproperty(e.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"extradata",{get:function(){return this._extradata},set:function(e){this._extradata=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"ondataarrival",{get:function(){return this._ondataarrival},set:function(e){this._ondataarrival=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"onseeked",{get:function(){return this._onseeked},set:function(e){this._onseeked=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"onerror",{get:function(){return this._onerror},set:function(e){this._onerror=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"oncomplete",{get:function(){return this._oncomplete},set:function(e){this._oncomplete=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"onredirect",{get:function(){return this._onredirect},set:function(e){this._onredirect=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"onrecoveredearlyeof",{get:function(){return this._onrecoveredearlyeof},set:function(e){this._onrecoveredearlyeof=e},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"currenturl",{get:function(){return this._datasource.url},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"hasredirect",{get:function(){return null!=this._redirectedurl||null!=this._datasource.redirectedurl},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"currentredirectedurl",{get:function(){return this._redirectedurl||this._datasource.redirectedurl},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"currentspeed",{get:function(){return this._loaderclass===f?this._loader.currentspeed:this._speedsampler.lastsecondkbps},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"loadertype",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),e.prototype._selectseekhandler=function(){var e=this._config;if("range"===e.seektype)this._seekhandler=new g(this._config.rangeloadzerostart);else if("param"===e.seektype){var t=e.seekparamstart||"bstart",i=e.seekparamend||"bend";this._seekhandler=new v(t,i)}else{if("custom"!==e.seektype)throw new h.oc("invalid seektype in config: "+e.seektype);if("function"!=typeof e.customseekhandler)throw new h.oc("custom seektype specified in config but invalid customseekhandler!");this._seekhandler=new e.customseekhandler}},e.prototype._selectloader=function(){if(null!=this._config.customloader)this._loaderclass=this._config.customloader;else if(this._iswebsocketurl)this._loaderclass=m;else if(l.issupported())this._loaderclass=l;else if(c.issupported())this._loaderclass=c;else{if(!f.issupported())throw new h.oz("your browser doesn't support xhr with arraybuffer responsetype!");this._loaderclass=f}},e.prototype._createloader=function(){this._loader=new this._loaderclass(this._seekhandler,this._config),!1===this._loader.needstashbuffer&&(this._enablestash=!1),this._loader.oncontentlengthknown=this._oncontentlengthknown.bind(this),this._loader.onurlredirect=this._onurlredirect.bind(this),this._loader.ondataarrival=this._onloaderchunkarrival.bind(this),this._loader.oncomplete=this._onloadercomplete.bind(this),this._loader.onerror=this._onloadererror.bind(this)},e.prototype.open=function(e){this._currentrange={from:0,to:-1},e&&(this._currentrange.from=e),this._speedsampler.reset(),e||(this._fullrequestflag=!0),this._loader.open(this._datasource,object.assign({},this._currentrange))},e.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumefrom=0)},e.prototype.pause=function(){this.isworking()&&(this._loader.abort(),0!==this._stashused?(this._resumefrom=this._stashbytestart,this._currentrange.to=this._stashbytestart-1):this._resumefrom=this._currentrange.to+1,this._stashused=0,this._stashbytestart=0,this._paused=!0)},e.prototype.resume=function(){if(this._paused){this._paused=!1;var e=this._resumefrom;this._resumefrom=0,this._internalseek(e,!0)}},e.prototype.seek=function(e){this._paused=!1,this._stashused=0,this._stashbytestart=0,this._internalseek(e,!0)},e.prototype._internalseek=function(e,t){this._loader.isworking()&&this._loader.abort(),this._flushstashbuffer(t),this._loader.destroy(),this._loader=null;var i={from:e,to:-1};this._currentrange={from:i.from,to:-1},this._speedsampler.reset(),this._stashsize=this._stashinitialsize,this._createloader(),this._loader.open(this._datasource,i),this._onseeked&&this._onseeked()},e.prototype.updateurl=function(e){if(!e||"string"!=typeof e||0===e.length)throw new h.oc("url must be a non-empty string!");this._datasource.url=e},e.prototype._expandbuffer=function(e){for(var t=this._stashsize;t+10485760){var n=new uint8array(this._stashbuffer,0,this._stashused);new uint8array(i,0,t).set(n,0)}this._stashbuffer=i,this._buffersize=t}},e.prototype._normalizespeed=function(e){var t=this._speednormalizelist,i=t.length-1,n=0,r=0,s=i;if(e=t[n]&&e=512&&e<=1024?math.floor(1.5*e):2*e)>8192&&(t=8192);var i=1024*t+1048576;this._buffersize0){var s=this._stashbuffer.slice(0,this._stashused);if((u=this._dispatchchunks(s,this._stashbytestart))0){l=new uint8array(s,u);a.set(l,0),this._stashused=l.bytelength,this._stashbytestart+=u}}else this._stashused=0,this._stashbytestart+=u;this._stashused+e.bytelength>this._buffersize&&(this._expandbuffer(this._stashused+e.bytelength),a=new uint8array(this._stashbuffer,0,this._buffersize)),a.set(new uint8array(e),this._stashused),this._stashused+=e.bytelength}else{if((u=this._dispatchchunks(e,t))this._buffersize&&(this._expandbuffer(o),a=new uint8array(this._stashbuffer,0,this._buffersize)),a.set(new uint8array(e,u),0),this._stashused+=o,this._stashbytestart=t+u}}else if(0===this._stashused){var o;if((u=this._dispatchchunks(e,t))this._buffersize&&this._expandbuffer(o),(a=new uint8array(this._stashbuffer,0,this._buffersize)).set(new uint8array(e,u),0),this._stashused+=o,this._stashbytestart=t+u}else{var a,u;if(this._stashused+e.bytelength>this._buffersize&&this._expandbuffer(this._stashused+e.bytelength),(a=new uint8array(this._stashbuffer,0,this._buffersize)).set(new uint8array(e),this._stashused),this._stashused+=e.bytelength,(u=this._dispatchchunks(this._stashbuffer.slice(0,this._stashused),this._stashbytestart))0){var l=new uint8array(this._stashbuffer,u);a.set(l,0)}this._stashused-=u,this._stashbytestart+=u}}},e.prototype._flushstashbuffer=function(e){if(this._stashused>0){var t=this._stashbuffer.slice(0,this._stashused),i=this._dispatchchunks(t,this._stashbytestart),n=t.bytelength-i;if(i0){var s=new uint8array(this._stashbuffer,0,this._buffersize),o=new uint8array(t,i);s.set(o,0),this._stashused=o.bytelength,this._stashbytestart+=i}return 0}r.z.w(this.tag,n+" bytes unconsumed data remain when flush buffer, dropped")}return this._stashused=0,this._stashbytestart=0,n}return 0},e.prototype._onloadercomplete=function(e,t){this._flushstashbuffer(!0),this._oncomplete&&this._oncomplete(this._extradata)},e.prototype._onloadererror=function(e,t){switch(r.z.e(this.tag,"loader error, code = "+t.code+", msg = "+t.msg),this._flushstashbuffer(!1),this._isearlyeofreconnecting&&(this._isearlyeofreconnecting=!1,e=o.nm.unrecoverable_early_eof),e){case o.nm.early_eof:if(!this._config.islive&&this._totallength){var i=this._currentrange.to+1;return void(i=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexof("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],n=/(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)||[],r={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorversion:t[4]||t[2]||"0",platform:n[0]||""},s={};if(r.browser){s[r.browser]=!0;var o=r.majorversion.split(".");s.version={major:parseint(r.majorversion,10),string:r.version},o.length>1&&(s.version.minor=parseint(o[1],10)),o.length>2&&(s.version.build=parseint(o[2],10))}if(r.platform&&(s[r.platform]=!0),(s.chrome||s.opr||s.safari)&&(s.webkit=!0),s.rv||s.iemobile){s.rv&&delete s.rv;var a="msie";r.browser=a,s.msie=!0}if(s.edge){delete s.edge;var h="msedge";r.browser=h,s.msedge=!0}if(s.opr){var u="opera";r.browser=u,s.opera=!0}if(s.safari&&s.android){var l="android";r.browser=l,s.android=!0}for(var d in s.name=r.browser,s.platform=r.platform,i)i.hasownproperty(d)&&delete i[d];object.assign(i,s)}(),t.z=i},29:function(e,t,i){"use strict";i.d(t,{oz:function(){return s},rt:function(){return o},oc:function(){return a},do:function(){return h}});var n,r=(n=function(e,t){return(n=object.setprototypeof||{__proto__:[]}instanceof array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)object.prototype.hasownproperty.call(t,i)&&(e[i]=t[i])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new typeerror("class extends value "+string(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?object.create(t):(i.prototype=t.prototype,new i)}),s=function(){function e(e){this._message=e}return object.defineproperty(e.prototype,"name",{get:function(){return"runtimeexception"},enumerable:!1,configurable:!0}),object.defineproperty(e.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),e.prototype.tostring=function(){return this.name+": "+this.message},e}(),o=function(e){function t(t){return e.call(this,t)||this}return r(t,e),object.defineproperty(t.prototype,"name",{get:function(){return"illegalstateexception"},enumerable:!1,configurable:!0}),t}(s),a=function(e){function t(t){return e.call(this,t)||this}return r(t,e),object.defineproperty(t.prototype,"name",{get:function(){return"invalidargumentexception"},enumerable:!1,configurable:!0}),t}(s),h=function(e){function t(t){return e.call(this,t)||this}return r(t,e),object.defineproperty(t.prototype,"name",{get:function(){return"notimplementedexception"},enumerable:!1,configurable:!0}),t}(s)},300:function(e,t,i){"use strict";var n=i(716),r=i.n(n),s=function(){function e(){}return e.e=function(t,i){t&&!e.force_global_tag||(t=e.global_tag);var n="["+t+"] > "+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))},e.i=function(t,i){t&&!e.force_global_tag||(t=e.global_tag);var n="["+t+"] > "+i;e.enable_callback&&e.emitter.emit("log","info",n),e.enable_info&&(console.info?console.info(n):console.log(n))},e.w=function(t,i){t&&!e.force_global_tag||(t=e.global_tag);var n="["+t+"] > "+i;e.enable_callback&&e.emitter.emit("log","warn",n),e.enable_warn&&(console.warn?console.warn(n):console.log(n))},e.d=function(t,i){t&&!e.force_global_tag||(t=e.global_tag);var n="["+t+"] > "+i;e.enable_callback&&e.emitter.emit("log","debug",n),e.enable_debug&&(console.debug?console.debug(n):console.log(n))},e.v=function(t,i){t&&!e.force_global_tag||(t=e.global_tag);var n="["+t+"] > "+i;e.enable_callback&&e.emitter.emit("log","verbose",n),e.enable_verbose&&console.log(n)},e}();s.global_tag="flv.js",s.force_global_tag=!1,s.enable_error=!0,s.enable_info=!0,s.enable_warn=!0,s.enable_debug=!0,s.enable_verbose=!0,s.enable_callback=!1,s.emitter=new(r()),t.z=s},846:function(e,t,i){"use strict";var n=i(716),r=i.n(n),s=i(300),o=function(){function e(){}return object.defineproperty(e,"forceglobaltag",{get:function(){return s.z.force_global_tag},set:function(t){s.z.force_global_tag=t,e._notifychange()},enumerable:!1,configurable:!0}),object.defineproperty(e,"globaltag",{get:function(){return s.z.global_tag},set:function(t){s.z.global_tag=t,e._notifychange()},enumerable:!1,configurable:!0}),object.defineproperty(e,"enableall",{get:function(){return s.z.enable_verbose&&s.z.enable_debug&&s.z.enable_info&&s.z.enable_warn&&s.z.enable_error},set:function(t){s.z.enable_verbose=t,s.z.enable_debug=t,s.z.enable_info=t,s.z.enable_warn=t,s.z.enable_error=t,e._notifychange()},enumerable:!1,configurable:!0}),object.defineproperty(e,"enabledebug",{get:function(){return s.z.enable_debug},set:function(t){s.z.enable_debug=t,e._notifychange()},enumerable:!1,configurable:!0}),object.defineproperty(e,"enableverbose",{get:function(){return s.z.enable_verbose},set:function(t){s.z.enable_verbose=t,e._notifychange()},enumerable:!1,configurable:!0}),object.defineproperty(e,"enableinfo",{get:function(){return s.z.enable_info},set:function(t){s.z.enable_info=t,e._notifychange()},enumerable:!1,configurable:!0}),object.defineproperty(e,"enablewarn",{get:function(){return s.z.enable_warn},set:function(t){s.z.enable_warn=t,e._notifychange()},enumerable:!1,configurable:!0}),object.defineproperty(e,"enableerror",{get:function(){return s.z.enable_error},set:function(t){s.z.enable_error=t,e._notifychange()},enumerable:!1,configurable:!0}),e.getconfig=function(){return{globaltag:s.z.global_tag,forceglobaltag:s.z.force_global_tag,enableverbose:s.z.enable_verbose,enabledebug:s.z.enable_debug,enableinfo:s.z.enable_info,enablewarn:s.z.enable_warn,enableerror:s.z.enable_error,enablecallback:s.z.enable_callback}},e.applyconfig=function(e){s.z.global_tag=e.globaltag,s.z.force_global_tag=e.forceglobaltag,s.z.enable_verbose=e.enableverbose,s.z.enable_debug=e.enabledebug,s.z.enable_info=e.enableinfo,s.z.enable_warn=e.enablewarn,s.z.enable_error=e.enableerror,s.z.enable_callback=e.enablecallback},e._notifychange=function(){var t=e.emitter;if(t.listenercount("change")>0){var i=e.getconfig();t.emit("change",i)}},e.registerlistener=function(t){e.emitter.addlistener("change",t)},e.removelistener=function(t){e.emitter.removelistener("change",t)},e.addloglistener=function(t){s.z.emitter.addlistener("log",t),s.z.emitter.listenercount("log")>0&&(s.z.enable_callback=!0,e._notifychange())},e.removeloglistener=function(t){s.z.emitter.removelistener("log",t),0===s.z.emitter.listenercount("log")&&(s.z.enable_callback=!1,e._notifychange())},e}();o.emitter=new(r()),t.z=o},219:function(e,t,i){"use strict";var n=function(){function e(){}return e.install=function(){object.setprototypeof=object.setprototypeof||function(e,t){return e.__proto__=t,e},object.assign=object.assign||function(e){if(null==e)throw new typeerror("cannot convert undefined or null to object");for(var t=object(e),i=1;i