(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-139908f8","chunk-ebb3df08"],{"0de0":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={isAudioCodec:function(t){return/mp4a\.\d+.\d+/i.test(t)},parseContentType:function(t){var e={type:"",parameters:{}},i=t.trim().split(";");return e.type=i.shift().trim(),i.forEach((function(t){var i=t.trim().split("=");if(i.length>1){var a=i[0].replace(/"/g,"").trim(),n=i[1].replace(/"/g,"").trim();e.parameters[a]=n}})),e},isVideoCodec:function(t){return/avc1\.[\da-f]+/i.test(t)},translateLegacyCodecs:function(t){return t.map((function(t){return t.replace(/avc1\.(\d+)\.(\d+)/i,(function(t,e,i){return"avc1."+("00"+Number(e).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)}))}))}},t.exports=e.default},"0ea2":function(t,e,i){"use strict";var a,n,r,s=i("4329"),o=i("4e69"),u=i("ae75"),d=i("256f").TimestampRolloverStream,c=i("ae75");(a=function(){var t=new Uint8Array(188),e=0;a.prototype.init.call(this),this.push=function(i){var a,n=0,r=188;for(e?((a=new Uint8Array(i.byteLength+e)).set(t.subarray(0,e)),a.set(i,e),e=0):a=i;r<a.byteLength;)71!==a[n]||71!==a[r]?(n++,r++):(this.trigger("data",a.subarray(n,r)),n+=188,r+=188);n<a.byteLength&&(t.set(a.subarray(n),0),e=a.byteLength-n)},this.flush=function(){188===e&&71===t[0]&&(this.trigger("data",t),e=0),this.trigger("done")}}).prototype=new s,(n=function(){var t,e,i,a;n.prototype.init.call(this),a=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,t=function(t,a){var n=0;a.payloadUnitStartIndicator&&(n+=t[n]+1),"pat"===a.type?e(t.subarray(n),a):i(t.subarray(n),a)},e=function(t,e){e.section_number=t[7],e.last_section_number=t[8],a.pmtPid=(31&t[10])<<8|t[11],e.pmtPid=a.pmtPid},i=function(t,e){var i,n;if(1&t[5]){for(a.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&t[1])<<8|t[2])-4,n=12+((15&t[10])<<8|t[11]);n<i;){var r=t[n],s=(31&t[n+1])<<8|t[n+2];r===u.H264_STREAM_TYPE&&null===a.programMapTable.video?a.programMapTable.video=s:r===u.ADTS_STREAM_TYPE&&null===a.programMapTable.audio?a.programMapTable.audio=s:r===u.METADATA_STREAM_TYPE&&(a.programMapTable["timed-metadata"][s]=r),n+=5+((15&t[n+3])<<8|t[n+4])}e.programMapTable=a.programMapTable}},this.push=function(e){var i={},a=4;if(i.payloadUnitStartIndicator=!!(64&e[1]),i.pid=31&e[1],i.pid<<=8,i.pid|=e[2],(48&e[3])>>>4>1&&(a+=e[a]+1),0===i.pid)i.type="pat",t(e.subarray(a),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",t(e.subarray(a),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,a,i]):this.processPes_(e,a,i)},this.processPes_=function(t,e,i){i.pid===this.programMapTable.video?i.streamType=u.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=u.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=t.subarray(e),this.trigger("data",i)}}).prototype=new s,n.STREAM_TYPES={h264:27,adts:15},(r=function(){var t=this,e={data:[],size:0},i={data:[],size:0},a={data:[],size:0},n=function(e,i,a){var n,r,s=new Uint8Array(e.size),o={type:i},u=0,d=0;if(e.data.length&&!(e.size<9)){for(o.trackId=e.data[0].pid,u=0;u<e.data.length;u++)r=e.data[u],s.set(r.data,d),d+=r.data.byteLength;var c,l,f;c=s,(l=o).packetLength=6+(c[4]<<8|c[5]),l.dataAlignmentIndicator=0!=(4&c[6]),192&(f=c[7])&&(l.pts=(14&c[9])<<27|(255&c[10])<<20|(254&c[11])<<12|(255&c[12])<<5|(254&c[13])>>>3,l.pts*=4,l.pts+=(6&c[13])>>>1,l.dts=l.pts,64&f&&(l.dts=(14&c[14])<<27|(255&c[15])<<20|(254&c[16])<<12|(255&c[17])<<5|(254&c[18])>>>3,l.dts*=4,l.dts+=(6&c[18])>>>1)),l.data=c.subarray(9+c[8]),n="video"===i||o.packetLength<=e.size,(a||n)&&(e.size=0,e.data.length=0),n&&t.trigger("data",o)}};r.prototype.init.call(this),this.push=function(r){({pat:function(){},pes:function(){var t,s;switch(r.streamType){case u.H264_STREAM_TYPE:case c.H264_STREAM_TYPE:t=e,s="video";break;case u.ADTS_STREAM_TYPE:t=i,s="audio";break;case u.METADATA_STREAM_TYPE:t=a,s="timed-metadata";break;default:return}r.payloadUnitStartIndicator&&n(t,s,!0),t.data.push(r),t.size+=r.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]},i=r.programMapTable;null!==i.video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.video,codec:"avc",type:"video"}),null!==i.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+i.audio,codec:"adts",type:"audio"}),t.trigger("data",e)}})[r.type]()},this.flush=function(){n(e,"video"),n(i,"audio"),n(a,"timed-metadata"),this.trigger("done")}}).prototype=new s;var l={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:a,TransportParseStream:n,ElementaryStream:r,TimestampRolloverStream:d,CaptionStream:o.CaptionStream,Cea608Stream:o.Cea608Stream,MetadataStream:i("5bc0")};for(var f in u)u.hasOwnProperty(f)&&(l[f]=u[f]);t.exports=l},"194a":function(t,e,i){"use strict";var a,n,r,s,o,u,d,c,l,f,p,h,m,g,y,v,b,_,T,S,w,k,O,E,C,x,A,M,P,I,D,R,L,U,B,j,N,F,$,G,V,z=Math.pow(2,32)-1;!function(){var t;if(O={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(t in O)O.hasOwnProperty(t)&&(O[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);E=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),x=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),C=new Uint8Array([0,0,0,1]),A=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]),M=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]),P={video:A,audio:M},R=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0]),L=new Uint8Array([0,0,0,0,0,0,0,0]),U=L,B=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),j=L,I=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),a=function(t){var e,i,a=[],n=0;for(e=1;e<arguments.length;e++)a.push(arguments[e]);for(e=a.length;e--;)n+=a[e].byteLength;for(i=new Uint8Array(n+8),new DataView(i.buffer,i.byteOffset,i.byteLength).setUint32(0,i.byteLength),i.set(t,4),e=0,n=8;e<a.length;e++)i.set(a[e],n),n+=a[e].byteLength;return i},n=function(){return a(O.dinf,a(O.dref,R))},r=function(t){return a(O.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},s=function(){return a(O.ftyp,E,C,E,x)},v=function(t){return a(O.hdlr,P[t])},o=function(t){return a(O.mdat,t)},y=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(e[12]=t.samplerate>>>24&255,e[13]=t.samplerate>>>16&255,e[14]=t.samplerate>>>8&255,e[15]=255&t.samplerate),a(O.mdhd,e)},g=function(t){return a(O.mdia,y(t),v(t.type),d(t))},u=function(t){return a(O.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},d=function(t){return a(O.minf,"video"===t.type?a(O.vmhd,I):a(O.smhd,D),n(),_(t))},c=function(t,e){for(var i=[],n=e.length;n--;)i[n]=S(e[n]);return a.apply(null,[O.moof,u(t)].concat(i))},l=function(t){for(var e=t.length,i=[];e--;)i[e]=h(t[e]);return a.apply(null,[O.moov,p(4294967295)].concat(i).concat(f(t)))},f=function(t){for(var e=t.length,i=[];e--;)i[e]=w(t[e]);return a.apply(null,[O.mvex].concat(i))},p=function(t){var e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,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]);return a(O.mvhd,e)},b=function(t){var e,i,n=t.samples||[],r=new Uint8Array(4+n.length);for(i=0;i<n.length;i++)e=n[i].flags,r[i+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return a(O.sdtp,r)},_=function(t){return a(O.stbl,T(t),a(O.stts,j),a(O.stsc,U),a(O.stsz,B),a(O.stco,L))},T=function(t){return a(O.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===t.type?N(t):F(t))},N=function(t){var e,i=t.sps||[],n=t.pps||[],r=[],s=[];for(e=0;e<i.length;e++)r.push((65280&i[e].byteLength)>>>8),r.push(255&i[e].byteLength),r=r.concat(Array.prototype.slice.call(i[e]));for(e=0;e<n.length;e++)s.push((65280&n[e].byteLength)>>>8),s.push(255&n[e].byteLength),s=s.concat(Array.prototype.slice.call(n[e]));return a(O.avc1,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,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a(O.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([i.length]).concat(r).concat([n.length]).concat(s))),a(O.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},F=function(t){return a(O.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),r(t))},m=function(t){var e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,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,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return a(O.tkhd,e)},S=function(t){var e,i,n,r,s,o;return e=a(O.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(t.baseMediaDecodeTime/(z+1)),o=Math.floor(t.baseMediaDecodeTime%(z+1)),i=a(O.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),92,"audio"===t.type?(n=k(t,92),a(O.traf,e,i,n)):(r=b(t),n=k(t,r.length+92),a(O.traf,e,i,n,r))},h=function(t){return t.duration=t.duration||4294967295,a(O.trak,m(t),g(t))},w=function(t){var e=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(e[e.length-1]=0),a(O.trex,e)},V=function(t,e){var i=0,a=0,n=0,r=0;return t.length&&(void 0!==t[0].duration&&(i=1),void 0!==t[0].size&&(a=2),void 0!==t[0].flags&&(n=4),void 0!==t[0].compositionTimeOffset&&(r=8)),[0,0,i|a|n|r,1,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e]},G=function(t,e){var i,n,r,s;for(e+=20+16*(n=t.samples||[]).length,i=V(n,e),s=0;s<n.length;s++)r=n[s],i=i.concat([(4278190080&r.duration)>>>24,(16711680&r.duration)>>>16,(65280&r.duration)>>>8,255&r.duration,(4278190080&r.size)>>>24,(16711680&r.size)>>>16,(65280&r.size)>>>8,255&r.size,r.flags.isLeading<<2|r.flags.dependsOn,r.flags.isDependedOn<<6|r.flags.hasRedundancy<<4|r.flags.paddingValue<<1|r.flags.isNonSyncSample,61440&r.flags.degradationPriority,15&r.flags.degradationPriority,(4278190080&r.compositionTimeOffset)>>>24,(16711680&r.compositionTimeOffset)>>>16,(65280&r.compositionTimeOffset)>>>8,255&r.compositionTimeOffset]);return a(O.trun,new Uint8Array(i))},$=function(t,e){var i,n,r,s;for(e+=20+8*(n=t.samples||[]).length,i=V(n,e),s=0;s<n.length;s++)r=n[s],i=i.concat([(4278190080&r.duration)>>>24,(16711680&r.duration)>>>16,(65280&r.duration)>>>8,255&r.duration,(4278190080&r.size)>>>24,(16711680&r.size)>>>16,(65280&r.size)>>>8,255&r.size]);return a(O.trun,new Uint8Array(i))},k=function(t,e){return"audio"===t.type?$(t,e):G(t,e)},t.exports={ftyp:s,mdat:o,moof:c,moov:l,initSegment:function(t){var e,i=s(),a=l(t);return(e=new Uint8Array(i.byteLength+a.byteLength)).set(i),e.set(a,i.byteLength),e}}},"1b8d":function(t,e){function i(t){return t.replace(/\n\r?\s*/g,"")}t.exports=function(t){for(var e="",a=0;a<arguments.length;a++)e+=i(t[a])+(arguments[a+1]||"");return e}},"1ba8":function(t,e,i){},"1c05":function(t,e,i){"use strict";var a=i("4329"),n=function(t){this.numberOfTracks=0,this.metadataStream=t.metadataStream,this.videoTags=[],this.audioTags=[],this.videoTrack=null,this.audioTrack=null,this.pendingCaptions=[],this.pendingMetadata=[],this.pendingTracks=0,this.processedTracks=0,n.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):("video"===t.track.type&&(this.videoTrack=t.track,this.videoTags=t.tags,this.pendingTracks++),void("audio"===t.track.type&&(this.audioTrack=t.track,this.audioTags=t.tags,this.pendingTracks++)))}};n.prototype=new a,n.prototype.flush=function(t){var e,i,a,n,r={tags:{},captions:[],captionStreams:{},metadata:[]};if(this.pendingTracks<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)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?n=this.videoTrack.timelineStartInfo.pts:this.audioTrack&&(n=this.audioTrack.timelineStartInfo.pts),r.tags.videoTags=this.videoTags,r.tags.audioTags=this.audioTags,a=0;a<this.pendingCaptions.length;a++)(i=this.pendingCaptions[a]).startTime=i.startPts-n,i.startTime/=9e4,i.endTime=i.endPts-n,i.endTime/=9e4,r.captionStreams[i.stream]=!0,r.captions.push(i);for(a=0;a<this.pendingMetadata.length;a++)(e=this.pendingMetadata[a]).cueTime=e.pts-n,e.cueTime/=9e4,r.metadata.push(e);r.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",r),this.trigger("done")}},t.exports=n},2:function(t,e){},"256f":function(t,e,i){"use strict";var a=i("4329"),n=function(t,e){var i=1;for(t>e&&(i=-1);Math.abs(e-t)>4294967296;)t+=8589934592*i;return t},r=function(t){var e,i;r.prototype.init.call(this),this.type_=t,this.push=function(t){t.type===this.type_&&(void 0===i&&(i=t.dts),t.dts=n(t.dts,i),t.pts=n(t.pts,i),e=t.dts,this.trigger("data",t))},this.flush=function(){i=e,this.trigger("done")},this.discontinuity=function(){i=void 0,e=void 0}};r.prototype=new a,t.exports={TimestampRolloverStream:r,handleRollover:n}},"262b":function(t,e,i){t.exports=i.p+"static/img/icon_emt.bed9e05d.png"},"269f":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();function n(t){return t&&t.__esModule?t:{default:t}}var r=n(i("3d33")),s=n(i("9417")),o=n(i("4ea2")),u=i("ba2d"),d=n(i("78d8")),c=n(i("5c9d")),l=i("0de0"),f=function(t,e,i){if(!e||!t.length)return[];var a=Math.ceil(9e4*(e.currentTime()-i+3)),n=void 0;for(n=0;n<t.length&&!(t[n].pts>a);n++);return t.slice(n)};e.gopsSafeToAlignWith=f;var p=function(t,e,i){if(!e.length)return t;if(i)return e.slice();for(var a=e[0].pts,n=0;n<t.length&&!(t[n].pts>=a);n++);return t.slice(0,n).concat(e)};e.updateGopBuffer=p;var h=function(t,e,i,a){for(var n=Math.ceil(9e4*(e-a)),r=Math.ceil(9e4*(i-a)),s=t.slice(),o=t.length;o--&&!(t[o].pts<=r););if(-1===o)return s;for(var u=o+1;u--&&!(t[u].pts<=n););return u=Math.max(u,0),s.splice(u,o-u+1),s};e.removeGopBuffer=h;var m=function(t){function e(t,i){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,i){for(var a=!0;a;){var n=t,r=e,s=i;a=!1,null===n&&(n=Function.prototype);var o=Object.getOwnPropertyDescriptor(n,r);if(void 0!==o){if("value"in o)return o.value;var u=o.get;if(void 0===u)return;return u.call(s)}var d=Object.getPrototypeOf(n);if(null===d)return;t=d,e=r,i=s,a=!0,o=d=void 0}}(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,r.default.EventTarget),this.timestampOffset_=0,this.pendingBuffers_=[],this.bufferUpdating_=!1,this.mediaSource_=t,this.codecs_=i,this.audioCodec_=null,this.videoCodec_=null,this.audioDisabled_=!1,this.appendAudioInitSegment_=!0,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=r.default.browser.IE_VERSION>=11;var n={remux:!1,alignGopsAtEnd:this.safeAppend_};this.codecs_.forEach((function(t){(0,l.isAudioCodec)(t)?a.audioCodec_=t:(0,l.isVideoCodec)(t)&&(a.videoCodec_=t)})),this.transmuxer_=(0,d.default)(c.default,function(){var t=void 0;try{t="5c9d"}catch(t){}return t}()),this.transmuxer_.postMessage({action:"init",options:n}),this.transmuxer_.onmessage=function(t){return"data"===t.data.action?a.data_(t):"done"===t.data.action?a.done_(t):"gopInfo"===t.data.action?a.appendGopInfo_(t):void 0},Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"==typeof t&&t>=0&&(this.timestampOffset_=t,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t}))}}),Object.defineProperty(this,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(t){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=t),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=t)}}),Object.defineProperty(this,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(this,"buffered",{get:function(){var t=null,e=null,i=0,a=[],n=[];if(!this.videoBuffer_&&!this.audioBuffer_)return r.default.createTimeRange();if(!this.videoBuffer_)return this.audioBuffer_.buffered;if(!this.audioBuffer_)return this.videoBuffer_.buffered;if(this.audioDisabled_)return this.videoBuffer_.buffered;if(0===this.videoBuffer_.buffered.length&&0===this.audioBuffer_.buffered.length)return r.default.createTimeRange();for(var s=this.videoBuffer_.buffered,o=this.audioBuffer_.buffered,u=s.length;u--;)a.push({time:s.start(u),type:"start"}),a.push({time:s.end(u),type:"end"});for(u=o.length;u--;)a.push({time:o.start(u),type:"start"}),a.push({time:o.end(u),type:"end"});for(a.sort((function(t,e){return t.time-e.time})),u=0;u<a.length;u++)"start"===a[u].type?2===++i&&(t=a[u].time):"end"===a[u].type&&1===--i&&(e=a[u].time),null!==t&&null!==e&&(n.push([t,e]),t=null,e=null);return r.default.createTimeRanges(n)}})}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"data_",value:function(t){var e=t.data.segment;e.data=new Uint8Array(e.data,t.data.byteOffset,t.data.byteLength),e.initSegment=new Uint8Array(e.initSegment.data,e.initSegment.byteOffset,e.initSegment.byteLength),(0,s.default)(this,this.mediaSource_,e),this.pendingBuffers_.push(e)}},{key:"done_",value:function(t){"closed"!==this.mediaSource_.readyState?this.processPendingSegments_():this.pendingBuffers_.length=0}},{key:"createRealSourceBuffers_",value:function(){var t=this,e=["audio","video"];e.forEach((function(i){if(t[i+"Codec_"]&&!t[i+"Buffer_"]){var a=null;if(t.mediaSource_[i+"Buffer_"])(a=t.mediaSource_[i+"Buffer_"]).updating=!1;else{var n=i+'/mp4;codecs="'+t[i+"Codec_"]+'"';a=function(t,e){var i=t.addSourceBuffer(e),a=Object.create(null);a.updating=!1,a.realBuffer_=i;var n=function(t){"function"==typeof i[t]?a[t]=function(){return i[t].apply(i,arguments)}:void 0===a[t]&&Object.defineProperty(a,t,{get:function(){return i[t]},set:function(e){return i[t]=e}})};for(var r in i)n(r);return a}(t.mediaSource_.nativeMediaSource_,n),t.mediaSource_[i+"Buffer_"]=a}t[i+"Buffer_"]=a,["update","updatestart","updateend"].forEach((function(n){a.addEventListener(n,(function(){if("audio"!==i||!t.audioDisabled_)return"updateend"===n&&(t[i+"Buffer_"].updating=!1),e.every((function(e){return!("audio"!==e||!t.audioDisabled_)||(i===e||!t[e+"Buffer_"]||!t[e+"Buffer_"].updating)}))?t.trigger(n):void 0}))}))}}))}},{key:"appendBuffer",value:function(t){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var e=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:e.end(e.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:f(this.gopBuffer_,this.mediaSource_.player_,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(t){this.gopBuffer_=p(this.gopBuffer_,t.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(t,e){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(t,e),this.gopBuffer_=h(this.gopBuffer_,t,e,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(t,e)),(0,o.default)(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var i in this.inbandTextTracks_)(0,o.default)(t,e,this.inbandTextTracks_[i])}},{key:"processPendingSegments_",value:function(){var t={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};t=this.pendingBuffers_.reduce((function(t,e){var i=e.type,a=e.data,n=e.initSegment;return t[i].segments.push(a),t[i].bytes+=a.byteLength,t[i].initSegment=n,e.captions&&(t.captions=t.captions.concat(e.captions)),e.info&&(t[i].info=e.info),e.metadata&&(t.metadata=t.metadata.concat(e.metadata)),t}),t),this.videoBuffer_||this.audioBuffer_||(0===t.video.bytes&&(this.videoCodec_=null),0===t.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),t.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:t.audio.info}),t.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:t.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(t.audio.segments.unshift(t.audio.initSegment),t.audio.bytes+=t.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var e=!1;this.videoBuffer_&&t.video.bytes?(t.video.segments.unshift(t.video.initSegment),t.video.bytes+=t.video.initSegment.byteLength,this.concatAndAppendSegments_(t.video,this.videoBuffer_),(0,u.addTextTrackData)(this,t.captions,t.metadata)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(e=!0),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(t.audio,this.audioBuffer_),this.pendingBuffers_.length=0,e&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(t,e){var i=0,a=void 0;if(t.bytes){a=new Uint8Array(t.bytes),t.segments.forEach((function(t){a.set(t,i),i+=t.byteLength}));try{e.updating=!0,e.appendBuffer(a)}catch(t){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:t.message,originalError:t})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),e}(r.default.EventTarget);e.default=m},2806:function(t,e,i){"use strict";var a,n,r,s;a=function(t,e){var i,r,s,o,u,d=[];if(!e.length)return null;for(i=0;i<t.byteLength;)r=t[i]<<24,r|=t[i+1]<<16,r|=t[i+2]<<8,r|=t[i+3],s=n(t.subarray(i+4,i+8)),o=r>1?i+r:t.byteLength,s===e[0]&&(1===e.length?d.push(t.subarray(i+8,o)):(u=a(t.subarray(i+8,o),e.slice(1))).length&&(d=d.concat(u))),i=o;return d},n=function(t){var e="";return e+=String.fromCharCode(t[0]),e+=String.fromCharCode(t[1]),e+=String.fromCharCode(t[2]),e+=String.fromCharCode(t[3])},r=function(t){return a(t,["moov","trak"]).reduce((function(t,e){var i,n,r,s;return(i=a(e,["tkhd"])[0])?(r=i[n=0===i[0]?12:20]<<24|i[n+1]<<16|i[n+2]<<8|i[n+3],(s=a(e,["mdia","mdhd"])[0])?(n=0===s[0]?12:20,t[r]=s[n]<<24|s[n+1]<<16|s[n+2]<<8|s[n+3],t):null):null}),{})},s=function(t,e){var i,n,r;return i=a(e,["moof","traf"]),n=[].concat.apply([],i.map((function(e){return a(e,["tfhd"]).map((function(i){var n,r;return n=i[4]<<24|i[5]<<16|i[6]<<8|i[7],r=t[n]||9e4,(a(e,["tfdt"]).map((function(t){var e,i;return e=t[0],i=t[4]<<24|t[5]<<16|t[6]<<8|t[7],1===e&&(i*=Math.pow(2,32),i+=t[8]<<24|t[9]<<16|t[10]<<8|t[11]),i}))[0]||1/0)/r}))}))),r=Math.min.apply(null,n),isFinite(r)?r:0},t.exports={parseType:n,timescale:r,startTime:s}},"28e5":function(t,e,i){t.exports={generator:i("194a"),Transmuxer:i("300a").Transmuxer,AudioSegmentStream:i("300a").AudioSegmentStream,VideoSegmentStream:i("300a").VideoSegmentStream}},"300a":function(t,e,i){"use strict";var a,n,r,s,o,u,d,c,l,f,p=i("4329"),h=i("194a"),m=i("0ea2"),g=i("4fcf"),y=i("631a").H264Stream,v=i("9d56"),b=i("7e10"),_=i("36c6"),T=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],S=["width","height","profileIdc","levelIdc","profileCompatibility"];o=function(t){return t[0]==="I".charCodeAt(0)&&t[1]==="D".charCodeAt(0)&&t[2]==="3".charCodeAt(0)},l=function(t,e){var i;if(t.length!==e.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0},f=function(t){var e,i=0;for(e=0;e<t.length;e++)i+=t[e].data.byteLength;return i},(n=function(t){var e=[],i=0,a=0,r=0,s=1/0;n.prototype.init.call(this),this.push=function(i){u(t,i),t&&T.forEach((function(e){t[e]=i[e]})),e.push(i)},this.setEarliestDts=function(e){a=e-t.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(t){s=t},this.setAudioAppendStart=function(t){r=t},this.flush=function(){var a,n,r,s;0!==e.length?(a=this.trimAdtsFramesByEarliestDts_(e),t.baseMediaDecodeTime=c(t),this.prefixWithSilence_(t,a),t.samples=this.generateSampleTable_(a),r=h.mdat(this.concatenateFrameData_(a)),e=[],n=h.moof(i,[t]),s=new Uint8Array(n.byteLength+r.byteLength),i++,s.set(n),s.set(r,n.byteLength),d(t),this.trigger("data",{track:t,boxes:s}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.prefixWithSilence_=function(t,e){var i,a,n,o,u=0,d=0,c=0;if(e.length&&(i=_.audioTsToVideoTs(t.baseMediaDecodeTime,t.samplerate),a=Math.ceil(9e4/(t.samplerate/1024)),r&&s&&(u=i-Math.max(r,s),c=(d=Math.floor(u/a))*a),!(d<1||c>45e3))){for((n=b[t.samplerate])||(n=e[0].data),o=0;o<d;o++)e.splice(o,0,{data:n});t.baseMediaDecodeTime-=Math.floor(_.videoTsToAudioTs(c,t.samplerate))}},this.trimAdtsFramesByEarliestDts_=function(e){return t.minSegmentDts>=a?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=a&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},this.generateSampleTable_=function(t){var e,i,a=[];for(e=0;e<t.length;e++)i=t[e],a.push({size:i.data.byteLength,duration:1024});return a},this.concatenateFrameData_=function(t){var e,i,a=0,n=new Uint8Array(f(t));for(e=0;e<t.length;e++)i=t[e],n.set(i.data,a),a+=i.data.byteLength;return n}}).prototype=new p,(a=function(t,e){var i,n,r=0,s=[],o=[];e=e||{},a.prototype.init.call(this),delete t.minPTS,this.gopCache_=[],this.push=function(e){u(t,e),"seq_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.config,t.sps=[e.data],S.forEach((function(e){t[e]=i[e]}),this)),"pic_parameter_set_rbsp"!==e.nalUnitType||n||(n=e.data,t.pps=[e.data]),s.push(e)},this.flush=function(){for(var i,a,n,l,f,p;s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=this.groupNalsIntoFrames_(s),(n=this.groupFramesIntoGops_(i))[0][0].keyFrame||((a=this.getGopForFusion_(s[0],t))?(n.unshift(a),n.byteLength+=a.byteLength,n.nalCount+=a.nalCount,n.pts=a.pts,n.dts=a.dts,n.duration+=a.duration):n=this.extendFirstKeyFrame_(n)),o.length){var m;if(!(m=e.alignGopsAtEnd?this.alignGopsAtEnd_(n):this.alignGopsAtStart_(n)))return this.gopCache_.unshift({gop:n.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");d(t),n=m}u(t,n),t.samples=this.generateSampleTable_(n),f=h.mdat(this.concatenateNalData_(n)),t.baseMediaDecodeTime=c(t),this.trigger("processedGopsInfo",n.map((function(t){return{pts:t.pts,dts:t.dts,byteLength:t.byteLength}}))),this.gopCache_.unshift({gop:n.pop(),pps:t.pps,sps:t.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",t.baseMediaDecodeTime),this.trigger("timelineStartInfo",t.timelineStartInfo),l=h.moof(r,[t]),p=new Uint8Array(l.byteLength+f.byteLength),r++,p.set(l),p.set(f,l.byteLength),this.trigger("data",{track:t,boxes:p}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.resetStream_=function(){d(t),i=void 0,n=void 0},this.getGopForFusion_=function(e){var i,a,n,r,s,o=1/0;for(s=0;s<this.gopCache_.length;s++)n=(r=this.gopCache_[s]).gop,t.pps&&l(t.pps[0],r.pps[0])&&t.sps&&l(t.sps[0],r.sps[0])&&(n.dts<t.timelineStartInfo.dts||(i=e.dts-n.dts-n.duration)>=-1e4&&i<=45e3&&(!a||o>i)&&(a=r,o=i));return a?a.gop:null},this.extendFirstKeyFrame_=function(t){var e;return!t[0][0].keyFrame&&t.length>1&&(e=t.shift(),t.byteLength-=e.byteLength,t.nalCount-=e.nalCount,t[0][0].dts=e.dts,t[0][0].pts=e.pts,t[0][0].duration+=e.duration),t},this.groupNalsIntoFrames_=function(t){var e,i,a=[],n=[];for(a.byteLength=0,e=0;e<t.length;e++)"access_unit_delimiter_rbsp"===(i=t[e]).nalUnitType?(a.length&&(a.duration=i.dts-a.dts,n.push(a)),(a=[i]).byteLength=i.data.byteLength,a.pts=i.pts,a.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(a.keyFrame=!0),a.duration=i.dts-a.dts,a.byteLength+=i.data.byteLength,a.push(i));return n.length&&(!a.duration||a.duration<=0)&&(a.duration=n[n.length-1].duration),n.push(a),n},this.groupFramesIntoGops_=function(t){var e,i,a=[],n=[];for(a.byteLength=0,a.nalCount=0,a.duration=0,a.pts=t[0].pts,a.dts=t[0].dts,n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=t[0].pts,n.dts=t[0].dts,e=0;e<t.length;e++)(i=t[e]).keyFrame?(a.length&&(n.push(a),n.byteLength+=a.byteLength,n.nalCount+=a.nalCount,n.duration+=a.duration),(a=[i]).nalCount=i.length,a.byteLength=i.byteLength,a.pts=i.pts,a.dts=i.dts,a.duration=i.duration):(a.duration+=i.duration,a.nalCount+=i.length,a.byteLength+=i.byteLength,a.push(i));return n.length&&a.duration<=0&&(a.duration=n[n.length-1].duration),n.byteLength+=a.byteLength,n.nalCount+=a.nalCount,n.duration+=a.duration,n.push(a),n},this.generateSampleTable_=function(t,e){var i,a,n,r,s,o=e||0,u=[];for(i=0;i<t.length;i++)for(r=t[i],a=0;a<r.length;a++)s=r[a],(n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0}}).dataOffset=o,n.compositionTimeOffset=s.pts-s.dts,n.duration=s.duration,n.size=4*s.length,n.size+=s.byteLength,s.keyFrame&&(n.flags.dependsOn=2),o+=n.size,u.push(n);return u},this.concatenateNalData_=function(t){var e,i,a,n,r,s,o=0,u=t.byteLength,d=t.nalCount,c=new Uint8Array(u+4*d),l=new DataView(c.buffer);for(e=0;e<t.length;e++)for(n=t[e],i=0;i<n.length;i++)for(r=n[i],a=0;a<r.length;a++)s=r[a],l.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c},this.alignGopsAtStart_=function(t){var e,i,a,n,r,s,u,d;for(r=t.byteLength,s=t.nalCount,u=t.duration,e=i=0;e<o.length&&i<t.length&&(a=o[e],n=t[i],a.pts!==n.pts);)n.pts>a.pts?e++:(i++,r-=n.byteLength,s-=n.nalCount,u-=n.duration);return 0===i?t:i===t.length?null:((d=t.slice(i)).byteLength=r,d.duration=u,d.nalCount=s,d.pts=d[0].pts,d.dts=d[0].dts,d)},this.alignGopsAtEnd_=function(t){var e,i,a,n,r,s,u;for(e=o.length-1,i=t.length-1,r=null,s=!1;e>=0&&i>=0;){if(a=o[e],n=t[i],a.pts===n.pts){s=!0;break}a.pts>n.pts?e--:(e===o.length-1&&(r=i),i--)}if(!s&&null===r)return null;if(0===(u=s?i:r))return t;var d=t.slice(u),c=d.reduce((function(t,e){return t.byteLength+=e.byteLength,t.duration+=e.duration,t.nalCount+=e.nalCount,t}),{byteLength:0,duration:0,nalCount:0});return d.byteLength=c.byteLength,d.duration=c.duration,d.nalCount=c.nalCount,d.pts=d[0].pts,d.dts=d[0].dts,d},this.alignGopsWith=function(t){o=t}}).prototype=new p,u=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts&&(t.timelineStartInfo.pts=e.pts),void 0===t.minSegmentPts?t.minSegmentPts=e.pts:t.minSegmentPts=Math.min(t.minSegmentPts,e.pts),void 0===t.maxSegmentPts?t.maxSegmentPts=e.pts:t.maxSegmentPts=Math.max(t.maxSegmentPts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),void 0===t.minSegmentDts?t.minSegmentDts=e.dts:t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),void 0===t.maxSegmentDts?t.maxSegmentDts=e.dts:t.maxSegmentDts=Math.max(t.maxSegmentDts,e.dts))},d=function(t){delete t.minSegmentDts,delete t.maxSegmentDts,delete t.minSegmentPts,delete t.maxSegmentPts},c=function(t){var e,i=t.minSegmentDts-t.timelineStartInfo.dts;return e=t.timelineStartInfo.baseMediaDecodeTime,e+=i,e=Math.max(0,e),"audio"===t.type&&(e*=t.samplerate/9e4,e=Math.floor(e)),e},(s=function(t,e){this.numberOfTracks=0,this.metadataStream=e,void 0!==t.remux?this.remuxTracks=!!t.remux:this.remuxTracks=!0,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,s.prototype.init.call(this),this.push=function(t){return t.text?this.pendingCaptions.push(t):t.frames?this.pendingMetadata.push(t):(this.pendingTracks.push(t.track),this.pendingBoxes.push(t.boxes),this.pendingBytes+=t.boxes.byteLength,"video"===t.track.type&&(this.videoTrack=t.track),void("audio"===t.track.type&&(this.audioTrack=t.track)))}}).prototype=new p,s.prototype.flush=function(t){var e,i,a,n,r=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==t&&"AudioSegmentStream"!==t)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,S.forEach((function(t){s.info[t]=this.videoTrack[t]}),this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,T.forEach((function(t){s.info[t]=this.audioTrack[t]}),this)),1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,a=h.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(a.byteLength),s.initSegment.set(a),s.data=new Uint8Array(this.pendingBytes),n=0;n<this.pendingBoxes.length;n++)s.data.set(this.pendingBoxes[n],r),r+=this.pendingBoxes[n].byteLength;for(n=0;n<this.pendingCaptions.length;n++)(e=this.pendingCaptions[n]).startTime=e.startPts-o,e.startTime/=9e4,e.endTime=e.endPts-o,e.endTime/=9e4,s.captionStreams[e.stream]=!0,s.captions.push(e);for(n=0;n<this.pendingMetadata.length;n++)(i=this.pendingMetadata[n]).cueTime=i.pts-o,i.cueTime/=9e4,s.metadata.push(i);s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},(r=function(t){var e,i,u=this,c=!0;r.prototype.init.call(this),t=t||{},this.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var e={};this.transmuxPipeline_=e,e.type="aac",e.metadataStream=new m.MetadataStream,e.aacStream=new v,e.audioTimestampRolloverStream=new m.TimestampRolloverStream("audio"),e.timedMetadataTimestampRolloverStream=new m.TimestampRolloverStream("timed-metadata"),e.adtsStream=new g,e.coalesceStream=new s(t,e.metadataStream),e.headOfPipeline=e.aacStream,e.aacStream.pipe(e.audioTimestampRolloverStream).pipe(e.adtsStream),e.aacStream.pipe(e.timedMetadataTimestampRolloverStream).pipe(e.metadataStream).pipe(e.coalesceStream),e.metadataStream.on("timestamp",(function(t){e.aacStream.setTimestamp(t.timeStamp)})),e.aacStream.on("data",(function(t){"timed-metadata"!==t.type||e.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:u.baseMediaDecodeTime},codec:"adts",type:"audio"},e.coalesceStream.numberOfTracks++,e.audioSegmentStream=new n(i),e.adtsStream.pipe(e.audioSegmentStream).pipe(e.coalesceStream))})),e.coalesceStream.on("data",this.trigger.bind(this,"data")),e.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new m.MetadataStream,r.packetStream=new m.TransportPacketStream,r.parseStream=new m.TransportParseStream,r.elementaryStream=new m.ElementaryStream,r.videoTimestampRolloverStream=new m.TimestampRolloverStream("video"),r.audioTimestampRolloverStream=new m.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new m.TimestampRolloverStream("timed-metadata"),r.adtsStream=new g,r.h264Stream=new y,r.captionStream=new m.CaptionStream,r.coalesceStream=new s(t,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream),r.elementaryStream.pipe(r.videoTimestampRolloverStream).pipe(r.h264Stream),r.elementaryStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.elementaryStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(s){var o;if("metadata"===s.type){for(o=s.tracks.length;o--;)e||"video"!==s.tracks[o].type?i||"audio"!==s.tracks[o].type||((i=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=u.baseMediaDecodeTime):(e=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=u.baseMediaDecodeTime;e&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new a(e,t),r.videoSegmentStream.on("timelineStartInfo",(function(t){i&&(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts))})),r.videoSegmentStream.on("processedGopsInfo",u.trigger.bind(u,"gopInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(t){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(t)})),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new n(i),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream))}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(t){var a=this.transmuxPipeline_;this.baseMediaDecodeTime=t,i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,d(i),i.timelineStartInfo.baseMediaDecodeTime=t,a.audioTimestampRolloverStream&&a.audioTimestampRolloverStream.discontinuity()),e&&(a.videoSegmentStream&&(a.videoSegmentStream.gopCache_=[],a.videoTimestampRolloverStream.discontinuity()),e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,d(e),a.captionStream.reset(),e.timelineStartInfo.baseMediaDecodeTime=t),a.timedMetadataTimestampRolloverStream&&a.timedMetadataTimestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(t){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(t)},this.alignGopsWith=function(t){e&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(t)},this.push=function(t){if(c){var e=o(t);e&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():e||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),c=!1}this.transmuxPipeline_.headOfPipeline.push(t)},this.flush=function(){c=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new p,t.exports={Transmuxer:r,VideoSegmentStream:a,AudioSegmentStream:n,AUDIO_PROPERTIES:T,VIDEO_PROPERTIES:S}},"31ce":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();function n(t){return t&&t.__esModule?t:{default:t}}var r=n(i("818b")),s=n(i("8890")),o=i("cdad"),u=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},d=function(t,e,i){var a=new Int32Array(t.buffer,t.byteOffset,t.byteLength>>2),n=new r.default(Array.prototype.slice.call(e)),s=new Uint8Array(t.byteLength),o=new Int32Array(s.buffer),d=void 0,c=void 0,l=void 0,f=void 0,p=void 0,h=void 0,m=void 0,g=void 0,y=void 0;for(d=i[0],c=i[1],l=i[2],f=i[3],y=0;y<a.length;y+=4)p=u(a[y]),h=u(a[y+1]),m=u(a[y+2]),g=u(a[y+3]),n.decrypt(p,h,m,g,o,y),o[y]=u(o[y]^d),o[y+1]=u(o[y+1]^c),o[y+2]=u(o[y+2]^l),o[y+3]=u(o[y+3]^f),d=p,c=h,l=m,f=g;return s};e.decrypt=d;var c=function(){function t(e,i,a,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var r=t.STEP,d=new Int32Array(e.buffer),c=new Uint8Array(e.byteLength),l=0;for(this.asyncStream_=new s.default,this.asyncStream_.push(this.decryptChunk_(d.subarray(l,l+r),i,a,c)),l=r;l<d.length;l+=r)a=new Uint32Array([u(d[l-4]),u(d[l-3]),u(d[l-2]),u(d[l-1])]),this.asyncStream_.push(this.decryptChunk_(d.subarray(l,l+r),i,a,c));this.asyncStream_.push((function(){n(null,(0,o.unpad)(c))}))}return a(t,[{key:"decryptChunk_",value:function(t,e,i,a){return function(){var n=d(t,e,i);a.set(n,t.byteOffset)}}}],[{key:"STEP",get:function(){return 32e3}}]),t}();e.Decrypter=c,e.default={Decrypter:c,decrypt:d}},3240:function(t,e,i){"use strict";var a;a=function(t){var e=t.byteLength,i=0,a=0;this.length=function(){return 8*e},this.bitsAvailable=function(){return 8*e+a},this.loadWord=function(){var n=t.byteLength-e,r=new Uint8Array(4),s=Math.min(4,e);if(0===s)throw new Error("no bytes available");r.set(t.subarray(n,n+s)),i=new DataView(r.buffer).getUint32(0),a=8*s,e-=s},this.skipBits=function(t){var n;a>t?(i<<=t,a-=t):(t-=a,t-=8*(n=Math.floor(t/8)),e-=n,this.loadWord(),i<<=t,a-=t)},this.readBits=function(t){var n=Math.min(a,t),r=i>>>32-n;return(a-=n)>0?i<<=n:e>0&&this.loadWord(),(n=t-n)>0?r<<n|this.readBits(n):r},this.skipLeadingZeros=function(){var t;for(t=0;t<a;++t)if(0!=(i&2147483648>>>t))return i<<=t,a-=t,t;return this.loadWord(),t+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var t=this.skipLeadingZeros();return this.readBits(t+1)-1},this.readExpGolomb=function(){var t=this.readUnsignedExpGolomb();return 1&t?1+t>>>1:-1*(t>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},t.exports=a},"36c6":function(t,e){var i,a,n,r,s,o;i=function(t){return 9e4*t},a=function(t,e){return t*e},n=function(t){return t/9e4},r=function(t,e){return t/e},s=function(t,e){return i(r(t,e))},o=function(t,e){return a(n(t),e)},t.exports={secondsToVideoTs:i,secondsToAudioTs:a,videoTsToSeconds:n,audioTsToSeconds:r,audioTsToVideoTs:s,videoTsToAudioTs:o}},"423e9":function(t,e,i){"use strict";var a=i("ae75"),n=function(t){var e=31&t[1];return e<<=8,e|=t[2]},r=function(t){return!!(64&t[1])},s=function(t){var e=0;return(48&t[3])>>>4>1&&(e+=t[4]+1),e},o=function(t){switch(t){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};t.exports={parseType:function(t,e){var i=n(t);return 0===i?"pat":i===e?"pmt":e?"pes":null},parsePat:function(t){var e=r(t),i=4+s(t);return e&&(i+=t[i]+1),(31&t[i+10])<<8|t[i+11]},parsePmt:function(t){var e={},i=r(t),a=4+s(t);if(i&&(a+=t[a]+1),1&t[a+5]){var n;n=3+((15&t[a+1])<<8|t[a+2])-4;for(var o=12+((15&t[a+10])<<8|t[a+11]);o<n;){var u=a+o;e[(31&t[u+1])<<8|t[u+2]]=t[u],o+=5+((15&t[u+3])<<8|t[u+4])}return e}},parsePayloadUnitStartIndicator:r,parsePesType:function(t,e){switch(e[n(t)]){case a.H264_STREAM_TYPE:return"video";case a.ADTS_STREAM_TYPE:return"audio";case a.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(t){if(!r(t))return null;var e=4+s(t);if(e>=t.byteLength)return null;var i,a=null;return 192&(i=t[e+7])&&((a={}).pts=(14&t[e+9])<<27|(255&t[e+10])<<20|(254&t[e+11])<<12|(255&t[e+12])<<5|(254&t[e+13])>>>3,a.pts*=4,a.pts+=(6&t[e+13])>>>1,a.dts=a.pts,64&i&&(a.dts=(14&t[e+14])<<27|(255&t[e+15])<<20|(254&t[e+16])<<12|(255&t[e+17])<<5|(254&t[e+18])>>>3,a.dts*=4,a.dts+=(6&t[e+18])>>>1)),a},videoPacketContainsKeyFrame:function(t){for(var e=4+s(t),i=t.subarray(e),a=0,n=0,r=!1;n<i.byteLength-3;n++)if(1===i[n+2]){a=n+5;break}for(;a<i.byteLength;)switch(i[a]){case 0:if(0!==i[a-1]){a+=2;break}if(0!==i[a-2]){a++;break}n+3!==a-2&&"slice_layer_without_partitioning_rbsp_idr"===o(31&i[n+3])&&(r=!0);do{a++}while(1!==i[a]&&a<i.length);n=a-2,a+=3;break;case 1:if(0!==i[a-1]||0!==i[a-2]){a+=3;break}"slice_layer_without_partitioning_rbsp_idr"===o(31&i[n+3])&&(r=!0),n=a-2,a+=3;break;default:a+=3}return i=i.subarray(n),a-=n,n=0,i&&i.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===o(31&i[n+3])&&(r=!0),r}}},4329:function(t,e,i){"use strict";var a=function(){this.init=function(){var t={};this.on=function(e,i){t[e]||(t[e]=[]),t[e]=t[e].concat(i)},this.off=function(e,i){var a;return!!t[e]&&(a=t[e].indexOf(i),t[e]=t[e].slice(),t[e].splice(a,1),a>-1)},this.trigger=function(e){var i,a,n,r;if(i=t[e])if(2===arguments.length)for(n=i.length,a=0;a<n;++a)i[a].call(this,arguments[1]);else{for(r=[],a=arguments.length,a=1;a<arguments.length;++a)r.push(arguments[a]);for(n=i.length,a=0;a<n;++a)i[a].apply(this,r)}},this.dispose=function(){t={}}}};a.prototype.pipe=function(t){return this.on("data",(function(e){t.push(e)})),this.on("done",(function(e){t.flush(e)})),t},a.prototype.push=function(t){this.trigger("data",t)},a.prototype.flush=function(t){this.trigger("done",t)},t.exports=a},4491:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={}}return a(t,[{key:"on",value:function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"off",value:function(t,e){var i;return!!this.listeners[t]&&(i=this.listeners[t].indexOf(e),this.listeners[t].splice(i,1),i>-1)}},{key:"trigger",value:function(t){var e=void 0,i=void 0,a=void 0,n=void 0;if(e=this.listeners[t])if(2===arguments.length)for(a=e.length,i=0;i<a;++i)e[i].call(this,arguments[1]);else for(n=Array.prototype.slice.call(arguments,1),a=e.length,i=0;i<a;++i)e[i].apply(this,n)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(t){this.on("data",(function(e){t.push(e)}))}}]),t}();e.default=n,t.exports=e.default},"451f":function(t,e,i){},"466b":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},n=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=u(i("fc85")),s=u(i("ddac")),o=u(i("59a0"));function u(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));t.lineStream=new s.default,t.parseStream=new o.default,t.lineStream.pipe(t.parseStream);var i=t,n=[],r={},u=void 0,d=void 0,c=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},f=0;return t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},t.parseStream.on("data",(function(t){var e=void 0,s=void 0;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=t.allowed,"allowed"in t||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in t&&(r.byterange=e,e.length=t.length,"offset"in t||(this.trigger("info",{message:"defaulting offset to zero"}),t.offset=0)),"offset"in t&&(r.byterange=e,e.offset=t.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),t.duration>0&&(r.duration=t.duration),0===t.duration&&(r.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key:function(){t.attributes?"NONE"!==t.attributes.METHOD?t.attributes.URI?(t.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),d={method:t.attributes.METHOD||"AES-128",uri:t.attributes.URI},void 0!==t.attributes.IV&&(d.iv=t.attributes.IV)):this.trigger("warn",{message:"ignoring key declaration without URI"}):d=null:this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(t.number)?this.manifest.mediaSequence=t.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+t.number})},"discontinuity-sequence":function(){isFinite(t.number)?(this.manifest.discontinuitySequence=t.number,f=t.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+t.number})},"playlist-type":function(){/VOD|EVENT/.test(t.playlistType)?this.manifest.playlistType=t.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+t.playlist})},map:function(){u={},t.uri&&(u.uri=t.uri),t.byterange&&(u.byterange=t.byterange)},"stream-inf":function(){this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,t.attributes?(r.attributes||(r.attributes={}),a(r.attributes,t.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,t.attributes&&t.attributes.TYPE&&t.attributes["GROUP-ID"]&&t.attributes.NAME){var i=this.manifest.mediaGroups[t.attributes.TYPE];i[t.attributes["GROUP-ID"]]=i[t.attributes["GROUP-ID"]]||{},e=i[t.attributes["GROUP-ID"]],(s={default:/yes/i.test(t.attributes.DEFAULT)}).default?s.autoselect=!0:s.autoselect=/yes/i.test(t.attributes.AUTOSELECT),t.attributes.LANGUAGE&&(s.language=t.attributes.LANGUAGE),t.attributes.URI&&(s.uri=t.attributes.URI),t.attributes["INSTREAM-ID"]&&(s.instreamId=t.attributes["INSTREAM-ID"]),t.attributes.CHARACTERISTICS&&(s.characteristics=t.attributes.CHARACTERISTICS),t.attributes.FORCED&&(s.forced=/yes/i.test(t.attributes.FORCED)),e[t.attributes.NAME]=s}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){f+=1,r.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time":function(){this.manifest.dateTimeString=t.dateTimeString,this.manifest.dateTimeObject=t.dateTimeObject},targetduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+t.duration}):this.manifest.targetDuration=t.duration},totalduration:function(){!isFinite(t.duration)||t.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+t.duration}):this.manifest.totalDuration=t.duration},"cue-out":function(){r.cueOut=t.data},"cue-out-cont":function(){r.cueOutCont=t.data},"cue-in":function(){r.cueIn=t.data}}[t.tagType]||c).call(i)},uri:function(){r.uri=t.uri,n.push(r),this.manifest.targetDuration&&!("duration"in r)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),r.duration=this.manifest.targetDuration),d&&(r.key=d),r.timeline=f,u&&(r.map=u),r={}},comment:function(){}})[t.type].call(i)})),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"push",value:function(t){this.lineStream.push(t)}},{key:"end",value:function(){this.lineStream.push("\n")}}]),e}(r.default);e.default=d},"4e69":function(t,e,i){"use strict";var a=i("4329"),n=function(){n.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new d(0,0),new d(0,1),new d(1,0),new d(1,1)],this.reset(),this.ccStreams_.forEach((function(t){t.on("data",this.trigger.bind(this,"data")),t.on("done",this.trigger.bind(this,"done"))}),this)};n.prototype=new a,n.prototype.push=function(t){var e,i;"sei_rbsp"===t.nalUnitType&&4===(e=function(t){for(var e=0,i={payloadType:-1,payloadSize:0},a=0,n=0;e<t.byteLength&&128!==t[e];){for(;255===t[e];)a+=255,e++;for(a+=t[e++];255===t[e];)n+=255,e++;if(n+=t[e++],!i.payload&&4===a){i.payloadType=a,i.payloadSize=n,i.payload=t.subarray(e,e+n);break}e+=n,a=0,n=0}return i}(t.escapedRBSP)).payloadType&&(i=function(t){return 181!==t.payload[0]||49!=(t.payload[1]<<8|t.payload[2])||"GA94"!==String.fromCharCode(t.payload[3],t.payload[4],t.payload[5],t.payload[6])||3!==t.payload[7]?null:t.payload.subarray(8,t.payload.length-1)}(e))&&(t.dts<this.latestDts_?this.ignoreNextEqualDts_=!0:t.dts===this.latestDts_&&this.ignoreNextEqualDts_?this.ignoreNextEqualDts_=!1:(this.captionPackets_=this.captionPackets_.concat(function(t,e){var i,a,n,r,s=[];if(!(64&e[0]))return s;for(a=31&e[0],i=0;i<a;i++)r={type:3&e[(n=3*i)+2],pts:t},4&e[n+2]&&(r.ccData=e[n+3]<<8|e[n+4],s.push(r));return s}(t.pts,i)),this.latestDts_=t.dts))},n.prototype.flush=function(){this.captionPackets_.length?(this.captionPackets_.forEach((function(t,e){t.presortIndex=e})),this.captionPackets_.sort((function(t,e){return t.pts===e.pts?t.presortIndex-e.presortIndex:t.pts-e.pts})),this.captionPackets_.forEach((function(t){t.type<2&&this.dispatchCea608Packet(t)}),this),this.captionPackets_.length=0,this.ccStreams_.forEach((function(t){t.flush()}),this)):this.ccStreams_.forEach((function(t){t.flush()}),this)},n.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(t){t.reset()}))},n.prototype.dispatchCea608Packet=function(t){this.setsChannel1Active(t)?this.activeCea608Channel_[t.type]=0:this.setsChannel2Active(t)&&(this.activeCea608Channel_[t.type]=1),null!==this.activeCea608Channel_[t.type]&&this.ccStreams_[(t.type<<1)+this.activeCea608Channel_[t.type]].push(t)},n.prototype.setsChannel1Active=function(t){return 4096==(30720&t.ccData)},n.prototype.setsChannel2Active=function(t){return 6144==(30720&t.ccData)};var r={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},s=function(t){return null===t?"":(t=r[t]||t,String.fromCharCode(t))},o=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],u=function(){for(var t=[],e=15;e--;)t.push("");return t},d=function(t,e){d.prototype.init.call(this),this.field_=t||0,this.dataChannel_=e||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(t){var e,i,a,n,r;if((e=32639&t.ccData)!==this.lastControlCode_){if(4096==(61440&e)?this.lastControlCode_=e:e!==this.PADDING_&&(this.lastControlCode_=null),a=e>>>8,n=255&e,e!==this.PADDING_)if(e===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(e===this.END_OF_CAPTION_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=t.pts;else if(e===this.ROLL_UP_2_ROWS_)this.topRow_=13,this.mode_="rollUp";else if(e===this.ROLL_UP_3_ROWS_)this.topRow_=12,this.mode_="rollUp";else if(e===this.ROLL_UP_4_ROWS_)this.topRow_=11,this.mode_="rollUp";else if(e===this.CARRIAGE_RETURN_)this.clearFormatting(t.pts),this.flushDisplayed(t.pts),this.shiftRowsUp_(),this.startPts_=t.pts;else if(e===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[14]=this.nonDisplayed_[14].slice(0,-1):this.displayed_[14]=this.displayed_[14].slice(0,-1);else if(e===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(t.pts),this.displayed_=u();else if(e===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=u();else if(e===this.RESUME_DIRECT_CAPTIONING_)this.mode_="paintOn";else if(this.isSpecialCharacter(a,n))r=s((a=(3&a)<<8)|n),this[this.mode_](t.pts,r),this.column_++;else if(this.isExtCharacter(a,n))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[14]=this.displayed_[14].slice(0,-1),r=s((a=(3&a)<<8)|n),this[this.mode_](t.pts,r),this.column_++;else if(this.isMidRowCode(a,n))this.clearFormatting(t.pts),this[this.mode_](t.pts," "),this.column_++,14==(14&n)&&this.addFormatting(t.pts,["i"]),1==(1&n)&&this.addFormatting(t.pts,["u"]);else if(this.isOffsetControlCode(a,n))this.column_+=3&n;else if(this.isPAC(a,n)){var d=o.indexOf(7968&e);d!==this.row_&&(this.clearFormatting(t.pts),this.row_=d),1&n&&-1===this.formatting_.indexOf("u")&&this.addFormatting(t.pts,["u"]),16==(16&e)&&(this.column_=4*((14&e)>>1)),this.isColorPAC(n)&&14==(14&n)&&this.addFormatting(t.pts,["i"])}else this.isNormalChar(a)&&(0===n&&(n=null),r=s(a),r+=s(n),this[this.mode_](t.pts,r),this.column_+=r.length)}else this.lastControlCode_=null}};d.prototype=new a,d.prototype.flushDisplayed=function(t){var e=this.displayed_.map((function(t){return t.trim()})).join("\n").replace(/^\n+|\n+$/g,"");e.length&&this.trigger("data",{startPts:this.startPts_,endPts:t,text:e,stream:this.name_})},d.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=u(),this.nonDisplayed_=u(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.formatting_=[]},d.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},d.prototype.isSpecialCharacter=function(t,e){return t===this.EXT_&&e>=48&&e<=63},d.prototype.isExtCharacter=function(t,e){return(t===this.EXT_+1||t===this.EXT_+2)&&e>=32&&e<=63},d.prototype.isMidRowCode=function(t,e){return t===this.EXT_&&e>=32&&e<=47},d.prototype.isOffsetControlCode=function(t,e){return t===this.OFFSET_&&e>=33&&e<=35},d.prototype.isPAC=function(t,e){return t>=this.BASE_&&t<this.BASE_+8&&e>=64&&e<=127},d.prototype.isColorPAC=function(t){return t>=64&&t<=79||t>=96&&t<=127},d.prototype.isNormalChar=function(t){return t>=32&&t<=127},d.prototype.addFormatting=function(t,e){this.formatting_=this.formatting_.concat(e);var i=e.reduce((function(t,e){return t+"<"+e+">"}),"");this[this.mode_](t,i)},d.prototype.clearFormatting=function(t){if(this.formatting_.length){var e=this.formatting_.reverse().reduce((function(t,e){return t+"</"+e+">"}),"");this.formatting_=[],this[this.mode_](t,e)}},d.prototype.popOn=function(t,e){var i=this.nonDisplayed_[this.row_];i+=e,this.nonDisplayed_[this.row_]=i},d.prototype.rollUp=function(t,e){var i=this.displayed_[14];i+=e,this.displayed_[14]=i},d.prototype.shiftRowsUp_=function(){var t;for(t=0;t<this.topRow_;t++)this.displayed_[t]="";for(t=this.topRow_;t<14;t++)this.displayed_[t]=this.displayed_[t+1];this.displayed_[14]=""},d.prototype.paintOn=function(){},t.exports={CaptionStream:n,Cea608Stream:d}},"4ea2":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,i){var a=void 0,n=void 0;if(i&&i.cues)for(a=i.cues.length;a--;)(n=i.cues[a]).startTime<=e&&n.endTime>=t&&i.removeCue(n)},t.exports=e.default},"4fcf":function(t,e,i){"use strict";var a,n=i("4329"),r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(a=function(){var t;a.prototype.init.call(this),this.push=function(e){var i,a,n,s,o,u,d=0,c=0;if("audio"===e.type)for(t?(s=t,(t=new Uint8Array(s.byteLength+e.data.byteLength)).set(s),t.set(e.data,s.byteLength)):t=e.data;d+5<t.length;)if(255===t[d]&&240==(246&t[d+1])){if(a=2*(1&~t[d+1]),i=(3&t[d+3])<<11|t[d+4]<<3|(224&t[d+5])>>5,u=9e4*(o=1024*(1+(3&t[d+6])))/r[(60&t[d+2])>>>2],n=d+i,t.byteLength<n)return;if(this.trigger("data",{pts:e.pts+c*u,dts:e.dts+c*u,sampleCount:o,audioobjecttype:1+(t[d+2]>>>6&3),channelcount:(1&t[d+2])<<2|(192&t[d+3])>>>6,samplerate:r[(60&t[d+2])>>>2],samplingfrequencyindex:(60&t[d+2])>>>2,samplesize:16,data:t.subarray(d+7+a,n)}),t.byteLength===n)return void(t=void 0);c++,t=t.subarray(n)}else d++},this.flush=function(){this.trigger("done")}}).prototype=new n,t.exports=a},"53a8":function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var a=arguments[e];for(var n in a)i.call(a,n)&&(t[n]=a[n])}return t};var i=Object.prototype.hasOwnProperty},"59a0":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],a=!0,n=!1,r=void 0;try{for(var s,o=t[Symbol.iterator]();!(a=(s=o.next()).done)&&(i.push(s.value),!e||i.length!==e);a=!0);}catch(t){n=!0,r=t}finally{try{!a&&o.return&&o.return()}finally{if(n)throw r}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),s=i("fc85"),o=(a=s)&&a.__esModule?a:{default:a};var u=function(t){for(var e=t.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},a=e.length,n=void 0;a--;)""!==e[a]&&((n=/([^=]*)=(.*)/.exec(e[a]).slice(1))[0]=n[0].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^['"](.*)['"]$/g,"$1"),i[n[0]]=n[1]);return i},d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"push",value:function(t){var e=void 0,i=void 0;if(0!==(t=t.replace(/^[\u0000\s]+|[\u0000\s]+$/g,"")).length)if("#"===t[0])if(0===t.indexOf("#EXT"))if(t=t.replace("\r",""),e=/^#EXTM3U/.exec(t))this.trigger("data",{type:"tag",tagType:"m3u"});else{if(e=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(t))return i={type:"tag",tagType:"inf"},e[1]&&(i.duration=parseFloat(e[1])),e[2]&&(i.title=e[2]),void this.trigger("data",i);if(e=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"targetduration"},e[1]&&(i.duration=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"totalduration"},e[1]&&(i.duration=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"version"},e[1]&&(i.version=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return i={type:"tag",tagType:"media-sequence"},e[1]&&(i.number=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(t))return i={type:"tag",tagType:"discontinuity-sequence"},e[1]&&(i.number=parseInt(e[1],10)),void this.trigger("data",i);if(e=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(t))return i={type:"tag",tagType:"playlist-type"},e[1]&&(i.playlistType=e[1]),void this.trigger("data",i);if(e=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(t))return i={type:"tag",tagType:"byterange"},e[1]&&(i.length=parseInt(e[1],10)),e[2]&&(i.offset=parseInt(e[2],10)),void this.trigger("data",i);if(e=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(t))return i={type:"tag",tagType:"allow-cache"},e[1]&&(i.allowed=!/NO/.test(e[1])),void this.trigger("data",i);if(e=/^#EXT-X-MAP:?(.*)$/.exec(t)){if(i={type:"tag",tagType:"map"},e[1]){var a=u(e[1]);if(a.URI&&(i.uri=a.URI),a.BYTERANGE){var r=a.BYTERANGE.split("@"),s=n(r,2),o=s[0],d=s[1];i.byterange={},o&&(i.byterange.length=parseInt(o,10)),d&&(i.byterange.offset=parseInt(d,10))}}this.trigger("data",i)}else if(e=/^#EXT-X-STREAM-INF:?(.*)$/.exec(t)){if(i={type:"tag",tagType:"stream-inf"},e[1]){if(i.attributes=u(e[1]),i.attributes.RESOLUTION){var c=i.attributes.RESOLUTION.split("x"),l={};c[0]&&(l.width=parseInt(c[0],10)),c[1]&&(l.height=parseInt(c[1],10)),i.attributes.RESOLUTION=l}i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))}this.trigger("data",i)}else{if(e=/^#EXT-X-MEDIA:?(.*)$/.exec(t))return i={type:"tag",tagType:"media"},e[1]&&(i.attributes=u(e[1])),void this.trigger("data",i);if(e=/^#EXT-X-ENDLIST/.exec(t))this.trigger("data",{type:"tag",tagType:"endlist"});else if(e=/^#EXT-X-DISCONTINUITY/.exec(t))this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(e=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(t))return i={type:"tag",tagType:"program-date-time"},e[1]&&(i.dateTimeString=e[1],i.dateTimeObject=new Date(e[1])),void this.trigger("data",i);if(e=/^#EXT-X-KEY:?(.*)$/.exec(t))return i={type:"tag",tagType:"key"},e[1]&&(i.attributes=u(e[1]),i.attributes.IV&&("0x"===i.attributes.IV.substring(0,2).toLowerCase()&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void this.trigger("data",i);if(e=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-out-cont"},e[1]?i.data=e[1]:i.data="",void this.trigger("data",i);if(e=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-out"},e[1]?i.data=e[1]:i.data="",void this.trigger("data",i);if(e=/^#EXT-X-CUE-IN:?(.*)?$/.exec(t))return i={type:"tag",tagType:"cue-in"},e[1]?i.data=e[1]:i.data="",void this.trigger("data",i);this.trigger("data",{type:"tag",data:t.slice(4)})}}}else this.trigger("data",{type:"comment",text:t.slice(1)});else this.trigger("data",{type:"uri",uri:t})}}]),e}(o.default);e.default=d},"5bc0":function(t,e,i){"use strict";var a,n=i("4329"),r=i("ae75"),s=function(t,e,i){var a,n="";for(a=e;a<i;a++)n+="%"+("00"+t[a].toString(16)).slice(-2);return n},o=function(t,e,i){return decodeURIComponent(s(t,e,i))},u=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]},d={TXXX:function(t){var e;if(3===t.data[0]){for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=o(t.data,1,e),t.value=o(t.data,e+1,t.data.length).replace(/\0*$/,"");break}t.data=t.value}},WXXX:function(t){var e;if(3===t.data[0])for(e=1;e<t.data.length;e++)if(0===t.data[e]){t.description=o(t.data,1,e),t.url=o(t.data,e+1,t.data.length);break}},PRIV:function(t){var e,i;for(e=0;e<t.data.length;e++)if(0===t.data[e]){t.owner=(i=t.data,unescape(s(i,0,e)));break}t.privateData=t.data.subarray(e+1),t.data=t.privateData}};(a=function(t){var e,i={debug:!(!t||!t.debug),descriptor:t&&t.descriptor},n=0,s=[],o=0;if(a.prototype.init.call(this),this.dispatchType=r.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(e=0;e<i.descriptor.length;e++)this.dispatchType+=("00"+i.descriptor[e].toString(16)).slice(-2);this.push=function(t){var e,a,r,c,l;if("timed-metadata"===t.type)if(t.dataAlignmentIndicator&&(o=0,s.length=0),0===s.length&&(t.data.length<10||t.data[0]!=="I".charCodeAt(0)||t.data[1]!=="D".charCodeAt(0)||t.data[2]!=="3".charCodeAt(0)))i.debug&&console.log("Skipping unrecognized metadata packet");else if(s.push(t),o+=t.data.byteLength,1===s.length&&(n=u(t.data.subarray(6,10)),n+=10),!(o<n)){for(e={data:new Uint8Array(n),frames:[],pts:s[0].pts,dts:s[0].dts},l=0;l<n;)e.data.set(s[0].data.subarray(0,n-l),l),l+=s[0].data.byteLength,o-=s[0].data.byteLength,s.shift();a=10,64&e.data[5]&&(a+=4,a+=u(e.data.subarray(10,14)),n-=u(e.data.subarray(16,20)));do{if((r=u(e.data.subarray(a+4,a+8)))<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((c={id:String.fromCharCode(e.data[a],e.data[a+1],e.data[a+2],e.data[a+3]),data:e.data.subarray(a+10,a+r+10)}).key=c.id,d[c.id]&&(d[c.id](c),"com.apple.streaming.transportStreamTimestamp"===c.owner)){var f=c.data,p=(1&f[3])<<30|f[4]<<22|f[5]<<14|f[6]<<6|f[7]>>>2;p*=4,p+=3&f[7],c.timeStamp=p,void 0===e.pts&&void 0===e.dts&&(e.pts=c.timeStamp,e.dts=c.timeStamp),this.trigger("timestamp",c)}e.frames.push(c),a+=10,a+=r}while(a<n);this.trigger("data",e)}}}).prototype=new n,t.exports=a},"5c9d":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();function n(t){return t&&t.__esModule?t:{default:t}}var r=n(i("be09")),s=n(i("28e5")),o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e||{},this.init()}return a(t,[{key:"init",value:function(){var t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new s.default.Transmuxer(this.options),(t=this.transmuxer).on("data",(function(t){var e=t.initSegment;t.initSegment={data:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength};var i=t.data;t.data=i.buffer,r.default.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])})),t.captionStream&&t.captionStream.on("data",(function(t){r.default.postMessage({action:"caption",data:t})})),t.on("done",(function(t){r.default.postMessage({action:"done"})})),t.on("gopInfo",(function(t){r.default.postMessage({action:"gopInfo",gopInfo:t})}))}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(t){var e=t.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*e))}},{key:"setAudioAppendStart",value:function(t){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*t.appendStart))}},{key:"flush",value:function(t){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(t){this.transmuxer.alignGopsWith(t.gopsToAlignWith.slice())}}]),t}(),u=function(t){t.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new o(t.data.options):(this.messageHandlers||(this.messageHandlers=new o),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}};e.default=function(t){return new u(t)},t.exports=e.default},"631a":function(t,e,i){"use strict";var a,n,r,s=i("4329"),o=i("3240");(n=function(){var t,e,i=0;n.prototype.init.call(this),this.push=function(a){var n;for(e?((n=new Uint8Array(e.byteLength+a.data.byteLength)).set(e),n.set(a.data,e.byteLength),e=n):e=a.data;i<e.byteLength-3;i++)if(1===e[i+2]){t=i+5;break}for(;t<e.byteLength;)switch(e[t]){case 0:if(0!==e[t-1]){t+=2;break}if(0!==e[t-2]){t++;break}i+3!==t-2&&this.trigger("data",e.subarray(i+3,t-2));do{t++}while(1!==e[t]&&t<e.length);i=t-2,t+=3;break;case 1:if(0!==e[t-1]||0!==e[t-2]){t+=3;break}this.trigger("data",e.subarray(i+3,t-2)),i=t-2,t+=3;break;default:t+=3}e=e.subarray(i),t-=i,i=0},this.flush=function(){e&&e.byteLength>3&&this.trigger("data",e.subarray(i+3)),e=null,i=0,this.trigger("done")}}).prototype=new s,r={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(a=function(){var t,e,i,s,u,d,c,l=new n;a.prototype.init.call(this),t=this,this.push=function(t){"video"===t.type&&(e=t.trackId,i=t.pts,s=t.dts,l.push(t))},l.on("data",(function(a){var n={trackId:e,pts:i,dts:s,data:a};switch(31&a[0]){case 5:n.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:n.nalUnitType="sei_rbsp",n.escapedRBSP=u(a.subarray(1));break;case 7:n.nalUnitType="seq_parameter_set_rbsp",n.escapedRBSP=u(a.subarray(1)),n.config=d(n.escapedRBSP);break;case 8:n.nalUnitType="pic_parameter_set_rbsp";break;case 9:n.nalUnitType="access_unit_delimiter_rbsp"}t.trigger("data",n)})),l.on("done",(function(){t.trigger("done")})),this.flush=function(){l.flush()},c=function(t,e){var i,a=8,n=8;for(i=0;i<t;i++)0!==n&&(n=(a+e.readExpGolomb()+256)%256),a=0===n?a:n},u=function(t){for(var e,i,a=t.byteLength,n=[],r=1;r<a-2;)0===t[r]&&0===t[r+1]&&3===t[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return t;e=a-n.length,i=new Uint8Array(e);var s=0;for(r=0;r<e;s++,r++)s===n[0]&&(s++,n.shift()),i[r]=t[s];return i},d=function(t){var e,i,a,n,s,u,d,l,f,p,h,m,g,y=0,v=0,b=0,_=0,T=1;if(i=(e=new o(t)).readUnsignedByte(),n=e.readUnsignedByte(),a=e.readUnsignedByte(),e.skipUnsignedExpGolomb(),r[i]&&(3===(s=e.readUnsignedExpGolomb())&&e.skipBits(1),e.skipUnsignedExpGolomb(),e.skipUnsignedExpGolomb(),e.skipBits(1),e.readBoolean()))for(h=3!==s?8:12,g=0;g<h;g++)e.readBoolean()&&c(g<6?16:64,e);if(e.skipUnsignedExpGolomb(),0===(u=e.readUnsignedExpGolomb()))e.readUnsignedExpGolomb();else if(1===u)for(e.skipBits(1),e.skipExpGolomb(),e.skipExpGolomb(),d=e.readUnsignedExpGolomb(),g=0;g<d;g++)e.skipExpGolomb();if(e.skipUnsignedExpGolomb(),e.skipBits(1),l=e.readUnsignedExpGolomb(),f=e.readUnsignedExpGolomb(),0===(p=e.readBits(1))&&e.skipBits(1),e.skipBits(1),e.readBoolean()&&(y=e.readUnsignedExpGolomb(),v=e.readUnsignedExpGolomb(),b=e.readUnsignedExpGolomb(),_=e.readUnsignedExpGolomb()),e.readBoolean()&&e.readBoolean()){switch(e.readUnsignedByte()){case 1:m=[1,1];break;case 2:m=[12,11];break;case 3:m=[10,11];break;case 4:m=[16,11];break;case 5:m=[40,33];break;case 6:m=[24,11];break;case 7:m=[20,11];break;case 8:m=[32,11];break;case 9:m=[80,33];break;case 10:m=[18,11];break;case 11:m=[15,11];break;case 12:m=[64,33];break;case 13:m=[160,99];break;case 14:m=[4,3];break;case 15:m=[3,2];break;case 16:m=[2,1];break;case 255:m=[e.readUnsignedByte()<<8|e.readUnsignedByte(),e.readUnsignedByte()<<8|e.readUnsignedByte()]}m&&(T=m[0]/m[1])}return{profileIdc:i,levelIdc:a,profileCompatibility:n,width:Math.ceil((16*(l+1)-2*y-2*v)*T),height:(2-p)*(f+1)*16-2*b-2*_}}}).prototype=new s,t.exports={H264Stream:a,NalByteStream:n}},6444:function(t,e){var i=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var e,a={},n=i(t).split("\n"),r=0;r<n.length;r++){var s=n[r],o=s.indexOf(":"),u=i(s.slice(0,o)).toLowerCase(),d=i(s.slice(o+1));void 0===a[u]?a[u]=d:(e=a[u],"[object Array]"===Object.prototype.toString.call(e)?a[u].push(d):a[u]=[a[u],d])}return a}},"672d":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();function n(t){return t&&t.__esModule?t:{default:t}}var r=n(i("be09")),s=n(i("3d33")),o=n(i("6d5a")),u=n(i("4ea2")),d=n(i("9417")),c=i("ba2d"),l=n(i("a64c")),f=n(i("78d8")),p=n(i("e206")),h=function(t){r.default.setTimeout(t,p.default.TIME_BETWEEN_CHUNKS)},m=function(){return Math.random().toString(36).slice(2,8)},g=function(t,e){("number"!=typeof e||e<0)&&(e=0);var i=Math.pow(10,e);return Math.round(t*i)/i},y=function(t){function e(t){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,i){for(var a=!0;a;){var n=t,r=e,s=i;a=!1,null===n&&(n=Function.prototype);var o=Object.getOwnPropertyDescriptor(n,r);if(void 0!==o){if("value"in o)return o.value;var u=o.get;if(void 0===u)return;return u.call(s)}var d=Object.getPrototypeOf(n);if(null===d)return;t=d,e=r,i=s,a=!0,o=d=void 0}}(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);var a;this.chunkSize_=p.default.BYTES_PER_CHUNK,this.buffer_=[],this.bufferSize_=0,this.basePtsOffset_=NaN,this.mediaSource_=t,this.audioBufferEnd_=NaN,this.videoBufferEnd_=NaN,this.updating=!1,this.timestampOffset_=0,a=r.default.btoa(String.fromCharCode.apply(null,Array.prototype.slice.call(o.default.getFlvHeader())));var n=this.mediaSource_.player_.id().replace(/[^a-zA-Z0-9]/g,"_");this.flashEncodedHeaderName_="vjs_flashEncodedHeader_"+n+m(),this.flashEncodedDataName_="vjs_flashEncodedData_"+n+m(),r.default[this.flashEncodedHeaderName_]=function(){return delete r.default[i.flashEncodedHeaderName_],a},this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedHeaderName_),this.transmuxer_=(0,f.default)(l.default,function(){var t=void 0;try{t="a64c"}catch(t){}return t}()),this.transmuxer_.postMessage({action:"init",options:{}}),this.transmuxer_.onmessage=function(t){"data"===t.data.action&&i.receiveBuffer_(t.data.segment)},this.one("updateend",(function(){i.mediaSource_.tech_.trigger("loadedmetadata")})),Object.defineProperty(this,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(t){"number"==typeof t&&t>=0&&(this.timestampOffset_=t,this.mediaSource_.swfObj.vjs_discontinuity(),this.basePtsOffset_=NaN,this.audioBufferEnd_=NaN,this.videoBufferEnd_=NaN,this.transmuxer_.postMessage({action:"reset"}))}}),Object.defineProperty(this,"buffered",{get:function(){if(!this.mediaSource_||!this.mediaSource_.swfObj||!("vjs_getProperty"in this.mediaSource_.swfObj))return s.default.createTimeRange();var t=this.mediaSource_.swfObj.vjs_getProperty("buffered");return t&&t.length&&(t[0][0]=g(t[0][0],3),t[0][1]=g(t[0][1],3)),s.default.createTimeRanges(t)}}),this.mediaSource_.player_.on("seeked",(function(){if((0,u.default)(0,1/0,i.metadataTrack_),i.inbandTextTracks_)for(var t in i.inbandTextTracks_)(0,u.default)(0,1/0,i.inbandTextTracks_[t])}));var d=this.onHlsReset_.bind(this);this.mediaSource_.player_.tech_.on("hls-reset",d),this.mediaSource_.player_.tech_.hls.on("dispose",(function(){i.transmuxer_.terminate(),i.mediaSource_.player_.tech_.off("hls-reset",d)}))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"appendBuffer",value:function(t){var e=void 0;if(this.updating)throw(e=new Error("SourceBuffer.append() cannot be called while an update is in progress")).name="InvalidStateError",e.code=11,e;this.updating=!0,this.mediaSource_.readyState="open",this.trigger({type:"update"}),this.transmuxer_.postMessage({action:"push",data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength},[t.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"abort",value:function(){this.buffer_=[],this.bufferSize_=0,this.mediaSource_.swfObj.vjs_abort(),this.updating&&(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"remove",value:function(t,e){if((0,u.default)(t,e,this.metadataTrack_),this.inbandTextTracks_)for(var i in this.inbandTextTracks_)(0,u.default)(t,e,this.inbandTextTracks_[i]);this.trigger({type:"update"}),this.trigger({type:"updateend"})}},{key:"receiveBuffer_",value:function(t){var e=this;(0,d.default)(this,this.mediaSource_,t),(0,c.addTextTrackData)(this,t.captions,t.metadata),h((function(){var i=e.convertTagsToData_(t);0===e.buffer_.length&&h(e.processBuffer_.bind(e)),i&&(e.buffer_.push(i),e.bufferSize_+=i.byteLength)}))}},{key:"processBuffer_",value:function(){var t=this,e=p.default.BYTES_PER_CHUNK;if(this.buffer_.length){var i=this.buffer_[0].subarray(0,e);i.byteLength<e||this.buffer_[0].byteLength===e?this.buffer_.shift():this.buffer_[0]=this.buffer_[0].subarray(e),this.bufferSize_-=i.byteLength;for(var a=[],n=i.byteLength,s=0;s<n;s++)a.push(String.fromCharCode(i[s]));var o=r.default.btoa(a.join(""));r.default[this.flashEncodedDataName_]=function(){return h(t.processBuffer_.bind(t)),delete r.default[t.flashEncodedDataName_],o},this.mediaSource_.swfObj.vjs_appendChunkReady(this.flashEncodedDataName_)}else!1!==this.updating&&(this.updating=!1,this.trigger({type:"updateend"}))}},{key:"convertTagsToData_",value:function(t){var e=0,i=this.mediaSource_.tech_,a=0,n=void 0,r=t.tags.videoTags,s=t.tags.audioTags;if(isNaN(this.basePtsOffset_)&&(r.length||s.length)){var o=r[0]||{pts:1/0},u=s[0]||{pts:1/0};this.basePtsOffset_=Math.min(u.pts,o.pts)}i.seeking()&&(this.videoBufferEnd_=NaN,this.audioBufferEnd_=NaN),isNaN(this.videoBufferEnd_)?(i.buffered().length&&(a=i.buffered().end(0)-this.timestampOffset),i.seeking()&&(a=Math.max(a,i.currentTime()-this.timestampOffset)),a*=1e3,a+=this.basePtsOffset_):a=this.videoBufferEnd_+.1;var d=r.length;if(d&&r[d-1].pts>=a){for(;--d;){var c=r[d];if(!(c.pts>a)&&(c.keyFrame||c.metaDataTag))break}for(;d;){if(!r[d-1].metaDataTag)break;d--}}var l=r.slice(d),f=void 0;for(f=isNaN(this.audioBufferEnd_)?a:this.audioBufferEnd_+.1,l.length&&(f=Math.min(f,l[0].pts)),d=0;d<s.length&&!(s[d].pts>=f);)d++;var p=s.slice(d);p.length&&(this.audioBufferEnd_=p[p.length-1].pts),l.length&&(this.videoBufferEnd_=l[l.length-1].pts);var h=this.getOrderedTags_(l,p);if(0!==h.length){if(h[0].pts<a&&i.seeking()){var m=i.currentTime()-(a-h[0].pts)/1e3;m<1/30&&(m=0);try{this.mediaSource_.swfObj.vjs_adjustCurrentTime(m)}catch(t){}}for(var g=0;g<h.length;g++)e+=h[g].bytes.byteLength;n=new Uint8Array(e);g=0;for(var y=0;g<h.length;g++)n.set(h[g].bytes,y),y+=h[g].bytes.byteLength;return n}}},{key:"getOrderedTags_",value:function(t,e){for(var i=void 0,a=[];t.length||e.length;)i=t.length?e.length&&e[0].dts<t[0].dts?e.shift():t.shift():e.shift(),a.push(i);return a}},{key:"onHlsReset_",value:function(){this.transmuxer_.postMessage({action:"resetCaptions"})}}]),e}(s.default.EventTarget);e.default=y,t.exports=e.default},"6d5a":function(t,e,i){t.exports={tag:i("d7ba"),Transmuxer:i("847a"),getFlvHeader:i("b046")}},"72a5":function(t,e,i){"use strict";var a;t.exports=function(t){var e=a[t.byteLength%16||0],i=new Uint8Array(t.byteLength+e.length);return i.set(t),i.set(e,t.byteLength),i},a=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]]},"78d8":function(t,e,i){var a=arguments[3],n=arguments[4],r=arguments[5],s=JSON.stringify,o=!1,u=function(t){var e={};function i(a){if(e[a])return e[a].exports;var n=e[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:a})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=entryModule)};void 0===a&&(o=!0,a=u,n=i.m);var d=function(t){for(var e,i=Object.keys(r),o=0;o<i.length;o++){var u=i[o],d=r[u].exports;if(d===t||d&&d.default===t){e=u;break}}if(!e){e=Math.floor(Math.pow(16,8)*Math.random()).toString(16);var c={};for(o=0;o<i.length;o++){c[u=i[o]]=u}n[e]=["function(require,module,exports){"+t+"(self); }",c]}var l=Math.floor(Math.pow(16,8)*Math.random()).toString(16),f={};return f[e]=e,n[l]=["function(require,module,exports){var f = require("+s(e)+");(f.default ? f.default : f)(self);}",f],"("+a+")({"+Object.keys(n).map((function(t){return s(t)+":["+n[t][0]+","+s(n[t][1])+"]"})).join(",")+"},{},["+s(l)+"])"},c=function(t,e){var r,o="string"==typeof e;r=o?{}:[],Object.keys(n).forEach((function(t){n[t]&&(r[t]=n[t].toString())}));var u,d=i(e);if(!d||d!==t&&d.default!==t){var c=r[e];r[e]=c.substring(0,c.length-1)+"\n"+t.name+"();\n}"}o?(e=s(e),u="{"+Object.keys(r).map((function(t){return s(t)+":"+r[t]})).join(",")+"}"):u="["+r.join(",")+"]";return"var fn = ("+a.toString().replace("entryModule",e)+")("+u+');\n(typeof fn === "function") && fn(self);'};t.exports=function(t,e){var i;i=o?c(t,e):d(t);var a=new Blob([i],{type:"text/javascript"}),n=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(a),r=new Worker(n);return r.objectURL=n,r}},"7e10":function(t,e){var i,a=[33,16,5,32,164,27],n=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],r=function(t){for(var e=[];t--;)e.push(0);return e},s={96e3:[a,[227,64],r(154),[56]],88200:[a,[231],r(170),[56]],64e3:[a,[248,192],r(240),[56]],48e3:[a,[255,192],r(268),[55,148,128],r(54),[112]],44100:[a,[255,192],r(268),[55,163,128],r(84),[112]],32e3:[a,[255,192],r(268),[55,234],r(226),[112]],24e3:[a,[255,192],r(268),[55,255,128],r(268),[111,112],r(126),[224]],16e3:[a,[255,192],r(268),[55,255,128],r(268),[111,255],r(269),[223,108],r(195),[1,192]],12e3:[n,r(268),[3,127,248],r(268),[6,255,240],r(268),[13,255,224],r(268),[27,253,128],r(259),[56]],11025:[n,r(268),[3,127,248],r(268),[6,255,240],r(268),[13,255,224],r(268),[27,255,192],r(268),[55,175,128],r(108),[112]],8e3:[n,r(268),[3,121,16],r(47),[7]]};t.exports=(i=s,Object.keys(i).reduce((function(t,e){return t[e]=new Uint8Array(i[e].reduce((function(t,e){return t.concat(e)}),[])),t}),{}))},"80eb":function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=a(i("be09")),r=a(i("92b0")),s=a(i("9f7a")),o=a(i("3d33")),u=0,d={mode:"auto"};o.default.mediaSources={};var c=function(t,e){var i=o.default.mediaSources[t];if(!i)throw new Error("Media Source not found (Video.js)");i.trigger({type:"sourceopen",swfId:e})},l=function(){return!!n.default.MediaSource&&!!n.default.MediaSource.isTypeSupported&&n.default.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},f=function(t){var e=o.default.mergeOptions(d,t);if(this.MediaSource={open:c,supportsNativeMediaSources:l},"html5"===e.mode||"auto"===e.mode&&l())return new s.default;if(o.default.getTech("Flash"))return new r.default;throw new Error("Cannot use Flash or Html5 to create a MediaSource for this video")};e.MediaSource=f,f.open=c,f.supportsNativeMediaSources=l;var p={createObjectURL:function(t){var e=void 0;return t instanceof s.default?(e=n.default.URL.createObjectURL(t.nativeMediaSource_),t.url_=e,e):t instanceof r.default?(e="blob:vjs-media-source/"+u,u++,o.default.mediaSources[e]=t,e):(e=n.default.URL.createObjectURL(t),t.url_=e,e)}};e.URL=p,o.default.MediaSource=f,o.default.URL=p},"818b":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();var n=null,r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n||(n=function(){var t=[[[],[],[],[],[]],[[],[],[],[],[]]],e=t[0],i=t[1],a=e[4],n=i[4],r=void 0,s=void 0,o=void 0,u=[],d=[],c=void 0,l=void 0,f=void 0,p=void 0,h=void 0;for(r=0;r<256;r++)d[(u[r]=r<<1^283*(r>>7))^r]=r;for(s=o=0;!a[s];s^=c||1,o=d[o]||1)for(f=(f=o^o<<1^o<<2^o<<3^o<<4)>>8^255&f^99,a[s]=f,n[f]=s,h=16843009*u[l=u[c=u[s]]]^65537*l^257*c^16843008*s,p=257*u[f]^16843008*f,r=0;r<4;r++)e[r][s]=p=p<<24^p>>>8,i[r][f]=h=h<<24^h>>>8;for(r=0;r<5;r++)e[r]=e[r].slice(0),i[r]=i[r].slice(0);return t}()),this._tables=[[n[0][0].slice(),n[0][1].slice(),n[0][2].slice(),n[0][3].slice(),n[0][4].slice()],[n[1][0].slice(),n[1][1].slice(),n[1][2].slice(),n[1][3].slice(),n[1][4].slice()]];var i=void 0,a=void 0,r=void 0,s=void 0,o=void 0,u=this._tables[0][4],d=this._tables[1],c=e.length,l=1;if(4!==c&&6!==c&&8!==c)throw new Error("Invalid aes key size");for(s=e.slice(0),o=[],this._key=[s,o],i=c;i<4*c+28;i++)r=s[i-1],(i%c==0||8===c&&i%c==4)&&(r=u[r>>>24]<<24^u[r>>16&255]<<16^u[r>>8&255]<<8^u[255&r],i%c==0&&(r=r<<8^r>>>24^l<<24,l=l<<1^283*(l>>7))),s[i]=s[i-c]^r;for(a=0;i;a++,i--)r=s[3&a?i:i-4],o[a]=i<=4||a<4?r:d[0][u[r>>>24]]^d[1][u[r>>16&255]]^d[2][u[r>>8&255]]^d[3][u[255&r]]}return a(t,[{key:"decrypt",value:function(t,e,i,a,n,r){var s=this._key[1],o=t^s[0],u=a^s[1],d=i^s[2],c=e^s[3],l=void 0,f=void 0,p=void 0,h=s.length/4-2,m=void 0,g=4,y=this._tables[1],v=y[0],b=y[1],_=y[2],T=y[3],S=y[4];for(m=0;m<h;m++)l=v[o>>>24]^b[u>>16&255]^_[d>>8&255]^T[255&c]^s[g],f=v[u>>>24]^b[d>>16&255]^_[c>>8&255]^T[255&o]^s[g+1],p=v[d>>>24]^b[c>>16&255]^_[o>>8&255]^T[255&u]^s[g+2],c=v[c>>>24]^b[o>>16&255]^_[u>>8&255]^T[255&d]^s[g+3],g+=4,o=l,u=f,d=p;for(m=0;m<4;m++)n[(3&-m)+r]=S[o>>>24]<<24^S[u>>16&255]<<16^S[d>>8&255]<<8^S[255&c]^s[g++],l=o,o=u,u=d,d=c,c=l}}]),t}();e.default=r,t.exports=e.default},8362:function(t,e){t.exports=function(t){if(!t)return!1;var e=i.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var i=Object.prototype.toString},"847a":function(t,e,i){"use strict";var a,n,r,s,o,u,d=i("4329"),c=i("d7ba"),l=i("0ea2"),f=i("4fcf"),p=i("631a").H264Stream,h=i("1c05"),m=i("ae54");s=function(t,e){"number"==typeof e.pts&&(void 0===t.timelineStartInfo.pts?t.timelineStartInfo.pts=e.pts:t.timelineStartInfo.pts=Math.min(t.timelineStartInfo.pts,e.pts)),"number"==typeof e.dts&&(void 0===t.timelineStartInfo.dts?t.timelineStartInfo.dts=e.dts:t.timelineStartInfo.dts=Math.min(t.timelineStartInfo.dts,e.dts))},o=function(t,e){var i=new c(c.METADATA_TAG);return i.dts=e,i.pts=e,i.writeMetaDataDouble("videocodecid",7),i.writeMetaDataDouble("width",t.width),i.writeMetaDataDouble("height",t.height),i},u=function(t,e){var i,a=new c(c.VIDEO_TAG,!0);for(a.dts=e,a.pts=e,a.writeByte(1),a.writeByte(t.profileIdc),a.writeByte(t.profileCompatibility),a.writeByte(t.levelIdc),a.writeByte(255),a.writeByte(225),a.writeShort(t.sps[0].length),a.writeBytes(t.sps[0]),a.writeByte(t.pps.length),i=0;i<t.pps.length;++i)a.writeShort(t.pps[i].length),a.writeBytes(t.pps[i]);return a},(r=function(t){var e,i=[],a=[];r.prototype.init.call(this),this.push=function(e){s(t,e),t&&(t.audioobjecttype=e.audioobjecttype,t.channelcount=e.channelcount,t.samplerate=e.samplerate,t.samplingfrequencyindex=e.samplingfrequencyindex,t.samplesize=e.samplesize,t.extraData=t.audioobjecttype<<11|t.samplingfrequencyindex<<7|t.channelcount<<3),e.pts=Math.round(e.pts/90),e.dts=Math.round(e.dts/90),i.push(e)},this.flush=function(){var n,r,s,o=new m;if(0!==i.length){for(s=-1/0;i.length;)n=i.shift(),a.length&&n.pts>=a[0]&&(s=a.shift(),this.writeMetaDataTags(o,s)),(t.extraData!==e||n.pts-s>=1e3)&&(this.writeMetaDataTags(o,n.pts),e=t.extraData,s=n.pts),(r=new c(c.AUDIO_TAG)).pts=n.pts,r.dts=n.dts,r.writeBytes(n.data),o.push(r.finalize());a.length=0,e=null,this.trigger("data",{track:t,tags:o.list}),this.trigger("done","AudioSegmentStream")}else this.trigger("done","AudioSegmentStream")},this.writeMetaDataTags=function(e,i){var a;(a=new c(c.METADATA_TAG)).pts=i,a.dts=i,a.writeMetaDataDouble("audiocodecid",10),a.writeMetaDataBoolean("stereo",2===t.channelcount),a.writeMetaDataDouble("audiosamplerate",t.samplerate),a.writeMetaDataDouble("audiosamplesize",16),e.push(a.finalize()),(a=new c(c.AUDIO_TAG,!0)).pts=i,a.dts=i,a.view.setUint16(a.position,t.extraData),a.position+=2,a.length=Math.max(a.length,a.position),e.push(a.finalize())},this.onVideoKeyFrame=function(t){a.push(t)}}).prototype=new d,(n=function(t){var e,i,a=[];n.prototype.init.call(this),this.finishFrame=function(a,n){if(n){if(e&&t&&t.newMetadata&&(n.keyFrame||0===a.length)){var r=o(e,n.dts).finalize(),s=u(t,n.dts).finalize();r.metaDataTag=s.metaDataTag=!0,a.push(r),a.push(s),t.newMetadata=!1,this.trigger("keyframe",n.dts)}n.endNalUnit(),a.push(n.finalize()),i=null}},this.push=function(e){s(t,e),e.pts=Math.round(e.pts/90),e.dts=Math.round(e.dts/90),a.push(e)},this.flush=function(){for(var n,r=new m;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0!==a.length){for(;a.length;)"seq_parameter_set_rbsp"===(n=a.shift()).nalUnitType?(t.newMetadata=!0,e=n.config,t.width=e.width,t.height=e.height,t.sps=[n.data],t.profileIdc=e.profileIdc,t.levelIdc=e.levelIdc,t.profileCompatibility=e.profileCompatibility,i.endNalUnit()):"pic_parameter_set_rbsp"===n.nalUnitType?(t.newMetadata=!0,t.pps=[n.data],i.endNalUnit()):"access_unit_delimiter_rbsp"===n.nalUnitType?(i&&this.finishFrame(r,i),(i=new c(c.VIDEO_TAG)).pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.endNalUnit()),i.startNalUnit(),i.writeBytes(n.data);i&&this.finishFrame(r,i),this.trigger("data",{track:t,tags:r.list}),this.trigger("done","VideoSegmentStream")}else this.trigger("done","VideoSegmentStream")}}).prototype=new d,(a=function(t){var e,i,s,o,u,d,c,m,g,y,v,b,_=this;a.prototype.init.call(this),t=t||{},this.metadataStream=new l.MetadataStream,t.metadataStream=this.metadataStream,e=new l.TransportPacketStream,i=new l.TransportParseStream,s=new l.ElementaryStream,o=new l.TimestampRolloverStream("video"),u=new l.TimestampRolloverStream("audio"),d=new l.TimestampRolloverStream("timed-metadata"),c=new f,m=new p,b=new h(t),e.pipe(i).pipe(s),s.pipe(o).pipe(m),s.pipe(u).pipe(c),s.pipe(d).pipe(this.metadataStream).pipe(b),v=new l.CaptionStream,m.pipe(v).pipe(b),s.on("data",(function(t){var e,i,a;if("metadata"===t.type){for(e=t.tracks.length;e--;)"video"===t.tracks[e].type?i=t.tracks[e]:"audio"===t.tracks[e].type&&(a=t.tracks[e]);i&&!g&&(b.numberOfTracks++,g=new n(i),m.pipe(g).pipe(b)),a&&!y&&(b.numberOfTracks++,y=new r(a),c.pipe(y).pipe(b),g&&g.on("keyframe",y.onVideoKeyFrame))}})),this.push=function(t){e.push(t)},this.flush=function(){e.flush()},this.resetCaptions=function(){v.reset()},b.on("data",(function(t){_.trigger("data",t)})),b.on("done",(function(){_.trigger("done")}))}).prototype=new d,t.exports=a},8890:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();var n,r=i("4491"),s=(n=r)&&n.__esModule?n:{default:n},o=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,i){for(var a=!0;a;){var n=t,r=e,s=i;a=!1,null===n&&(n=Function.prototype);var o=Object.getOwnPropertyDescriptor(n,r);if(void 0!==o){if("value"in o)return o.value;var u=o.get;if(void 0===u)return;return u.call(s)}var d=Object.getPrototypeOf(n);if(null===d)return;t=d,e=r,i=s,a=!0,o=d=void 0}}(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,s.default),this.jobs=[],this.delay=1,this.timeout_=null}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"processJob_",value:function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}},{key:"push",value:function(t){this.jobs.push(t),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}]),e}(s.default);e.default=o,t.exports=e.default},"8c10":function(t,e){t.exports=function(t,e){var i,a=null;try{i=JSON.parse(t,e)}catch(t){a=t}return[a,i]}},"91bb":function(t,e,i){"use strict";i("9431")},"92b0":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();function n(t){return t&&t.__esModule?t:{default:t}}var r=n(i("ef34")),s=n(i("3d33")),o=n(i("672d")),u=n(i("e206")),d=i("0de0"),c=function(t){function e(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,i){for(var a=!0;a;){var n=t,r=e,s=i;a=!1,null===n&&(n=Function.prototype);var o=Object.getOwnPropertyDescriptor(n,r);if(void 0!==o){if("value"in o)return o.value;var u=o.get;if(void 0===u)return;return u.call(s)}var d=Object.getPrototypeOf(n);if(null===d)return;t=d,e=r,i=s,a=!0,o=d=void 0}}(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.sourceBuffers=[],this.readyState="closed",this.on(["sourceopen","webkitsourceopen"],(function(e){t.swfObj=r.default.getElementById(e.swfId),t.player_=(0,s.default)(t.swfObj.parentNode),t.tech_=t.swfObj.tech,t.readyState="open",t.tech_.on("seeking",(function(){for(var e=t.sourceBuffers.length;e--;)t.sourceBuffers[e].abort()})),t.swfObj&&t.swfObj.vjs_load()}))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"addSeekableRange_",value:function(){}},{key:"addSourceBuffer",value:function(t){var e=(0,d.parseContentType)(t),i=void 0;if("video/mp2t"!==e.type&&"audio/mp2t"!==e.type)throw new Error("NotSupportedError (Video.js)");return i=new o.default(this),this.sourceBuffers.push(i),i}},{key:"endOfStream",value:function(t){"network"===t?this.tech_.error(2):"decode"===t&&this.tech_.error(3),"ended"!==this.readyState&&(this.readyState="ended",this.swfObj.vjs_endOfStream())}}]),e}(s.default.EventTarget);e.default=c;try{Object.defineProperty(c.prototype,"duration",{get:function(){return this.swfObj?this.swfObj.vjs_getProperty("duration"):NaN},set:function(t){var e=void 0,i=this.swfObj.vjs_getProperty("duration");if(this.swfObj.vjs_setProperty("duration",t),t<i)for(e=0;e<this.sourceBuffers.length;e++)this.sourceBuffers[e].remove(t,i);return t}})}catch(t){c.prototype.duration=NaN}for(var l in u.default)c[l]=u.default[l];t.exports=e.default},9417:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,i){var a=e.player_;if(i.captions&&i.captions.length)for(var n in t.inbandTextTracks_||(t.inbandTextTracks_={}),i.captionStreams)if(!t.inbandTextTracks_[n]){a.tech_.trigger({type:"usage",name:"hls-608"});var r=a.textTracks().getTrackById(n);t.inbandTextTracks_[n]=r||a.addRemoteTextTrack({kind:"captions",id:n,label:n},!1).track}i.metadata&&i.metadata.length&&!t.metadataTrack_&&(t.metadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,t.metadataTrack_.inBandMetadataTrackDispatchType=i.metadata.dispatchType)},t.exports=e.default},9431:function(t,e,i){},9641:function(t,e,i){"use strict";e.a={props:{value:Boolean},data:function(){return{showValue:!1}},watch:{value:function(t){this.showValue=t},showValue:function(t){this.$emit("update:value",t)}}}},9946:function(t,e,i){"use strict";var a=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],n=function(t){return t[0]<<21|t[1]<<14|t[2]<<7|t[3]};t.exports={parseId3TagSize:function(t,e){var i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&t[e+5])>>4?i+20:i+10},parseAdtsSize:function(t,e){var i=(224&t[e+5])>>5,a=t[e+4]<<3;return 6144&t[e+3]|a|i},parseType:function(t,e){return t[e]==="I".charCodeAt(0)&&t[e+1]==="D".charCodeAt(0)&&t[e+2]==="3".charCodeAt(0)?"timed-metadata":!0&t[e]&&240==(240&t[e+1])?"audio":null},parseSampleRate:function(t){for(var e=0;e+5<t.length;){if(255===t[e]&&240==(246&t[e+1]))return a[(60&t[e+2])>>>2];e++}return null},parseAacTimestamp:function(t){var e,i,a;e=10,64&t[5]&&(e+=4,e+=n(t.subarray(10,14)));do{if((i=n(t.subarray(e+4,e+8)))<1)return null;if("PRIV"===String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])){a=t.subarray(e+10,e+i+10);for(var r=0;r<a.byteLength;r++)if(0===a[r]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(t,e,i){var a,n="";for(a=e;a<i;a++)n+="%"+("00"+t[a].toString(16)).slice(-2);return n}(a,0,r))){var s=a.subarray(r+1),o=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return o*=4,o+=3&s[7]}break}}e+=10,e+=i}while(e<t.byteLength);return null}}},"9d56":function(t,e,i){"use strict";var a,n=i("4329");(a=function(){var t=new Uint8Array,e=0;a.prototype.init.call(this),this.setTimestamp=function(t){e=t},this.parseId3TagSize=function(t,e){var i=t[e+6]<<21|t[e+7]<<14|t[e+8]<<7|t[e+9];return(16&t[e+5])>>4?i+20:i+10},this.parseAdtsSize=function(t,e){var i=(224&t[e+5])>>5,a=t[e+4]<<3;return 6144&t[e+3]|a|i},this.push=function(i){var a,n,r,s,o=0,u=0;for(t.length?(s=t.length,(t=new Uint8Array(i.byteLength+s)).set(t.subarray(0,s)),t.set(i,s)):t=i;t.length-u>=3;)if(t[u]!=="I".charCodeAt(0)||t[u+1]!=="D".charCodeAt(0)||t[u+2]!=="3".charCodeAt(0))if(!0&t[u]&&240==(240&t[u+1])){if(t.length-u<7)break;if((o=this.parseAdtsSize(t,u))>t.length)break;r={type:"audio",data:t.subarray(u,u+o),pts:e,dts:e},this.trigger("data",r),u+=o}else u++;else{if(t.length-u<10)break;if((o=this.parseId3TagSize(t,u))>t.length)break;n={type:"timed-metadata",data:t.subarray(u,u+o)},this.trigger("data",n),u+=o}a=t.length-u,t=a>0?t.subarray(u):new Uint8Array}}).prototype=new n,t.exports=a},"9f7a":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();function n(t){return t&&t.__esModule?t:{default:t}}var r=n(i("be09")),s=n(i("ef34")),o=n(i("3d33")),u=n(i("269f")),d=i("ba2d"),c=i("0de0"),l=function(t){function e(){var t=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,i){for(var a=!0;a;){var n=t,r=e,s=i;a=!1,null===n&&(n=Function.prototype);var o=Object.getOwnPropertyDescriptor(n,r);if(void 0!==o){if("value"in o)return o.value;var u=o.get;if(void 0===u)return;return u.call(s)}var d=Object.getPrototypeOf(n);if(null===d)return;t=d,e=r,i=s,a=!0,o=d=void 0}}(Object.getPrototypeOf(e.prototype),"constructor",this).call(this);var i=void 0;for(i in this.nativeMediaSource_=new r.default.MediaSource,this.nativeMediaSource_)i in e.prototype||"function"!=typeof this.nativeMediaSource_[i]||(this[i]=this.nativeMediaSource_[i].bind(this.nativeMediaSource_));this.duration_=NaN,Object.defineProperty(this,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(t){this.duration_=t,t===1/0||(this.nativeMediaSource_.duration=t)}}),Object.defineProperty(this,"seekable",{get:function(){return this.duration_===1/0?o.default.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(this,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(this,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),this.sourceBuffers=[],this.activeSourceBuffers_=[],this.updateActiveSourceBuffers_=function(){if(t.activeSourceBuffers_.length=0,1===t.sourceBuffers.length){var e=t.sourceBuffers[0];return e.appendAudioInitSegment_=!0,e.audioDisabled_=!e.audioCodec_,void t.activeSourceBuffers_.push(e)}for(var i=!1,a=!0,n=0;n<t.player_.audioTracks().length;n++){var r=t.player_.audioTracks()[n];if(r.enabled&&"main"!==r.kind){i=!0,a=!1;break}}t.sourceBuffers.forEach((function(e){if(e.appendAudioInitSegment_=!0,e.videoCodec_&&e.audioCodec_)e.audioDisabled_=i;else if(e.videoCodec_&&!e.audioCodec_)e.audioDisabled_=!0,a=!1;else if(!e.videoCodec_&&e.audioCodec_&&(e.audioDisabled_=a,a))return;t.activeSourceBuffers_.push(e)}))},this.onPlayerMediachange_=function(){t.sourceBuffers.forEach((function(t){t.appendAudioInitSegment_=!0}))},this.onHlsReset_=function(){t.sourceBuffers.forEach((function(t){t.transmuxer_&&t.transmuxer_.postMessage({action:"resetCaptions"})}))},this.onHlsSegmentTimeMapping_=function(e){t.sourceBuffers.forEach((function(t){return t.timeMapping_=e.mapping}))},["sourceopen","sourceclose","sourceended"].forEach((function(t){this.nativeMediaSource_.addEventListener(t,this.trigger.bind(this))}),this),this.on("sourceopen",(function(e){var i=s.default.querySelector('[src="'+t.url_+'"]');i&&(t.player_=(0,o.default)(i.parentNode),t.player_.tech_.on("hls-reset",t.onHlsReset_),t.player_.tech_.on("hls-segment-time-mapping",t.onHlsSegmentTimeMapping_),t.player_.audioTracks&&t.player_.audioTracks()&&(t.player_.audioTracks().on("change",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("addtrack",t.updateActiveSourceBuffers_),t.player_.audioTracks().on("removetrack",t.updateActiveSourceBuffers_)),t.player_.on("mediachange",t.onPlayerMediachange_))})),this.on("sourceended",(function(e){for(var i=(0,d.durationOfVideo)(t.duration),a=0;a<t.sourceBuffers.length;a++){var n=t.sourceBuffers[a],r=n.metadataTrack_&&n.metadataTrack_.cues;r&&r.length&&(r[r.length-1].endTime=i)}})),this.on("sourceclose",(function(t){this.sourceBuffers.forEach((function(t){t.transmuxer_&&t.transmuxer_.terminate()})),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&(this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))}))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),a(e,[{key:"addSeekableRange_",value:function(t,e){var i=void 0;if(this.duration!==1/0)throw(i=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity")).name="InvalidStateError",i.code=11,i;(e>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=e)}},{key:"addSourceBuffer",value:function(t){var e=void 0,i=(0,c.parseContentType)(t);if(/^(video|audio)\/mp2t$/i.test(i.type)){var a=[];i.parameters&&i.parameters.codecs&&(a=i.parameters.codecs.split(","),a=(a=(0,c.translateLegacyCodecs)(a)).filter((function(t){return(0,c.isAudioCodec)(t)||(0,c.isVideoCodec)(t)}))),0===a.length&&(a=["avc1.4d400d","mp4a.40.2"]),e=new u.default(this,a),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),e.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else e=this.nativeMediaSource_.addSourceBuffer(t);return this.sourceBuffers.push(e),e}}]),e}(o.default.EventTarget);e.default=l,t.exports=e.default},a64c:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();function n(t){return t&&t.__esModule?t:{default:t}}var r=n(i("be09")),s=n(i("6d5a")),o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e||{},this.init()}return a(t,[{key:"init",value:function(){var t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new s.default.Transmuxer(this.options),(t=this.transmuxer).on("data",(function(t){r.default.postMessage({action:"data",segment:t})})),t.on("done",(function(t){r.default.postMessage({action:"done"})}))}},{key:"push",value:function(t){var e=new Uint8Array(t.data,t.byteOffset,t.byteLength);this.transmuxer.push(e)}},{key:"reset",value:function(){this.init()}},{key:"flush",value:function(){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}}]),t}(),u=function(t){t.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new o(t.data.options):(this.messageHandlers||(this.messageHandlers=new o),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}};e.default=function(t){return new u(t)},t.exports=e.default},ae54:function(t,e,i){"use strict";t.exports=function(){var t=this;this.list=[],this.push=function(t){this.list.push({bytes:t.bytes,dts:t.dts,pts:t.pts,keyFrame:t.keyFrame,metaDataTag:t.metaDataTag})},Object.defineProperty(this,"length",{get:function(){return t.list.length}})}},ae75:function(t,e,i){"use strict";t.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},b046:function(t,e,i){"use strict";var a=i("d7ba");t.exports=function(t,e,i){var n,r,s,o=new Uint8Array(9),u=new DataView(o.buffer);return t=t||0,e=void 0===e||e,i=void 0===i||i,u.setUint8(0,70),u.setUint8(1,76),u.setUint8(2,86),u.setUint8(3,1),u.setUint8(4,(e?4:0)|(i?1:0)),u.setUint32(5,o.byteLength),t<=0?((r=new Uint8Array(o.byteLength+4)).set(o),r.set([0,0,0,0],o.byteLength),r):((n=new a(a.METADATA_TAG)).pts=n.dts=0,n.writeMetaDataDouble("duration",t),s=n.finalize().length,(r=new Uint8Array(o.byteLength+s)).set(o),r.set(u.byteLength,s),r)}},b483:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,n=i("31ce"),r=i("8890"),s=(a=r)&&a.__esModule?a:{default:a};e.default={decrypt:n.decrypt,Decrypter:n.Decrypter,AsyncStream:s.default},t.exports=e.default},b4ef:function(t,e,i){"use strict";i("1ba8")},b5f3:function(t,e,i){"use strict";i.r(e);i("96cf");var a=i("3b8d"),n=(i("7f7f"),i("8e6e"),i("ac6a"),i("456d"),i("bd86")),r=(i("c5f6"),i("9641")),s=i("b83a");function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){Object(n.a)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var d,c,l,f,p,h,m,g,y,v={name:"sharePage",mixins:[r.a],components:{wpsFile:s.a},props:{recruitId:String,enterId:String,rowId:String,recruitPattern:{type:Number,default:0}},data:function(){return{isExistId:"",showFile:!1,currFile:[],defaultProps:{label:"text",value:"id",multiple:!0},fileList:[],attachmentJa:[],formData:new FormData,phoneField:"",labelPosition:"right",title:"",fields:[],changeHeight:document.documentElement.clientHeight-120,form:{telephone:"",code:"",securityCode:""},rules:{telephone:[{required:!0,message:"请填写手机号",trigger:"blur"},{pattern:/^1[23456789]\d{9}$/,message:"请正确填写手机号",trigger:"blur"}],code:[{required:!0,message:"请填写验证码",trigger:"blur"}],securityCode:[{required:!0,message:"请填写图形验证码",trigger:"blur"}]},isDisable:!1,btnSend:"发送验证码",codeImg:""}},created:function(){},mounted:function(){document.body.style.setProperty("--mianColor",this.$store.state.home.data.styleJo.mianColor)},watch:{showValue:function(t){var e=this;t&&this.$nextTick((function(){e.listFieldByRecruitId();var t=document.querySelector(".traning-form .el-dialog");window.outerWidth<600?t.classList.add("form-bigger-in-mobile"):t.classList.remove("form-bigger-in-mobile")}))}},methods:{reviewBtn:function(t){this.currFile=[t],this.showFile=!0},delbtn:function(t){var e=this;this.$confirm("此操作将永久删除该附件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(a.a)(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:e.attachmentJa.splice(t,1),e.form.fileId="",e.$message({type:"success",message:"删除成功"});case 3:case"end":return i.stop()}}),i)}))))},handlePreview:function(t){window.open(t.url)},fileChange:function(t,e,i){"success"===t.status&&0===t.response.code&&(this.form[i].push(t.response.data),this.$refs[i][0].clearValidate())},uploadSuccess:function(t,e){this.form[e].push(t.data)},removeImg:function(t,e){this.form[e].splice(t,1)},onRemove:function(t,e){this.fileList=e},handleSuccess:function(t,e,i){this.fileList.push({name:t.data.name,url:t.data.url,fileId:t.data.fileId})},handResumeSuccess:function(t,e,i,a,n){var r={file:t.data,name:t.data.name};this.attachmentJa=[r],this.form.fileId=t.data.fileId},addOrUpdateEvidence:(m=Object(a.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],this.fileList.map((function(t){e.push(t.fileId)})),t.next=4,this.post(this.$api.customWeb.addOrUpdateEvidence,{id:this.enterId,fileIdJa:e});case 4:0===t.sent.code&&this.$refs.upload.clearFiles();case 6:case"end":return t.stop()}}),t,this)}))),function(){return m.apply(this,arguments)}),clearData:function(){this.$refs.form.resetFields(),this.fields=[],this.fileList=[],this.attachmentJa=[],this.showValue=!1},getRandomCode:function(t){if(t>0){for(var e=["0","1","2","3","4","5","6","7","8","9"],i="",a=0;a<t;a++){i+=e[parseInt(10*Math.random())]}return i}return!1},getImageVerifyCode:(h=Object(a.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.randomKey=this.getRandomCode(12),t.next=3,this.post(this.$api.common.getImageVerifyCode,{key:this.randomKey,verifyCodeType:11},!1);case 3:0===(e=t.sent).code&&(this.codeImg=e.data);case 5:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)}),sendCodeSms:(p=Object(a.a)(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.$refs.form.validateField("telephone",function(){var t=Object(a.a)(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!i){t.next=4;break}return t.abrupt("return");case 4:if(""!==e.form.securityCode){t.next=7;break}return e.$message.error("请输入图形验证码"),t.abrupt("return");case 7:if(!e.isDisable){t.next=9;break}return t.abrupt("return");case 9:return t.next=11,e.post(e.$api.common.sendVerifyCode,{telephone:e.form.telephone,templateCode:"SMS_YSS_VERIFY_CODE",securityCode:e.form.securityCode,key:e.randomKey,verifyCodeType:11});case 11:0===t.sent.code&&(e.getCode(),e.$message.success("短信发送成功"));case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 1:case"end":return t.stop()}}),t,this)}))),function(){return p.apply(this,arguments)}),getCode:function(){var t=this;this.isDisable=!0;for(var e=59,i=0;i<=e;i++)setTimeout((function(){0!=e?(t.btnSend="".concat(e,"s"),e--):(t.isDisable=!1,t.btnSend="发送验证码")}),1e3*i)},listFieldByRecruitId:(f=Object(a.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.post(this.$api.customWeb.listFieldByRecruitId,{recruitId:this.recruitId});case 2:0===(e=t.sent).code&&(this.labelPosition=e.data2.formLabelPosition||"right",this.title=e.data2.recruitName,this.fields=e.data,this.setForm(),1==this.$props.recruitPattern&&this.getEnrollInfo());case 4:case"end":return t.stop()}}),t,this)}))),function(){return f.apply(this,arguments)}),setForm:function(){var t=this;this.fields.map((function(e){if(9!==e.fieldType&&8!==e.fieldType){var i,a=[];if(4===e.fieldType||5===e.fieldType?i=[]:3===e.fieldType?(i=[],t.$set(t.form,[e.fieldName+"Arr"],i)):i=1===e.fieldType?e.defaultValue:"",t.$set(t.form,e.fieldName,i),e.requiredFlag){2===e.fieldType||3===e.fieldType||4===e.fieldType||5===e.fieldType?a.push({required:!0,message:t.$t("pleaseSelect")+e.fieldLabel,trigger:"change"}):a.push({required:!0,message:t.$t("pleaseFillInCorrectly")+e.fieldLabel,trigger:"blur"});e.dataFormat&&("mobile_phone"===e.dataFormat&&a.push({pattern:/^1[23456789]\d{9}$/,message:"请正确填写"+e.fieldLabel,trigger:"blur"}),"identity_card"===e.dataFormat&&a.push({pattern:/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/,message:"请正确填写"+e.fieldLabel,trigger:"blur"}),"mail_box"===e.dataFormat&&a.push({pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"请正确填写"+e.fieldLabel,trigger:"blur"})),t.$set(t.rules,e.fieldName,a)}}8===e.fieldType&&(t.phoneField=e.fieldName,t.$set(t.form,e.fieldName,""),t.$nextTick((function(){t.getImageVerifyCode()})))}))},saveFieldName:function(t){this.form[t]=this.form[t+"Arr"].join(",")},submit:function(){var t=this;this.$refs.form.validate().then(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(i){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=9;break}return(a={}).telephone=t.form.telephone,a.code=t.form.code,t.form[t.phoneField]=t.form.telephone,e.next=7,t.post(t.$api.customWeb.addOrUpdateStu,{id:"",recruitMasterId:t.recruitId,businessId:t.rowId,extendFieldJo:u(u({},t.form),{},{verifyJo:a}),businessType:5});case 7:0===e.sent.code&&(t.$message.success("报名成功"),t.clearData());case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},clear:function(){this.btnSend="发送验证码",this.codeImg="",this.securityCode="",this.setForm(),this.form.code="",this.form.telephone="",this.$refs.form.clear()},saveEnrollInfo:function(){var t=this;this.$refs.form.validate().then(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(i){var a,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i){e.next=10;break}return(a={}).telephone=t.form.telephone,a.code=t.form.code,t.form[t.phoneField]=t.form.telephone,t.fields.map((function(e){3===e.fieldType&&t.form.hasOwnProperty(e.fieldName)&&(t.form[e.fieldName]=t.form[e.fieldName+"Arr"].join(","))})),e.next=8,t.post(t.$api.customWeb.saveEnrollInfo,{recruitMasterId:t.$props.rowId,extendFieldJo:u(u({},t.form),{},{verifyJo:a})});case 8:0===(n=e.sent).code&&(t.isExistId=n.data,t.$message.success("提交成功"),t.getCustomFileDocument());case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},getEnrollInfo:(l=Object(a.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.post(this.$api.customWeb.getEnrollInfo,{recruitMasterId:this.$props.rowId});case 2:0===(e=t.sent).code&&(this.isExistId=e.data.id,e.data.extendFieldJo&&(this.form=e.data.extendFieldJo),e.data.scanFile&&(this.form.fileId=e.data.scanFile.fileId,this.attachmentJa=[e.data.scanFile]));case 4:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)}),getCustomFileDocument:(c=Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:window.open("".concat(this.$config.host).concat(this.$api.customWeb.getCustomFileDocument,"?token=").concat(this.$common.getLocalStorage("userInfo").token,"&recruitMasterId=").concat(this.$props.rowId,"&userId=").concat(this.$store.state.userInfo.data.userId));case 1:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)}),modScanFileId:(d=Object(a.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.form.fileId){t.next=3;break}return this.$message.info("请提交盖章件"),t.abrupt("return");case 3:if(this.isExistId){t.next=6;break}return this.$message.info("请填写信息"),t.abrupt("return");case 6:return t.next=8,this.post(this.$api.customWeb.modScanFileId,{recruitMasterId:this.$props.rowId,fileId:this.form.fileId});case 8:0===t.sent.code&&(this.$message.success("上传成功"),this.clearData());case 10:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})}},b=(i("91bb"),i("2877")),_={components:{enterStudent:Object(b.a)(v,(function(){var t=this,e=t._self._c;return e("el-dialog",{staticClass:"traning-form",attrs:{title:t.title,visible:t.showValue,top:"60px",width:"600px","close-on-click-modal":!1,"before-close":t.clearData,"append-to-body":""},on:{"update:visible":function(e){t.showValue=e}}},[e("div",{staticClass:"dialog"},[e("el-form",{ref:"form",style:{maxHeight:t.changeHeight+"px"},attrs:{size:"small","label-position":t.labelPosition,model:t.form,rules:t.rules,"label-width":"120px"}},[t._l(t.fields,(function(i){return[9===i.fieldType?e("el-form-item",[e("div",{staticClass:"item-title",attrs:{slot:"label"},slot:"label"},[t._v(t._s(i.fieldLabel))])]):e("div",{staticStyle:{padding:"0 30px"}},[8===i.fieldType&&i.showFlag?[e("el-form-item",{attrs:{prop:"telephone",rules:t.rules.telephone}},[e("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n                手机号码\n                "),i.markedWords?e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:i.markedWords,placement:"top"}},[e("i",{staticClass:"el-icon-question"})]):t._e()],1),e("el-input",{attrs:{type:"number",placeholder:"请输入手机号码"},model:{value:t.form.telephone,callback:function(e){t.$set(t.form,"telephone",e)},expression:"form.telephone"}})],1),e("el-form-item",{attrs:{prop:"securityCode",label:"图形验证码",rules:t.rules.securityCode}},[e("div",{staticClass:"disFlex alignCenter"},[e("el-input",{attrs:{placeholder:"请输入图形验证码"},model:{value:t.form.securityCode,callback:function(e){t.$set(t.form,"securityCode",e)},expression:"form.securityCode"}}),t.codeImg?e("img",{staticClass:"codeImg",attrs:{src:t.codeImg,alt:""},on:{click:t.getImageVerifyCode}}):t._e()],1)]),e("el-form-item",{attrs:{prop:"code",label:i.fieldLabel,rules:t.rules.code}},[e("div",{staticClass:"disFlex alignCenter"},[e("el-input",{staticStyle:{"margin-right":"10px"},attrs:{placeholder:i.fieldDescriptor},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}}),e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.sendCodeSms}},[t._v(t._s(t.btnSend))])],1)])]:[i.showFlag?e("el-form-item",{ref:i.fieldName,refInFor:!0,attrs:{prop:i.fieldName}},[e("span",{attrs:{slot:"label"},slot:"label"},[t._v("\n                "+t._s(i.fieldLabel)+"\n                "),i.markedWords?e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:i.markedWords,placement:"top"}},[e("i",{staticClass:"el-icon-question"})]):t._e()],1),1===i.fieldType?e("el-input",{attrs:{placeholder:i.fieldDescriptor,type:i.dataFormat,disabled:!i.editFlag},model:{value:t.form[i.fieldName],callback:function(e){t.$set(t.form,i.fieldName,e)},expression:"form[item.fieldName]"}}):t._e(),6===i.fieldType?e("el-input",{attrs:{placeholder:i.fieldDescriptor,type:"number",disabled:!i.editFlag},model:{value:t.form[i.fieldName],callback:function(e){t.$set(t.form,i.fieldName,e)},expression:"form[item.fieldName]"}}):2===i.fieldType?e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:i.fieldDescriptor,disabled:!i.editFlag},model:{value:t.form[i.fieldName],callback:function(e){t.$set(t.form,i.fieldName,e)},expression:"form[item.fieldName]"}},t._l(i.optionArray,(function(t,i){return e("el-option",{key:t.fieldKey,attrs:{label:t.fieldKey,value:t.fieldValue}})})),1):3===i.fieldType?e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:i.fieldDescriptor,multiple:"",disabled:!i.editFlag},on:{change:function(e){return t.saveFieldName(i.fieldName)}},model:{value:t.form[i.fieldName+"Arr"],callback:function(e){t.$set(t.form,i.fieldName+"Arr",e)},expression:"form[item.fieldName + 'Arr']"}},t._l(i.optionArray,(function(t,i){return e("el-option",{key:t.fieldKey,attrs:{label:t.fieldKey,value:t.fieldValue}})})),1):4===i.fieldType?e("div",[e("el-upload",{ref:"upload",refInFor:!0,staticClass:"avatar-uploader",attrs:{name:"multipartFile",multiple:"","show-file-list":!1,action:"".concat(t.$config.host).concat(t.$api.common.upload),"on-success":function(e){return t.uploadSuccess(e,i.fieldName)},accept:"image/*"}},[e("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e("div",{staticStyle:{display:"flex","flex-wrap":"wrap"}},t._l(t.form[i.fieldName],(function(a,n){return e("div",{key:n},[e("div",{staticClass:"imageItem"},[a.url?e("i",{staticClass:"el-icon-circle-close close-btn",on:{click:function(e){return e.stopPropagation(),t.removeImg(n,i.fieldName)}}}):t._e(),a.url?e("el-image",{staticClass:"avatar",attrs:{src:a.url,"preview-src-list":[a.url]}}):t._e()],1)])})),0)],1):5===i.fieldType?e("div",[e("el-upload",{ref:"upload",refInFor:!0,staticClass:"upload-demo",attrs:{name:"multipartFile",multiple:"","on-preview":t.handlePreview,action:"".concat(t.$config.host).concat(t.$api.common.upload),"on-change":function(e,a){return t.fileChange(e,a,i.fieldName)},"show-file-list":!1}},[e("el-button",{attrs:{size:"small",type:"primary"}},[t._v("点击上传")]),i.downloadTemplate&&i.downloadTemplate[0]?e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("\n                    "+t._s(i.fieldDescriptor)+"\n                    "),e("a",{staticStyle:{"font-size":"14px",padding:"0px 5px","text-decoration":"underline"},attrs:{href:"".concat(i.downloadTemplate[0].fileUrl)}},[t._v("下载")])]):t._e()],1),t._l(t.form[i.fieldName],(function(a,n){return e("div",{key:n,staticClass:"middle_list"},[e("div",{staticClass:"middle_name",attrs:{title:a.name}},[e("i",{staticClass:"el-icon-document"}),t._v("\n                    "+t._s(a.name)+"\n                  ")]),e("div",{staticStyle:{padding:"0 30px"}},[e("span",{staticClass:"middle_cursor",staticStyle:{padding:"0 15px"},on:{click:function(e){return t.reviewBtn(a)}}},[t._v("预览")]),e("span",{staticClass:"middle_cursor",on:{click:function(e){return t.removeImg(n,i.fieldName)}}},[t._v("删除")])])])}))],2):7===i.fieldType?e("el-date-picker",{staticStyle:{width:"100%"},attrs:{size:"small","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",disabled:!i.editFlag,placeholder:i.fieldDescriptor},model:{value:t.form[i.fieldName],callback:function(e){t.$set(t.form,i.fieldName,e)},expression:"form[item.fieldName]"}}):10===i.fieldType?e("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:i.fieldDescriptor,disabled:!i.editFlag,options:i.optionArray,props:t.defaultProps,clearable:"",filterable:""},model:{value:t.form[i.fieldName],callback:function(e){t.$set(t.form,i.fieldName,e)},expression:"form[item.fieldName]"}}):t._e()],1):t._e()]],2)]})),1==t.recruitPattern?e("div",{staticStyle:{padding:"0 30px"}},[e("div",{staticStyle:{"text-align":"center"}},[e("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",size:"small"},on:{click:function(e){return t.saveEnrollInfo()}}},[t._v("提交并下载表格")])],1),e("el-divider",[t._v("提交并下载表格后再提交盖章件")]),e("el-form-item",{attrs:{label:"盖章件","label-width":"120px"}},[e("el-upload",{attrs:{name:"multipartFile","show-file-list":!1,action:"".concat(t.$config.host).concat(t.$api.common.upload),"on-success":t.handResumeSuccess,accept:"image/*,.pdf",disabled:!t.isExistId}},[e("el-button",{attrs:{type:"primary",size:"small",disabled:!t.isExistId}},[t._v("选择文件")])],1),t._l(t.attachmentJa,(function(i,a){return e("div",{key:i.name,staticClass:"middle_list"},[e("div",{staticClass:"middle_name",attrs:{title:i.name}},[e("i",{staticClass:"el-icon-document"}),t._v("\n              "+t._s(i.name)+"\n            ")]),e("div",{staticStyle:{padding:"0 30px"}},[e("span",{staticClass:"middle_cursor",staticStyle:{padding:"0 15px"},on:{click:function(e){return t.reviewBtn(i)}}},[t._v("预览")]),e("span",{staticClass:"middle_cursor",on:{click:function(e){return t.delbtn(a)}}},[t._v("删除")])])])}))],2),e("div",{staticStyle:{"text-align":"center","margin-bottom":"20px"}},[e("el-button",{attrs:{type:"primary",disabled:!t.isExistId,size:"small"},on:{click:t.modScanFileId}},[t._v("上传盖章扫描件\n            "),e("el-tooltip",{attrs:{placement:"top-start"}},[e("i",{staticClass:"el-icon-question"}),e("div",{attrs:{slot:"content"},slot:"content"},[t._v("请先提交并下载表格")])])],1)],1)],1):e("el-col",{staticClass:"btn-submit",attrs:{span:24}},[e("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.submit()}}},[t._v(t._s(t.$t("submit")))])],1)],2)],1),e("wpsFile",{attrs:{value:t.showFile,currFile:t.currFile},on:{"update:value":function(e){t.showFile=e}}})],1)}),[],!1,null,"4d286790",null).exports},data:function(){return{activeName:"",treeLevels:[],detail:{},dialogVisible:!1,showEnter:!1,enterId:"",recruitId:""}},created:function(){this.getList()},mounted:function(){var t=this;this.$nextTick((function(){setTimeout((function(){t.activeName=t.$route.params.threeId,t.handleClick()}),300)}))},methods:{getList:(y=Object(a.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.post(this.$api.customWeb.listProjectEnrollThird,{secondMasterId:this.$route.params.secondId});case 2:0===(e=t.sent).code&&(this.treeLevels=e.data);case 4:case"end":return t.stop()}}),t,this)}))),function(){return y.apply(this,arguments)}),handleClick:(g=Object(a.a)(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.post(this.$api.customWeb.getEnrollProjectDetail,{id:this.activeName});case 2:0===(e=t.sent).code&&(this.detail=e.data,this.recruitId=e.data2);case 4:case"end":return t.stop()}}),t,this)}))),function(){return g.apply(this,arguments)}),applyBtn:function(){if(!this.recruitId)return this.$message.error("管理员还没有发布报名信息"),!1;this.showEnter=!0}}},T=(i("e43f"),Object(b.a)(_,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"view_width home_content"},[t.treeLevels.length>1?e("el-tabs",{attrs:{stretch:""},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.treeLevels,(function(t){return e("el-tab-pane",{key:t.id,attrs:{label:t.title,name:t.id}})})),1):e("div",{staticStyle:{height:"10px"}}),e("div",{domProps:{innerHTML:t._s(t.detail.richText)}}),e("div",{staticClass:"detailBtns"},[t.detail.qrCode?e("div",{staticClass:"btn",on:{click:function(e){t.dialogVisible=!0}}},[e("div",[t._v(t._s(t.detail.contactBtnText||"需求对接"))])]):t._e(),e("div",{staticClass:"btn",staticStyle:{background:"#3399ff"},on:{click:function(e){return t.applyBtn()}}},[e("div",[t._v(t._s(t.detail.applyBtnText||"点击报名"))])])]),e("el-dialog",{attrs:{title:"需求对接",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[e("div",{staticClass:"dialogBox"},[e("img",{attrs:{src:t.detail.qrCode,alt:""}}),t.detail.contactName?e("div",[t._v("联系人："+t._s(t.detail.contactName))]):t._e(),t.detail.telephone?e("div",[t._v("联系电话："+t._s(t.detail.telephone))]):t._e()]),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("确 定")])],1)]),e("enterStudent",{attrs:{value:t.showEnter,recruitId:t.recruitId,rowId:t.detail.id,enterId:t.enterId},on:{"update:value":function(e){t.showEnter=e},getList:t.getList}})],1)}),[],!1,null,"528374e2",null));e.default=T.exports},b754:function(t,e,i){},b83a:function(t,e,i){"use strict";i("7f7f");var a=i("9641"),n=i("d6d3"),r=i.n(n),s=i("a151"),o=i.n(s),u=(i("451f"),i("fda2"),i("2b0e"));u.default.use(r.a),u.default.use(o.a);var d={props:{currFile:Array},mixins:[a.a],data:function(){return{isYes:"",token:"",aciveTab:"0",activeItem:{},opts:{playbackRates:[.5,1,1.5,2],autoplay:!1,muted:!1,loop:!1,preload:"auto",language:"zh-CN",aspectRatio:"16:9",fluid:!0,sources:[{src:""}],poster:"",notSupportedMessage:"此视频暂无法播放，请稍后再试",controlBar:{timeDivider:!0,durationDisplay:!0,remainingTimeDisplay:!1,fullscreenToggle:!0}}}},watch:{showValue:function(t){this.currFile.length&&this.preview()}},mounted:function(){this.token=this.$store.state.token.data.token},methods:{down:function(){window.location=this.currFile[this.aciveTab].url},closeFile:function(){this.showValue=!1},preview:function(){this.isYes=this.currFile[this.aciveTab].preview,"video"===this.isYes&&(this.opts.sources[0].src=this.currFile[this.aciveTab].url)}}},c=(i("b4ef"),i("2877")),l=Object(c.a)(d,(function(){var t=this,e=t._self._c;return e("el-dialog",{staticClass:"wpsFile",attrs:{fullscreen:"",visible:t.showValue,"show-close":!1,"append-to-body":""},on:{"update:visible":function(e){t.showValue=e}}},[e("span",{staticClass:"btns",attrs:{slot:"title"},slot:"title"},[t.currFile[t.aciveTab]?e("a",{staticClass:"el-button el-button--small el-button--success",staticStyle:{color:"#fff"},attrs:{target:"_blank",href:t.currFile[t.aciveTab].url}},[t._v("下载")]):t._e(),e("a",{staticClass:"el-button el-button--primary el-button--small",staticStyle:{color:"#fff"},attrs:{href:"javascript:;"},on:{click:t.closeFile}},[t._v("关闭")])]),e("div",{staticClass:"view"},[t.currFile.length>1?e("div",{staticClass:"left"},[e("el-tabs",{staticStyle:{height:"100%",width:"100%"},attrs:{type:"border-card","tab-position":"left"},on:{"tab-click":t.preview},model:{value:t.aciveTab,callback:function(e){t.aciveTab=e},expression:"aciveTab"}},t._l(t.currFile,(function(t,i){return e("el-tab-pane",{key:i,attrs:{name:"".concat(i),label:t.name}})})),1)],1):t._e(),t.currFile[t.aciveTab]?e("div",{staticClass:"right"},[e("div",{staticClass:"wrap"},[t.currFile[t.aciveTab].url?["image"===t.isYes?e("el-image",{staticClass:"pic",attrs:{fit:"contain","preview-src-list":[t.currFile[t.aciveTab].url],src:t.currFile[t.aciveTab].url}}):"wps"===t.isYes?e("iframe",{staticClass:"aaa",attrs:{src:t.currFile[t.aciveTab].previewUrl,width:"100%",height:"100%",frameborder:"0"}}):"video"===t.isYes?e("video-player",{ref:"videoPlayer",staticClass:"video-player vjs-custom-skin",attrs:{playsinline:!0,options:t.opts}}):t._e()]:e("div",{staticClass:"empty"},[e("img",{attrs:{src:i("262b"),alt:""}}),t._v("暂无数据\n        ")])],2)]):t._e()])])}),[],!1,null,"14493037",null);e.a=l.exports},ba2d:function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var n=a(i("be09")),r=a(i("3d33")),s=function(t){return isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t};e.default={addTextTrackData:function(t,e,i){var a,o=n.default.WebKitDataCue||n.default.VTTCue;e&&e.forEach((function(t){var e=t.stream;this.inbandTextTracks_[e].addCue(new o(t.startTime+this.timestampOffset,t.endTime+this.timestampOffset,t.text))}),t),i&&(a=s(t.mediaSource_.duration),i.forEach((function(t){var e=t.cueTime+this.timestampOffset;t.frames.forEach((function(t){var i=new o(e,e,t.value||t.url||t.data||"");i.frame=t,i.value=t,function(t){Object.defineProperties(t.frame,{id:{get:function(){return r.default.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return r.default.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return r.default.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}})}(i),this.metadataTrack_.addCue(i)}),this)}),t),t.metadataTrack_&&t.metadataTrack_.cues&&t.metadataTrack_.cues.length&&function(){for(var e=t.metadataTrack_.cues,i=[],n=0;n<e.length;n++)e[n]&&i.push(e[n]);var r=i.reduce((function(t,e){var i=t[e.startTime]||[];return i.push(e),t[e.startTime]=i,t}),{}),s=Object.keys(r).sort((function(t,e){return Number(t)-Number(e)}));s.forEach((function(t,e){var i=r[t],n=Number(s[e+1])||a;i.forEach((function(t){t.endTime=n}))}))}())},durationOfVideo:s},t.exports=e.default},be09:function(t,e,i){(function(e){var i;i="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=i}).call(this,i("c8ba"))},c795:function(t,e,i){"use strict";var a=s(i("ddac")),n=s(i("59a0")),r=s(i("466b"));function s(t){return t&&t.__esModule?t:{default:t}}t.exports={LineStream:a.default,ParseStream:n.default,Parser:r.default}},cdad:function(t,e,i){"use strict";e.pad=i("72a5"),e.unpad=i("e647")},d136:function(t,e,i){var a,n,r,s,o;a=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(t,e,i){if(i=i||{},t=t.trim(),!(e=e.trim())){if(!i.alwaysNormalize)return t;var a=o.parseURL(t);if(!a)throw new Error("Error trying to parse base URL.");return a.path=o.normalizePath(a.path),o.buildURLFromParts(a)}var r=o.parseURL(e);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return i.alwaysNormalize?(r.path=o.normalizePath(r.path),o.buildURLFromParts(r)):e;var s=o.parseURL(t);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var u=n.exec(s.path);s.netLoc=u[1],s.path=u[2]}s.netLoc&&!s.path&&(s.path="/");var d={scheme:s.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};if(!r.netLoc&&(d.netLoc=s.netLoc,"/"!==r.path[0]))if(r.path){var c=s.path,l=c.substring(0,c.lastIndexOf("/")+1)+r.path;d.path=o.normalizePath(l)}else d.path=s.path,r.params||(d.params=s.params,r.query||(d.query=s.query));return null===d.path&&(d.path=i.alwaysNormalize?o.normalizePath(r.path):r.path),o.buildURLFromParts(d)},parseURL:function(t){var e=a.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(r,"");t.length!==(t=t.replace(s,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=o},d6d3:function(t,e,i){var a;t.exports=(a=i("3d33"),function(t){function e(a){if(i[a])return i[a].exports;var n=i[a]={i:a,l:!1,exports:{}};return t[a].call(n.exports,n,n.exports,e),n.l=!0,n.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,a){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:a})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=3)}([function(t,e){t.exports=a},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),n=window.videojs||a.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),a=1;a<arguments.length;a++){var n=arguments[a];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[r]=n[r])}return i},writable:!0,configurable:!0});var r=["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"];e.default={name:"video-player",props:{start:{type:Number,default:0},crossOrigin:{type:String,default:""},playsinline:{type:Boolean,default:!1},customEventName:{type:String,default:"statechanged"},options:{type:Object,required:!0},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{controls:!0,controlBar:{remainingTimeDisplay:!1,playToggle:{},progressControl:{},fullscreenToggle:{},volumeMenuButton:{inline:!1,vertical:!0}},techOrder:["html5"],plugins:{}}}},globalEvents:{type:Array,default:function(){return[]}}},data:function(){return{player:null,reseted:!0}},mounted:function(){this.player||this.initialize()},beforeDestroy:function(){this.player&&this.dispose()},methods:{initialize:function(){var t=this,e=Object.assign({},this.globalOptions,this.options);this.playsinline&&(this.$refs.video.setAttribute("playsinline",this.playsinline),this.$refs.video.setAttribute("webkit-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-video-player-type","h5"),this.$refs.video.setAttribute("x5-video-player-fullscreen",!1)),""!==this.crossOrigin&&(this.$refs.video.crossOrigin=this.crossOrigin,this.$refs.video.setAttribute("crossOrigin",this.crossOrigin));var i=function(e,i){e&&t.$emit(e,t.player),i&&t.$emit(t.customEventName,function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},e,i))};e.plugins&&delete e.plugins.__ob__;var a=this;this.player=n(this.$refs.video,e,(function(){for(var t=this,e=r.concat(a.events).concat(a.globalEvents),n={},s=0;s<e.length;s++)"string"==typeof e[s]&&void 0===n[e[s]]&&function(e){n[e]=null,t.on(e,(function(){i(e,!0)}))}(e[s]);this.on("timeupdate",(function(){i("timeupdate",this.currentTime())})),a.$emit("ready",this)}))},dispose:function(t){var e=this;this.player&&this.player.dispose&&("Flash"!==this.player.techName_&&this.player.pause&&this.player.pause(),this.player.dispose(),this.player=null,this.$nextTick((function(){e.reseted=!1,e.$nextTick((function(){e.reseted=!0,e.$nextTick((function(){t&&t()}))}))})))}},watch:{options:{deep:!0,handler:function(t,e){var i=this;this.dispose((function(){t&&t.sources&&t.sources.length&&i.initialize()}))}}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(1),n=i.n(a);for(var r in a)["default","default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);var s=i(5),o=i(4)(n.a,s.a,!1,null,null,null);e.default=o.exports},function(t,e,i){"use strict";function a(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.videoPlayer=e.videojs=void 0;var n=a(i(0)),r=a(i(2)),s=window.videojs||n.default,o=function(t,e){e&&(e.options&&(r.default.props.globalOptions.default=function(){return e.options}),e.events&&(r.default.props.globalEvents.default=function(){return e.events})),t.component(r.default.name,r.default)},u={videojs:s,videoPlayer:r.default,install:o};e.default=u,e.videojs=s,e.videoPlayer=r.default,e.install=o},function(t,e){t.exports=function(t,e,i,a,n,r){var s,o=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(s=t,o=t.default);var d,c="function"==typeof o?o.options:o;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),i&&(c.functional=!0),n&&(c._scopeId=n),r?(d=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},c._ssrRegister=d):a&&(d=a),d){var l=c.functional,f=l?c.render:c.beforeCreate;l?(c._injectStyles=d,c.render=function(t,e){return d.call(e),f(t,e)}):c.beforeCreate=f?[].concat(f,d):[d]}return{esModule:s,exports:o,options:c}}},function(t,e,i){"use strict";var a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.reseted?i("div",{staticClass:"video-player"},[i("video",{ref:"video",staticClass:"video-js"})]):t._e()},staticRenderFns:[]};e.a=a}]))},d7ba:function(t,e,i){"use strict";var a;(a=function(t,e){var i,n=0,r=16384,s=function(t,e){var i,a=t.position+e;a<t.bytes.byteLength||((i=new Uint8Array(2*a)).set(t.bytes.subarray(0,t.position),0),t.bytes=i,t.view=new DataView(t.bytes.buffer))},o=a.widthBytes||new Uint8Array("width".length),u=a.heightBytes||new Uint8Array("height".length),d=a.videocodecidBytes||new Uint8Array("videocodecid".length);if(!a.widthBytes){for(i=0;i<"width".length;i++)o[i]="width".charCodeAt(i);for(i=0;i<"height".length;i++)u[i]="height".charCodeAt(i);for(i=0;i<"videocodecid".length;i++)d[i]="videocodecid".charCodeAt(i);a.widthBytes=o,a.heightBytes=u,a.videocodecidBytes=d}switch(this.keyFrame=!1,t){case a.VIDEO_TAG:this.length=16,r*=6;break;case a.AUDIO_TAG:this.length=13,this.keyFrame=!0;break;case a.METADATA_TAG:this.length=29,this.keyFrame=!0;break;default:throw new Error("Unknown FLV tag type")}this.bytes=new Uint8Array(r),this.view=new DataView(this.bytes.buffer),this.bytes[0]=t,this.position=this.length,this.keyFrame=e,this.pts=0,this.dts=0,this.writeBytes=function(t,e,i){var a,n=e||0;a=n+(i=i||t.byteLength),s(this,i),this.bytes.set(t.subarray(n,a),this.position),this.position+=i,this.length=Math.max(this.length,this.position)},this.writeByte=function(t){s(this,1),this.bytes[this.position]=t,this.position++,this.length=Math.max(this.length,this.position)},this.writeShort=function(t){s(this,2),this.view.setUint16(this.position,t),this.position+=2,this.length=Math.max(this.length,this.position)},this.negIndex=function(t){return this.bytes[this.length-t]},this.nalUnitSize=function(){return 0===n?0:this.length-(n+4)},this.startNalUnit=function(){if(n>0)throw new Error("Attempted to create new NAL wihout closing the old one");n=this.length,this.length+=4,this.position=this.length},this.endNalUnit=function(t){var e,i;this.length===n+4?this.length-=4:n>0&&(e=n+4,i=this.length-e,this.position=n,this.view.setUint32(this.position,i),this.position=this.length,t&&t.push(this.bytes.subarray(e,e+i))),n=0},this.writeMetaDataDouble=function(t,e){var i;if(s(this,2+t.length+9),this.view.setUint16(this.position,t.length),this.position+=2,"width"===t)this.bytes.set(o,this.position),this.position+=5;else if("height"===t)this.bytes.set(u,this.position),this.position+=6;else if("videocodecid"===t)this.bytes.set(d,this.position),this.position+=12;else for(i=0;i<t.length;i++)this.bytes[this.position]=t.charCodeAt(i),this.position++;this.position++,this.view.setFloat64(this.position,e),this.position+=8,this.length=Math.max(this.length,this.position),++n},this.writeMetaDataBoolean=function(t,e){var i;for(s(this,2),this.view.setUint16(this.position,t.length),this.position+=2,i=0;i<t.length;i++)s(this,1),this.bytes[this.position]=t.charCodeAt(i),this.position++;s(this,2),this.view.setUint8(this.position,1),this.position++,this.view.setUint8(this.position,e?1:0),this.position++,this.length=Math.max(this.length,this.position),++n},this.finalize=function(){var t,i;switch(this.bytes[0]){case a.VIDEO_TAG:this.bytes[11]=7|(this.keyFrame||e?16:32),this.bytes[12]=e?0:1,t=this.pts-this.dts,this.bytes[13]=(16711680&t)>>>16,this.bytes[14]=(65280&t)>>>8,this.bytes[15]=(255&t)>>>0;break;case a.AUDIO_TAG:this.bytes[11]=175,this.bytes[12]=e?0:1;break;case a.METADATA_TAG:this.position=11,this.view.setUint8(this.position,2),this.position++,this.view.setUint16(this.position,10),this.position+=2,this.bytes.set([111,110,77,101,116,97,68,97,116,97],this.position),this.position+=10,this.bytes[this.position]=8,this.position++,this.view.setUint32(this.position,n),this.position=this.length,this.bytes.set([0,0,9],this.position),this.position+=3,this.length=this.position}return i=this.length-11,this.bytes[1]=(16711680&i)>>>16,this.bytes[2]=(65280&i)>>>8,this.bytes[3]=(255&i)>>>0,this.bytes[4]=(16711680&this.dts)>>>16,this.bytes[5]=(65280&this.dts)>>>8,this.bytes[6]=(255&this.dts)>>>0,this.bytes[7]=(4278190080&this.dts)>>>24,this.bytes[8]=0,this.bytes[9]=0,this.bytes[10]=0,s(this,4),this.view.setUint32(this.length,this.length),this.length+=4,this.position+=4,this.bytes=this.bytes.subarray(0,this.length),this.frameTime=a.frameTime(this.bytes),this}}).AUDIO_TAG=8,a.VIDEO_TAG=9,a.METADATA_TAG=18,a.isAudioFrame=function(t){return a.AUDIO_TAG===t[0]},a.isVideoFrame=function(t){return a.VIDEO_TAG===t[0]},a.isMetaData=function(t){return a.METADATA_TAG===t[0]},a.isKeyFrame=function(t){return a.isVideoFrame(t)?23===t[11]:!!a.isAudioFrame(t)||!!a.isMetaData(t)},a.frameTime=function(t){var e=t[4]<<16;return e|=t[5]<<8,e|=t[6]<<0,e|=t[7]<<24},t.exports=a},dc3e:function(t,e,i){"use strict";var a=i("ae75"),n=i("256f").handleRollover,r={};r.ts=i("423e9"),r.aac=i("9946");var s=function(t,e,i){for(var a,n,s,o,u=0,d=188,c=!1;d<t.byteLength;)if(71!==t[u]||71!==t[d])u++,d++;else{switch(a=t.subarray(u,d),r.ts.parseType(a,e.pid)){case"pes":n=r.ts.parsePesType(a,e.table),s=r.ts.parsePayloadUnitStartIndicator(a),"audio"===n&&s&&(o=r.ts.parsePesTime(a))&&(o.type="audio",i.audio.push(o),c=!0)}if(c)break;u+=188,d+=188}for(u=(d=t.byteLength)-188,c=!1;u>=0;)if(71!==t[u]||71!==t[d])u--,d--;else{switch(a=t.subarray(u,d),r.ts.parseType(a,e.pid)){case"pes":n=r.ts.parsePesType(a,e.table),s=r.ts.parsePayloadUnitStartIndicator(a),"audio"===n&&s&&(o=r.ts.parsePesTime(a))&&(o.type="audio",i.audio.push(o),c=!0)}if(c)break;u-=188,d-=188}},o=function(t,e,i){for(var a,n,s,o,u,d,c,l=0,f=188,p=!1,h={data:[],size:0};f<t.byteLength;)if(71!==t[l]||71!==t[f])l++,f++;else{switch(a=t.subarray(l,f),r.ts.parseType(a,e.pid)){case"pes":if(n=r.ts.parsePesType(a,e.table),s=r.ts.parsePayloadUnitStartIndicator(a),"video"===n&&(s&&!p&&(o=r.ts.parsePesTime(a))&&(o.type="video",i.video.push(o),p=!0),!i.firstKeyFrame)){if(s&&0!==h.size){for(u=new Uint8Array(h.size),d=0;h.data.length;)c=h.data.shift(),u.set(c,d),d+=c.byteLength;r.ts.videoPacketContainsKeyFrame(u)&&(i.firstKeyFrame=r.ts.parsePesTime(u),i.firstKeyFrame.type="video"),h.size=0}h.data.push(a),h.size+=a.byteLength}}if(p&&i.firstKeyFrame)break;l+=188,f+=188}for(l=(f=t.byteLength)-188,p=!1;l>=0;)if(71!==t[l]||71!==t[f])l--,f--;else{switch(a=t.subarray(l,f),r.ts.parseType(a,e.pid)){case"pes":n=r.ts.parsePesType(a,e.table),s=r.ts.parsePayloadUnitStartIndicator(a),"video"===n&&s&&(o=r.ts.parsePesTime(a))&&(o.type="video",i.video.push(o),p=!0)}if(p)break;l-=188,f-=188}},u=function(t){var e={pid:null,table:null},i={};for(var n in function(t,e){for(var i,a=0,n=188;n<t.byteLength;)if(71!==t[a]||71!==t[n])a++,n++;else{switch(i=t.subarray(a,n),r.ts.parseType(i,e.pid)){case"pat":e.pid||(e.pid=r.ts.parsePat(i));break;case"pmt":e.table||(e.table=r.ts.parsePmt(i))}if(e.pid&&e.table)return;a+=188,n+=188}}(t,e),e.table){if(e.table.hasOwnProperty(n))switch(e.table[n]){case a.H264_STREAM_TYPE:i.video=[],o(t,e,i),0===i.video.length&&delete i.video;break;case a.ADTS_STREAM_TYPE:i.audio=[],s(t,e,i),0===i.audio.length&&delete i.audio}}return i};t.exports={inspect:function(t,e){var i,a;return(a=(i=t)[0]==="I".charCodeAt(0)&&i[1]==="D".charCodeAt(0)&&i[2]==="3".charCodeAt(0)?function(t){for(var e,i=!1,a=0,n=null,s=null,o=0,u=0;t.length-u>=3;){switch(r.aac.parseType(t,u)){case"timed-metadata":if(t.length-u<10){i=!0;break}if((o=r.aac.parseId3TagSize(t,u))>t.length){i=!0;break}null===s&&(e=t.subarray(u,u+o),s=r.aac.parseAacTimestamp(e)),u+=o;break;case"audio":if(t.length-u<7){i=!0;break}if((o=r.aac.parseAdtsSize(t,u))>t.length){i=!0;break}null===n&&(e=t.subarray(u,u+o),n=r.aac.parseSampleRate(e)),a++,u+=o;break;default:u++}if(i)return null}if(null===n||null===s)return null;var d=9e4/n;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*a*d,pts:s+1024*a*d}]}}(t):u(t))&&(a.audio||a.video)?(function(t,e){if(t.audio&&t.audio.length){var i=e;void 0===i&&(i=t.audio[0].dts),t.audio.forEach((function(t){t.dts=n(t.dts,i),t.pts=n(t.pts,i),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4}))}if(t.video&&t.video.length){var a=e;if(void 0===a&&(a=t.video[0].dts),t.video.forEach((function(t){t.dts=n(t.dts,a),t.pts=n(t.pts,a),t.dtsTime=t.dts/9e4,t.ptsTime=t.pts/9e4})),t.firstKeyFrame){var r=t.firstKeyFrame;r.dts=n(r.dts,a),r.pts=n(r.pts,a),r.dtsTime=r.dts/9e4,r.ptsTime=r.dts/9e4}}}(a,e),a):null}}},ddac:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a,n=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}(),r=i("fc85");var s=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.buffer="",t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"push",value:function(t){var e=void 0;for(this.buffer+=t,e=this.buffer.indexOf("\n");e>-1;e=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,e)),this.buffer=this.buffer.substring(e+1)}}]),e}(((a=r)&&a.__esModule?a:{default:a}).default);e.default=s},e206:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default={TIME_BETWEEN_CHUNKS:1,BYTES_PER_CHUNK:32768},t.exports=e.default},e43f:function(t,e,i){"use strict";i("b754")},e647:function(t,e,i){"use strict";t.exports=function(t){return t.subarray(0,t.byteLength-t[t.byteLength-1])}},eec7:function(t,e,i){"use strict";var a=i("be09"),n=i("8362"),r=i("6444"),s=i("53a8");function o(t,e,i){var a=t;return n(e)?(i=e,"string"==typeof t&&(a={uri:t})):a=s(e,{uri:t}),a.callback=i,a}function u(t,e,i){return d(e=o(t,e,i))}function d(t){if(void 0===t.callback)throw new Error("callback argument missing");var e=!1,i=function(i,a,n){e||(e=!0,t.callback(i,a,n))};function a(){var t=void 0;if(t=c.response?c.response:c.responseText||function(t){if("document"===t.responseType)return t.responseXML;var e=t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;if(""===t.responseType&&!e)return t.responseXML;return null}(c),y)try{t=JSON.parse(t)}catch(t){}return t}function n(t){return clearTimeout(l),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,i(t,v)}function s(){if(!d){var e;clearTimeout(l),e=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var n=v,s=null;return 0!==e?(n={body:a(),statusCode:e,method:p,headers:{},url:f,rawRequest:c},c.getAllResponseHeaders&&(n.headers=r(c.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),i(s,n,n.body)}}var o,d,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var l,f=c.url=t.uri||t.url,p=c.method=t.method||"GET",h=t.body||t.data,m=c.headers=t.headers||{},g=!!t.sync,y=!1,v={body:void 0,headers:{},statusCode:0,method:p,url:f,rawRequest:c};if("json"in t&&!1!==t.json&&(y=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),h=JSON.stringify(!0===t.json?h:t.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(s,0)},c.onload=s,c.onerror=n,c.onprogress=function(){},c.onabort=function(){d=!0},c.ontimeout=n,c.open(p,f,!g,t.username,t.password),g||(c.withCredentials=!!t.withCredentials),!g&&t.timeout>0&&(l=setTimeout((function(){if(!d){d=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",n(t)}}),t.timeout)),c.setRequestHeader)for(o in m)m.hasOwnProperty(o)&&c.setRequestHeader(o,m[o]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(h||null),c}t.exports=u,u.XMLHttpRequest=a.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:a.XDomainRequest,function(t,e){for(var i=0;i<t.length;i++)e(t[i])}(["get","put","post","patch","head","delete"],(function(t){u["delete"===t?"del":t]=function(e,i,a){return(i=o(e,i,a)).method=t.toUpperCase(),d(i)}}))},ef34:function(t,e,i){(function(e){var a,n=void 0!==e?e:"undefined"!=typeof window?window:{},r=i(2);"undefined"!=typeof document?a=document:(a=n["__GLOBAL_DOCUMENT_CACHE@4"])||(a=n["__GLOBAL_DOCUMENT_CACHE@4"]=r),t.exports=a}).call(this,i("c8ba"))},fc85:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var i=0;i<e.length;i++){var a=e[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,i,a){return i&&t(e.prototype,i),a&&t(e,a),e}}();var n=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.listeners={}}return a(t,[{key:"on",value:function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"off",value:function(t,e){if(!this.listeners[t])return!1;var i=this.listeners[t].indexOf(e);return this.listeners[t].splice(i,1),i>-1}},{key:"trigger",value:function(t){var e=this.listeners[t],i=void 0,a=void 0,n=void 0;if(e)if(2===arguments.length)for(a=e.length,i=0;i<a;++i)e[i].call(this,arguments[1]);else for(n=Array.prototype.slice.call(arguments,1),a=e.length,i=0;i<a;++i)e[i].apply(this,n)}},{key:"dispose",value:function(){this.listeners={}}},{key:"pipe",value:function(t){this.on("data",(function(e){t.push(e)}))}}]),t}();e.default=n}}]);