(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{813:function(t,e){var r=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();function n(t,e){this.name="ParsingError",this.code=t.code,this.message=e||t.message}function o(input){function t(t,e,s,r){return 3600*(0|t)+60*(0|e)+(0|s)+(0|r)/1e3}var e=input.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):e[1]>59?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function l(){this.values=r(null)}function h(input,t,e,r){var n=r?input.split(r):[input];for(var i in n)if("string"==typeof n[i]){var o=n[i].split(e);if(2===o.length)t(o[0],o[1])}}function c(input,t,e){var r=input;function c(){var t=o(input);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+r);return input=input.replace(/^[^\sa-zA-Z-]+/,""),t}function f(){input=input.replace(/^\s+/,"")}if(f(),t.startTime=c(),f(),"--\x3e"!==input.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);input=input.substr(3),f(),t.endTime=c(),f(),function(input,t){var r=new l;h(input,function(t,n){switch(t){case"region":for(var i=e.length-1;i>=0;i--)if(e[i].id===n){r.set(t,e[i].region);break}break;case"vertical":r.alt(t,n,["rl","lr"]);break;case"line":var o=n.split(","),l=o[0];r.integer(t,l),r.percent(t,l)&&r.set("snapToLines",!1),r.alt(t,l,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=n.split(","),r.percent(t,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":r.percent(t,n);break;case"align":r.alt(t,n,["start","middle","end","left","right"])}},/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical",""),t.line=r.get("line","auto"),t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align","middle"),t.position=r.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=r.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}(input,t)}n.prototype=r(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},l.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,r){return r?this.has(t)?this.values[t]:e[r]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,a){for(var r=0;r=0&&e<=100)&&(this.set(t,e),!0)}};var f={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},m={v:"title",lang:"lang"},v={rt:"ruby"};function y(t,input){function e(){if(!input)return null;var t,e=input.match(/^([^<]*)(<[^>]*>?)?/);return t=e[1]?e[1]:e[2],input=input.substr(t.length),t}function r(t){return f[t]}function n(s){for(;S=s.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)s=s.replace(S[0],r);return s}function l(t,element){return!v[element.localName]||v[element.localName]===t.localName}function h(e,r){var n=d[e];if(!n)return null;var element=t.document.createElement(n);element.localName=n;var o=m[e];return o&&r&&(element[o]=r.trim()),element}for(var c,y=t.document.createElement("div"),w=y,T=[];null!==(c=e());)if("<"!==c[0])w.appendChild(t.document.createTextNode(n(c)));else{if("/"===c[1]){T.length&&T[T.length-1]===c.substr(2).replace(">","")&&(T.pop(),w=w.parentNode);continue}var x,E=o(c.substr(1,c.length-2));if(E){x=t.document.createProcessingInstruction("timestamp",E),w.appendChild(x);continue}var S=c.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!S)continue;if(!(x=h(S[1],S[3])))continue;if(!l(w,x))continue;S[2]&&(x.className=S[2].substr(1).replace("."," ")),T.push(S[1]),w.appendChild(x),w=x}return y}var w=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function T(t){for(var i=0;i=e[0]&&t<=e[1])return!0}return!1}function x(){}function E(t,e,r){var n=/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",l="rgba(0, 0, 0, 0.8)";n&&(o="rgb(255, 255, 255)",l="rgb(0, 0, 0)"),x.call(this),this.cue=e,this.cueDiv=y(t,e.text);var h={color:o,backgroundColor:l,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};n||(h.writingMode=""===e.vertical?"horizontal-tb":"lr"===e.vertical?"vertical-lr":"vertical-rl",h.unicodeBidi="plaintext"),this.applyStyles(h,this.cueDiv),this.div=t.document.createElement("div"),h={textAlign:"middle"===e.align?"center":e.align,font:r.font,whiteSpace:"pre-line",position:"absolute"},n||(h.direction=function(t){var e=[],text="";if(!t||!t.childNodes)return"ltr";function r(t,e){for(var i=e.childNodes.length-1;i>=0;i--)t.push(e.childNodes[i])}function n(t){if(!t||!t.length)return null;var e=t.pop(),text=e.textContent||e.innerText;if(text){var o=text.match(/^.*(\n|\r)/);return o?(t.length=0,o[0]):text}return"ruby"===e.tagName?n(t):e.childNodes?(r(t,e),n(t)):void 0}for(r(e,t);text=n(e);)for(var i=0;i=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var track=t.track,e=track.textTrackList,r=0,i=0;iv&&(m=m<0?-1:1,m*=Math.ceil(v/d)*d),h<0&&(m+=""===l.vertical?r.height:r.width,c=c.reverse()),o.move(y,m)}else{var w=o.lineHeight/r.height*100;switch(l.lineAlign){case"middle":h-=w/2;break;case"end":h-=w}switch(l.vertical){case"":e.applyStyles({top:e.formatStyle(h,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(h,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(h,"%")})}c=["+y","-x","+x","-y"],o=new S(e)}var T=function(b,t){for(var e,o=new S(b),l=1,i=0;ip&&(e=new S(b),l=p),b=new S(o)}return e||o}(o,c);e.move(T.toCSSCompatValues(r))}function C(){}x.prototype.applyStyles=function(t,div){for(var e in div=div||this.div,t)t.hasOwnProperty(e)&&(div.style[e]=t[e])},x.prototype.formatStyle=function(t,e){return 0===t?0:t+e},E.prototype=r(x.prototype),E.prototype.constructor=E,S.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},S.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},S.prototype.overlapsAny=function(t){for(var i=0;i=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},S.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},S.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},S.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},S.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,r=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,n=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return{left:(t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t).left,right:t.right,top:t.top||n,height:t.height||e,bottom:t.bottom||n+(t.height||e),width:t.width||r}},C.StringDecoder=function(){return{decode:function(data){if(!data)return"";if("string"!=typeof data)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(data))}}},C.convertCueToDOMTree=function(t,e){return t&&e?y(t,e):null};C.processCues=function(t,e,r){if(!t||!e||!r)return null;for(;r.firstChild;)r.removeChild(r.firstChild);var n=t.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",r.appendChild(n),function(t){for(var i=0;i