!
function a(b,c,d){
function e(g,h){if(!c[g]){if(!b[g]){var i="
function"==typeof require&&require;
if(!h&&i)return i(g,!0);
if(f)return f(g,!0);
var j=new Error("Cannot find module '"+g+"'");
throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};
b[g][0].call(k.exports,
function(a){var c=b[g][1][a];
return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="
function"==typeof require&&require,g=0;
g
g++)e(d[g]);
return e}({1:[
function(b,c,d){"use strict";
var e={};
e.encode=
function(a){for(var b=[],c=0;
c
++c){var d=a.charCodeAt(c);
d<128?b.push(d):d<2048?(b.push(192|d>>6),b.push(128|63&d)):d<65536?(b.push(224|d>>12),b.push(128|63&d>>6),b.push(128|63&d)):(b.push(240|d>>18),b.push(128|63&d>>12),b.push(128|63&d>>6),b.push(128|63&d))}return b},e.decode=
function(a){for(var b=[],c=0;
c
){var d=a[c++];
d<128||(d<224?(d=(31&d)<<6,d|=63&a[c++]):d<240?(d=(15&d)<<12,d|=(63&a[c++])<<6,d|=63&a[c++]):(d=(7&d)<<18,d|=(63&a[c++])<<12,d|=(63&a[c++])<<6,d|=63&a[c++])),b.push(String.fromCharCode(d))}return b.join("")};
var f={};
!
function(b){var c=
function(a){for(var c=0,d=[],e=0|a.length/3;
0
){var f=(a[c]<<16)+(a[c+1]<<8)+a[c+2];
c+=3,d.push(b.charAt(63&f>>18)),d.push(b.charAt(63&f>>12)),d.push(b.charAt(63&f>>6)),d.push(b.charAt(63&f))}if(2==a.length-c){var f=(a[c]<<16)+(a[c+1]<<8);
d.push(b.charAt(63&f>>18)),d.push(b.charAt(63&f>>12)),d.push(b.charAt(63&f>>6)),d.push("=")}else if(1==a.length-c){var f=a[c]<<16;
d.push(b.charAt(63&f>>18)),d.push(b.charAt(63&f>>12)),d.push("==")}return d.join("")},d=
function(){for(var a=[],c=0;
c
++c)a[b.charCodeAt(c)]=c;
return a["=".charCodeAt(0)]=0,a}(),g=
function(a){for(var b=0,c=[],e=0|a.length/4;
0
){var f=(d[a.charCodeAt(b)]<<18)+(d[a.charCodeAt(b+1)]<<12)+(d[a.charCodeAt(b+2)]<<6)+d[a.charCodeAt(b+3)];
c.push(255&f>>16),c.push(255&f>>8),c.push(255&f),b+=4}return c&&("="==a.charAt(b-2)?(c.pop(),c.pop()):"="==a.charAt(b-1)&&c.pop()),c},h={};
h.encode=
function(a){for(var b=[],c=0;
c
++c)b.push(a.charCodeAt(c));
return b},h.decode=
function(b){for(var c=0;
c
++c)a[c]=String.fromCharCode(a[c]);
return a.join("")},f.decodeArray=
function(a){var b=g(a);
return new Uint8Array(b)},f.encodeASCII=
function(a){var b=h.encode(a);
return c(b)},f.decodeASCII=
function(a){var b=g(a);
return h.decode(b)},f.encode=
function(a){var b=e.encode(a);
return c(b)},f.decode=
function(a){var b=g(a);
return e.decode(b)}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),"undefined"!=typeof d&&(d.decode=f.decode,d.decodeArray=f.decodeArray,d.encode=f.encode)},{}],2:[
function(a,b,c){"use strict";
!
function(a){var b={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},c=
function(a){var c=a;
return b.hasOwnProperty(a)&&(c=b[a]),String.fromCharCode(c)},d=15,e=32,f={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},g={17:2,18:4,21:6,22:8,23:10,19:13,20:15},h={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},i={25:2,26:4,29:6,30:8,31:10,27:13,28:15},j=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],k={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:
function(a){this.time=a},log:
function(a,b){var c=this.verboseFilter[a];
this.verboseLevel>=c&&console.log(this.time+" ["+a+"] "+b)}},l=
function(a){for(var b=[],c=0;
c
c++)b.push(a[c].toString(16));
return b},m=
function(a,b,c,d,e){this.foreground=a||"white",this.underline=b||!1,this.italics=c||!1,this.background=d||"black",this.flash=e||!1};
m.prototype={reset:
function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:
function(a){for(var b=["foreground","underline","italics","background","flash"],c=0;
c
c++){var d=b[c];
a.hasOwnProperty(d)&&(this[d]=a[d])}},isDefault:
function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:
function(a){return this.foreground===a.foreground&&this.underline===a.underline&&this.italics===a.italics&&this.background===a.background&&this.flash===a.flash},copy:
function(a){this.foreground=a.foreground,this.underline=a.underline,this.italics=a.italics,this.background=a.background,this.flash=a.flash},toString:
function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};
var n=
function(a,b,c,d,e,f){this.uchar=a||" ",this.penState=new m(b,c,d,e,f)};
n.prototype={reset:
function(){this.uchar=" ",this.penState.reset()},setChar:
function(a,b){this.uchar=a,this.penState.copy(b)},setPenState:
function(a){this.penState.copy(a)},equals:
function(a){return this.uchar===a.uchar&&this.penState.equals(a.penState)},copy:
function(a){this.uchar=a.uchar,this.penState.copy(a.penState)},isEmpty:
function(){return" "===this.uchar&&this.penState.isDefault()}};
var o=
function(){this.chars=[];
for(var a=0;
a
a++)this.chars.push(new n);
this.pos=0,this.currPenState=new m};
o.prototype={equals:
function(a){for(var b=!0,c=0;
c
c++)if(!this.chars[c].equals(a.chars[c])){b=!1;
break}return b},copy:
function(a){for(var b=0;
b
b++)this.chars[b].copy(a.chars[b])},isEmpty:
function(){for(var a=!0,b=0;
b
b++)if(!this.chars[b].isEmpty()){a=!1;
break}return a},setCursor:
function(a){this.pos!==a&&(this.pos=a),this.pos<0?(k.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>e&&(k.log("ERROR","Too large cursor position "+this.pos),this.pos=e)},moveCursor:
function(a){var b=this.pos+a;
if(a>1)for(var c=this.pos+1;
c
c++)this.chars[c].setPenState(this.currPenState);
this.setCursor(b)},backSpace:
function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:
function(a){a>=144&&this.backSpace();
var b=c(a);
return this.pos>=e?void k.log("ERROR","Cannot insert "+a.toString(16)+" ("+b+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(b,this.currPenState),void this.moveCursor(1))},clearFromPos:
function(a){var b;
for(b=a;
b
b++)this.chars[b].reset()},clear:
function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:
function(){this.clearFromPos(this.pos)},getTextString:
function(){for(var a=[],b=!0,c=0;
c
c++){var d=this.chars[c].uchar;
" "!==d&&(b=!1),a.push(d)}return b?"":a.join("")},setPenStyles:
function(a){this.currPenState.setStyles(a);
var b=this.chars[this.pos];
b.setPenState(this.currPenState)}};
var p=
function(){this.rows=[];
for(var a=0;
a
a++)this.rows.push(new o);
this.currRow=d-1,this.nrRollUpRows=null,this.reset()};
p.prototype={reset:
function(){for(var a=0;
a
a++)this.rows[a].clear();
this.currRow=d-1},equals:
function(a){for(var b=!0,c=0;
c
c++)if(!this.rows[c].equals(a.rows[c])){b=!1;
break}return b},copy:
function(a){for(var b=0;
b
b++)this.rows[b].copy(a.rows[b])},isEmpty:
function(){for(var a=!0,b=0;
b
b++)if(!this.rows[b].isEmpty()){a=!1;
break}return a},backSpace:
function(){var a=this.rows[this.currRow];
a.backSpace()},clearToEndOfRow:
function(){var a=this.rows[this.currRow];
a.clearToEndOfRow()},insertChar:
function(a){var b=this.rows[this.currRow];
b.insertChar(a)},setPen:
function(a){var b=this.rows[this.currRow];
b.setPenStyles(a)},moveCursor:
function(a){var b=this.rows[this.currRow];
b.moveCursor(a)},setCursor:
function(a){k.log("INFO","setCursor: "+a);
var b=this.rows[this.currRow];
b.setCursor(a)},setPAC:
function(a){k.log("INFO","pacData = "+JSON.stringify(a));
var b=a.row-1;
this.nrRollUpRows&&b
var c=this.rows[this.currRow];
if(null!==a.indent){var d=a.indent,e=Math.max(d-1,0);
c.setCursor(a.indent),a.color=c.chars[e].penState.foreground}var f={foreground:a.color,underline:a.underline,italics:a.italics,background:"black",flash:!1};
this.setPen(f)},setBkgData:
function(a){k.log("INFO","bkgData = "+JSON.stringify(a)),this.backSpace(),this.setPen(a),this.insertChar(32)},setRollUpRows:
function(a){this.nrRollUpRows=a},rollUp:
function(){if(null===this.nrRollUpRows)return void k.log("DEBUG","roll_up but nrRollUpRows not set yet");
k.log("TEXT",this.getDisplayText());
var a=this.currRow+1-this.nrRollUpRows,b=this.rows.splice(a,1)[0];
b.clear(),this.rows.splice(this.currRow,0,b),k.log("INFO","Rolling up")},getDisplayText:
function(a){a=a||!1;
for(var b=[],c="",e=-1,f=0;
f
f++){var g=this.rows[f].getTextString();
g&&(e=f+1,a?b.push("Row "+e+': "'+g+'"'):b.push(g.trim()))}return b.length>0&&(c=a?"["+b.join(" | ")+"]":b.join("\n")),c},getTextAndFormat:
function(){return this.rows}};
var q=
function(a,b){this.chNr=a,this.outputFilter=b,this.mode=null,this.verbose=0,this.displayedMemory=new p,this.nonDisplayedMemory=new p,this.lastOutputScreen=new p,this.currRollUpRow=this.displayedMemory.rows[d-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};
q.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:
function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[d-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:
function(){return this.outputFilter},setHandler:
function(a){this.outputFilter=a},setPAC:
function(a){this.writeScreen.setPAC(a)},setBkgData:
function(a){this.writeScreen.setBkgData(a)},setMode:
function(a){a!==this.mode&&(this.mode=a,k.log("INFO","MODE="+a),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=a)},insertChars:
function(a){for(var b=0;
b
b++)this.writeScreen.insertChar(a[b]);
var c=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";
k.log("INFO",c+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(k.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:
function(){k.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:
function(){k.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:
function(){},cc_AON:
function(){},cc_DER:
function(){k.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:
function(a){k.log("INFO","RU("+a+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(a)},cc_FON:
function(){k.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:
function(){k.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:
function(){k.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:
function(){k.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:
function(){k.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:
function(){k.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:
function(){k.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:
function(){if(k.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var a=this.displayedMemory;
this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=a,this.writeScreen=this.nonDisplayedMemory,k.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:
function(a){k.log("INFO","TO("+a+") - Tab Offset"),this.writeScreen.moveCursor(a)},cc_MIDROW:
function(a){var b={flash:!1};
if(b.underline=a%2===1,b.italics=a>=46,b.italics)b.foreground="white";
else{var c=Math.floor(a/2)-16,d=["white","green","blue","cyan","red","yellow","magenta"];
b.foreground=d[c]}k.log("INFO","MIDROW: "+JSON.stringify(b)),this.writeScreen.setPen(b)},outputDataUpdate:
function(){var a=k.time;
null!==a&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(a,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,a,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:a):this.cueStartTime=a,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:
function(a){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,a,this.displayedMemory),this.cueStartTime=a))}};
var r=
function(a,b,c){this.field=a||1,this.outputs=[b,c],this.channels=[new q(1,b),new q(2,c)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}};
r.prototype={getHandler:
function(a){return this.channels[a].getHandler()},setHandler:
function(a,b){this.channels[a].setHandler(b)},addData:
function(a,b){var c,d,e,f=!1;
this.lastTime=a,k.setTime(a);
for(var g=0;
g
g+=2)if(d=127&b[g],e=127&b[g+1],d>=16&&d<=31&&d===this.lastCmdA&&e===this.lastCmdB)this.lastCmdA=null,this.lastCmdB=null,k.log("DEBUG","Repeated command ("+l([d,e])+") is dropped");
else if(0!==d||0!==e){if(k.log("DATA","["+l([b[g],b[g+1]])+"] -> ("+l([d,e])+")"),c=this.parseCmd(d,e),c||(c=this.parseMidrow(d,e)),c||(c=this.parsePAC(d,e)),c||(c=this.parseBackgroundAttributes(d,e)),!c&&(f=this.parseChars(d,e)))if(this.currChNr&&this.currChNr>=0){var h=this.channels[this.currChNr-1];
h.insertChars(f)}else k.log("WARNING","No channel found yet. TEXT-MODE?");
c?this.dataCounters.cmd+=2:f?this.dataCounters.char+=2:(this.dataCounters.other+=2,k.log("WARNING","Couldn't parse cleaned data "+l([d,e])+" orig: "+l([b[g],b[g+1]])))}else this.dataCounters.padding+=2},parseCmd:
function(a,b){var c=null,d=(20===a||21===a||28===a||29===a)&&32<=b&&b<=47,e=(23===a||31===a)&&33<=b&&b<=35;
if(!d&&!e)return!1;
c=20===a||21===a||23===a?1:2;
var f=this.channels[c-1];
return 20===a||21===a||28===a||29===a?32===b?f.cc_RCL():33===b?f.cc_BS():34===b?f.cc_AOF():35===b?f.cc_AON():36===b?f.cc_DER():37===b?f.cc_RU(2):38===b?f.cc_RU(3):39===b?f.cc_RU(4):40===b?f.cc_FON():41===b?f.cc_RDC():42===b?f.cc_TR():43===b?f.cc_RTD():44===b?f.cc_EDM():45===b?f.cc_CR():46===b?f.cc_ENM():47===b&&f.cc_EOC():f.cc_TO(b-32),this.lastCmdA=a,this.lastCmdB=b,this.currChNr=c,!0},parseMidrow:
function(a,b){var c=null;
if((17===a||25===a)&&32<=b&&b<=47){if(c=17===a?1:2,c!==this.currChNr)return k.log("ERROR","Mismatch channel in midrow parsing"),!1;
var d=this.channels[c-1];
return d.insertChars([32]),d.cc_MIDROW(b),k.log("DEBUG","MIDROW ("+l([a,b])+")"),this.lastCmdA=a,this.lastCmdB=b,!0}return!1},parsePAC:
function(a,b){var c=null,d=null,e=(17<=a&&a<=23||25<=a&&a<=31)&&64<=b&&b<=127,j=(16===a||24===a)&&64<=b&&b<=95;
if(!e&&!j)return!1;
c=a<=23?1:2,d=64<=b&&b<=95?1===c?f[a]:h[a]:1===c?g[a]:i[a];
var k=this.interpretPAC(d,b),l=this.channels[c-1];
return l.setPAC(k),this.lastCmdA=a,this.lastCmdB=b,this.currChNr=c,!0},interpretPAC:
function(a,b){var c=b,d={color:null,italics:!1,indent:null,underline:!1,row:a};
return c=b>95?b-96:b-64,d.underline=1===(1&c),c<=13?d.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(c/2)]:c<=15?(d.italics=!0,d.color="white"):d.indent=4*Math.floor((c-16)/2),d},parseChars:
function(a,b){var d=null,e=null,f=null;
if(a>=25?(d=2,f=a-8):(d=1,f=a),17<=f&&f<=19){var g=b;
g=17===f?b+80:18===f?b+112:b+144,k.log("INFO","Special char '"+c(g)+"' in channel "+d),e=[g],this.lastCmdA=a,this.lastCmdB=b}else 32<=a&&a<=127&&(e=0===b?[a]:[a,b],this.lastCmdA=null,this.lastCmdB=null);
if(e){var h=l(e);
k.log("DEBUG","Char codes = "+h.join(","))}return e},parseBackgroundAttributes:
function(a,b){var c,d,e,f,g=(16===a||24===a)&&32<=b&&b<=47,h=(23===a||31===a)&&45<=b&&b<=47;
return!(!g&&!h)&&(c={},16===a||24===a?(d=Math.floor((b-32)/2),c.background=j[d],b%2===1&&(c.background=c.background+"_semi")):45===b?c.background="transparent":(c.foreground="black",47===b&&(c.underline=!0)),e=a<24?1:2,f=this.channels[e-1],f.setBkgData(c),this.lastCmdA=a,this.lastCmdB=b,!0)},reset:
function(){for(var a=0;
a
a++)this.channels[a]&&this.channels[a].reset();
this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:
function(a){for(var b=0;
b
b++)this.channels[b]&&this.channels[b].cueSplitAtTime(a)}};
var s=
function(a,b,c){for(var d=0,e=b,f=0,g=[],h=
function(a,b,c,d){if(4!==a||b<8)return null;
var e=c.getUint8(d),f=c.getUint16(d+1),g=c.getUint32(d+3),h=c.getUint8(d+7);
return 181==e&&49==f&&1195456820==g&&3==h};
e
){if(d=a.getUint32(e),f=31&a.getUint8(e+4),6===f)for(var i=e+5,j=-1;
i
){j=0;
for(var k=255;
255===k;
)k=a.getUint8(i),j+=k,i++;
var l=0;
for(k=255;
255===k;
)k=a.getUint8(i),l+=k,i++;
h(j,l,a,i)&&g.push([i,l]),i+=l}e+=d+4}return g},t=
function(a,b){var c=b[0],d=[[],[]];
c+=8;
var e=31&a.getUint8(c);
c+=2;
for(var f=0;
f
f++){var g=a.getUint8(c),h=4&g,i=3&g;
c++;
var j=a.getUint8(c);
c++;
var k=a.getUint8(c);
c++,h&&(127&j)+(127&k)!==0&&(0===i?(d[0].push(j),d[0].push(k)):1===i&&(d[1].push(j),d[1].push(k)))}return d};
a.logger=k,a.PenState=m,a.CaptionScreen=p,a.Cea608Parser=r,a.findCea608Nalus=s,a.extractCea608DataFromRange=t}("undefined"==typeof c?(void 0).cea608parser={}:c)},{}],3:[
function(a,b,c){"use strict";
function d(a){var b,c,d;
for(b=[],d=0,c=a.length;
d
d+=1)a[d].isRoot?b.push("root"):b.push(a[d].name);
var e=
function(a,b){var c;
if(null!==a&&null!==b)for(c in a)a.hasOwnProperty(c)&&(b.hasOwnProperty(c)||(b[c]=a[c]))},f=
function(a,b,c){var d,f,g,h,i;
if(null!==a&&0!==a.length)for(d=0,f=a.length;
d
d+=1)g=a[d],b.hasOwnProperty(g.name)&&(c.hasOwnProperty(g.name)?g.merge&&(h=b[g.name],i=c[g.name],"object"==typeof h&&"object"==typeof i?e(h,i):null!=g.mergeFunction?c[g.name]=g.mergeFunction(h,i):c[g.name]=h+i):c[g.name]=b[g.name])},g=
function a(b,c){var d,e,g,h,i,j,k,l=b;
if(null!==l.children&&0!==l.children.length)for(d=0,e=l.children.length;
d
d+=1)if(j=l.children[d],c.hasOwnProperty(j.name))if(j.isArray)for(i=c[j.name+"_asArray"],g=0,h=i.length;
g
g+=1)k=i[g],f(l.properties,c,k),a(j,k);
else k=c[j.name],f(l.properties,c,k),a(j,k)},h=
function c(d){var e,f,h,i,j,k,l;
if(null===d)return d;
if("object"!=typeof d)return d;
for(e=0,f=b.length;
e
e+=1)"root"===b[e]&&(j=a[e],k=d,g(j,k));
for(i in d)if(d.hasOwnProperty(i)&&"__children"!=i){if(h=b.indexOf(i),h!==-1)if(j=a[h],j.isArray)for(l=d[i+"_asArray"],e=0,f=l.length;
e
e+=1)k=l[e],g(j,k);
else k=d[i],g(j,k);
c(d[i])}return d};
return{run:h}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=d,b.exports=c.default},{}],4:[
function(a,b,c){"use strict";
function d(a){
function b(){void 0===a.escapeMode&&(a.escapeMode=!0),void 0===a.attributePrefix&&(a.attributePrefix="_"),a.arrayAccessForm=a.arrayAccessForm||"none",a.emptyNodeForm=a.emptyNodeForm||"text",void 0===a.enableToStringFunc&&(a.enableToStringFunc=!0),a.arrayAccessFormPaths=a.arrayAccessFormPaths||[],void 0===a.skipEmptyTextNodesForObj&&(a.skipEmptyTextNodesForObj=!0),void 0===a.stripWhitespaces&&(a.stripWhitespaces=!0),a.datetimeAccessFormPaths=a.datetimeAccessFormPaths||[],void 0===a.useDoubleQuotes&&(a.useDoubleQuotes=!1),a.xmlElementsFilter=a.xmlElementsFilter||[],a.jsonPropertiesFilter=a.jsonPropertiesFilter||[],void 0===a.keepCData&&(a.keepCData=!1),void 0===a.ignoreRoot&&(a.ignoreRoot=!1)}
function c(){}
function d(a){var b=a.localName;
return null==b&&(b=a.baseName),null!=b&&""!=b||(b=a.nodeName),b}
function e(a){return a.prefix}
function f(a){return"string"==typeof a?a.replace(/&/g,"&
").replace(/
").replace(/>/g,">
").replace(/"/g,""
").replace(/'/g,"'
"):a}
function g(a,b,c,d){for(var e=0;
e
e++){var f=a[e];
if("string"==typeof f){if(f==d)break}else if(f instanceof RegExp){if(f.test(d))break}else if("
function"==typeof f&&f(b,c,d))break}return e!=a.length}
function h(b,c,d){switch(a.arrayAccessForm){case"property":b[c]instanceof Array?b[c+"_asArray"]=b[c]:b[c+"_asArray"]=[b[c]]}!(b[c]instanceof Array)&&a.arrayAccessFormPaths.length>0&&g(a.arrayAccessFormPaths,b,c,d)&&(b[c]=[b[c]])}
function i(a){var b=a.split(/[-T:+Z]/g),c=new Date(b[0],b[1]-1,b[2]),d=b[5].split(".");
if(c.setHours(b[3],b[4],d[0]),d.length>1&&c.setMilliseconds(d[1]),b[6]&&b[7]){var e=60*b[6]+Number(b[7]),f=/\d\d-\d\d:\d\d$/.test(a)?"-":"+";
e=0+("-"==f?-1*e:e),c.setMinutes(c.getMinutes()-e-c.getTimezoneOffset())}else a.indexOf("Z",a.length-1)!==-1&&(c=new Date(Date.UTC(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds())));
return c}
function j(b,c,d){if(a.datetimeAccessFormPaths.length>0){var e=d.split(".#")[0];
return g(a.datetimeAccessFormPaths,b,c,e)?i(b):b}return b}
function k(b,c,d,e){return!(c==z.ELEMENT_NODE&&a.xmlElementsFilter.length>0)||g(a.xmlElementsFilter,b,d,e)}
function l(b,c){if(b.nodeType==z.DOCUMENT_NODE){for(var f=new Object,g=b.childNodes,i=0;
i
i++){var m=g[i];
if(m.nodeType==z.ELEMENT_NODE)if(a.ignoreRoot)f=l(m);
else{f={};
var n=d(m);
f[n]=l(m)}}return f}if(b.nodeType==z.ELEMENT_NODE){var f=new Object;
f.__cnt=0;
for(var o=[],g=b.childNodes,i=0;
i
i++){var m=g[i],n=d(m);
if(m.nodeType!=z.COMMENT_NODE){var p=c+"."+n;
if(k(f,m.nodeType,n,p))if(f.__cnt++,null==f[n]){var q=l(m,p);
if("#text"!=n||/[^\s]/.test(q)){var r={};
r[n]=q,o.push(r)}f[n]=q,h(f,n,p)}else{null!=f[n]&&(f[n]instanceof Array||(f[n]=[f[n]],h(f,n,p)));
var q=l(m,p);
if("#text"!=n||/[^\s]/.test(q)){var r={};
r[n]=q,o.push(r)}f[n][f[n].length]=q}}}f.__children=o;
for(var s=d(b),t=0;
t
t++){var u=b.attributes[t];
f.__cnt++;
for(var v=u.value,w=0,x=a.matchers.length;
w
w++){var y=a.matchers[w];
y.test(u,s)&&(v=y.converter(u.value))}f[a.attributePrefix+u.name]=v}var A=e(b);
return null!=A&&""!=A&&(f.__cnt++,f.__prefix=A),null!=f["#text"]&&(f.__text=f["#text"],f.__text instanceof Array&&(f.__text=f.__text.join("\n")),a.stripWhitespaces&&(f.__text=f.__text.trim()),delete f["#text"],"property"==a.arrayAccessForm&&delete f["#text_asArray"],f.__text=j(f.__text,n,c+"."+n)),null!=f["#cdata-section"]&&(f.__cdata=f["#cdata-section"],delete f["#cdata-section"],"property"==a.arrayAccessForm&&delete f["#cdata-section_asArray"]),0==f.__cnt&&"text"==a.emptyNodeForm?f="":1==f.__cnt&&null!=f.__text?f=f.__text:1!=f.__cnt||null==f.__cdata||a.keepCData?f.__cnt>1&&null!=f.__text&&a.skipEmptyTextNodesForObj&&(a.stripWhitespaces&&""==f.__text||""==f.__text.trim())&&delete f.__text:f=f.__cdata,delete f.__cnt,!a.enableToStringFunc||null==f.__text&&null==f.__cdata||(f.toString=
function(){return(null!=this.__text?this.__text:"")+(null!=this.__cdata?this.__cdata:"")}),f}if(b.nodeType==z.TEXT_NODE||b.nodeType==z.CDATA_SECTION_NODE)return b.nodeValue}
function m(b,c,d,e){var g="<"+(null!=b&&null!=b.__prefix?b.__prefix+":":"")+c;
if(null!=d)for(var h=0;
h
h++){var i=d[h],j=b[i];
a.escapeMode&&(j=f(j)),g+=" "+i.substr(a.attributePrefix.length)+"=",g+=a.useDoubleQuotes?'"'+j+'"':"'"+j+"'"}return g+=e?"/>":">"}
function n(a,b){return""+(null!=a.__prefix?a.__prefix+":":"")+b+">"}
function o(a,b){return a.indexOf(b,a.length-b.length)!==-1}
function p(b,c){return!!("property"==a.arrayAccessForm&&o(c.toString(),"_asArray")||0==c.toString().indexOf(a.attributePrefix)||0==c.toString().indexOf("__")||b[c]instanceof Function)}
function q(a){var b=0;
if(a instanceof Object)for(var c in a)p(a,c)||b++;
return b}
function r(b,c,d){return 0==a.jsonPropertiesFilter.length||""==d||g(a.jsonPropertiesFilter,b,c,d)}
function s(b){var c=[];
if(b instanceof Object)for(var d in b)d.toString().indexOf("__")==-1&&0==d.toString().indexOf(a.attributePrefix)&&c.push(d);
return c}
function t(b){var c="";
return null!=b.__cdata&&(c+=""),null!=b.__text&&(c+=a.escapeMode?f(b.__text):b.__text),c}
function u(b){var c="";
return b instanceof Object?c+=t(b):null!=b&&(c+=a.escapeMode?f(b):b),c}
function v(a,b){return""===a?b:a+"."+b}
function w(a,b,c,d){var e="";
if(0==a.length)e+=m(a,b,c,!0);
else for(var f=0;
f
f++)e+=m(a[f],b,s(a[f]),!1),e+=x(a[f],v(d,b)),e+=n(a[f],b);
return e}
function x(a,b){var c="",d=q(a);
if(d>0)for(var e in a)if(!p(a,e)&&(""==b||r(a,e,v(b,e)))){var f=a[e],g=s(f);
if(null==f||void 0==f)c+=m(f,e,g,!0);
else if(f instanceof Object)if(f instanceof Array)c+=w(f,e,g,b);
else if(f instanceof Date)c+=m(f,e,g,!1),c+=f.toISOString(),c+=n(f,e);
else{var h=q(f);
h>0||null!=f.__text||null!=f.__cdata?(c+=m(f,e,g,!1),c+=x(f,v(b,e)),c+=n(f,e)):c+=m(f,e,g,!0)}else c+=m(f,e,g,!1),c+=u(f),c+=n(f,e)}return c+=u(a)}var y="1.2.0";
a=a||{},b(),c();
var z={ELEMENT_NODE:1,TEXT_NODE:3,CDATA_SECTION_NODE:4,COMMENT_NODE:8,DOCUMENT_NODE:9};
this.parseXmlString=
function(a){window.ActiveXObject||"ActiveXObject"in window;
if(void 0===a)return null;
var b;
if(window.DOMParser){var c=new window.DOMParser;
try{b=c.parseFromString(a,"text/xml"),b.getElementsByTagNameNS("*","parseerror").length>0&&(b=null)}catch(a){b=null}}else 0==a.indexOf("")&&(a=a.substr(a.indexOf("?>")+2)),b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a);
return b},this.asArray=
function(a){return void 0===a||null==a?[]:a instanceof Array?a:[a]},this.toXmlDateTime=
function(a){return a instanceof Date?a.toISOString():"number"==typeof a?new Date(a).toISOString():null},this.asDateTime=
function(a){return"string"==typeof a?i(a):a},this.xml2json=
function(a){return l(a)},this.xml_str2json=
function(a){var b=this.parseXmlString(a);
return null!=b?this.xml2json(b):null},this.json2xml_str=
function(a){return x(a,"")},this.json2xml=
function(a){var b=this.json2xml_str(a);
return this.parseXmlString(b)},this.getVersion=
function(){return y}}Object.defineProperty(c,"__esModule",{value:!0}),c.default=d,b.exports=c.default},{}],5:[
function(a,b,c){"use strict";
function d(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(c,"__esModule",{value:!0}),a(6);
var e=a(116),f=d(e),g=a(147),h=d(g),i=a(95),j=d(i);
dashjs.Protection=h.default,dashjs.MetricsReporting=f.default,dashjs.MediaPlayerFactory=j.default,c.default=dashjs,c.Protection=h.default,c.MetricsReporting=f.default,c.MediaPlayerFactory=j.default},{116:116,147:147,6:6,95:95}],6:[
function(a,b,c){(
function(b){"use strict";
function d(a){return a&&a.__esModule?a:{default:a}}Object.defineProperty(c,"__esModule",{value:!0});
var e=a(93),f=d(e),g=a(51),h=d(g),i=a(52),j="undefined"!=typeof window&&window||b,k=j.dashjs;
k||(k=j.dashjs={}),k.MediaPlayer=f.default,k.FactoryMaker=h.default,k.Version=(0,i.getVersionString)(),c.default=k,c.MediaPlayer=f.default,c.FactoryMaker=h.default}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{51:51,52:52,93:93}],7:[
function(a,b,c){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
!
function(a){"use strict";
function b(a){var b=a.charCodeAt(0);
return b===g||b===l?62:b===h||b===m?63:bfunction c(a){
function c(a){j[l++]=a}var d,e,g,h,i,j;
if(a.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");
var k=a.length;
i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;
var l=0;
for(d=0,e=0;
d
d+=4,e+=3)h=b(a.charAt(d))<<18|b(a.charAt(d+1))<<12|b(a.charAt(d+2))<<6|b(a.charAt(d+3)),c((16711680&h)>>16),c((65280&h)>>8),c(255&h);
return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}
function e(a){
function b(a){return d.charAt(a)}
function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";
for(e=0,g=a.length-h;
e
e+=3)f=(a[e]<<16)+(a[e+1]<<8)+a[e+2],i+=c(f);
switch(h){case 1:f=a[a.length-1],i+=b(f>>2),i+=b(f<<4&63),i+="==";
break;
case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0),l="-".charCodeAt(0),m="_".charCodeAt(0);
a.toByteArray=c,a.fromByteArray=e}("undefined"==typeof c?this.base64js={}:c)},{}],8:[
function(a,b,c){},{}],9:[
function(a,b,c){
function d(a){if(a&&!i(a))throw new Error("Unknown encoding: "+a)}
function e(a){return a.toString(this.encoding)}
function f(a){this.charReceived=a.length%2,this.charLength=this.charReceived?2:0}
function g(a){this.charReceived=a.length%3,this.charLength=this.charReceived?3:0}var h=a(10).Buffer,i=h.isEncoding||
function(a){switch(a&&a.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;
default:return!1}},j=c.StringDecoder=
function(a){switch(this.encoding=(a||"utf8").toLowerCase().replace(/[-_]/,""),d(a),this.encoding){case"utf8":this.surrogateSize=3;
break;
case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=f;
break;
case"base64":this.surrogateSize=3,this.detectIncompleteChar=g;
break;
default:return void(this.write=e)}this.charBuffer=new h(6),this.charReceived=0,this.charLength=0};
j.prototype.write=
function(a){for(var b="";
this.charLength;
){var c=a.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;
if(a.copy(this.charBuffer,this.charReceived,0,c),this.charReceived+=c,this.charReceived
a=a.slice(c,a.length),b=this.charBuffer.slice(0,this.charLength).toString(this.encoding);
var d=b.charCodeAt(b.length-1);
if(!(d>=55296&&d<=56319)){if(this.charReceived=this.charLength=0,0===a.length)return b;
break}this.charLength+=this.surrogateSize,b=""}this.detectIncompleteChar(a);
var e=a.length;
this.charLength&&(a.copy(this.charBuffer,0,a.length-this.charReceived,e),e-=this.charReceived),b+=a.toString(this.encoding,0,e);
var e=b.length-1,d=b.charCodeAt(e);
if(d>=55296&&d<=56319){var f=this.surrogateSize;
return this.charLength+=f,this.charReceived+=f,this.charBuffer.copy(this.charBuffer,f,0,f),a.copy(this.charBuffer,0,0,f),b.substring(0,e)}return b},j.prototype.detectIncompleteChar=
function(a){for(var b=a.length>=3?3:a.length;
b>0;
b--){var c=a[a.length-b];
if(1==b&&c>>5==6){this.charLength=2;
break}if(b<=2&&c>>4==14){this.charLength=3;
break}if(b<=3&&c>>3==30){this.charLength=4;
break}}this.charReceived=b},j.prototype.end=
function(a){var b="";
if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;
b+=d.slice(0,c).toString(e)}return b}},{10:10}],10:[
function(a,b,c){(
function(b){"use strict";
function d(){
function a(){}try{var b=new Uint8Array(1);
return b.foo=
function(){return 42},b.constructor=a,42===b.foo()&&b.constructor===a&&"
function"==typeof b.subarray&&0===b.subarray(1,1).byteLength}catch(a){return!1}}
function e(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}
function f(a){return this instanceof f?(f.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof a?g(this,a):"string"==typeof a?h(this,a,arguments.length>1?arguments[1]:"utf8"):i(this,a)):arguments.length>1?new f(a,arguments[1]):new f(a)}
function g(a,b){if(a=p(a,b<0?0:0|q(b)),!f.TYPED_ARRAY_SUPPORT)for(var c=0;
c
c++)a[c]=0;
return a}
function h(a,b,c){"string"==typeof c&&""!==c||(c="utf8");
var d=0|s(b,c);
return a=p(a,d),a.write(b,c),a}
function i(a,b){if(f.isBuffer(b))return j(a,b);
if(Y(b))return k(a,b);
if(null==b)throw new TypeError("must start with number, buffer, array or string");
if("undefined"!=typeof ArrayBuffer){if(b.buffer instanceof ArrayBuffer)return l(a,b);
if(b instanceof ArrayBuffer)return m(a,b)}return b.length?n(a,b):o(a,b)}
function j(a,b){var c=0|q(b.length);
return a=p(a,c),b.copy(a,0,0,c),a}
function k(a,b){var c=0|q(b.length);
a=p(a,c);
for(var d=0;
d
d+=1)a[d]=255&b[d];
return a}
function l(a,b){var c=0|q(b.length);
a=p(a,c);
for(var d=0;
d
d+=1)a[d]=255&b[d];
return a}
function m(a,b){return f.TYPED_ARRAY_SUPPORT?(b.byteLength,a=f._augment(new Uint8Array(b))):a=l(a,new Uint8Array(b)),a}
function n(a,b){var c=0|q(b.length);
a=p(a,c);
for(var d=0;
d
d+=1)a[d]=255&b[d];
return a}
function o(a,b){var c,d=0;
"Buffer"===b.type&&Y(b.data)&&(c=b.data,d=0|q(c.length)),a=p(a,d);
for(var e=0;
e
e+=1)a[e]=255&c[e];
return a}
function p(a,b){f.TYPED_ARRAY_SUPPORT?(a=f._augment(new Uint8Array(b)),a.__proto__=f.prototype):(a.length=b,a._isBuffer=!0);
var c=0!==b&&b<=f.poolSize>>>1;
return c&&(a.parent=Z),a}
function q(a){if(a>=e())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e().toString(16)+" bytes");
return 0|a}
function r(a,b){if(!(this instanceof r))return new r(a,b);
var c=new f(a,b);
return delete c.parent,c}
function s(a,b){"string"!=typeof a&&(a=""+a);
var c=a.length;
if(0===c)return 0;
for(var d=!1;
;
)switch(b){case"ascii":case"binary":case"raw":case"raws":return c;
case"utf8":case"utf-8":return R(a).length;
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*c;
case"hex":return c>>>1;
case"base64":return U(a).length;
default:if(d)return R(a).length;
b=(""+b).toLowerCase(),d=!0}}
function t(a,b,c){var d=!1;
if(b|=0,c=void 0===c||c===1/0?this.length:0|c,a||(a="utf8"),b<0&&(b=0),c>this.length&&(c=this.length),c<=b)return"";
for(;
;
)switch(a){case"hex":return F(this,b,c);
case"utf8":case"utf-8":return B(this,b,c);
case"ascii":return D(this,b,c);
case"binary":return E(this,b,c);
case"base64":return A(this,b,c);
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,b,c);
default:if(d)throw new TypeError("Unknown encoding: "+a);
a=(a+"").toLowerCase(),d=!0}}
function u(a,b,c,d){c=Number(c)||0;
var e=a.length-c;
d?(d=Number(d),d>e&&(d=e)):d=e;
var f=b.length;
if(f%2!==0)throw new Error("Invalid hex string");
d>f/2&&(d=f/2);
for(var g=0;
g
g++){var h=parseInt(b.substr(2*g,2),16);
if(isNaN(h))throw new Error("Invalid hex string");
a[c+g]=h}return g}
function v(a,b,c,d){return V(R(b,a.length-c),a,c,d)}
function w(a,b,c,d){return V(S(b),a,c,d)}
function x(a,b,c,d){return w(a,b,c,d)}
function y(a,b,c,d){return V(U(b),a,c,d)}
function z(a,b,c,d){return V(T(b,a.length-c),a,c,d)}
function A(a,b,c){return 0===b&&c===a.length?W.fromByteArray(a):W.fromByteArray(a.slice(b,c))}
function B(a,b,c){c=Math.min(a.length,c);
for(var d=[],e=b;
e
){var f=a[e],g=null,h=f>239?4:f>223?3:f>191?2:1;
if(e+h<=c){var i,j,k,l;
switch(h){case 1:f<128&&(g=f);
break;
case 2:i=a[e+1],128===(192&i)&&(l=(31&f)<<6|63&i,l>127&&(g=l));
break;
case 3:i=a[e+1],j=a[e+2],128===(192&i)&&128===(192&j)&&(l=(15&f)<<12|(63&i)<<6|63&j,l>2047&&(l<55296||l>57343)&&(g=l));
break;
case 4:i=a[e+1],j=a[e+2],k=a[e+3],128===(192&i)&&128===(192&j)&&128===(192&k)&&(l=(15&f)<<18|(63&i)<<12|(63&j)<<6|63&k,l>65535&&l<1114112&&(g=l))}}null===g?(g=65533,h=1):g>65535&&(g-=65536,d.push(g>>>10&1023|55296),g=56320|1023&g),d.push(g),e+=h}return C(d)}
function C(a){var b=a.length;
if(b<=$)return String.fromCharCode.apply(String,a);
for(var c="",d=0;
d
)c+=String.fromCharCode.apply(String,a.slice(d,d+=$));
return c}
function D(a,b,c){var d="";
c=Math.min(a.length,c);
for(var e=b;
e
e++)d+=String.fromCharCode(127&a[e]);
return d}
function E(a,b,c){var d="";
c=Math.min(a.length,c);
for(var e=b;
e
e++)d+=String.fromCharCode(a[e]);
return d}
function F(a,b,c){var d=a.length;
(!b||b<0)&&(b=0),(!c||c<0||c>d)&&(c=d);
for(var e="",f=b;
f
f++)e+=Q(a[f]);
return e}
function G(a,b,c){for(var d=a.slice(b,c),e="",f=0;
f
f+=2)e+=String.fromCharCode(d[f]+256*d[f+1]);
return e}
function H(a,b,c){if(a%1!==0||a<0)throw new RangeError("offset is not uint");
if(a+b>c)throw new RangeError("Trying to access beyond buffer length")}
function I(a,b,c,d,e,g){if(!f.isBuffer(a))throw new TypeError("buffer must be a Buffer instance");
if(b>e||b
if(c+d>a.length)throw new RangeError("index out of range")}
function J(a,b,c,d){b<0&&(b=65535+b+1);
for(var e=0,f=Math.min(a.length-c,2);
e
e++)a[c+e]=(b&255<<8*(d?e:1-e))>>>8*(d?e:1-e)}
function K(a,b,c,d){b<0&&(b=4294967295+b+1);
for(var e=0,f=Math.min(a.length-c,4);
e
e++)a[c+e]=b>>>8*(d?e:3-e)&255}
function L(a,b,c,d,e,f){if(b>e||b
if(c+d>a.length)throw new RangeError("index out of range");
if(c<0)throw new RangeError("index out of range")}
function M(a,b,c,d,e){return e||L(a,b,c,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(a,b,c,d,23,4),c+4}
function N(a,b,c,d,e){return e||L(a,b,c,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(a,b,c,d,52,8),c+8}
function O(a){if(a=P(a).replace(aa,""),a.length<2)return"";
for(;
a.length%4!==0;
)a+="=";
return a}
function P(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}
function Q(a){return a<16?"0"+a.toString(16):a.toString(16)}
function R(a,b){b=b||1/0;
for(var c,d=a.length,e=null,f=[],g=0;
g
g++){if(c=a.charCodeAt(g),c>55295&&c<57344){if(!e){if(c>56319){(b-=3)>-1&&f.push(239,191,189);
continue}if(g+1===d){(b-=3)>-1&&f.push(239,191,189);
continue}e=c;
continue}if(c<56320){(b-=3)>-1&&f.push(239,191,189),e=c;
continue}c=(e-55296<<10|c-56320)+65536}else e&&(b-=3)>-1&&f.push(239,191,189);
if(e=null,c<128){if((b-=1)<0)break;
f.push(c)}else if(c<2048){if((b-=2)<0)break;
f.push(c>>6|192,63&c|128)}else if(c<65536){if((b-=3)<0)break;
f.push(c>>12|224,c>>6&63|128,63&c|128)}else{if(!(c<1114112))throw new Error("Invalid code point");
if((b-=4)<0)break;
f.push(c>>18|240,c>>12&63|128,c>>6&63|128,63&c|128)}}return f}
function S(a){for(var b=[],c=0;
c
c++)b.push(255&a.charCodeAt(c));
return b}
function T(a,b){for(var c,d,e,f=[],g=0;
g
g++)c=a.charCodeAt(g),d=c>>8,e=c%256,f.push(e),f.push(d);
return f}
function U(a){return W.toByteArray(O(a))}
function V(a,b,c,d){for(var e=0;
e=b.length||e>=a.length);
e++)b[e+c]=a[e];
return e}var W=a(7),X=a(17),Y=a(27);
c.Buffer=f,c.SlowBuffer=r,c.INSPECT_MAX_BYTES=50,f.poolSize=8192;
var Z={};
f.TYPED_ARRAY_SUPPORT=void 0!==b.TYPED_ARRAY_SUPPORT?b.TYPED_ARRAY_SUPPORT:d(),f.TYPED_ARRAY_SUPPORT?(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array):(f.prototype.length=void 0,f.prototype.parent=void 0),f.isBuffer=
function(a){return!(null==a||!a._isBuffer)},f.compare=
function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");
if(a===b)return 0;
for(var c=a.length,d=b.length,e=0,g=Math.min(c,d);
e
)++e;
return e!==g&&(c=a[e],d=b[e]),cfunction(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;
default:return!1}},f.concat=
function(a,b){if(!Y(a))throw new TypeError("list argument must be an Array of Buffers.");
if(0===a.length)return new f(0);
var c;
if(void 0===b)for(b=0,c=0;
c
c++)b+=a[c].length;
var d=new f(b),e=0;
for(c=0;
c
c++){var g=a[c];
g.copy(d,e),e+=g.length}return d},f.byteLength=s,f.prototype.toString=
function(){var a=0|this.length;
return 0===a?"":0===arguments.length?B(this,0,a):t.apply(this,arguments)},f.prototype.equals=
function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");
return this===a||0===f.compare(this,a)},f.prototype.inspect=
function(){var a="",b=c.INSPECT_MAX_BYTES;
return this.length>0&&(a=this.toString("hex",0,b).match(/.{2}/g).join(" "),this.length>b&&(a+=" ... ")),""},f.prototype.compare=
function(a){if(!f.isBuffer(a))throw new TypeError("Argument must be a Buffer");
return this===a?0:f.compare(this,a)},f.prototype.indexOf=
function(a,b){
function c(a,b,c){for(var d=-1,e=0;
c+e
e++)if(a[c+e]===b[d===-1?0:e-d]){if(d===-1&&(d=e),e-d+1===b.length)return c+d}else d=-1;
return-1}if(b>2147483647?b=2147483647:b<-2147483648&&(b=-2147483648),b>>=0,0===this.length)return-1;
if(b>=this.length)return-1;
if(b<0&&(b=Math.max(this.length+b,0)),"string"==typeof a)return 0===a.length?-1:String.prototype.indexOf.call(this,a,b);
if(f.isBuffer(a))return c(this,a,b);
if("number"==typeof a)return f.TYPED_ARRAY_SUPPORT&&"
function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,a,b):c(this,[a],b);
throw new TypeError("val must be string, number or Buffer")},f.prototype.get=
function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},f.prototype.set=
function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)},f.prototype.write=
function(a,b,c,d){if(void 0===b)d="utf8",c=this.length,b=0;
else if(void 0===c&&"string"==typeof b)d=b,c=this.length,b=0;
else if(isFinite(b))b|=0,isFinite(c)?(c|=0,void 0===d&&(d="utf8")):(d=c,c=void 0);
else{var e=d;
d=b,b=0|c,c=e}var f=this.length-b;
if((void 0===c||c>f)&&(c=f),a.length>0&&(c<0||b<0)||b>this.length)throw new RangeError("attempt to write outside buffer bounds");
d||(d="utf8");
for(var g=!1;
;
)switch(d){case"hex":return u(this,a,b,c);
case"utf8":case"utf-8":return v(this,a,b,c);
case"ascii":return w(this,a,b,c);
case"binary":return x(this,a,b,c);
case"base64":return y(this,a,b,c);
case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return z(this,a,b,c);
default:if(g)throw new TypeError("Unknown encoding: "+d);
d=(""+d).toLowerCase(),g=!0}},f.prototype.toJSON=
function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};
var $=4096;
f.prototype.slice=
function(a,b){var c=this.length;
a=~~a,b=void 0===b?c:~~b,a<0?(a+=c,a<0&&(a=0)):a>c&&(a=c),b<0?(b+=c,b<0&&(b=0)):b>c&&(b=c),b
var d;
if(f.TYPED_ARRAY_SUPPORT)d=f._augment(this.subarray(a,b));
else{var e=b-a;
d=new f(e,void 0);
for(var g=0;
g
g++)d[g]=this[g+a]}return d.length&&(d.parent=this.parent||this),d},f.prototype.readUIntLE=
function(a,b,c){a|=0,b|=0,c||H(a,b,this.length);
for(var d=this[a],e=1,f=0;
++f
)d+=this[a+f]*e;
return d},f.prototype.readUIntBE=
function(a,b,c){a|=0,b|=0,c||H(a,b,this.length);
for(var d=this[a+--b],e=1;
b>0&&(e*=256);
)d+=this[a+--b]*e;
return d},f.prototype.readUInt8=
function(a,b){return b||H(a,1,this.length),this[a]},f.prototype.readUInt16LE=
function(a,b){return b||H(a,2,this.length),this[a]|this[a+1]<<8},f.prototype.readUInt16BE=
function(a,b){return b||H(a,2,this.length),this[a]<<8|this[a+1]},f.prototype.readUInt32LE=
function(a,b){return b||H(a,4,this.length),(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]},f.prototype.readUInt32BE=
function(a,b){return b||H(a,4,this.length),16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])},f.prototype.readIntLE=
function(a,b,c){a|=0,b|=0,c||H(a,b,this.length);
for(var d=this[a],e=1,f=0;
++f
)d+=this[a+f]*e;
return e*=128,d>=e&&(d-=Math.pow(2,8*b)),d},f.prototype.readIntBE=
function(a,b,c){a|=0,b|=0,c||H(a,b,this.length);
for(var d=b,e=1,f=this[a+--d];
d>0&&(e*=256);
)f+=this[a+--d]*e;
return e*=128,f>=e&&(f-=Math.pow(2,8*b)),f},f.prototype.readInt8=
function(a,b){return b||H(a,1,this.length),128&this[a]?(255-this[a]+1)*-1:this[a]},f.prototype.readInt16LE=
function(a,b){b||H(a,2,this.length);
var c=this[a]|this[a+1]<<8;
return 32768&c?4294901760|c:c},f.prototype.readInt16BE=
function(a,b){b||H(a,2,this.length);
var c=this[a+1]|this[a]<<8;
return 32768&c?4294901760|c:c},f.prototype.readInt32LE=
function(a,b){return b||H(a,4,this.length),this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24},f.prototype.readInt32BE=
function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=
function(a,b){return b||H(a,4,this.length),X.read(this,a,!0,23,4)},f.prototype.readFloatBE=
function(a,b){return b||H(a,4,this.length),X.read(this,a,!1,23,4)},f.prototype.readDoubleLE=
function(a,b){return b||H(a,8,this.length),X.read(this,a,!0,52,8)},f.prototype.readDoubleBE=
function(a,b){return b||H(a,8,this.length),X.read(this,a,!1,52,8)},f.prototype.writeUIntLE=
function(a,b,c,d){a=+a,b|=0,c|=0,d||I(this,a,b,c,Math.pow(2,8*c),0);
var e=1,f=0;
for(this[b]=255&a;
++f
)this[b+f]=a/e&255;
return b+c},f.prototype.writeUIntBE=
function(a,b,c,d){a=+a,b|=0,c|=0,d||I(this,a,b,c,Math.pow(2,8*c),0);
var e=c-1,f=1;
for(this[b+e]=255&a;
--e>=0&&(f*=256);
)this[b+e]=a/f&255;
return b+c},f.prototype.writeUInt8=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=
function(a,b,c,d){if(a=+a,b|=0,!d){var e=Math.pow(2,8*c-1);
I(this,a,b,c,e-1,-e)}var f=0,g=1,h=a<0?1:0;
for(this[b]=255&a;
++f
)this[b+f]=(a/g>>0)-h&255;
return b+c},f.prototype.writeIntBE=
function(a,b,c,d){if(a=+a,b|=0,!d){var e=Math.pow(2,8*c-1);
I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=a<0?1:0;
for(this[b+f]=255&a;
--f>=0&&(g*=256);
)this[b+f]=(a/g>>0)-h&255;
return b+c},f.prototype.writeInt8=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),a<0&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=
function(a,b,c){return a=+a,b|=0,c||I(this,a,b,4,2147483647,-2147483648),a<0&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=
function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=
function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=
function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=
function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=
function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&d
if(0===a.length||0===this.length)return 0;
if(b<0)throw new RangeError("targetStart out of bounds");
if(c<0||c>=this.length)throw new RangeError("sourceStart out of bounds");
if(d<0)throw new RangeError("sourceEnd out of bounds");
d>this.length&&(d=this.length),a.length-b
var e,g=d-c;
if(this===a&&c
e>=0;
e--)a[e+b]=this[e+c];
else if(g<1e3||!f.TYPED_ARRAY_SUPPORT)for(e=0;
e
e++)a[e+b]=this[e+c];
else a._set(this.subarray(c,c+g),b);
return g},f.prototype.fill=
function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),c
if(c!==b&&0!==this.length){if(b<0||b>=this.length)throw new RangeError("start out of bounds");
if(c<0||c>this.length)throw new RangeError("end out of bounds");
var d;
if("number"==typeof a)for(d=b;
d
d++)this[d]=a;
else{var e=R(a.toString()),f=e.length;
for(d=b;
d
d++)this[d]=e[d%f]}return this}},f.prototype.toArrayBuffer=
function(){if("undefined"!=typeof Uint8Array){if(f.TYPED_ARRAY_SUPPORT)return new f(this).buffer;
for(var a=new Uint8Array(this.length),b=0,c=a.length;
b
b+=1)a[b]=this[b];
return a.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};
var _=f.prototype;
f._augment=
function(a){return a.constructor=f,a._isBuffer=!0,a._set=a.set,a.get=_.get,a.set=_.set,a.write=_.write,a.toString=_.toString,a.toLocaleString=_.toString,a.toJSON=_.toJSON,a.equals=_.equals,a.compare=_.compare,a.indexOf=_.indexOf,a.copy=_.copy,a.slice=_.slice,a.readUIntLE=_.readUIntLE,a.readUIntBE=_.readUIntBE,a.readUInt8=_.readUInt8,a.readUInt16LE=_.readUInt16LE,a.readUInt16BE=_.readUInt16BE,a.readUInt32LE=_.readUInt32LE,a.readUInt32BE=_.readUInt32BE,a.readIntLE=_.readIntLE,a.readIntBE=_.readIntBE,a.readInt8=_.readInt8,a.readInt16LE=_.readInt16LE,a.readInt16BE=_.readInt16BE,a.readInt32LE=_.readInt32LE,a.readInt32BE=_.readInt32BE,a.readFloatLE=_.readFloatLE,a.readFloatBE=_.readFloatBE,a.readDoubleLE=_.readDoubleLE,a.readDoubleBE=_.readDoubleBE,a.writeUInt8=_.writeUInt8,a.writeUIntLE=_.writeUIntLE,a.writeUIntBE=_.writeUIntBE,a.writeUInt16LE=_.writeUInt16LE,a.writeUInt16BE=_.writeUInt16BE,a.writeUInt32LE=_.writeUInt32LE,a.writeUInt32BE=_.writeUInt32BE,a.writeIntLE=_.writeIntLE,a.writeIntBE=_.writeIntBE,a.writeInt8=_.writeInt8,a.writeInt16LE=_.writeInt16LE,a.writeInt16BE=_.writeInt16BE,a.writeInt32LE=_.writeInt32LE,a.writeInt32BE=_.writeInt32BE,a.writeFloatLE=_.writeFloatLE,a.writeFloatBE=_.writeFloatBE,a.writeDoubleLE=_.writeDoubleLE,a.writeDoubleBE=_.writeDoubleBE,a.fill=_.fill,a.inspect=_.inspect,a.toArrayBuffer=_.toArrayBuffer,a};
var aa=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{17:17,27:27,7:7}],11:[
function(a,b,c){var d={};
d.parseBuffer=
function(a){return new e(a).parse()},d.addBoxProcessor=
function(a,b){"string"==typeof a&&"
function"==typeof b&&(f.prototype._boxProcessors[a]=b)},d.createFile=
function(){return new e},d.createBox=
function(a,b,c){var d=f.create(a);
return b&&b.append(d,c),d},d.createFullBox=
function(a,b,c){var e=d.createBox(a,b,c);
return e.version=0,e.flags=0,e},d.Utils={},d.Utils.dataViewToString=
function(a,b){var c=b||"utf-8";
if("undefined"!=typeof TextDecoder)return new TextDecoder(c).decode(a);
var d=[],e=0;
if("utf-8"===c)for(;
e
){var f=a.getUint8(e++);
f<128||(f<224?(f=(31&f)<<6,f|=63&a.getUint8(e++)):f<240?(f=(15&f)<<12,f|=(63&a.getUint8(e++))<<6,f|=63&a.getUint8(e++)):(f=(7&f)<<18,f|=(63&a.getUint8(e++))<<12,f|=(63&a.getUint8(e++))<<6,f|=63&a.getUint8(e++))),d.push(String.fromCharCode(f))}else for(;
e
)d.push(String.fromCharCode(a.getUint8(e++)));
return d.join("")},d.Utils.utf8ToByteArray=
function(a){var b,c;
if("undefined"!=typeof TextEncoder)b=(new TextEncoder).encode(a);
else for(b=[],c=0;
c
++c){var d=a.charCodeAt(c);
d<128?b.push(d):d<2048?(b.push(192|d>>6),b.push(128|63&d)):d<65536?(b.push(224|d>>12),b.push(128|63&d>>6),b.push(128|63&d)):(b.push(240|d>>18),b.push(128|63&d>>12),b.push(128|63&d>>6),b.push(128|63&d))}return b},d.Utils.appendBox=
function(a,b,c){if(b._offset=a._cursor.offset,b._root=a._root?a._root:a,b._raw=a._raw,b._parent=a,c!==-1){if(void 0===c||null===c)return void a.boxes.push(b);
var d,e=-1;
if("number"==typeof c)e=c;
else{if("string"==typeof c)d=c;
else{if("object"!=typeof c||!c.type)return void a.boxes.push(b);
d=c.type}for(var f=0;
f
f++)if(d===a.boxes[f].type){e=f+1;
break}}a.boxes.splice(e,0,b)}},"undefined"!=typeof c&&(c.parseBuffer=d.parseBuffer,c.addBoxProcessor=d.addBoxProcessor,c.createFile=d.createFile,c.createBox=d.createBox,c.createFullBox=d.createFullBox,c.Utils=d.Utils),d.Cursor=
function(a){this.offset="undefined"==typeof a?0:a};
var e=
function(a){this._cursor=new d.Cursor,this.boxes=[],a&&(this._raw=new DataView(a))};
e.prototype.fetch=
function(a){var b=this.fetchAll(a,!0);
return b.length?b[0]:null},e.prototype.fetchAll=
function(a,b){var c=[];
return e._sweep.call(this,a,c,b),c},e.prototype.parse=
function(){for(this._cursor.offset=0,this.boxes=[];
this._cursor.offset
){var a=f.parse(this);
if("undefined"==typeof a.type)break;
this.boxes.push(a)}return this},e._sweep=
function(a,b,c){this.type&&this.type==a&&b.push(this);
for(var d in this.boxes){if(b.length&&c)return;
e._sweep.call(this.boxes[d],a,b,c)}},e.prototype.write=
function(){var a,b=0;
for(a=0;
a
a++)b+=this.boxes[a].getLength(!1);
var c=new Uint8Array(b);
for(this._rawo=new DataView(c.buffer),this.bytes=c,this._cursor.offset=0,a=0;
a
a++)this.boxes[a].write();
return c.buffer},e.prototype.append=
function(a,b){d.Utils.appendBox(this,a,b)};
var f=
function(){this._cursor=new d.Cursor};
f.parse=
function(a){var b=new f;
return b._offset=a._cursor.offset,b._root=a._root?a._root:a,b._raw=a._raw,b._parent=a,b._parseBox(),a._cursor.offset=b._raw.byteOffset+b._raw.byteLength,b},f.create=
function(a){var b=new f;
return b.type=a,b.boxes=[],b},f.prototype._boxContainers=["dinf","edts","mdia","meco","mfra","minf","moof","moov","mvex","stbl","strk","traf","trak","tref","udta","vttc","sinf","schi","encv","enca"],f.prototype._boxProcessors={},f.prototype._procField=
function(a,b,c){this._parsing?this[a]=this._readField(b,c):this._writeField(b,c,this[a])},f.prototype._procFieldArray=
function(a,b,c,d){var e;
if(this._parsing)for(this[a]=[],e=0;
e
e++)this[a][e]=this._readField(c,d);
else for(e=0;
e
e++)this._writeField(c,d,this[a][e])},f.prototype._procFullBox=
function(){this._procField("version","uint",8),this._procField("flags","uint",24)},f.prototype._procEntries=
function(a,b,c){var d;
if(this._parsing)for(this[a]=[],d=0;
d
d++)this[a].push({}),c.call(this,this[a][d]);
else for(d=0;
d
d++)c.call(this,this[a][d])},f.prototype._procSubEntries=
function(a,b,c,d){var e;
if(this._parsing)for(a[b]=[],e=0;
e
e++)a[b].push({}),d.call(this,a[b][e]);
else for(e=0;
e
e++)d.call(this,a[b][e])},f.prototype._procEntryField=
function(a,b,c,d){this._parsing?a[b]=this._readField(c,d):this._writeField(c,d,a[b])},f.prototype._procSubBoxes=
function(a,b){var c;
if(this._parsing)for(this[a]=[],c=0;
c
c++)this[a].push(f.parse(this));
else for(c=0;
c
c++)this._rawo?this[a][c].write():this.size+=this[a][c].getLength()},f.prototype._readField=
function(a,b){switch(a){case"uint":return this._readUint(b);
case"int":return this._readInt(b);
case"template":return this._readTemplate(b);
case"string":return b===-1?this._readTerminatedString():this._readString(b);
case"data":return this._readData(b);
case"utf8":return this._readUTF8String();
default:return-1}},f.prototype._readInt=
function(a){var b=null,c=this._cursor.offset-this._raw.byteOffset;
switch(a){case 8:b=this._raw.getInt8(c);
break;
case 16:b=this._raw.getInt16(c);
break;
case 32:b=this._raw.getInt32(c);
break;
case 64:var d=this._raw.getInt32(c),e=this._raw.getInt32(c+4);
b=d*Math.pow(2,32)+e}return this._cursor.offset+=a>>3,b},f.prototype._readUint=
function(a){var b,c,d=null,e=this._cursor.offset-this._raw.byteOffset;
switch(a){case 8:d=this._raw.getUint8(e);
break;
case 16:d=this._raw.getUint16(e);
break;
case 24:b=this._raw.getUint16(e),c=this._raw.getUint8(e+2),d=(b<<8)+c;
break;
case 32:d=this._raw.getUint32(e);
break;
case 64:b=this._raw.getUint32(e),c=this._raw.getUint32(e+4),d=b*Math.pow(2,32)+c}return this._cursor.offset+=a>>3,d},f.prototype._readString=
function(a){for(var b="",c=0;
c
c++){var d=this._readUint(8);
b+=String.fromCharCode(d)}return b},f.prototype._readTemplate=
function(a){var b=this._readUint(a/2),c=this._readUint(a/2);
return b+c/Math.pow(2,a/2)},f.prototype._readTerminatedString=
function(){for(var a="";
this._cursor.offset-this._offset
){var b=this._readUint(8);
if(0===b)break;
a+=String.fromCharCode(b)}return a},f.prototype._readData=
function(a){var b=a>0?a:this._raw.byteLength-(this._cursor.offset-this._offset),c=new DataView(this._raw.buffer,this._cursor.offset,b);
return this._cursor.offset+=b,c},f.prototype._readUTF8String=
function(){var a=this._readData();
return d.Utils.dataViewToString(a)},f.prototype._parseBox=
function(){if(this._parsing=!0,this._cursor.offset=this._offset,this._offset+8>this._raw.buffer.byteLength)return void(this._root._incomplete=!0);
switch(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset,this._raw.byteLength-this._cursor.offset+8);
break;
case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);
break;
default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1?this._parseContainerBox():this._data=this._readData())},f.prototype._parseFullBox=
function(){this.version=this._readUint(8),this.flags=this._readUint(24)},f.prototype._parseContainerBox=
function(){for(this.boxes=[];
this._cursor.offset-this._raw.byteOffset
)this.boxes.push(f.parse(this))},f.prototype.append=
function(a,b){d.Utils.appendBox(this,a,b)},f.prototype.getLength=
function(){if(this._parsing=!1,this._rawo=null,this.size=0,this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1)for(var a=0;
a
a++)this.size+=this.boxes[a].getLength();
return this._data&&this._writeData(this._data),this.size},f.prototype.write=
function(){switch(this._parsing=!1,this._cursor.offset=this._parent._cursor.offset,this.size){case 0:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.parent._rawo.byteLength-this._cursor.offset);
break;
case 1:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.largesize);
break;
default:this._rawo=new DataView(this._parent._rawo.buffer,this._cursor.offset,this.size)}if(this._procField("size","uint",32),this._procField("type","string",4),1===this.size&&this._procField("largesize","uint",64),"uuid"===this.type&&this._procFieldArray("usertype",16,"uint",8),this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1)for(var a=0;
a
a++)this.boxes[a].write();
return this._data&&this._writeData(this._data),this._parent._cursor.offset+=this.size,this.size},f.prototype._writeInt=
function(a,b){if(this._rawo){var c=this._cursor.offset-this._rawo.byteOffset;
switch(a){case 8:this._rawo.setInt8(c,b);
break;
case 16:this._rawo.setInt16(c,b);
break;
case 32:this._rawo.setInt32(c,b);
break;
case 64:var d=Math.floor(b/Math.pow(2,32)),e=b-d*Math.pow(2,32);
this._rawo.setUint32(c,d),this._rawo.setUint32(c+4,e)}this._cursor.offset+=a>>3}else this.size+=a>>3},f.prototype._writeUint=
function(a,b){if(this._rawo){var c,d,e=this._cursor.offset-this._rawo.byteOffset;
switch(a){case 8:this._rawo.setUint8(e,b);
break;
case 16:this._rawo.setUint16(e,b);
break;
case 24:c=(16776960&b)>>8,d=255&b,this._rawo.setUint16(e,c),this._rawo.setUint8(e+2,d);
break;
case 32:this._rawo.setUint32(e,b);
break;
case 64:c=Math.floor(b/Math.pow(2,32)),d=b-c*Math.pow(2,32),this._rawo.setUint32(e,c),this._rawo.setUint32(e+4,d)}this._cursor.offset+=a>>3}else this.size+=a>>3},f.prototype._writeString=
function(a,b){for(var c=0;
c
c++)this._writeUint(8,b.charCodeAt(c))},f.prototype._writeTerminatedString=
function(a){if(0!==a.length){for(var b=0;
b
b++)this._writeUint(8,a.charCodeAt(b));
this._writeUint(8,0)}},f.prototype._writeTemplate=
function(a,b){var c=Math.floor(b),d=(b-c)*Math.pow(2,a/2);
this._writeUint(a/2,c),this._writeUint(a/2,d)},f.prototype._writeData=
function(a){var b;
if(a instanceof Array)if(Uint8Array.from)a=new DataView(Uint8Array.from(a).buffer);
else{var c=new Uint8Array(a.length);
for(b=0;
b
b++)c[b]=a[b];
a=new DataView(c.buffer)}if(a instanceof Uint8Array&&(a=new DataView(a.buffer)),this._rawo){var d=this._cursor.offset-this._rawo.byteOffset;
for(b=0;
b
b++)this._rawo.setUint8(d+b,a.getUint8(b));
this._cursor.offset+=a.byteLength}else this.size+=a.byteLength},f.prototype._writeUTF8String=
function(a){var b=d.Utils.utf8ToByteArray(a);
if(this._rawo)for(var c=new DataView(this._rawo.buffer,this._cursor.offset,b.length),e=0;
e
e++)c.setUint8(e,b[e]);
else this.size+=b.length},f.prototype._writeField=
function(a,b,c){switch(a){case"uint":this._writeUint(b,c);
break;
case"int":this._writeInt(b,c);
break;
case"template":this._writeTemplate(b,c);
break;
case"string":b==-1?this._writeTerminatedString(c):this._writeString(b,c);
break;
case"data":this._writeData(c);
break;
case"utf8":this._writeUTF8String(c)}},f.prototype._boxProcessors.avc1=f.prototype._boxProcessors.encv=
function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procField("pre_defined1","uint",16),this._procField("reserved2","uint",16),this._procFieldArray("pre_defined2",3,"uint",32),this._procField("width","uint",16),this._procField("height","uint",16),this._procField("horizresolution","template",32),this._procField("vertresolution","template",32),this._procField("reserved3","uint",32),this._procField("frame_count","uint",16),this._procFieldArray("compressorname",32,"uint",8),this._procField("depth","uint",16),this._procField("pre_defined3","int",16),this._procField("config","data",-1)},f.prototype._boxProcessors.dref=
function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},f.prototype._boxProcessors.elst=
function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,
function(a){this._procEntryField(a,"segment_duration","uint",1===this.version?64:32),this._procEntryField(a,"media_time","int",1===this.version?64:32),this._procEntryField(a,"media_rate_integer","int",16),this._procEntryField(a,"media_rate_fraction","int",16)})},f.prototype._boxProcessors.emsg=
function(){this._procFullBox(),this._procField("scheme_id_uri","string",-1),this._procField("value","string",-1),this._procField("timescale","uint",32),this._procField("presentation_time_delta","uint",32),this._procField("event_duration","uint",32),this._procField("id","uint",32),this._procField("message_data","data",-1)},f.prototype._boxProcessors.free=f.prototype._boxProcessors.skip=
function(){this._procField("data","data",-1)},f.prototype._boxProcessors.frma=
function(){this._procField("data_format","uint",32)},f.prototype._boxProcessors.ftyp=f.prototype._boxProcessors.styp=
function(){this._procField("major_brand","string",4),this._procField("minor_version","uint",32);
var a=-1;
this._parsing&&(a=(this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset))/4),this._procFieldArray("compatible_brands",a,"string",4)},f.prototype._boxProcessors.hdlr=
function(){this._procFullBox(),this._procField("pre_defined","uint",32),this._procField("handler_type","string",4),this._procFieldArray("reserved",3,"uint",32),this._procField("name","string",-1)},f.prototype._boxProcessors.mdat=
function(){this._procField("data","data",-1)},f.prototype._boxProcessors.mdhd=
function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._parsing||"string"!=typeof this.language||(this.language=this.language.charCodeAt(0)-96<<10|this.language.charCodeAt(1)-96<<5|this.language.charCodeAt(2)-96),this._procField("language","uint",16),this._parsing&&(this.language=String.fromCharCode((this.language>>10&31)+96,(this.language>>5&31)+96,(31&this.language)+96)),this._procField("pre_defined","uint",16);
},f.prototype._boxProcessors.mehd=
function(){this._procFullBox(),this._procField("fragment_duration","uint",1==this.version?64:32)},f.prototype._boxProcessors.mfhd=
function(){this._procFullBox(),this._procField("sequence_number","uint",32)},f.prototype._boxProcessors.mfro=
function(){this._procFullBox(),this._procField("mfra_size","uint",32)},f.prototype._boxProcessors.mp4a=f.prototype._boxProcessors.enca=
function(){this._procFieldArray("reserved1",6,"uint",8),this._procField("data_reference_index","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procField("channelcount","uint",16),this._procField("samplesize","uint",16),this._procField("pre_defined","uint",16),this._procField("reserved3","uint",16),this._procField("samplerate","template",32),this._procField("esds","data",-1)},f.prototype._boxProcessors.mvhd=
function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("timescale","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procField("rate","template",32),this._procField("volume","template",16),this._procField("reserved1","uint",16),this._procFieldArray("reserved2",2,"uint",32),this._procFieldArray("matrix",9,"template",32),this._procFieldArray("pre_defined",6,"uint",32),this._procField("next_track_ID","uint",32)},f.prototype._boxProcessors.payl=
function(){this._procField("cue_text","utf8")},f.prototype._boxProcessors.pssh=
function(){this._procFullBox(),this._procFieldArray("SystemID",16,"uint",8),this._procField("DataSize","uint",32),this._procFieldArray("Data",this.DataSize,"uint",8)},f.prototype._boxProcessors.schm=
function(){this._procFullBox(),this._procField("scheme_type","uint",32),this._procField("scheme_version","uint",32),1&this.flags&&this._procField("scheme_uri","string",-1)},f.prototype._boxProcessors.sdtp=
function(){this._procFullBox();
var a=-1;
this._parsing&&(a=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray("sample_dependency_table",a,"uint",8)},f.prototype._boxProcessors.sidx=
function(){this._procFullBox(),this._procField("reference_ID","uint",32),this._procField("timescale","uint",32),this._procField("earliest_presentation_time","uint",1==this.version?64:32),this._procField("first_offset","uint",1==this.version?64:32),this._procField("reserved","uint",16),this._procField("reference_count","uint",16),this._procEntries("references",this.reference_count,
function(a){this._parsing||(a.reference=(1&a.reference_type)<<31,a.reference|=2147483647&a.referenced_size,a.sap=(1&a.starts_with_SAP)<<31,a.sap|=(3&a.SAP_type)<<28,a.sap|=268435455&a.SAP_delta_time),this._procEntryField(a,"reference","uint",32),this._procEntryField(a,"subsegment_duration","uint",32),this._procEntryField(a,"sap","uint",32),this._parsing&&(a.reference_type=a.reference>>31&1,a.referenced_size=2147483647&a.reference,a.starts_with_SAP=a.sap>>31&1,a.SAP_type=a.sap>>28&7,a.SAP_delta_time=268435455&a.sap)})},f.prototype._boxProcessors.smhd=
function(){this._procFullBox(),this._procField("balance","uint",16),this._procField("reserved","uint",16)},f.prototype._boxProcessors.ssix=
function(){this._procFullBox(),this._procField("subsegment_count","uint",32),this._procEntries("subsegments",this.subsegment_count,
function(a){this._procEntryField(a,"ranges_count","uint",32),this._procSubEntries(a,"ranges",a.ranges_count,
function(a){this._procEntryField(a,"level","uint",8),this._procEntryField(a,"range_size","uint",24)})})},f.prototype._boxProcessors.stsd=
function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procSubBoxes("entries",this.entry_count)},f.prototype._boxProcessors.subs=
function(){this._procFullBox(),this._procField("entry_count","uint",32),this._procEntries("entries",this.entry_count,
function(a){this._procEntryField(a,"sample_delta","uint",32),this._procEntryField(a,"subsample_count","uint",16),this._procSubEntries(a,"subsamples",a.subsample_count,
function(a){this._procEntryField(a,"subsample_size","uint",1===this.version?32:16),this._procEntryField(a,"subsample_priority","uint",8),this._procEntryField(a,"discardable","uint",8),this._procEntryField(a,"codec_specific_parameters","uint",32)})})},f.prototype._boxProcessors.tenc=
function(){this._procFullBox(),this._procField("default_IsEncrypted","uint",24),this._procField("default_IV_size","uint",8),this._procFieldArray("default_KID",16,"uint",8)},f.prototype._boxProcessors.tfdt=
function(){this._procFullBox(),this._procField("baseMediaDecodeTime","uint",1==this.version?64:32)},f.prototype._boxProcessors.tfhd=
function(){this._procFullBox(),this._procField("track_ID","uint",32),1&this.flags&&this._procField("base_data_offset","uint",64),2&this.flags&&this._procField("sample_description_offset","uint",32),8&this.flags&&this._procField("default_sample_duration","uint",32),16&this.flags&&this._procField("default_sample_size","uint",32),32&this.flags&&this._procField("default_sample_flags","uint",32)},f.prototype._boxProcessors.tfra=
function(){this._procFullBox(),this._procField("track_ID","uint",32),this._parsing||(this.reserved=0,this.reserved|=(48&this.length_size_of_traf_num)<<4,this.reserved|=(12&this.length_size_of_trun_num)<<2,this.reserved|=3&this.length_size_of_sample_num),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(48&this.reserved)>>4,this.length_size_of_trun_num=(12&this.reserved)>>2,this.length_size_of_sample_num=3&this.reserved),this._procField("number_of_entry","uint",32),this._procEntries("entries",this.number_of_entry,
function(a){this._procEntryField(a,"time","uint",1===this.version?64:32),this._procEntryField(a,"moof_offset","uint",1===this.version?64:32),this._procEntryField(a,"traf_number","uint",8*(this.length_size_of_traf_num+1)),this._procEntryField(a,"trun_number","uint",8*(this.length_size_of_trun_num+1)),this._procEntryField(a,"sample_number","uint",8*(this.length_size_of_sample_num+1))})},f.prototype._boxProcessors.tkhd=
function(){this._procFullBox(),this._procField("creation_time","uint",1==this.version?64:32),this._procField("modification_time","uint",1==this.version?64:32),this._procField("track_ID","uint",32),this._procField("reserved1","uint",32),this._procField("duration","uint",1==this.version?64:32),this._procFieldArray("reserved2",2,"uint",32),this._procField("layer","uint",16),this._procField("alternate_group","uint",16),this._procField("volume","template",16),this._procField("reserved3","uint",16),this._procFieldArray("matrix",9,"template",32),this._procField("width","template",32),this._procField("height","template",32)},f.prototype._boxProcessors.trex=
function(){this._procFullBox(),this._procField("track_ID","uint",32),this._procField("default_sample_description_index","uint",32),this._procField("default_sample_duration","uint",32),this._procField("default_sample_size","uint",32),this._procField("default_sample_flags","uint",32)},f.prototype._boxProcessors.trun=
function(){this._procFullBox(),this._procField("sample_count","uint",32),1&this.flags&&this._procField("data_offset","int",32),4&this.flags&&this._procField("first_sample_flags","uint",32),this._procEntries("samples",this.sample_count,
function(a){256&this.flags&&this._procEntryField(a,"sample_duration","uint",32),512&this.flags&&this._procEntryField(a,"sample_size","uint",32),1024&this.flags&&this._procEntryField(a,"sample_flags","uint",32),2048&this.flags&&this._procEntryField(a,"sample_composition_time_offset",1===this.version?"int":"uint",32)})},f.prototype._boxProcessors["url "]=f.prototype._boxProcessors["urn "]=
function(){this._procFullBox(),"urn "===this.type&&this._procField("name","string",-1),this._procField("location","string",-1)},f.prototype._boxProcessors.vlab=
function(){this._procField("source_label","utf8")},f.prototype._boxProcessors.vmhd=
function(){this._procFullBox(),this._procField("graphicsmode","uint",16),this._procFieldArray("opcolor",3,"uint",16)},f.prototype._boxProcessors.vttC=
function(){this._procField("config","utf8")},f.prototype._boxProcessors.vtte=
function(){}},{}],12:[
function(a,b,c){(
function(a){
function b(a){return Array.isArray?Array.isArray(a):"[object Array]"===q(a)}
function d(a){return"boolean"==typeof a}
function e(a){return null===a}
function f(a){return null==a}
function g(a){return"number"==typeof a}
function h(a){return"string"==typeof a}
function i(a){return"symbol"==typeof a}
function j(a){return void 0===a}
function k(a){return"[object RegExp]"===q(a)}
function l(a){return"object"==typeof a&&null!==a}
function m(a){return"[object Date]"===q(a)}
function n(a){return"[object Error]"===q(a)||a instanceof Error}
function o(a){return"
function"==typeof a}
function p(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}
function q(a){return Object.prototype.toString.call(a)}c.isArray=b,c.isBoolean=d,c.isNull=e,c.isNullOrUndefined=f,c.isNumber=g,c.isString=h,c.isSymbol=i,c.isUndefined=j,c.isRegExp=k,c.isObject=l,c.isDate=m,c.isError=n,c.isFunction=o,c.isPrimitive=p,c.isBuffer=a.isBuffer}).call(this,{isBuffer:a(26)})},{26:26}],13:[
function(a,b,c){
function d(a){return null===a||void 0===a}
function e(a){return!(!a||"object"!=typeof a||"number"!=typeof a.length)&&("
function"==typeof a.copy&&"
function"==typeof a.slice&&!(a.length>0&&"number"!=typeof a[0]))}
function f(a,b,c){var f,k;
if(d(a)||d(b))return!1;
if(a.prototype!==b.prototype)return!1;
if(i(a))return!!i(b)&&(a=g.call(a),b=g.call(b),j(a,b,c));
if(e(a)){if(!e(b))return!1;
if(a.length!==b.length)return!1;
for(f=0;
f
f++)if(a[f]!==b[f])return!1;
return!0}try{var l=h(a),m=h(b)}catch(a){return!1}if(l.length!=m.length)return!1;
for(l.sort(),m.sort(),f=l.length-1;
f>=0;
f--)if(l[f]!=m[f])return!1;
for(f=l.length-1;
f>=0;
f--)if(k=l[f],!j(a[k],b[k],c))return!1;
return typeof a==typeof b}var g=Array.prototype.slice,h=a(15),i=a(14),j=b.exports=
function(a,b,c){return c||(c={}),a===b||(a instanceof Date&&b instanceof Date?a.getTime()===b.getTime():!a||!b||"object"!=typeof a&&"object"!=typeof b?c.strict?a===b:a==b:f(a,b,c))}},{14:14,15:15}],14:[
function(a,b,c){
function d(a){return"[object Arguments]"==Object.prototype.toString.call(a)}
function e(a){return a&&"object"==typeof a&&"number"==typeof a.length&&Object.prototype.hasOwnProperty.call(a,"callee")&&!Object.prototype.propertyIsEnumerable.call(a,"callee")||!1}var f="[object Arguments]"==
function(){return Object.prototype.toString.call(arguments)}();
c=b.exports=f?d:e,c.supported=d,c.unsupported=e},{}],15:[
function(a,b,c){
function d(a){var b=[];
for(var c in a)b.push(c);
return b}c=b.exports="
function"==typeof Object.keys?Object.keys:d,c.shim=d},{}],16:[
function(a,b,c){
function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}
function e(a){return"
function"==typeof a}
function f(a){return"number"==typeof a}
function g(a){return"object"==typeof a&&null!==a}
function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=
function(a){if(!f(a)||a<0||isNaN(a))throw TypeError("n must be a positive number");
return this._maxListeners=a,this},d.prototype.emit=
function(a){var b,c,d,f,i,j;
if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;
throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;
if(e(c))switch(arguments.length){case 1:c.call(this);
break;
case 2:c.call(this,arguments[1]);
break;
case 3:c.call(this,arguments[1],arguments[2]);
break;
default:for(d=arguments.length,f=new Array(d-1),i=1;
i
i++)f[i-1]=arguments[i];
c.apply(this,f)}else if(g(c)){for(d=arguments.length,f=new Array(d-1),i=1;
i
i++)f[i-1]=arguments[i];
for(j=c.slice(),d=j.length,i=0;
i
i++)j[i].apply(this,f)}return!0},d.prototype.addListener=
function(a,b){var c;
if(!e(b))throw TypeError("listener must be a
function");
if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned){var c;
c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"
function"==typeof console.trace&&console.trace())}return this},d.prototype.on=d.prototype.addListener,d.prototype.once=
function(a,b){
function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a
function");
var d=!1;
return c.listener=b,this.on(a,c),this},d.prototype.removeListener=
function(a,b){var c,d,f,h;
if(!e(b))throw TypeError("listener must be a
function");
if(!this._events||!this._events[a])return this;
if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);
else if(g(c)){for(h=f;
h-- >0;
)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;
break}if(d<0)return this;
1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=
function(a){var b,c;
if(!this._events)return this;
if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;
if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);
return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);
else for(;
c.length;
)this.removeListener(a,c[c.length-1]);
return delete this._events[a],this},d.prototype.listeners=
function(a){var b;
return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.listenerCount=
function(a,b){var c;
return c=a._events&&a._events[b]?e(a._events[b])?1:a._events[b].length:0}},{}],17:[
function(a,b,c){c.read=
function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];
for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;
k>0;
f=256*f+a[b+l],l+=m,k-=8);
for(g=f&(1<<-k)-1,f>>=-k,k+=d;
k>0;
g=256*g+a[b+l],l+=m,k-=8);
if(0===f)f=1-j;
else{if(f===i)return g?NaN:(n?-1:1)*(1/0);
g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=
function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=b<0||0===b&&1/b<0?1:0;
for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));
e>=8;
a[c+n]=255&h,n+=o,h/=256,e-=8);
for(g=g<
j>0;
a[c+n]=255&g,n+=o,g/=256,j-=8);
a[c+n-o]|=128*p}},{}],18:[
function(a,b,c){!
function(a,b,c,d,e){
function f(a){this.node=a}
function g(){this.events=[],this.head=null,this.body=null}
function h(){this.styling=null,this.layout=null}
function i(){this.styles={}}
function j(){this.id=null,this.styleAttrs=null,this.styleRefs=null}
function k(){this.regions={}}
function l(a){this.kind=a,this.begin=null,this.end=null,this.styleAttrs=null,this.regionID=null,this.sets=null,this.timeContainer=null}
function m(){l.call(this,"body")}
function n(){l.call(this,"div")}
function o(){l.call(this,"p")}
function p(){l.call(this,"span"),this.space=null}
function q(){l.call(this,"span"),this.space=null,this.text=null}
function r(){l.call(this,"br")}
function s(){this.id=null,this.begin=null,this.end=null,this.styleAttrs=null,this.sets=null}
function t(){this.begin=null,this.end=null,this.qname=null,this.value=null}
function u(a){return a&&"xml:id"in a.attributes?a.attributes["xml:id"].value||null:null}
function v(a){return a&&"region"in a.attributes?a.attributes.region.value:""}
function w(a,b){var c=a&&"timeContainer"in a.attributes?a.attributes.timeContainer.value:null;
return c&&"par"!==c?"seq"===c?"seq":(K(b,"Illegal value of timeContainer (assuming 'par')"),"par"):"par"}
function x(a){return a&&"style"in a.attributes?a.attributes.style.value.split(" "):[]}
function y(a,b){var c={};
if(null!==a)for(var e in a.attributes){var f=a.attributes[e].uri+" "+a.attributes[e].local,g=d.byQName[f];
if(void 0!==g){var h=g.parse(a.attributes[e].value);
null!==h?(c[f]=h,g===d.byName.zIndex&&J(b,"zIndex attribute present but not used by IMSC1 since regions do not overlap")):K(b,"Cannot parse styling attribute "+f+" --> "+a.attributes[e].value)}}return c}
function z(a,b,c){for(var d in a.attributes)if(a.attributes[d].uri===b&&a.attributes[d].local===c)return a.attributes[d].value;
return null}
function A(a,b){var d=z(a,c.ns_ittp,"aspectRatio"),e=null;
if(null!==d){var f=/(\d+) (\d+)/,g=f.exec(d);
if(null!==g){var h=parseInt(g[1]),i=parseInt(g[2]);
0!==h&&0!==i?e=h/i:K(b,"Illegal aspectRatio values (ignoring)")}else K(b,"Malformed aspectRatio attribute (ignoring)")}return e}
function B(a,b){var d=z(a,c.ns_ttp,"cellResolution"),e=15,f=32;
if(null!==d){var g=/(\d+) (\d+)/,h=g.exec(d);
null!==h?(f=parseInt(h[1]),e=parseInt(h[2])):J(b,"Malformed cellResolution value (using initial value instead)")}return{w:f,h:e}}
function C(a,b){var d,e=z(a,c.ns_ttp,"frameRate"),f=30;
if(null!==e){var g=/(\d+)/;
d=g.exec(e),null!==d?f=parseInt(d[1]):J(b,"Malformed frame rate attribute (using initial value instead)")}var h=z(a,c.ns_ttp,"frameRateMultiplier"),i=1;
if(null!==h){var j=/(\d+) (\d+)/;
d=j.exec(h),null!==d?i=parseInt(d[1])/parseInt(d[2]):J(b,"Malformed frame rate multiplier attribute (using initial value instead)")}var k=i*f,l=1,m=z(a,c.ns_ttp,"tickRate");
if(null===m)null!==e&&(l=k);
else{var n=/(\d+)/;
d=n.exec(m),null!==d?l=parseInt(d[1]):J(b,"Malformed tick rate attribute (using initial value instead)")}return{effectiveFrameRate:k,tickRate:l}}
function D(a,b){var d=z(a,c.ns_tts,"extent");
if(null===d)return null;
var f=d.split(" ");
if(2!==f.length)return J(b,"Malformed extent (ignoring)"),null;
var g=e.parseLength(f[0]),h=e.parseLength(f[1]);
return h&&g?{h:h,w:g}:(J(b,"Malformed extent values (ignoring)"),null)}
function E(a,b,c){var d,e=/^(\d{2,}):(\d\d):(\d\d(?:\.\d+)?)$/,f=/^(\d{2,}):(\d\d):(\d\d)\:(\d{2,})$/,g=/^(\d+(?:\.\d+)?)f$/,h=/^(\d+(?:\.\d+)?)t$/,i=/^(\d+(?:\.\d+)?)ms$/,j=/^(\d+(?:\.\d+)?)s$/,k=/^(\d+(?:\.\d+)?)h$/,l=/^(\d+(?:\.\d+)?)m$/,m=null;
return null!==(d=g.exec(c))?null!==b&&(m=parseFloat(d[1])/b):null!==(d=h.exec(c))?null!==a&&(m=parseFloat(d[1])/a):null!==(d=i.exec(c))?m=parseFloat(d[1])/1e3:null!==(d=j.exec(c))?m=parseFloat(d[1]):null!==(d=k.exec(c))?m=3600*parseFloat(d[1]):null!==(d=l.exec(c))?m=60*parseFloat(d[1]):null!==(d=e.exec(c))?m=3600*parseInt(d[1])+60*parseInt(d[2])+parseFloat(d[3]):null!==(d=f.exec(c))&&null!==b&&(m=3600*parseInt(d[1])+60*parseInt(d[2])+parseInt(d[3])+(null===d[4]?0:parseInt(d[4])/b)),m}
function F(a,b,c,d){var e=b&&"seq"===b.timeContainer,f=0;
c&&"begin"in c.attributes&&(f=E(a.tickRate,a.effectiveFrameRate,c.attributes.begin.value),null===f&&(J(d,"Malformed begin value "+c.attributes.begin.value+" (using 0)"),f=0));
var g=e?0:null;
c&&"dur"in c.attributes&&(g=E(a.tickRate,a.effectiveFrameRate,c.attributes.dur.value),null===g&&J(d,"Malformed dur value "+c.attributes.dur.value+" (ignoring)"));
var h=null;
c&&"end"in c.attributes&&(h=E(a.tickRate,a.effectiveFrameRate,c.attributes.end.value),null===h&&J(d,"Malformed end value (ignoring)"));
var i=0;
if(b&&(i=e&&"contents"in b&&b.contents.length>0?b.contents[b.contents.length-1].end:b.begin||0),f+=i,null!==g)h=f+g;
else{var j=b&&"end"in b?b.end:Number.POSITIVE_INFINITY;
h=null!==h?h+i:j}return{begin:f,end:h}}
function G(a,b,c){for(;
b.styleRefs.length>0;
){var d=b.styleRefs.pop();
d in a.styles?(G(a,a.styles[d],c),I(a.styles[d].styleAttrs,b.styleAttrs)):K(c,"Non-existant style id referenced")}}
function H(a,b,c,d){for(var e=b.length-1;
e>=0;
e--){var f=b[e];
f in a.styles?I(a.styles[f].styleAttrs,c):K(d,"Non-existant style id referenced")}}
function I(a,b){for(var c in a)c in b||(b[c]=a[c])}
function J(a,b){if(a&&a.warn&&a.warn(b))throw b}
function K(a,b){if(a&&a.error&&a.error(b))throw b}
function L(a,b){throw a&&a.fatal&&a.fatal(b),b}
function M(a,b){for(var c,d=0,e=a.length-1;
d<=e;
){c=Math.floor((d+e)/2);
var f=a[c];
if(f
else{if(!(f>b))return{found:!0,index:c};
e=c-1}}return{found:!1,index:d}}a.fromXML=
function(a,d,e){var l=b.parser(!0,{xmlns:!0}),u=[],v=[],w=[],x=0,y=null;
l.onclosetag=
function(a){if(u[0]instanceof i)for(var b in u[0].styles)G(u[0],u[0].styles[b],d);
else if(u[0]instanceof o||u[0]instanceof p){if(u[0].contents.length>1){var g,h=[u[0].contents[0]];
for(g=1;
g
g++)u[0].contents[g]instanceof q&&h[h.length-1]instanceof q?h[h.length-1].text+=u[0].contents[g].text:h.push(u[0].contents[g]);
u[0].contents=h}u[0]instanceof p&&1===u[0].contents.length&&u[0].contents[0]instanceof q&&null===u[0].text&&(u[0].text=u[0].contents[0].text,delete u[0].contents)}else u[0]instanceof f&&(u[0].node.uri===c.ns_tt&&"metadata"===u[0].node.local?x--:x>0&&e&&"onCloseTag"in e&&e.onCloseTag());
w.shift(),v.shift(),u.shift()},l.ontext=
function(a){if(void 0===u[0]);
else if(u[0]instanceof p||u[0]instanceof o){var b=new q;
b.initFromText(y,u[0],a,w[0],d),u[0].contents.push(b)}else u[0]instanceof f&&x>0&&e&&"onText"in e&&e.onText(a)},l.onopentag=
function(a){var b=a.attributes["xml:space"];
b?w.unshift(b.value):0===w.length?w.unshift("default"):w.unshift(w[0]);
var l=a.attributes["xml:lang"];
if(l?v.unshift(l.value):0===v.length?v.unshift(""):v.unshift(v[0]),a.uri===c.ns_tt)if("tt"===a.local)null!==y&&L("Two elements at ("+this.line+","+this.column+")"),y=new g,y.initFromNode(a,d),u.unshift(y);
else if("head"===a.local)u[0]instanceof g||L("Parent of element is not at ("+this.line+","+this.column+")"),null!==y.head&&L("Second element at ("+this.line+","+this.column+")"),y.head=new h,u.unshift(y.head);
else if("styling"===a.local)u[0]instanceof h||L("Parent of element is not at ("+this.line+","+this.column+")"),null!==y.head.styling&&L("Second element at ("+this.line+","+this.column+")"),y.head.styling=new i,u.unshift(y.head.styling);
else if("style"===a.local){var q;
u[0]instanceof i?(q=new j,q.initFromNode(a,d),q.id?y.head.styling.styles[q.id]=q:K("