chunk-87c37bec.aba32607.js 646 KB

1234567
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-87c37bec"],{"0465":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"0538":function(e,t,n){"use strict";var i=n("1c0b"),r=n("861d"),a=[].slice,s={};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),o=function(){var i=n.concat(a.call(arguments));if(this instanceof o){var r=t,u=i.length,l=i;if(!(u in s)){for(var c=[],d=0;d<u;d++)c[d]="a["+d+"]";s[u]=Function("C,a","return new C("+c.join(",")+")")}return s[u](r,l)}return t.apply(e,i)};return r(t.prototype)&&(o.prototype=t.prototype),o}},"0d86":function(e,t,n){e.exports=n.p+"static/img/meting_icon.a9d1d88c.svg"},"0e29":function(e,t,n){"use strict";n("d270")},1:function(e,t){},"12e7":function(e,t,n){"use strict";n("0465")},"139b":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},1703:function(e,t,n){},"17a3":function(e,t,n){"use strict";n.d(t,"i",(function(){return o})),n.d(t,"h",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m}));t=n("be09");var i=n.n(t),r={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},a=["video","audio","text"],s=["Video","Audio","Text"],o=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)}))},u=function(e){e=(e=void 0===e?"":e).split(",");var t=[];return e.forEach((function(e){var n;e=e.trim(),a.forEach((function(i){var a,s=r[i].exec(e.toLowerCase());!s||s.length<=1||(n=i,s=e.substring(0,s[1].length),a=e.replace(s,""),t.push({type:s,details:a,mediaType:i}))})),n||t.push({type:e,details:"",mediaType:"unknown"})})),t},l=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n,i=e.mediaGroups.AUDIO[t];if(!i)return null;for(n in i){var r=i[n];if(r.default&&r.playlists)return u(r.playlists[0].attributes.CODECS)}return null},c=function(e){return r.audio.test((e=void 0===e?"":e).trim().toLowerCase())},d=function(e){var t,n,i;if(e&&"string"==typeof e)return t=e.toLowerCase().split(",").map((function(e){return o(e.trim())})),n="video",1===t.length&&c(t[0])?n="audio":1===t.length&&(i=t[0],r.text.test((i=void 0===i?"":i).trim().toLowerCase()))&&(n="application"),i="mp4",t.every((function(e){return r.mp4.test(e)}))?i="mp4":t.every((function(e){return r.webm.test(e)}))?i="webm":t.every((function(e){return r.ogg.test(e)}))&&(i="ogg"),n+"/"+i+';codecs="'+e+'"'},h=function(e){return void 0===e&&(e=""),i.a.MediaSource&&i.a.MediaSource.isTypeSupported&&i.a.MediaSource.isTypeSupported(d(e))||!1},p=function(e){return(e=void 0===e?"":e).toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<s.length;t++)if(r["muxer"+s[t]].test(e))return!0;return!1}))},f="mp4a.40.2",m="avc1.4d400d"},"1a23":function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));t=n("c199");var i=n("7a23"),r=n("fe7e"),a=n("f691"),s=n("8405"),o=n("f465"),u=n("543e");const[l,c]=Object(r.a)("switch");n={size:a.f,loading:Boolean,disabled:Boolean,modelValue:a.h,activeColor:String,inactiveColor:String,activeValue:{type:a.h,default:!0},inactiveValue:{type:a.h,default:!1}},r=Object(i.defineComponent)({name:l,props:n,emits:["change","update:modelValue"],setup(e,{emit:t}){const n=()=>e.modelValue===e.activeValue,r=()=>{var i;e.disabled||e.loading||(i=n()?e.inactiveValue:e.activeValue,t("update:modelValue",i),t("change",i))};return Object(o.h)(()=>e.modelValue),()=>{var{size:t,loading:a,disabled:o,activeColor:l,inactiveColor:d}=e,h=n(),t={fontSize:Object(s.b)(t),backgroundColor:h?l:d};return Object(i.createVNode)("div",{role:"switch",class:c({on:h,loading:a,disabled:o}),style:t,tabindex:o?void 0:0,"aria-checked":h,onClick:r},[Object(i.createVNode)("div",{class:c("node")},[(()=>{var t;if(e.loading)return t=n()?e.activeColor:e.inactiveColor,Object(i.createVNode)(u.a,{class:c("loading"),color:t},null)})()])])}}});const d=Object(t.a)(r);var h=d},"210b":function(e,t,n){var i=n("e1c8");t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n("b074").DOMParser},2241:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=n("75e6").a},2997:function(e,t,n){"use strict";n("9a42")},"2b8c":function(e,t,n){var i=n("be09"),r=(e=e.exports={WebVTT:n("d02c"),VTTCue:n("b03c"),VTTRegion:n("f97d")},i.vttjs=e,i.WebVTT=e.WebVTT,e.VTTCue),a=e.VTTRegion,s=i.VTTCue,o=i.VTTRegion;e.shim=function(){i.VTTCue=r,i.VTTRegion=a},e.restore=function(){i.VTTCue=s,i.VTTRegion=o},i.VTTCue||e.shim()},"2fcb":function(e,t,n){},"321f":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("de66"),r=Object(i.k)([73,68,51]),a=function e(t,n){return void 0===n&&(n=0),(t=Object(i.k)(t)).length-n<10||!Object(i.a)(t,r,{offset:n})?n:e(t,n+=(t=t,void 0===(a=n)&&(a=0),s=(t=Object(i.k)(t))[a+5],t=t[a+6]<<21|t[a+7]<<14|t[a+8]<<7|t[a+9],(16&s)>>4?20+t:10+t));var a,s}},3410:function(e,t,n){var i=n("23e7"),r=n("d039"),a=n("7b0b"),s=n("e163");n=n("e177");i({target:"Object",stat:!0,forced:r((function(){s(1)})),sham:!n},{getPrototypeOf:function(e){return s(a(e))}})},3603:function(e,t,n){"use strict";for(var i=n("be09"),r=n("a559"),a=n("8362"),s=(d.httpHandler=n("8c00"),function(e){var t={};return e&&e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase();e=e.slice(n+1).trim();void 0===t[i]?t[i]=e:Array.isArray(t[i])?t[i].push(e):t[i]=[t[i],e]})),t}),o=(e.exports=d,(e.exports.default=d).XMLHttpRequest=i.XMLHttpRequest||function(){},d.XDomainRequest="withCredentials"in new d.XMLHttpRequest?d.XMLHttpRequest:i.XDomainRequest,["get","put","post","patch","head","delete"]),u=function(e){d["delete"===e?"del":e]=function(t,n,i){return(n=c(t,n,i)).method=e.toUpperCase(),h(n)}},l=0;l<o.length;l++)u(o[l]);function c(e,t,n){var i=e;return a(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=r({},t,{uri:e}),i.callback=n,i}function d(e,t,n){return h(t=c(e,t,n))}function h(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){var e=void 0;e=c.response||c.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(c);if(v)try{e=JSON.parse(e)}catch(e){}return e}function r(e){return clearTimeout(l),(e=e instanceof Error?e:new Error(""+(e||"Unknown XMLHttpRequest Error"))).statusCode=0,n(e,y)}function a(){var t,r,a;if(!u)return clearTimeout(l),t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status,r=y,a=null,0!==t?(r={body:i(),statusCode:t,method:p,headers:{},url:h,rawRequest:c},c.getAllResponseHeaders&&(r.headers=s(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}var o,u,l,c=e.xhr||null,h=(c=c||new(e.cors||e.useXDR?d.XDomainRequest:d.XMLHttpRequest)).url=e.uri||e.url,p=c.method=e.method||"GET",f=e.body||e.data,m=c.headers=e.headers||{},g=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:c};if("json"in e&&!1!==e.json&&(v=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),f=JSON.stringify(!0===e.json?f:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=r,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=r,c.open(p,h,!g,e.username,e.password),g||(c.withCredentials=!!e.withCredentials),!g&&0<e.timeout&&(l=setTimeout((function(){var e;u||(u=!0,c.abort("timeout"),(e=new Error("XMLHttpRequest timeout")).code="ETIMEDOUT",r(e))}),e.timeout)),c.setRequestHeader)for(o in m)m.hasOwnProperty(o)&&c.setRequestHeader(o,m[o]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return;return 1}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(c.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(c),c.send(f||null),c}},"36c6":function(e,t){var n=function(e){return 9e4*e},i=function(e,t){return e*t},r=function(e){return e/9e4},a=function(e,t){return e/t};e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n,secondsToAudioTs:i,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:function(e,t){return e/t*9e4},videoTsToAudioTs:function(e,t){return e/9e4*t},metadataTsToSeconds:function(e,t,n){return r(n?e:e-t)}}},"36c6e":function(e,t,n){function i(t){return e.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(t)}n("3410"),e.exports=i},"3c96":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},4003:function(e,t,n){},4878:function(e,t,n){"use strict";n("d0a3")},"49e4":function(e,t,n){},"4a4b":function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,i)}e.exports=n},"4ae1":function(e,t,n){var i=n("23e7"),r=n("d066"),a=n("1c0b"),s=n("825a"),o=n("861d"),u=n("7c73"),l=n("0538"),c=(n=n("d039"),r("Reflect","construct")),d=n((function(){function e(){}return!(c((function(){}),[],e)instanceof e)})),h=!n((function(){c((function(){}))}));r=d||h;i({target:"Reflect",stat:!0,forced:r,sham:r},{construct:function(e,t){a(e),s(t);var n=arguments.length<3?e:a(arguments[2]);if(h&&!d)return c(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(l.apply(e,i))}return i=n.prototype,n=u(o(i)?i:Object.prototype),i=Function.apply.call(e,n,t),o(i)?i:n}})},"4dd7":function(e,t,n){"use strict";n("aff7")},"4ec9":function(e,t,n){"use strict";var i=n("6d61");n=n("6566");e.exports=i("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n)},"55b5":function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){function i(e){return function(t){return t=String(r(t)),1&e&&(t=t.replace(a,"")),2&e?t.replace(s,""):t}}var r=n("1d80"),a=(n="["+n("5899")+"]",RegExp("^"+n+n+"*")),s=RegExp(n+n+"*$");e.exports={start:i(1),end:i(2),trim:i(3)}},"63ec":function(e,t,n){"use strict";var i=n("d136"),r=n.n(i),a=(i=n("be09"),n.n(i)),s="http://example.com";t.a=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=a.a.location&&a.a.location.href||"");var n="function"==typeof a.a.URL,i=/^\/\//.test(e),o=!a.a.location&&!/\/\//i.test(e);return n?e=new a.a.URL(e,a.a.location||s):/\/\//i.test(e)||(e=r.a.buildAbsoluteURL(a.a.location&&a.a.location.href||"",e)),n?(n=new URL(t,e),o?n.href.slice(s.length):i?n.href.slice(n.protocol.length):n.href):r.a.buildAbsoluteURL(e,t)}},6566:function(e,t,n){"use strict";var i=n("9bf2").f,r=n("7c73"),a=n("e2cc"),s=n("0366"),o=n("19aa"),u=n("2266"),l=n("7dd0"),c=n("2626"),d=n("83ab"),h=n("f183").fastKey,p=(n=n("69f3"),n.set),f=n.getterFor;e.exports={getConstructor:function(e,t,n,l){function c(e,t,n){var i,r=v(e),a=m(e,t);return a?a.value=n:(r.last=a={index:i=h(t,!0),key:t,value:n,previous:t=r.last,next:void 0,removed:!1},r.first||(r.first=a),t&&(t.next=a),d?r.size++:e.size++,"F"!==i&&(r.index[i]=a)),e}function m(e,t){e=v(e);var n,i=h(t);if("F"!==i)return e.index[i];for(n=e.first;n;n=n.next)if(n.key==t)return n}var g=e((function(e,i){o(e,g,t),p(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=i&&u(i,e[l],{that:e,AS_ENTRIES:n})})),v=f(t);return a(g.prototype,{clear:function(){for(var e=v(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t,n,i=v(this);e=m(this,e);return e&&(t=e.next,n=e.previous,delete i.index[e.index],e.removed=!0,n&&(n.next=t),t&&(t.previous=n),i.first==e&&(i.first=t),i.last==e&&(i.last=n),d?i.size--:this.size--),!!e},forEach:function(e){for(var t,n=v(this),i=s(e,1<arguments.length?arguments[1]:void 0,3);t=t?t.next:n.first;)for(i(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!m(this,e)}}),a(g.prototype,n?{get:function(e){return e=m(this,e),e&&e.value},set:function(e,t){return c(this,0===e?0:e,t)}}:{add:function(e){return c(this,e=0===e?0:e,e)}}),d&&i(g.prototype,"size",{get:function(){return v(this).size}}),g},setStrong:function(e,t,n){var i=t+" Iterator",r=f(t),a=f(i);l(e,t,(function(e,t){p(this,{type:i,target:e,state:r(e),kind:t,last:void 0})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:{value:e.target=void 0,done:!0}}),n?"entries":"values",!n,!0),c(t)}}},"6d61":function(e,t,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("94ca"),s=n("6eeb"),o=n("f183"),u=n("2266"),l=n("19aa"),c=n("861d"),d=n("d039"),h=n("1c7e"),p=n("d44e"),f=n("7156");e.exports=function(e,t,n){function m(e){var t=w[e];s(w,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(S&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return S&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(S&&!c(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})}var g,v,y,_,b,T=-1!==e.indexOf("Map"),S=-1!==e.indexOf("Weak"),E=T?"set":"add",k=r[e],w=k&&k.prototype,C=k,O={};return a(e,"function"!=typeof k||!(S||w.forEach&&!d((function(){(new k).entries().next()}))))?(C=n.getConstructor(t,e,T,E),o.REQUIRED=!0):a(e,!0)&&(v=(g=new C)[E](S?{}:-0,1)!=g,y=d((function(){g.has(1)})),_=h((function(e){new k(e)})),b=!S&&d((function(){for(var e=new k,t=5;t--;)e[E](t,t);return!e.has(-0)})),_||(((C=t((function(t,n){return l(t,C,e),t=f(new k,t,C),null!=n&&u(n,t[E],{that:t,AS_ENTRIES:T}),t}))).prototype=w).constructor=C),(y||b)&&(m("delete"),m("has"),T&&m("get")),(b||v)&&m(E),S&&w.clear&&delete w.clear),O[e]=C,i({global:!0,forced:C!=k},O),p(C,e),S||n.setStrong(C,e,T),C}},"6f8f":function(e,t,n){n("d3b7"),n("4ae1"),n("25f0"),e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},"75e6":function(e,t,n){"use strict";n.d(t,"a",(function(){return L}));var i=n("7a23"),r=n("f344"),a=(t=n("c199"),n("1da4")),s=n("fe7e"),o=n("f691"),u=n("7e3e"),l=n("8da3"),c=n("b1d2"),d=n("8405"),h=n("f827"),p=n("e41f"),f=n("b650"),m=n("f465");const[g,v]=Object(s.a)("action-bar"),y=Symbol(g);var _={safeAreaInsetBottom:o.g};_=Object(i.defineComponent)({name:g,props:_,setup(e,{slots:t}){const n=Object(m.f)(y)["linkChildren"];return n(),()=>{var n;return Object(i.createVNode)("div",{class:[v(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(n=t.default)?void 0:n.call(t)])}}});const b=Object(t.a)(_);var T=n("4eda"),S=n("b070");const[E,k]=Object(s.a)("action-bar-button");_=Object(r.a)({},S.b,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),n=Object(i.defineComponent)({name:E,props:_,setup(e,{slots:t}){const n=Object(S.c)(),{parent:r,index:a}=Object(m.k)(y),s=Object(i.computed)(()=>{var e;if(r)return!((e=r.children[a.value-1])&&"isButton"in e)}),o=Object(i.computed)(()=>{var e;if(r)return!((e=r.children[a.value+1])&&"isButton"in e)});return Object(T.a)({isButton:!0}),()=>{const{type:r,icon:a,text:u,color:l,loading:c,disabled:d}=e;return Object(i.createVNode)(f.a,{class:k([r,{last:o.value,first:s.value}]),size:"large",type:r,icon:a,color:l,loading:c,disabled:d,onClick:n},{default:()=>[t.default?t.default():u]})}}});const w=Object(t.a)(n),[C,O,x]=Object(s.a)("dialog");_=Object(r.a)({},h.b,{title:String,theme:String,width:o.f,message:[String,Function],callback:Function,allowHtml:Boolean,className:o.h,transition:Object(o.e)("van-dialog-bounce"),messageAlign:String,closeOnPopstate:o.g,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:o.g,closeOnClickOverlay:Boolean});const I=[...h.a,"transition","closeOnPopstate"];var A=Object(i.defineComponent)({name:C,props:_,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const a=Object(i.ref)(),s=Object(i.reactive)({confirm:!1,cancel:!1}),o=e=>t("update:show",e),h=t=>{var n;o(!1),null!=(n=e.callback)&&n.call(e,t)};var m=n=>()=>{e.show&&(t(n),e.beforeClose?(s[n]=!0,Object(u.a)(e.beforeClose,{args:[n],done(){h(n),s[n]=!1},canceled(){s[n]=!1}})):h(n))};const g=m("cancel"),v=m("confirm"),y=Object(i.withKeys)(n=>{var i;if(n.target===(null==(i=null==(i=a.value)?void 0:i.popupRef)?void 0:i.value)){const i={Enter:e.showConfirmButton?v:r.d,Escape:e.showCancelButton?g:r.d};i[n.key](),t("keydown",n)}},["enter","esc"]),_=()=>{if(n.default)return Object(i.createVNode)("div",{class:O("content")},[n.default()]);var{title:t,message:r,allowHtml:a}=e;return r?(r=!(!t&&!n.title),Object(i.createVNode)("div",{key:a?1:0,class:O("content",{isolated:!r})},[(t=>{const{message:n,allowHtml:r,messageAlign:a}=e;t=O("message",{"has-title":t,[a]:a});var s=Object(l.c)(n)?n():n;return r&&"string"==typeof s?Object(i.createVNode)("div",{class:t,innerHTML:s},null):Object(i.createVNode)("div",{class:t},[s])})(r)])):void 0},T=()=>n.footer?n.footer():"round-button"===e.theme?Object(i.createVNode)(b,{class:O("footer")},{default:()=>[e.showCancelButton&&Object(i.createVNode)(w,{type:"warning",text:e.cancelButtonText||x("cancel"),class:O("cancel"),color:e.cancelButtonColor,loading:s.cancel,onClick:g},null),e.showConfirmButton&&Object(i.createVNode)(w,{type:"danger",text:e.confirmButtonText||x("confirm"),class:O("confirm"),color:e.confirmButtonColor,loading:s.confirm,onClick:v},null)]}):Object(i.createVNode)("div",{class:[c.c,O("footer")]},[e.showCancelButton&&Object(i.createVNode)(f.a,{size:"large",text:e.cancelButtonText||x("cancel"),class:O("cancel"),style:{color:e.cancelButtonColor},loading:s.cancel,onClick:g},null),e.showConfirmButton&&Object(i.createVNode)(f.a,{size:"large",text:e.confirmButtonText||x("confirm"),class:[O("confirm"),{[c.a]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:s.confirm,onClick:v},null)]);return()=>{var{width:t,title:s,theme:u,message:l,className:c}=e;return Object(i.createVNode)(p.a,Object(i.mergeProps)({ref:a,role:"dialog",class:[O([u]),c],style:{width:Object(d.b)(t)},tabindex:0,"aria-labelledby":s||l,onKeydown:y,"onUpdate:show":o},Object(r.e)(e,I)),{default:()=>[(()=>{var t=n.title?n.title():e.title;if(t)return Object(i.createVNode)("div",{class:O("header",{isolated:!e.message&&!n.default})},[t])})(),_(),T()]})}}});let P;function L(e){return r.c?new Promise((t,n)=>{var s;P||(s={setup(){const{state:e,toggle:t}=Object(a.b)();return()=>Object(i.createVNode)(A,Object(i.mergeProps)(e,{"onUpdate:show":t}),null)}},({instance:P}=Object(a.a)(s))),P.open(Object(r.a)({},L.currentOptions,e,{callback:e=>{("confirm"===e?t:n)(e)}}))}):Promise.resolve()}L.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1},L.currentOptions=Object(r.a)({},L.defaultOptions),(L.alert=L).confirm=e=>L(Object(r.a)({showCancelButton:!0},e)),L.close=()=>{P&&P.toggle(!1)},L.setDefaultOptions=e=>{Object(r.a)(L.currentOptions,e)},L.resetDefaultOptions=()=>{L.currentOptions=Object(r.a)({},L.defaultOptions)},L.Component=Object(t.a)(A),L.install=e=>{e.use(L.Component),e.config.globalProperties.$dialog=L}},"76d1":function(e,t,n){e.exports=n.p+"static/img/box_line.6256177b.png"},"81c0":function(e,t,n){var i=n("a968").getUint64;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12,a=(0===n.version?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=i(e.subarray(r)),n.firstOffset=i(e.subarray(r+8)),r+=16),t.getUint16(r+=2));for(r+=2;0<a;r+=12,a--)n.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return n}},8362:function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},8484:function(e,t,n){"use strict";function i(e){return!!e&&"object"==typeof e}function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return"object"!=typeof t||Object.keys(t).forEach((function(n){Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=e[n].concat(t[n]):i(e[n])&&i(t[n])?e[n]=r(e[n],t[n]):e[n]=t[n]})),e}),{})}function a(e){return Object.keys(e).map((function(t){return e[t]}))}function s(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function o(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function u(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e}function l(e){var t=e.baseUrl,n=void 0===(n=e.initialization)?{}:n,i=e.sourceDuration,r=void 0===(r=e.indexRange)?"":r,a=e.periodStart,s=e.presentationTime,o=void 0===(o=e.number)?0:o,u=e.duration;if(t)return n=O({baseUrl:t,source:n.sourceURL,range:n.range}),(t=O({baseUrl:t,source:t,indexRange:r})).map=n,u?(r=I(e)).length&&(t.duration=r[0].duration,t.timeline=r[0].timeline):i&&(t.duration=i,t.timeline=a),t.presentationTime=s||a,t.number=o,[t];throw new Error(C.NO_BASE_URL)}function c(e){var t,n,i=[];return t=e,n=function(e,t,n,r){i=i.concat(e.playlists||[])},P.forEach((function(e){for(var i in t.mediaGroups[e])for(var r in t.mediaGroups[e][i]){var a=t.mediaGroups[e][i][r];n(a,e,i,r)}})),i}function d(e){var t=e.playlist;e=e.mediaSequence;t.mediaSequence=e,t.segments.forEach((function(e,n){e.number=t.mediaSequence+n}))}function h(e,t){var n=N(e.sidx);return(t=n&&t[n]&&t[n].sidx)&&A(e,t,e.sidx.resolvedUri),e}function p(e,t){for(var n,i,r,a,s,o,u,l=e.type,c=e.minimumUpdatePeriod,d=void 0===c?0:c,h=void 0===(c=e.media)?"":c,p=e.sourceDuration,f=void 0===(c=e.timescale)?1:c,m=void 0===(c=e.startNumber)?1:c,g=e.periodStart,v=[],y=-1,_=0;_<t.length;_++)for(var b,T=(E=t[_]).d,S=E.r||0,E=E.t||0,k=(E=(y<0&&(y=E),void(E&&y<E&&(y=E))),E=S<0?(b=_+1)===t.length?"dynamic"===l&&0<d&&0<h.indexOf("$Number$")?(i=y,u=o=s=a=r=void 0,r=(n=e).NOW,a=n.clientOffset,s=n.availabilityStartTime,o=n.timescale,u=n.periodStart,n=n.minimumUpdatePeriod,Math.ceil((((r+a)/1e3+(void 0===n?0:n)-(s+(void 0===u?0:u)))*(void 0===o?1:o)-i)/T)):(p*f-y)/T:(t[b].t-y)/T:S+1,m+v.length+E),w=m+v.length;w<k;)v.push({number:w,duration:T/f,time:y,timeline:g}),y+=T,w++;return v}function f(e,t){return e.replace(z,(n=t,function(e,t,i,r){return"$$"===e?"$":void 0===n[t]?e:(e=""+n[t],"RepresentationID"===t||(r=i?parseInt(r,10):1)<=e.length?e:new Array(r-e.length+1).join("0")+e)}));var n}function m(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=void 0===(i=e.initialization)?{sourceURL:"",range:""}:i,r=O({baseUrl:e.baseUrl,source:f(i.sourceURL,n),range:i.range});return i=t,((t=e).duration||i?t.duration?I(t):p(t,i):[{number:t.startNumber||1,duration:t.sourceDuration,time:0,timeline:t.periodStart}]).map((function(t){n.Number=t.number,n.Time=t.time;var i=f(e.media||"",n),a=e.timescale||1,s=e.presentationTimeOffset||0;s=e.periodStart+(t.time-s)/a;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:Object(T.a)(e.baseUrl||"",i),map:r,number:t.number,presentationTime:s}}))}function g(e,t){var n=e.duration,i=void 0===(i=e.segmentUrls)?[]:i,r=e.periodStart;if(!n&&!t||n&&t)throw new Error(C.SEGMENT_TIME_UNSPECIFIED);var a,s=i.map((function(t){return t=t,i=(n=e).baseUrl,n=n.initialization,n=O({baseUrl:i,source:(n=void 0===n?{}:n).sourceURL,range:n.range}),(i=O({baseUrl:i,source:t.media,range:t.mediaRange})).map=n,i;var n,i}));return n&&(a=I(e)),(a=t?p(e,t):a).map((function(t,n){var i,a;if(s[n])return n=s[n],i=e.timescale||1,a=e.presentationTimeOffset||0,n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n.presentationTime=r+(t.time-a)/i,n})).filter((function(e){return e}))}function v(e){if(!(e=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e)))return 0;var t=(e=e.slice(1))[0],n=e[1],i=e[2],r=e[3],a=e[4];e=e[5];return 31536e3*parseFloat(t||0)+2592e3*parseFloat(n||0)+86400*parseFloat(i||0)+3600*parseFloat(r||0)+60*parseFloat(a||0)+parseFloat(e||0)}function y(e){var t=K(e,"SegmentTemplate")[0],n=K(e,"SegmentList")[0],i=n&&K(n,"SegmentURL").map((function(e){return r({tag:"SegmentURL"},$(e))})),a=(e=K(e,"SegmentBase")[0],(a=n||t)&&K(a,"SegmentTimeline")[0]),s=(s=n||e||t)&&K(s,"Initialization")[0],o=((t=t&&$(t))&&s?t.initialization=s&&$(s):t&&t.initialization&&(t.initialization={sourceURL:t.initialization}),{template:t,segmentTimeline:a&&K(a,"S").map((function(e){return $(e)})),list:n&&r($(n),{segmentUrls:i,initialization:$(s)}),base:e&&r($(e),{initialization:$(s)})});return Object.keys(o).forEach((function(e){o[e]||delete o[e]})),o}function _(e,t,n){return function(i){var a,s,o,u=$(i),l=Z(t,K(i,"BaseURL")),c=K(i,"Role")[0];c={role:$(c)},u=r(e,u,c),c=K(i,"Accessibility")[0],c="urn:scte:dash:cc:cea-608:2015"===(c=$(c)).schemeIdUri?("string"!=typeof c.value?[]:c.value.split(";")).map((function(e){var t,n,i;return/^CC\d=/.test(i=e)?(n=(t=e.split("="))[0],i=t[1]):/^CC\d$/.test(e)&&(n=e),{channel:n,language:i}})):"urn:scte:dash:cc:cea-708:2015"===c.schemeIdUri?("string"!=typeof c.value?[]:c.value.split(";")).map((function(e){var t,n,i={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};return/=/.test(e)?(t=(n=e.split("="))[0],n=void 0===(n=n[1])?"":n,i.channel=t,i.language=e,n.split(",").forEach((function(e){e=e.split(":");var t=e[0];e=e[1];"lang"===t?i.language=e:"er"===t?i.easyReader=Number(e):"war"===t?i.aspectRatio=Number(e):"3D"===t&&(i["3D"]=Number(e))}))):i.language=e,i.channel&&(i.channel="SERVICE"+i.channel),i})):void 0,c&&(u=r(u,{captionServices:c})),c=K(i,"Label")[0],c&&c.childNodes.length&&(c=c.childNodes[0].nodeValue.trim(),u=r(u,{label:c})),c=K(i,"ContentProtection").reduce((function(e,t){var n=$(t),i=(n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase()),J[n.schemeIdUri]);return i&&(e[i]={attributes:n},(n=K(t,"cenc:pssh")[0])&&(t=Y(n),e[i].pssh=t&&Object(E.a)(t))),e}),{}),Object.keys(c).length&&(u=r(u,{contentProtection:c})),c=y(i),i=K(i,"Representation"),c=r(n,c);return w(i.map((a=u,s=l,o=c,function(e){var t=K(e,"BaseURL"),n=(t=Z(s,t),r(a,$(e))),i=y(e);return t.map((function(e){return{segmentInfo:r(o,i),attributes:r(n,{baseUrl:e})}}))})))}}function b(e){if(""===e)throw new Error(C.DASH_EMPTY_MANIFEST);var t,n,i=new k.DOMParser;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||0<n.getElementsByTagName("parsererror").length)throw new Error(C.DASH_INVALID_XML);return n}n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return N})),n.d(t,"c",(function(){return ne})),n.d(t,"d",(function(){return ie}));var T=n("63ec"),S=(t=n("be09"),n.n(t)),E=n("ffdf"),k=n("210b"),w=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},C={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},O=function(e){var t=e.baseUrl,n=(t=void 0===t?"":t,e.source),i=(n=void 0===n?"":n,e.range);i=void 0===i?"":i,e=e.indexRange,e=void 0===e?"":e,t={uri:n,resolvedUri:Object(T.a)(t||"",n)};return(i||e)&&(n=(i||e).split("-"),i=S.a.BigInt?S.a.BigInt(n[0]):parseInt(n[0],10),e=S.a.BigInt?S.a.BigInt(n[1]):parseInt(n[1],10),i<Number.MAX_SAFE_INTEGER&&"bigint"==typeof i&&(i=Number(i)),"bigint"==typeof(n="bigint"==typeof(e=e<Number.MAX_SAFE_INTEGER&&"bigint"==typeof e?Number(e):e)||"bigint"==typeof i?S.a.BigInt(e)-S.a.BigInt(i)+S.a.BigInt(1):e-i+1)&&n<Number.MAX_SAFE_INTEGER&&(n=Number(n)),t.byterange={length:n,offset:i}),t},x={static:function(e){var t=e.duration,n=e.timescale,i=(n=void 0===n?1:n,e.sourceDuration),r=e.periodDuration;e=u(e.endNumber),t/=n;return"number"==typeof e?{start:0,end:e}:"number"==typeof r?{start:0,end:r/t}:{start:0,end:i/t}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,i=e.availabilityStartTime,r=e.timescale,a=(r=void 0===r?1:r,e.duration),s=e.periodStart,o=(s=void 0===s?0:s,e.minimumUpdatePeriod),l=(o=void 0===o?0:o,e.timeShiftBufferDepth);l=void 0===l?1/0:l,e=u(e.endNumber),t=(t+n)/1e3,n=i+s,i=Math.ceil((t+o-n)*r/a),s=Math.floor((t-n-l)*r/a),o=Math.floor((t-n)*r/a);return{start:Math.max(0,s),end:"number"==typeof e?e:Math.min(i,o)}}},I=function(e){var t,n=e.type,i=e.duration,r=e.timescale,a=(r=void 0===r?1:r,e.periodDuration),s=e.sourceDuration,o=x[n](e);o=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n}(o.start,o.end).map((t=e,function(e){var n=t.duration,i=t.timescale,r=t.periodStart,a=t.startNumber;return{number:(void 0===a?1:a)+e,duration:n/(void 0===i?1:i),timeline:r,time:e*n}}));return"static"===n&&(o[e=o.length-1].duration=("number"==typeof a?a:s)-i/r*e),o},A=function(e,t,n){for(var i=e.sidx.map||null,r=e.sidx.duration,a=e.timeline||0,s=e.sidx.byterange,o=(s=s.offset+s.length,t.timescale),u=t.references.filter((function(e){return 1!==e.referenceType})),c=[],d=e.endList?"static":"dynamic",h=e.sidx.timeline,p=h,f=e.mediaSequence||0,m="bigint"==typeof t.firstOffset?S.a.BigInt(s)+t.firstOffset:s+t.firstOffset,g=0;g<u.length;g++){var v=t.references[g],y=v.referencedSize,_=(v=v.subsegmentDuration,void 0);_="bigint"==typeof m?m+S.a.BigInt(y)-S.a.BigInt(1):m+y-1,_=l({baseUrl:n,timescale:o,timeline:a,periodStart:h,presentationTime:p,number:f,duration:v,sourceDuration:r,indexRange:m+"-"+_,type:d})[0];i&&(_.map=i),c.push(_),m+="bigint"==typeof m?S.a.BigInt(y):y,p+=v/o,f++}return e.segments=c,e},P=["AUDIO","SUBTITLES"],L=function(e){return t=function(e){return e.timeline},a(e.reduce((function(e,n){return n.forEach((function(n){e[t(n)]=n})),e}),{})).sort((function(e,t){return e.timeline>t.timeline?1:-1}));var t},D=function(e){var t,n,i=e.oldManifest,r=(e=e.newManifest,i.playlists.concat(c(i))),a=e.playlists.concat(c(e));return e.timelineStarts=L([i.timelineStarts,e.timelineStarts]),i={oldPlaylists:r,newPlaylists:a,timelineStarts:e.timelineStarts},t=i.oldPlaylists,r=i.newPlaylists,n=i.timelineStarts,r.forEach((function(e){e.discontinuitySequence=o(n,(function(t){return t.timeline===e.timeline}));var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null}(t,e.attributes.NAME);if(i&&!e.sidx){var r=e.segments[0],a=o(i.segments,(function(e){return Math.abs(e.presentationTime-r.presentationTime)<1/60}));if(-1===a)return d({playlist:e,mediaSequence:i.mediaSequence+i.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!i.segments.length&&e.timeline>i.timeline||i.segments.length&&e.timeline>i.segments[i.segments.length-1].timeline)&&e.discontinuitySequence--);i.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),d({playlist:e,mediaSequence:i.segments[a].number})}})),e},N=function(e){return e&&e.uri+"-"+(e=e.byterange,t="bigint"==typeof e.offset||"bigint"==typeof e.length?S.a.BigInt(e.offset)+S.a.BigInt(e.length)-S.a.BigInt(1):e.offset+e.length-1,e.offset+"-"+t);var t},R=function(e){return a(e.reduce((function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{})).map((function(e){var t,n;return e.discontinuityStarts=(t=e.segments||[],n="discontinuity",t.reduce((function(e,t,i){return t[n]&&e.push(i),e}),[])),e}))},M=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=h(e[n],t);return e},j=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i;e=e.reduce((function(e,r){var a,s,o,u,l,c,d=r.attributes.role&&r.attributes.role.value||"",p=r.attributes.lang||"",f=r.attributes.label||"main",m=(e[f=p&&!r.attributes.label?r.attributes.lang+(d?" ("+d+")":""):f]||(e[f]={language:p,autoselect:!0,default:"main"===d,playlists:[],uri:""}),h((p=n,s=(a=r).attributes,o=r.segments,u=r.sidx,l=r.mediaSequence,m=r.discontinuitySequence,a=r.discontinuityStarts,c={attributes:((c={NAME:s.id,BANDWIDTH:s.bandwidth,CODECS:s.codecs})["PROGRAM-ID"]=1,c),uri:"",endList:"static"===s.type,timeline:s.periodStart,resolvedUri:"",targetDuration:s.duration,discontinuitySequence:m,discontinuityStarts:a,timelineStarts:s.timelineStarts,mediaSequence:l,segments:o},s.contentProtection&&(c.contentProtection=s.contentProtection),u&&(c.sidx=u),p&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c),t));return e[f].playlists.push(m),void 0===i&&"main"===d&&((i=r).default=!0),e}),{});return i||(e[Object.keys(e)[0]].default=!0),e},U=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(h(function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts;e=e.discontinuitySequence;return void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration),(t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,n.codecs&&(t.CODECS=n.codecs),{attributes:t,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:e,mediaSequence:r,segments:i}}(n),t)),e}),{})},B=function(e){return e.reduce((function(e,t){return t&&t.forEach((function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])})),e}),{})},F=function(e){var t=e.attributes,n=e.segments,i=e.sidx,r=(e=e.discontinuityStarts,{attributes:((r={NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth})["PROGRAM-ID"]=1,r),uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:"",targetDuration:t.duration,discontinuityStarts:e,timelineStarts:t.timelineStarts,segments:n});return t.frameRate&&(r.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(r.contentProtection=t.contentProtection),i&&(r.sidx=i),r},V=function(e){return e=e.attributes,"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},q=function(e){return e=e.attributes,"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},H=function(e){return e=e.attributes,"text/vtt"===e.mimeType||"text"===e.contentType},W=function(e,t){e.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=o(t,(function(t){return t.timeline===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))}))},G=function(e){return e?Object.keys(e).reduce((function(t,n){return n=e[n],t.concat(n.playlists)}),[]):[]},z=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,X=function(e){var t,n=e.attributes;e=e.segmentInfo,e.template?(s=m,t=r(n,e.template)):e.base?(s=l,t=r(n,e.base)):e.list&&(s=g,t=r(n,e.list)),n={attributes:n};if(!s)return n;var i,a,s=s(t,e.segmentTimeline);return t.duration?(i=(a=t).duration,a=a.timescale,t.duration=i/(void 0===a?1:a)):s.length?t.duration=s.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0,n.attributes=t,n.segments=s,e.base&&t.indexRange&&(n.sidx=s[0],n.segments=[]),n},K=function(e,t){return s(e.childNodes).filter((function(e){return e.tagName===t}))},Y=function(e){return e.textContent.trim()},Q={mediaPresentationDuration:v,availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=e)&&(e+="Z"),Date.parse(e)/1e3},minimumUpdatePeriod:v,suggestedPresentationDelay:v,type:function(e){return e},timeShiftBufferDepth:v,start:v,width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return parseFloat(e.split("/").reduce((function(e,t){return e/t})))},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?v(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},$=function(e){return e&&e.attributes?s(e.attributes).reduce((function(e,t){var n=Q[t.name]||Q.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},J={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Z=function(e,t){return t.length?w(e.map((function(e){return t.map((function(t){return Object(T.a)(e,Y(t))}))}))):e},ee=function(e,t){return function(n,i){var a=Z(t,K(n.node,"BaseURL")),s=r(e,{periodStart:n.attributes.start}),o=("number"==typeof n.attributes.duration&&(s.periodDuration=n.attributes.duration),K(n.node,"AdaptationSet"));n=y(n.node);return w(o.map(_(s,a,n)))}},te=function(e){var t=e.attributes,n=e.priorPeriodAttributes;e=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==e?null:0},ne=function(e,t){void 0===t&&(t={});e=function(e,t){t=t=void 0===t?{}:t;var n=t.manifestUri,i=(n=void 0===n?"":n,t.NOW),r=(i=void 0===i?Date.now():i,t=t.clientOffset,t=void 0===t?0:t,K(e,"Period"));if(!r.length)throw new Error(C.INVALID_NUMBER_OF_PERIOD);var a=K(e,"Location"),s=$(e),o=(n=Z([n],K(e,"BaseURL")),s.type=s.type||"static",s.sourceDuration=s.mediaPresentationDuration||0,s.NOW=i,s.clientOffset=t,a.length&&(s.locations=a.map(Y)),[]);return r.forEach((function(e,t){var n=$(e);t=o[t-1];n.start=te({attributes:n,priorPeriodAttributes:t?t.attributes:null,mpdType:s.type}),o.push({node:e,attributes:n})})),{locations:s.locations,representationInfo:w(o.map(ee(s,n)))}}(b(e),t);var n=e.representationInfo.map(X),i=(e=(n={dashPlaylists:n,locations:e.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest}).dashPlaylists,t=n.locations,void 0===(i=n.sidxMapping)?{}:i);n=n.previousManifest;if(!e.length)return{};var r=(o=e[0].attributes).sourceDuration,a=o.type,s=o.suggestedPresentationDelay,o=o.minimumUpdatePeriod,u=R(e.filter(V)).map(F),l=R(e.filter(q)),c=R(e.filter(H)),d=(e=e.map((function(e){return e.attributes.captionServices})).filter(Boolean),{allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((d={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},d.SUBTITLES={},d),uri:"",duration:r,playlists:M(u,i)});0<=o&&(d.minimumUpdatePeriod=1e3*o),t&&(d.locations=t),"dynamic"===a&&(d.suggestedPresentationDelay=s),r=0===d.playlists.length,o=l.length?j(l,i,r):null,t=c.length?U(c,i):null,s=(a=u.concat(G(o),G(t))).map((function(e){return e.timelineStarts}));return d.timelineStarts=L(s),W(a,d.timelineStarts),o&&(d.mediaGroups.AUDIO.audio=o),t&&(d.mediaGroups.SUBTITLES.subs=t),e.length&&(d.mediaGroups["CLOSED-CAPTIONS"].cc=B(e)),n?D({oldManifest:n,newManifest:d}):d},ie=function(e){if(e=b(e),!(e=K(e,"UTCTiming")[0]))return null;var t=$(e);switch(t.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":t.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":t.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":t.method="DIRECT",t.value=Date.parse(t.value);break;default:throw new Error(C.UNSUPPORTED_UTC_TIMING_SCHEME)}return t}},"89a7":function(e,t,n){"use strict";function i(e,t){return(t=void 0===t?Object:t)&&"function"==typeof t.freeze?t.freeze(e):e}var r=i({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];if(t.call(void 0,r,i,e))return r}},t.freeze=i,t.MIME_TYPE=r,t.NAMESPACE=a},"8b53":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i,a=function(e){return i.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},"8c00":function(e,t,n){"use strict";var i=n("be09");e.exports=function(e,t){return void 0===t&&(t=!1),function(n,r,a){if(n)e(n);else if(400<=r.statusCode&&r.statusCode<=599){if(n=a,t)if(i.TextDecoder){r=function(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce((function(e,t){t=t.split("=");var n=t[0];t=t[1];return"charset"===n.trim()?t.trim():e}),"utf-8")}(r.headers&&r.headers["content-type"]);try{n=new TextDecoder(r).decode(a)}catch(n){}}else n=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:n})}else e(null,a)}}},"8c10":function(e,t){e.exports=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(e){i=e}return[i,n]}},"8d37":function(e,t,n){},"8fe4":function(e,t,n){"use strict";n("cb59")},"90f1":function(e,t,n){"use strict";n("4003")},"97eb":function(e,t,n){"use strict";n("e62a")},"9a42":function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},"9e6f":function(e,t,n){"use strict";n("49e4")},"9f18":function(e,t,n){},a128:function(e,t,n){n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0");var i=n("36c6e"),r=n("4a4b"),a=n("c5f7"),s=n("b17c");function o(t){var n="function"==typeof Map?new Map:void 0;return e.exports=o=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return s(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r(t,e)},o(t)}e.exports=o},a559:function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n,i=arguments[t];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},n.apply(this,arguments)}e.exports=n},a968:function(e,t){var n=Math.pow(2,32);e.exports={getUint64:function(e){var t;e=new DataView(e.buffer,e.byteOffset,e.byteLength);return e.getBigUint64?(t=e.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:e.getUint32(0)*n+e.getUint32(4)},MAX_UINT32:n}},a9e3:function(e,t,n){"use strict";function i(e){var t,n,i,r,a,s,o,u=d(e,!1);if("string"==typeof u&&2<u.length)if(43===(e=(u=v(u)).charCodeAt(0))||45===e){if(88===(t=u.charCodeAt(2))||120===t)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+u}for(a=(r=u.slice(2)).length,s=0;s<a;s++)if((o=r.charCodeAt(s))<48||i<o)return NaN;return parseInt(r,n)}return+u}var r=n("83ab"),a=n("da84"),s=n("94ca"),o=n("6eeb"),u=n("5135"),l=n("c6b6"),c=n("7156"),d=n("c04e"),h=n("d039"),p=n("7c73"),f=n("241c").f,m=n("06cf").f,g=n("9bf2").f,v=n("58a8").trim,y="Number",_=a[y],b=_.prototype,T=l(p(b))==y;if(s(y,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var S,E=function(e){e=arguments.length<1?0:e;var t=this;return t instanceof E&&(T?h((function(){b.valueOf.call(t)})):l(t)!=y)?c(new _(i(e)),t,E):i(e)},k=r?f(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),w=0;k.length>w;w++)u(_,S=k[w])&&!u(E,S)&&g(E,S,m(_,S));(E.prototype=b).constructor=E,o(a,y,E)}},aff7:function(e,t,n){},b000:function(e,t,n){"use strict";n("68ef"),n("e3b3"),n("d9d2")},b03c:function(e,t){var n={"":1,lr:1,rl:1},i={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function r(e){return"string"==typeof e&&!!i[e.toLowerCase()]&&e.toLowerCase()}function a(e,t,i){this.hasBeenReset=!1;var a="",s=!1,o=e,u=t,l=i,c=null,d="",h=!0,p="auto",f="start",m="auto",g="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(e){l=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(e){if(e="string"==typeof(e=e)&&!!n[e.toLowerCase()]&&e.toLowerCase(),!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){e=r(e),e&&(f=e,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){e=r(e),e&&(g=e,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){if(e=r(e),!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=e,this.hasBeenReset=!0}}}),this.displayState=void 0}a.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=a},b074:function(e,t,n){var i=n("89a7"),r=n("e1c8"),a=n("b30f"),s=(n=n("e003"),r.DOMImplementation),o=i.NAMESPACE,u=n.ParseError,l=n.XMLReader;function c(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function d(e){this.options=e||{locator:{}}}function h(){this.cdata=!1}function p(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function f(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function g(e,t){(e.currentElement||e.doc).appendChild(t)}d.prototype.parseFromString=function(e,t){var n=this.options,i=new l,r=n.domBuilder||new h,s=n.errorHandler,u=n.locator,d=n.xmlns||{},p=(t=/\/x?html?$/.test(t),t?a.HTML_ENTITIES:a.XML_ENTITIES);u&&r.setDocumentLocator(u),i.errorHandler=function(e,t,n){if(!e){if(t instanceof h)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a?function(e){a("[xmldom "+t+"]\t"+e+f(n))}:function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}(s,r,u),i.domBuilder=n.domBuilder||r,t&&(d[""]=o.HTML),d.xml=d.xml||o.XML,s=n.normalizeLineEndings||c;return e&&"string"==typeof e?i.parse(s(e),d,p):i.errorHandler.error("invalid doc source"),r.doc},h.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),s=i.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var o=0;o<s;o++){e=i.getURI(o);var u=i.getValue(o),l=(n=i.getQName(o),r.createAttributeNS(e,n));this.locator&&p(i.getLocator(o),l),l.value=l.nodeValue=u,a.setAttributeNode(l)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){e=this.doc.createProcessingInstruction(e,t),this.locator&&p(this.locator,e),g(this,e)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){var i;(e=m.apply(this,arguments))&&(i=this.cdata?this.doc.createCDATASection(e):this.doc.createTextNode(e),this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&p(this.locator,i))},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=m.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&p(this.locator,i),g(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;i&&i.createDocumentType&&(i=i.createDocumentType(e,t,n),this.locator&&p(this.locator,i),g(this,i),this.doc.doctype=i)},warning:function(e){},error:function(e){},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){h.prototype[e]=function(){return null}})),t.__DOMHandler=h,t.normalizeLineEndings=c,t.DOMParser=d},b13f:function(e,t,n){"use strict";n("8d37")},b17c:function(e,t,n){n("4ae1");var i=n("4a4b"),r=n("6f8f");function a(t,n,s){return r()?e.exports=a=Reflect.construct:e.exports=a=function(e,t,n){var r=[null];return r.push.apply(r,t),t=new(Function.bind.apply(e,r)),n&&i(t,n.prototype),t},a.apply(null,arguments)}e.exports=a},b30f:function(e,t,n){"use strict";n=n("89a7").freeze,t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES},b650:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m}));t=n("c199");var i=n("7a23"),r=n("fe7e"),a=n("f344"),s=n("f691"),o=n("4a89"),u=n("b1d2"),l=n("b070"),c=n("ad06"),d=n("543e");const[h,p]=Object(r.a)("button");n=Object(a.a)({},l.b,{tag:Object(s.e)("button"),text:String,icon:String,type:Object(s.e)("default"),size:Object(s.e)("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Object(s.e)("button"),loadingSize:s.f,loadingText:String,loadingType:String,iconPosition:Object(s.e)("left")}),r=Object(i.defineComponent)({name:h,props:n,emits:["click"],setup(e,{emit:t,slots:n}){const r=Object(l.c)(),a=()=>e.loading?n.loading?n.loading():Object(i.createVNode)(d.a,{size:e.loadingSize,type:e.loadingType,class:p("loading")},null):n.icon?Object(i.createVNode)("div",{class:p("icon")},[n.icon()]):e.icon?Object(i.createVNode)(c.a,{name:e.icon,class:p("icon"),classPrefix:e.iconPrefix},null):void 0,s=n=>{e.loading?Object(o.e)(n):e.disabled||(t("click",n),r())};return()=>{const{tag:t,type:r,size:o,block:l,round:c,plain:d,square:h,loading:f,disabled:m,hairline:g,nativeType:v,iconPosition:y}=e;var _=[p([r,o,{plain:d,block:l,round:c,square:h,loading:f,disabled:m,hairline:g}]),{[u.b]:g}];return Object(i.createVNode)(t,{type:v,class:_,style:(()=>{const{color:t,plain:n}=e;if(t){const e={color:n?t:"white"};return n||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}})(),disabled:m,onClick:s},{default:()=>[Object(i.createVNode)("div",{class:p("content")},["left"===y&&a(),(()=>{let t;if(t=e.loading?e.loadingText:n.default?n.default():e.text)return Object(i.createVNode)("span",{class:p("text")},[t])})(),"right"===y&&a()])]})}}});const f=Object(t.a)(r);var m=f},b95f:function(e,t,n){function i(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var r,a,s;e.exports=(r=n("f0e2"),a=[function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(0),n=n&&n.__esModule?n:{default:n};var i=window.videojs||n.default,r=("function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])}return n},writable:!0,configurable:!0}),["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"]);t.default={name:"video-player",props:{start:{type:Number,default:0},crossOrigin:{type:String,default:""},playsinline:{type:Boolean,default:!1},customEventName:{type:String,default:"statechanged"},options:{type:Object,required:!0},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{controls:!0,controlBar:{remainingTimeDisplay:!1,playToggle:{},progressControl:{},fullscreenToggle:{},volumeMenuButton:{inline:!1,vertical:!0}},techOrder:["html5"],plugins:{}}}},globalEvents:{type:Array,default:function(){return[]}},trackList:{type:Array,default:function(){return[]}}},data:function(){return{player:null,reseted:!0}},mounted:function(){this.player||this.initialize()},beforeDestroy:function(){this.player&&this.dispose()},methods:{initialize:function(){function e(e,n){var i;e&&t.$emit(e,t.player),n&&t.$emit(t.customEventName,(n=n,(e=e)in(i={})?Object.defineProperty(i,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[e]=n,i))}var t=this,n=Object.assign({},this.globalOptions,this.options),a=(this.playsinline&&(this.$refs.video.setAttribute("playsinline",this.playsinline),this.$refs.video.setAttribute("webkit-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-playsinline",this.playsinline),this.$refs.video.setAttribute("x5-video-player-type","h5"),this.$refs.video.setAttribute("x5-video-player-fullscreen",!1)),""!==this.crossOrigin&&(this.$refs.video.crossOrigin=this.crossOrigin,this.$refs.video.setAttribute("crossOrigin",this.crossOrigin)),n.plugins&&delete n.plugins.__ob__,this);this.player=i(this.$refs.video,n,(function(){for(var t=this,n=r.concat(a.events).concat(a.globalEvents),i={},s=0;s<n.length;s++)"string"==typeof n[s]&&void 0===i[n[s]]&&function(n){i[n]=null,t.on(n,(function(){e(n,!0)}))}(n[s]);this.on("timeupdate",(function(){e("timeupdate",this.currentTime())})),a.$emit("ready",this)}))},dispose:function(e){var t=this;this.player&&this.player.dispose&&("Flash"!==this.player.techName_&&this.player.pause&&this.player.pause(),this.player.dispose(),this.player=null,this.$nextTick((function(){t.reseted=!1,t.$nextTick((function(){t.reseted=!0,t.$nextTick((function(){e&&e()}))}))})))}},watch:{options:{deep:!0,handler:function(e,t){var n=this;this.dispose((function(){e&&e.sources&&e.sources.length&&n.initialize()}))}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(1),a=n.n(r);for(i in r)["default","default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var s=n(5);a=n(4)(a.a,s.a,!1,null,null,null);t.default=a.exports},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t){t&&(t.options&&(s.default.props.globalOptions.default=function(){return t.options}),t.events&&(s.default.props.globalEvents.default=function(){return t.events})),e.component(s.default.name,s.default)}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.videoPlayer=t.videojs=void 0;var a=i(n(0)),s=i(n(2));n=window.videojs||a.default,a={videojs:n,videoPlayer:s.default,install:r};t.default=a,t.videojs=n,t.videoPlayer=s.default,t.install=r},function(e,t){e.exports=function(e,t,n,i,r,a){var s,o,u,l=e=e||{},c=typeof e.default;c="function"==typeof(l="object"!=c&&"function"!=c?l:(s=e).default)?l.options:l;return t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId=r),a?(o=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=o):i&&(o=i),o&&(e=c.functional,u=e?c.render:c.beforeCreate,e?(c._injectStyles=o,c.render=function(e,t){return o.call(t),u(e,t)}):c.beforeCreate=u?[].concat(u,o):[o]),{esModule:s,exports:l,options:c}}},function(e,t,n){"use strict";t.a={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.reseted?n("div",{staticClass:"video-player"},[n("video",{ref:"video",staticClass:"video-js"},e._l(e.trackList,(function(e){return n("track",{attrs:{kind:e.kind,label:e.label,src:e.src,srcLang:e.srcLang,default:e.default}})})))]):e._e()},staticRenderFns:[]}}],s={},i.m=a,i.c=s,i.i=function(e){return e},i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=3))},bb2f:function(e,t,n){n=n("d039"),e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc1b:function(e,t,n){},be09:function(e,t,n){(function(t){t="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=t}).call(this,n("c8ba"))},c177:function(e,t,n){"use strict";function i(e){return Object(r.pushScopeId)("data-v-707b02e4"),e=e(),Object(r.popScopeId)(),e}n.r(t),n("b0c0");var r=n("7a23"),a=["poster","src"],s=i((function(){return Object(r.createElementVNode)("div",{class:"video-model"},null,-1)})),o={class:"content"},u={class:"metting-info"},l=["src"],c={class:"name"},d={class:"location"},h={class:"language-box"},p=["onClick"],f={class:"mode-box"},m=["src"],g=i((function(){return Object(r.createElementVNode)("span",null,"讨论",-1)})),v=["src"],y=i((function(){return Object(r.createElementVNode)("span",null,"投影",-1)})),_=["src"],b=i((function(){return Object(r.createElementVNode)("span",null,"散会",-1)})),T={class:"env-box"},S=["src"],E=Object(r.createStaticVNode)('<div class="env-info" data-v-707b02e4><div class="item" data-v-707b02e4><div class="title" data-v-707b02e4>温度</div><div class="num-box" data-v-707b02e4><span data-v-707b02e4>26</span><span data-v-707b02e4>℃</span></div></div><div class="item" data-v-707b02e4><div class="title" data-v-707b02e4>CO2</div><div class="num-box" data-v-707b02e4><span data-v-707b02e4>410</span><span data-v-707b02e4>优</span></div></div></div><div class="line" data-v-707b02e4></div><div class="env-info" data-v-707b02e4><div class="item" data-v-707b02e4><div class="title" data-v-707b02e4>湿度</div><div class="num-box" data-v-707b02e4><span data-v-707b02e4>42</span><span data-v-707b02e4>%</span></div></div><div class="item" data-v-707b02e4><div class="title" data-v-707b02e4>TVOC</div><div class="num-box" data-v-707b02e4><span data-v-707b02e4>0.5</span><span data-v-707b02e4>健康</span></div></div></div><div class="line" data-v-707b02e4></div><div class="env-info" data-v-707b02e4><div class="item" data-v-707b02e4><div class="title" data-v-707b02e4>PM 2.5</div><div class="num-box" data-v-707b02e4><span data-v-707b02e4>17</span><span data-v-707b02e4>优</span></div></div><div class="item" data-v-707b02e4><div class="title" data-v-707b02e4>甲醛</div><div class="num-box" data-v-707b02e4><span data-v-707b02e4>0.04</span><span data-v-707b02e4>健康</span></div></div></div>',5),k={class:"box"},w={class:"box"},C={class:"box"},O={class:"box air-box"},x={class:"box"};function I(e){return Object(r.pushScopeId)("data-v-07ad1392"),e=e(),Object(r.popScopeId)(),e}n("d81d");var A=n("5530"),P=n("6c02"),L={class:"top"},D=["src"],N={class:"top-right"},R={class:"bottom"},M={class:"air-info"},j={class:"left"},U=I((function(){return Object(r.createElementVNode)("div",{class:"text"},"空调",-1)})),B={class:"status"},F={key:0,class:"temp"},V=[Object(r.createTextVNode)(" 26 "),I((function(){return Object(r.createElementVNode)("sup",null,"℃",-1)}))],q={key:0,class:"temp-box"},H=[Object(r.createStaticVNode)('<div class="bar" data-v-07ad1392><div class="text text-left active-text" data-v-07ad1392>12</div><div class="active-bar" data-v-07ad1392><div class="line" data-v-07ad1392></div></div><div class="text text-right" data-v-07ad1392>32</div></div>',1)],W={key:1,class:"air-volume"},G=I((function(){return Object(r.createElementVNode)("div",{class:"volume-left"},[Object(r.createElementVNode)("div",{class:"volume-top"},[Object(r.createElementVNode)("span",null,"1"),Object(r.createElementVNode)("span",null,"2"),Object(r.createElementVNode)("span",null,"3"),Object(r.createElementVNode)("span",{class:"span-active"},"4")]),Object(r.createElementVNode)("div",{class:"text"},"风量调节")],-1)})),z={class:"volume-right"},X={class:"control-item"},K=["src"],Y={class:"control-item"},Q=["src"],$=I((function(){return Object(r.createElementVNode)("div",{class:"control-item"},"A",-1)})),J=n("ade3"),Z=n("1a23"),ee=(n("b000"),n("2241")),te=(n("e17f"),n("543e")),ne=(n("ac1e"),n("e7e5"),n("d257")),ie=Object(r.defineComponent)({components:(ie={Switch:Z.b},Object(J.a)(ie,ee.a.Component.name,ee.a.Component),Object(J.a)(ie,"Loading",te.b),ie),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:ne.y,isOpen:!1,getAirStatus:function(){t.emit("getStatus",n.isOpen)}});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),re=(n("c540"),n("8fe4"),n("6b0d")),ae=(re=n.n(re),ie=re()(ie,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["volumn-box",e.isOpen?"active":""])},[Object(r.createElementVNode)("div",L,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/air-con.svg":"air-con.svg"),alt:""},null,8,D),Object(r.createElementVNode)("div",N,[Object(r.createVNode)(o,{onChange:e.getAirStatus,class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.3)",modelValue:e.isOpen,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.isOpen=t})},null,8,["onChange","modelValue"])])]),Object(r.createElementVNode)("div",R,[Object(r.createElementVNode)("div",M,[Object(r.createElementVNode)("div",j,[U,Object(r.createElementVNode)("div",B,Object(r.toDisplayString)(e.isOpen?"已开启":"已关闭"),1)]),e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",F,V)):Object(r.createCommentVNode)("",!0)]),e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",q,H)):Object(r.createCommentVNode)("",!0),e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",W,[G,Object(r.createElementVNode)("div",z,[Object(r.createElementVNode)("div",X,[Object(r.createElementVNode)("img",{class:"icon",src:e.parseImgUrl("taiguv1/envmonitor","minus.svg")},null,8,K)]),Object(r.createElementVNode)("div",Y,[Object(r.createElementVNode)("img",{class:"icon",src:e.parseImgUrl("taiguv1/envmonitor","plus.svg")},null,8,Q)]),$])])):Object(r.createCommentVNode)("",!0)])],2)}],["__scopeId","data-v-07ad1392"]]),{class:"screen-box active"}),se={class:"top"},oe=["src"],ue=function(e){return Object(r.pushScopeId)("data-v-0441de66"),e=e(),Object(r.popScopeId)(),e}((function(){return Object(r.createElementVNode)("div",{class:"top-right"},[Object(r.createElementVNode)("div",{class:"title"},"投屏"),Object(r.createElementVNode)("div",{class:"status"},"关闭")],-1)})),le={class:"bottom"};n("a9e3");var ce=n("75e6"),de=(ce=Object(r.defineComponent)({components:(de={Switch:Z.a},Object(J.a)(de,ce.a.Component.name,ce.a.Component),Object(J.a)(de,"Loading",te.a),de),props:{modeType:{type:Number,default:1}},setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:ne.y,type:1,checkMode:function(e){n.type=e}});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),n("97eb"),re()(ce,[["render",function(e,t,n,i,a,s){return Object(r.openBlock)(),Object(r.createElementBlock)("div",ae,[Object(r.createElementVNode)("div",se,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor","active/screen_cast.svg"),alt:""},null,8,oe),ue]),Object(r.createElementVNode)("div",le,[Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["btn",1==e.type?"btn-active":""]),onClick:t[0]||(t[0]=function(t){return e.checkMode(1)})}," 有线投屏 ",2),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["btn",2==e.type?"btn-active":""]),onClick:t[1]||(t[1]=function(t){return e.checkMode(2)})}," 无线投屏 ",2),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["btn",3==e.type?"btn-active":""]),onClick:t[2]||(t[2]=function(t){return e.checkMode(3)})}," Team Room ",2)])])}],["__scopeId","data-v-0441de66"]])),he={class:"top"},pe=["src"],fe={class:"top-right"},me={class:"bottom"},ge={class:"air-info"},ve=function(e){return Object(r.pushScopeId)("data-v-df4f9dd0"),e=e(),Object(r.popScopeId)(),e}((function(){return Object(r.createElementVNode)("div",{class:"left"},[Object(r.createElementVNode)("div",{class:"text"},"音量"),Object(r.createElementVNode)("div",{class:"status"},"已关闭")],-1)})),ye={key:0,class:"temp"},_e={key:0,class:"temp-box"},be=[Object(r.createStaticVNode)('<div class="bar" data-v-df4f9dd0><div class="text text-left active-text" data-v-df4f9dd0>12</div><div class="active-bar" data-v-df4f9dd0><div class="line" data-v-df4f9dd0></div></div><div class="text text-right" data-v-df4f9dd0>100</div></div>',1)],Te=(ce=Object(r.defineComponent)({components:(ce={Switch:Z.b},Object(J.a)(ce,ee.a.Component.name,ee.a.Component),Object(J.a)(ce,"Loading",te.b),ce),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:ne.y,isOpen:!1});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),ce=(n("90f1"),n("2997"),re()(ce,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["volumn-box",e.isOpen?"active":""])},[Object(r.createElementVNode)("div",he,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/volumn.png":"volumn.svg"),alt:""},null,8,pe),Object(r.createElementVNode)("div",fe,[Object(r.createVNode)(o,{class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.3)",modelValue:e.isOpen,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.isOpen=t})},null,8,["modelValue"])])]),Object(r.createElementVNode)("div",me,[Object(r.createElementVNode)("div",ge,[ve,e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",ye,"26")):Object(r.createCommentVNode)("",!0)]),e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",_e,be)):Object(r.createCommentVNode)("",!0)])],2)}],["__scopeId","data-v-df4f9dd0"]])),{class:"top"}),Se=["src"],Ee={class:"top-right"},ke={class:"bottom"},we=function(e){return Object(r.pushScopeId)("data-v-73294f42"),e=e(),Object(r.popScopeId)(),e}((function(){return Object(r.createElementVNode)("div",{class:"text"},"光照",-1)})),Ce={class:"status"},Oe=["src"],xe=Object(r.defineComponent)({components:(xe={Switch:Z.b},Object(J.a)(xe,ee.a.Component.name,ee.a.Component),Object(J.a)(xe,"Loading",te.b),xe),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:ne.y,isOpen:!1,searchMore:function(){t.emit("showMore")}});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),Ie=(xe=(n("4dd7"),n("12e7"),re()(xe,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["volumn-box",e.isOpen?"active":""])},[Object(r.createElementVNode)("div",Te,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/lamp.svg":"lamp.svg"),alt:""},null,8,Se),Object(r.createElementVNode)("div",Ee,[Object(r.createVNode)(o,{class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.3)",modelValue:e.isOpen,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.isOpen=t})},null,8,["modelValue"])])]),Object(r.createElementVNode)("div",ke,[we,Object(r.createElementVNode)("div",Ce,Object(r.toDisplayString)(e.isOpen?"已开启":"已关闭"),1),Object(r.createElementVNode)("div",{class:"right",onClick:t[1]||(t[1]=function(){return e.searchMore&&e.searchMore.apply(e,arguments)})},[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/filter.svg":"filter.svg"),alt:""},null,8,Oe)])])],2)}],["__scopeId","data-v-73294f42"]])),{class:"top"}),Ae=["src"],Pe={class:"top-right"},Le={class:"bottom"},De=function(e){return Object(r.pushScopeId)("data-v-738fc8e4"),e=e(),Object(r.popScopeId)(),e}((function(){return Object(r.createElementVNode)("div",{class:"text"},"窗帘",-1)})),Ne={class:"status"};function Re(e){return Object(r.pushScopeId)("data-v-1867ee54"),e=e(),Object(r.popScopeId)(),e}var Me=Object(r.defineComponent)({components:(Me={Switch:Z.b},Object(J.a)(Me,ee.a.Component.name,ee.a.Component),Object(J.a)(Me,"Loading",te.b),Me),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:ne.y,isOpen:!1});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),je=(Me=(n("9e6f"),n("4878"),re()(Me,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["volumn-box",e.isOpen?"active":""])},[Object(r.createElementVNode)("div",Ie,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/curtain.svg":"curtain.svg"),alt:""},null,8,Ae),Object(r.createElementVNode)("div",Pe,[Object(r.createVNode)(o,{class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.3)",modelValue:e.isOpen,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.isOpen=t})},null,8,["modelValue"])])]),Object(r.createElementVNode)("div",Le,[De,Object(r.createElementVNode)("div",Ne,Object(r.toDisplayString)(e.isOpen?"已开启":"已关闭"),1)])],2)}],["__scopeId","data-v-738fc8e4"]])),{class:"more-box"}),Ue={class:"light-more-top"},Be={class:"left"},Fe={class:"light-box"},Ve=["src"],qe=Re((function(){return Object(r.createElementVNode)("div",{class:"light-name"},"光照",-1)})),He=Re((function(){return Object(r.createElementVNode)("div",{class:"right"},[Object(r.createElementVNode)("div",{class:"control"},"全开"),Object(r.createElementVNode)("div",{class:"control"},"全关")],-1)})),We={class:"light-bottom"},Ge={class:"name"};ee=Object(r.defineComponent)({components:(Z={Switch:Z.b},Object(J.a)(Z,ee.a.Component.name,ee.a.Component),Object(J.a)(Z,"Loading",te.b),Z),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:ne.y,isOpen:!1,childLights:[{name:"主灯",isOpen:!1},{name:"氛围灯",isOpen:!1},{name:"吸顶灯",isOpen:!1},{name:"吊灯",isOpen:!1},{name:"壁灯",isOpen:!1}]});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),n("0e29"),n("fc3c"),J=re()(ee,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",je,[Object(r.createElementVNode)("div",Ue,[Object(r.createElementVNode)("div",Be,[Object(r.createElementVNode)("div",Fe,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor","active/lamp.svg"),alt:""},null,8,Ve)]),qe]),He]),Object(r.createElementVNode)("div",We,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(e.childLights,(function(e,t){return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["item-box",e.isOpen?"light-box-active ":""])},[Object(r.createElementVNode)("div",Ge,Object(r.toDisplayString)(e.name),1),Object(r.createVNode)(o,{class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.08)",modelValue:e.isOpen,"onUpdate:modelValue":function(t){return e.isOpen=t}},null,8,["modelValue","onUpdate:modelValue"])],2)})),256))])])}],["__scopeId","data-v-1867ee54"]]),te=n("b95f"),Z=Object(r.defineComponent)({components:{Screen:de,Volumn:ce,Lamp:xe,Air:ie,Curtain:Me,LightMore:J,videoPlay:te.videoPlay},setup:function(){var e=Object(r.reactive)({parseImgUrl:ne.y,type:"zh",lanageArr:[{type:"zh",text:"中"},{type:"en",text:"EN"}],checkLanage:function(t){e.type=t.type},boxLine:n("76d1"),roomData:[{id:"room1",name:"ROOM EOS",modeBg:"linear-gradient(113.73deg, rgba(47, 36, 28, 0.4) 17.26%, rgba(47, 36, 28, 0.8) 55.71%)",bg:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room1.png",video:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video1.mov"},{id:"room2",name:"ROOM METIS",modeBg:"linear-gradient(113.73deg, rgba(37, 21, 8, 0.4) 17.26%, rgba(37, 21, 8, 0.8) 55.71%)",bg:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room2.png",video:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video2.mp4"},{id:"room3",name:"ROOM NAIAD",modeBg:"linear-gradient(113.73deg, rgba(8, 14, 37, 0.4) 17.26%, rgba(10, 15, 33, 0.9) 55.71%)",bg:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room3.png",video:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video3.mov"},{id:"room4",name:"ROOM HELIOS",modeBg:"linear-gradient(113.73deg, rgba(32, 5, 5, 0.4) 17.26%, rgba(28, 7, 7, 0.8) 55.71%)",bg:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room4.png",video:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video4.mp4"},{id:"room5",name:"ROOM GAIA",modeBg:"linear-gradient(113.73deg, rgba(21, 32, 26, 0.5) 17.26%, rgba(14, 30, 21, 0.8) 55.71%)",bg:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room5.png",video:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video5.mp4"},{id:"room6",name:"ROOM AURA",modeBg:"linear-gradient(113.73deg, rgba(4, 18, 32, 0.5) 17.26%, rgba(6, 18, 32, 0.8) 55.71%)",bg:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room6.png",video:"https://reserv-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video6.mov"}],roomInfo:"",modeType:1,checkModel:function(t){e.modeType=t},airStatus:!1,getStatus:function(t){e.airStatus=t},isLightColorFlag:!1,lightData:[],showMore:function(t){e.isLightColorFlag=!0}});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){var t=Object(P.c)().query.id;e.roomInfo=e.roomData[0],e.roomData.map((function(n){n.id==t&&(e.roomInfo=n)})),e.roomInfo.logo=n("0d86"),e.roomInfo.location="3F"})),Object(A.a)({},Object(r.toRefs)(e))}}),n("e1c7"),n("b13f"),t.default=re()(Z,[["render",function(e,t,n,i,I,A){var P=Object(r.resolveComponent)("Screen"),L=Object(r.resolveComponent)("Volumn"),D=Object(r.resolveComponent)("Lamp"),N=Object(r.resolveComponent)("Air"),R=Object(r.resolveComponent)("Curtain"),M=Object(r.resolveComponent)("LightMore"),j=Object(r.resolveComponent)("van-popup");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:"main",style:Object(r.normalizeStyle)({"background-image":"url("+e.roomInfo.bg+")"})},[Object(r.createElementVNode)("video",{class:"video-image",autoplay:!0,muted:!0,loop:!0,preload:!0,controls:!1,poster:e.roomInfo.bg,src:e.roomInfo.video},null,8,a),s,Object(r.createElementVNode)("div",o,[Object(r.createElementVNode)("div",u,[Object(r.createElementVNode)("img",{class:"logo",src:e.roomInfo.logo},null,8,l),Object(r.createElementVNode)("div",c,Object(r.toDisplayString)(e.roomInfo.name),1),Object(r.createElementVNode)("div",d,Object(r.toDisplayString)(e.roomInfo.location),1)]),Object(r.createElementVNode)("div",h,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(e.lanageArr,(function(t){return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["language-item",e.type==t.type?"l-active":""]),onClick:function(n){return e.checkLanage(t)}},Object(r.toDisplayString)(t.text),11,p)})),256))]),Object(r.createElementVNode)("div",f,[Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["item",1==e.modeType?"active":""]),onClick:t[0]||(t[0]=function(t){return e.checkModel(1)})},[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",1==e.modeType?"active/meeting.svg":"meeting.svg"),alt:""},null,8,m),g],2),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["item",2==e.modeType?"active":""]),onClick:t[1]||(t[1]=function(t){return e.checkModel(2)})},[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",2==e.modeType?"active/projector.svg":"projector.svg"),alt:""},null,8,v),y],2),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["item",3==e.modeType?"active":""]),onClick:t[2]||(t[2]=function(t){return e.checkModel(3)})},[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",3==e.modeType?"active/stop.svg":"stop.svg"),alt:""},null,8,_),b],2)]),Object(r.createElementVNode)("div",T,[Object(r.createElementVNode)("img",{class:"box-line",src:e.boxLine},null,8,S),E])]),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["fotter",e.airStatus?"small":"fotter"])},[Object(r.createElementVNode)("div",k,[Object(r.createVNode)(P,{modeType:e.modeType},null,8,["modeType"])]),Object(r.createElementVNode)("div",w,[Object(r.createVNode)(L)]),Object(r.createElementVNode)("div",C,[Object(r.createVNode)(D,{onShowMore:e.showMore},null,8,["onShowMore"])]),Object(r.createElementVNode)("div",O,[Object(r.createVNode)(N,{onGetStatus:e.getStatus},null,8,["onGetStatus"])]),Object(r.createElementVNode)("div",x,[Object(r.createVNode)(R)])],2),Object(r.createVNode)(j,{show:e.isLightColorFlag,"onUpdate:show":t[3]||(t[3]=function(t){return e.isLightColorFlag=t}),position:"right","close-on-click-overlay":!0,class:"taigu-popup",teleport:"#app"},{default:Object(r.withCtx)((function(){return[Object(r.createElementVNode)("div",null,[Object(r.createVNode)(M)])]})),_:1},8,["show"])],4)}],["__scopeId","data-v-707b02e4"]])},c540:function(e,t,n){"use strict";n("9f18")},c5f7:function(e,t,n){n("c975"),n("d3b7"),n("25f0"),e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},cb59:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},d02c:function(e,t,n){n=n("ef34");var i=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return r.prototype=e,new r};function r(){}function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}return e=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/),e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function o(){this.values=i(null)}function u(e,t,n,i){var r,a,s=i?e.split(i):[e];for(r in s)"string"==typeof s[r]&&2===(a=s[r].split(n)).length&&t(a[0].trim(),a[1].trim())}((a.prototype=i(Error.prototype)).constructor=a).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var l=n.createElement&&n.createElement("textarea"),c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},d={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},h={v:"title",lang:"lang"},p={rt:"ruby"};function f(e,t){for(var n,i,r,a,o,u,f=e.document.createElement("div"),m=f,g=[];null!==(n=function(){if(!t)return null;var e=t.match(/^([^<]*)(<[^>]*>?)?/);return e=e[1]||e[2],t=t.substr(e.length),e}());)"<"===n[0]?"/"===n[1]?g.length&&g[g.length-1]===n.substr(2).replace(">","")&&(g.pop(),m=m.parentNode):(r=s(n.substr(1,n.length-2)))?(i=e.document.createProcessingInstruction("timestamp",r),m.appendChild(i)):(r=n.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(a=r[1],o=r[3],u=void 0,u=c[a],(i=u?(u=e.document.createElement(u),(a=h[a])&&o&&(u[a]=o.trim()),u):null)&&(a=m,p[(o=i).localName]&&p[o.localName]!==a.localName||(r[2]&&((u=r[2].split(".")).forEach((function(e){var t=/^bg_/.test(e);e=t?e.slice(3):e;d.hasOwnProperty(e)&&(e=d[e],i.style[t?"background-color":"color"]=e)})),i.className=u.join(" ")),g.push(r[1]),m.appendChild(i),m=i))):m.appendChild(e.document.createTextNode((o=n,l.innerHTML=o,o=l.textContent,l.textContent="",o)));return f}var m=[[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 g(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;0<=n;n--)e.push(t.childNodes[n])}for(i(t,e);n=function e(t){if(!t||!t.length)return null;var n,r=t.pop(),a=r.textContent||r.innerText;return a?(n=a.match(/^.*(\n|\r)/))?n[t.length=0]:a:"ruby"===r.tagName?e(t):r.childNodes?(i(t,r),e(t)):void 0}(t);)for(var r=0;r<n.length;r++)if(function(e){for(var t=0;t<m.length;t++){var n=m[t];if(e>=n[0]&&e<=n[1])return 1}}(n.charCodeAt(r)))return"rtl";return"ltr"}function v(){}function y(e,t,n){v.call(this),this.cue=t,this.cueDiv=f(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"},r=(this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:g(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv),0);switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function _(e){var t,n,i,r;e.div&&(t=e.div.offsetHeight,n=e.div.offsetWidth,i=e.div.offsetTop,r=(r=e.div.childNodes)&&(r=r[0])&&r.getClientRects&&r.getClientRects(),e=e.div.getBoundingClientRect(),r=r?Math.max(r[0]&&r[0].height||0,e.height/r.length):0),this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||t,this.bottom=e.bottom||i+(e.height||t),this.width=e.width||n,this.lineHeight=void 0!==r?r:e.lineHeight}function b(e,t,n,i){var r,a=new _(t),s=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}(s),u=[];if(s.snapToLines){switch(s.vertical){case"":u=["+y","-y"],r="height";break;case"rl":u=["+x","-x"],r="width";break;case"lr":u=["-x","+x"],r="width"}var l=a.lineHeight,c=l*Math.round(o),d=n[r]+l,h=u[0];Math.abs(c)>d&&(c=c<0?-1:1,c*=Math.ceil(d/l)*l),o<0&&(c+=""===s.vertical?n.height:n.width,u=u.reverse()),a.move(h,c)}else{var p=a.lineHeight/n.height*100;switch(s.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}u=["+y","-x","+x","-y"],a=new _(t)}d=function(e,t){for(var r,a=new _(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(n,t[o])||e.within(n)&&e.overlapsAny(i);)e.move(t[o]);if(e.within(n))return e;var u=e.intersectPercentage(n);u<s&&(r=new _(e),s=u),e=new _(a)}return r||a}(a,u),t.move(d.toCSSCompatValues(n))}function T(){}v.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},v.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(y.prototype=i(v.prototype)).constructor=y,_.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},_.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},_.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},_.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},_.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},_.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},_.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},_.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},T.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},T.convertCueToDOMTree=function(e,t){return e&&t?f(e,t):null},T.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1}(t))for(var r,a,s=[],o=_.getSimpleBoxPosition(i),u={font:Math.round(.05*o.height*100)/100+"px sans-serif"},l=0;l<t.length;l++)a=t[l],r=new y(e,a,u),i.appendChild(r.div),b(0,r,o,s),a.displayState=r.div,s.push(_.getSimpleBoxPosition(r));else for(var c=0;c<t.length;c++)i.appendChild(t[c].displayState)},(T.Parser=function(e,t,n){n||(n=t,t={}),t=t||{},this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof a))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function i(e){e.match(/X-TIMESTAMP-MAP/)?u(e,(function(e,n){var i;"X-TIMESTAMP-MAP"===e&&(e=n,i=new o,u(e,(function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",s(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")}))}),/=/):u(e,(function(e,n){var i;"Region"===e&&(e=n,i=new o,u(e,(function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var n=t.split(",");if(2!==n.length)break;var r=new o;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;i.set(e+"X",r.get("x")),i.set(e+"Y",r.get("y"));break;case"scroll":i.alt(e,t,["up"])}}),/=/,/\s/),i.has("id")&&((e=new(t.vttjs.VTTRegion||t.window.VTTRegion)).width=i.get("width",100),e.lines=i.get("lines",3),e.regionAnchorX=i.get("regionanchorX",0),e.regionAnchorY=i.get("regionanchorY",100),e.viewportAnchorX=i.get("viewportanchorX",0),e.viewportAnchorY=i.get("viewportanchorY",100),e.scroll=i.get("scroll",""),t.onregion&&t.onregion(e),t.regionList.push({id:i.get("id"),region:e})))}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var r,l=(r=n()).match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}for(var c=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(c?c=!1:r=n(),t.state){case"HEADER":/:/.test(r)?i(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===r.indexOf("--\x3e")){t.cue.id=r;continue}case"CUE":try{!function(e,t,n){var i=e;function r(){var t=s(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(){e=e.replace(/^\s+/,"")}if(l(),t.startTime=r(),l(),"--\x3e"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),l(),t.endTime=r(),l();var c=e,d=new o;u(c,(function(e,t){switch(e){case"region":for(var i=n.length-1;0<=i;i--)if(n[i].id===t){d.set(e,n[i].region);break}break;case"vertical":d.alt(e,t,["rl","lr"]);break;case"line":var r=t.split(","),a=r[0];d.integer(e,a),d.percent(e,a)&&d.set("snapToLines",!1),d.alt(e,a,["auto"]),2===r.length&&d.alt("lineAlign",r[1],["start","center","end"]);break;case"position":r=t.split(","),d.percent(e,r[0]),2===r.length&&d.alt("positionAlign",r[1],["start","center","end"]);break;case"size":d.percent(e,t);break;case"align":d.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=d.get("region",null),t.vertical=d.get("vertical","");try{t.line=d.get("line","auto")}catch(r){}t.lineAlign=d.get("lineAlign","start"),t.snapToLines=d.get("snapToLines",!0),t.size=d.get("size",100);try{t.align=d.get("align","center")}catch(r){t.align=d.get("align","middle")}try{t.position=d.get("position","auto")}catch(r){t.position=d.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=d.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(r,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var d=-1!==r.indexOf("--\x3e");if(!r||d&&(c=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new a(a.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},e.exports=T},d0a3:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},d136:function(e,t,n){var i,r,a,s,o;i=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,a=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=o.parseURL(e);if(i)return i.path=o.normalizePath(i.path),o.buildURLFromParts(i);throw new Error("Error trying to parse base URL.")}if(i=o.parseURL(t),!i)throw new Error("Error trying to parse relative URL.");if(i.scheme)return n.alwaysNormalize?(i.path=o.normalizePath(i.path),o.buildURLFromParts(i)):t;if(t=o.parseURL(e),!t)throw new Error("Error trying to parse base URL.");!t.netLoc&&t.path&&"/"!==t.path[0]&&(e=r.exec(t.path),t.netLoc=e[1],t.path=e[2]),t.netLoc&&!t.path&&(t.path="/");var a;e={scheme:t.scheme,netLoc:i.netLoc,path:null,params:i.params,query:i.query,fragment:i.fragment};return i.netLoc||(e.netLoc=t.netLoc,"/"!==i.path[0]&&(i.path?(a=(a=t.path).substring(0,a.lastIndexOf("/")+1)+i.path,e.path=o.normalizePath(a)):(e.path=t.path,i.params||(e.params=t.params,i.query||(e.query=t.query))))),null===e.path&&(e.path=n.alwaysNormalize?o.normalizePath(i.path):i.path),o.buildURLFromParts(e)},parseURL:function(e){return e=i.exec(e),e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(a,"");e.length!==(e=e.replace(s,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=o},d270:function(e,t,n){},d4ef:function(e,t,n){},d749:function(e,t,n){"use strict";function i(e){e=/([0-9.]*)?@?([0-9.]*)?/.exec(e||"");var t={};return e[1]&&(t.length=parseInt(e[1],10)),e[2]&&(t.offset=parseInt(e[2],10)),t}function r(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},r=n.length;r--;)""!==n[r]&&((t=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i}function a(e){var t={};return Object.keys(e).forEach((function(n){t[m(n)]=e[n]})),t}function s(e){var t,n,i,r,a,s=e.serverControl,o=e.targetDuration;e=e.partTargetDuration;s&&(t="#EXT-X-SERVER-CONTROL",n="holdBack",i="partHoldBack",r=o&&3*o,a=e&&2*e,o&&!s.hasOwnProperty(n)&&(s[n]=r,this.trigger("info",{message:t+" defaulting HOLD-BACK to targetDuration * 3 ("+r+")."})),r&&s[n]<r&&(this.trigger("warn",{message:t+" clamping HOLD-BACK ("+s[n]+") to targetDuration * 3 ("+r+")"}),s[n]=r),e&&!s.hasOwnProperty(i)&&(s[i]=3*e,this.trigger("info",{message:t+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+s[i]+")."})),e&&s[i]<a&&(this.trigger("warn",{message:t+" clamping PART-HOLD-BACK ("+s[i]+") to partTargetDuration * 2 ("+a+")."}),s[i]=a))}n.d(t,"a",(function(){return g}));t=n("55b5");var o=n.n(t),u=(t=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){return!!this.listeners[e]&&(t=this.listeners[e].indexOf(t),this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(t,1),-1<t)},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}(),n("a559")),l=n.n(u),c=(u=n("3c96"),n.n(u)),d=n("ffdf"),h=function(e){function t(){var t=e.call(this)||this;return t.buffer="",t}return o()(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");-1<t;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(t),p=String.fromCharCode(9),f=function(e){function t(){var t=e.call(this)||this;return t.customParsers=[],t.tagMappers=[],t}o()(t,e);var n=t.prototype;return n.push=function(e){var t,n,a=this;0!==(e=e.trim()).length&&("#"!==e[0]?this.trigger("data",{type:"uri",uri:e}):this.tagMappers.reduce((function(t,n){return n=n(e),n===e?t:t.concat([n])}),[e]).forEach((function(e){for(var s,o,u=0;u<a.customParsers.length;u++)if(a.customParsers[u].call(a,e))return;if(0!==e.indexOf("#EXT"))a.trigger("data",{type:"comment",text:e.slice(1)});else if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))a.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void a.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void a.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void a.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void a.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void a.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void a.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return n=l()(i(t[1]),{type:"tag",tagType:"byterange"}),void a.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void a.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e))return n={type:"tag",tagType:"map"},t[1]&&((o=r(t[1])).URI&&(n.uri=o.URI),o.BYTERANGE&&(n.byterange=i(o.BYTERANGE))),void a.trigger("data",n);if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e))return n={type:"tag",tagType:"stream-inf"},t[1]&&(n.attributes=r(t[1]),n.attributes.RESOLUTION&&(o={},(s=n.attributes.RESOLUTION.split("x"))[0]&&(o.width=parseInt(s[0],10)),s[1]&&(o.height=parseInt(s[1],10)),n.attributes.RESOLUTION=o),n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))),void a.trigger("data",n);if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=r(t[1])),void a.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))a.trigger("data",{type:"tag",tagType:"endlist"});else{if(!(t=/^#EXT-X-DISCONTINUITY/.exec(e)))return(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))?(n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void a.trigger("data",n)):(t=/^#EXT-X-KEY:?(.*)$/.exec(e))?(n={type:"tag",tagType:"key"},t[1]&&(n.attributes=r(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void a.trigger("data",n)):(t=/^#EXT-X-START:?(.*)$/.exec(e))?(n={type:"tag",tagType:"start"},t[1]&&(n.attributes=r(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void a.trigger("data",n)):(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))?(n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void a.trigger("data",n)):(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))?(n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void a.trigger("data",n)):(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))?(n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void a.trigger("data",n)):(t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1]?((n={type:"tag",tagType:"skip"}).attributes=r(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(p)),void a.trigger("data",n)):(t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1]?((n={type:"tag",tagType:"part"}).attributes=r(t[1]),["DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=i(n.attributes.BYTERANGE)),void a.trigger("data",n)):(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1]?((n={type:"tag",tagType:"server-control"}).attributes=r(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),void a.trigger("data",n)):(t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1]?((n={type:"tag",tagType:"part-inf"}).attributes=r(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void a.trigger("data",n)):(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1]?((n={type:"tag",tagType:"preload-hint"}).attributes=r(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){var t;n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10),t="BYTERANGE-LENGTH"===e?"length":"offset",n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e])})),void a.trigger("data",n)):(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1]?((n={type:"tag",tagType:"rendition-report"}).attributes=r(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void a.trigger("data",n)):void a.trigger("data",{type:"tag",data:e.slice(4)});a.trigger("data",{type:"tag",tagType:"discontinuity"})}}})))},n.addParser=function(e){var t=this,n=e.expression,i=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push((function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:a}),!0}))},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push((function(e){return t.test(e)?n(e):e}))},t}(t),m=function(e){return e.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()}))},g=function(e){function t(){var t,n,i=e.call(this)||this,r=(i.lineStream=new h,i.parseStream=new f,i.lineStream.pipe(i.parseStream),c()(i)),o=[],u={},p=!1,m={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},g=0,v=(i.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},0),y=0;return i.on("end",(function(){u.uri||!u.parts&&!u.preloadHints||(!u.map&&t&&(u.map=t),!u.key&&n&&(u.key=n),u.timeline||"number"!=typeof g||(u.timeline=g),i.manifest.preloadSegment=u)})),i.parseStream.on("data",(function(e){var i,c;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&((u.byterange=t).length=e.length,"offset"in e||(e.offset=v)),"offset"in e&&((u.byterange=t).offset=e.offset),v=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),0<e.duration&&(u.duration=e.duration),0===e.duration&&(u.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key:function(){if(e.attributes)if("NONE"===e.attributes.METHOD)n=null;else{if(e.attributes.URI)return"com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes})):"com.microsoft.playready"===e.attributes.KEYFORMAT?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI})):"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT?-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Object(d.a)(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"})):(e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void(void 0!==e.attributes.IV&&(n.iv=e.attributes.IV)));this.trigger("warn",{message:"ignoring key declaration without URI"})}else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,g=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){t={},e.uri&&(t.uri=e.uri),e.byterange&&(t.byterange=e.byterange),n&&(t.key=n)},"stream-inf":function(){this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||m,e.attributes?(u.attributes||(u.attributes={}),l()(u.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){var t;this.manifest.mediaGroups=this.manifest.mediaGroups||m,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME?((t=this.manifest.mediaGroups[e.attributes.TYPE])[e.attributes["GROUP-ID"]]=t[e.attributes["GROUP-ID"]]||{},i=t[e.attributes["GROUP-ID"]],(c={default:/yes/i.test(e.attributes.DEFAULT)}).default?c.autoselect=!0:c.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(c.language=e.attributes.LANGUAGE),e.attributes.URI&&(c.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(c.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(c.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(c.forced=/yes/i.test(e.attributes.FORCED)),i[e.attributes.NAME]=c):this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){g+=1,u.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),u.dateTimeString=e.dateTimeString,u.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,s.call(this,this.manifest))},start:function(){!e.attributes||isNaN(e.attributes["TIME-OFFSET"])?this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"}):this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}},"cue-out":function(){u.cueOut=e.data},"cue-out-cont":function(){u.cueOutCont=e.data},"cue-in":function(){u.cueIn=e.data},skip:function(){this.manifest.skip=a(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this,n=(p=!0,this.manifest.segments.length),i=a(e.attributes);u.parts=u.parts||[],u.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=y),y=i.byterange.offset+i.byterange.length),i=u.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=a(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),s.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=a(e.attributes),i=n.type&&"PART"===n.type,r=(u.preloadHints=u.preloadHints||[],u.preloadHints.push(n),!n.byterange||n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?y:0,i&&(y=n.byterange.offset+n.byterange.length)),u.preloadHints.length-1);if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var s=0;s<u.preloadHints.length-1;s++){var o=u.preloadHints[s];o.type&&o.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+s})}},"rendition-report":function(){var t=a(e.attributes),n=(t=(this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t),this.manifest.renditionReports.length-1),["LAST-MSN","URI"]);p&&n.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+t,e.attributes,n)},"part-inf":function(){this.manifest.partInf=a(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),s.call(this,this.manifest)}}[e.tagType]||function(){}).call(r)},uri:function(){u.uri=e.uri,o.push(u),!this.manifest.targetDuration||"duration"in u||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),u.duration=this.manifest.targetDuration),n&&(u.key=n),u.timeline=g,t&&(u.map=t),y=0,u={}},comment:function(){},custom:function(){e.segment?(u.custom=u.custom||{},u.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)})),i}o()(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var i=[];n.forEach((function(e){t.hasOwnProperty(e)||i.push(e)})),i.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+i.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(t)},d9d2:function(e,t,n){},de66:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"k",(function(){return s})),n.d(t,"j",(function(){return o})),n.d(t,"i",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"h",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return g}));t=n("be09");var i=function(e){return e.toString(2).length},r=function(e,t,n){return(function(e,t){for(var n="";t--;)n+=e;return n}(n=void 0===n?" ":n,t)+e.toString()).slice(-t)},a=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},s=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||a(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},o=function(e){e=s(e);for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16),2,"0");return t},u=function(e){e=s(e);for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(2),8,"0");return t},l=n.n(t).a.BigInt||Number,c=[l("0x1"),l("0x100"),l("0x10000"),l("0x1000000"),l("0x100000000"),l("0x10000000000"),l("0x1000000000000"),l("0x100000000000000"),l("0x10000000000000000")],d=(n=new Uint16Array([65484]),255===(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength))[0]||n[0],function(e,t){t=void 0===t?{}:t;var n=t.signed,i=(n=void 0!==n&&n,t=t.le,void 0!==t&&t);e=s(e),t=i?"reduce":"reduceRight",t=(e[t]||Array.prototype[t]).call(e,(function(t,n,r){return r=i?r:Math.abs(r+1-e.length),t+l(n)*c[r]}),l(0));return n&&(n=c[e.length]/l(2)-l(1))<(t=l(t))&&(t=(t=t-n-n)-l(2)),Number(t)}),h=function(e,t){t=(void 0===t?{}:t).le;for(var n=void 0!==t&&t,r=(e=l(e="bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e?0:e),t=e,Math.ceil(i(t)/8)),a=new Uint8Array(new ArrayBuffer(r)),s=0;s<r;s++){var o=n?s:Math.abs(s+1-a.length);a[o]=Number(e/c[s]&l(255)),e<0&&(a[o]=Math.abs(~a[o]),a[o]-=0===s?1:2)}return a},p=function(e){if(!e)return"";e=Array.prototype.slice.call(e),e=String.fromCharCode.apply(null,s(e));try{return decodeURIComponent(escape(e))}catch(e){}return e},f=function(e,t){if("string"!=typeof(e="string"!=typeof e&&e&&"function"==typeof e.toString?e.toString():e))return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},m=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if((t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e}))).length<=1)return s(t[0]);var i=t.reduce((function(e,t,n){return e+(t.byteLength||t.length)}),0),r=new Uint8Array(i),a=0;return t.forEach((function(e){e=s(e),r.set(e,a),a+=e.byteLength})),r},g=function(e,t,n){n=void 0===n?{}:n;var i=n.offset,r=void 0===i?0:i,a=(i=n.mask,void 0===i?[]:i);e=s(e),n=(t=s(t)).every||Array.prototype.every;return t.length&&e.length-r>=t.length&&n.call(t,(function(t,n){return t===(a[n]?a[n]&e[r+n]:e[r+n])}))}},df33:function(e,t){function n(e){if(!e||"object"!=typeof e||(t=e.which||e.keyCode||e.charCode)&&(e=t),"number"==typeof e)return o[e];var t=String(e);e=i[t.toLowerCase()];return e||((e=r[t.toLowerCase()])?e:1===t.length?t.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){if(e=e.which||e.keyCode||e.charCode,null==e)return!1;if("string"==typeof t){var n=i[t.toLowerCase()];if(n)return n===e;if(n=r[t.toLowerCase()])return n===e}else if("number"==typeof t)return t===e;return!1}};
  2. /*!
  3. * Programatically add the following
  4. */
  5. for(var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91},a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var s,o=t.names=t.title={};for(a in i)o[i[a]]=a;for(s in r)i[s]=r[s]},e003:function(e,t,n){var i=n("89a7").NAMESPACE,r=(n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]")),a=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$"),s=0,o=1,u=2,l=3,c=4,d=5,h=6,p=7;function f(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,f)}function m(){}function g(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function v(e,t,n){for(var r=e.tagName,a=null,s=e.length;s--;){var o=e[s],u=o.qName,l=o.value;u=0<(d=u.indexOf(":"))?(c=o.prefix=u.slice(0,d),h=u.slice(d+1),"xmlns"===c&&h):(c=null,"xmlns"===(h=u)&&"");o.localName=h,!1!==u&&(null==a&&(a={},y(n,n={})),n[u]=a[u]=l,o.uri=i.XMLNS,t.startPrefixMapping(u,l))}var c;for(s=e.length;s--;)(c=(o=e[s]).prefix)&&("xml"===c&&(o.uri=i.XML),"xmlns"!==c&&(o.uri=n[c||""]));var d,h=0<(d=r.indexOf(":"))?(c=e.prefix=r.slice(0,d),e.localName=r.slice(d+1)):(c=null,e.localName=r),p=e.uri=n[c||""];if(t.startElement(p,h,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,1;if(t.endElement(p,h,r),a)for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&t.endPrefixMapping(c)}function y(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function _(){this.attributeNames={}}(f.prototype=new Error).name=f.name,m.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),y(t,t={}),function(e,t,n,r,a){function m(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?65535<(t=parseInt(t.substr(1).replace("x","0x")))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t):(a.error("entity not found:"+e),e)}function y(t){var n;O<t&&(n=e.substring(O,t).replace(/&#?\w+;/g,m),k&&b(O),r.characters(n,0,t-O),O=t)}function b(t,n){for(;S<=t&&(n=E.exec(e));)T=n.index,S=T+n[0].length,k.lineNumber++;k.columnNumber=t-T+1}for(var T=0,S=0,E=/.*(?:\r\n?|\n)|.*$/g,k=r.locator,w=[{currentNSMap:t}],C={},O=0;;){try{var x,I,A=e.indexOf("<",O);if(A<0)return e.substr(O).match(/^\s*$/)||(x=r.doc,I=x.createTextNode(e.substr(O)),x.appendChild(I),r.currentElement=I);switch(O<A&&y(A),e.charAt(A+1)){case"/":var P=e.indexOf(">",A+3),L=e.substring(A+2,P).replace(/[ \t\n\r]+$/g,""),D=w.pop(),N=(P<0?(L=e.substring(A+2).replace(/[\s<].*/,""),a.error("end tag name: "+L+" is not complete:"+D.tagName),P=A+1+L.length):L.match(/\s</)&&(L=L.replace(/[\s<].*/,""),a.error("end tag name: "+L+" maybe not complete"),P=A+1+L.length),D.localNSMap),R=D.tagName==L;if(R||D.tagName&&D.tagName.toLowerCase()==L.toLowerCase()){if(r.endElement(D.uri,D.localName,L),N)for(var M in N)Object.prototype.hasOwnProperty.call(N,M)&&r.endPrefixMapping(M);R||a.fatalError("end tag name: "+L+" is not match the current start tagName:"+D.tagName)}else w.push(D);P++;break;case"?":k&&b(A),P=function(e,t,n){var i=e.indexOf("?>",t);return i&&(e=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/))?(e[0].length,n.processingInstruction(e[1],e[2]),i+2):-1}(e,A,r);break;case"!":k&&b(A),P=function(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(a=e.indexOf("--\x3e",t+4),t<a?(n.comment(e,t+4,a-t-4),a+3):(i.error("Unclosed comment"),-1)):-1;if("CDATA["==e.substr(t+3,6))return a=e.indexOf("]]>",t+9),n.startCDATA(),n.characters(e,t+9,a-t-9),n.endCDATA(),a+3;i=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i}(e,t);var r,a=i.length;return 1<a&&/!doctype/i.test(i[0][0])?(e=i[1][0],r=t=!1,3<a&&(/^public$/i.test(i[2][0])?(t=i[3][0],r=4<a&&i[4][0]):/^system$/i.test(i[2][0])&&(r=i[3][0])),i=i[a-1],n.startDTD(e,t,r),n.endDTD(),i.index+i[0].length):-1}(e,A,r,a);break;default:k&&b(A);var j=new _,U=w[w.length-1].currentNSMap,B=(P=function(e,t,n,r,a,f){function m(e,t,i){n.attributeNames.hasOwnProperty(e)&&f.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),i)}for(var g,v=++t,y=s;;){var _=e.charAt(v);switch(_){case"=":if(y===o)g=e.slice(t,v),y=l;else{if(y!==u)throw new Error("attribute equal must after attrName");y=l}break;case"'":case'"':if(y===l||y===o){if(y===o&&(f.warning('attribute value must after "="'),g=e.slice(t,v)),t=v+1,!(0<(v=e.indexOf(_,t))))throw new Error("attribute value no end '"+_+"' match");b=e.slice(t,v),m(g,b,t-1),y=d}else{if(y!=c)throw new Error('attribute value must after "="');b=e.slice(t,v),m(g,b,t),f.warning('attribute "'+g+'" missed start quot('+_+")!!"),t=v+1,y=d}break;case"/":switch(y){case s:n.setTagName(e.slice(t,v));case d:case h:case p:y=p,n.closed=!0;case c:case o:break;case u:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return f.error("unexpected end of input"),y==s&&n.setTagName(e.slice(t,v)),v;case">":switch(y){case s:n.setTagName(e.slice(t,v));case d:case h:case p:break;case c:case o:"/"===(b=e.slice(t,v)).slice(-1)&&(n.closed=!0,b=b.slice(0,-1));case u:y===u&&(b=g),y==c?(f.warning('attribute "'+b+'" missed quot(")!'),m(g,b,t)):(i.isHTML(r[""])&&b.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+b+'" missed value!! "'+b+'" instead!!'),m(b,b,t));break;case l:throw new Error("attribute value missed!!")}return v;case"€":_=" ";default:if(_<=" ")switch(y){case s:n.setTagName(e.slice(t,v)),y=h;break;case o:g=e.slice(t,v),y=u;break;case c:var b=e.slice(t,v);f.warning('attribute "'+b+'" missed quot(")!!'),m(g,b,t);case d:y=h}else switch(y){case u:n.tagName,i.isHTML(r[""])&&g.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=v,y=o;break;case d:f.warning('attribute space is required"'+g+'"!!');case h:y=o,t=v;break;case l:y=c,t=v;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}v++}}(e,A,j,U,m,a),j.length);if(!j.closed&&function(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}(e,P,j.tagName,C)&&(j.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),k&&B){for(var F=g(k,{}),V=0;V<B;V++){var q=j[V];b(q.offset),q.locator=g(k,{})}r.locator=F,v(j,r,U)&&w.push(j),r.locator=k}else v(j,r,U)&&w.push(j);i.isHTML(j.uri)&&!j.closed?P=function(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t);e=e.substring(t+1,a);if(/[&<]/.test(e))return/^script$/i.test(n)||(e=e.replace(/&#?\w+;/g,i)),r.characters(e,0,e.length),a}return t+1}(e,P,j.tagName,m,r):P++}}catch(t){if(t instanceof f)throw t;a.error("element parse error: "+t),P=-1}O<P?O=P:y(Math.max(A,O)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},_.prototype={setTagName:function(e){if(!a.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!a.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=m,t.ParseError=f},e17f:function(e,t,n){"use strict";n("68ef"),n("d4ef"),n("cb51"),n("3743"),n("e3b3"),n("bc1b"),n("1703"),n("a71a"),n("4d75"),n("2fcb")},e1c7:function(e,t,n){"use strict";n("f251")},e1c8:function(e,t,n){n=n("89a7");var i=n.find,r=n.NAMESPACE;function a(e){return""!==e}function s(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function o(e){return e?(e=(e=e)?e.split(/[\t\n\f\r ]+/).filter(a):[],Object.keys(e.reduce(s,{}))):[]}function u(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function l(e,t){var n=e.prototype;function i(){}n instanceof t||(i.prototype=t.prototype,u(n,i=new i),e.prototype=n=i),n.constructor!=e&&(n.constructor=e)}n={};var c=(n.ELEMENT_NODE=1,n.ATTRIBUTE_NODE=2,n.TEXT_NODE=3,n.CDATA_SECTION_NODE=4,n.ENTITY_REFERENCE_NODE=5,n.ENTITY_NODE=6,n.PROCESSING_INSTRUCTION_NODE=7,n.COMMENT_NODE=8,n.DOCUMENT_NODE=9,n.DOCUMENT_TYPE_NODE=10,n.DOCUMENT_FRAGMENT_NODE=11,n.NOTATION_NODE=12,{}),d={},h=(c.INDEX_SIZE_ERR=(d[1]="Index size error",1),c.DOMSTRING_SIZE_ERR=(d[2]="DOMString size error",2),c.HIERARCHY_REQUEST_ERR=(d[3]="Hierarchy request error",3)),p=(c.WRONG_DOCUMENT_ERR=(d[4]="Wrong document",4),c.INVALID_CHARACTER_ERR=(d[5]="Invalid character",5),c.NO_DATA_ALLOWED_ERR=(d[6]="No data allowed",6),c.NO_MODIFICATION_ALLOWED_ERR=(d[7]="No modification allowed",7),c.NOT_FOUND_ERR=(d[8]="Not found",8));function f(e,t){var n;return t instanceof Error?n=t:(n=this,Error.call(this,d[e]),this.message=d[e],Error.captureStackTrace&&Error.captureStackTrace(this,f)),n.code=e,t&&(this.message=this.message+": "+t),n}function m(){}function g(e,t){this._node=e,this._refresh=t,v(this)}function v(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(ne(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var i=n.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];u(n,e),e._inc=t}}function y(){}function _(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function b(e,t,n,i){i?t[_(t,i)]=n:t[t.length++]=n,e&&(t=(n.ownerElement=e).ownerDocument)&&(i&&O(t,e,i),i=e,e=n,(n=t)&&n._inc++,e.namespaceURI===r.XMLNS&&(i._nsMap[e.prefix?e.localName:""]=e.value))}function T(e,t,n){var i=_(t,n);if(!(0<=i))throw new f(p,new Error(e.tagName+"@"+n));for(var r,a=t.length-1;i<a;)t[i]=t[++i];t.length=a,e&&(r=e.ownerDocument)&&(O(r,e,n),n.ownerElement=null)}function S(){}function E(){}function k(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function w(e,t){if(t(e))return 1;if(e=e.firstChild)do{if(w(e,t))return 1}while(e=e.nextSibling)}function C(){this.ownerDocument=this}function O(e,t,n){e&&e._inc++,n.namespaceURI===r.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function x(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,a=0;r;)r=(i[a++]=r).nextSibling;i.length=a,delete i[i.length]}}}function I(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,x(e.ownerDocument,e),t}function A(e){return e&&e.nodeType===E.DOCUMENT_TYPE_NODE}function P(e){return e&&e.nodeType===E.ELEMENT_NODE}function L(e){return e&&e.nodeType===E.TEXT_NODE}function D(e,t){var n;e=e.childNodes||[];if(!i(e,P)&&!A(t))return n=i(e,A),!(t&&n&&e.indexOf(n)>e.indexOf(t))}function N(e,t){var n;e=e.childNodes||[];if(!i(e,(function(e){return P(e)&&e!==t})))return n=i(e,A),!(t&&n&&e.indexOf(n)>e.indexOf(t))}function R(e,t,n){if(!(i=e)||i.nodeType!==E.DOCUMENT_NODE&&i.nodeType!==E.DOCUMENT_FRAGMENT_NODE&&i.nodeType!==E.ELEMENT_NODE)throw new f(h,"Unexpected parent node type "+e.nodeType);var i;if(n&&n.parentNode!==e)throw new f(p,"child not in parent");if(!(i=t)||!(P(i)||L(i)||A(i)||i.nodeType===E.DOCUMENT_FRAGMENT_NODE||i.nodeType===E.COMMENT_NODE||i.nodeType===E.PROCESSING_INSTRUCTION_NODE)||A(t)&&e.nodeType!==E.DOCUMENT_NODE)throw new f(h,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function M(e,t,n){var r=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===E.DOCUMENT_FRAGMENT_NODE){var s=a.filter(P);if(1<s.length||i(a,L))throw new f(h,"More than one element or text in fragment");if(1===s.length&&!D(e,n))throw new f(h,"Element in fragment can not be inserted before doctype")}if(P(t)&&!D(e,n))throw new f(h,"Only one element can be added and only after doctype");if(A(t)){if(i(r,A))throw new f(h,"Only one doctype is allowed");if(a=i(r,P),n&&r.indexOf(a)<r.indexOf(n))throw new f(h,"Doctype can only be inserted before an element");if(!n&&a)throw new f(h,"Doctype can not be appended since element is present")}}function j(e,t,n){var r=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===E.DOCUMENT_FRAGMENT_NODE){var s=a.filter(P);if(1<s.length||i(a,L))throw new f(h,"More than one element or text in fragment");if(1===s.length&&!N(e,n))throw new f(h,"Element in fragment can not be inserted before doctype")}if(P(t)&&!N(e,n))throw new f(h,"Only one element can be added and only after doctype");if(A(t)){if(i(r,(function(e){return A(e)&&e!==n})))throw new f(h,"Only one doctype is allowed");if(a=i(r,P),n&&r.indexOf(a)<r.indexOf(n))throw new f(h,"Doctype can only be inserted before an element")}}function U(e,t,n,i){if(R(e,t,n),e.nodeType===E.DOCUMENT_NODE&&(i||M)(e,t,n),i=t.parentNode,i&&i.removeChild(t),11===t.nodeType){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;for(i=n?n.previousSibling:e.lastChild,r.previousSibling=i,a.nextSibling=n,i?i.nextSibling=r:e.firstChild=r,null==n?e.lastChild=a:n.previousSibling=a;r.parentNode=e,r!==a&&(r=r.nextSibling););return x(e.ownerDocument||e,e),11==t.nodeType&&(t.firstChild=t.lastChild=null),t}function B(){this._nsMap={}}function F(){}function V(){}function q(){}function H(){}function W(){}function G(){}function z(){}function X(){}function K(){}function Y(){}function Q(){}function $(){}function J(e,t){var n,i=[],r=9==this.nodeType&&this.documentElement||this,a=r.prefix,s=r.namespaceURI;return te(this,i,e,t,n=s&&null==a&&null==(a=r.lookupPrefix(s))?[{namespace:s,prefix:null}]:n),i.join("")}function Z(e,t,n){var i=e.prefix||"",a=e.namespaceURI;if(a&&("xml"!==i||a!==r.XML)&&a!==r.XMLNS){for(var s=n.length;s--;){var o=n[s];if(o.prefix===i)return o.namespace!==a}return 1}}function ee(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,k),'"')}function te(e,t,n,i,a){if(a=a||[],i){if(!(e=i(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case 1:var s=e.attributes,o=s.length,u=e.firstChild,l=e.tagName,c=l;if(!(n=r.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var d,h=0;h<s.length;h++)if("xmlns"===s.item(h).name){d=s.item(h).value;break}if(!d)for(var p=a.length-1;0<=p;p--)if(""===(f=a[p]).prefix&&f.namespace===e.namespaceURI){d=f.namespace;break}if(d!==e.namespaceURI){var f;for(p=a.length-1;0<=p;p--)if((f=a[p]).namespace===e.namespaceURI){f.prefix&&(c=f.prefix+":"+l);break}}}t.push("<",c);for(var m=0;m<o;m++)"xmlns"==(g=s.item(m)).prefix?a.push({prefix:g.localName,namespace:g.value}):"xmlns"==g.nodeName&&a.push({prefix:"",namespace:g.value});var g,v,y;for(m=0;m<o;m++)Z(g=s.item(m),0,a)&&(ee(t,(v=g.prefix||"")?"xmlns:"+v:"xmlns",y=g.namespaceURI),a.push({prefix:v,namespace:y})),te(g,t,n,i,a);if(l===c&&Z(e,0,a)&&(ee(t,(v=e.prefix||"")?"xmlns:"+v:"xmlns",y=e.namespaceURI),a.push({prefix:v,namespace:y})),u||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),n&&/^script$/i.test(l))for(;u;)u.data?t.push(u.data):te(u,t,n,i,a.slice()),u=u.nextSibling;else for(;u;)te(u,t,n,i,a.slice()),u=u.nextSibling;t.push("</",c,">")}else t.push("/>");return;case 9:case 11:for(u=e.firstChild;u;)te(u,t,n,i,a.slice()),u=u.nextSibling;return;case 2:return ee(t,e.name,e.value);case 3:return t.push(e.data.replace(/[<&>]/g,k));case 4:return t.push("<![CDATA[",e.data,"]]>");case 8:return t.push("\x3c!--",e.data,"--\x3e");case 10:var _=e.publicId,b=e.systemId;return t.push("<!DOCTYPE ",e.name),void(_?(t.push(" PUBLIC ",_),b&&"."!=b&&t.push(" ",b),t.push(">")):b&&"."!=b?t.push(" SYSTEM ",b,">"):((_=e.internalSubset)&&t.push(" [",_,"]"),t.push(">")));case 7:return t.push("<?",e.target," ",e.data,"?>");case 5:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ne(e,t,n){e[t]=n}c.NOT_SUPPORTED_ERR=(d[9]="Not supported",9),c.INUSE_ATTRIBUTE_ERR=(d[10]="Attribute in use",10),c.INVALID_STATE_ERR=(d[11]="Invalid state",11),c.SYNTAX_ERR=(d[12]="Syntax error",12),c.INVALID_MODIFICATION_ERR=(d[13]="Invalid modification",13),c.NAMESPACE_ERR=(d[14]="Invalid namespace",14),c.INVALID_ACCESS_ERR=(d[15]="Invalid access",15),f.prototype=Error.prototype,u(c,f),m.prototype={length:0,item:function(e){return 0<=e&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)te(this[i],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},g.prototype.item=function(e){return v(this),this[e]||null},l(g,m),y.prototype={length:0,item:m.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new f(10);return t=this.getNamedItem(e.nodeName),b(this._ownerElement,this,e,t),t},setNamedItemNS:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new f(10);return t=this.getNamedItemNS(e.namespaceURI,e.localName),b(this._ownerElement,this,e,t),t},removeNamedItem:function(e){return e=this.getNamedItem(e),T(this._ownerElement,this,e),e},removeNamedItemNS:function(e,t){return e=this.getNamedItemNS(e,t),T(this._ownerElement,this,e),e},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},S.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new C;return i.implementation=this,i.childNodes=new m,i.doctype=n||null,n&&i.appendChild(n),t&&(n=i.createElementNS(e,t),i.appendChild(n)),i},createDocumentType:function(e,t,n){var i=new G;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},E.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return U(this,e,t)},replaceChild:function(e,t){U(this,e,t,j),t&&this.removeChild(t)},removeChild:function(e){return I(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,i){var r=new n.constructor;for(var a in n){var s;!Object.prototype.hasOwnProperty.call(n,a)||"object"!=typeof(s=n[a])&&s!=r[a]&&(r[a]=s)}switch(n.childNodes&&(r.childNodes=new m),r.ownerDocument=t,r.nodeType){case 1:var o=n.attributes,u=r.attributes=new y,l=o.length;u._ownerElement=r;for(var c=0;c<l;c++)r.setAttributeNode(e(t,o.item(c),!0));break;case 2:i=!0}if(i)for(var d=n.firstChild;d;)r.appendChild(e(t,d,i)),d=d.nextSibling;return r}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&3==t.nodeType&&3==e.nodeType?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return 0<this.attributes.length},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i;t=2==t.nodeType?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=2==t.nodeType?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},u(n,E),u(n,E.prototype),C.prototype={nodeName:"#document",nodeType:9,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(11!=e.nodeType)return U(this,e,t),null===(e.ownerDocument=this).documentElement&&1===e.nodeType&&(this.documentElement=e),e;for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),I(this,e)},replaceChild:function(e,t){U(this,e,t,j),e.ownerDocument=this,t&&this.removeChild(t),P(e)&&(this.documentElement=e)},importNode:function(e,t){return function e(t,n,i){var r;switch(n.nodeType){case 1:(r=n.cloneNode(!1)).ownerDocument=t;case 11:break;case 2:i=!0}if(r=r||n.cloneNode(!1),r.ownerDocument=t,r.parentNode=null,i)for(var a=n.firstChild;a;)r.appendChild(e(t,a,i)),a=a.nextSibling;return r}(this,e,t)},getElementById:function(e){var t=null;return w(this.documentElement,(function(n){if(1==n.nodeType&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=o(e);return new g(this,(function(n){var i=[];return 0<t.length&&w(n.documentElement,(function(r){var a,s,u;r!==n&&1===r.nodeType&&(a=r.getAttribute("class"))&&((s=e===a)||(a=o(a),s=t.every((u=a,function(e){return u&&-1!==u.indexOf(e)}))),s&&i.push(r))})),i}))},createElement:function(e){var t=new B;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new m,(t.attributes=new y)._ownerElement=t},createDocumentFragment:function(){var e=new Y;return e.ownerDocument=this,e.childNodes=new m,e},createTextNode:function(e){var t=new q;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new W;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Q;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new F;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new B,i=t.split(":"),r=n.attributes=new y;return n.childNodes=new m,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n},createAttributeNS:function(e,t){var n=new F,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},l(C,E),C.prototype.getElementsByTagName=(B.prototype={nodeType:1,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){return e=this.getAttributeNode(e),e&&e.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){e=this.ownerDocument.createAttribute(e),e.value=e.nodeValue=""+t,this.setAttributeNode(e)},removeAttribute:function(e){e=this.getAttributeNode(e),e&&this.removeAttributeNode(e)},appendChild:function(e){return 11===e.nodeType?this.insertBefore(e,null):(t=this,(e=e).parentNode&&e.parentNode.removeChild(e),e.parentNode=t,e.previousSibling=t.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:t.firstChild=e,t.lastChild=e,x(t.ownerDocument,t,e),e);var t},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){e=this.getAttributeNodeNS(e,t),e&&this.removeAttributeNode(e)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){return e=this.getAttributeNodeNS(e,t),e&&e.value||""},setAttributeNS:function(e,t,n){e=this.ownerDocument.createAttributeNS(e,t),e.value=e.nodeValue=""+n,this.setAttributeNode(e)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new g(this,(function(t){var n=[];return w(t,(function(i){i===t||1!=i.nodeType||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new g(this,(function(n){var i=[];return w(n,(function(r){r===n||1!==r.nodeType||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}}).getElementsByTagName,C.prototype.getElementsByTagNameNS=B.prototype.getElementsByTagNameNS,l(B,E),F.prototype.nodeType=2,l(F,E),V.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(d[h])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var i=this.data.substring(0,e);e=this.data.substring(e+t);this.nodeValue=this.data=n=i+n+e,this.length=n.length}},l(V,E),q.prototype={nodeName:"#text",nodeType:3,splitText:function(e){var t=(n=this.data).substring(e),n=n.substring(0,e);this.data=this.nodeValue=n,this.length=n.length,e=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling),e}},l(q,V),H.prototype={nodeName:"#comment",nodeType:8},l(H,V),W.prototype={nodeName:"#cdata-section",nodeType:4},l(W,V),G.prototype.nodeType=10,l(G,E),z.prototype.nodeType=12,l(z,E),X.prototype.nodeType=6,l(X,E),K.prototype.nodeType=5,l(K,E),Y.prototype.nodeName="#document-fragment",Y.prototype.nodeType=11,l(Y,E),Q.prototype.nodeType=7,l(Q,E),$.prototype.serializeToString=function(e,t,n){return J.call(e,t,n)},E.prototype.toString=J;try{Object.defineProperty&&(Object.defineProperty(g.prototype,"length",{get:function(){return v(this),this.$$length}}),Object.defineProperty(E.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case 1:case 11:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case 1:case 11:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ne=function(e,t,n){e["$$"+t]=n})}catch(t){}t.DocumentType=G,t.DOMException=f,t.DOMImplementation=S,t.Element=B,t.Node=E,t.NodeList=m,t.XMLSerializer=$},e62a:function(e,t,n){},ed6d:function(e,t,n){var i=n("4a4b");e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},ef34:function(e,t,n){(function(t){t=void 0!==t?t:"undefined"!=typeof window?window:{};var i=n(1),r="undefined"!=typeof document?document:(r=t["__GLOBAL_DOCUMENT_CACHE@4"])||(t["__GLOBAL_DOCUMENT_CACHE@4"]=i);e.exports=r}).call(this,n("c8ba"))},f0e2:function(e,t,n){"use strict";n.r(t),function(e){for(var i,r=n("be09"),a=n.n(r),s=(r=n("ef34"),n.n(r)),o=(r=n("a559"),n.n(r)),u=(r=n("df33"),n.n(r)),l=(r=n("3c96"),n.n(r)),c=(r=n("55b5"),n.n(r)),d=(r=n("8c10"),n.n(r)),h=(r=n("3603"),n.n(r)),p=(r=n("2b8c"),n.n(r)),f=(r=n("b17c"),n.n(r)),m=(r=n("ed6d"),n.n(r)),g=(r=n("63ec"),n("d749")),v=n("17a3"),y=n("8b53"),_=n("de66"),b=n("8484"),T=n("81c0"),S=n.n(T),E=n("321f"),k=n("f8a8"),w=n("36c6"),C=(T=n("a128"),T=n.n(T),{}),O=function(e,t){return C[e]=C[e]||[],t&&(C[e]=C[e].concat(t)),C[e]},x=function(e,t){return t=O(e).indexOf(t),!(t<=-1)&&(C[e]=C[e].slice(),C[e].splice(t,1),!0)},I={prefixed:!0},A=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],P=A[0],L=0;L<A.length;L++)if(A[L][1]in s.a){i=A[L];break}if(i){for(var D=0;D<i.length;D++)I[P[D]]=i[D];I.prefixed=i[0]!==P[0]}var N=[];function R(e){return V(e)?Object.keys(e):[]}var M=function e(t){function n(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i("log",o,t)}var i,r,s,o="info";return r=t,i=function(e,t,n){t=s.levels[t];var i,o=new RegExp("^("+t+")$");"log"!==e&&n.unshift(e.toUpperCase()+":"),n.unshift(r+":"),N&&(N.push([].concat(n)),i=N.length-1e3,N.splice(0,0<i?i:0)),a.a.console&&(i=(i=a.a.console[e])||"debug"!==e?i:a.a.console.info||a.a.console.log)&&t&&o.test(e)&&i[Array.isArray(n)?"apply":"call"](a.a.console,n)},(s=n).createLogger=function(n){return e(t+": "+n)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:o},n.level=function(e){if("string"==typeof e){if(!n.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');o=e}return o},(n.history=function(){return N?[].concat(N):[]}).filter=function(e){return(N||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},n.history.clear=function(){N&&(N.length=0)},n.history.disable=function(){null!==N&&(N.length=0,N=null)},n.history.enable=function(){null===N&&(N=[])},n.error=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i("error",o,t)},n.warn=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i("warn",o,t)},n.debug=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i("debug",o,t)},n}("VIDEOJS"),j=M.createLogger,U=Object.prototype.toString;function B(e,t){R(e).forEach((function(n){return t(e[n],n)}))}function F(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?o.a.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&B(t,(function(t,n){e[n]=t}))})),e)}function V(e){return!!e&&"object"==typeof e}function q(e){return V(e)&&"[object Object]"===U.call(e)&&e.constructor===Object}function H(e,t){if(!e||!t)return"";if("function"!=typeof a.a.getComputedStyle)return"";var n;try{n=a.a.getComputedStyle(e)}catch(e){return""}return n?n.getPropertyValue(t)||n[t]:""}var W=a.a.navigator&&a.a.navigator.userAgent||"",G=/AppleWebKit\/([\d.]+)/i.exec(W),z=(G=G?parseFloat(G.pop()):null,/iPod/i.test(W)),X=(X=W.match(/OS (\d+)_/i))&&X[1]?X[1]:null,K=/Android/i.test(W),Y=function(){var e=W.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),Q=K&&Y<5&&G<537,$=/Firefox/i.test(W),J=/Edg/i.test(W),Z=!J&&(/Chrome/i.test(W)||/CriOS/i.test(W)),ee=(G=W.match(/(Chrome|CriOS)\/(\d+)/))&&G[2]?parseFloat(G[2]):null,te=G=!(G=(G=/MSIE\s(\d+)\.\d/.exec(W))&&parseFloat(G[1]))&&/Trident\/7.0/i.test(W)&&/rv:11.0/.test(W)?11:G,ne=(G=/Safari/i.test(W)&&!Z&&!K&&!J,/Windows/i.test(W)),ie=Boolean(ce()&&("ontouchstart"in a.a||a.a.navigator.maxTouchPoints||a.a.DocumentTouch&&a.a.document instanceof a.a.DocumentTouch)),re=/iPad/i.test(W)||G&&ie&&!/iPhone/i.test(W),ae=/iPhone/i.test(W)&&!re,se=ae||re||z,oe=(G||se)&&!Z;z=Object.freeze({__proto__:null,IS_IPOD:z,IOS_VERSION:X,IS_ANDROID:K,ANDROID_VERSION:Y,IS_NATIVE_ANDROID:Q,IS_FIREFOX:$,IS_EDGE:J,IS_CHROME:Z,CHROME_VERSION:ee,IE_VERSION:te,IS_SAFARI:G,IS_WINDOWS:ne,TOUCH_ENABLED:ie,IS_IPAD:re,IS_IPHONE:ae,IS_IOS:se,IS_ANY_SAFARI:oe});function ue(e){return"string"==typeof e&&Boolean(e.trim())}function le(e){if(0<=e.indexOf(" "))throw new Error("class has illegal whitespace characters")}function ce(){return s.a===a.a.document}function de(e){return V(e)&&1===e.nodeType}function he(){try{return a.a.parent!==a.a.self}catch(r){return!0}}function pe(e){return function(t,n){return ue(t)?(n=de(n=ue(n)?s.a.querySelector(n):n)?n:s.a,n[e]&&n[e](t)):s.a[e](null)}}function fe(e,t,n,i){void 0===t&&(t={}),void 0===n&&(n={});var r=s.a.createElement(e=void 0===e?"div":e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(M.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?me(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Ne(r,i),r}function me(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function ge(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ve(e,t){return le(t),e.classList?e.classList.contains(t):new RegExp("(^|\\s)"+t+"($|\\s)").test(e.className)}function ye(e,t){return e.classList?e.classList.add(t):ve(e,t)||(e.className=(e.className+" "+t).trim()),e}function _e(e,t){return e?(e.classList?e.classList.remove(t):(le(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(M.warn("removeClass was called with an element that doesn't exist"),null)}function be(e,t,n){var i=ve(e,t);if((n="boolean"!=typeof(n="function"==typeof n?n(e,t):n)?!i:n)!==i)return(n?ye:_e)(e,t),e}function Te(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function Se(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&0<e.attributes.length)for(var i=e.attributes,r=i.length-1;0<=r;r--){var a=i[r].name,s=i[r].value;"boolean"!=typeof e[a]&&-1===n.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function Ee(e,t){return e.getAttribute(t)}function ke(e,t,n){e.setAttribute(t,n)}function we(e,t){e.removeAttribute(t)}function Ce(){s.a.body.focus(),s.a.onselectstart=function(){return!1}}function Oe(){s.a.onselectstart=function(){return!0}}function xe(e){var t,n;if(e&&e.getBoundingClientRect&&e.parentNode)return t=e.getBoundingClientRect(),n={},["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(H(e,"height"))),n.width||(n.width=parseFloat(H(e,"width"))),n}function Ie(e){if(!e||!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;e.offsetParent&&e!==s.a[I.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function Ae(e,t){var n={x:0,y:0};if(se)for(var i=e;i&&"html"!==i.nodeName.toLowerCase();){var r,a=H(i,"transform");/^matrix/.test(a)?(r=a.slice(7,-1).split(/,\s/).map(Number),n.x+=r[4],n.y+=r[5]):/^matrix3d/.test(a)&&(r=a.slice(9,-1).split(/,\s/).map(Number),n.x+=r[12],n.y+=r[13]),i=i.parentNode}var s={},o=Ie(t.target),u=(e=Ie(e),e.width),l=e.height,c=t.offsetY-(e.top-o.top);o=t.offsetX-(e.left-o.left);return t.changedTouches&&(o=t.changedTouches[0].pageX-e.left,c=t.changedTouches[0].pageY+e.top,se&&(o-=n.x,c-=n.y)),s.y=1-Math.max(0,Math.min(1,c/l)),s.x=Math.max(0,Math.min(1,o/u)),s}function Pe(e){return V(e)&&3===e.nodeType}function Le(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function De(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return de(e="function"==typeof e?e():e)||Pe(e)?e:"string"==typeof e&&/\S/.test(e)?s.a.createTextNode(e):void 0})).filter((function(e){return e}))}function Ne(e,t){return De(t).forEach((function(t){return e.appendChild(t)})),e}function Re(e,t){return Ne(Le(e),t)}function Me(e){return void 0===e.button&&void 0===e.buttons||0===e.button&&void 0===e.buttons||"mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons}function je(){if(!1!==Ue.options.autoSetup){var e=Array.prototype.slice.call(s.a.getElementsByTagName("video")),t=Array.prototype.slice.call(s.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(s.a.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&0<i.length)for(var r=0,a=i.length;r<a;r++){var o=i[r];if(!o||!o.getAttribute){He(1);break}void 0===o.player&&null!==o.getAttribute("data-setup")&&Ue(o)}else qe||He(1)}}var Ue,Be=pe("querySelector"),Fe=pe("querySelectorAll"),Ve=Object.freeze({__proto__:null,isReal:ce,isEl:de,isInFrame:he,createEl:fe,textContent:me,prependTo:ge,hasClass:ve,addClass:ye,removeClass:_e,toggleClass:be,setAttributes:Te,getAttributes:Se,getAttribute:Ee,setAttribute:ke,removeAttribute:we,blockTextSelection:Ce,unblockTextSelection:Oe,getBoundingClientRect:xe,findPosition:Ie,getPointerPosition:Ae,isTextNode:Pe,emptyEl:Le,normalizeContent:De,appendContent:Ne,insertContent:Re,isSingleLeftClick:Me,$:Be,$$:Fe}),qe=!1;function He(e,t){ce()&&(t&&(Ue=t),a.a.setTimeout(je,e))}function We(){qe=!0,a.a.removeEventListener("load",We)}function Ge(e){var t=s.a.createElement("style");return t.className=e,t}function ze(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}ce()&&("complete"===s.a.readyState?We():a.a.addEventListener("load",We));var Xe=3;a.a.WeakMap||(Yt=function(){function e(){this.vdata="vdata"+Math.floor(a.a.performance&&a.a.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||Xe++;return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];M("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Ke,Ye=new(a.a.WeakMap?WeakMap:Yt);function Qe(e,t){var n;Ye.has(e)&&(0===(n=Ye.get(e)).handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Ye.delete(e))}function $e(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function Je(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i,r,o,u=e||a.a.event;for(i in e={},u)"layerX"===i||"layerY"===i||"keyLocation"===i||"webkitMovementX"===i||"webkitMovementY"===i||"path"===i||"returnValue"===i&&u.preventDefault||(e[i]=u[i]);e.target||(e.target=e.srcElement||s.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){u.preventDefault&&u.preventDefault(),e.returnValue=!1,u.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){u.stopPropagation&&u.stopPropagation(),e.cancelBubble=!0,u.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){u.stopImmediatePropagation&&u.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX&&(r=s.a.documentElement,o=s.a.body,e.pageX=e.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var Ze=["touchstart","touchmove"];function et(e,t,n){if(Array.isArray(t))return $e(et,e,t,n);Ye.has(e)||Ye.set(e,{});var i=Ye.get(e);i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Xe++),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=Je(t);var r=i.handlers[t.type];if(r)for(var a=r.slice(0),s=0,o=a.length;s<o&&!t.isImmediatePropagationStopped();s++)try{a[s].call(e,t,n)}catch(t){M.error(t)}}}),1===i.handlers[t].length&&(e.addEventListener?(n=!1,function(){if("boolean"!=typeof Ke){Ke=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Ke=!0}});a.a.addEventListener("test",null,e),a.a.removeEventListener("test",null,e)}catch(e){}}return Ke}()&&-1<Ze.indexOf(t)&&(n={passive:!0}),e.addEventListener(t,i.dispatcher,n)):e.attachEvent&&e.attachEvent("on"+t,i.dispatcher))}function tt(e,t,n){if(Ye.has(e)){var i=Ye.get(e);if(i.handlers){if(Array.isArray(t))return $e(tt,e,t,n);var r=function(e,t){i.handlers[t]=[],Qe(e,t)};if(void 0===t)for(var a in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},a)&&r(e,a);else{var s=i.handlers[t];if(s)if(n){if(n.guid)for(var o=0;o<s.length;o++)s[o].guid===n.guid&&s.splice(o--,1);Qe(e,t)}else r(e,t)}}}}function nt(e,t,n){var i=Ye.has(e)?Ye.get(e):{},r=e.parentNode||e.ownerDocument;return"string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Je(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles?nt.call(null,r,t,n):!r&&!t.defaultPrevented&&t.target&&t.target[t.type]&&(Ye.has(t.target)||Ye.set(t.target,{}),i=Ye.get(t.target),t.target[t.type]&&(i.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),i.disabled=!1)),!t.defaultPrevented}function it(e,t,n){if(Array.isArray(t))return $e(it,e,t,n);function i(){tt(e,t,i),n.apply(this,arguments)}i.guid=n.guid=n.guid||Xe++,et(e,t,i)}function rt(e,t,n){function i(){tt(e,t,i),n.apply(this,arguments)}i.guid=n.guid=n.guid||Xe++,et(e,t,i)}function at(e,t){var n=a.a.performance.now();return function(){var i=a.a.performance.now();t<=i-n&&(e.apply(void 0,arguments),n=i)}}function st(e,t,n,i){function r(){var r=this,a=arguments,o=function(){o=s=null,n||e.apply(r,a)};!s&&n&&e.apply(r,a),i.clearTimeout(s),s=i.setTimeout(o,t)}var s;return void 0===i&&(i=a.a),r.cancel=function(){i.clearTimeout(s),s=null},r}function ot(){}function ut(e,t,n){if(!e||!e.nodeName&&!vt(e))throw new Error("Invalid target for "+gt(t)+"#"+n+"; must be a DOM node or evented object.")}function lt(e,t,n){if(!yt(e))throw new Error("Invalid event type for "+gt(t)+"#"+n+"; must be a non-empty string or array.")}function ct(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+gt(t)+"#"+n+"; must be a function.")}function dt(e,t,n){var i,r,a=t.length<3||t[0]===e||t[0]===e.eventBusEl_;t=a?(i=e.eventBusEl_,3<=t.length&&t.shift(),r=t[0],t[1]):(i=t[0],r=t[1],t[2]);return ut(i,e,n),lt(r,e,n),ct(t,e,n),{isTargetingSelf:a,target:i,type:r,listener:t=mt(e,t)}}function ht(e,t,n,i){ut(e,e,t),e.nodeName?ft[t](e,n,i):e[t](n,i)}var pt,ft=Object.freeze({__proto__:null,fixEvent:Je,on:et,off:tt,trigger:nt,one:it,any:rt}),mt=function(e,t,n){return t.guid||(t.guid=Xe++),e=t.bind(e),e.guid=n?n+"_"+t.guid:t.guid,e},gt=(ot.prototype.allowedEvents_={},ot.prototype.addEventListener=ot.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},et(this,e,t),this.addEventListener=n},ot.prototype.removeEventListener=ot.prototype.off=function(e,t){tt(this,e,t)},ot.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},it(this,e,t),this.addEventListener=n},ot.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},rt(this,e,t),this.addEventListener=n},ot.prototype.dispatchEvent=ot.prototype.trigger=function(e){var t=e.type||e;e=Je(e="string"==typeof e?{type:t}:e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),nt(this,e)},ot.prototype.queueTrigger=function(e){var t=this,n=(pt=pt||new Map,e.type||e),i=pt.get(this),r=(i||(i=new Map,pt.set(this,i)),i.get(n));i.delete(n),a.a.clearTimeout(r),r=a.a.setTimeout((function(){i.delete(n),0===i.size&&(i=null,pt.delete(t)),t.trigger(e)}),0);i.set(n,r)},function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_||(e.constructor&&e.constructor.name?e.constructor.name:typeof e)}),vt=function(e){return e instanceof ot||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"==typeof e[t]}))},yt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},_t={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r,a=dt(this,n,"on"),s=a.isTargetingSelf,o=a.target,u=a.type,l=a.listener;ht(o,"on",u,l),s||((r=function(){return e.off(o,u,l)}).guid=l.guid,(a=function(){return e.off("dispose",r)}).guid=l.guid,ht(this,"on","dispose",r),ht(o,"on","dispose",a))},one:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=dt(this,n,"one"),a=r.isTargetingSelf,s=r.target,o=r.type,u=r.listener;a?ht(s,"one",o,u):((r=function t(){e.off(s,o,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];u.apply(null,i)}).guid=u.guid,ht(s,"one",o,r))},any:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=dt(this,n,"any"),a=r.isTargetingSelf,s=r.target,o=r.type,u=r.listener;a?ht(s,"any",o,u):((r=function t(){e.off(s,o,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];u.apply(null,i)}).guid=u.guid,ht(s,"any",o,r))},off:function(e,t,n){!e||yt(e)?tt(this.eventBusEl_,e,t):(t=t,ut(e=e,this,"off"),lt(t,this,"off"),ct(n,this,"off"),n=mt(this,n),this.off("dispose",n),e.nodeName?(tt(e,t,n),tt(e,"dispose",n)):vt(e)&&(e.off(t,n),e.off("dispose",n)))},trigger:function(e,t){ut(this.eventBusEl_,this,"trigger");var n=e&&"string"!=typeof e?e.type:e;if(!yt(n)){if(n="Invalid event type for "+gt(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.",!e)throw new Error(n);(this.log||M).error(n)}return nt(this.eventBusEl_,e,t)}};function bt(e,t){if(t=(t=void 0===t?{}:t).eventBusKey,t){if(!e[t].nodeName)throw new Error('The eventBusKey "'+t+'" does not refer to an element.');e.eventBusEl_=e[t]}else e.eventBusEl_=fe("span",{className:"vjs-event-bus"});F(e,_t),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&Ye.has(e)&&Ye.delete(e)})),a.a.setTimeout((function(){e.eventBusEl_=null}),0)}))}var Tt={state:{},setState:function(e){var t,n=this;return B(e="function"==typeof e?e():e,(function(e,i){n.state[i]!==e&&((t=t||{})[i]={from:n.state[i],to:e}),n.state[i]=e})),t&&vt(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function St(e,t){F(e,Tt),e.state=F({},e.state,t),"function"==typeof e.handleStateChanged&&vt(e)&&e.on("statechanged",e.handleStateChanged)}function Et(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))}function kt(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))}function wt(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&B(t,(function(t,n){q(t)?(q(e[n])||(e[n]={}),e[n]=wt(e[n],t)):e[n]=t}))})),e}var Ct=a.a.Map||function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),Ot=a.a.Set||function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),xt=function(){function e(e,t,n){var i=this;!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=wt({},this.options_),t=this.options_=wt(this.options_,t),this.id_=t.id||t.el&&t.el.id,this.id_||(e=e&&e.id&&e.id()||"no_player",this.id_=e+"_component_"+Xe++),this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach((function(e){return i.addClass(e)})),!1!==t.evented&&(bt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),St(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Ot,this.setIntervalIds_=new Ot,this.rafIds_=new Ot,this.namedRafs_=new Ct,(this.clearingTimersOnDispose_=!1)!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(e){if(void 0===e&&(e={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;0<=t;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e&&(this.options_=wt(this.options_,e)),this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return fe(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i];i=i&&i.split("-")[0],r=r&&r[i],i=n;return a&&a[e]?i=a[e]:r&&r[e]&&(i=r[e]),t?i.replace(/\{(\d+)\}/g,(function(e,n){return n=t[n-1],void 0===n?e:n})):i},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce((function(e,t){return e.concat(t)}),[]);for(var i=this,r=0;r<t.length;r++)if(!(i=i.getChild(t[r]))||!i.getChild)return;return i},t.addChild=function(t,n,i){if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"==typeof t){var r=kt(t),a=n.componentClass||r,s=(n.name=r,e.getComponent(a));if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;a=new s(this.player_||this,n)}else a=t;return a.parentComponent_&&a.parentComponent_.removeChild(a),this.children_.splice(i,0,a),a.parentComponent_=this,"function"==typeof a.id&&(this.childIndex_[a.id()]=a),(r=r||a.name&&kt(a.name()))&&(this.childNameIndex_[r]=a,this.childNameIndex_[Et(r)]=a),"function"==typeof a.el&&a.el()&&(s=null,this.children_[i+1]&&(this.children_[i+1].el_?s=this.children_[i+1].el_:de(this.children_[i+1])&&(s=this.children_[i+1])),this.contentEl().insertBefore(a.el(),s)),a},t.removeChild=function(e){if((e="string"==typeof e?this.getChild(e):e)&&this.children_){for(var t,n=!1,i=this.children_.length-1;0<=i;i--)if(this.children_[i]===e){n=!0,this.children_.splice(i,1);break}n&&(e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[kt(e.name())]=null,this.childNameIndex_[Et(e.name())]=null,(t=e.el())&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el()))}},t.initChildren=function(){var t,n,i,r=this,a=this.options_.children;a&&(t=this.options_,n=e.getComponent("Tech"),(i=Array.isArray(a)?a:Object.keys(a)).concat(Object.keys(this.options_).filter((function(e){return!i.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((function(e){var t;e="string"==typeof e?a[t=e]||r.options_[t]||{}:(t=e.name,e);return{name:t,opts:e}})).filter((function(t){return t=e.getComponent(t.opts.componentClass||kt(t.name)),t&&!n.isTech(t)})).forEach((function(e){var n=e.name;e=e.opts;!1!==(e=void 0!==t[n]?t[n]:e)&&((e=!0===e?{}:e).playerOptions=r.options_.playerOptions,(e=r.addChild(n,e))&&(r[n]=e))})))},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&0<e.length&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return Be(e,t||this.contentEl())},t.$$=function(e,t){return Fe(e,t||this.contentEl())},t.hasClass=function(e){return ve(this.el_,e)},t.addClass=function(e){ye(this.el_,e)},t.removeClass=function(e){_e(this.el_,e)},t.toggleClass=function(e,t){be(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Ee(this.el_,e)},t.setAttribute=function(e,t){ke(this.el_,e,t)},t.removeAttribute=function(e){we(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){return void 0!==t?(-1!==(""+(t=null!==t&&t==t?t:0)).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"))):this.el_?(t=this.el_.style[e],n=t.indexOf("px"),-1!==n?parseInt(t.slice(0,n),10):parseInt(this.el_["offset"+kt(e)],10)):0},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");return t=H(this.el_,e),0!==(t=parseFloat(t))&&!isNaN(t)||(e="offset"+kt(e),t=this.el_[e]),t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(u.a.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){function e(){t=!1}var t,n=0,i=null;this.on("touchstart",(function(e){1===e.touches.length&&(i={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},n=a.a.performance.now(),t=!0)})),this.on("touchmove",(function(e){var n;1<e.touches.length?t=!1:i&&(n=e.touches[0].pageX-i.pageX,e=e.touches[0].pageY-i.pageY,10<Math.sqrt(n*n+e*e)&&(t=!1))})),this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",(function(e){!(i=null)===t&&a.a.performance.now()-n<200&&(e.preventDefault(),this.trigger("tap"))}))},t.enableTouchActivity=function(){var e,t,n;this.player()&&this.player().reportUserActivity&&(e=mt(this.player(),this.player().reportUserActivity),this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)})),n=function(n){e(),this.clearInterval(t)},this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n))},t.setTimeout=function(e,t){var n,i=this;return e=mt(this,e),this.clearTimersOnDispose_(),n=a.a.setTimeout((function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),a.a.clearTimeout(e)),e},t.setInterval=function(e,t){return e=mt(this,e),this.clearTimersOnDispose_(),e=a.a.setInterval(e,t),this.setIntervalIds_.add(e),e},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),a.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=mt(this,e),t=a.a.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n,i=this;if(!this.namedRafs_.has(e))return this.clearTimersOnDispose_(),t=mt(this,t),n=this.requestAnimationFrame((function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)})),this.namedRafs_.set(e,n),e},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),a.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],i=t[1];e[n].forEach((function(t,n){return e[i](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i=e.getComponent("Tech"),r=(i=i&&i.isTech(n),e===n||e.prototype.isPrototypeOf(n.prototype));if(i||!r)throw r=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+r+".");if(t=kt(t),e.components_||(e.components_={}),i=e.getComponent("Player"),"Player"===t&&i&&i.players){var a=i.players;r=Object.keys(a);if(a&&0<r.length&&r.map((function(e){return a[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Et(t)]=n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function It(e,t,n,i){var r=i,a=n.length-1;if("number"!=typeof r||r<0||a<r)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+r+") is non-numeric or out of bounds (0-"+a+").");return n[i][t]}function At(e){var t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:It.bind(null,"start",0,e),end:It.bind(null,"end",1,e)};return a.a.Symbol&&a.a.Symbol.iterator&&(t[a.a.Symbol.iterator]=function(){return(e||[]).values()}),t}function Pt(e,t){return Array.isArray(e)?At(e):void 0===e||void 0===t?At():At([[e,t]])}function Lt(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Pt(0,0));for(var a=0;a<e.length;a++)n=e.start(a),r+=(i=t<(i=e.end(a))?t:i)-n;return r/t}function Dt(e){if(e instanceof Dt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:V(e)&&("number"==typeof e.code&&(this.code=e.code),F(this,e)),this.message||(this.message=Dt.defaultMessages[this.code]||"")}xt.prototype.supportsRaf_="function"==typeof a.a.requestAnimationFrame&&"function"==typeof a.a.cancelAnimationFrame,xt.registerComponent("Component",xt),Dt.prototype.code=0,Dt.prototype.message="",Dt.prototype.status=null,Dt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Dt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Nt=0;Nt<Dt.errorTypes.length;Nt++)Dt[Dt.errorTypes[Nt]]=Nt,Dt.prototype[Dt.errorTypes[Nt]]=Nt;function Rt(e){return null!=e&&"function"==typeof e.then}function Mt(e){Rt(e)&&e.then(null,(function(e){}))}function jt(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,i){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))})}var Ut,Bt=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track}));return Array.prototype.map.call(t,(function(e){var t=jt(e.track);return e.src&&(t.src=e.src),t})).concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(jt))},Ft=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},Vt="vjs-modal-dialog",qt=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=fe("div",{className:Vt+"-content"},{role:"document"}),i.descEl_=fe("p",{className:Vt+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),me(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return Vt+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){var e;this.opened_||(e=this.player(),this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0)},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){var e;this.opened_&&(e=this.player(),this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose())},n.closeable=function(e){var t,n;return"boolean"==typeof e&&(e=this.closeable_=!!e,t=this.getChild("closeButton"),e&&!t&&(n=this.contentEl_,this.contentEl_=this.el_,t=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(t,"close",this.close_)),!e&&t&&(this.off(t,"close",this.close_),this.removeChild(t),t.dispose())),this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Re(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t),e=this.getChild("closeButton");e&&n.appendChild(e.el_)},n.empty=function(){this.trigger("beforemodalempty"),Le(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=s.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,!t.contains(e)&&t!==e||(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),u.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(u.a.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){t=r;break}s.a.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof a.a.HTMLAnchorElement||e instanceof a.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof a.a.HTMLInputElement||e instanceof a.a.HTMLSelectElement||e instanceof a.a.HTMLTextAreaElement||e instanceof a.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof a.a.HTMLIFrameElement||e instanceof a.a.HTMLObjectElement||e instanceof a.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(xt),Ht=(qt.prototype.options_={pauseOnOpen:!0,temporary:!0},xt.registerComponent("ModalDialog",qt),function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(l()(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}c()(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},vt(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(ot));for(Ut in Ht.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Ht.prototype.allowedEvents_)Ht.prototype["on"+Ut]=null;function Wt(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)}function Gt(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)}function zt(e){for(var t=["protocol","hostname","port","pathname","search","hash","host"],n=s.a.createElement("a"),i=(n.href=e,{}),r=0;r<t.length;r++)i[t[r]]=n[t[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=a.a.location.protocol),i.host||(i.host=a.a.location.host),i}function Xt(e){var t;return e.match(/^https?:\/\//)||((t=s.a.createElement("a")).href=e,e=t.href),e}function Kt(e,t){var n={uri:e};(e=rn(e))&&(n.cors=e),(e="use-credentials"===t.tech_.crossOrigin())&&(n.withCredentials=e),h()(n,mt(this,(function(e,n,i){if(e)return M.error(e,n);t.loaded_=!0,"function"!=typeof a.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return sn(i,t);M.error("vttjs failed to load, stopping trying to process "+t.src)})):sn(i,t)})))}X=function(e){function t(t){for(var n,i=(t=void 0===t?[]:t).length-1;0<=i;i--)if(t[i].enabled){Wt(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,n}c()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Wt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,Wt(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(Ht),G=function(e){function t(t){for(var n,i=(t=void 0===t?[]:t).length-1;0<=i;i--)if(t[i].selected){Gt(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(l()(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}c()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&Gt(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,Gt(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(Ht),re=function(e){function t(){return e.apply(this,arguments)||this}c()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(Ht);var Yt=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Qt=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){function t(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})}var n=this.length||0,i=0,r=e.length;if(this.cues_=e,this.length_=e.length,n<r)for(i=n;i<r;i++)t.call(this,i)},t.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),$t={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Jt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Zt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},en={disabled:"disabled",hidden:"hidden",showing:"showing"},tn=function(e){function t(t){void 0===t&&(t={}),n=e.call(this)||this;var n,i,r={id:t.id||"vjs_track_"+Xe++,kind:t.kind||"",language:t.language||""},a=t.label||"";for(i in r)!function(e){Object.defineProperty(l()(n),e,{get:function(){return r[e]},set:function(){}})}(i);return Object.defineProperty(l()(n),"label",{get:function(){return a},set:function(e){e!==a&&(a=e,this.trigger("labelchange"))}}),n}return c()(t,e),t}(ot),nn=function(e){return"string"==typeof e&&(e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e),e)?e.pop().toLowerCase():""},rn=function(e,t){return void 0===t&&(t=a.a.location),e=zt(e),(":"===e.protocol?t:e).protocol+e.host!==t.protocol+t.host},an=Object.freeze({__proto__:null,parseUrl:zt,getAbsoluteURL:Xt,getFileExtension:nn,isCrossOrigin:rn}),sn=function(e,t){var n=new a.a.WebVTT.Parser(a.a,a.a.vttjs,a.a.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),0<i.length&&(a.a.console&&a.a.console.groupCollapsed&&a.a.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return M.error(e)})),a.a.console&&a.a.console.groupEnd&&a.a.console.groupEnd()),n.flush()},on=function(e){function t(t){var n;if(!(t=void 0===t?{}:t).tech)throw new Error("A tech was not provided.");t=wt(t,{kind:Zt[t.kind]||"subtitles",language:t.language||t.srclang||""});var i=en[t.mode]||"disabled",r=t.default,a=("metadata"!==t.kind&&"chapters"!==t.kind||(i="hidden"),(n=e.call(this,t)||this).tech_=t.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks,new Qt(n.cues_)),s=new Qt(n.activeCues_),o=!1;return n.timeupdateHandler=mt(l()(n),(function(e){void 0===e&&(e={}),this.tech_.isDisposed()||(this.tech_.isReady_&&(this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1)),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))})),n.tech_.one("dispose",(function(){n.stopTracking()})),"disabled"!==i&&n.startTracking(),Object.defineProperties(l()(n),{default:{get:function(){return r},set:function(){}},mode:{get:function(){return i},set:function(e){en[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Kt(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(o=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),t.src?(n.src=t.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&Kt(n.src,l()(n))):n.loaded_=!0,n}c()(t,e);var n=t.prototype;return n.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},n.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},n.addCue=function(e){var t=e;if(t.constructor&&"VTTCue"!==t.constructor.name){for(var n in t=new a.a.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(tn),un=(on.prototype.allowedEvents_={cuechange:"cuechange"},function(e){function t(t){t=wt(t=void 0===t?{}:t,{kind:Jt[t.kind]||""});var n=e.call(this,t)||this,i=!1;return Object.defineProperty(l()(n),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),t.enabled&&(n.enabled=t.enabled),n.loaded_=!0,n}return c()(t,e),t}(tn)),ln=(tn=function(e){function t(t){t=wt(t=void 0===t?{}:t,{kind:$t[t.kind]||""});var n=e.call(this,t)||this,i=!1;return Object.defineProperty(l()(n),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),t.selected&&(n.selected=t.selected),n}return c()(t,e),t}(tn),function(e){function t(t){void 0===t&&(t={}),n=e.call(this)||this;var n,i,r=new on(t);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n.default=r.default,Object.defineProperties(l()(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=0,r.addEventListener("loadeddata",(function(){i=2,n.trigger({type:"load",target:l()(n)})})),n}return c()(t,e),t}(ot)),cn=(ln.prototype.allowedEvents_={load:"load"},ln.NONE=0,ln.LOADING=1,ln.LOADED=2,ln.ERROR=3,{audio:{ListClass:X,TrackClass:un,capitalName:"Audio"},video:{ListClass:G,TrackClass:tn,capitalName:"Video"},text:{ListClass:re,TrackClass:on,capitalName:"Text"}}),dn=(Object.keys(cn).forEach((function(e){cn[e].getterName=e+"Tracks",cn[e].privateName=e+"Tracks_"})),{remoteText:{ListClass:re,TrackClass:on,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Yt,TrackClass:ln,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}}),hn=o()({},cn,dn);dn.names=Object.keys(dn),cn.names=Object.keys(cn),hn.names=[].concat(dn.names).concat(cn.names);var pn=function(e){function t(t,n){var i;return void 0===n&&(n=function(){}),(t=void 0===t?{}:t).reportTouchActivity=!1,(i=e.call(this,null,t,n)||this).onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.queuedHanders_=new Set,i.hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1})),hn.names.forEach((function(e){e=hn[e],t&&t[e.getterName]&&(i[e.privateName]=t[e.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new hn.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}c()(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(mt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),1===(this.bufferedPercent_=e)&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Pt(0,0)},n.bufferedPercent=function(){return Lt(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(cn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach((function(e){for(var n=t[e+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Dt(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Pt(0,0):Pt()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;cn.names.forEach((function(t){function n(){e.trigger(t+"trackchange")}var i=cn[t],r=e[i.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),e.on("dispose",(function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)}))}))},n.addWebVttScript_=function(){var e,t=this;a.a.WebVTT||(s.a.body.contains(this.el())?!this.options_["vtt.js"]&&q(p.a)&&0<Object.keys(p.a).length?this.trigger("vttjsloaded"):((e=s.a.createElement("script")).src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",(function(){e.onload=null,e.onerror=null})),a.a.WebVTT=!0,this.el().parentNode.appendChild(e)):this.ready(this.addWebVttScript_))},n.emulateTextTracks=function(){function e(e){return r.addTrack(e.track)}function t(e){return r.removeTrack(e.track)}function n(){s();for(var e=0;e<r.length;e++){var t=r[e];t.removeEventListener("cuechange",s),"showing"===t.mode&&t.addEventListener("cuechange",s)}}var i=this,r=this.textTracks(),a=this.remoteTextTracks(),s=(a.on("addtrack",e),a.on("removetrack",t),this.addWebVttScript_(),function(){return i.trigger("texttrackchange")});n(),r.addEventListener("change",n),r.addEventListener("addtrack",n),r.addEventListener("removetrack",n),this.on("dispose",(function(){a.off("addtrack",e),a.off("removetrack",t),r.removeEventListener("change",n),r.removeEventListener("addtrack",n),r.removeEventListener("removetrack",n);for(var i=0;i<r.length;i++)r[i].removeEventListener("cuechange",s)}))},n.addTextTrack=function(e,t,n){if(e)return e=e,t=t,n=n,void 0===r&&(r={}),a=(i=this).textTracks(),r.kind=e,t&&(r.label=t),n&&(r.language=n),r.tech=i,e=new hn.text.TrackClass(r),a.addTrack(e),e;throw new Error("TextTrack kind is required but was not provided");var i,r,a},n.createRemoteTextTrack=function(e){return e=wt(e,{tech:this}),new dn.remoteTextEl.TrackClass(e)},n.addRemoteTextTrack=function(e,t){var n=this,i=this.createRemoteTextTrack(e=void 0===e?{}:e);return!0!==t&&!1!==t&&(M.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(i.track)})),i},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||a.a.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.requestVideoFrameCallback=function(e){var t=this,n=Xe++;return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",(function(){t.queuedHanders_.has(n)&&(t.queuedHanders_.delete(n),e())}))):this.requestNamedAnimationFrame(n,e),n},n.cancelVideoFrameCallback=function(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(t.canPlaySource)return e=kt(e),t.techs_[e]=n,t.techs_[Et(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n;throw new Error("Techs must have a static canPlaySource method on them")},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=kt(e),a.a&&a.a.videojs&&a.a.videojs[e]?(M.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),a.a.videojs[e]):void 0)},t}(xt),fn=(hn.names.forEach((function(e){var t=hn[e];pn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),pn.prototype.featuresVolumeControl=!0,pn.prototype.featuresMuteControl=!0,pn.prototype.featuresFullscreenResize=!1,pn.prototype.featuresPlaybackRate=!1,pn.prototype.featuresProgressEvents=!1,pn.prototype.featuresSourceset=!1,pn.prototype.featuresTimeupdateEvents=!1,pn.prototype.featuresNativeTextTracks=!1,pn.prototype.featuresVideoFrameCallback=!1,pn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=(i=e.sourceHandlers)||(e.sourceHandlers=[]);void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n,i=e.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(t,n))return i[r];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach((function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:M.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},xt.registerComponent("Tech",pn),pn.registerTech("Tech",pn),pn.defaultTechOrder_=[],{}),mn={},gn={};function vn(e,t,n){e.setTimeout((function(){return function e(t,n,i,r,a,s){void 0===t&&(t={}),void 0===n&&(n=[]),void 0===a&&(a=[]),void 0===s&&(s=!1);var o=n[0],u=n.slice(1);if("string"==typeof o)e(t,fn[o],i,r,a,s);else if(o){var l=En(r,o);if(!l.setSource)return a.push(l),e(t,u,i,r,a,s);l.setSource(F({},t),(function(n,o){if(n)return e(t,u,i,r,a,s);a.push(l),e(o,t.type===o.type?u:fn[o.type],i,r,a,s)}))}else u.length?e(t,u,i,r,a,s):s?i(t,a):e(t,fn["*"],i,r,a,!0)}(t,fn[t.type],n,e)}),1)}function yn(e,t,n,i){void 0===i&&(i=null);for(var r="call"+kt(n),a=(r=e.reduce(Sn(r),i),i=r===gn,t=i?null:t[n](r),e),s=n,o=t,u=i,l=a.length-1;0<=l;l--){var c=a[l];c[s]&&c[s](u,o)}return t}var _n={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},bn={setCurrentTime:1,setMuted:1,setVolume:1},Tn={play:1,pause:1};function Sn(e){return function(t,n){return t===gn?gn:n[e]?n[e](t):t}}function En(e,t){var n=mn[e.id()],i=null;if(null==n)return i=t(e),mn[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],s=a[0];a=a[1];s===t&&(i=a)}return null===i&&(i=t(e),n.push([t,i])),i}function kn(e){var t;return Array.isArray(e)?(t=[],e.forEach((function(e){e=kn(e),Array.isArray(e)?t=t.concat(e):V(e)&&t.push(e)})),t):"string"==typeof e&&e.trim()?[On({src:e})]:V(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[On(e)]:[]}var wn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Cn=function(e){return e=nn(e=void 0===e?"":e),wn[e.toLowerCase()]||""};function On(e){var t;return e.type||(t=Cn(e.src))&&(e.type=t),e}X=function(e){function t(t,n,i){var r=wt({createEl:!1},n);r=e.call(this,t,r,i)||this;if(n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a<s.length;a++){var o=kt(s[a]),u=pn.getTech(o);if((u=o?u:xt.getComponent(o))&&u.isSupported()){t.loadTech_(o);break}}return r}return c()(t,e),t}(xt),xt.registerComponent("MediaLoader",X),G=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.options_.controlText&&i.controlText(i.options_.controlText),i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}c()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){return void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=F({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&M.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=F({role:"button"},n),this.tabIndex_=t.tabIndex,e=fe(e,t,n),e.appendChild(fe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(e),e},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=fe("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,me(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){u.a.isEventKey(t,"Space")||u.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(xt),xt.registerComponent("ClickableComponent",G),re=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.update(),i.update_=function(e){return i.update(e)},t.on("posterchange",i.update_),i}c()(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){return fe("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){e=e?'url("'+e+'")':"",this.el_.style.backgroundImage=e},n.handleClick=function(e){var t;this.player_.controls()&&(t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length,!this.player_.tech(!0)||(te||J)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Mt(this.player_.play()):this.player_.pause())},t}(G);var xn=(xt.registerComponent("PosterImage",re),{monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'});function In(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function An(e,t,n){try{e.style[t]=n}catch(e){return}}function Pn(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60);t=Math.floor(t/3600);return(r=0<(r=isNaN(e)||e===1/0?i=n="-":r)||0<t?r+":":"")+(i=((r||10<=a)&&i<10?"0"+i:i)+":")+(n<10?"0"+n:n)}Yt=function(e){function t(t,n,i){function r(e){return s.updateDisplay(e)}var s=e.call(this,t,n,i)||this;return t.on("loadstart",(function(e){return s.toggleDisplay(e)})),t.on("texttrackchange",r),t.on("loadedmetadata",(function(e){return s.preselectTrack(e)})),t.ready(mt(l()(s),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",r),t.on("playerresize",r),a.a.addEventListener("orientationchange",r),t.on("dispose",(function(){return a.a.removeEventListener("orientationchange",r)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),s}c()(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,s=0;s<r.length;s++){var o=r[s];a&&a.enabled&&a.language&&a.language===o.language&&o.kind in i?n=o.kind!==a.kind&&n||o:a&&!a.enabled?t=e=n=null:o.default&&("descriptions"!==o.kind||e?o.kind in i&&!t&&(t=o):e=o)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof a.a.WebVTT&&a.a.WebVTT.processCues(a.a,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],i=0;i<e.length;++i){var r=e[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{for(var a=null,s=null,o=e.length;o--;){var u=e[o];"showing"===u.mode&&("descriptions"===u.kind?a=u:s=u)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;i--;){var r,s=n[i];s&&(s=s.displayState,t.color&&(s.firstChild.style.color=t.color),t.textOpacity&&An(s.firstChild,"color",In(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(s.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&An(s.firstChild,"backgroundColor",In(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?An(s,"backgroundColor",In(t.windowColor,t.windowOpacity)):s.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent&&(r=a.a.parseFloat(s.style.fontSize),s.style.fontSize=r*t.fontPercent+"px",s.style.height="auto",s.style.top="auto"),t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=xn[t.fontFamily]))}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof a.a.WebVTT&&!e.every((function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var i=e[n],r=0;r<i.activeCues.length;++r)t.push(i.activeCues[r]);a.a.WebVTT.processCues(a.a,t,this.el_);for(var s=0;s<e.length;++s){for(var o=e[s],u=0;u<o.activeCues.length;++u){var l=o.activeCues[u].displayState;ye(l,"vjs-text-track-cue"),ye(l,"vjs-text-track-cue-"+(o.language||s)),o.language&&ke(l,"lang",o.language)}this.player_.textTrackSettings&&this.updateDisplayState(o)}}},t}(xt),xt.registerComponent("TextTrackDisplay",Yt),ln=function(e){function t(){return e.apply(this,arguments)||this}return c()(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=(t=this.localize(t?"Audio Player":"Video Player"),t=fe("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"}));return n.appendChild(t),n},t}(xt);var Ln=(xt.registerComponent("LoadingSpinner",ln),function(e){function t(){return e.apply(this,arguments)||this}c()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),t=fe("button",t=F({className:this.buildCSSClass()},t),n=F({type:"button"},n)),t.appendChild(fe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(t),t},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return M.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),xt.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){u.a.isEventKey(t,"Space")||u.a.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(G)),Dn=(X=(xt.registerComponent("Button",Ln),function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.mouseused_=!1,i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)return e=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length,Mt(t),void(!this.player_.tech(!0)||(te||J)&&e||this.player_.tech(!0).focus());e=this.player_.getChild("controlBar");var n=e&&e.getChild("playToggle");n?(e=function(){return n.focus()},Rt(t)?t.then(e,(function(){})):this.setTimeout(e,1)):this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(Ln)),re=(X.prototype.controlText_="Play Video",xt.registerComponent("BigPlayButton",X),function(e){function t(t,n){return t=e.call(this,t,n)||this,t.controlText(n&&n.controlText||t.localize("Close")),t}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){u.a.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Ln)),Yt=(xt.registerComponent("CloseButton",re),function(e){function t(t,n){var i=e.call(this,t,n=void 0===n?{}:n)||this;return n.replay=void 0===n.replay||n.replay,i.on(t,"play",(function(e){return i.handlePlay(e)})),i.on(t,"pause",(function(e){return i.handlePause(e)})),n.replay&&i.on(t,"ended",(function(e){return i.handleEnded(e)})),i}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Mt(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(Ln)),Yt.prototype.controlText_="Play",xt.registerComponent("PlayToggle",Yt),Pn);function Nn(e,t){return Dn(e,t=void 0===t?e:t)}function Rn(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))}function Mn(e,t){return Rn(e/t*100,0,100).toFixed(2)+"%"}ln=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on(t,["timeupdate","ended"],(function(e){return i.updateContent(e)})),i.updateTextNode_(),i}c()(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=fe("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(i),this.contentEl_=fe("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;e=Nn(e=void 0===e?0:e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){var e;t.contentEl_&&((e=t.textNode_)&&t.contentEl_.firstChild!==e&&(e=null,M.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=s.a.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_)))})))},n.updateContent=function(e){},t}(xt),ln.prototype.labelText_="Time",ln.prototype.controlText_="Time",xt.registerComponent("TimeDisplay",ln),X=function(e){function t(){return e.apply(this,arguments)||this}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateTextNode_(t)},t}(ln),X.prototype.labelText_="Current Time",X.prototype.controlText_="Current Time",xt.registerComponent("CurrentTimeDisplay",X),re=function(e){function t(t,n){function i(e){return r.updateContent(e)}var r=e.call(this,t,n)||this;return r.on(t,"durationchange",i),r.on(t,"loadstart",i),r.on(t,"loadedmetadata",i),r}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(ln),re.prototype.labelText_="Duration",re.prototype.controlText_="Duration",xt.registerComponent("DurationDisplay",re),Yt=function(e){function t(){return e.apply(this,arguments)||this}return c()(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(xt),xt.registerComponent("TimeDivider",Yt),X=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on(t,"durationchange",(function(e){return i.updateContent(e)})),i}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(fe("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(ln),X.prototype.labelText_="Remaining Time",X.prototype.controlText_="Remaining Time",xt.registerComponent("RemainingTimeDisplay",X),re=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.updateShowing(),i.on(i.player(),"durationchange",(function(e){return i.updateShowing(e)})),i}c()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=fe("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(fe("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(s.a.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(xt),xt.registerComponent("LiveDisplay",re),Yt=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}c()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=fe("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(Ln),Yt.prototype.controlText_="Seek to live, currently playing live",xt.registerComponent("SeekToLive",Yt),ln=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}c()(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){var e;this.enabled()&&(e=this.bar.el_.ownerDocument,this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1)},n.createEl=function(t,n,i){return void 0===i&&(i={}),(n=void 0===n?{}:n).className=n.className+" vjs-slider",n=F({tabIndex:0},n),i=F({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Z||e.preventDefault(),Ce(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Oe(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e,t=this;if(this.el_&&this.bar)return e=this.getProgress(),e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",(function(){var n=t.vertical()?"height":"width";t.bar.el().style[n]=(100*e).toFixed(2)+"%"}))),e},n.getProgress=function(){return Number(Rn(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){return e=Ae(this.el_,e),this.vertical()?e.y:e.x},n.handleKeyDown=function(t){u.a.isEventKey(t,"Left")||u.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):u.a.isEventKey(t,"Right")||u.a.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(xt),xt.registerComponent("Slider",ln),X=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.partEls_=[],i.on(t,"progress",(function(e){return i.update(e)})),i}c()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=fe("span",{className:"vjs-control-text"}),i=fe("span",{textContent:this.localize("Loaded")}),r=s.a.createTextNode(": ");return this.percentageEl_=fe("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=(e=e&&e.isLive()?e.seekableEnd():t.player_.duration(),t.player_.bufferedEnd()),r=t.partEls_;e=Mn(i,e);t.percent_!==e&&(t.el_.style.width=e,me(t.percentageEl_,e),t.percent_=e);for(var a=0;a<n.length;a++){var s=n.start(a),o=n.end(a),u=r[a];u||(u=t.el_.appendChild(fe()),r[a]=u),u.dataset.start===s&&u.dataset.end===o||(u.dataset.start=s,u.dataset.end=o,u.style.left=Mn(s,i),u.style.width=Mn(o-s,i))}for(var l=r.length;l>n.length;l--)t.el_.removeChild(r[l-1]);r.length=n.length}))},t}(xt),xt.registerComponent("LoadProgressBar",X),re=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i,r=Ie(this.el_),a=xe(this.player_.el());t=e.width*t;a&&r&&(i=e.left-a.left+t,t=e.width-t+(a.right-e.right),i<(a=r.width/2)?a+=a-i:t<a&&(a=t),a<0?a=0:a>r.width&&(a=r.width),a=Math.round(a),this.el_.style.right="-"+a+"px",this.write(n))},n.write=function(e){me(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var a,s,o=r.player_.duration();s=r.player_.liveTracker&&r.player_.liveTracker.isLive()?((s=(a=r.player_.liveTracker.liveWindow())-t*a)<1?"":"-")+Nn(s,a):Nn(n,o),r.update(e,t,s),i&&i()}))},t}(xt),xt.registerComponent("TimeTooltip",re),Yt=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n,i=this.getChild("timeTooltip");i&&(n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),i.updateTime(e,t,n))},t}(xt),Yt.prototype.options_={children:[]},se||K||Yt.prototype.options_.children.push("timeTooltip"),xt.registerComponent("PlayProgressBar",Yt),X=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,(function(){n.el_.style.left=e.width*t+"px"}))},t}(xt),X.prototype.options_={children:["timeTooltip"]},xt.registerComponent("MouseTimeDisplay",X),re=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.setEventHandlers_(),t}c()(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=mt(this,this.update),this.update=at(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s.a&&"visibilityState"in s.a&&this.on(s.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===s.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n,i=this;if("hidden"!==s.a.visibilityState)return n=e.prototype.update.call(this),this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),t=i.player_.liveTracker,r=i.player_.duration();t&&t.isLive()&&(r=i.player_.liveTracker.liveCurrentTime()),i.percent_!==n&&(i.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),i.percent_=n),i.currentTime_===e&&i.duration_===r||(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[Nn(e,r),Nn(r,r)],"{1} of {2}")),i.currentTime_=e,i.duration_=r),i.bar&&i.bar.update(xe(i.el()),i.getProgress())})),n},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Me(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Me(e)){if(t||this.player_.scrubbing()||this.player_.scrubbing(!0),t=this.calculateDistance(e),e=this.player_.liveTracker,e&&e.isLive()){if(.99<=t)return void e.seekToLiveEdge();var n,i=e.seekableStart(),r=e.liveCurrentTime();if((n=(n=r<=(n=i+t*e.liveWindow())?r:n)<=i?i+.1:n)===1/0)return}else(n=t*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Mt(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n,i=this.player_.liveTracker;u.a.isEventKey(t,"Space")||u.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.handleAction(t)):u.a.isEventKey(t,"Home")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(0)):u.a.isEventKey(t,"End")?(t.preventDefault(),t.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration())):/^[0-9]$/.test(u()(t))?(t.preventDefault(),t.stopPropagation(),n=10*(u.a.codes[u()(t)]-u.a.codes[0])/100,i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)):u.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):u.a.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s.a&&"visibilityState"in s.a&&this.off(s.a,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(ln),re.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},se||K||re.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),xt.registerComponent("SeekBar",re),Yt=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.handleMouseMove=at(mt(l()(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=at(mt(l()(i),i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t,n,i,r,a=this.getChild("seekBar");a&&(t=a.getChild("playProgressBar"),n=a.getChild("mouseTimeDisplay"),(t||n)&&(i=Ie(r=a.el()),r=Ae(r,e).x,r=Rn(r,0,1),n&&n.update(i,r),t&&t.update(i,a.getProgress())))},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){var e;this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing()&&(e=this.getChild("seekBar"),this.player_.scrubbing(!1),e.videoWasPlaying&&Mt(this.player_.play())))},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(xt),Yt.prototype.options_={children:["seekBar"]},xt.registerComponent("ProgressControl",Yt),X=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return i.handlePictureInPictureChange(e)})),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return i.handlePictureInPictureEnabledChange(e)})),i.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),i.hide()):i.show()})),i.disable(),i}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){s.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Ln),X.prototype.controlText_="Picture-in-Picture",xt.registerComponent("PictureInPictureToggle",X),re=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on(t,"fullscreenchange",(function(e){return i.handleFullscreenChange(e)})),!1===s.a[t.fsApi_.fullscreenEnabled]&&i.disable(),i}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Ln),re.prototype.controlText_="Fullscreen",xt.registerComponent("FullscreenToggle",re),xt.registerComponent("VolumeLevel",function(e){function t(){return e.apply(this,arguments)||this}return c()(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(xt)),Yt=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){n=xe(this.el_);var r=xe(this.player_.el());t=e.width*t;if(!r||!n)return;var a=e.left-r.left+t;t=e.width-t+(r.right-e.right),r=n.width/2;a<r?r+=r-a:t<r&&(r=t),r<0?r=0:r>n.width&&(r=n.width),this.el_.style.right="-"+r+"px"}this.write(i+"%")},n.write=function(e){me(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){a.update(e,t,n,i.toFixed(0)),r&&r()}))},t}(xt),xt.registerComponent("VolumeLevelTooltip",Yt),X=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,(function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"}))},t}(xt),X.prototype.options_={children:["volumeLevelTooltip"]},xt.registerComponent("MouseVolumeLevelDisplay",X),re=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on("slideractive",(function(e){return i.updateLastVolume_(e)})),i.on(t,"volumechange",(function(e){return i.updateARIAAttributes(e)})),t.ready((function(){return i.updateARIAAttributes()})),i}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Me(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t,n,i,r=this.getChild("mouseVolumeLevelDisplay");r&&(t=xe(i=this.el()),n=this.vertical(),i=Ae(i,e),i=n?i.y:i.x,i=Rn(i,0,1),r.update(t,i,n)),Me(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(ln),re.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},se||K||re.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),re.prototype.playerEvent="volumechange",xt.registerComponent("VolumeBar",re),Yt=function(e){function t(t,n){var i,r,a;return(n=void 0===n?{}:n).vertical=n.vertical||!1,void 0!==n.volumeBar&&!q(n.volumeBar)||(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,r=l()(i),(a=t).tech_&&!a.tech_.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(a,"loadstart",(function(){a.tech_.featuresVolumeControl?r.removeClass("vjs-hidden"):r.addClass("vjs-hidden")})),i.throttledHandleMouseMove=at(mt(l()(i),i.handleMouseMove),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i.on("touchstart",(function(e){return i.handleMouseDown(e)})),i.on("mousemove",(function(e){return i.handleMouseMove(e)})),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}c()(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(xt),Yt.prototype.options_={children:["volumeBar"]},xt.registerComponent("VolumeControl",Yt),X=function(e){function t(t,n){var i,r,a=e.call(this,t,n)||this;return i=l()(a),(r=t).tech_&&!r.tech_.featuresMuteControl&&i.addClass("vjs-hidden"),i.on(r,"loadstart",(function(){r.tech_.featuresMuteControl?i.removeClass("vjs-hidden"):i.addClass("vjs-hidden")})),a.on(t,["loadstart","volumechange"],(function(e){return a.update(e)})),a}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();0===t?(this.player_.volume(n<.1?.1:n),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;se&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)_e(this.el_,"vjs-vol-"+n);ye(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Ln),X.prototype.controlText_="Mute",xt.registerComponent("MuteToggle",X),ln=function(e){function t(t,n){var i;return void 0!==(n=void 0===n?{}:n).inline?n.inline=n.inline:n.inline=!0,void 0!==n.volumeControl&&!q(n.volumeControl)||(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],(function(e){return i.volumePanelState_(e)})),i.on(i.muteToggle,"keyup",(function(e){return i.handleKeyPress(e)})),i.on(i.volumeControl,"keyup",(function(e){return i.handleVolumeControlKeyUp(e)})),i.on("keydown",(function(e){return i.handleKeyPress(e)})),i.on("mouseover",(function(e){return i.handleMouseOver(e)})),i.on("mouseout",(function(e){return i.handleMouseOut(e)})),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}c()(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){u.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),et(s.a,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),tt(s.a,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){u.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(xt);var jn=(ln.prototype.options_={children:["muteToggle","volumeControl"]},xt.registerComponent("VolumePanel",ln),function(e){function t(t,n){var i=e.call(this,t,n)||this;return n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",(function(e){return i.handleKeyDown(e)})),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}c()(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof xt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof xt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){e=this.addChild(e),e&&this.addEventListenerForItem(e)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=fe(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu"),t=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),et(t,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),t},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||s.a.activeElement;this.children().some((function(e){return e.el()===t}))||(e=this.menuButton_)&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()},n.handleTapClick=function(e){var t;this.menuButton_&&(this.menuButton_.unpressButton(),t=this.children(),Array.isArray(t)&&(t=t.filter((function(t){return t.el()===e.target}))[0])&&"CaptionSettingsMenuItem"!==t.name()&&this.menuButton_.focus())},n.handleKeyDown=function(e){u.a.isEventKey(e,"Left")||u.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(u.a.isEventKey(e,"Right")||u.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),0<t.length&&(e<0?e=0:e>=t.length&&(e=t.length-1),t[this.focusedChild_=e].el_.focus())},t}(xt)),Un=(re=(xt.registerComponent("Menu",jn),function(e){function t(t,n){function i(e){return r.handleClick(e)}(r=e.call(this,t,n=void 0===n?{}:n)||this).menuButton_=new Ln(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var r;t=Ln.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+t,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.handleMenuKeyUp_=function(e){return r.handleMenuKeyUp(e)},r.on(r.menuButton_,"tap",i),r.on(r.menuButton_,"click",i),r.on(r.menuButton_,"keydown",(function(e){return r.handleKeyDown(e)})),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),et(s.a,"keyup",r.handleMenuKeyUp_)})),r.on("mouseleave",(function(e){return r.handleMouseLeave(e)})),r.on("keydown",(function(e){return r.handleSubmenuKeyDown(e)})),r}c()(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var e,t=new jn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title&&(e=fe("li",{className:"vjs-menu-title",textContent:kt(this.options_.title),tabIndex:-1}),e=new xt(this.player_,{el:e}),t.addItem(e)),this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button",n=(!0===this.options_.inline?t+="-inline":t+="-popup",Ln.prototype.buildCSSClass());return"vjs-menu-button "+t+" "+n+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),tt(s.a,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){u.a.isEventKey(e,"Esc")||u.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),u.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):!u.a.isEventKey(e,"Up")&&!u.a.isEventKey(e,"Down")||this.buttonPressed_||(e.preventDefault(),this.pressButton())},n.handleMenuKeyUp=function(e){(u.a.isEventKey(e,"Esc")||u.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(u.a.isEventKey(e,"Esc")||u.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),u.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),se&&he()||this.menu.focus())},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(xt)),Yt=(xt.registerComponent("MenuButton",re),function(e){function t(t,n){var i=n.tracks;t=e.call(this,t,n)||this;if(t.items.length<=1&&t.hide(),!i)return l()(t);var r=mt(l()(t),t.update);return i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),i.addEventListener("labelchange",r),t.player_.on("ready",r),t.player_.on("dispose",(function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r),i.removeEventListener("labelchange",r)})),t}return c()(t,e),t}(re)),xt.registerComponent("TrackButton",Yt),["Tab","Esc","Up","Down","Right","Left"]),Bn=(X=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.selectable=n.selectable,t.isSelected_=n.selected||!1,t.multiSelectable=n.multiSelectable,t.selected(t.isSelected_),t.selectable?t.multiSelectable?t.el_.setAttribute("role","menuitemcheckbox"):t.el_.setAttribute("role","menuitemradio"):t.el_.setAttribute("role","menuitem"),t}c()(t,e);var n=t.prototype;return n.createEl=function(t,n,i){return this.nonIconControl=!0,n=e.prototype.createEl.call(this,"li",F({className:"vjs-menu-item",tabIndex:-1},n),i),n.replaceChild(fe("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),n.querySelector(".vjs-icon-placeholder")),n},n.handleKeyDown=function(t){Un.some((function(e){return u.a.isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(G),xt.registerComponent("MenuItem",X),function(e){function t(t,n){function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.handleTracksChange.apply(l()(o),t)}function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];o.handleSelectedLanguageChange.apply(l()(o),t)}var o,u,c=n.track,d=t.textTracks();return n.label=c.label||c.language||"Unknown",n.selected="showing"===c.mode,(o=e.call(this,t,n)||this).track=c,o.kinds=(n.kinds||[n.kind||o.track.kind]).filter(Boolean),t.on(["loadstart","texttrackchange"],i),d.addEventListener("change",i),d.addEventListener("selectedlanguagechange",r),o.on("dispose",(function(){t.off(["loadstart","texttrackchange"],i),d.removeEventListener("change",i),d.removeEventListener("selectedlanguagechange",r)})),void 0===d.onchange&&o.on(["tap","click"],(function(){if("object"!=typeof a.a.Event)try{u=new a.a.Event("change")}catch(t){}u||(u=s.a.createEvent("Event")).initEvent("change",!0,!0),d.dispatchEvent(u)})),o.handleTracksChange(),o}c()(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,i=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var a=i[r];-1!==this.kinds.indexOf(a.kind)&&(a===n?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){var t;"showing"!==this.track.mode||(t=this.player_.cache_.selectedLanguage)&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind||(this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind})},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(X)),Fn=(xt.registerComponent("TextTrackMenuItem",Bn),function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}c()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(-1<this.options_.kinds.indexOf(a.kind)&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(-1<["captions","descriptions","subtitles"].indexOf(a.kind)&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Bn)),Vn=(ln=(xt.registerComponent("OffTextTrackMenuItem",Fn),function(e){function t(t,n){return(n=void 0===n?{}:n).tracks=t.textTracks(),e.call(this,t,n)||this}return c()(t,e),t.prototype.createItems=function(e,t){void 0===t&&(t=Bn),this.label_&&(n=this.label_+" off"),(e=void 0===e?[]:e).push(new Fn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var n,i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var a,s=i[r];-1<this.kinds_.indexOf(s.kind)&&((a=new t(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1})).addClass("vjs-"+s.kind+"-menu-item"),e.push(a))}return e},t}(Yt)),xt.registerComponent("TextTrackButton",ln),function(e){function t(t,n){var i=n.track,r=n.cue,a=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=r.text,n.selected=r.startTime<=a&&a<r.endTime,(a=e.call(this,t,n)||this).track=i,a.cue=r,a}return c()(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},t}(X)),qn=(G=(xt.registerComponent("ChaptersTrackMenuItem",Vn),function(e){function t(t,n,i){var r=e.call(this,t,n,i)||this;return r.selectCurrentItem_=function(){r.items.forEach((function(e){e.selected(r.track_.activeCues[0]===e.cue)}))},r}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){t&&t.track&&"chapters"!==t.track.kind||((t=this.findChaptersTrack())!==this.track_?(this.setTrack(t),e.prototype.update.call(this)):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&e.prototype.update.call(this))},n.setTrack=function(e){var t;this.track_!==e&&(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_&&((t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null),this.track_=e,this.track_&&(this.track_.mode="hidden",(t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&t.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)))},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;0<=t;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(kt(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n];r=new Vn(this.player_,{track:this.track_,cue:r});e.push(r)}return e},t}(ln)),G=(G.prototype.kind_="chapters",G.prototype.controlText_="Chapters",xt.registerComponent("ChaptersButton",G),function(e){function t(t,n,i){n=e.call(this,t,n,i)||this;var r=t.textTracks(),a=mt(l()(n),n.handleTracksChange);return r.addEventListener("change",a),n.on("dispose",(function(){r.removeEventListener("change",a)})),n}c()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var a=t[i];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ln)),G=(G.prototype.kind_="descriptions",G.prototype.controlText_="Descriptions",xt.registerComponent("DescriptionsButton",G),function(e){function t(t,n,i){return e.call(this,t,n,i)||this}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ln)),G.prototype.kind_="subtitles",G.prototype.controlText_="Subtitles",xt.registerComponent("SubtitlesButton",G),function(e){function t(t,n){return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(t=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),t.controlText(", opens "+n.kind+" settings dialog"),t}return c()(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Bn)),Hn=(G=(xt.registerComponent("CaptionSettingsMenuItem",qn),function(e){function t(t,n,i){return e.call(this,t,n,i)||this}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new qn(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(ln)),G.prototype.kind_="captions",G.prototype.controlText_="Captions",xt.registerComponent("CaptionsButton",G),function(e){function t(){return e.apply(this,arguments)||this}return c()(t,e),t.prototype.createEl=function(t,n,i){return t=e.prototype.createEl.call(this,t,n,i),n=t.querySelector(".vjs-menu-item-text"),"captions"===this.options_.track.kind&&(n.appendChild(fe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(fe("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),t},t}(Bn)),Wn=(G=(xt.registerComponent("SubsCapsMenuItem",Hn),function(e){function t(t,n){return(t=e.call(this,t,n=void 0===n?{}:n)||this).label_="subtitles",-1<["en","en-us","en-ca","fr-ca"].indexOf(t.player_.language_)&&(t.label_="captions"),t.menuButton_.controlText(kt(t.label_)),t}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new qn(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t,Hn)},t}(ln)),G.prototype.kinds_=["captions","subtitles"],G.prototype.controlText_="Subtitles",xt.registerComponent("SubsCapsButton",G),function(e){function t(t,n){function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l()(r),t)}var r,a=n.track,s=t.audioTracks();return n.label=a.label||a.language||"Unknown",n.selected=a.enabled,(r=e.call(this,t,n)||this).track=a,r.addClass("vjs-"+a.kind+"-menu-item"),s.addEventListener("change",i),r.on("dispose",(function(){s.removeEventListener("change",i)})),r}c()(t,e);var n=t.prototype;return n.createEl=function(t,n,i){return t=e.prototype.createEl.call(this,t,n,i),n=t.querySelector(".vjs-menu-item-text"),"main-desc"===this.options_.track.kind&&(n.appendChild(fe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),n.appendChild(fe("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),t},n.handleClick=function(t){if(e.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var r=n[i];r!==this.track&&(r.enabled=r===this.track)}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(X)),Gn=(ln=(xt.registerComponent("AudioTrackMenuItem",Wn),function(e){function t(t,n){return(n=void 0===n?{}:n).tracks=t.audioTracks(),e.call(this,t,n)||this}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new Wn(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(Yt)),ln.prototype.controlText_="Audio Track",xt.registerComponent("AudioTrackButton",ln),function(e){function t(t,n){var i,r=n.rate,a=parseFloat(r,10);return n.label=r,n.selected=a===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(i=e.call(this,t,n)||this).label=r,i.rate=a,i.on(t,"ratechange",(function(e){return i.update(e)})),i}c()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(X)),zn=(G=(Gn.prototype.contentElType="button",xt.registerComponent("PlaybackRateMenuItem",Gn),function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(t,"loadstart",(function(e){return i.updateVisibility(e)})),i.on(t,"ratechange",(function(e){return i.updateLabel(e)})),i.on(t,"playbackrateschange",(function(e){return i.handlePlaybackRateschange(e)})),i}c()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=fe("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;0<=n;n--)t.push(new Gn(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates();t=(n.indexOf(t)+1)%n.length;this.player().playbackRate(n[t])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(re)),Yt=(G.prototype.controlText_="Playback Rate",xt.registerComponent("PlaybackRateMenuButton",G),function(e){function t(){return e.apply(this,arguments)||this}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===i&&(i={}),(n=void 0===n?{}:n).className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(xt)),ln=(xt.registerComponent("Spacer",Yt),function(e){function t(){return e.apply(this,arguments)||this}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(Yt)),X=(xt.registerComponent("CustomControlSpacer",ln),function(e){function t(){return e.apply(this,arguments)||this}return c()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(xt)),re=(X.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in s.a&&X.prototype.options_.children.splice(X.prototype.options_.children.length-1,0,"pictureInPictureToggle"),xt.registerComponent("ControlBar",X),function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on(t,"error",(function(e){return i.open(e)})),i}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(qt)),re.prototype.options_=o()({},qt.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),xt.registerComponent("ErrorDisplay",re),"vjs-text-track-settings"),Xn=(G=["#000","Black"],Yt=["#00F","Blue"],ln=["#0FF","Cyan"],X=["#0F0","Green"],re=["#F0F","Magenta"],["#F00","Red"]),Kn=["#FFF","White"],Yn=["#FF0","Yellow"],Qn=["1","Opaque"],$n=["0.5","Semi-Transparent"],Jn=["0","Transparent"],Zn={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[G,Kn,Xn,X,Yt,Yn,re,ln]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Qn,$n,Jn]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Kn,G,Xn,X,Yt,Yn,re,ln]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Qn,$n]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Jn,$n,Qn]}};function ei(e,t){if((e=t?t(e):e)&&"none"!==e)return e}function ti(e){var t,n,i,r=e.el();r.resetSourceWatch_||(t={},n=gi(e),i=function(t){return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var s=t.apply(r,i);return pi(e),s}},["append","appendChild","insertAdjacentHTML"].forEach((function(e){r[e]&&(t[e]=r[e],r[e]=i(t[e]))})),Object.defineProperty(r,"innerHTML",wt(n,{set:i(n.set)})),r.resetSourceWatch_=function(){r.resetSourceWatch_=null,Object.keys(t).forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"innerHTML",n)},e.one("sourceset",r.resetSourceWatch_))}function ni(e){var t,n,i,r;e.featuresSourceset&&!(t=e.el()).resetSourceset_&&(n=mi([e.el(),a.a.HTMLMediaElement.prototype,vi],"src"),i=t.setAttribute,r=t.load,Object.defineProperty(t,"src",wt(n,{set:function(i){return i=n.set.call(t,i),e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,r){return r=i.call(t,n,r),/src/i.test(n)&&e.triggerSourceset(t.src),r},t.load=function(){var n=r.call(t);return pi(e)||(e.triggerSourceset(""),ti(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):pi(e)||ti(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()})}function ii(e,t,n,i){function r(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})}var a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return(i=void 0===i||i)&&(a.set=r),Object.defineProperty(e,t,a)}function ri(e){return Oi.hasOwnProperty(e)}function ai(e){return ri(e)?Oi[e]:void 0}function si(e,t){e[Ci]=e[Ci]||{},e[Ci][t]=!0}function oi(e,t,n){n=(n?"before":"")+"pluginsetup",e.trigger(n,t),e.trigger(n+":"+t.name,t)}function ui(e,t){function n(){oi(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return si(this,e),oi(this,{name:e,plugin:t,instance:n}),n}return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function li(e,t){return t.prototype.name=e,function(){oi(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=f()(t,[this].concat(i));return this[e]=function(){return a},oi(this,a.getEventHash()),a}}function ci(e){return 0===e.indexOf("#")?e.slice(1):e}Zn.windowColor.options=Zn.backgroundColor.options;Kn=function(e){function t(t,n){var i;return n.temporary=!1,(i=e.call(this,t,n)||this).updateDisplay=i.updateDisplay.bind(l()(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=fe("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",(function(){i.saveSettings(),i.close()})),i.on(i.$(".vjs-default-button"),"click",(function(){i.setDefaults(),i.updateDisplay()})),B(Zn,(function(e){i.on(i.$(e.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}c()(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this,r=(e=(void 0===t&&(t=""),void 0===n&&(n="label"),Zn[e]),e.id.replace("%s",this.id_)),a=[t,r].join(" ").trim();return["<"+n+' id="'+r+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(e.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(e.options.map((function(e){var t=r+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+t+'">',i.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return fe("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return fe("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return fe("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,i=this;return t=function(e,t,n){r=i.$(t.selector),t=t.parser;var r=ei(r.options[r.options.selectedIndex].value,t);return void 0!==r&&(e[n]=r),e},void 0===(n={})&&(n=0),R(e=Zn).reduce((function(n,i){return t(n,e[i],i)}),n)},n.setValues=function(e){var t=this;B(Zn,(function(n,i){var r=t.$(n.selector),a=e[i],s=n.parser;if(a)for(var o=0;o<r.options.length;o++)if(ei(r.options[o].value,s)===a){r.selectedIndex=o;break}}))},n.setDefaults=function(){var e=this;B(Zn,(function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(a.a.localStorage.getItem(zn))}catch(e){M.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?a.a.localStorage.setItem(zn,JSON.stringify(e)):a.a.localStorage.removeItem(zn)}catch(e){M.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton;e=e&&e.captionsButton;t?t.focus():e&&e.focus()},t}(qt),xt.registerComponent("TextTrackSettings",Kn),G=function(e){function t(t,n){var i=n.ResizeObserver||a.a.ResizeObserver,r=wt({createEl:!(i=null!==n.ResizeObserver&&i),reportTouchActivity:!1},n),s=e.call(this,t,r)||this;return s.ResizeObserver=n.ResizeObserver||a.a.ResizeObserver,s.loadListener_=null,s.resizeObserver_=null,s.debouncedHandler_=st((function(){s.resizeHandler()}),100,!1,l()(s)),i?(s.resizeObserver_=new s.ResizeObserver(s.debouncedHandler_),s.resizeObserver_.observe(t.el())):(s.loadListener_=function(){var e,t;s.el_&&s.el_.contentWindow&&(e=s.debouncedHandler_,t=s.unloadListener_=function(){tt(this,"resize",e),tt(this,"unload",t),t=null},et(s.el_.contentWindow,"unload",t),et(s.el_.contentWindow,"resize",e))},s.one("load",s.loadListener_)),s}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(xt);var di,hi=(xt.registerComponent("ResizeManager",G),{trackingThreshold:20,liveTolerance:15}),pi=(Xn=function(e){function t(t,n){n=wt(hi,n,{createEl:!1});var i=e.call(this,t,n)||this;return i.handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",(function(e){return i.handleDurationchange(e)})),i.on(i.player_,"canplay",(function(){return i.toggleTracking()})),te&&"hidden"in s.a&&"visibilityState"in s.a&&i.on(s.a,"visibilitychange",i.handleVisibilityChange_),i}c()(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(s.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e,t=this.player_.seekable();t&&t.length&&(t=Number(a.a.performance.now().toFixed(4)),e=-1===this.lastTime_?0:(t-this.lastTime_)/1e3,this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+e,t=this.liveCurrentTime(),e=this.player_.currentTime(),e=this.player_.paused()||this.seekedBehindLive_||Math.abs(t-e)>this.options_.liveTolerance,(e=!(!this.timeupdateSeen_||t===1/0)&&e)!==this.behindLiveEdge_&&(this.behindLiveEdge_=e,this.trigger("liveedgechange")))},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&2<e,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(s.a,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(xt),xt.registerComponent("LiveTracker",Xn),function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[];t="";if(!n.length)return!1;for(var r=0;r<n.length;r++){var a=n[r].src;a&&-1===i.indexOf(a)&&i.push(a)}return!!i.length&&(1===i.length&&(t=i[0]),e.triggerSourceset(t),!0)}),fi=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){for(var t=s.a.createElement(this.nodeName.toLowerCase()),n=(t.innerHTML=e,s.a.createDocumentFragment());t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",a.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),mi=function(e,t){for(var n={},i=0;i<e.length&&!((n=Object.getOwnPropertyDescriptor(e[i],t))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},gi=function(e){return mi([e.el(),a.a.HTMLMediaElement.prototype,a.a.Element.prototype,fi],"innerHTML")},vi=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Xt(a.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return a.a.Element.prototype.setAttribute.call(this,"src",e),e}}),yi=function(e){function t(t,n){var i=e.call(this,t,n)||this,r=(n=t.source,!1);if(i.featuresVideoFrameCallback=i.featuresVideoFrameCallback&&"VIDEO"===i.el_.tagName,n&&(i.el_.currentSrc!==n.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(n):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var a=i.el_.childNodes,s=a.length,o=[];s--;){var u=a[s];"track"===u.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(u),i.remoteTextTracks().addTrack(u.track),i.textTracks().addTrack(u.track),r||i.el_.hasAttribute("crossorigin")||!rn(u.src)||(r=!0)):o.push(u))}for(var l=0;l<o.length;l++)i.el_.removeChild(o[l])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&r&&M.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(ie||ae||Q)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}c()(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){ni(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){function e(){n=[];for(var e=0;e<i.length;e++){var t=i[e];"metadata"===t.kind&&n.push({track:t,storedMode:t.mode})}}function t(){for(var e=0;e<n.length;e++){var r=n[e];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}i.removeEventListener("change",t)}var n,i=this.textTracks();e(),i.addEventListener("change",e),this.on("dispose",(function(){return i.removeEventListener("change",e)})),this.on("webkitbeginfullscreen",(function(){i.removeEventListener("change",e),i.removeEventListener("change",t),i.addEventListener("change",t)})),this.on("webkitendfullscreen",(function(){i.removeEventListener("change",e),i.addEventListener("change",e),i.removeEventListener("change",t)}))},n.overrideNative_=function(e,t){var n,i=this;t===this["featuresNative"+e+"Tracks"]&&(this[(n=e.toLowerCase())+"TracksListeners_"]&&Object.keys(this[n+"TracksListeners_"]).forEach((function(e){i.el()[n+"Tracks"].removeEventListener(e,i[n+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[n+"TracksListeners_"]=null,this.proxyNativeTracksForType_(n))},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t,n,i=this,r=cn[e],a=this.el()[r.getterName],s=this[r.getterName]();this["featuresNative"+r.capitalName+"Tracks"]&&a&&a.addEventListener&&(n=function(){for(var e=[],t=0;t<s.length;t++){for(var n=!1,i=0;i<a.length;i++)if(a[i]===s[t]){n=!0;break}n||e.push(s[t])}for(;e.length;)s.removeTrack(e.shift())},this[r.getterName+"Listeners_"]=t={change:function(t){var n={type:"change",target:s,currentTarget:s,srcElement:s};s.trigger(n),"text"===e&&i[dn.remoteText.getterName]().trigger(n)},addtrack:function(e){s.addTrack(e.track)},removetrack:function(e){s.removeTrack(e.track)}},Object.keys(t).forEach((function(e){var n=t[e];a.addEventListener(e,n),i.on("dispose",(function(t){return a.removeEventListener(e,n)}))})),this.on("loadstart",n),this.on("dispose",(function(e){return i.off("loadstart",n)})))},n.proxyNativeTracks_=function(){var e=this;cn.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=function(){for(var e,n=this.options_.tag,i=(n&&(this.options_.playerElIngest||this.movingMediaElementInDOM)||(n?(e=n.cloneNode(!0),n.parentNode&&n.parentNode.insertBefore(e,n),t.disposeMediaElement(n),n=e):(n=s.a.createElement("video"),e=wt({},this.options_.tag&&Se(this.options_.tag)),ie&&!0===this.options_.nativeControlsForTouch||delete e.controls,Te(n,F(e,{id:this.options_.techId,class:"vjs-tech"}))),n.playerId=this.options_.playerId),void 0!==this.options_.preload&&ke(n,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(n.disablePictureInPicture=this.options_.disablePictureInPicture),["loop","muted","playsinline","autoplay"]),r=0;r<i.length;r++){var a=i[r],o=this.options_[a];void 0!==o&&(o?ke(n,a,a):we(n,a),n[a]=o)}return n},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){var t,n,i;if(0===e.readyState)return t=!1,this.on("loadstart",n=function(){t=!0}),this.on("loadedmetadata",i=function(){t||this.trigger("loadstart")}),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")}));var r=["loadstart"];r.push("loadedmetadata"),2<=e.readyState&&r.push("loadeddata"),3<=e.readyState&&r.push("canplay"),4<=e.readyState&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&oe?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){M(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;return this.el_.duration===1/0&&K&&Z&&0===this.el_.currentTime?(this.on("timeupdate",(function t(){0<e.el_.currentTime&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN):this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e,t,n=this;"webkitDisplayingFullscreen"in this.el_&&(e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},this.on("webkitbeginfullscreen",t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))}),this.on("dispose",(function(){n.off("webkitbeginfullscreen",t),n.off("webkitendfullscreen",e)})))},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=a.a.navigator&&a.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Mt(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}),0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},n.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=s.a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){return t=e.prototype.addRemoteTextTrack.call(this,t,n),this.featuresNativeTextTracks&&this.el().appendChild(t),t},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),a.a.performance&&"function"==typeof a.a.performance.now?e.creationTime=a.a.performance.now():a.a.performance&&a.a.performance.timing&&"number"==typeof a.a.performance.timing.navigationStart&&(e.creationTime=a.a.Date.now()-a.a.performance.timing.navigationStart),e},t}(pn),_i=(ii(yi,"TEST_VID",(function(){var e,t;if(ce())return e=s.a.createElement("video"),t=s.a.createElement("track"),t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e})),yi.isSupported=function(){try{yi.TEST_VID.volume=.5}catch(r){return!1}return!(!yi.TEST_VID||!yi.TEST_VID.canPlayType)},yi.canPlayType=function(e){return yi.TEST_VID.canPlayType(e)},yi.canPlaySource=function(e,t){return yi.canPlayType(e.type)},yi.canControlVolume=function(){try{var e=yi.TEST_VID.volume,t=(yi.TEST_VID.volume=e/2+.1,e!==yi.TEST_VID.volume);return t&&se?(a.a.setTimeout((function(){yi&&yi.prototype&&(yi.prototype.featuresVolumeControl=e!==yi.TEST_VID.volume)})),!1):t}catch(e){return!1}},yi.canMuteVolume=function(){try{var e=yi.TEST_VID.muted;return yi.TEST_VID.muted=!e,yi.TEST_VID.muted?ke(yi.TEST_VID,"muted","muted"):we(yi.TEST_VID,"muted"),e!==yi.TEST_VID.muted}catch(e){return!1}},yi.canControlPlaybackRate=function(){if(K&&Z&&ee<58)return!1;try{var e=yi.TEST_VID.playbackRate;return yi.TEST_VID.playbackRate=e/2+.1,e!==yi.TEST_VID.playbackRate}catch(e){return!1}},yi.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(s.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(s.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(s.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(s.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},yi.supportsNativeTextTracks=function(){return oe||se&&Z},yi.supportsNativeVideoTracks=function(){return!(!yi.TEST_VID||!yi.TEST_VID.videoTracks)},yi.supportsNativeAudioTracks=function(){return!(!yi.TEST_VID||!yi.TEST_VID.audioTracks)},yi.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];ii(yi.prototype,t,(function(){return yi[n]()}),!0)})),yi.prototype.featuresVolumeControl=yi.canControlVolume(),yi.prototype.movingMediaElementInDOM=!se,yi.prototype.featuresFullscreenResize=!0,yi.prototype.featuresProgressEvents=!0,yi.prototype.featuresTimeupdateEvents=!0,yi.prototype.featuresVideoFrameCallback=!(!yi.TEST_VID||!yi.TEST_VID.requestVideoFrameCallback),yi.patchCanPlayType=function(){4<=Y&&!$&&!Z&&(di=yi.TEST_VID&&yi.TEST_VID.constructor.prototype.canPlayType,yi.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":di.call(this,e)})},yi.unpatchCanPlayType=function(){var e=yi.TEST_VID.constructor.prototype.canPlayType;return di&&(yi.TEST_VID.constructor.prototype.canPlayType=di),e},yi.patchCanPlayType(),yi.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);if(e.removeAttribute("src"),"function"==typeof e.load)try{e.load()}catch(e){}}},yi.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);if(e.removeAttribute("src"),"function"==typeof e.load)try{e.load()}catch(e){}}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){yi.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){yi.prototype["set"+kt(e)]=function(t){(this.el_[e]=t)?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){yi.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){yi.prototype["set"+kt(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){yi.prototype[e]=function(){return this.el_[e]()}})),pn.withSourceHandlers(yi),yi.nativeSourceHandler={},yi.nativeSourceHandler.canPlayType=function(e){try{return yi.TEST_VID.canPlayType(e)}catch(e){return""}},yi.nativeSourceHandler.canHandleSource=function(e,t){return e.type?yi.nativeSourceHandler.canPlayType(e.type):e.src?(e=nn(e.src),yi.nativeSourceHandler.canPlayType("video/"+e)):""},yi.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},yi.nativeSourceHandler.dispose=function(){},yi.registerSourceHandler(yi.nativeSourceHandler),pn.registerTech("Html5",yi),["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"]),bi={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Ti=["tiny","xsmall","small","medium","large","xlarge","huge"],Si={},Ei=(Ti.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Si[e]="vjs-layout-"+t})),{tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0}),ki=function(e){function t(n,i,r){var a,o;if(n.id=n.id||i.id||"vjs_video_"+Xe++,(i=F(t.getTagSettings(n),i)).initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof n.closest){var u=n.closest("[lang]");u&&u.getAttribute&&(i.language=u.getAttribute("lang"))}else for(var c=n;c&&1===c.nodeType;){if(Se(c).hasOwnProperty("lang")){i.language=c.getAttribute("lang");break}c=c.parentNode}if((a=e.call(this,null,i,r)||this).boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=j(a.id_),a.fsApi_=I,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");return a.tag=n,a.tagAttributes=n&&Se(n),a.language(a.options_.language),i.languages?(o={},Object.getOwnPropertyNames(i.languages).forEach((function(e){o[e.toLowerCase()]=i.languages[e]})),a.languages_=o):a.languages_=t.prototype.options_.languages,a.resetCache_(),a.poster_=i.poster||"",a.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],n.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach((function(e){if("function"!=typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),bt(l()(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(et(s.a,a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_),u=wt(a.options_),i.plugins&&Object.keys(i.plugins).forEach((function(e){a[e](i.plugins[e])})),i.debug&&a.debug(!0),a.options_.playerOptions=u,a.middleware_=[],a.playbackRates(i.playbackRates),a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),ie&&a.addClass("vjs-touch-enabled"),se||a.addClass("vjs-workinghover"),t.players[a.id_]=l()(a),r="7.21.6".split(".")[0],a.addClass("vjs-v"+r),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",(function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)})),a}c()(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),tt(s.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),tt(s.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),mn[this.id()]=null,hn.names.forEach((function(e){e=hn[e],e=n[e.getterName](),e&&e.off&&e.off()})),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var t,n,i,r=this.tag,o=this.playerElIngest_=r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player"),u="video-js"===this.tag.tagName.toLowerCase(),l=(o?t=this.el_=r.parentNode:u||(t=this.el_=e.prototype.createEl.call(this,"div")),Se(r));if(u){for(t=this.el_=r,r=this.tag=s.a.createElement("video");t.children.length;)r.appendChild(t.firstChild);ve(t,"video-js")||ye(t,"video-js"),t.appendChild(r),o=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{r[e]=t[e]}catch(e){}}))}r.setAttribute("tabindex","-1"),l.tabindex="-1",(te||Z&&ne)&&(r.setAttribute("role","application"),l.role="application"),r.removeAttribute("width"),r.removeAttribute("height"),"width"in l&&delete l.width,"height"in l&&delete l.height,Object.getOwnPropertyNames(l).forEach((function(e){u&&"class"===e||t.setAttribute(e,l[e]),u&&r.setAttribute(e,l[e])})),r.playerId=r.id,r.id+="_html5_api",r.className="vjs-tech",(r.player=t.player=this).addClass("vjs-paused"),!0!==a.a.VIDEOJS_NO_DYNAMIC_STYLE&&(this.styleEl_=Ge("vjs-styles-dimensions"),n=Be(".vjs-styles-defaults"),(i=Be("head")).insertBefore(this.styleEl_,n?n.nextSibling:i.firstChild)),this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var c=r.getElementsByTagName("a"),d=0;d<c.length;d++){var h=c.item(d);ye(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return r.initNetworkState_=r.networkState,r.parentNode&&!o&&r.parentNode.insertBefore(t,r),ge(r,t),this.children_.unshift(r),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"!==e&&"use-credentials"!==e?M.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"'):this.techCall_("setCrossOrigin",e)},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?M.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},n.fluid=function(e){var t,n=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,vt(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),e=function(){n.on(["playerreset","resize"],n.boundUpdateStyleEl_)},vt(t=this)?e():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(e))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0===a.a.VIDEOJS_NO_DYNAMIC_STYLE)return e="number"==typeof this.width_?this.width_:this.options_.width,n="number"==typeof this.height_?this.height_:this.options_.height,void((t=this.tech_&&this.tech_.el())&&(0<=e&&(t.width=e),0<=n&&(t.height=n)));var e=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),t=e[1]/e[0],n=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/t:this.videoWidth()||300,i=(e=void 0!==this.height_?this.height_:n*t,/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions");this.addClass(i),ze(this.styleEl_,"\n ."+i+" {\n width: "+n+"px;\n height: "+e+"px;\n }\n\n ."+i+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*t+"%;\n }\n ")},n.loadTech_=function(e,t){var n=this,i=(this.tech_&&this.unloadTech_(),kt(e)),r=e.charAt(0).toLowerCase()+e.slice(1),a=("Html5"!==i&&this.tag&&(pn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1,this.autoplay()),s={source:t,autoplay:a=!("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};hn.names.forEach((function(e){e=hn[e],s[e.getterName]=n[e.privateName]})),F(s,this.options_[i]),F(s,this.options_[r]),F(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&0<this.cache_.currentTime&&(s.startTime=this.cache_.currentTime),a=pn.getTech(e);if(!a)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new a(s),this.tech_.ready(mt(this,this.handleTechReady_),!0),Ft(this.textTracksJson_||[],this.tech_),_i.forEach((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+kt(e)+"_"](t)}))})),Object.keys(bi).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+bi[e]+"_"].bind(n),event:t}):n["handleTech"+bi[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return n.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return n.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return n.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return n.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return n.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return n.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return n.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return n.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return n.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return n.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return n.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return n.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return n.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return n.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return n.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return n.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return n.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||ge(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;hn.names.forEach((function(t){t=hn[t],e[t.privateName]=e[t.getterName]()})),this.textTracksJson_=Bt(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&M.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,i=function(){function e(){t.muted(n)}var n=t.muted(),i=(t.muted(!0),t.playTerminatedQueue_.push(e),t.play());if(Rt(i))return i.catch((function(t){throw e(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(t||""))}))};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():Rt(n=this.play())&&(n=n.catch(i)),Rt(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})})).catch((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){for(var t=e=void 0===e?"":e,n="",i=(e=("string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var a=i[r];if(a.type&&a.src&&a.src===t)return a.type}return Cn(t)}(this,t)),this.cache_.source=wt({},e,{src:t,type:n}),this.cache_.sources.filter((function(e){return e.src&&e.src===t}))),[]),r=this.$$("source"),a=[],s=0;s<r.length;s++){var o=Se(r[s]);i.push(o),o.src&&o.src===t&&a.push(o.src)}a.length&&!e.length?this.cache_.sources=i:e.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t,n,i,r=this;this.changingSrc_||(t=function(e){return r.updateSourceCaches_(e)},n=this.currentSource().src,i=e.src,(t=!n||/^blob:/.test(n)||!/^blob:/.test(i)||this.lastSource_&&(this.lastSource_.tech===i||this.lastSource_.player===n)?t:function(){})(i),e.src||this.tech_.any(["sourceset","loadstart"],(function(e){"sourceset"!==e.type&&(e=r.techGet("currentSrc"),r.lastSource_.tech=e,r.updateSourceCaches_(e))}))),this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){0<this.tech_.playbackRate()&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this,t=(this.addClass("vjs-waiting"),this.trigger("waiting"),this.currentTime());this.on("timeupdate",(function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))}))},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(M.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){!this.controls_||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Mt(this.play()):this.pause())},n.handleTechDoubleClick_=function(e){!this.controls_||Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t;e=e.target.player;e&&e!==this||(e=this.el(),!(t=s.a[this.fsApi_.fullscreenElement]===e)&&e.matches?t=e.matches(":"+this.fsApi_.fullscreen):!t&&e.msMatchesSelector&&(t=e.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(t))},n.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){n.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=1<arguments.length?arguments[1]:null;this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in bn)return n=this.middleware_,this.tech_[e](n.reduce(Sn(e),t));if(e in Tn)return yn(this.middleware_,this.tech_,e,t);var n;try{this.tech_&&this.tech_[e](t)}catch(n){throw M(n),n}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in _n)return t=this.middleware_,n=this.tech_,t.reduceRight(Sn(e),n[e]());if(e in Tn)return yn(this.middleware_,this.tech_,e);var t,n;try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw M("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw M("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw M(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||a.a.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this,n=(e=(this.playCallbacks_.push(e=void 0===e?Mt:e),Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()))),Boolean(oe||se));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!e)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!e&&n&&this.load());e=this.techGet_("play"),n&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===e?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(e)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Pt(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=(e=parseFloat(e))<0?1/0:e)!==this.cache_.duration&&((this.cache_.duration=e)===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e;return(e=this.techGet_("buffered"))&&e.length?e:Pt(0,0)},n.bufferedPercent=function(){return Lt(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration();e=e.end(e.length-1);return t<e?t:e},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(0<t&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){var t;return void 0!==e?(t=this.isFullscreen_,this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()):this.isFullscreen_},n.requestFullscreen=function(e){var t,n=this.options_.Promise||a.a.Promise;return n?(t=this,new n((function(n,i){function r(){t.off("fullscreenerror",s),t.off("fullscreenchange",a)}function a(){r(),n()}function s(e,t){r(),i(t)}t.one("fullscreenchange",a),t.one("fullscreenerror",s);var o=t.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(n,i))}))):this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen)return(e=this.el_[this.fsApi_.requestFullscreen](t))&&e.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),e;this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e,t=this.options_.Promise||a.a.Promise;return t?(e=this,new t((function(t,n){function i(){e.off("fullscreenerror",a),e.off("fullscreenchange",r)}function r(){i(),t()}function a(e,t){i(),n(t)}e.one("fullscreenchange",r),e.one("fullscreenerror",a);var s=e.exitFullscreenHelper_();s&&(s.then(i,i),s.then(t,n))}))):this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e,t=this;if(this.fsApi_.requestFullscreen)return(e=s.a[this.fsApi_.exitFullscreen]())&&Mt(e.then((function(){return t.isFullscreen(!1)}))),e;this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=s.a.documentElement.style.overflow,et(s.a,"keydown",this.boundFullWindowOnEscKey_),s.a.documentElement.style.overflow="hidden",ye(s.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){u.a.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,tt(s.a,"keydown",this.boundFullWindowOnEscKey_),s.a.documentElement.style.overflow=this.docOrigOverflow,_e(s.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in s.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in s.a)return s.a.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;t&&t.hotkeys&&(function(e){var t=e.tagName.toLowerCase();return!!e.isContentEditable||("input"===t?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type):-1!==["textarea"].indexOf(t))}(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e)))},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=(n=void 0===n?function(e){return u.a.isEventKey(e,"f")}:n,t.muteKey);i=void 0===i?function(e){return u.a.isEventKey(e,"m")}:i,t=t.playPauseKey,t=void 0===t?function(e){return u.a.isEventKey(e,"k")||u.a.isEventKey(e,"Space")}:t;n.call(this,e)?(e.preventDefault(),e.stopPropagation(),n=xt.getComponent("FullscreenToggle"),!1!==s.a[this.fsApi_.fullscreenEnabled]&&n.prototype.handleClick.call(this,e)):i.call(this,e)?(e.preventDefault(),e.stopPropagation(),xt.getComponent("MuteToggle").prototype.handleClick.call(this,e)):t.call(this,e)&&(e.preventDefault(),e.stopPropagation(),xt.getComponent("PlayToggle").prototype.handleClick.call(this,e))},n.canPlayType=function(e){for(var t=0,n=this.options_.techOrder;t<n.length;t++){var i=n[t],r=pn.getTech(i);if(r=r||xt.getComponent(i)){if(r.isSupported()&&(r=r.canPlayType(e)))return r}else M.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){function t(e,t,n){var i;return e.some((function(e){return t.some((function(t){if(i=n(e,t))return!0}))})),i}function n(e,t){var n=e[0];if(e[1].canPlaySource(t,r.options_[n.toLowerCase()]))return{source:t,tech:n}}var i,r=this,a=this.options_.techOrder.map((function(e){return[e,pn.getTech(e)]})).filter((function(e){var t=e[0];e=e[1];return e?e.isSupported():(M.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}));a=this.options_.sourceOrder?t(e,a,(i=n,function(e,t){return i(t,e)})):t(a,e,n);return a||!1},n.handleSrc_=function(e,t){var n=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i,r,a=kn(e);a.length?(this.changingSrc_=!0,t||(this.cache_.sources=a),this.updateSourceCaches_(a[0]),vn(this,a[0],(function(e,i){var r;if(n.middleware_=i,t||(n.cache_.sources=a),n.updateSourceCaches_(e),n.src_(e))return 1<a.length?n.handleSrc_(a.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void n.triggerReady());r=n.tech_,i.forEach((function(e){return e.setTech&&e.setTech(r)}))})),this.options_.retryOnError&&1<a.length&&(i=function(){n.error(null),n.handleSrc_(a.slice(1),!0)},r=function(){n.off("error",i)},this.one("error",i),this.one("playing",r),this.resetRetryOnError_=function(){n.off("error",i),n.off("playing",r)})):this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t,n,i=this,r=this.selectSource([e]);return!r||(t=r.tech,n=this.techName_,kt(t)!==kt(n)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready((function(){i.changingSrc_=!1}))):this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1)},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||a.a.Promise;this.paused()||!t?this.doReset_():Mt(this.play().then((function(){return e.doReset_()})))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),vt(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay;e=e.remainingTimeDisplay;t&&t.updateContent(),e&&e.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;(e=e||"")!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){var e;(!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster&&(e=this.tech_.poster()||"")!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))},n.controls=function(e){if(void 0===e)return!!this.controls_;this.controls_!==(e=!!e)&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;this.usingNativeControls_!==(e=!!e)&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){var t,n=this;return void 0===e?this.error_||null:(O("beforeerror").forEach((function(t){t=t(n,e),V(t)&&!Array.isArray(t)||"string"==typeof t||"number"==typeof t||null===t?e=t:n.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code?(this.options_.suppressNotSupportedError=!(t=function(){this.error(e)}),this.any(["click","touchstart"],t),void this.one("loadstart",(function(){this.off(["click","touchstart"],t)}))):null===e?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new Dt(e),this.addClass("vjs-error"),M.error("(CODE:"+this.error_.code+" "+Dt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),void O("error").forEach((function(e){return e(n,n.error_)}))))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){function e(e){a(),this.clearInterval(t)}var t,n,i,r,a=mt(this,this.reportUserActivity),s=(this.on("mousedown",(function(){a(),this.clearInterval(t),t=this.setInterval(a,250)})),this.on("mousemove",(function(e){e.screenX===n&&e.screenY===i||(n=e.screenX,i=e.screenY,a())})),this.on("mouseup",e),this.on("mouseleave",e),this.getChild("controlBar"));!s||se||K||(s.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),s.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",a),this.on("keyup",a),this.setInterval((function(){var e;this.userActivity_&&(this.userActivity_=!1,this.userActive(!0),this.clearTimeout(r),(e=this.options_.inactivityTimeout)<=0||(r=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e)))}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.enableAudioOnlyUI_=function(){var e=this,t=(this.addClass("vjs-audio-only-mode"),this.children()),n=this.getChild("ControlBar"),i=n&&n.currentHeight();t.forEach((function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(e){return e.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var n,i=this.options_.Promise||a.a.Promise;if(i)return e?(n=[],this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),i.all(n).then((function(){return t.enableAudioOnlyUI_()}))):i.resolve().then((function(){return t.disableAudioOnlyUI_()}));e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var n=this.options_.Promise||a.a.Promise;return n?e?(this.audioOnlyMode()?this.audioOnlyMode(!1):n.resolve()).then((function(){t.enablePosterModeUI_()})):n.resolve().then((function(){t.disablePosterModeUI_()})):e?(this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_()):void this.disablePosterModeUI_()},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){var t=(t=(e=void 0===e?{}:e).track)||e;if(this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),vt(this)&&this.trigger("languagechange"))},n.languages=function(){return wt(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=wt(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];(i=wt(i)).player=void 0,e.tracks[n]=i}return e},n.createModal=function(e,t){var n=this,i=((t=t||{}).content=e||"",new qt(this,t));return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Ti.length;n++){var i=Ti[n];if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(Si[e]),this.addClass(Si[i]),this.breakpoint_=i;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=F({},Ei,e),this.updateCurrentBreakpoint_()),F(this.breakpoints_)},n.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?((this.responsive_=e)?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Si[this.breakpoint_]||""},n.loadMedia=function(e,t){var n,i,r,a=this;e&&"object"==typeof e&&(this.reset(),this.cache_.media=wt(e),n=(e=this.cache_.media).artwork,i=e.poster,r=e.src,e=e.textTracks,!n&&i&&(this.cache_.media.artwork=[{src:i,type:Cn(i)}]),r&&this.src(r),i&&this.poster(i),Array.isArray(e)&&e.forEach((function(e){return a.addRemoteTextTrack(e,!1)})),this.ready(t))},n.getMedia=function(){var e,t;return this.cache_.media?wt(this.cache_.media):(e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}}))},e&&(t.poster=e,t.artwork=[{src:t.poster,type:Cn(t.poster)}]),t)},t.getTagSettings=function(e){var t,n={sources:[],tracks:[]},i=Se(e),r=i["data-setup"];if(ve(e,"vjs-fill")&&(i.fill=!0),ve(e,"vjs-fluid")&&(i.fluid=!0),null!==r&&(t=(r=d()(r||"{}"))[0],r=r[1],t&&M.error(t),F(i,r)),F(n,i),e.hasChildNodes())for(var a=e.childNodes,s=0,o=a.length;s<o;s++){var u=a[s],l=u.nodeName.toLowerCase();"source"===l?n.sources.push(Se(u)):"track"===l&&n.tracks.push(Se(u))}return n},n.flexNotSupported_=function(){var e=s.a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((function(e){return"number"==typeof e}))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(xt),wi=(X=(hn.names.forEach((function(e){var t=hn[e];ki.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),ki.prototype.crossorigin=ki.prototype.crossOrigin,ki.players={},a.a.navigator),ki.prototype.options_={techOrder:pn.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:X&&(X.languages&&X.languages[0]||X.userLanguage||X.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){ki.prototype[e]=function(){return this.techGet_(e)}})),_i.forEach((function(e){ki.prototype["handleTech"+kt(e)+"_"]=function(){return this.trigger(e)}})),xt.registerComponent("Player",ki),"plugin"),Ci="activePlugins_",Oi={},xi=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),bt(this),delete this.trigger,St(this,this.constructor.defaultState),si(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return(e=void 0===e?{}:e).name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return nt(this.eventBusEl_,e,this.getEventHash(t=void 0===t?{}:t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Ci][e]=!1,this.player=this.state=null,t[e]=li(e,Oi[e])},e.isBasic=function(t){return t="string"==typeof t?ai(t):t,"function"==typeof t&&!e.prototype.isPrototypeOf(t.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(ri(t))M.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(ki.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return Oi[t]=n,t!==wi&&(e.isBasic(n)?ki.prototype[t]=ui(t,n):ki.prototype[t]=li(t,n)),n},e.deregisterPlugin=function(e){if(e===wi)throw new Error("Cannot de-register base plugin.");ri(e)&&(delete Oi[e],delete ki.prototype[e])},e.getPlugins=function(e){var t;return(e=void 0===e?Object.keys(Oi):e).forEach((function(e){var n=ai(e);n&&((t=t||{})[e]=n)})),t},e.getPluginVersion=function(e){return e=ai(e),e&&e.VERSION||""},e}(),Ii=(xi.getPlugin=ai,xi.BASE_PLUGIN_NAME=wi,xi.registerPlugin(wi,xi),ki.prototype.usingPlugin=function(e){return!!this[Ci]&&!0===this[Ci][e]},!(ki.prototype.hasPlugin=function(e){return!!ri(e)}));function Ai(e,t,n){if(r=Ai.getPlayer(e))return t&&M.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?Be("#"+ci(e)):e;if(!de(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||M.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(i.parentNode&&i.parentNode.hasAttribute("data-vjs-player")?i.parentNode:i).cloneNode(!0)),O("beforesetup").forEach((function(e){e=e(i,wt(t)),!V(e)||Array.isArray(e)?M.error("please return an object in beforesetup hooks"):t=wt(t,e)}));var r=new(xt.getComponent("Player"))(i,t,n);return O("setup").forEach((function(e){return e(r)})),r}function Pi(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t}function Li(e,t){return Kr(e,(function(e,n){return e-Xr<=t&&t<=n+Xr}))}function Di(e,t){return Kr(e,(function(e){return t<=e-zr}))}function Ni(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")}function Ri(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}function Mi(e){if(e&&e.length&&e.end)return e.end(e.length-1)}function ji(e,t){var n=0;if(!e||!e.length)return n;for(var i=0;i<e.length;i++){var r=e.start(i),a=e.end(i);a<t||(n+=r<t&&t<=a?a-t:a-r)}return n}function Ui(e,t){if(!t.preload)return t.duration;var n=0;return(t.parts||[]).forEach((function(e){n+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(n+=e.partTargetDuration)})),n}function Bi(e){return(e.segments||[]).reduce((function(e,t,n){return t.parts?t.parts.forEach((function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e}),[])}function Fi(e){return(e=e.segments&&e.segments.length&&e.segments[e.segments.length-1])&&e.parts||[]}function Vi(e){var t;if(e=e.preloadSegment)return t=e.parts,(e=(e.preloadHints||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0))+(t&&t.length?t.length:0)}function qi(e){var t=e.defaultDuration,n=e.durationList,i=e.startIndex,r=e.endIndex,a=0;if(r<i&&(i=(e=[r,i])[0],r=e[1]),i<0){for(var s=i;s<Math.min(0,r);s++)a+=t;i=0}for(var o=i;o<r;o++)a+=n[o].duration;return a}function Hi(e,t,n,i){return e&&e.segments?e.endList?ea(e):null===t?null:(t=Zr(e,e.mediaSequence+e.segments.length,t=t||0),n&&(t-=i="number"==typeof i?i:Qr(null,e)),Math.max(0,t)):null}function Wi(e){return e.excludeUntil&&e.excludeUntil>Date.now()}function Gi(e){return e.excludeUntil&&e.excludeUntil===1/0}function zi(e){var t=Wi(e);return!e.disabled&&!t}function Xi(e,t){return t.attributes&&t.attributes[e]}function Ki(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!zi(e)&&(e.attributes.BANDWIDTH||0)<n})).length}function Yi(e,t){return!(!e&&!t||!e&&t||e&&!t)&&(e===t||!(!e.id||!t.id||e.id!==t.id)||!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri))}function Qi(e,t){var n,i=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},r=!1;for(n in i){for(var a in i[n])if(r=t(i[n][a]))break;if(r)break}return!!r}function $i(e,t,n){return"placeholder-uri-"+e+"-"+t+"-"+n}function Ji(e,t,n){void 0===n&&(n=$i),e.uri=t;for(var i=0;i<e.playlists.length;i++)e.playlists[i].uri||(e.playlists[i].uri="placeholder-uri-"+i);for(var r,a=ta(e),s=(aa(e,(function(t,i,r,s){if(!t.playlists||!t.playlists.length){if(a&&"AUDIO"===i&&!t.uri)for(var u=0;u<e.playlists.length;u++){var l=e.playlists[u];if(l.attributes&&l.attributes.AUDIO&&l.attributes.AUDIO===r)return}t.playlists=[o()({},t)]}t.playlists.forEach((function(t,a){var o=n(i,r,s,t),u=ra(a,o);t.uri?t.resolvedUri=t.resolvedUri||Wr(e.uri,t.uri):(t.uri=0===a?o:u,t.resolvedUri=t.uri),t.id=t.id||u,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),e),u=s.playlists.length;u--;){var l=s.playlists[u];sa({playlist:l,id:ra(u,l.uri)}),l.resolvedUri=Wr(s.uri,l.uri),s.playlists[l.id]=l,(s.playlists[l.uri]=l).attributes.BANDWIDTH||ia.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}aa(r=e,(function(e){e.uri&&(e.resolvedUri=Wr(r.uri,e.uri))}))}function Zi(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Wr(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Wr(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Wr(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Wr(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((function(e){e.resolvedUri||(e.resolvedUri=Wr(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((function(e){e.resolvedUri||(e.resolvedUri=Wr(t,e.uri))}))}function er(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t}function tr(e,t,n){void 0===n&&(n=la);var i=oa(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=er(t);var a=oa(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var s=0;s<t.skip.skippedSegments;s++)t.segments.unshift({skipped:!0})}a.segments=function(e,t,n){for(var i,r=e.slice(),a=t.slice(),s=(n=n||0,[]),o=0;o<a.length;o++){var u=r[o+n],l=a[o];u?(i=u.map||i,s.push(ua(u,l))):(i&&!l.map&&(l.map=i),s.push(l))}return s}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach((function(e){Zi(e,a.resolvedUri)}));for(var o=0;o<i.playlists.length;o++)i.playlists[o].id===t.id&&(i.playlists[o]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,aa(e,(function(e,n,i,r){if(e.playlists)for(var s=0;s<e.playlists.length;s++)t.id===e.playlists[s].id&&(e.playlists[s]=a)})),i}function nr(e,t){var n=(n=e.segments||[])[n.length-1],i=(i=n&&n.parts&&n.parts[n.parts.length-1])&&i.duration||n&&n.duration;return t&&i?1e3*i:500*(e.partTargetDuration||e.targetDuration||10)}function ir(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),i(t=t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode?t:new Error("XHR Failed with a response of: "+(e&&(r||e.responseText))),e)}function rr(){function e(t,n){t=ha({timeout:45e3},t);var i=e.beforeRequest||Ai.Vhs.xhr.beforeRequest,r=(i&&"function"==typeof i&&(i=i(t))&&(t=i),(!0===Ai.Vhs.xhr.original?da:Ai.Vhs.xhr)(t,(function(e,t){return ir(r,e,t,n)}))),a=r.abort;return r.abort=function(){return r.aborted=!0,a.apply(r,arguments)},r.uri=t.uri,r.requestTime=Date.now(),r}return e.original=!0,e}function ar(e){var t,n={};return e.byterange&&(n.Range=(e=e.byterange,t=e.offset,e="bigint"==typeof e.offset||"bigint"==typeof e.length?a.a.BigInt(e.offset)+a.a.BigInt(e.length)-a.a.BigInt(1):e.offset+e.length-1,"bytes="+t+"-"+e)),n}function sr(e,t){return e=e.toString(16),"00".substring(0,2-e.length)+e+(t%2?" ":"")}function or(e){return 32<=e&&e<126?String.fromCharCode(e):"."}function ur(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];Object(_.e)(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t}function lr(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")}function cr(e){return e.resolvedUri}function dr(e){for(var t=Array.prototype.slice.call(e),n="",i=0;i<t.length/16;i++)n+=t.slice(16*i,16*i+16).map(sr).join("")+" "+t.slice(16*i,16*i+16).map(or).join("")+"\n";return n}function hr(e){var t=e.playlist,n=void 0===(n=e.time)?void 0:n;if(!(e=e.callback))throw new Error("getProgramTime: callback must be provided");if(!t||void 0===n)return e({message:"getProgramTime: playlist and time must be provided"});if(!(t=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length&&!(e<=(i=(n=t.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(i<e){if(e>i+a.duration*pa)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(n,t)))return e({message:"valid programTime was not found"});if("estimate"===t.type)return e({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:t.estimatedStart});var i={mediaSeconds:n};return(n=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds;e-=t.videoTimingInfo.transmuxedPresentationStart+n;return new Date(t.dateTimeObject.getTime()+1e3*e)}(n,t.segment))&&(i.programDateTime=n.toISOString()),e(null,i)}function pr(e){var t,n=e.programTime,i=e.playlist,r=e.retryCount,a=void 0===r?2:r,s=e.seekTo,o=void 0===(r=e.pauseAfterSeek)||r,u=e.tech,l=e.callback;if(l)return void 0!==n&&i&&s?i.endList||u.hasStarted_?function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0}(i)?(r=function(e,t){var n;try{n=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;if(n<(r=t.segments[0]).dateTimeObject)return null;for(var i=0;i<t.segments.length-1;i++){var r=t.segments[i];if(n<t.segments[i+1].dateTimeObject)break}e=t.segments[t.segments.length-1];var a=e.dateTimeObject,s=e.videoTimingInfo?fa(e.videoTimingInfo):e.duration+e.duration*pa;return new Date(a.getTime()+1e3*s)<n?null:{segment:r=a<n?e:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:na.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"}}(n,i))?(t=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(e){}return e=n.getTime(),(i.getTime()-e)/1e3}((e=r.segment).dateTimeObject,n),"estimate"===r.type?0===a?l({message:n+" is not buffered yet. Try again"}):(s(r.estimatedStart+t),void u.one("seeked",(function(){pr({programTime:n,playlist:i,retryCount:a-1,seekTo:s,pauseAfterSeek:o,tech:u,callback:l})}))):(r=e.start+t,u.one("seeked",(function(){return l(null,u.currentTime())})),o&&u.pause(),void s(r))):l({message:n+" was not found in the stream"}):l({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri}):l({message:"player must be playing a live stream to start buffering"}):l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});throw new Error("seekToProgramTime: callback must be provided")}function fr(e,t){if(4===e.readyState)return t()}function mr(e,t,n){function i(e,t,i,r){return t.abort(),o=!0,n(e,t,i,r)}function r(e,t){if(!o){if(e)return i(e,t,"",s);var n=t.responseText.substring(s&&s.byteLength||0,t.responseText.length);return s=Object(_.d)(s,Object(_.h)(n,!0)),a=a||Object(E.a)(s),s.length<10||a&&s.length<a+2?fr(t,(function(){return i(e,t,"",s)})):(n=Object(k.a)(s),"ts"===n&&s.length<188||!n&&s.length<376?fr(t,(function(){return i(e,t,"",s)})):i(null,t,n,s))}}var a,s=[],o=!1,u=t({uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function(t){return t.total,t.loaded,ir(e,null,{statusCode:e.status},r)}))}},(function(e,t){return ir(u,e,t,r)}));return u}function gr(e,t){if(!la(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){if(i=i.byterange,r=r.byterange,i&&!r||!i&&r)return!1;if(i.offset!==r.offset||i.length!==r.length)return!1}}return!0}function vr(e,t,n,i){return"placeholder-uri-"+e+"-"+t+"-"+(i.attributes.NAME||n)}function yr(e,t,n){for(var i,r,a=!0,s=ma(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),o=0;o<t.playlists.length;o++){var u=t.playlists[o],l=(u.sidx&&(l=Object(b.b)(u.sidx),n&&n[l]&&n[l].sidx&&Object(b.a)(u,n[l].sidx,u.sidx.resolvedUri)),tr(s,u,gr));l&&(s=l,a=!1)}return aa(t,(function(e,t,n,i){var r,o;e.playlists&&e.playlists.length&&(r=e.playlists[0].id,(o=tr(s,e.playlists[0],gr))&&(i in(s=o).mediaGroups[t][n]||(s.mediaGroups[t][n][i]=e),s.mediaGroups[t][n][i].playlists[0]=s.playlists[r],a=!1))})),r=t,aa(i=s,(function(e,t,n,a){a in r.mediaGroups[t][n]||delete i.mediaGroups[t][n][a]})),(a=t.minimumUpdatePeriod===e.minimumUpdatePeriod&&a)?null:s}function _r(e,t){var n,i={};for(n in e){var r=e[n].sidx;if(r){var a=Object(b.b)(r);if(!t[a])break;var s=t[a].sidxInfo;ga(s,r)&&(i[a]=t[a])}}return i}function br(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e}function Tr(e){return function(){var t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(t){var n=new BlobBuilder;return n.append(e),URL.createObjectURL(n.getBlob())}}(e),n=br(new Worker(t)),i=(n.objURL=t,n.terminate);return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}}function Sr(e){return"var browserWorkerPolyFill = "+br.toString()+";\nbrowserWorkerPolyFill(self);\n"+e}function Er(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)}function kr(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,u=e.onAudioTimingInfo,l=e.onVideoTimingInfo,c=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,v=e.isEndOfTimeline,y={buffer:[]},_=v;t.onmessage=function(n){t.currentTransmux===e&&("data"===n.data.action&&Ta(n,y,s),"trackinfo"===n.data.action&&o(n.data.trackInfo),"gopInfo"===n.data.action&&Ea(n,y),"audioTimingInfo"===n.data.action&&u(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&l(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&c(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&p(n.data.caption),"endedtimeline"===n.data.action&&(_=!1,m()),"log"===n.data.action&&g(n.data.log),"transmuxed"!==n.data.type||_||(t.onmessage=null,Sa({transmuxedData:y,callback:f}),ka(t)))},i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength&&(i=n instanceof ArrayBuffer?n:n.buffer,r=n instanceof ArrayBuffer?0:n.byteOffset,t.postMessage({action:"push",data:i,byteOffset:r,byteLength:n.byteLength},[i])),v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})}function wr(e,t){if(!t.currentTransmux)return t.currentTransmux=e,wa(t,e);t.transmuxQueue.push(wa.bind(null,t,e))}function Cr(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void kr(e);e.transmuxer.transmuxQueue.push(e)}function Or(e){var t,n=e.transmuxer,i=e.endAction||e.action,r=e.callback,a=o()({},e,{endAction:null,transmuxer:null,callback:null});n.addEventListener("message",(function t(a){a.data.action===i&&(n.removeEventListener("message",t),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),r(a.data))})),e.data?(t=e.data instanceof ArrayBuffer,a.byteOffset=t?0:e.data.byteOffset,a.byteLength=e.data.byteLength,t=[t?e.data:e.data.buffer],n.postMessage(a,t)):n.postMessage(a)}function xr(e,t,n){return function(i,r){var a=r.response;i=La(i,r);if(i)return n(i,e);if(16!==a.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:xa.FAILURE,xhr:r},e);i=new DataView(a);for(var s=new Uint32Array([i.getUint32(0),i.getUint32(4),i.getUint32(8),i.getUint32(12)]),o=0;o<t.length;o++)t[o].bytes=s;return n(null,e)}}function Ir(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=(e=t.map&&t.map.tracks||{},Boolean(e.audio&&e.video)),m=r.bind(null,t,"audio","start"),g=r.bind(null,t,"audio","end"),v=r.bind(null,t,"video","start"),y=r.bind(null,t,"video","end");Or({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data,e=e.result,e&&(i(t,{hasAudio:e.hasAudio,hasVideo:e.hasVideo,isMuxed:f}),i=null,e.hasAudio&&!f&&m(e.audioStart),e.hasVideo&&v(e.videoStart),v=m=null),Cr({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:f,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(f&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){m&&void 0!==e.start&&(m(e.start),m=null),g&&void 0!==e.end&&g(e.end)},onVideoTimingInfo:function(e){v&&void 0!==e.start&&(v(e.start),v=null),y&&void 0!==e.end&&y(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){s(e)},onId3:function(e,n){o(t,e,n)},onCaptions:function(e){u(t,[e])},isEndOfTimeline:l,onEndedTimeline:function(){c()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})}})}function Ar(e){function t(e,t){if(!g){if(e)return g=!0,Ia(n),p(e,t);if((m+=1)===n.length){var v=function(){if(t.encryptedBytes)return Ma({decryptionWorker:i,segment:t,trackInfoFn:r,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:u,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:d,dataFn:h,doneFn:p,onTransmuxerLog:f});Na({segment:t,bytes:t.bytes,trackInfoFn:r,timingInfoFn:a,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:o,id3Fn:u,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:d,dataFn:h,doneFn:p,onTransmuxerLog:f})};if(t.endOfAllRequests=Date.now(),t.map&&t.map.encryptedBytes&&!t.map.bytes)return Ra({decryptionWorker:i,id:t.requestId+"-init",encryptedBytes:t.map.encryptedBytes,key:t.map.key},(function(e){t.map.bytes=e,Da(t,(function(e){if(e)return Ia(n),p(e,t);v()}))}));v()}}}var n,i,r,a,s,o,u,l,c,d,h,p,f,m,g,v,y,_=e.xhr,b=e.xhrOptions,T=e.decryptionWorker,S=e.segment,E=e.abortFn,k=e.progressFn,w=e.trackInfoFn,C=e.timingInfoFn,O=e.videoSegmentTimingInfoFn,x=e.audioSegmentTimingInfoFn,I=e.id3Fn,A=e.captionsFn,P=e.isEndOfTimeline,L=e.endedTimelineFn,D=e.dataFn,N=e.doneFn,R=(e=e.onTransmuxerLog,[]);n=(T={activeXhrs:R,decryptionWorker:T,trackInfoFn:w,timingInfoFn:C,videoSegmentTimingInfoFn:O,audioSegmentTimingInfoFn:x,id3Fn:I,captionsFn:A,isEndOfTimeline:P,endedTimelineFn:L,dataFn:D,doneFn:N,onTransmuxerLog:e}).activeXhrs,i=T.decryptionWorker,r=T.trackInfoFn,a=T.timingInfoFn,s=T.videoSegmentTimingInfoFn,o=T.audioSegmentTimingInfoFn,u=T.id3Fn,l=T.captionsFn,c=T.isEndOfTimeline,d=T.endedTimelineFn,h=T.dataFn,p=T.doneFn,f=T.onTransmuxerLog,m=0,g=!1,S.key&&!S.key.bytes&&(N=[S.key],S.map&&!S.map.bytes&&S.map.key&&S.map.key.resolvedUri===S.key.resolvedUri&&N.push(S.map.key),e=_(Ai.mergeOptions(b,{uri:S.key.resolvedUri,responseType:"arraybuffer"}),xr(S,N,t)),R.push(e)),S.map&&!S.map.bytes&&(!S.map.key||S.key&&S.key.resolvedUri===S.map.key.resolvedUri||(T=_(Ai.mergeOptions(b,{uri:S.map.key.resolvedUri,responseType:"arraybuffer"}),xr(S,[S.map.key],t)),R.push(T)),N=Ai.mergeOptions(b,{uri:S.map.resolvedUri,responseType:"arraybuffer",headers:ar(S.map)}),v=(e={segment:S,finishProcessingFn:t}).segment,y=e.finishProcessingFn,T=_(N,(function(e,t){e=La(e,t);return e?y(e,v):(e=new Uint8Array(t.response),v.map.key?(v.map.encryptedBytes=e,y(null,v)):(v.map.bytes=e,void Da(v,(function(e){if(e)return e.xhr=t,e.status=t.status,y(e,v);y(null,v)}))))})),R.push(T)),e=Ai.mergeOptions(b,{uri:S.part&&S.part.resolvedUri||S.resolvedUri,responseType:"arraybuffer",headers:ar(S)});N={segment:S,finishProcessingFn:t,responseType:e.responseType},M=N.segment,j=N.finishProcessingFn,U=N.responseType,(T=_(e,(function(e,t){return e=La(e,t),e?j(e,M):(e="arraybuffer"!==U&&t.responseText?_a(t.responseText.substring(M.lastReachedChar||0)):t.response,M.stats=Aa(t),M.key?M.encryptedBytes=new Uint8Array(e):M.bytes=new Uint8Array(e),j(null,M))}))).addEventListener("progress",(B=(b={segment:S,progressFn:k,trackInfoFn:w,timingInfoFn:C,videoSegmentTimingInfoFn:O,audioSegmentTimingInfoFn:x,id3Fn:I,captionsFn:A,isEndOfTimeline:P,endedTimelineFn:L,dataFn:D}).segment,F=b.progressFn,b.trackInfoFn,b.timingInfoFn,b.videoSegmentTimingInfoFn,b.audioSegmentTimingInfoFn,b.id3Fn,b.captionsFn,b.isEndOfTimeline,b.endedTimelineFn,b.dataFn,function(e){var t=e.target;if(!t.aborted)return B.stats=Ai.mergeOptions(B.stats,Pa(e)),!B.stats.firstBytesReceivedAt&&B.stats.bytesReceived&&(B.stats.firstBytesReceivedAt=Date.now()),F(e,B)})),R.push(T);var M,j,U,B,F,V={};return R.forEach((function(e){var t,n;e.addEventListener("loadend",(t=(e={loadendState:V,abortFn:E}).loadendState,n=e.abortFn,function(e){e.target.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}))})),function(){return Ia(R)}}function Pr(e){var t=0;return e.audio&&t++,e.video&&t++,t}function Lr(e,t){return(e=e&&a.a.getComputedStyle(e))?e[t]:""}function Dr(e,t){var n,i;return(n=(n=e.attributes.BANDWIDTH?e.attributes.BANDWIDTH:n)||a.a.Number.MAX_VALUE)-((i=t.attributes.BANDWIDTH?t.attributes.BANDWIDTH:i)||a.a.Number.MAX_VALUE)}function Nr(e,t,n,i,r,s){if(e){var o={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r},u=e.playlists,l=(e=(na.isAudioOnly(e)&&(u=s.getAudioTrackPlaylists_(),o.audioOnly=!0),u.map((function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,i=e.attributes&&e.attributes.BANDWIDTH;return{bandwidth:i||a.a.Number.MAX_VALUE,width:t,height:n,playlist:e}}))),u=(Ha(e,(function(e,t){return e.bandwidth-t.bandwidth})),(e=e.filter((function(e){return!na.isIncompatible(e.playlist)}))).filter((function(e){return na.isEnabled(e.playlist)}))),(u=u.length?u:e.filter((function(e){return!na.isDisabled(e.playlist)}))).filter((function(e){return e.bandwidth*ya.BANDWIDTH_VARIANCE<t}))),c=l[l.length-1],d=l.filter((function(e){return e.bandwidth===c.bandwidth}))[0];if(!1===r)return(r=d||u[0]||e[0])&&r.playlist?(m=d?"bandwidthBestRep":"sortedPlaylistReps",u[0]&&(m="enabledPlaylistReps"),Va("choosing "+qa(r)+" using "+m+" with options",o),r.playlist):(Va("could not choose a playlist with options",o),null);var h,p,f,m=l.filter((function(e){return e.width&&e.height}));r=(Ha(m,(function(e,t){return e.width-t.width})),m.filter((function(e){return e.width===n&&e.height===i}))),c=r[r.length-1],l=r.filter((function(e){return e.bandwidth===c.bandwidth}))[0],s=(l||(r=(h=m.filter((function(e){return e.width>n||e.height>i}))).filter((function(e){return e.width===h[0].width&&e.height===h[0].height})),c=r[r.length-1],p=r.filter((function(e){return e.bandwidth===c.bandwidth}))[0]),s.experimentalLeastPixelDiffSelector&&(r=m.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e})),Ha(r,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),f=r[0]),f||p||l||d||u[0]||e[0]);return s&&s.playlist?(m="sortedPlaylistReps",f?m="leastPixelDiffRep":p?m="resolutionPlusOneRep":l?m="resolutionBestRep":d?m="bandwidthBestRep":u[0]&&(m="enabledPlaylistReps"),Va("choosing "+qa(s)+" using "+m+" with options",o),s.playlist):(Va("could not choose a playlist with options",o),null)}}function Rr(){var e=this.useDevicePixelRatio&&a.a.devicePixelRatio||1;return Nr(this.playlists.master,this.systemBandwidth,parseInt(Lr(this.tech_.el(),"width"),10)*e,parseInt(Lr(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}function Mr(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var s=a.a.WebKitDataCue||a.a.VTTCue,o=t.metadataTrack_;if(o&&(n.forEach((function(e){var t=e.cueTime+i;!("number"!=typeof t||a.a.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n,i=new s(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,n=i,Object.defineProperties(n.frame,{id:{get:function(){return Ai.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),n.value.key}},value:{get:function(){return Ai.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),n.value.data}},privateData:{get:function(){return Ai.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),n.value.data}}}),o.addCue(i)}))})),o.cues&&o.cues.length)){for(var u=o.cues,l=[],c=0;c<u.length;c++)u[c]&&l.push(u[c]);var d=l.reduce((function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),h=Object.keys(d).sort((function(e,t){return Number(e)-Number(t)}));h.forEach((function(e,t){e=d[e];var n=Number(h[t+1])||r;e.forEach((function(e){e.endTime=n}))}))}}}function jr(e,t,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=e&&r.endTime<=t&&n.removeCue(r)}function Ur(e){return"number"==typeof e&&isFinite(e)}function Br(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=(o=e.playlist).mediaSequence,s=o.id,o=o.segments,u=e.mediaIndex,l=e.partIndex,c=e.timeline,d=(o=(void 0===o?[]:o).length-1,"mediaIndex/partIndex increment"),h=(e.getMediaInfoForTime?d="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(d="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(d+=" with independent "+e.independent),"number"==typeof l),p=(e=e.segment.uri?"segment":"pre-segment",h?Vi({preloadSegment:i})-1:0);return e+" ["+(a+u)+"/"+(a+o)+"]"+(h?" part ["+l+"/"+p+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(h?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+c+"] selected by ["+d+"] playlist ["+s+"]"}function Fr(e){return e+"TimingInfo"}function Vr(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType;e=e.audioDisabled;return n!==i&&("audio"===r?!(n=t.lastTimelineChange({type:"main"}))||n.to!==i:!("main"!==r||!e)&&(!(n=t.pendingTimelineChange({type:"audio"}))||n.to!==i))}function qr(e){var t=e.segmentDuration;e=e.maxDuration;return!!t&&Math.round(t)>e+zr}function Hr(e,t){if("hls"!==t)return null;var n,i;if(n={audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo},i=0,["video","audio"].forEach((function(e){var t,r;e=n[e+"TimingInfo"];e&&(t=e.start,e=e.end,"bigint"==typeof t||"bigint"==typeof e?r=a.a.BigInt(e)-a.a.BigInt(t):"number"==typeof t&&"number"==typeof e&&(r=e-t),void 0!==r&&i<r&&(i=r))})),!(t=i="bigint"==typeof i&&i<Number.MAX_SAFE_INTEGER?Number(i):i))return null;var r=e.playlist.targetDuration,s=qr({segmentDuration:t,maxDuration:2*r}),o=qr({segmentDuration:t,maxDuration:r});t="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+t+" when the reported duration is "+e.duration+" and the target duration is "+r+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return s||o?{severity:s?"warn":"info",message:t}:null}
  6. /*! @name @videojs/http-streaming @version 2.16.3 @license Apache-2.0 */Ai.hooks_=C,Ai.hooks=O,Ai.hook=function(e,t){O(e,t)},Ai.hookOnce=function(e,t){O(e,[].concat(t).map((function(t){return function n(){return x(e,n),t.apply(void 0,arguments)}})))},Ai.removeHook=x,!0!==a.a.VIDEOJS_NO_DYNAMIC_STYLE&&ce()&&!(Yt=Be(".vjs-styles-defaults"))&&(Yt=Ge("vjs-styles-defaults"),(Yn=Be("head"))&&Yn.insertBefore(Yt,Yn.firstChild),ze(Yt,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")),He(1,Ai),Ai.VERSION="7.21.6",Ai.options=ki.prototype.options_,Ai.getPlayers=function(){return ki.players},Ai.getPlayer=function(e){var t=ki.players;if("string"==typeof e){var n=ci(e),i=t[n];if(i)return i;i=Be("#"+n)}else i=e;if(de(i)&&(n=i,e=n.player,i=n.playerId,e||t[i]))return e||t[i]},Ai.getAllPlayers=function(){return Object.keys(ki.players).map((function(e){return ki.players[e]})).filter(Boolean)},Ai.players=ki.players,Ai.getComponent=xt.getComponent,Ai.registerComponent=function(e,t){pn.isTech(t)&&M.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),xt.registerComponent.call(xt,e,t)},Ai.getTech=pn.getTech,Ai.registerTech=pn.registerTech,Ai.use=function(e,t){fn[e]=fn[e]||[],fn[e].push(t)},Object.defineProperty(Ai,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Ai.middleware,"TERMINATOR",{value:gn,writeable:!1,enumerable:!0}),Ai.browser=z,Ai.TOUCH_ENABLED=ie,Ai.extend=function(e,t){void 0===t&&(t={}),Ii||(M.warn("videojs.extend is deprecated as of Video.js 7.22.0 and will be removed in Video.js 8.0.0"),Ii=!0);var n,i=function(){e.apply(this,arguments)},r={};for(n in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(i=t.constructor),r=t):"function"==typeof t&&(i=t),m()(i,e),e&&(i.super_=e),r)r.hasOwnProperty(n)&&(i.prototype[n]=r[n]);return i},Ai.mergeOptions=wt,Ai.bind=mt,Ai.registerPlugin=xi.registerPlugin,Ai.deregisterPlugin=xi.deregisterPlugin,Ai.plugin=function(e,t){return M.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),xi.registerPlugin(e,t)},Ai.getPlugins=xi.getPlugins,Ai.getPlugin=xi.getPlugin,Ai.getPluginVersion=xi.getPluginVersion,Ai.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),Ai.options.languages=wt(Ai.options.languages,((n={})[e]=t,n)),Ai.options.languages[e]},Ai.log=M,Ai.createLogger=j,Ai.createTimeRange=Ai.createTimeRanges=Pt,Ai.formatTime=Nn,Ai.setFormatTime=function(e){Dn=e},Ai.resetFormatTime=function(){Dn=Pn},Ai.parseUrl=zt,Ai.isCrossOrigin=rn,Ai.EventTarget=ot,Ai.on=et,Ai.one=it,Ai.off=tt,Ai.trigger=nt,Ai.xhr=h.a,Ai.TextTrack=on,Ai.AudioTrack=un,Ai.VideoTrack=tn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){Ai[e]=function(){return M.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Ve[e].apply(null,arguments)}})),Ai.computedStyle=H,Ai.dom=Ve,Ai.url=an,Ai.defineLazyProperty=ii,Ai.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var Wr=r.a,Gr=function(e){return Ai.log.debug?Ai.log.debug.bind(Ai,"VHS:",e+" >"):function(){}},zr=1/30,Xr=3*zr,Kr=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return Ai.createTimeRanges(i)},Yr=Ai.createTimeRange,Qr=function(e,t){return t.endList?0:e&&e.suggestedPresentationDelay?e.suggestedPresentationDelay:(e=0<Fi(t).length,e&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:e&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0)},$r=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=e.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=Ui(e,r),void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},Jr=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(n=e.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=Ui(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}},Zr=function(e,t,n){if((t=void 0===t?e.mediaSequence+e.segments.length:t)<e.mediaSequence)return 0;var i=$r(e,t);return i.precise?i.result:(e=Jr(e,t),e.precise?e.result:i.result+n)},ea=function(e,t,n){if(!e)return 0;if(void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return a.a.Infinity}return Zr(e,t,n="number"!=typeof n?0:n)},ta=function(e){if(!e||!e.playlists||!e.playlists.length)return Qi(e,(function(e){return e.playlists&&e.playlists.length||e.uri}));for(var t=0;t<e.playlists.length;t++){var n=function(t){var n=e.playlists[t];t=n.attributes&&n.attributes.CODECS;return t&&t.split(",").every((function(e){return Object(v.f)(e)}))||Qi(e,(function(e){return Yi(n,e)}))?"continue":{v:!1}}(t);if("continue"!==n&&"object"==typeof n)return n.v}return!0},na={liveEdgeDelay:Qr,duration:ea,seekable:function(e,t,n){var i=t||0;e=Hi(e,t,!0,n);return null===e?Yr():Yr(i,e)},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,s=e.experimentalExactManifestTimings,o=n-a,u=Bi(t),l=0,c=0;c<u.length;c++){var d=u[c];if(i===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){l=c;break}}if(o<0){if(0<l)for(var h=l-1;0<=h;h--){var p=u[h];if(o+=p.duration,s){if(o<0)continue}else if(o+zr<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-qi({defaultDuration:t.targetDuration,durationList:u,startIndex:l,endIndex:h})}}return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n}}if(l<0){for(var f=l;f<0;f++)if((o-=t.targetDuration)<0)return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:n};l=0}for(var m=l;m<u.length;m++){var g=u[m];if(o-=g.duration,s){if(0<o)continue}else if(0<=o-zr)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+qi({defaultDuration:t.targetDuration,durationList:u,startIndex:l,endIndex:m})}}return{segmentIndex:u[u.length-1].segmentIndex,partIndex:u[u.length-1].partIndex,startTime:n}},isEnabled:zi,isDisabled:function(e){return e.disabled},isBlacklisted:Wi,isIncompatible:Gi,playlistEnd:Hi,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:Xi,estimateSegmentRequestTime:function(e,t,n,i){return Xi("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*(i=void 0===i?0:i))/t:NaN},isLowestEnabledRendition:Ki,isAudioOnly:ta,playlistMatch:Yi,segmentDurationWithParts:Ui},ia=Ai.log,ra=function(e,t){return e+"-"+t},aa=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((function(n){if(e.mediaGroups[n])for(var i in e.mediaGroups[n])for(var r in e.mediaGroups[n][i]){var a=e.mediaGroups[n][i][r];t(a,n,i,r)}}))},sa=function(e){var t=e.playlist,n=e.uri;e=e.id;t.id=e,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},oa=Ai.mergeOptions,ua=function(e,t){if(!e)return t;var n=oa(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=oa(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},la=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},ca=function(e){function t(t,n,i){var r;if(void 0===i&&(i={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=Gr("PlaylistLoader");var a=i.withCredentials;a=void 0!==a&&a,i=i.handleManifestRedirects,i=void 0!==i&&i,r.src=t,r.vhs_=n,r.withCredentials=a,r.handleManifestRedirects=i,t=n.options_;return r.customTagParsers=t&&t.customTagParsers||[],r.customTagMappers=t&&t.customTagMappers||[],r.experimentalLLHLS=t&&t.experimentalLLHLS||!1,Ai.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(l()(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}c()(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e,t,n=this;"HAVE_METADATA"===this.state&&(e=this.media(),t=Wr(this.master.uri,e.uri),this.experimentalLLHLS&&(t=function(e,t){if(t.endList||!t.serverControl)return e;var n,i,r,s,o={};return t.serverControl.canBlockReload&&(i=t.preloadSegment,n=t.mediaSequence+t.segments.length,i&&(i=i.parts||[],-1<(r=Vi(t)-1)&&r!=i.length-1&&(o._HLS_part=r),(-1<r||i.length)&&n--),o._HLS_msn=n),t.serverControl&&t.serverControl.canSkipUntil&&(o._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(o).length&&(s=new a.a.URL(e),["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){o.hasOwnProperty(e)&&s.searchParams.set(e,o[e])})),e=s.toString()),e}(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials},(function(e,t){if(n.request)return e?n.playlistRequestError(n.request,n.media(),"HAVE_METADATA"):void n.haveMetadata({playlistString:n.request.responseText,url:n.media().uri,id:n.media().id})})))},n.playlistRequestError=function(e,t,n){var i=t.uri;t=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[t],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:500<=e.status?4:2},this.trigger("error")},n.parseManifest_=function(e){var t,n,i,r,a,s,o,u=this,l=e.url;e=e.manifestString;return e={onwarn:function(e){return e=e.message,u.logger_("m3u8-parser warn for "+l+": "+e)},oninfo:function(e){return e=e.message,u.logger_("m3u8-parser info for "+l+": "+e)},manifestString:e,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS},t=e.onwarn,n=e.oninfo,i=e.manifestString,r=void 0===(r=e.customTagParsers)?[]:r,a=void 0===(a=e.customTagMappers)?[]:a,e=e.experimentalLLHLS,s=new g.a,t&&s.on("warn",t),n&&s.on("info",n),r.forEach((function(e){return s.addParser(e)})),a.forEach((function(e){return s.addTagMapper(e)})),s.push(i),s.end(),o=s.manifest,e||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){o.hasOwnProperty(e)&&delete o[e]})),o.segments&&o.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),o.targetDuration||(n=10,o.segments&&o.segments.length&&(n=o.segments.reduce((function(e,t){return Math.max(e,t.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+n),o.targetDuration=n),(r=Fi(o)).length&&!o.partTargetDuration&&(a=r.reduce((function(e,t){return Math.max(e,t.duration)}),0),t&&(t("manifest has no partTargetDuration defaulting to "+a),ia.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=a),o},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistObject,i=e.url;e=e.id,this.request=null,this.state="HAVE_METADATA",n=n||this.parseManifest_({url:i,manifestString:t}),n.lastRequest=Date.now(),sa({playlist:n,uri:i,id:e}),t=tr(this.master,n);this.targetDuration=n.partTargetDuration||n.targetDuration,this.pendingMedia_=null,t?(this.master=t,this.media_=this.master.playlists[e]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(nr(this.media(),!!t)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),a.a.clearTimeout(this.mediaUpdateTimeout),a.a.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){var e;this.request&&(e=this.request,this.request=null,e.onreadystatechange=null,e.abort())},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(a.a.clearTimeout(this.finalRenditionTimeout),t)return t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3,void(this.finalRenditionTimeout=a.a.setTimeout(this.media.bind(this,e,!1),t));var i=this.state,r=(t=!this.media_||e.id!==this.media_.id,this.master.playlists[e.id]);if(r&&r.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(t&&(this.trigger("mediachanging"),"HAVE_MASTER"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(nr(e,!0)),t){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,r){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=Pi(n.handleManifestRedirects,e.resolvedUri,r),t)return n.playlistRequestError(n.request,e,i);n.haveMetadata({playlistString:r.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===i?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}},n.pause=function(){this.mediaUpdateTimeout&&(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this,n=(this.mediaUpdateTimeout&&(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media());if(e)return e=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3,void(this.mediaUpdateTimeout=a.a.setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),e));this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=a.a.setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},n.start=function(){var e=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=a.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Pi(e.handleManifestRedirects,e.src,n),t=e.parseManifest_({manifestString:n.responseText,url:e.src}),e.setupInitialPlaylist(t)}}))},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,Ji(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=er(e),e.segments.forEach((function(t){Zi(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t,n,i,r=this.srcUri()||a.a.location.href;this.master=(n=ra(0,t=r),(i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:a.a.location.href,resolvedUri:a.a.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]}).playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i),this.haveMetadata({playlistObject:e,url:r,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(Ai.EventTarget),da=Ai.xhr,ha=Ai.mergeOptions,pa=(re=Object.freeze({__proto__:null,createTransferableMessage:ur,initSegmentId:lr,segmentKeyId:cr,hexDump:dr,tagDump:function(e){return e=e.bytes,dr(e)},textRanges:function(e){for(var t,n,i="",r=0;r<e.length;r++)i+=(n=r,(t=e).start(n)+"-"+t.end(n)+" ");return i}}),.25),fa=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},ma=Ai.mergeOptions,ga=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},va=function(e){function t(t,n,i,r){void 0===i&&(i={}),(a=e.call(this)||this).masterPlaylistLoader_=r||l()(a),r||(a.isMaster_=!0);var a;r=i,i=r.withCredentials,i=void 0!==i&&i,r=r.handleManifestRedirects,r=void 0!==r&&r;if(a.vhs_=n,a.withCredentials=i,a.handleManifestRedirects=r,t)return a.on("minimumUpdatePeriod",(function(){a.refreshXml_()})),a.on("mediaupdatetimeout",(function(){a.refreshMedia_(a.media().id)})),a.state="HAVE_NOTHING",a.loadedPlaylists_={},a.logger_=Gr("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a;throw new Error("A non-empty playlist URL or object is required")}c()(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var i,r,s=this,o=e.sidx&&Object(b.b)(e.sidx);e.sidx&&o&&!this.masterPlaylistLoader_.sidxMapping_[o]?(i=Pi(this.handleManifestRedirects,e.sidx.resolvedUri),r=function(i,r){if(!s.requestErrored_(i,r,t)){var a;i=s.masterPlaylistLoader_.sidxMapping_;try{a=S()(Object(_.k)(r.response).subarray(8))}catch(i){return void s.requestErrored_(i,r,t)}return i[o]={sidxInfo:e.sidx,sidx:a},Object(b.a)(e,a,e.sidx.resolvedUri),n(!0)}},this.request=mr(i,this.vhs_.xhr,(function(t,n,a,o){return t?r(t,n):a&&"mp4"===a?(u=(l=e.sidx.byterange).offset,l=l.length,o.length>=l+u?r(t,{response:o.subarray(u,u+l),status:n.status,uri:n.uri}):void(s.request=s.vhs_.xhr({uri:i,responseType:"arraybuffer",headers:ar({byterange:e.sidx.byterange})},r))):r({status:n.status,message:"Unsupported "+(a||"unknown")+" container type for sidx segment at URL: "+i,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var u,l}))):this.mediaRequest_=a.a.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},a.a.clearTimeout(this.minimumUpdatePeriodTimeout_),a.a.clearTimeout(this.mediaRequest_),a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){var e;this.request&&(e=this.request,this.request=null,e.onreadystatechange=null,e.abort())},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(i){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState;e=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[e.id]=e,this.mediaRequest_=null,this.refreshMedia_(e.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(a.a.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this,n=(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.media());if(e)return e=n?n.targetDuration/2*1e3:5e3,void(this.mediaUpdateTimeout=a.a.setTimeout((function(){return t.load()}),e));this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=a.a.setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,i){var r;if(!t.requestErrored_(n,i))return r=i.responseText!==t.masterPlaylistLoader_.masterXml_,t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=Pi(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(i,r)}))):e(i,r);"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=Object(b.d)(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Wr(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();i="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=i-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e,t,n,i=this.masterPlaylistLoader_.master,r=(e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:i},t=e.masterXml,n=e.srcUrl,r=e.clientOffset,a=e.sidxMapping,e=e.previousManifest,t=Object(b.c)(t,{manifestUri:n,clientOffset:r,sidxMapping:a,previousManifest:e}),Ji(t,n,vr),t),a=(i&&(r=yr(i,r,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=r||i,this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0]);return a&&a!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=a),(!i||r&&r.minimumUpdatePeriod!==i.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(r)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_,t=(e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(a.a.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null),e.master&&e.master.minimumUpdatePeriod);0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=a.a.setTimeout((function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){var i,r;n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(n=e.masterPlaylistLoader_.master,i=e.masterPlaylistLoader_.sidxMapping_,r=_r(n.playlists,i),aa(n,(function(e,t,n,a){e.playlists&&e.playlists.length&&(e=e.playlists,r=ma(r,_r(e,i)))})),r),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];i?this.media_=n[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=a.a.setTimeout((function(){t.trigger("mediaupdatetimeout"),e()}),nr(t.media(),Boolean(i))))}(),this.trigger("loadedplaylist")},t}(Ai.EventTarget),ya={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},_a=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer},ba=Tr(Sr(Er((function(){function t(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){return!!e[t]&&(n=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(n,1),-1<n)},this.trigger=function(t){var n,i,r,a=e[t];if(a)if(2===arguments.length)for(i=a.length,n=0;n<i;++n)a[n].call(this,arguments[1]);else{for(r=[],n=arguments.length,n=1;n<arguments.length;++n)r.push(arguments[n]);for(i=a.length,n=0;n<i;++n)a[n].apply(this,r)}},this.dispose=function(){e={}}}}t.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var n,i,r,a,s,o,u,l,c,d,h,p,f,m,g,v,y,_,b,T,S,E,k,w,C,O,x,I,A,P,L,D,N,R,M,j,U,B=t,F=Math.pow(2,32),V={getUint64:function(e){var t;e=new DataView(e.buffer,e.byteOffset,e.byteLength);return e.getBigUint64?(t=e.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:e.getUint32(0)*F+e.getUint32(4)},MAX_UINT32:F},q=V.MAX_UINT32;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(var H in S)S.hasOwnProperty(H)&&(S[H]=[H.charCodeAt(0),H.charCodeAt(1),H.charCodeAt(2),H.charCodeAt(3)]);E=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),w=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),k=new Uint8Array([0,0,0,1]),Ne=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),qe=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),C={video:Ne,audio:qe},I=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),x=new Uint8Array([0,0,0,0,0,0,0,0]),A=new Uint8Array([0,0,0,0,0,0,0,0]),P=A,L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),D=A,O=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}function W(e,t){var n=ie();return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n}function G(e){e=e||{},G.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Ve(0,0),new Ve(0,1),new Ve(1,0),new Ve(1,1)],this.parse708captions_&&(this.cc708Stream_=new je({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))}function z(e){return 32<=e&&e<=127||160<=e&&e<=255}function X(e){this.windowNum=e,this.reset()}function K(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new X(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)}function Y(e){return null===e?"":(e=Ue[e]||e,String.fromCharCode(e))}function Q(){for(var e=[],t=Be+1;t--;)e.push("");return e}function $(e,t){var n=1;for(t<e&&(n=-1);Math.abs(t-e)>Ge;)e+=n*We;return e}function J(e){var t,n;J.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=$(e.dts,n),e.pts=$(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){t=n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}}n=function(e){for(var t,n=[],i=0,r=1;r<arguments.length;r++)n.push(arguments[r]);for(r=n.length;r--;)i+=n[r].byteLength;for(t=new Uint8Array(i+8),new DataView(t.buffer,t.byteOffset,t.byteLength).setUint32(0,t.byteLength),t.set(e,4),r=0,i=8;r<n.length;r++)t.set(n[r],i),i+=n[r].byteLength;return t},i=function(){return n(S.dinf,n(S.dref,I))},r=function(e){return n(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},m=function(e){return n(S.hdlr,C[e])},f=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(S.mdhd,t)},p=function(e){return n(S.mdia,f(e),m(e.type),o(e))},s=function(e){return n(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},o=function(e){return n(S.minf,"video"===e.type?n(S.vmhd,O):n(S.smhd,x),i(),v(e))},l=function(e){for(var t=e.length,i=[];t--;)i[t]=b(e[t]);return n.apply(null,[S.mvex].concat(i))},c=function(e){return e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]),n(S.mvhd,e)},g=function(e){for(var t,i=e.samples||[],r=new Uint8Array(4+i.length),a=0;a<i.length;a++)t=i[a].flags,r[a+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(S.sdtp,r)},v=function(e){return n(S.stbl,y(e),n(S.stts,D),n(S.stsc,P),n(S.stsz,L),n(S.stco,A))},y=function(e){return n(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),("video"===e.type?N:R)(e))},N=function(e){for(var t,i,r=e.sps||[],a=e.pps||[],s=[],o=[],u=0;u<r.length;u++)s.push((65280&r[u].byteLength)>>>8),s.push(255&r[u].byteLength),s=s.concat(Array.prototype.slice.call(r[u]));for(u=0;u<a.length;u++)o.push((65280&a[u].byteLength)>>>8),o.push(255&a[u].byteLength),o=o.concat(Array.prototype.slice.call(a[u]));return t=[S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(S.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],s,[a.length],o))),n(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio&&(i=e.sarRatio[0],e=e.sarRatio[1],t.push(n(S.pasp,new Uint8Array([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])))),n.apply(null,t)},R=function(e){return n(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},h=function(e){return e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]),n(S.tkhd,e)},_=function(e){var t,i=n(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),r=Math.floor(e.baseMediaDecodeTime/q),a=Math.floor(e.baseMediaDecodeTime%q);r=n(S.tfdt,new Uint8Array([1,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,a>>>24&255,a>>>16&255,a>>>8&255,255&a]));return"audio"===e.type?(t=T(e,92),n(S.traf,i,r,t)):(a=g(e),t=T(e,a.length+92),n(S.traf,i,r,t,a))},d=function(e){return e.duration=e.duration||4294967295,n(S.trak,h(e),p(e))},b=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(S.trex,t)},M=function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},j=function(e,t){var i,r,a,s,o=e.samples||[];for(t+=20+16*o.length,e=M(o,t),(r=new Uint8Array(e.length+16*o.length)).set(e),i=e.length,s=0;s<o.length;s++)a=o[s],r[i++]=(4278190080&a.duration)>>>24,r[i++]=(16711680&a.duration)>>>16,r[i++]=(65280&a.duration)>>>8,r[i++]=255&a.duration,r[i++]=(4278190080&a.size)>>>24,r[i++]=(16711680&a.size)>>>16,r[i++]=(65280&a.size)>>>8,r[i++]=255&a.size,r[i++]=a.flags.isLeading<<2|a.flags.dependsOn,r[i++]=a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,r[i++]=61440&a.flags.degradationPriority,r[i++]=15&a.flags.degradationPriority,r[i++]=(4278190080&a.compositionTimeOffset)>>>24,r[i++]=(16711680&a.compositionTimeOffset)>>>16,r[i++]=(65280&a.compositionTimeOffset)>>>8,r[i++]=255&a.compositionTimeOffset;return n(S.trun,r)},U=function(e,t){var i,r,a,s,o=e.samples||[];for(t+=20+8*o.length,e=M(o,t),(i=new Uint8Array(e.length+8*o.length)).set(e),r=e.length,s=0;s<o.length;s++)a=o[s],i[r++]=(4278190080&a.duration)>>>24,i[r++]=(16711680&a.duration)>>>16,i[r++]=(65280&a.duration)>>>8,i[r++]=255&a.duration,i[r++]=(4278190080&a.size)>>>24,i[r++]=(16711680&a.size)>>>16,i[r++]=(65280&a.size)>>>8,i[r++]=255&a.size;return n(S.trun,i)},T=function(e,t){return("audio"===e.type?U:j)(e,t)},a=function(){return n(S.ftyp,E,k,E,w)};var Z,ee=function(e){return n(S.mdat,e)},te=function(e,t){for(var i=[],r=t.length;r--;)i[r]=_(t[r]);return n.apply(null,[S.moof,s(e)].concat(i))},ne=(u=function(e){for(var t=e.length,i=[];t--;)i[t]=d(e[t]);return n.apply(null,[S.moov,c(4294967295)].concat(i).concat(l(e)))},function(e){var t=a(),n=(e=u(e),new Uint8Array(t.byteLength+e.byteLength));return n.set(t),n.set(e,t.byteLength),n}),ie=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},re=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,t=i.byteLength=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},ae=function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},se=function(e){var t;return!e[0][0].keyFrame&&1<e.length&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},oe=function(e,t){for(var n,i,r,a=t||0,s=[],o=0;o<e.length;o++)for(i=e[o],n=0;n<i.length;n++)r=i[n],a+=(r=W(r,a)).size,s.push(r);return s},ue=function(e){for(var t,n,i,r,a,s=0,o=e.byteLength,u=e.nalCount,l=new Uint8Array(o+4*u),c=new DataView(l.buffer),d=0;d<e.length;d++)for(i=e[d],t=0;t<i.length;t++)for(r=i[t],n=0;n<r.length;n++)a=r[n],c.setUint32(s,a.data.byteLength),l.set(a.data,s+=4),s+=a.data.byteLength;return l},le=[33,16,5,32,164,27],ce=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],de=function(e){for(var t=[];e--;)t.push(0);return t},he=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new Uint8Array(e[n].reduce((function(e,t){return e.concat(t)}),[])),t}),{})},pe=function(e){return 9e4*e},fe=function(e,t){return e*t},me=function(e){return e/9e4},ge=function(e,t){return e/t},ve=9e4,ye=pe,_e=me,be=function(e,t){return pe(ge(e,t))},Te=function(e,t){return fe(me(e),t)},Se=function(e,t,n){return me(n?e:e-t)},Ee=function(e,t,n,i){var r,a,s,o,u,l=0,c=0;if(t.length&&(a=be(e.baseMediaDecodeTime,e.samplerate),r=Math.ceil(ve/(e.samplerate/1024)),n&&i&&(a-=Math.max(n,i),c=(l=Math.floor(a/r))*r),!(l<1||ve/2<c))){for(Z||(n={96e3:[le,[227,64],de(154),[56]],88200:[le,[231],de(170),[56]],64e3:[le,[248,192],de(240),[56]],48e3:[le,[255,192],de(268),[55,148,128],de(54),[112]],44100:[le,[255,192],de(268),[55,163,128],de(84),[112]],32e3:[le,[255,192],de(268),[55,234],de(226),[112]],24e3:[le,[255,192],de(268),[55,255,128],de(268),[111,112],de(126),[224]],16e3:[le,[255,192],de(268),[55,255,128],de(268),[111,255],de(269),[223,108],de(195),[1,192]],12e3:[ce,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,253,128],de(259),[56]],11025:[ce,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,255,192],de(268),[55,175,128],de(108),[112]],8e3:[ce,de(268),[3,121,16],de(47),[7]]},Z=he(n)),s=(s=Z[e.samplerate])||t[0].data,o=0;o<l;o++)u=t[0],t.splice(0,0,{data:s,dts:u.dts-r,pts:u.pts-r});return e.baseMediaDecodeTime-=Math.floor(Te(c,e.samplerate)),c}},ke=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},we=function(e){for(var t,n=[],i=0;i<e.length;i++)t=e[i],n.push({size:t.data.byteLength,duration:1024});return n},Ce=function(e){for(var t,n=0,i=new Uint8Array(function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].data.byteLength;return t}(e)),r=0;r<e.length;r++)t=e[r],i.set(t.data,n),n+=t.data.byteLength;return i},Oe=ve,xe=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},Ie=function(e,t){var n=e.minSegmentDts;return t||(n-=e.timelineStartInfo.dts),t=e.timelineStartInfo.baseMediaDecodeTime,t+=n,t=Math.max(0,t),"audio"===e.type&&(t*=e.samplerate/Oe,t=Math.floor(t)),t},Ae=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},Pe=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!n.payload&&4===i){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,r=i=0}return n},Le=function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},De=function(e,t){var n,i,r,a,s=[];if(!(64&t[0]))return s;for(i=31&t[0],n=0;n<i;n++)a={type:3&t[2+(r=3*n)],pts:e},4&t[2+r]&&(a.ccData=t[3+r]<<8|t[4+r],s.push(a));return s},Ne=function(e){for(var t=e.byteLength,n=[],i=1;i<t-2;)0===e[i]&&0===e[i+1]&&3===e[i+2]?(n.push(i+2),i+=2):i++;if(0===n.length)return e;var r=t-n.length,a=new Uint8Array(r),s=0;for(i=0;i<r;s++,i++)s===n[0]&&(s++,n.shift()),a[i]=e[s];return a},Re=4,Me=((G.prototype=new B).push=function(e){var t,n;if("sei_rbsp"===e.nalUnitType&&(n=Pe(e.escapedRBSP)).payload&&n.payloadType===Re&&(t=Le(n)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=De(e.pts,t),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},G.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},G.prototype.flushStream=function(e){this.captionPackets_.length&&(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0),this.flushCCStreams(e)},G.prototype.flush=function(){return this.flushStream("flush")},G.prototype.partialFlush=function(){return this.flushStream("partialFlush")},G.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},G.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},G.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},G.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},G.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},G.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)},{127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600}),je=(X.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},X.prototype.getText=function(){return this.rows.join("\n")},X.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},X.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),0<this.rows.length&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},X.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},X.prototype.addText=function(e){this.rows[this.rowIdx]+=e},X.prototype.backspace=function(){var e;this.isEmpty()||(e=this.rows[this.rowIdx],this.rows[this.rowIdx]=e.substr(0,e.length-1))},K.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new X(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},K.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},K.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}},function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},a={};Object.keys(r).forEach((function(e){n=r[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)})),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){(3===e.type||null===i.current708Packet)&&i.new708Packet(),i.add708Bytes(e)}}),Ue=(je.prototype=new B,je.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},je.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8;t&=255;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(t)},je.prototype.push708Packet=function(){var e,t=this.current708Packet,n=t.data,i=null,r=0,a=n[r++];for(t.seq=a>>6,t.sizeCode=63&a;r<n.length;r++)e=31&(a=n[r++]),7===(i=a>>5)&&0<e&&(i=n[r++]),this.pushServiceBlock(i,r,e),0<e&&(r+=e-1)},je.prototype.pushServiceBlock=function(e,t,n){for(var i,r=t,a=this.current708Packet.data,s=(s=this.services[e])||this.initService(e,r);r<t+n&&r<a.length;r++)i=a[r],z(i)?r=this.handleText(r,s):24===i?r=this.multiByteCharacter(r,s):16===i?r=this.extendedCommands(r,s):128<=i&&i<=135?r=this.setCurrentWindow(r,s):152<=i&&i<=159?r=this.defineWindow(r,s):136===i?r=this.clearWindows(r,s):140===i?r=this.deleteWindows(r,s):137===i?r=this.displayWindows(r,s):138===i?r=this.hideWindows(r,s):139===i?r=this.toggleWindows(r,s):151===i?r=this.setWindowAttributes(r,s):144===i?r=this.setPenAttributes(r,s):145===i?r=this.setPenColor(r,s):146===i?r=this.setPenLocation(r,s):143===i?s=this.reset(r,s):8===i?s.currentWindow.backspace():12===i?s.currentWindow.clearText():13===i?s.currentWindow.pendingNewLine=!0:14===i?s.currentWindow.clearText():141===i&&r++},je.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return z(n)?this.handleText(e,t,{isExtended:!0}):e},je.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},je.prototype.initService=function(e,t){var n,i="SERVICE"+e,r=this;return i in this.serviceEncodings&&(n=this.serviceEncodings[i]),this.services[e]=new K(e,n,r),this.services[e].init(this.getPts(t),(function(t){r.flushDisplayed(t,r.services[e])})),this.services[e]},je.prototype.handleText=function(e,t,n){var i,r=n&&n.isExtended,a=(n=n&&n.isMultiByte,this.current708Packet.data),s=r?4096:0,o=a[e],u=(a=a[e+1],t.currentWindow);a=t.textDecoder_&&!r?(n?(i=[o,a],e++):i=[o],t.textDecoder_.decode(new Uint8Array(i))):(n=Me[r=s|o]||r,4096&r&&r===n?"":String.fromCharCode(n));return u.pendingNewLine&&!u.isEmpty()&&u.newLine(this.getPts(e)),u.pendingNewLine=!1,u.addText(a),e},je.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1];n=n[e+2];return z(i)&&z(n)?this.handleText(++e,t,{isMultiByte:!0}):e},je.prototype.setCurrentWindow=function(e,t){var n=this.current708Packet.data[e];return t.setCurrentWindow(7&n),e},je.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e];t.setCurrentWindow(7&i),t=t.currentWindow,i=n[++e];return t.visible=(32&i)>>5,t.rowLock=(16&i)>>4,t.columnLock=(8&i)>>3,t.priority=7&i,i=n[++e],t.relativePositioning=(128&i)>>7,t.anchorVertical=127&i,i=n[++e],t.anchorHorizontal=i,i=n[++e],t.anchorPoint=(240&i)>>4,t.rowCount=15&i,i=n[++e],t.columnCount=63&i,i=n[++e],t.windowStyle=(56&i)>>3,t.penStyle=7&i,t.virtualRowCount=t.rowCount+1,e},je.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=(t=(n[e],t.currentWindow.winAttr),n[++e]);return t.fillOpacity=(192&i)>>6,t.fillRed=(48&i)>>4,t.fillGreen=(12&i)>>2,t.fillBlue=3&i,i=n[++e],t.borderType=(192&i)>>6,t.borderRed=(48&i)>>4,t.borderGreen=(12&i)>>2,t.borderBlue=3&i,i=n[++e],t.borderType+=(128&i)>>5,t.wordWrap=(64&i)>>6,t.printDirection=(48&i)>>4,t.scrollDirection=(12&i)>>2,t.justify=3&i,i=n[++e],t.effectSpeed=(240&i)>>4,t.effectDirection=(12&i)>>2,t.displayEffect=3&i,e},je.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},je.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},je.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=1);return e},je.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=0);return e},je.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible^=1);return e},je.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].clearText();return e},je.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].reset();return e},je.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=(t=(n[e],t.currentWindow.penAttr),n[++e]);return t.textTag=(240&i)>>4,t.offset=(12&i)>>2,t.penSize=3&i,i=n[++e],t.italics=(128&i)>>7,t.underline=(64&i)>>6,t.edgeType=(56&i)>>3,t.fontStyle=7&i,e},je.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=(t=(n[e],t.currentWindow.penColor),n[++e]);return t.fgOpacity=(192&i)>>6,t.fgRed=(48&i)>>4,t.fgGreen=(12&i)>>2,t.fgBlue=3&i,i=n[++e],t.bgOpacity=(192&i)>>6,t.bgRed=(48&i)>>4,t.bgGreen=(12&i)>>2,t.bgBlue=3&i,i=n[++e],t.edgeRed=(48&i)>>4,t.edgeGreen=(12&i)>>2,t.edgeBlue=3&i,e},je.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=(n[e],t.currentWindow.penLoc);return t.currentWindow.pendingNewLine=!0,t=n[++e],i.row=15&t,t=n[++e],i.column=63&t,e},je.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)},{42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496}),Be=14,Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ve=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a=32639&e.ccData;a===this.lastControlCode_?this.lastControlCode_=null:(4096==(61440&a)?this.lastControlCode_=a:a!==this.PADDING_&&(this.lastControlCode_=null),t=a>>>8,n=255&a,a!==this.PADDING_&&(a===this.RESUME_CAPTION_LOADING_?this.mode_="popOn":a===this.END_OF_CAPTION_?(this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),r=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=r,this.startPts_=e.pts):a===this.ROLL_UP_2_ROWS_?(this.rollUpRows_=2,this.setRollUp(e.pts)):a===this.ROLL_UP_3_ROWS_?(this.rollUpRows_=3,this.setRollUp(e.pts)):a===this.ROLL_UP_4_ROWS_?(this.rollUpRows_=4,this.setRollUp(e.pts)):a===this.CARRIAGE_RETURN_?(this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts):a===this.BACKSPACE_?"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1):a===this.ERASE_DISPLAYED_MEMORY_?(this.flushDisplayed(e.pts),this.displayed_=Q()):a===this.ERASE_NON_DISPLAYED_MEMORY_?this.nonDisplayed_=Q():a===this.RESUME_DIRECT_CAPTIONING_?("paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Q()),this.mode_="paintOn",this.startPts_=e.pts):this.isSpecialCharacter(t,n)?(i=Y((t=(3&t)<<8)|n),this[this.mode_](e.pts,i),this.column_++):this.isExtCharacter(t,n)?("popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),i=Y((t=(3&t)<<8)|n),this[this.mode_](e.pts,i),this.column_++):this.isMidRowCode(t,n)?(this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&n)&&this.addFormatting(e.pts,["i"]),1==(1&n)&&this.addFormatting(e.pts,["u"])):this.isOffsetControlCode(t,n)?this.column_+=3&n:this.isPAC(t,n)?(r=Fe.indexOf(7968&a),"rollUp"===this.mode_&&(r-this.rollUpRows_+1<0&&(r=this.rollUpRows_-1),this.setRollUp(e.pts,r)),r!==this.row_&&(this.clearFormatting(e.pts),this.row_=r),1&n&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&a)&&(this.column_=4*((14&a)>>1)),this.isColorPAC(n)&&14==(14&n)&&this.addFormatting(e.pts,["i"])):this.isNormalChar(t)&&(0===n&&(n=null),i=Y(t),i+=Y(n),this[this.mode_](e.pts,i),this.column_+=i.length)))}},qe=(Ve.prototype=new B,Ve.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Ve.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Q(),this.nonDisplayed_=Q(),this.lastControlCode_=null,this.column_=0,this.row_=Be,this.rollUpRows_=2,this.formatting_=[]},Ve.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ve.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&48<=t&&t<=63},Ve.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&32<=t&&t<=63},Ve.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&32<=t&&t<=47},Ve.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&33<=t&&t<=35},Ve.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&64<=t&&t<=127},Ve.prototype.isColorPAC=function(e){return 64<=e&&e<=79||96<=e&&e<=127},Ve.prototype.isNormalChar=function(e){return 32<=e&&e<=127},Ve.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=Be,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Q(),this.displayed_=Q()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Ve.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t),t=t.reduce((function(e,t){return e+"<"+t+">"}),""),this[this.mode_](e,t)},Ve.prototype.clearFormatting=function(e){var t;this.formatting_.length&&(t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),""),this.formatting_=[],this[this.mode_](e,t))},Ve.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];this.nonDisplayed_[this.row_]=n+=t},Ve.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=t},Ve.prototype.shiftRowsUp_=function(){for(var e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<Be+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Ve.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=t},{CaptionStream:G,Cea608Stream:Ve,Cea708Stream:je}),He={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},We=8589934592,Ge=4294967296;function ze(e,t,n){for(var i="",r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i}function Xe(e,t,n){return decodeURIComponent(ze(e,t,n))}function Ke(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}J.prototype=new B;var Ye,Qe,$e,Je=J,Ze=$,et={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Xe(e.data,1,t),e.value=Xe(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Xe(e.data,1,t),e.url=Xe(e.data,t+1,e.data.length);break}},PRIV:function(e){for(var t,n=0;n<e.data.length;n++)if(0===e.data[n]){e.owner=(t=e.data,unescape(ze(t,0,n)));break}e.privateData=e.data.subarray(n+1),e.data=e.privateData}},tt=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(tt.prototype.init.call(this),this.dispatchType=He.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,s,o,u,l,c;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=Ke(e.data.subarray(6,10)),i+=10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},o=0;o<i;)t.data.set(r[0].data.subarray(0,i-o),o),o+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n=(n+=4)+Ke(t.data.subarray(10,14)),i-=Ke(t.data.subarray(16,20)));do{if((s=Ke(t.data.subarray(n+4,n+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."})}while((c={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+s+10)}).key=c.id,et[c.id]&&(et[c.id](c),"com.apple.streaming.transportStreamTimestamp"===c.owner&&(l=(1&(u=c.data)[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2,l=(l*=4)+(3&u[7]),c.timeStamp=l,void 0===t.pts&&void 0===t.dts&&(t.pts=c.timeStamp,t.dts=c.timeStamp),this.trigger("timestamp",c))),t.frames.push(c),(n=n+10+s)<i);this.trigger("data",t)}}},nt=(tt.prototype=new B,tt),it=function(){var e=new Uint8Array(188),t=0;it.prototype.init.call(this),this.push=function(n){var i,r=0,a=188;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;a<i.byteLength;)71===i[r]&&71===i[a]?(this.trigger("data",i.subarray(r,a)),r+=188,a+=188):(r++,a++);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}},rt=(it.prototype=new B,(Ye=function(){var e,t,n,i;Ye.prototype.init.call(this),(i=this).packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),("pat"===i.type?t:n)(e.subarray(r),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,r;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<n;){var a=e[r],s=(31&e[r+1])<<8|e[r+2];a===He.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=s:a===He.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=s:a===He.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][s]=a),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],1<(48&t[3])>>>4&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=He.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=He.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new B,Ye.STREAM_TYPES={h264:27,adts:15},(Qe=function(){function e(e,t,i){var r,a=new Uint8Array(e.size),s={type:t},u=0,l=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,u=0;u<e.data.length;u++)r=e.data[u],a.set(r.data,l),l+=r.data.byteLength;o(a,s),t="video"===t||s.packetLength<=e.size,(i||t)&&(e.size=0,e.data.length=0),t&&n.trigger("data",s)}}var t,n=this,i=!1,r={data:[],size:0},a={data:[],size:0},s={data:[],size:0},o=function(e,t){var n=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1==n&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!=(4&e[6]),192&(n=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))};Qe.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var t,n;switch(o.streamType){case He.H264_STREAM_TYPE:t=r,n="video";break;case He.ADTS_STREAM_TYPE:t=a,n="audio";break;case He.METADATA_STREAM_TYPE:t=s,n="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&e(t,n,!0),t.data.push(o),t.size+=o.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]};null!==(t=o.programMapTable).video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),i=!0,n.trigger("data",e)}})[o.type]()},this.reset=function(){r.size=0,r.data.length=0,a.size=0,a.data.length=0,this.trigger("reset")},this.flushStreams_=function(){e(r,"video"),e(a,"audio"),e(s,"timed-metadata")},this.flush=function(){var e;!i&&t&&(e={type:"metadata",tracks:[]},null!==t.video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),n.trigger("data",e)),i=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new B,{PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:it,TransportParseStream:Ye,ElementaryStream:Qe,TimestampRolloverStream:Je,CaptionStream:qe.CaptionStream,Cea608Stream:qe.Cea608Stream,Cea708Stream:qe.Cea708Stream,MetadataStream:nt});for($e in He)He.hasOwnProperty($e)&&(rt[$e]=He[$e]);var at,st,ot=rt,ut=ve,lt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],ct=function(e){var t,n=0;ct.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,a,s,o,u,l,c=0;if(e||(n=0),"audio"===i.type){for(t&&t.length?(s=t,(t=new Uint8Array(s.byteLength+i.data.byteLength)).set(s),t.set(i.data,s.byteLength)):t=i.data;c+7<t.length;)if(255!==t[c]||240!=(246&t[c+1]))"number"!=typeof l&&(l=c),c++;else{if("number"==typeof l&&(this.skipWarn_(l,c),l=null),a=2*(1&~t[c+1]),r=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,u=(o=1024*(1+(3&t[c+6])))*ut/lt[(60&t[c+2])>>>2],t.byteLength-c<r)break;this.trigger("data",{pts:i.pts+n*u,dts:i.dts+n*u,sampleCount:o,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:lt[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+a,c+r)}),n++,c+=r}"number"==typeof l&&(this.skipWarn_(l,c),l=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},dt=(ct.prototype=new B,ct),ht=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw new Error("no bytes available");a.set(e.subarray(r,r+s)),n=new DataView(a.buffer).getUint32(0),i=8*s,t-=s},this.skipBits=function(e){var r;e<i||(e=(e-=i)-8*(r=Math.floor(e/8)),t-=r,this.loadWord()),n<<=e,i-=e},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return 0<(i-=r)?n<<=r:0<t&&this.loadWord(),0<(r=e-r)?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){for(var e=0;e<i;++e)if(0!=(n&2147483648>>>e))return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},pt=function(){var e,t,n=0;pt.prototype.init.call(this),this.push=function(i){for(var r,a=(t=t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),r):i.data).byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<a;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}for(n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));1!==t[++e]&&e<a;);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&3<t.byteLength&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}};function ft(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:ft(e,t+=Et(e,t))}function mt(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}function gt(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",Dt.bind(e,r))}}function vt(e,t){var n;if(e.length===t.length){for(n=0;n<e.length;n++)if(e[n]!==t[n])return;return 1}}function yt(e,t,n,i,r,a){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(r-n)},prependedContentDuration:a,baseMediaDecodeTime:e}}pt.prototype=new B,st={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(at=function(){var e,t,n,i,r,a,s,o=new pt;at.prototype.init.call(this),(e=this).push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,o.push(e))},o.on("data",(function(s){var o={trackId:t,pts:n,dts:i,data:s,nalUnitTypeCode:31&s[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)})),o.on("done",(function(){e.trigger("done")})),o.on("partialdone",(function(){e.trigger("partialdone")})),o.on("reset",(function(){e.trigger("reset")})),o.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},s=function(e,t){for(var n=8,i=8,r=0;r<e;r++)n=0===(i=0!==i?(n+t.readExpGolomb()+256)%256:i)?n:i},r=function(e){for(var t=e.byteLength,n=[],i=1;i<t-2;)0===e[i]&&0===e[i+1]&&3===e[i+2]?(n.push(i+2),i+=2):i++;if(0===n.length)return e;var r=t-n.length,a=new Uint8Array(r),s=0;for(i=0;i<r;s++,i++)s===n[0]&&(s++,n.shift()),a[i]=e[s];return a},a=function(e){var t,n,i,r,a,o,u=0,l=0,c=0,d=0,h=[1,1],p=new ht(e),f=(e=p.readUnsignedByte(),p.readUnsignedByte()),m=p.readUnsignedByte();if(p.skipUnsignedExpGolomb(),st[e]&&(3===(n=p.readUnsignedExpGolomb())&&p.skipBits(1),p.skipUnsignedExpGolomb(),p.skipUnsignedExpGolomb(),p.skipBits(1),p.readBoolean()))for(a=3!==n?8:12,o=0;o<a;o++)p.readBoolean()&&s(o<6?16:64,p);if(p.skipUnsignedExpGolomb(),0===(n=p.readUnsignedExpGolomb()))p.readUnsignedExpGolomb();else if(1===n)for(p.skipBits(1),p.skipExpGolomb(),p.skipExpGolomb(),t=p.readUnsignedExpGolomb(),o=0;o<t;o++)p.skipExpGolomb();if(p.skipUnsignedExpGolomb(),p.skipBits(1),n=p.readUnsignedExpGolomb(),i=p.readUnsignedExpGolomb(),0===(r=p.readBits(1))&&p.skipBits(1),p.skipBits(1),p.readBoolean()&&(u=p.readUnsignedExpGolomb(),l=p.readUnsignedExpGolomb(),c=p.readUnsignedExpGolomb(),d=p.readUnsignedExpGolomb()),p.readBoolean()&&p.readBoolean()){switch(p.readUnsignedByte()){case 1:h=[1,1];break;case 2:h=[12,11];break;case 3:h=[10,11];break;case 4:h=[16,11];break;case 5:h=[40,33];break;case 6:h=[24,11];break;case 7:h=[20,11];break;case 8:h=[32,11];break;case 9:h=[80,33];break;case 10:h=[18,11];break;case 11:h=[15,11];break;case 12:h=[64,33];break;case 13:h=[160,99];break;case 14:h=[4,3];break;case 15:h=[3,2];break;case 16:h=[2,1];break;case 255:h=[p.readUnsignedByte()<<8|p.readUnsignedByte(),p.readUnsignedByte()<<8|p.readUnsignedByte()]}h&&(h[0],h[1])}return{profileIdc:e,levelIdc:m,profileCompatibility:f,width:16*(n+1)-2*u-2*l,height:(2-r)*(i+1)*16-2*c-2*d,sarRatio:h}}}).prototype=new B;Je=at;var _t,bt,Tt,St=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Et=function(e,t){var n=0<=(n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9])?n:0;return(16&e[t+5])>>4?n+20:n+10},kt=function(e,t,n){for(var i="",r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},wt={isLikelyAacData:function(e){var t=ft(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:Et,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return St[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n=10;64&e[5]&&(n=(n+=4)+mt(e.subarray(10,14)));do{if((t=mt(e.subarray(n+4,n+8)))<1)return null;if("PRIV"===String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]))for(var i,r,a=e.subarray(n+10,n+t+10),s=0;s<a.byteLength;s++)if(0===a[s]){if("com.apple.streaming.transportStreamTimestamp"===unescape(kt(a,0,s)))return r=(1&(i=a.subarray(s+1))[3])<<30|i[4]<<22|i[5]<<14|i[6]<<6|i[7]>>>2,(r*=4)+(3&i[7]);break}}while((n=n+10+t)<e.byteLength);return null}},Ct=function(){var e=new Uint8Array,t=0;Ct.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a=0,s=0;for(e.length?(r=e.length,(e=new Uint8Array(n.byteLength+r)).set(e.subarray(0,r)),e.set(n,r)):e=n;3<=e.length-s;)if(e[s]==="I".charCodeAt(0)&&e[s+1]==="D".charCodeAt(0)&&e[s+2]==="3".charCodeAt(0)){if(e.length-s<10)break;if(s+(a=wt.parseId3TagSize(e,s))>e.length)break;i={type:"timed-metadata",data:e.subarray(s,s+a)},this.trigger("data",i),s+=a}else if(255==(255&e[s])&&240==(240&e[s+1])){if(e.length-s<7)break;if(s+(a=wt.parseAdtsSize(e,s))>e.length)break;i={type:"audio",data:e.subarray(s,s+a),pts:t,dts:t},this.trigger("data",i),s+=a}else s++;r=e.length-s,e=0<r?e.subarray(s):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}},Ot=(Ct.prototype=new B,Ct),xt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],It=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],At=Je,Pt=wt.isLikelyAacData,Lt=ve,Dt=function(e,t){t.stream=e,this.trigger("log",t)},Nt=function(e,t){var n=[],i=0,r=0,a=1/0,s=(t=t||{}).firstSequenceNumber||0;Nt.prototype.init.call(this),this.push=function(t){Ae(e,t),e&&xt.forEach((function(n){e[n]=t[n]})),n.push(t)},this.setEarliestDts=function(e){i=e},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){r=e},this.flush=function(){var o,u,l,c,d;0!==n.length&&(o=ke(n,e,i),e.baseMediaDecodeTime=Ie(e,t.keepOriginalTimestamps),d=Ee(e,o,r,a),e.samples=we(o),l=ee(Ce(o)),n=[],c=te(s,[e]),u=new Uint8Array(c.byteLength+l.byteLength),s++,u.set(c),u.set(l,c.byteLength),xe(e),l=Math.ceil(1024*Lt/e.samplerate),o.length&&(c=o.length*l,this.trigger("segmentTimingInfo",yt(be(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+c,o[0].pts+c,d||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+c})),this.trigger("data",{track:e,boxes:u})),this.trigger("done","AudioSegmentStream")},this.reset=function(){xe(e),n=[],this.trigger("reset")}};function Rt(e){var t=31&e[1];return t<<8|e[2]}function Mt(e){return!!(64&e[1])}function jt(e){var t=0;return 1<(48&e[3])>>>4&&(t+=e[4]+1),t}function Ut(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}Nt.prototype=new B,(_t=function(e,t){var n,i,r=[],a=[],s=(t=t||{}).firstSequenceNumber||0;_t.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Ae(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],It.forEach((function(t){e[t]=n[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.data,e.pps=[t.data]),r.push(t)},this.flush=function(){for(var n,i,o,u=0;r.length&&"access_unit_delimiter_rbsp"!==r[0].nalUnitType;)r.shift();if(0===r.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=re(r),(n=ae(n))[0][0].keyFrame||((l=this.getGopForFusion_(r[0],e))?(u=l.duration,n.unshift(l),n.byteLength+=l.byteLength,n.nalCount+=l.nalCount,n.pts=l.pts,n.dts=l.dts,n.duration+=l.duration):n=se(n)),a.length){var l=t.alignGopsAtEnd?this.alignGopsAtEnd_(n):this.alignGopsAtStart_(n);if(!l)return this.gopCache_.unshift({gop:n.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),r=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");xe(e),n=l}Ae(e,n),e.samples=oe(n),l=ee(ue(n)),e.baseMediaDecodeTime=Ie(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",n.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),i=n[0],o=n[n.length-1],this.trigger("segmentTimingInfo",yt(e.baseMediaDecodeTime,i.dts,i.pts,o.dts+o.duration,o.pts+o.duration,u)),this.trigger("timingInfo",{start:n[0].pts,end:n[n.length-1].pts+n[n.length-1].duration}),this.gopCache_.unshift({gop:n.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),r=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),i=te(s,[e]),o=new Uint8Array(i.byteLength+l.byteLength),s++,o.set(i),o.set(l,i.byteLength),this.trigger("data",{track:e,boxes:o}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),r=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){xe(e),i=n=void 0},this.getGopForFusion_=function(t){for(var n,i,r,a=1/0,s=0;s<this.gopCache_.length;s++)i=(r=this.gopCache_[s]).gop,e.pps&&vt(e.pps[0],r.pps[0])&&e.sps&&vt(e.sps[0],r.sps[0])&&(i.dts<e.timelineStartInfo.dts||-1e4<=(i=t.dts-i.dts-i.duration)&&i<=45e3&&(!n||i<a)&&(n=r,a=i));return n?n.gop:null},this.alignGopsAtStart_=function(e){for(var t,n,i,r,s=e.byteLength,o=e.nalCount,u=e.duration,l=t=0;l<a.length&&t<e.length&&(n=a[l],i=e[t],n.pts!==i.pts);)i.pts>n.pts?l++:(t++,s-=i.byteLength,o-=i.nalCount,u-=i.duration);return 0===t?e:t===e.length?null:((r=e.slice(t)).byteLength=s,r.duration=u,r.nalCount=o,r.pts=r[0].pts,r.dts=r[0].dts,r)},this.alignGopsAtEnd_=function(e){for(var t,n,i=a.length-1,r=e.length-1,s=null,o=!1;0<=i&&0<=r;){if(t=a[i],n=e[r],t.pts===n.pts){o=!0;break}t.pts>n.pts?i--:(i===a.length-1&&(s=r),r--)}if(!o&&null===s)return null;if(0===(u=o?r:s))return e;var u=e.slice(u),l=u.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=l.byteLength,u.duration=l.duration,u.nalCount=l.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){a=e}}).prototype=new B,((Tt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Tt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new B).flush=function(e){var t,n,i,r=0,a={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,It.forEach((function(e){a.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,xt.forEach((function(e){a.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,e=ne(this.pendingTracks),a.initSegment=new Uint8Array(e.byteLength),a.initSegment.set(e),a.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)a.data.set(this.pendingBoxes[i],r),r+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)(t=this.pendingCaptions[i]).startTime=Se(t.startPts,s,this.keepOriginalTimestamps),t.endTime=Se(t.endPts,s,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)(n=this.pendingMetadata[i]).cueTime=Se(n.pts,s,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),i=0;i<a.captions.length;i++)t=a.captions[i],this.trigger("caption",t);for(i=0;i<a.metadata.length;i++)n=a.metadata[i],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Tt.prototype.setRemux=function(e){this.remuxTracks=e},(bt=function(e){var t,n,i=this,r=!0;bt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};(this.transmuxPipeline_=r).type="aac",r.metadataStream=new ot.MetadataStream,r.aacStream=new Ot,r.audioTimestampRolloverStream=new ot.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ot.TimestampRolloverStream("timed-metadata"),r.adtsStream=new dt,r.coalesceStream=new Tt(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Nt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),gt(this,r)},this.setupTsPipeline=function(){var r={};(this.transmuxPipeline_=r).type="ts",r.metadataStream=new ot.MetadataStream,r.packetStream=new ot.TransportPacketStream,r.parseStream=new ot.TransportParseStream,r.elementaryStream=new ot.ElementaryStream,r.timestampRolloverStream=new ot.TimestampRolloverStream,r.adtsStream=new dt,r.h264Stream=new At,r.captionStream=new ot.CaptionStream(e),r.coalesceStream=new Tt(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?n||"audio"!==a.tracks[s].type||((n=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new _t(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Nt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),gt(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,xe(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,xe(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){var t;r&&((t=Pt(e))&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1),this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new B;var Bt=bt,Ft=(nt=function(e){return e>>>0},Je=function(e){return("00"+e.toString(16)).slice(-2)},function(e){var t="";return(t+=String.fromCharCode(e[0]))+String.fromCharCode(e[1])+String.fromCharCode(e[2])+String.fromCharCode(e[3])}),Vt=nt,qt=function e(t,n){var i,r,a,s=[];if(!n.length)return null;for(i=0;i<t.byteLength;)r=Vt(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),a=Ft(t.subarray(i+4,i+8)),r=1<r?i+r:t.byteLength,a===n[0]&&(1===n.length?s.push(t.subarray(i+8,r)):(a=e(t.subarray(i+8,r),n.slice(1))).length&&(s=s.concat(a))),i=r;return s},Ht=nt,Wt=V.getUint64,Gt=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=Wt(e.subarray(4)):t.baseMediaDecodeTime=Ht(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},zt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Xt=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],s=1&n.flags[1],o=2&n.flags[1],u=4&n.flags[1],l=8&n.flags[1],c=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),a&&c&&(t={flags:zt(e.subarray(d,d+4))},d+=4,s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),u&&(t.flags=zt(e.subarray(d,d+4)),d+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},Kt=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=(e={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4)},1&e.flags[2]),i=2&e.flags[2],r=8&e.flags[2],a=16&e.flags[2],s=32&e.flags[2],o=65536&e.flags[0],u=131072&e.flags[0],l=8;return n&&(l+=4,e.baseDataOffset=t.getUint32(12),l+=4),i&&(e.sampleDescriptionIndex=t.getUint32(l),l+=4),r&&(e.defaultSampleDuration=t.getUint32(l),l+=4),a&&(e.defaultSampleSize=t.getUint32(l),l+=4),s&&(e.defaultSampleFlags=t.getUint32(l)),o&&(e.durationIsEmpty=!0),!n&&u&&(e.baseDataOffsetIsMoof=!0),e},Yt=(B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},B="undefined"!=typeof window?window:void 0!==B?B:"undefined"!=typeof self?self:{},B),Qt=Ne,$t=qe.CaptionStream,Jt=function(e,t){var n=qt(e,["moof","traf"]),i=(e=qt(e,["mdat"]),{}),r=[];return e.forEach((function(e,t){t=n[t],r.push({mdat:e,traf:t})})),r.forEach((function(e){var n,r,a,s,o,u=e.mdat,l=(e=e.traf,qt(e,["tfhd"])),c=(l=Kt(l[0]),l.trackId),d=qt(e,["tfdt"]);d=0<d.length?Gt(d[0]).baseMediaDecodeTime:0,e=qt(e,["trun"]);t===c&&0<e.length&&(n=d,r=l.defaultSampleDuration||0,a=l.defaultSampleSize||0,s=l.trackId,o=[],e.forEach((function(e){e=Xt(e).samples,e.forEach((function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=n,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof n?(e.pts=n+Yt.BigInt(e.compositionTimeOffset),n+=Yt.BigInt(e.duration)):(e.pts=n+e.compositionTimeOffset,n+=e.duration)})),o=o.concat(e)})),d=function(e,t,n){for(var i,r,a=new DataView(e.buffer,e.byteOffset,e.byteLength),s={logs:[],seiNals:[]},o=0;o+4<e.length;o+=i)if(i=a.getUint32(o),o+=4,!(i<=0))switch(31&e[o]){case 6:var u=e.subarray(o+1,o+1+i),l=function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null}(o,t);u={nalUnitType:"sei_rbsp",size:i,data:u,escapedRBSP:Qt(u),trackId:n};if(l)u.pts=l.pts,u.dts=l.dts,r=l;else{if(!r){s.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+o+" for trackId "+n+". See mux.js#223."});break}u.pts=r.pts,u.dts=r.dts}s.seiNals.push(u)}return s}(u,o,c),i[c]||(i[c]={seiNals:[],logs:[]}),i[c].seiNals=i[c].seiNals.concat(d.seiNals),i[c].logs=i[c].logs.concat(d.logs))})),i},Zt=function(){var e,t,n,i,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new $t,s=!0,a=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,r.captions.push(e),r.captionStreams[e.stream]=!0})),e.on("log",(function(e){r.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||i!==t[n])},this.parse=function(e,a,s){if(!this.isInitialized())return null;if(!a||!s)return null;if(this.isNewInit(a,s))n=a[0],i=s[n];else if(null===n||!i)return t.push(e),null;for(;0<t.length;){var o=t.shift();this.parse(o,a,s)}return(e=function(e,t,n){return null===t?null:(e=Jt(e,t)[t]||{},{seiNals:e.seiNals,logs:e.logs,timescale:n})}(e,n,i))&&e.logs&&(r.logs=r.logs.concat(e.logs)),null!==e&&e.seiNals?(this.pushNals(e.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},en=nt,tn=Je,nn=V.getUint64,rn=function(e){var t=0===e[0]?12:20;return en(e[t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])},an=function(e,t){return t=qt(t,["moof","traf"]).reduce((function(t,n){var i,r=qt(n,["tfhd"])[0],a=(r=en(r[4]<<24|r[5]<<16|r[6]<<8|r[7]),r=e[r]||9e4,n=qt(n,["tfdt"])[0],new DataView(n.buffer,n.byteOffset,n.byteLength));n=1===n[0]?nn(n.subarray(4,12)):a.getUint32(4);return"bigint"==typeof n?i=n/Yt.BigInt(r):"number"!=typeof n||isNaN(n)||(i=n/r),(i=i<Number.MAX_SAFE_INTEGER?Number(i):i)<t?i:t}),1/0),"bigint"==typeof t||isFinite(t)?t:0},sn=function(e){e=qt(e,["moov","trak"]);var t=[];return e.forEach((function(e){var n,i={},r=qt(e,["tkhd"])[0],a=(r&&(a=(r=new DataView(r.buffer,r.byteOffset,r.byteLength)).getUint8(0),i.id=0===a?r.getUint32(12):r.getUint32(20)),qt(e,["mdia","hdlr"])[0]);a&&(r=Ft(a.subarray(8,12)),i.type="vide"===r?"video":"soun"===r?"audio":r),a=qt(e,["mdia","minf","stbl","stsd"])[0],a&&(r=a.subarray(8),i.codec=Ft(r.subarray(4,8)),(a=qt(r,[i.codec])[0])&&(/^[asm]vc[1-9]$/i.test(i.codec)?(n=a.subarray(78),"avcC"===Ft(n.subarray(4,8))&&11<n.length?(i.codec+=".",i.codec+=tn(n[9]),i.codec+=tn(n[10]),i.codec+=tn(n[11])):i.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(i.codec)?(n=a.subarray(28),"esds"===Ft(n.subarray(4,8))&&20<n.length&&0!==n[19]?(i.codec+="."+tn(n[19]),i.codec+="."+tn(n[20]>>>2&63).replace(/^0/,"")):i.codec="mp4a.40.2"):i.codec=i.codec.toLowerCase())),r=qt(e,["mdia","mdhd"])[0];r&&(i.timescale=rn(r)),t.push(i)})),t},on=Ze,un={},ln=(un.ts={parseType:function(e,t){return e=Rt(e),0===e?"pat":e===t?"pmt":t?"pes":null},parsePat:function(e){var t=Mt(e),n=4+jt(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=Mt(e),i=4+jt(e);if(n&&(i+=e[i]+1),1&e[i+5]){for(var r=3+((15&e[i+1])<<8|e[i+2])-4,a=12+((15&e[i+10])<<8|e[i+11]);a<r;){var s=i+a;t[(31&e[s+1])<<8|e[s+2]]=e[s],a+=5+((15&e[s+3])<<8|e[s+4])}return t}},parsePayloadUnitStartIndicator:Mt,parsePesType:function(e,t){switch(t[Rt(e)]){case He.H264_STREAM_TYPE:return"video";case He.ADTS_STREAM_TYPE:return"audio";case He.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!Mt(e))return null;var t=4+jt(e);if(t>=e.byteLength)return null;var n=null,i=e[t+7];return 192&i&&((n={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+jt(e),n=e.subarray(t),i=0,r=0,a=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}for(r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===Ut(31&n[r+3])&&(a=!0);1!==n[++i]&&i<n.length;);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===Ut(31&n[r+3])&&(a=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,!!(n&&3<n.byteLength&&"slice_layer_without_partitioning_rbsp_idr"===Ut(31&n[r+3]))||a}},un.aac=wt,ve),cn=function(e,t){for(var n,i=0,r=188;r<e.byteLength;)if(71===e[i]&&71===e[r]){switch(n=e.subarray(i,r),un.ts.parseType(n,t.pid)){case"pat":t.pid=un.ts.parsePat(n);break;case"pmt":var a=un.ts.parsePmt(n);t.table=t.table||{},Object.keys(a).forEach((function(e){t.table[e]=a[e]}))}i+=188,r+=188}else i++,r++},dn=function(e,t,n){for(var i,r,a,s,o=0,u=188,l=!1;u<=e.byteLength;)if(71!==e[o]||71!==e[u]&&u!==e.byteLength)o++,u++;else{if(i=e.subarray(o,u),"pes"===un.ts.parseType(i,t.pid)&&(r=un.ts.parsePesType(i,t.table),a=un.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=un.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),l=!0)),l)break;o+=188,u+=188}for(o=(u=e.byteLength)-188,l=!1;0<=o;)if(71!==e[o]||71!==e[u]&&u!==e.byteLength)o--,u--;else{if(i=e.subarray(o,u),"pes"===un.ts.parseType(i,t.pid)&&(r=un.ts.parsePesType(i,t.table),a=un.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=un.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),l=!0)),l)break;o-=188,u-=188}},hn=function(e,t,n){for(var i,r,a,s,o,u,l,c,d=0,h=188,p=!1,f={data:[],size:0};h<e.byteLength;)if(71===e[d]&&71===e[h]){if(i=e.subarray(d,h),"pes"===un.ts.parseType(i,t.pid)&&(r=un.ts.parsePesType(i,t.table),a=un.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(a&&!p&&(s=un.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),p=!0),!n.firstKeyFrame))){if(a&&0!==f.size){for(o=new Uint8Array(f.size),u=0;f.data.length;)l=f.data.shift(),o.set(l,u),u+=l.byteLength;!un.ts.videoPacketContainsKeyFrame(o)||(c=un.ts.parsePesTime(o))&&(n.firstKeyFrame=c,n.firstKeyFrame.type="video"),f.size=0}f.data.push(i),f.size+=i.byteLength}if(p&&n.firstKeyFrame)break;d+=188,h+=188}else d++,h++;for(d=(h=e.byteLength)-188,p=!1;0<=d;)if(71===e[d]&&71===e[h]){if(i=e.subarray(d,h),"pes"===un.ts.parseType(i,t.pid)&&(r=un.ts.parsePesType(i,t.table),a=un.ts.parsePayloadUnitStartIndicator(i),"video"===r&&a&&(s=un.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),p=!0)),p)break;d-=188,h-=188}else d--,h--},pn=function(e,t){var n,i,r;e=(un.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,i=0,r=null,a=null,s=0,o=0;3<=e.length-o;){switch(un.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){n=!0;break}if((s=un.aac.parseId3TagSize(e,o))>e.length){n=!0;break}null===a&&(t=e.subarray(o,o+s),a=un.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){n=!0;break}if((s=un.aac.parseAdtsSize(e,o))>e.length){n=!0;break}null===r&&(t=e.subarray(o,o+s),r=un.aac.parseSampleRate(t)),i++,o+=s;break;default:o++}if(n)return null}if(null===r||null===a)return null;var u=ln/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*u,pts:a+1024*i*u}]}}:function(e){var t,n={pid:null,table:null},i={};for(t in cn(e,n),n.table)if(n.table.hasOwnProperty(t))switch(n.table[t]){case He.H264_STREAM_TYPE:i.video=[],hn(e,n,i),0===i.video.length&&delete i.video;break;case He.ADTS_STREAM_TYPE:i.audio=[],dn(e,n,i),0===i.audio.length&&delete i.audio}return i})(e);return e&&(e.audio||e.video)?(t=t,(n=e).audio&&n.audio.length&&(void 0!==(i=t)&&!isNaN(i)||(i=n.audio[0].dts),n.audio.forEach((function(e){e.dts=on(e.dts,i),e.pts=on(e.pts,i),e.dtsTime=e.dts/ln,e.ptsTime=e.pts/ln}))),n.video&&n.video.length&&(void 0!==(r=t)&&!isNaN(r)||(r=n.video[0].dts),n.video.forEach((function(e){e.dts=on(e.dts,r),e.pts=on(e.pts,r),e.dtsTime=e.dts/ln,e.ptsTime=e.pts/ln})),n.firstKeyFrame&&((t=n.firstKeyFrame).dts=on(t.dts,r),t.pts=on(t.pts,r),t.dtsTime=t.dts/ln,t.ptsTime=t.pts/ln)),e):null},fn=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){var e,t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Bt(this.options),e=this.self,(t=this.transmuxer).on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength},n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var n={start:{decode:_e(t.start.dts),presentation:_e(t.start.pts)},end:{decode:_e(t.end.dts),presentation:_e(t.end.pts)},baseMediaDecodeTime:_e(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=_e(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:_e(t.start.dts),presentation:_e(t.start.pts)},end:{decode:_e(t.end.dts),presentation:_e(t.end.pts)},baseMediaDecodeTime:_e(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=_e(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:_e(t.start),end:_e(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:_e(t.start),end:_e(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new Zt,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);e=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:e&&e.captions||[],logs:e&&e.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales;e=e.data,t=an(t,e);this.self.postMessage({action:"probeMp4StartTime",startTime:t,data:e},[e.buffer])},t.probeMp4Tracks=function(e){e=e.data;var t=sn(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])},t.probeTs=function(e){var t=e.data,n=(e=e.baseStartTime,e="number"!=typeof e||isNaN(e)?void 0:e*ve,e=pn(t,e),null);e&&((n={hasVideo:e.video&&2===e.video.length||!1,hasAudio:e.audio&&2===e.audio.length||!1}).hasVideo&&(n.videoStart=e.video[0].ptsTime),n.hasAudio&&(n.audioStart=e.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:n,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){e=new Uint8Array(e.data,e.byteOffset,e.byteLength),this.transmuxer.push(e)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){e=e.timestampOffset||0,this.transmuxer.setBaseMediaDecodeTime(Math.round(ye(e)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(ye(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new fn(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new fn(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})))),Ta=function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,s=i.captions,o=i.captionStreams,u=i.metadata,l=i.videoFrameDtsTime;i=i.videoFramePtsTime,t.buffer.push({captions:s,captionStreams:o,metadata:u}),t=e.data.segment.boxes||{data:e.data.segment.data},s={type:r,data:new Uint8Array(t.data,t.data.byteOffset,t.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==l&&(s.videoFrameDtsTime=l),void 0!==i&&(s.videoFramePtsTime=i),n(s)},Sa=function(e){var t=e.transmuxedData;e=e.callback;t.buffer=[],e(t)},Ea=function(e,t){t.gopInfo=e.data.gopInfo},ka=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():kr(e.currentTransmux))},wa=function(e,t){e.postMessage({action:t}),ka(e)},Ca=function(e){wr("reset",e)},Oa=function(e){var t=new ba,n=(t.currentTransmux=null,t.transmuxQueue=[],t.terminate);return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t},xa={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Ia=function(e){e.forEach((function(e){e.abort()}))},Aa=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},Pa=function(e){var t=e.target;t={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return t.bytesReceived=e.loaded,t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3),t},La=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:xa.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:xa.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:xa.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:xa.FAILURE,xhr:t}:null},Da=function(e,t){var n,i=Object(k.a)(e.map.bytes);if("mp4"!==i)return n=e.map.resolvedUri||e.map.uri,t({internal:!0,message:"Found unsupported "+(i||"unknown")+" container for initialization segment at URL: "+n,code:xa.FAILURE});Or({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks;n=n.data;return e.map.bytes=n,i.forEach((function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||"number"==typeof(e.map.tracks[t.type]=t).id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale)})),t(null)}})},Na=function(e){var t,n,i,r=e.segment,a=e.bytes,s=e.trackInfoFn,o=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,l=e.audioSegmentTimingInfoFn,c=e.id3Fn,d=e.captionsFn,h=e.isEndOfTimeline,p=e.endedTimelineFn,f=e.dataFn,m=e.doneFn,g=e.onTransmuxerLog,v=new Uint8Array(a);if(Object(k.b)(v))return r.isFmp4=!0,t=r.map.tracks,n={isFmp4:!0,hasVideo:!!t.video,hasAudio:!!t.audio},t.audio&&t.audio.codec&&"enca"!==t.audio.codec&&(n.audioCodec=t.audio.codec),t.video&&t.video.codec&&"encv"!==t.video.codec&&(n.videoCodec=t.video.codec),t.video&&t.audio&&(n.isMuxed=!0),s(r,n),i=function(e){f(r,{data:v,type:n.hasAudio&&!n.isMuxed?"audio":"video"}),e&&e.length&&d(r,e),m(null,r,{})},void Or({action:"probeMp4StartTime",timescales:r.map.timescales,data:v,transmuxer:r.transmuxer,callback:function(e){var s=e.data;e=e.startTime;a=s.buffer,r.bytes=v=s,n.hasAudio&&!n.isMuxed&&o(r,"audio","start",e),n.hasVideo&&o(r,"video","start",e),t.video&&s.byteLength&&r.transmuxer?Or({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:r.transmuxer,data:v,timescales:r.map.timescales,trackIds:[t.video.id],callback:function(e){a=e.data.buffer,r.bytes=v=e.data,e.logs.forEach((function(e){g(Ai.mergeOptions(e,{stream:"mp4CaptionParser"}))})),i(e.captions)}}):i()}});if(r.transmuxer){if(void 0===r.container&&(r.container=Object(k.a)(v)),"ts"!==r.container&&"aac"!==r.container)return s(r,{hasAudio:!1,hasVideo:!1}),void m(null,r,{});Ir({segment:r,bytes:a,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:l,id3Fn:c,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g})}else m(null,r,{})},Ra=function(e,t){var n=e.id,i=e.key,r=e.encryptedBytes,a=e.decryptionWorker;a.addEventListener("message",(function e(i){i.data.source===n&&(a.removeEventListener("message",e),i=i.data.decrypted,t(new Uint8Array(i.bytes,i.byteOffset,i.byteLength)))})),e=i.bytes.slice?i.bytes.slice():new Uint32Array(Array.prototype.slice.call(i.bytes)),a.postMessage(ur({source:n,encrypted:r,key:e,iv:i.iv}),[r.buffer,e.buffer])},Ma=function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog;Ra({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t},(function(e){n.bytes=e,Na({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}))},ja=Gr("CodecUtils"),Ua=function(e,t){return t=t.attributes||{},e&&e.mediaGroups&&e.mediaGroups.AUDIO&&t.AUDIO&&e.mediaGroups.AUDIO[t.AUDIO]},Ba=function(e){var t={};return e.forEach((function(e){var n=e.mediaType,i=e.type;e=e.details;t[n]=t[n]||[],t[n].push(Object(v.i)(""+i+e))})),Object.keys(t).forEach((function(e){if(1<t[e].length)return ja("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},Fa=function(e,t){var n=t.attributes||{},i=Ba(function(e){if(e=e.attributes||{},e.CODECS)return Object(v.h)(e.CODECS)}(t)||[]);return Ua(e,t)&&!i.audio&&!function(e,t){if(!Ua(e,t))return!0;t=t.attributes||{};var n,i=e.mediaGroups.AUDIO[t.AUDIO];for(n in i)if(!i[n].uri&&!i[n].playlists)return!0;return!1}(e,t)&&(t=Ba(Object(v.d)(e,n.AUDIO)||[])).audio&&(i.audio=t.audio),i},Va=Gr("PlaylistSelector"),qa=function(e){var t;if(e&&e.playlist)return t=e.playlist,JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},Ha=function(e,t){var n=e.slice();e.sort((function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r}))},Wa=function(e){function t(t,n){var i=e.call(this)||this;if(!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(t.mediaSource)return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,i.captionServices_=t.captionServices,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=11<=Ai.browser.IE_VERSION,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",(function(){i.isEndOfStream_()||(i.ended_=!1)})),i.fetchAtBuffer_=!1,i.logger_=Gr("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(l()(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",(function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),i;throw new TypeError("No MediaSource specified")}c()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return Oa({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"!==this.state?this.pendingSegment_&&(this.pendingSegment_=null):(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_())},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,a.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Ca(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Ai.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo;e=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!e)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=lr(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=cr(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes}),t={resolvedUri:(i||e).resolvedUri};return i&&(t.bytes=i.bytes),t},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;t=(this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e)),null);if(n&&(n.id?t=n.id:n.uri&&(t=n.uri)),this.logger_("playlist update ["+t+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var r;t=e.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+t+"]"),null!==this.mediaIndex&&(this.mediaIndex-=t,this.mediaIndex<0?(this.mediaIndex=null,this.partIndex=null):(r=this.playlist_.segments[this.mediaIndex],!this.partIndex||r.parts&&r.parts.length&&r.parts[this.partIndex]||(r=this.mediaIndex,this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=r))),i&&(i.mediaIndex-=t,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(0<=i.mediaIndex&&(i.segment=e.segments[i.mediaIndex]),0<=i.partIndex&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&Ca(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),(t=t===1/0?this.duration_():t)<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r,a=1,s=function(){0===--a&&n()};for(r in!i&&this.audioDisabled_||(a++,this.sourceUpdater_.removeAudio(e,t,s)),!i&&"main"!==this.loaderType_||(this.gopBuffer_=function(e,t,n,i){for(var r=Math.ceil((t-i)*w.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*w.ONE_SECOND_IN_TS),s=(t=e.slice(),e.length);s--&&!(e[s].pts<=a););if(-1===s)return t;for(var o=s+1;o--&&!(e[o].pts<=r););return o=Math.max(o,0),t.splice(o,s-o+1),t}(this.gopBuffer_,e,t,this.timeMapping_),a++,this.sourceUpdater_.removeVideo(e,t,s)),this.inbandTextTracks_)jr(e,t,this.inbandTextTracks_[r]);jr(e,t,this.segmentMetadataTrack_),s()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.a.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){var e;this.sourceUpdater_.updating()||(e=this.chooseNextRequest_())&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"==typeof e&&t.segments[e];e=e+1===t.segments.length,n=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&e&&n},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Mi(e)||0,n=(e=ji(e,this.currentTime_()),!this.hasPlayed_()&&1<=e),i=e>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||n||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());n={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)},n.isSyncRequest?n.mediaIndex=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;a<t.length;a++){var s=t[a];if(e===s.timeline&&(i.push(a),n<(r+=s.duration)))return a}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,r,t):null!==this.mediaIndex?(i=r[this.mediaIndex],s="number"==typeof this.partIndex?this.partIndex:-1,n.startOfSegment=i.end||t,i.parts&&i.parts[s+1]?(n.mediaIndex=this.mediaIndex,n.partIndex=s+1):n.mediaIndex=this.mediaIndex+1):(s=(i=na.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time})).segmentIndex,a=i.startTime,i=i.partIndex,n.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),n.mediaIndex=s,n.startOfSegment=a,n.partIndex=i),t=r[n.mediaIndex];var a,s=t&&"number"==typeof n.partIndex&&t.parts&&t.parts[n.partIndex];return!t||"number"==typeof n.partIndex&&!s?null:("number"!=typeof n.partIndex&&t.parts&&(n.partIndex=0,s=t.parts[0]),e||!s||s.independent||(0===n.partIndex?(i=(a=r[n.mediaIndex-1]).parts&&a.parts.length&&a.parts[a.parts.length-1])&&i.independent&&(--n.mediaIndex,n.partIndex=a.parts.length-1,n.independent="previous segment"):t.parts[n.partIndex-1].independent&&(--n.partIndex,n.independent="previous part")),e=this.mediaSource_&&"ended"===this.mediaSource_.readyState,n.mediaIndex>=r.length-1&&e&&!this.seeking_()?null:this.generateSegmentInfo_(n))},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,u=(e=e.getMediaInfoForTime,n.segments[i]),l="number"==typeof s&&u.parts[s];i={requestId:"segment-loader-"+Math.random(),uri:l&&l.resolvedUri||u.resolvedUri,mediaIndex:i,partIndex:l?s:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:l&&l.duration||u.duration,segment:u,part:l,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:e,independent:t},s=void 0!==o?o:this.isPendingTimestampOffset_,i.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:s}),a=Mi(this.sourceUpdater_.audioBuffered());return"number"==typeof a&&(i.audioAppendStart=a-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(i.gopsToAlignWith=function(e,t,n){if(null==t||!e.length)return[];for(var i=Math.ceil((t-n+3)*w.ONE_SECOND_IN_TS),r=0;r<e.length&&!(e[r].pts>i);r++);return e.slice(r)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),i},n.timestampOffsetForSegment_=function(e){return t=e.segmentTimeline,n=e.currentTimeline,i=e.startOfSegment,r=e.buffered,e.overrideCheck||t!==n?t<n||!r.length?i:r.end(r.length-1):null;var t,n,i,r},n.earlyAbortWhenNeeded_=function(e){var t,n,i,r,a,s,o,u,l,c,d,h,p;this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3||(i=this.currentTime_(),p=e.bandwidth,t=this.pendingSegment_.duration,e=na.estimateSegmentRequestTime(t,p,this.playlist_,e.bytesReceived),n=this.buffered_(),r=i,void 0===(a=this.vhs_.tech_.playbackRate())&&(a=1),e<=(n=((n.length?n.end(n.length-1):0)-r)/a-1)||(r={master:this.vhs_.playlists.master,currentTime:i,bandwidth:p,duration:this.duration_(),segmentDuration:t,timeUntilRebuffer:n,currentTimeline:this.currentTimeline_,syncController:this.syncController_},a=r.master,s=r.currentTime,o=r.bandwidth,u=r.duration,l=r.segmentDuration,c=r.timeUntilRebuffer,d=r.currentTimeline,h=r.syncController,a=(r=(a=(a=(r=a.playlists.filter((function(e){return!na.isIncompatible(e)}))).filter(na.isEnabled)).length?a:r.filter((function(e){return!na.isDisabled(e)}))).filter(na.hasAttribute.bind(null,"BANDWIDTH")).map((function(e){var t=h.getSyncPoint(e,u,d,s)?1:2;return{playlist:e,rebufferingImpact:na.estimateSegmentRequestTime(l,o,e)*t-c}}))).filter((function(e){return e.rebufferingImpact<=0})),Ha(a,(function(e,t){return Dr(t.playlist,e.playlist)})),(i=a.length?a[0]:(Ha(r,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),r[0]||null))&&(p=e-n-i.rebufferingImpact,!i.playlist||i.playlist.uri===this.playlist_.uri||p<(n<=zr?1:.5)||(this.bandwidth=i.playlist.attributes.BANDWIDTH*ya.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort")))))},n.handleAbort_=function(e){this.logger_("Aborting "+Br(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(a!==i[r])return!1;if(e[a]!==t[a])return!1}return!0}(this.currentMediaInfo_,t=t||{})||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,i){var r;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||((e=this.pendingSegment_)[r=Fr(t)]=e[r]||{},e[r][n]=i,this.logger_("timinginfo: "+t+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_())},n.handleCaptions_=function(e,t){var n,i,r=this;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(0===t.length?this.logger_("SegmentLoader received no captions from a caption event"):this.pendingSegment_.hasAppendedData_?(n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),i={},t.forEach((function(e){i[e.stream]=i[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=i[e.stream];t.startTime=Math.min(t.startTime,e.startTime+n),t.endTime=Math.max(t.endTime,e.endTime+n),t.captions.push(e)})),Object.keys(i).forEach((function(e){var t,s,o,u,l,c,d,h,p,f,m,g=i[e],v=g.startTime,y=g.endTime,_=(g=g.captions,r.inbandTextTracks_);r.logger_("adding cues from "+v+" -> "+y+" for "+e),f=_,t=r.vhs_.tech_,f[s=e]||(t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"}),/^cc708_/.test(o=s)&&(o="SERVICE"+s.split("_")[1]),(u=t.textTracks().getTrackById(o))?f[s]=u:(l=u=s,c=!1,(d=(t.options_.vhs&&t.options_.vhs.captionServices||{})[o])&&(u=d.label,l=d.language,c=d.default),f[s]=t.addRemoteTextTrack({kind:"captions",id:o,default:c,label:u,language:l},!1).track)),jr(v,y,_[e]),p=(d={captionArray:g,inbandTextTracks:_,timestampOffset:n}).inbandTextTracks,f=d.captionArray,m=d.timestampOffset,f&&(h=a.a.WebKitDataCue||a.a.VTTCue,f.forEach((function(e){var t=e.stream;p[t].addCue(new h(e.startTime+m,e.endTime+m,e.text))})))})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})):this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t)))},n.handleId3_=function(e,t,n){var i,r,a,s;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?(i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r=this.inbandTextTracks_,a=n,s=this.vhs_.tech_,r.metadataTrack_||(r.metadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,r.metadataTrack_.inBandMetadataTrackDispatchType=a),Mr({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:this.duration_()})):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n)))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!Vr({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return(e=void 0===e?this.pendingSegment_:e)&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.getPendingSegmentPlaylist=function(){return this.pendingSegment_?this.pendingSegment_.playlist:null},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,i=t.hasVideo;t=t.isMuxed;return!(i&&!e.videoTimingInfo)&&!(n&&!this.audioDisabled_&&!t&&!e.audioTimingInfo)&&!Vr({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())this.callQueue_.push(this.handleData_.bind(this,e,t));else{var n,i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4?(this.trigger("fmp4"),i.timingInfo.start=i[Fr(t.type)].start):(e=this.getCurrentMediaInfo_(),(e="main"===this.loaderType_&&e&&e.hasVideo)&&(n=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:e,firstVideoFrameTimeForData:n,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})),this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){if(this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_}),e=this.chooseNextRequest_(),e.mediaIndex!==i.mediaIndex||e.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map;e=e.playlist;if(i){var r=lr(i);if(this.activeInitSegmentId_===r)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=r}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=e,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,r=e.type,s=(e=e.bytes,this.sourceUpdater_.audioBuffered()),o=this.sourceUpdater_.videoBuffered(),u=(1<s.length&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Ri(s).join(", ")),1<o.length&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Ri(o).join(", ")),s.length?s.start(0):0),l=s.length?s.end(s.length-1):0,c=o.length?o.start(0):0,d=o.length?o.end(o.length-1):0;if(l-u<=1&&d-c<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+e.byteLength+", audio buffer: "+Ri(s).join(", ")+", video buffer: "+Ri(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:e})),l=this.currentTime_()-1,this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+l),this.remove(0,l,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=a.a.setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type;e=e.bytes;t&&(22===t.code?this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:e}):(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+e.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")))},n.appendToSourceBuffer_=function(e){var t,n,i,r=e.segmentInfo,a=e.type,s=e.initSegment,o=e.data;e=e.bytes;e||(t=[o],o=o.byteLength,s&&(t.unshift(s),o+=s.byteLength),i=0,(s={bytes:o,segments:t}).bytes&&(n=new Uint8Array(s.bytes),s.segments.forEach((function(e){n.set(e,i),i+=e.byteLength}))),e=n),this.sourceUpdater_.appendBuffer({segmentInfo:r,type:a,bytes:e},this.handleAppendError_.bind(this,{segmentInfo:r,type:a,bytes:e}))},n.handleSegmentTimingInfo_=function(e,t,n){this.pendingSegment_&&t===this.pendingSegment_.requestId&&((t=this.pendingSegment_.segment)[e+="TimingInfo"]||(t[e]={}),t[e].transmuxerPrependedSeconds=n.prependedContentDuration||0,t[e].transmuxedPresentationStart=n.start.presentation,t[e].transmuxedDecodeStart=n.start.decode,t[e].transmuxedPresentationEnd=n.end.presentation,t[e].transmuxedDecodeEnd=n.end.decode,t[e].baseMediaDecodeTime=n.baseMediaDecodeTime)},n.appendData_=function(e,t){var n=t.type,i=t.data;i&&i.byteLength&&("audio"===n&&this.audioDisabled_||(t=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null}),this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:t,data:i})))},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var n=o()({},e,{forceTimestampOffset:!0});o()(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=function(e){var t=this,n=(this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset})),this.createSimplifiedSegmentObj_(e)),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&0<e.timeline;i=i||r&&a;this.logger_("Requesting "+Br(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Ar({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:i,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level;n=n.stream;t.logger_(Br(e)+" logged from transmuxer stream "+n+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){t=this.seekable_(),r=this.currentTime_(),n=this.playlist_.targetDuration||10,i=r-ya.BACK_BUFFER_LENGTH,t.length&&(i=Math.max(i,t.start(0))),t=r-n;var t,n,i,r=Math.min(t,i);0<r&&this.remove(0,r)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,i=(n={resolvedUri:(n||t).resolvedUri,byterange:(n||t).byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},e.playlist.segments[e.mediaIndex-1]);return i&&i.timeline===t.timeline&&(i.videoTimingInfo?n.baseStartTime=i.videoTimingInfo.transmuxedDecodeEnd:i.audioTimingInfo&&(n.baseStartTime=i.audioTimingInfo.transmuxedDecodeEnd)),t.key&&(i=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]),n.key=this.segmentKey(t.key),n.key.iv=i),t.map&&(n.map=this.initSegmentForMap(t.map)),n},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<1/60?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+1/60):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e)return this.pendingSegment_=null,this.state="READY",e.code===xa.ABORTED?void 0:(this.pause(),e.code===xa.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error")));e=this.pendingSegment_,this.saveBandwidthRelatedStats_(e.duration,t.stats),e.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var i=t[0].pts,r=0;r<e.length&&!(e[r].pts>=i);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(e)}},n.setTimeMapping_=function(e){e=this.syncController_.mappingForTimeline(e),null!==e&&(this.timeMapping_=e)},n.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo;e=e.audioTimingInfo;return void 0!==t?t:s?(t=n.segments[i-1],0!==i&&t&&void 0!==t.start&&t.end===r+a?o.start:r):e.start},n.waitForAppendsToComplete_=function(e){var t,n,i=this.getCurrentMediaInfo_(e);if(i)return n=i.hasAudio,t=i.hasVideo,i=i.isMuxed,t="main"===this.loaderType_&&t,n=!this.audioDisabled_&&n&&!i,e.waitingOnAppends=0,e.hasAppendedData_?(t&&e.waitingOnAppends++,n&&e.waitingOnAppends++,t&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),void(n&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e)))):(e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e));this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),this.trigger("error")},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){n=this.loaderType_,t=this.getCurrentMediaInfo_(),e=e;var t,n="main"===n&&t&&e?e.hasAudio||e.hasVideo?t.hasVideo&&!e.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&e.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null;return!!n&&(this.error({message:n,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){var t;null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_||(t=!1,e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset"))},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo;e=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:e.start:e.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_();t="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;t&&(e.timingInfo.end="number"==typeof t.end?t.end:t.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_,t=(this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_}),Hr(e,this.sourceType_));if(t&&("warn"===t.severity?Ai.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))this.logger_("Throwing away un-appended sync request "+Br(e));else{this.logger_("Appended "+Br(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");t=e.segment;var n=e.part;t=t.end&&this.currentTime_()-t.end>3*e.playlist.targetDuration,n=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(t||n)return this.logger_("bad "+(t?"segment":"part")+" "+Br(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}},n.recordThroughput_=function(e){var t,n;e.duration<1/60?this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60):(t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,e=Math.floor(e.byteLength/n*8*1e3),this.throughput.rate+=(e-t)/++this.throughput.count)},n.addSegmentMetadataCue_=function(e){var t,n,i,r;this.segmentMetadataTrack_&&(t=(r=e.segment).start,n=r.end,Ur(t)&&Ur(n)&&(jr(t,n,this.segmentMetadataTrack_),i=a.a.WebKitDataCue||a.a.VTTCue,r={custom:r.custom,dateTimeObject:r.dateTimeObject,dateTimeString:r.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:t,end:n},(e=new i(t,n,JSON.stringify(r))).value=r,this.segmentMetadataTrack_.addCue(e)))},t}(Ai.EventTarget);function Ga(){}function za(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))}function Xa(e,t){var n=t[e+"Buffer"],i=za(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)}function Ka(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)}function Ya(e){var t=e.type,n=e.sourceUpdater,i=e.action,r=e.doneFn;e=e.name;n.queue.push({type:t,action:i,doneFn:r,name:e}),ls(t,n)}function Qa(e,t){return function(n){var i;t.queuePending[e]&&(i=t.queuePending[e].doneFn,t.queuePending[e]=null,i&&i(t[e+"Error_"])),ls(e,t)}}function $a(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}function Ja(e){function t(){i.AUDIO.onTrackChanged(),a.trigger({type:"usage",name:"vhs-audio-change"}),a.trigger({type:"usage",name:"hls-audio-change"})}["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){Ls[t](t,e)}));var n,i=e.mediaTypes,r=e.masterPlaylistLoader,a=e.tech,s=e.vhs,o=(u=e.segmentLoaders).AUDIO,u=u.main,l=(["AUDIO","SUBTITLES"].forEach((function(t){var n,r,a,s,o,u,l,c,d,h;i[t].activeGroup=(n=t,r=e,function(e){var t=r.masterPlaylistLoader,i=r.mediaTypes[n].groups,a=t.media();if(!a)return null;var s=null,o=(a.attributes[n]&&(s=i[a.attributes[n]]),Object.keys(i));if(!s)if("AUDIO"===n&&1<o.length&&ta(r.master))for(var u=0;u<o.length;u++){var l=i[o[u]];if(Ds(l,a)){s=l;break}}else i.main?s=i.main:1===o.length&&(s=i[o[0]]);return void 0===e?s:null!==e&&s&&s.filter((function(t){return t.id===e.id}))[0]||null}),i[t].activeTrack=Ns[t](t,e),i[t].onGroupChanged=(a=t,s=e,function(){var e=s.segmentLoaders,t=e[a],n=(e=e.main,s.mediaTypes[a]),i=n.activeTrack(),r=n.getActiveGroup(),o=n.activePlaylistLoader,u=n.lastGroup_;r&&u&&r.id===u.id||(n.lastGroup_=r,n.lastTrack_=i,xs(t,n),r&&!r.isMasterPlaylist&&(r.playlistLoader?(t.resyncLoader(),Is(r.playlistLoader,n)):o&&e.resetEverything()))}),i[t].onGroupChanging=(o=t,u=e,function(){var e=u.segmentLoaders[o];u.mediaTypes[o].lastGroup_=null,e.abort(),e.pause()}),i[t].onTrackChanged=(l=t,c=e,function(){var e=c.masterPlaylistLoader,t=c.segmentLoaders,n=t[l],i=(t=t.main,c.mediaTypes[l]),r=i.activeTrack(),a=i.getActiveGroup(),s=i.activePlaylistLoader,o=i.lastTrack_;if((!o||!r||o.id!==r.id)&&(i.lastGroup_=a,i.lastTrack_=r,xs(n,i),a)){if(a.isMasterPlaylist){if(!r||!o||r.id===o.id)return;var u=c.vhs.masterPlaylistController_,d=u.selectPlaylist();return u.media()===d?void 0:(i.logger_("track change. Switching master audio from "+o.id+" to "+r.id),e.pause(),t.resetEverything(),void u.fastQualityChange_(d))}if("AUDIO"===l){if(!a.playlistLoader)return t.setAudio(!0),void t.resetEverything();n.setAudio(!0),t.setAudio(!1)}s===a.playlistLoader||(n.track&&n.track(r),n.resetEverything()),Is(a.playlistLoader,i)}}),i[t].getActiveGroup=(d=t,h=e.mediaTypes,function(){var e=h[d].activeTrack();return e?h[d].activeGroup(e):null})})),i.AUDIO.activeGroup());for(n in l&&(l=(l.filter((function(e){return e.default}))[0]||l[0]).id,i.AUDIO.tracks[l].enabled=!0,i.AUDIO.onGroupChanged(),i.AUDIO.onTrackChanged(),i.AUDIO.getActiveGroup().playlistLoader?(u.setAudio(!1),o.setAudio(!0)):u.setAudio(!0)),r.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return i[e].onGroupChanged()}))})),r.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return i[e].onGroupChanging()}))})),a.audioTracks().addEventListener("change",t),a.remoteTextTracks().addEventListener("change",i.SUBTITLES.onTrackChanged),s.on("dispose",(function(){a.audioTracks().removeEventListener("change",t),a.remoteTextTracks().removeEventListener("change",i.SUBTITLES.onTrackChanged)})),a.clearTracks("audio"),i.AUDIO.tracks)a.audioTracks().addTrack(i.AUDIO.tracks[n])}function Za(e,t,n){var i,r=e.masterPlaylistController_,a=r[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(r);t.attributes&&(i=t.attributes.RESOLUTION,this.width=i&&i.width,this.height=i&&i.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]),this.codecs=Fa(r.master(),t),this.playlist=t,this.id=n,this.enabled=js(e.playlists,t.id,a)}function es(e,t){function n(t){null!=t&&(s=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",u),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())}function i(){return Date.now()-a<1e3*o.errorInterval?(e.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void e.trigger({type:"usage",name:"hls-error-reload-canceled"})):o.getSource&&"function"==typeof o.getSource?(a=Date.now(),o.getSource.call(e,n)):void Ai.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}function r(){e.off("loadedmetadata",u),e.off("error",i),e.off("dispose",r)}var a=0,s=0,o=Ai.mergeOptions(Fs,t),u=(e.ready((function(){e.trigger({type:"usage",name:"vhs-error-reload-initialized"}),e.trigger({type:"usage",name:"hls-error-reload-initialized"})})),function(){s&&e.currentTime(s)});e.on("error",i),e.on("dispose",r),e.reloadSourceOnError=function(t){r(),es(e,t)}}function ts(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})}function ns(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia;e=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();e=i=i?e.concat([i]):e,r=Object.keys(n);i=e.reduce((function(e,t){if(!t.contentProtection)return e;var n=r.reduce((function(e,n){var i=t.contentProtection[n];return i&&i.pssh&&(e[n]={pssh:i.pssh}),e}),{});return Object.keys(n).length&&e.push(n),e}),[]);var r,a=[],s=[];return i.forEach((function(e){s.push(new Promise((function(e,n){t.tech_.one("keysessioncreated",e)}))),a.push(new Promise((function(n,i){t.eme.initializeMediaKeys({keySystems:e},(function(e){e?i(e):n()}))})))})),Promise.race([Promise.all(a),Promise.race(s)])}function is(e){var t=e.player;return!!(e=function(e,t,n){if(!e)return e;var i,r={},a=(t&&t.attributes&&t.attributes.CODECS&&(r=Ba(Object(v.h)(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(r.audio=n.attributes.CODECS),Object(v.e)(r.video)),s=Object(v.e)(r.audio),o={};for(i in e)o[i]={},s&&(o[i].audioContentType=s),a&&(o[i].videoContentType=a),t.contentProtection&&t.contentProtection[i]&&t.contentProtection[i].pssh&&(o[i].pssh=t.contentProtection[i].pssh),"string"==typeof e[i]&&(o[i].url=e[i]);return Ai.mergeOptions(e,o)}(e.sourceKeySystems,e.media,e.audioMedia))&&(!((t.currentSource().keySystems=e)&&!t.eme)||(Ai.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))}function rs(){if(!a.a.localStorage)return null;var e=a.a.localStorage.getItem(qs);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}var as,ss=["video","audio"],os=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},us=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null},ls=function e(t,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"===r.type)n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),e("audio",n),e("video",n));else if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!os(t,n)){if(r.type!==t){if(null===(i=us(t,n.queue)))return;r=n.queue[i]}n.queue.splice(i,1),(n.queuePending[t]=r).action(t,n),r.doneFn||(n.queuePending[t]=null,e(t,n))}}},cs=function(e,t,n){return function(i,r){var a=r[i+"Buffer"];if(Ka(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+i+"Buffer");try{a.appendBuffer(e)}catch(a){r.logger_("Error with code "+a.code+" "+(22===a.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(a)}}}},ds=function(e,t){return function(n,i){var r=i[n+"Buffer"];if(Ka(i.mediaSource,r)){i.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{r.remove(e,t)}catch(r){i.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},hs=function(e){return function(t,n){var i=n[t+"Buffer"];Ka(n.mediaSource,i)&&(n.logger_("Setting "+t+"timestampOffset to "+e),i.timestampOffset=e)}},ps=function(e){return function(t,n){e()}},fs=function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(t){Ai.log.warn("Failed to call media source endOfStream",t)}}}},ms=function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(t){Ai.log.warn("Failed to set media source duration",t)}}},gs=function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(Ka(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(t){Ai.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},vs=function(e,t){return function(n){var i=za(e),r=Object(v.e)(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource"),r=n.mediaSource.addSourceBuffer(r);r.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),r.addEventListener("error",n["on"+i+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=r}},ys=function(e){return function(t){var n=t[e+"Buffer"];if(Xa(e,t),Ka(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(t){Ai.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},_s=function(e){return function(t,n){var i=n[t+"Buffer"],r=Object(v.e)(e);if(Ka(n.mediaSource,i)&&n.codecs[t]!==e){n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e);try{i.changeType(r),n.codecs[t]=e}catch(n){Ai.log.warn("Failed to changeType on "+t+"Buffer",n)}}}},bs=function(e){function t(t){var n=e.call(this)||this;return n.mediaSource=t,n.sourceopenListener_=function(){return ls("mediaSource",l()(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Gr("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Qa("video",l()(n)),n.onAudioUpdateEnd_=Qa("audio",l()(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}c()(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){Ya({type:"mediaSource",sourceUpdater:this,action:vs(e,t),name:"addSourceBuffer"})},n.abort=function(e){Ya({type:e,sourceUpdater:this,action:gs(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Ya({type:"mediaSource",sourceUpdater:this,action:ys(e),name:"removeSourceBuffer"}):Ai.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!Ai.browser.IE_VERSION&&!Ai.browser.IS_FIREFOX&&a.a.MediaSource&&a.a.MediaSource.prototype&&"function"==typeof a.a.MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return a.a.SourceBuffer&&a.a.SourceBuffer.prototype&&"function"==typeof a.a.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?Ya({type:e,sourceUpdater:this,action:_s(t),name:"changeType"}):Ai.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((function(n){var i=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,i);t.canChangeType()&&t.changeType(n,i)}))},n.appendBuffer=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");Ya({type:r,sourceUpdater:this,action:cs(a,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r&&(this.videoAppendQueued_=!0,this.delayedAudioAppendQueue_.length&&(e=this.delayedAudioAppendQueue_.slice(),this.logger_("queuing delayed audio "+e.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,e.forEach((function(e){n.appendBuffer.apply(n,e)}))))},n.audioBuffered=function(){return Ka(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered||Ai.createTimeRange()},n.videoBuffered=function(){return Ka(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered||Ai.createTimeRange()},n.buffered=function(){var e=Ka(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Ka(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;if(t&&!e)return this.audioBuffered();if(e&&!t)return this.videoBuffered();var n=this.audioBuffered(),i=this.videoBuffered(),r=null,a=null,s=0,o=[],u=[];if(!(n&&n.length&&i&&i.length))return Ai.createTimeRange();for(var l=n.length;l--;)o.push({time:n.start(l),type:"start"}),o.push({time:n.end(l),type:"end"});for(l=i.length;l--;)o.push({time:i.start(l),type:"start"}),o.push({time:i.end(l),type:"end"});for(o.sort((function(e,t){return e.time-t.time})),l=0;l<o.length;l++)"start"===o[l].type?2===++s&&(r=o[l].time):"end"===o[l].type&&1===--s&&(a=o[l].time),null!==r&&null!==a&&(u.push([r,a]),a=r=null);return Ai.createTimeRanges(u)},n.setDuration=function(e,t){void 0===t&&(t=Ga),Ya({type:"mediaSource",sourceUpdater:this,action:ms(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===t&&(t=Ga),Ya({type:"mediaSource",sourceUpdater:this,action:fs(e="string"!=typeof(e=void 0===e?null:e)?void 0:e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=Ga),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Ya({type:"audio",sourceUpdater:this,action:ds(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=Ga),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Ya({type:"video",sourceUpdater:this,action:ds(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!os("audio",this)&&!os("video",this))},n.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Ya({type:"audio",sourceUpdater:this,action:hs(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Ya({type:"video",sourceUpdater:this,action:hs(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&Ya({type:"audio",sourceUpdater:this,action:ps(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&Ya({type:"video",sourceUpdater:this,action:ps(e),name:"callback"})},n.dispose=function(){var e=this;this.trigger("dispose"),ss.forEach((function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"]((function(){return Xa(t,e)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(Ai.EventTarget),Ts=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),Ss=function(e){function t(){return e.call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")||this}return c()(t,e),t}(T()(Error)),Es=function(e){function t(t,n){return(n=e.call(this,t,n=void 0===n?{}:n)||this).mediaSource_=null,n.subtitlesTrack_=null,n.loaderType_="subtitle",n.featuresNativeTextTracks_=t.featuresNativeTextTracks,n.loadVttJs=t.loadVttJs,n.shouldSaveSegmentTimingInfo_=!1,n}c()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Ai.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime;e=e[e.length-1].startTime;return Ai.createTimeRanges([[t,e]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=lr(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(t=Ts.byteLength+e.bytes.byteLength,(t=new Uint8Array(t)).set(e.bytes),t.set(Ts,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:t}),i||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){jr(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t)return null===this.syncController_.timestampOffsetForTimeline(t.timeline)?(this.syncController_.one("timestampoffset",(function(){e.state="READY",e.paused()||e.monitorBuffer_()})),void(this.state="WAITING_ON_TIMELINE")):void this.loadSegment_(t)},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===xa.TIMEOUT&&this.handleTimeout_(),e.code===xa.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_,s=(this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending"),r.segment);if(s.map&&(s.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof a.a.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((function(){return i.segmentRequestFinished_(e,t,n)}),(function(){return i.stopForError({message:"Error loading vtt.js"})}));s.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,r.cues.forEach((function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new a.a.VTTCue(e.startTime,e.endTime,e.text):e)}));var o=this.subtitlesTrack_,u=o.cues;if(u)for(var l=0;l<u.length;l++){for(var c=[],d=0,h=0;h<u.length;h++)u[l].startTime===u[h].startTime&&u[l].endTime===u[h].endTime&&u[l].text===u[h].text&&1<++d&&c.push(u[h]);c.length&&c.forEach((function(e){return o.removeCue(e)}))}this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t=!1;if("function"!=typeof a.a.WebVTT)throw new Ss;"function"==typeof a.a.TextDecoder?n=new a.a.TextDecoder("utf8"):(n=a.a.WebVTT.StringDecoder(),t=!0);var n=new a.a.WebVTT.Parser(a.a,a.a.vttjs,n),i=(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=function(t){e.timestampmap=t},n.onparsingerror=function(e){Ai.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map&&(i=e.segment.map.bytes,t&&(i=$a(i)),n.parse(i)),e.bytes);t&&(i=$a(i)),n.parse(i),n.flush()},n.updateTimeMapping_=function(e,t,n){var i,r,a=e.segment;t&&(e.cues.length?(r=e.timestampmap,i=r.MPEGTS/w.ONE_SECOND_IN_TS-r.LOCAL+t.mapping,e.cues.forEach((function(e){e.startTime+=i,e.endTime+=i})),n.syncInfo||(r=e.cues[0].startTime,t=e.cues[e.cues.length-1].startTime,n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(r,t-a.duration)})):a.empty=!0)},t}(Wa),ks=[{name:"VOD",run:function(e,t,n,i,r){return n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,s=null,o=Bi(t);r=r||0;for(var u=0;u<o.length;u++){var l=o[t.endList||0===r?u:o.length-(u+1)],c=l.segment,d=e.timelineToDatetimeMappings[c.timeline];if(d&&c.dateTimeObject){var h=c.dateTimeObject.getTime()/1e3+d;if(c.parts&&"number"==typeof l.partIndex)for(var p=0;p<l.partIndex;p++)h+=c.parts[p].duration;if(d=Math.abs(r-h),null!==s&&(0===d||s<d))break;s=d,a={time:h,segmentIndex:l.segmentIndex,partIndex:l.partIndex}}}return a}},{name:"Segment",run:function(e,t,n,i,r){for(var a=null,s=null,o=(r=r||0,Bi(t)),u=0;u<o.length;u++){var l=o[t.endList||0===r?u:o.length-(u+1)],c=l.segment,d=l.part&&l.part.start||c&&c.start;if(c.timeline===i&&void 0!==d){if(c=Math.abs(r-d),null!==s&&s<c)break;(!a||null===s||c<=s)&&(s=c,a={time:d,segmentIndex:l.segmentIndex,partIndex:l.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,i,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o<t.discontinuityStarts.length;o++){var u=t.discontinuityStarts[o],l=t.discontinuitySequence+o+1;l=e.discontinuities[l];if(l){var c=Math.abs(r-l.time);if(null!==s&&s<c)break;(!a||null===s||c<=s)&&(s=c,a={time:l.time,segmentIndex:u,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],ws=function(e){function t(t){var n=e.call(this)||this;return n.timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=Gr("SyncController"),n}c()(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){return e=this.runStrategies_(e,t,n,i),e.length?this.selectSyncPoint_(e,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){return e&&e.segments?(t=this.runStrategies_(e,t,e.discontinuitySequence,0),t.length?(t=this.selectSyncPoint_(t,{key:"segmentIndex",value:0}),0<t.segmentIndex&&(t.time*=-1),Math.abs(t.time+qi({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.segmentIndex,endIndex:0}))):null):null},n.runStrategies_=function(e,t,n,i){for(var r=[],a=0;a<ks.length;a++){var s=ks[a],o=s.run(this,e,t,n,i);o&&(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}))}return r},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var s=Math.abs(e[a].syncPoint[t.key]-t.value);s<i&&(i=s,n=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){var n=t.mediaSequence-e.mediaSequence;if(86400<n)Ai.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;0<=i;i--){var r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){var t;this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject&&(t=(e=e.segments[0]).dateTimeObject.getTime()/1e3,this.timelineToDatetimeMappings[e.timeline]=-t)},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=(e=e.shouldSaveTimelineMapping,this.calculateSegmentTimeMapping_(t,t.timingInfo,e)),i=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:i.start})),n=i.dateTimeObject;i.discontinuity&&e&&n&&(this.timelineToDatetimeMappings[i.timeline]=-n.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var i,r,a=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+o.time+"] [mapping: "+o.mapping+"]")),i=e.startOfSegment,r=t.end+o.mapping;else{if(!o)return!1;i=t.start+o.mapping,r=t.end+o.mapping}return s&&(s.start=i,s.end=r),(!a.start||i<a.start)&&(a.start=i),a.end=r,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var i=0;i<t.discontinuityStarts.length;i++){var r,a=t.discontinuityStarts[i],s=t.discontinuitySequence+i+1,o=a-e.mediaIndex,u=Math.abs(o);(!this.discontinuities[s]||this.discontinuities[s].accuracy>u)&&(r=void 0,r=o<0?n.start-qi({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:a}):n.end+qi({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:a}),this.discontinuities[s]={time:r,accuracy:u})}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(Ai.EventTarget),Cs=function(e){function t(){var t=e.call(this)||this;return t.pendingTimelineChanges_={},t.lastTimelineChanges_={},t}c()(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from;e=e.to;return"number"==typeof n&&"number"==typeof e&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:e},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from;e=e.to;return"number"==typeof n&&"number"==typeof e&&(this.lastTimelineChanges_[t]={type:t,from:n,to:e},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Ai.EventTarget),Os=Tr(Sr(Er((function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var i=n((function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e},e.exports.default=e.exports,e.exports.__esModule=!0})),r=n((function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,i)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),a=n((function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0})),s=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){return!!this.listeners[e]&&(t=this.listeners[e].indexOf(t),this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(t,1),-1<t)},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();function o(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}function u(e){var t={};return Object.keys(e).forEach((function(n){var i,r=e[n];i=r,("function"===ArrayBuffer.isView?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r})),t}
  7. /*! @name aes-decrypter @version 3.1.3 @license Apache-2.0 */var l=null,c=function(){function e(e){l=l||function(){for(var e,t,n,i,r,a,s,o=[[[],[],[],[],[]],[[],[],[],[],[]]],u=o[0],l=o[1],c=u[4],d=l[4],h=[],p=[],f=0;f<256;f++)p[(h[f]=f<<1^283*(f>>7))^f]=f;for(e=t=0;!c[e];e^=n||1,t=p[t]||1)for(s=16843009*h[i=h[n=h[d[c[e]=r=(r=t^t<<1^t<<2^t<<3^t<<4)>>8^255&r^99]=e]]]^65537*i^257*n^16843008*e,a=257*h[r]^16843008*r,f=0;f<4;f++)u[f][e]=a=a<<24^a>>>8,l[f][r]=s=s<<24^s>>>8;for(f=0;f<5;f++)u[f]=u[f].slice(0),l[f]=l[f].slice(0);return o}(),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var t,n,i,r=this._tables[0][4],a=this._tables[1],s=e.length,o=1;if(4!==s&&6!==s&&8!==s)throw new Error("Invalid aes key size");var u=e.slice(0),c=[];for(this._key=[u,c],t=s;t<4*s+28;t++)i=u[t-1],(t%s==0||8===s&&t%s==4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%s==0&&(i=i<<8^i>>>24^o<<24,o=o<<1^283*(o>>7))),u[t]=u[t-s]^i;for(n=0;t;n++,t--)i=u[3&n?t:t-4],c[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}return e.prototype.decrypt=function(e,t,n,i,r,a){for(var s,o,u,l=this._key[1],c=e^l[0],d=i^l[1],h=n^l[2],p=t^l[3],f=l.length/4-2,m=4,g=(e=this._tables[1],e[0]),v=e[1],y=e[2],_=e[3],b=e[4],T=0;T<f;T++)s=g[c>>>24]^v[d>>16&255]^y[h>>8&255]^_[255&p]^l[m],o=g[d>>>24]^v[h>>16&255]^y[p>>8&255]^_[255&c]^l[m+1],u=g[h>>>24]^v[p>>16&255]^y[c>>8&255]^_[255&d]^l[m+2],p=g[p>>>24]^v[c>>16&255]^y[d>>8&255]^_[255&h]^l[m+3],m+=4,c=s,d=o,h=u;for(T=0;T<4;T++)r[(3&-T)+a]=b[c>>>24]<<24^b[d>>16&255]<<16^b[h>>8&255]<<8^b[255&p]^l[m++],s=c,c=d,d=h,h=p,p=s},e}(),d=function(e){function t(){var t=e.call(this,s)||this;return t.jobs=[],t.delay=1,t.timeout_=null,t}a(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),h=function(){function e(t,n,i,r){var a=e.STEP,s=new Int32Array(t.buffer),u=new Uint8Array(t.byteLength),l=0;for(this.asyncStream_=new d,this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),n,i,u)),l=a;l<s.length;l+=a)i=new Uint32Array([o(s[l-4]),o(s[l-3]),o(s[l-2]),o(s[l-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),n,i,u));this.asyncStream_.push((function(){r(null,u.subarray(0,u.byteLength-u[u.byteLength-1]))}))}return e.prototype.decryptChunk_=function(e,t,n,i){return function(){var r=function(e,t,n){for(var i,r,a,s,u=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),l=new c(Array.prototype.slice.call(t)),d=(t=new Uint8Array(e.byteLength),new Int32Array(t.buffer)),h=n[0],p=n[1],f=n[2],m=n[3],g=0;g<u.length;g+=4)i=o(u[g]),r=o(u[g+1]),a=o(u[g+2]),s=o(u[g+3]),l.decrypt(i,r,a,s,d,g),d[g]=o(d[g]^h),d[g+1]=o(d[g+1]^p),d[g+2]=o(d[g+2]^f),d[g+3]=o(d[g+3]^m),h=i,p=r,f=a,m=s;return t}(e,t,n);i.set(r,e.byteOffset)}},i(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}();t="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},t=t.BigInt||Number;t("0x1"),t("0x100"),t("0x10000"),t("0x1000000"),t("0x100000000"),t("0x10000000000"),t("0x1000000000000"),t("0x100000000000000"),t("0x10000000000000000"),self.onmessage=function(e){var t=e.data,n=(e=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4)),i=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new h(e,n,i,(function(e,n){self.postMessage(u({source:t.source,decrypted:n}),[n.buffer])}))}})))),xs=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Is=function(e,t){(t.activePlaylistLoader=e).load()},As={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist,a=(n=(xs(n,i),i.activeTrack()),i.activeGroup()),s=(a=(a.filter((function(e){return e.default}))[0]||a[0]).id,i.tracks[a]);if(n===s)r({message:"Problem encountered loading the default audio track."});else{for(var o in Ai.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[o].enabled=i.tracks[o]===s;i.onTrackChanged()}}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];Ai.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),xs(n,i),n=i.activeTrack();n&&(n.mode="disabled"),i.onTrackChanged()}}},Ps={AUDIO:function(e,t,n){var i,r,a;t&&(i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",As[e](e,n)))},SUBTITLES:function(e,t,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],s=n.mediaTypes[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",As[e](e,n))}},Ls={AUDIO:function(e,t){var n,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.master.mediaGroups,u=t.mediaTypes[e],l=u.groups,c=u.tracks,d=u.logger_,h=t.masterPlaylistLoader,p=ta(h.master);for(n in o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},p&&(o[e].main.default.playlists=h.master.playlists)),o[e])for(var f in l[n]||(l[n]=[]),o[e][n]){var m,g=o[e][n][f],v=void 0;v=p?(d("AUDIO group '"+n+"' label '"+f+"' is a master playlist"),g.isMasterPlaylist=!0,null):"vhs-json"===r&&g.playlists?new ca(g.playlists[0],i,s):g.resolvedUri?new ca(g.resolvedUri,i,s):g.playlists&&"dash"===r?new va(g.playlists[0],i,s,h):null,g=Ai.mergeOptions({id:f,playlistLoader:v},g);Ps[e](e,g.playlistLoader,t),l[n].push(g),void 0===c[f]&&(m=new Ai.AudioTrack({id:f,kind:(v=void 0,v=(m=g).default?"main":"alternative",v=m.characteristics&&0<=m.characteristics.indexOf("public.accessibility.describes-video")?"main-desc":v),enabled:!1,language:g.language,default:g.default,label:f}),c[f]=m)}a.on("error",As[e](e,t))},SUBTITLES:function(e,t){var n,i=t.tech,r=t.vhs,a=t.sourceType,s=t.segmentLoaders[e],o=t.requestOptions,u=t.master.mediaGroups,l=t.mediaTypes[e],c=l.groups,d=l.tracks,h=t.masterPlaylistLoader;for(n in u[e])for(var p in c[n]||(c[n]=[]),u[e][n])if(!u[e][n][p].forced){var f=u[e][n][p],m=void 0;if("hls"===a)m=new ca(f.resolvedUri,r,o);else if("dash"===a){if(!f.playlists.filter((function(e){return e.excludeUntil!==1/0})).length)return;m=new va(f.playlists[0],r,o,h)}else"vhs-json"===a&&(m=new ca(f.playlists?f.playlists[0]:f.resolvedUri,r,o));f=Ai.mergeOptions({id:p,playlistLoader:m},f),Ps[e](e,f.playlistLoader,t),c[n].push(f),void 0===d[p]&&(m=i.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track,d[p]=m)}s.on("error",As[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n,i=t.tech,r=t.master.mediaGroups,a=(t=t.mediaTypes[e],t.groups),s=t.tracks;for(n in r[e])for(var o in a[n]||(a[n]=[]),r[e][n]){var u,l,c=r[e][n][o];/^(?:CC|SERVICE)/.test(c.instreamId)&&(void 0===(u=(l=i.options_.vhs&&i.options_.vhs.captionServices||{})[(u={label:o,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect}).instreamId]?Ai.mergeOptions(u,l[u.instreamId]):u).default&&delete u.default,a[n].push(Ai.mergeOptions({id:o},c)),void 0===s[o]&&(l=i.addRemoteTextTrack({id:u.instreamId,kind:"captions",default:u.default,language:u.language,label:u.label},!1).track,s[o]=l))}}},Ds=function e(t,n){for(var i=0;i<t.length;i++){if(Yi(n,t[i]))return!0;if(t[i].playlists&&e(t[i].playlists,n))return!0}return!1},Ns={AUDIO:function(e,t){return function(){var n,i=t.mediaTypes[e].tracks;for(n in i)if(i[n].enabled)return i[n];return null}},SUBTITLES:function(e,t){return function(){var n,i=t.mediaTypes[e].tracks;for(n in i)if("showing"===i[n].mode||"hidden"===i[n].mode)return i[n];return null}}},Rs=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Ms=function(e){function t(t){var n=e.call(this)||this,i=t.src,r=t.handleManifestRedirects,s=t.withCredentials,o=t.tech,u=t.bandwidth,c=t.externVhs,d=t.useCueTags,h=t.blacklistDuration,p=t.enableLowInitialPlaylist,f=t.sourceType,m=t.cacheEncryptionKeys,g=t.experimentalBufferBasedABR,v=t.experimentalLeastPixelDiffSelector,y=t.captionServices;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var _,b=t.maxPlaylistRetries;null==b&&(b=1/0),as=c,n.experimentalBufferBasedABR=Boolean(g),n.experimentalLeastPixelDiffSelector=Boolean(v),n.withCredentials=s,n.tech_=o,n.vhs_=o.vhs,n.sourceType_=f,n.useCueTags_=d,n.blacklistDuration=h,n.maxPlaylistRetries=b,n.enableLowInitialPlaylist=p,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:s,handleManifestRedirects:r,maxPlaylistRetries:b,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=(_={},["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){_[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Ga,activeTrack:Ga,getActiveGroup:Ga,onGroupChanged:Ga,onTrackChanged:Ga,lastTrack_:null,logger_:Gr("MediaGroups["+e+"]")}})),_),n.mediaSource=new a.a.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(l()(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(l()(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(l()(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=Ai.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new ws(t),n.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new Os,n.sourceUpdater_=new bs(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new Cs,c={vhs:n.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:y,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:u,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:m,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings},n.masterPlaylistLoader_=new("dash"===n.sourceType_?va:ca)(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Wa(Ai.mergeOptions(c,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new Wa(Ai.mergeOptions(c,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new Es(Ai.mergeOptions(c,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks,loadVttJs:function(){return new Promise((function(e,t){function n(){o.off("vttjserror",i),e()}function i(){o.off("vttjsloaded",n),t()}o.one("vttjsloaded",n),o.one("vttjserror",i),o.addWebVttScript_()}))}}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",(function(){return n.startABRTimer_()})),n.tech_.on("pause",(function(){return n.stopABRTimer_()})),n.tech_.on("play",(function(){return n.startABRTimer_()}))),Rs.forEach((function(e){n[e+"_"]=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]}.bind(l()(n),e)})),n.logger_=Gr("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1,g="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(g,(function(){var e=Date.now();n.tech_.one("loadeddata",(function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends}))})),n}c()(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(e){void 0===e&&(e="abr");var t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)},n.switchMedia_=function(e,t,n){var i=this.media(),r=(i=i&&(i.id||i.uri),e.id||e.uri);i&&i!==r&&(this.logger_("switch media "+i+" -> "+r+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=a.a.setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(a.a.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a,s=i.main||r.length&&i[r[0]];for(a in s)if(s[a].default){n={label:a};break}}if(!n)return t;var o,u=[];for(o in i)if(i[o][n.label]){var l=i[o][n.label];if(l.playlists&&l.playlists.length)u.push.apply(u,l.playlists);else if(l.uri)u.push(l);else if(e.playlists.length)for(var c=0;c<e.playlists.length;c++){var d=e.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===o&&u.push(d)}}return u.length?u:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;Ki(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),Ja({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){e.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t,n=e.masterPlaylistLoader_.media();if(!n){if(e.excludeUnsupportedVariants_(),!(t=(t=e.enableLowInitialPlaylist?e.selectInitialPlaylist():t)||e.selectPlaylist())||!e.shouldSwitchToMedia_(t))return;if(e.initialMedia_=t,e.switchMedia_(e.initialMedia_,"initial"),"vhs-json"!==e.sourceType_||!e.initialMedia_.segments)return;n=e.initialMedia_}e.handleUpdatedMediaPlaylist(n)})),this.masterPlaylistLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;Ki(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.masterPlaylistLoader_.load(),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var t=e.masterPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck"))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n,i=e.mediaGroups||{},r=!0;e=Object.keys(i.AUDIO);for(n in i.AUDIO)for(var a in i.AUDIO[n])i.AUDIO[n][a].uri||(r=!1);r&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(i.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),as.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),e.length&&1<Object.keys(i.AUDIO[e[0]]).length&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),a=this.tech_.buffered(),s=(n=(a={buffered:a,currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_}).currentPlaylist,t=a.buffered,e=a.currentTime,i=a.nextPlaylist,r=a.bufferLowWaterLine,a.bufferHighWaterLine),o=a.duration,u=a.experimentalBufferBasedABR;a=a.log;if(!i)return Ai.log.warn("We received no playlist to switch to. Please check your stream."),!1;var l="allowing switch "+(n&&n.id||"null")+" -> "+i.id;if(!n)return a(l+" as current playlist is not set"),!0;if(i.id===n.id)return!1;var c=Boolean(Li(t,e).length);return n.endList?(c=ji(t,e),t=u?ya.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:ya.MAX_BUFFER_LOW_WATER_LINE,o<t?(a(l+" as duration < max low water line ("+o+" < "+t+")"),!0):(e=i.attributes.BANDWIDTH,o=n.attributes.BANDWIDTH,e<o&&(!u||c<s)?(t=l+" as next bandwidth < current bandwidth ("+e+" < "+o+")",u&&(t+=" and forwardBuffer < bufferHighWaterLine ("+c+" < "+s+")"),a(t),!0):(!u||o<e)&&r<=c?(i=l+" as forwardBuffer >= bufferLowWaterLine ("+c+" >= "+r+")",u&&(i+=" and next bandwidth > current bandwidth ("+e+" > "+o+")"),a(i),!0):(a("not "+l+" as no switching criteria met"),!1))):c||"number"!=typeof n.partTargetDuration?(a(l+" as current playlist is live"),!0):(a("not "+l+" as current playlist is live llhls, but currentTime isn't in buffered."),!1)},n.setupSegmentLoaderListeners_=function(){function e(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var e=t.getCodecsOrExclude_();e&&t.sourceUpdater_.addOrChangeSourceBuffers(e)}var t=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){t.checkABR_("bandwidthupdate"),t.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(function(){t.experimentalBufferBasedABR&&t.mainSegmentLoader_.load()})),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",(function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){t.logger_("main segment loader ended"),t.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(e){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))})),this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){t.logger_("audioSegmentLoader ended"),t.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;(e=void 0===e?this.selectPlaylist():e)===this.masterPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){Ai.browser.IE_VERSION||Ai.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})))},n.play=function(){var e;if(!this.setupFirstPlay())return this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load(),e=this.tech_.seekable(),this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(Ai.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){var e;this.tryToCreateSourceBuffers_(),this.tech_.autoplay()&&void 0!==(e=this.tech_.play())&&"function"==typeof e.then&&e.then(null,(function(e){})),this.trigger("sourceopen")},n.handleSourceEnded_=function(){var e,t;!this.inbandTextTracks_.metadataTrack_||(e=this.inbandTextTracks_.metadataTrack_.cues)&&e.length&&(t=this.duration(),e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t)},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var e,t=this.mainSegmentLoader_.ended_;(t=this.mediaTypes_.AUDIO.activePlaylistLoader?((e=this.mainSegmentLoader_.getCurrentMediaInfo_())&&!e.hasVideo||t)&&this.audioSegmentLoader_.ended_:t)&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;e=as.Playlist.playlistEnd(e,t),t=this.tech_.currentTime();var n=this.tech_.buffered();return n.length?(n=n.end(n.length-1),n-t<=Xr&&e-n<=Xr):e-t<=Xr},n.blacklistCurrentPlaylist=function(e,t){var n=(e=void 0===e?{}:e).playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(zi);a=1===a.length&&a[0]===n;if(1===r.length&&t!==1/0)return Ai.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(a);if(a&&(i=!1,r.forEach((function(e){var t;e!==n&&void 0!==(t=e.excludeUntil)&&t!==1/0&&(i=!0,delete e.excludeUntil)})),i&&(Ai.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))),r=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=r,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),t=this.selectPlaylist(),!t)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");r=e.internal?this.logger_:Ai.log.warn;var s=e.message?" "+e.message:"";r((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+s+" Switching to playlist "+t.id+"."),t.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),t.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]),r=t.targetDuration/2*1e3||5e3,e="number"==typeof t.lastRequest&&Date.now()-t.lastRequest<=r;return this.switchMedia_(t,"exclude",a||e)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e,a=(!r&&"main"!==e||i.push(this.masterPlaylistLoader_),[]);!r&&"audio"!==e||a.push("AUDIO"),!r&&"subtitle"!==e||(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach((function(e){e=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader,e&&i.push(e)})),["main","audio","subtitle"].forEach((function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)})),i.forEach((function(e){return t.forEach((function(t){"function"==typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(e){var t=Li(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:as.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i,r,a=this.masterPlaylistLoader_.master,s=as.Playlist.seekable(t,n,as.Playlist.liveEdgeDelay(a,t));if(0!==s.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=as.Playlist.seekable(t,n,as.Playlist.liveEdgeDelay(a,t))).length)return}this.seekable_&&this.seekable_.length&&(i=this.seekable_.end(0),r=this.seekable_.start(0)),!e||e.start(0)>s.end(0)||s.start(0)>e.end(0)?this.seekable_=s:this.seekable_=Ai.createTimeRanges([[(e.start(0)>s.start(0)?e:s).start(0),(e.end(0)<s.end(0)?e:s).end(0)]]),this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===i&&this.seekable_.start(0)===r||(this.logger_("seekable updated ["+Ni(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e)return(e=this.seekable()).length?void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1))):void 0;e=this.tech_.buffered();var t=as.Playlist.duration(this.masterPlaylistLoader_.media());0<e.length&&(t=Math.max(t,e.end(e.length-1))),this.mediaSource.duration!==t&&this.sourceUpdater_.setDuration(t)},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(t){var n,i=e.mediaTypes_[t].groups;for(n in i)i[n].forEach((function(e){e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_();e=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return t&&e},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media(),i=(t.video=t.main,Fa(this.master(),n)),r={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(r.video=i.video||t.main.videoCodec||v.b),t.main.isMuxed&&(r.video+=","+(i.audio||t.main.audioCodec||v.a)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||a)&&(r.audio=i.audio||t.main.audioCodec||t.audio.audioCodec||v.a,t.audio.isFmp4=(t.main.hasAudio&&!t.main.isMuxed?t.main:t.audio).isFmp4),r.audio||r.video){var s,o,u={};if(["video","audio"].forEach((function(e){var n,i;r.hasOwnProperty(e)&&(n=t[e].isFmp4,i=r[e],!Object(n?v.c:v.g)(i))&&(n=t[e].isFmp4?"browser":"muxer",u[n]=u[n]||[],u[n].push(r[e]),"audio"===e&&(s=n))})),a&&s&&n.attributes.AUDIO&&(o=n.attributes.AUDIO,this.master().playlists.forEach((function(e){(e.attributes&&e.attributes.AUDIO)===o&&e!==n&&(e.excludeUntil=1/0)})),this.logger_("excluding audio group "+o+" as "+s+' does not support codec(s): "'+r.audio+'"')),Object.keys(u).length)return i=Object.keys(u).reduce((function(e,t){return e&&(e+=", "),e+(t+' does not support codec(s): "')+u[t].join(",")+'"'}),"")+".",void this.blacklistCurrentPlaylist({playlist:n,internal:!0,message:i,blacklistDuration:1/0});if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var l=[];if(["video","audio"].forEach((function(t){var n=(Object(v.h)(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,i=(Object(v.h)(r[t]||"")[0]||{}).type;n&&i&&n.toLowerCase()!==i.toLowerCase()&&l.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+r[t]+'"')})),l.length)return void this.blacklistCurrentPlaylist({playlist:n,message:"Codec switching not supported: "+l.join(", ")+".",blacklistDuration:1/0,internal:!0})}return r}this.blacklistCurrentPlaylist({playlist:n,message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){var e;"open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()&&(e=this.getCodecsOrExclude_())&&(this.sourceUpdater_.createSourceBuffers(e),e=[e.video,e.audio].filter(Boolean).join(","),this.excludeIncompatibleVariants_(e))},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(i){var r,a;i=t[i];-1===n.indexOf(i.id)&&(n.push(i.id),a=[],!(r=Fa(e.master,i)).audio||Object(v.g)(r.audio)||Object(v.c)(r.audio)||a.push("audio codec "+r.audio),!r.video||Object(v.g)(r.video)||Object(v.c)(r.video)||a.push("video codec "+r.video),r.text&&"stpp.ttml.im1t"===r.text&&a.push("text codec "+r.text),a.length&&(i.excludeUntil=1/0,e.logger_("excluding "+i.id+" for unsupported: "+a.join(", "))))}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=(e=Ba(Object(v.h)(e)),Pr(e)),a=e.video&&Object(v.h)(e.video)[0]||null,s=e.audio&&Object(v.h)(e.audio)[0]||null;Object.keys(i).forEach((function(e){var o,u,l;e=i[e];-1===n.indexOf(e.id)&&e.excludeUntil!==1/0&&(n.push(e.id),o=[],l=Fa(t.masterPlaylistLoader_.master,e),u=Pr(l),(l.audio||l.video)&&(u!==r&&o.push('codec count "'+u+'" !== "'+r+'"'),t.sourceUpdater_.canChangeType()||(u=l.video&&Object(v.h)(l.video)[0]||null,l=l.audio&&Object(v.h)(l.audio)[0]||null,u&&a&&u.type.toLowerCase()!==a.type.toLowerCase()&&o.push('video codec "'+u.type+'" !== "'+a.type+'"'),l&&s&&l.type.toLowerCase()!==s.type.toLowerCase()&&o.push('audio codec "'+l.type+'" !== "'+s.type+'"')),o.length&&(e.excludeUntil=1/0,t.logger_("blacklisting "+e.id+": "+o.join(" && ")))))}))},n.updateAdCues_=function(e){var t=0,n=this.seekable(),i=(n.length&&(t=n.start(0)),e),r=this.cueTagsTrack_;n=t;if(void 0===n&&(n=0),i.segments)for(var s=n,o=0;o<i.segments.length;o++){var u,l,c,d=i.segments[o];if(c=c||function(e,t){for(var n=e.cues,i=0;i<n.length;i++){var r=n[i];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null}(r,s+d.duration/2)){if("cueIn"in d){c.endTime=s,c.adEndTime=s,s+=d.duration,c=null;continue}if(s<c.endTime){s+=d.duration;continue}c.endTime+=d.duration}else"cueOut"in d&&((c=new a.a.VTTCue(s,s+d.duration,d.cueOut)).adStartTime=s,c.adEndTime=s+parseFloat(d.cueOut),r.addCue(c)),"cueOutCont"in d&&(u=(l=d.cueOutCont.split("/").map(parseFloat))[0],l=l[1],(c=new a.a.VTTCue(s,s+d.duration,"")).adStartTime=s-u,c.adEndTime=c.adStartTime+l,r.addCue(c));s+=d.duration}},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=ya.GOAL_BUFFER_LENGTH,n=ya.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,ya.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=ya.BUFFER_LOW_WATER_LINE,n=ya.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,ya.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,ya.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return ya.BUFFER_HIGH_WATER_LINE},t}(Ai.EventTarget),js=function(e,t,n){return function(i){var r=e.master.playlists[t],a=Gi(r),s=zi(r);return void 0===i?s:(i?delete r.disabled:r.disabled=!0,i===s||a||(n(),i?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),i)}},Us=["seeking","seeked","pause","playing","error"],Bs=function(){function e(e){function t(){return o.monitorCurrentTime_()}function n(){return o.monitorCurrentTime_()}function i(){return o.techWaiting_()}function r(){return o.cancelTimer_()}function s(e){["main","audio"].forEach((function(t){u[t+"SegmentLoader_"][e]("appended",o.seekingAppendCheck_)}))}var o=this,u=(this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Gr("PlaybackWatcher"),this.logger_("initialize"),this.masterPlaylistController_),l=["main","subtitle","audio"],c={};l.forEach((function(e){c[e]={reset:function(){return o.resetSegmentDownloads_(e)},updateend:function(){return o.checkSegmentDownloads_(e)}},u[e+"SegmentLoader_"].on("appendsdone",c[e].updateend),u[e+"SegmentLoader_"].on("playlistupdate",c[e].reset),o.tech_.on(["seeked","seeking"],c[e].reset)})),this.seekingAppendCheck_=function(){o.fixesBadSeeks_()&&(o.consecutiveUpdates=0,o.lastRecordedTime=o.tech_.currentTime(),s("off"))},this.clearSeekingAppendCheck_=function(){return s("off")},this.watchForBadSeeking_=function(){o.clearSeekingAppendCheck_(),s("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",i),this.tech_.on(Us,r),this.tech_.on("canplay",n),this.tech_.one("play",t),this.dispose=function(){o.clearSeekingAppendCheck_(),o.logger_("dispose"),o.tech_.off("waiting",i),o.tech_.off(Us,r),o.tech_.off("canplay",n),o.tech_.off("play",t),o.tech_.off("seeking",o.watchForBadSeeking_),o.tech_.off("seeked",o.clearSeekingAppendCheck_),l.forEach((function(e){u[e+"SegmentLoader_"].off("appendsdone",c[e].updateend),u[e+"SegmentLoader_"].off("playlistupdate",c[e].reset),o.tech_.off(["seeked","seeking"],c[e].reset)})),o.checkCurrentTimeTimeout_&&a.a.clearTimeout(o.checkCurrentTimeTimeout_),o.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&a.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=a.a.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];0<this[e+"StalledDownloads_"]&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1}(this[e+"Buffered_"],i);this[e+"Buffered_"]=i,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Ri(i)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){var e,t;if(!this.tech_.paused()&&!this.tech_.seeking())return e=this.tech_.currentTime(),t=this.tech_.buffered(),this.lastRecordedTime===e&&(!t.length||e+Xr>=t.end(t.length-1))?this.techWaiting_():void(5<=this.consecutiveUpdates&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e))},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),void 0!==(e=this.beforeSeekableWindow_(t,n)?(i=t.start(0))+(i===t.end(0)?0:Xr):e))return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+Ni(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var i=this.masterPlaylistController_.sourceUpdater_,r=(t=this.tech_.buffered(),i.audioBuffer?i.audioBuffered():null),a=(i=i.videoBuffer?i.videoBuffered():null,this.media()),s=a.partTargetDuration||2*(a.targetDuration-zr),o=[r,i],u=0;u<o.length;u++)if(o[u]&&ji(o[u],n)<s)return!1;return a=Di(t,n),0!==a.length&&(e=a.start(0)+Xr,this.logger_("Buffered region starts ("+a.start(0)+") just beyond seek point ("+n+"). Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0)},t.waiting_=function(){var e,t;this.techWaiting_()||(e=this.tech_.currentTime(),t=this.tech_.buffered(),(t=Li(t,e)).length&&e+3<=t.end(0)&&(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+t.start(0)+" -> "+t.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})))},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t))return e=e.end(e.length-1),this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+e),this.cancelTimer_(),this.tech_.setCurrentTime(e),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0;e=this.tech_.vhs.masterPlaylistController_.sourceUpdater_;var n=this.tech_.buffered();return this.videoUnderflow_({audioBuffered:e.audioBuffered(),videoBuffered:e.videoBuffered(),currentTime:t})?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0):(e=Di(n,t),0<e.length&&(n=e.start(0)-t,this.logger_("Stopped at "+t+", setting timer for "+n+", seeking to "+e.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*n,t),!0))},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+Xr;return(r=!n.endList&&i?e.end(e.length-1)+3*n.targetDuration:r)<t},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&0<e.start(0)&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t,n,i,r=e.videoBuffered,a=e.audioBuffered;e=e.currentTime;if(r)return r.length&&a.length?(n=Li(r,e-3),i=Li(r,e),(a=Li(a,e)).length&&!i.length&&n.length&&(t={start:n.end(0),end:a.end(0)})):Di(r,e).length||(t=this.gapFromVideoUnderflow_(r,e)),!!t&&(this.logger_("Encountered a gap in video from "+t.start+" to "+t.end+". Seeking to current time "+e),!0)},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime();t=Di(t,n);this.cancelTimer_(),0!==t.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",t.start(0)),this.tech_.setCurrentTime(t.start(0)+zr),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var n=function(e){if(e.length<2)return Ai.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return Ai.createTimeRanges(t)}(e),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(t-r<4&&2<t-r)return{start:r,end:a}}return null},e}(),Fs={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Vs={PlaylistLoader:ca,Playlist:na,utils:re,STANDARD_PLAYLIST_SELECTOR:Rr,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(na.isEnabled);return Ha(t,Dr),t.filter((function(t){return!!Fa(e.playlists.master,t).video}))[0]||null},lastBandwidthSelector:Rr,movingAverageBandwidthSelector:function(e){var t=-1,n=-1;if(e<0||1<e)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&a.a.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),0<this.systemBandwidth&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),Nr(this.playlists.master,t,parseInt(Lr(this.tech_.el(),"width"),10)*i,parseInt(Lr(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Dr,comparePlaylistResolution:function(e,t){var n,i;return(n=(n=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width?e.attributes.RESOLUTION.width:n)||a.a.Number.MAX_VALUE)===(i=(i=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width?t.attributes.RESOLUTION.width:i)||a.a.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},xhr:rr()},qs=(Object.keys(ya).forEach((function(e){Object.defineProperty(Vs,e,{get:function(){return Ai.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),ya[e]},set:function(t){Ai.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?Ai.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):ya[e]=t}})})),"videojs-vhs");Vs.canPlaySource=function(){return Ai.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")},Vs.supportsNativeHls=function(){if(!s.a||!s.a.createElement)return!1;var e=s.a.createElement("video");return!!Ai.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),Vs.supportsNativeDash=!!(s.a&&s.a.createElement&&Ai.getTech("Html5").isSupported())&&/maybe|probably/i.test(s.a.createElement("video").canPlayType("application/dash+xml")),Vs.supportsTypeNatively=function(e){return"hls"===e?Vs.supportsNativeHls:"dash"===e&&Vs.supportsNativeDash},Vs.isSupported=function(){return Ai.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Hs=function(e){function t(t,n,i){var r=e.call(this,n,Ai.mergeOptions(i.hls,i.vhs))||this;if(i.hls&&Object.keys(i.hls).length&&Ai.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"==typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=Gr("VhsHandler"),n.options_&&n.options_.playerId&&((i=Ai(n.options_.playerId)).hasOwnProperty("hls")||Object.defineProperty(i,"hls",{get:function(){return Ai.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),l()(r)},configurable:!0}),i.hasOwnProperty("vhs")||Object.defineProperty(i,"vhs",{get:function(){return Ai.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),l()(r)},configurable:!0}),i.hasOwnProperty("dash")||Object.defineProperty(i,"dash",{get:function(){return Ai.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),l()(r)},configurable:!0}),r.player_=i),r.tech_=n,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(s.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(e){var t=s.a.fullscreenElement||s.a.webkitFullscreenElement||s.a.mozFullScreenElement||s.a.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}c()(t,e);var n=t.prototype;return n.setOptions_=function(){var e,t=this;this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage&&((e=rs())&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))),"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=ya.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===ya.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach((function(e){void 0!==t.source_[e]&&(t.options_[e]=t.source_[e])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;e&&(this.setOptions_(),this.options_.src=0===(e=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e,this.options_.tech=this.tech_,this.options_.externVhs=Vs,this.options_.sourceType=Object(y.a)(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&Ai.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Ms(this.options_),e=Ai.mergeOptions({liveRangeSafeTimeDelta:Xr},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_}),this.playbackWatcher_=new Bs(e),this.masterPlaylistController_.on("error",(function(){var e=Ai.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)})),t=this.options_.experimentalBufferBasedABR?Vs.movingAverageBandwidthSelector(.55):Vs.STANDARD_PLAYLIST_SELECTOR,this.masterPlaylistController_.selectPlaylist=(this.selectPlaylist||t).bind(this),this.masterPlaylistController_.selectInitialPlaylist=Vs.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=a.a.navigator.connection||a.a.navigator.mozConnection||a.a.navigator.webkitConnection;return this.options_.useNetworkInformationApi&&t?1e7<=(t=1e3*t.downlink*1e3)&&1e7<=e?Math.max(e,t):t:e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=0<this.throughput?1/this.throughput:0;return Math.floor(1/(e+t))},set:function(){Ai.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Ri(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Ri(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){if(n.options_.useBandwidthFromLocalStorage){var e={bandwidth:n.bandwidth,throughput:Math.round(n.throughput)};if(a.a.localStorage){var t=(t=rs())?Ai.mergeOptions(t,e):e;try{a.a.localStorage.setItem(qs,JSON.stringify(t))}catch(e){return}}}})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var e;(e=n).representations=function(){var t=e.masterPlaylistController_.master();t=ta(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return t?t.filter((function(e){return!Gi(e)})).map((function(t,n){return new Za(e,t,t.id)})):[]}})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=a.a.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_)))},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),ns({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;t=is({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){var n;"output-restricted"===t.status&&(t=e.masterPlaylistController_.master())&&t.playlists&&(n=[],t.playlists.forEach((function(e){e&&e.attributes&&e.attributes.RESOLUTION&&720<=e.attributes.RESOLUTION.height&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,n.push(e))})),n.length&&((t=Ai.log).warn.apply(t,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(n)),e.masterPlaylistController_.fastQualityChange_()))})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==Ai.browser.IE_VERSION&&t?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=Ai.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t,n;t=e.qualityLevels_,(n=e).representations().forEach((function(e){t.addQualityLevel(e)})),ts(t,n.playlists)})),this.playlists.on("mediachange",(function(){ts(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":"2.16.3","mux.js":"6.0.1","mpd-parser":"0.22.1","m3u8-parser":"4.8.0","aes-decrypter":"3.1.3"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return bs.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&a.a.URL.revokeObjectURL&&(a.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return hr({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),pr({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(Ai.getComponent("Component")),Ws={name:"videojs-http-streaming",VERSION:"2.16.3",canHandleSource:function(e,t){return t=Ai.mergeOptions(Ai.options,t=void 0===t?{}:t),Ws.canPlayType(e.type,t)},handleSource:function(e,t,n){return n=Ai.mergeOptions(Ai.options,n=void 0===n?{}:n),t.vhs=new Hs(e,t,n),Ai.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return Ai.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=rr(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){return e=Object(y.a)(e),e?(t=Ws.getOverrideNative(t),!Vs.supportsTypeNatively(e)||t?"maybe":""):""},getOverrideNative:function(e){e=e=void 0===e?{}:e;var t=e.vhs,n=(e=e.hls,!(Ai.browser.IS_ANY_SAFARI||Ai.browser.IS_IOS));t=(void 0===t?{}:t).overrideNative,e=(void 0===e?{}:e).overrideNative;return void 0!==e&&e||(void 0===t?n:t)}};Object(v.c)("avc1.4d400d,mp4a.40.2")&&Ai.getTech("Html5").registerSourceHandler(Ws,0),Ai.VhsHandler=Hs,Object.defineProperty(Ai,"HlsHandler",{get:function(){return Ai.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),Hs},configurable:!0}),Ai.VhsSourceHandler=Ws,Object.defineProperty(Ai,"HlsSourceHandler",{get:function(){return Ai.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),Ws},configurable:!0}),Ai.Vhs=Vs,Object.defineProperty(Ai,"Hls",{get:function(){return Ai.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Vs},configurable:!0}),Ai.use||(Ai.registerComponent("Hls",Vs),Ai.registerComponent("Vhs",Vs)),Ai.options.vhs=Ai.options.vhs||{},Ai.options.hls=Ai.options.hls||{},Ai.getPlugin&&Ai.getPlugin("reloadSourceOnError")||(Ai.registerPlugin||Ai.plugin)("reloadSourceOnError",(function(e){es(this,e)})),t.default=Ai}.call(this,n("c8ba"))},f183:function(e,t,n){function i(e){o(e,c,{value:{objectID:"O"+ ++d,weakData:{}}})}var r=n("d012"),a=n("861d"),s=n("5135"),o=n("9bf2").f,u=n("90e3"),l=n("bb2f"),c=u("meta"),d=0,h=Object.isExtensible||function(){return!0},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,c)){if(!h(e))return"F";if(!t)return"E";i(e)}return e[c].objectID},getWeakData:function(e,t){if(!s(e,c)){if(!h(e))return!0;if(!t)return!1;i(e)}return e[c].weakData},onFreeze:function(e){return l&&p.REQUIRED&&h(e)&&!s(e,c)&&i(e),e}};r[c]=!0},f251:function(e,t,n){e.exports={menuBg:"#fff",menuText:"#162b64",menuActiveText:"#435ebe"}},f8a8:function(e,t,n){"use strict";function i(e){return"string"==typeof e?Object(u.h)(e):e}function r(e,t,n){void 0===n&&(n=!1),t=l(t),e=Object(u.k)(e);var i=[];if(!t.length)return i;for(var a=0;a<e.length;){var s=(e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3])>>>0,o=e.subarray(a+4,a+8);if(0==s)break;if(s=a+s,s>e.length){if(n)break;s=e.length}var c=e.subarray(a+8,s);Object(u.a)(o,t[0])&&(1===t.length?i.push(c):i.push.apply(i,r(c,t.slice(1),n))),a=s}return i}function a(e,t,n){if(n>=t.length)return t.length;var i=p(t,n,!1);if(Object(u.a)(e.bytes,i.bytes))return n;var r=p(t,n+i.length);return a(e,t,n+r.length+r.value+i.length)}function s(e,t){n=t,t=Array.isArray(n)?n.map((function(e){return f(e)})):[f(n)],e=Object(u.k)(e);var n,i=[];if(!t.length)return i;for(var r=0;r<e.length;){var o=p(e,r,!1),l=p(e,r+o.length),c=r+o.length+l.length,d=(127===l.value&&(l.value=a(o,e,c),l.value!==e.length&&(l.value-=c)),c+l.value>e.length?e.length:c+l.value);c=e.subarray(c,d);Object(u.a)(t[0],o.bytes)&&(1===t.length?i.push(c):i=i.concat(s(c,t.slice(1)))),r+=o.length+l.length+c.length}return i}function o(e,t,n,i){void 0===i&&(i=1/0),e=Object(u.k)(e),n=[].concat(n);for(var r,a=0,s=0;a<e.length&&(s<i||r);){var o=void 0;if(Object(u.a)(e.subarray(a),g)?o=4:Object(u.a)(e.subarray(a),v)&&(o=3),o){if(s++,r)return _(e.subarray(r,a));var l=void 0;"h264"===t?l=31&e[a+o]:"h265"===t&&(l=e[a+o]>>1&63),-1!==n.indexOf(l)&&(r=a+o),a+=o+("h264"===t?1:2)}else a++}return e.subarray(0,0)}n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return w}));var u=n("de66"),l=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return Array.isArray(e)?e.map(i):[i(e)]}),c={EBML:Object(u.k)([26,69,223,163]),DocType:Object(u.k)([66,130]),Segment:Object(u.k)([24,83,128,103]),SegmentInfo:Object(u.k)([21,73,169,102]),Tracks:Object(u.k)([22,84,174,107]),Track:Object(u.k)([174]),TrackNumber:Object(u.k)([215]),DefaultDuration:Object(u.k)([35,227,131]),TrackEntry:Object(u.k)([174]),TrackType:Object(u.k)([131]),FlagDefault:Object(u.k)([136]),CodecID:Object(u.k)([134]),CodecPrivate:Object(u.k)([99,162]),VideoTrack:Object(u.k)([224]),AudioTrack:Object(u.k)([225]),Cluster:Object(u.k)([31,67,182,117]),Timestamp:Object(u.k)([231]),TimestampScale:Object(u.k)([42,215,177]),BlockGroup:Object(u.k)([160]),BlockDuration:Object(u.k)([155]),Block:Object(u.k)([161]),SimpleBlock:Object(u.k)([163])},d=[128,64,32,16,8,4,2,1],h=function(e){for(var t=1,n=0;n<d.length&&!(e&d[n]);n++)t++;return t},p=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=h(e[t]),a=e.subarray(t,t+r);return n&&((a=Array.prototype.slice.call(e,t,t+r))[0]^=d[r-1]),{length:r,value:Object(u.b)(a,{signed:i}),bytes:a}},f=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(e):"number"==typeof t?Object(u.f)(t):t},m=n("321f"),g=Object(u.k)([0,0,0,1]),v=Object(u.k)([0,0,1]),y=Object(u.k)([0,0,3]),_=function(e){for(var t=[],n=1;n<e.length-2;)Object(u.a)(e.subarray(n,n+3),y)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,r=new Uint8Array(i),a=0;for(n=0;n<i;a++,n++)a===t[0]&&(a++,t.shift()),r[n]=e[a];return r},b={webm:Object(u.k)([119,101,98,109]),matroska:Object(u.k)([109,97,116,114,111,115,107,97]),flac:Object(u.k)([102,76,97,67]),ogg:Object(u.k)([79,103,103,83]),ac3:Object(u.k)([11,119]),riff:Object(u.k)([82,73,70,70]),avi:Object(u.k)([65,86,73]),wav:Object(u.k)([87,65,86,69]),"3gp":Object(u.k)([102,116,121,112,51,103]),mp4:Object(u.k)([102,116,121,112]),fmp4:Object(u.k)([115,116,121,112]),mov:Object(u.k)([102,116,121,112,113,116]),moov:Object(u.k)([109,111,111,118]),moof:Object(u.k)([109,111,111,102])},T={aac:function(e){var t=Object(m.a)(e);return Object(u.a)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Object(m.a)(e);return Object(u.a)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){return e=s(e,[c.EBML,c.DocType])[0],Object(u.a)(e,b.webm)},mkv:function(e){return e=s(e,[c.EBML,c.DocType])[0],Object(u.a)(e,b.matroska)},mp4:function(e){return!T["3gp"](e)&&!T.mov(e)&&(!(!Object(u.a)(e,b.mp4,{offset:4})&&!Object(u.a)(e,b.fmp4,{offset:4}))||!(!Object(u.a)(e,b.moof,{offset:4})&&!Object(u.a)(e,b.moov,{offset:4}))||void 0)},mov:function(e){return Object(u.a)(e,b.mov,{offset:4})},"3gp":function(e){return Object(u.a)(e,b["3gp"],{offset:4})},ac3:function(e){var t=Object(m.a)(e);return Object(u.a)(e,b.ac3,{offset:t})},ts:function(e){if(e.length<189&&1<=e.length)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Object(m.a)(e);return Object(u.a)(e,b.flac,{offset:t})},ogg:function(e){return Object(u.a)(e,b.ogg)},avi:function(e){return Object(u.a)(e,b.riff)&&Object(u.a)(e,b.avi,{offset:8})},wav:function(e){return Object(u.a)(e,b.riff)&&Object(u.a)(e,b.wav,{offset:8})},h264:function(e){return o(e,"h264",7,3).length},h265:function(e){return o(e,"h265",[32,33],3).length}},S=Object.keys(T).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]),E=(S.forEach((function(e){var t=T[e];T[e]=function(e){return t(Object(u.k)(e))}})),T),k=function(e){e=Object(u.k)(e);for(var t=0;t<S.length;t++){var n=S[t];if(E[n](e))return n}return""},w=function(e){return 0<r(e,["moof"]).length}},f97d:function(e,t){var n={"":!0,up:!0};function i(e){return"number"==typeof e&&0<=e&&e<=100}e.exports=function(){var e=100,t=3,r=0,a=100,s=0,o=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a},set:function(e){if(!i(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!i(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!i(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!i(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return u},set:function(e){e="string"==typeof(e=e)&&!!n[e.toLowerCase()]&&e.toLowerCase(),!1!==e&&(u=e)}}})}},fc3c:function(e,t,n){"use strict";n("139b")},ffdf:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var i=n("be09"),r=n.n(i),a=function(t){return r.a.atob?r.a.atob(t):e.from(t,"base64").toString("binary")};function s(e){for(var t=a(e),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}}).call(this,n("b639").Buffer)}}]);