/*! JW Player version 8.26.5 Copyright (c) 2022, JW Player, All Rights Reserved This source code and its use and distribution is subject to the terms and conditions of the applicable license agreement. https://www.jwplayer.com/tos/ This product includes portions of other software. For the full text of licenses, see https://ssl.p.jwpcdn.com/player/v/8.26.5/notice.txt */ (self.webpackChunkjwplayer=self.webpackChunkjwplayer||[]).push([[371],{8377:function(e,t,n){"use strict";n.d(t,{M:function(){return i},_:function(){return r}});var i=function(e,t){var n=e.kind||"cc";return e.default||e.defaulttrack?"default":e._id||e.file||n+t},r=function(e,t){var n=e.label||e.name||e.language;return n||(n="Unknown CC",(t+=1)>1&&(n+=" ["+t+"]")),{label:n,unknownCount:t}}},6103:function(e,t,n){"use strict";n.d(t,{VS:function(){return p},xl:function(){return h}});var i=n(7477),r=n(2894),a=n(6886),o=n(7941),s=n(7387),u=n(2957),l=n(4446),c=function(e){throw new l.rG(null,e)};var d=function(e){return e.map((function(e){return new i.Z(e.begin,e.end,e.text)}))},f=function(e,t,i,a){var f,h,p=e.responseXML?e.responseXML.firstChild:null;if(p)for("xml"===(0,o.r1)(p)&&(p=p.nextSibling);p&&p.nodeType===p.COMMENT_NODE;)p=p.nextSibling;try{if(p&&"tt"===(0,o.r1)(p)){if(!e.responseXML)throw new Error("Empty XML response");f=function(e){e||c(306007);var t=[],n=e.getElementsByTagName("p"),i=30,r=e.getElementsByTagName("tt");if(null!=r&&r[0]){var a=parseFloat(r[0].getAttribute("ttp:frameRate")||"");isNaN(a)||(i=a)}n||c(306005),n.length||(n=e.getElementsByTagName("tt:p")).length||(n=e.getElementsByTagName("tts:p"));for(var o=0;o\s+<").replace(/(<\/?)tts?:/g,"$1").replace(//g,"\r\n");if(p){var g=s.getAttribute("begin")||"",m=s.getAttribute("dur")||"",v=s.getAttribute("end")||"",y={begin:(0,u.m9)(g,i),text:p};v?y.end=(0,u.m9)(v,i):m&&(y.end=(y.begin||0)+(0,u.m9)(m,i)),t.push(y)}}return t.length||c(306005),t}(e.responseXML),h=d(f),delete t.xhr,i(h)}else{var g=e.responseText;g.indexOf("WEBVTT")>=0?n.e(347).then(function(e){return n(2776).default}.bind(null,n)).catch((0,r.Jt)(301131)).then((function(e){var n=new e(window);h=[],n.oncue=function(e){h.push(e)},n.onflush=function(){delete t.xhr,i(h)},n.parse(g)})).catch((function(e){delete t.xhr,a((0,l.Mm)(null,l.Y7,e))})):(f=(0,s.Z)(g),h=d(f),delete t.xhr,i(h))}}catch(e){delete t.xhr,a((0,l.Mm)(null,l.Y7,e))}},h=function(e,t,n){e.xhr=(0,a.h)(e.file,(function(i){f(i,e,t,n)}),(function(e,t,i,r){n((0,l.l9)(r,l.Y7))}))},p=function(e){e&&e.forEach((function(e){var t=e.xhr;t&&(t.onload=null,t.onreadystatechange=null,t.onerror=null,"abort"in t&&t.abort()),delete e.xhr}))}},7387:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(2957),r=function(e){var t={},n=e.split("\r\n");1===n.length&&(n=e.split("\n"));var r=1;if(n[0].indexOf(" --\x3e ")>0&&(r=0),n.length>r+1&&n[r+1]){var a=n[r],o=a.indexOf(" --\x3e ");o>0&&(t.begin=(0,i.m9)(a.substr(0,o)),t.end=(0,i.m9)(a.substr(o+5)),t.text=n.slice(r+1).join("\r\n"))}return t};function a(e){var t=[],n=(e=(0,i.fy)(e)).split("\r\n\r\n");1===n.length&&(n=e.split("\n\n"));for(var a=0;a100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}}),Object.defineProperty(a,"size",{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}}),Object.defineProperty(a,"align",{enumerable:!0,get:function(){return y},set:function(e){var t=i(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");y=t,this.hasBeenReset=!0}}),a.displayState=void 0}).prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)}}t.Z=n},2728:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var i=n(1643),r=n(6042);function a(e,t){var n,a=t;return{start:function(){this.stop(),n=window.setInterval((function(){var t=e.getBandwidthEstimate();(0,r.qh)(t)&&(a=t,e.trigger(i.qG,{bandwidthEstimate:a}))}),1e3)},stop:function(){clearInterval(n)},getEstimate:function(){return a}}}},548:function(e,t,n){"use strict";n.d(t,{Zv:function(){return i},i0:function(){return a},pR:function(){return r}});var i=1,r=i+1,a=25},4506:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var i=function(e){return{bitrate:e.bitrate,label:e.label,width:e.width,height:e.height}}},3328:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var i=n(6103),r=n(8377),a={TIT2:"title",TT2:"title",WXXX:"url",TPE1:"artist",TP1:"artist",TALB:"album",TAL:"album"},o=function(e,t){for(var n,i,r,a=e.length,o="",s=t||0;s>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o+=String.fromCharCode(n);break;case 12:case 13:i=e[s++],o+=String.fromCharCode((31&n)<<6|63&i);break;case 14:i=e[s++],r=e[s++],o+=String.fromCharCode((15&n)<<12|(63&i)<<6|(63&r)<<0)}return o},s=function(e){var t=function(e){for(var t="0x",n=0;n>1|(8323072&t)>>2|(2130706432&t)>>3},u=function(e){var t={};if(!("value"in e)&&"data"in e&&e.data instanceof ArrayBuffer){var n=new Uint8Array(e.data),i=n.length;e={value:{key:"",data:""}};for(var r=10;r<14&&r0){var f=o(n.subarray(u,u+=c),0);if("PRIV"===e.value.key){if("com.apple.streaming.transportStreamTimestamp"===f){var h=1&s(n.subarray(u,u+=4)),p=s(n.subarray(u,u+=4))+(h?4294967296:0);e.value.data=p}else e.value.data=o(n,u+1);e.value.info=f}else e.value.info=f,e.value.data=o(n,u+1)}else{var g=n[u];e.value.data=1===g||2===g?function(e,t){for(var n=e.length-1,i="",r=t||0;r=0&&r[a].startTime>t.startTime;a--)n.unshift(r[a]),e.removeCue(r[a]);try{e.addCue(t),n.forEach((function(t){return e.addCue(t)}))}catch(e){console.error(e)}e.mode=i}(t,i)}else try{t.addCue(n)}catch(e){console.error(e)}},v=function(e){var t=this._textTracks,n=this._tracksById;if(e.length>t.length)return!0;for(var i=0;i0)for(var h=0;h=400&&e<600?e:6};function a(e,t,n){var a=e+1e3,o=i.ul;return t>0?(403===t&&(o=i.H4),a+=r(t)):"http:"===(""+n).substring(0,5)&&"https:"===document.location.protocol?a+=12:0===t&&(a+=11),{code:a,key:o}}},5099:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var i=function(e,t,n){var i=new Error(n);return i.name=e,i.code=t,i};function r(e){return new Promise((function(t,n){if(e.paused)return n(i("NotAllowedError",0,"play() failed."));var r,a=function(e){if(r(),"playing"!==e.type){var a='The play() request was interrupted by a "'+e.type+'" event.';return"error"===e.type?n(i("NotSupportedError",9,a)):n(i("AbortError",20,a))}t()},o=function(){e.addEventListener("playing",a),e.addEventListener("abort",a),e.addEventListener("error",a),e.addEventListener("pause",a)};r=function(){e.removeEventListener("play",o),e.removeEventListener("playing",a),e.removeEventListener("pause",a),e.removeEventListener("abort",a),e.removeEventListener("error",a)},e.addEventListener("play",o)}))}},5256:function(e,t,n){"use strict";n.d(t,{_T:function(){return i},c3:function(){return s},ji:function(){return a},s_:function(){return u}});var i=function(e){return Math.floor(e/1e3)},r=function(e,t){var n=null;if(t&&e){var r=Object.keys(e);if(r.length){var a=function(e,t){var n,i=null,r=1/0;return e.forEach((function(e){(n=Math.abs(parseFloat(e)-t))=Math.max(i(t),0)},a=function(e,t){var n="VOD";return e===1/0?n="LIVE":e<0&&(n=r(e,i(t))?"DVR":"LIVE"),n}},3949:function(e,t,n){"use strict";var i=n(8348),r=n(974),a=n(9974),o={container:null,volume:function(e){this.video.volume=Math.min(Math.max(0,e/100),1)},mute:function(e){this.video.muted=Boolean(e),this.video.muted||this.video.removeAttribute("muted")},resize:function(e,t,n){var a=this.video,o=a.videoWidth,s=a.videoHeight;if(e&&t&&o&&s){var u={objectFit:"",width:"",height:""},l=e/t,c=o/s;if("uniform"===n)(l>c?e-e/(l/c):t-t/(c/l))<6&&(u.objectFit="fill",n="exactfit");if(i.Browser.ie||i.OS.iOS&&(i.OS.version.major||0)<9||i.Browser.androidNative)if("uniform"!==n){u.objectFit="contain";var d=1,f=1;"none"===n?d=f=l>c?Math.ceil(100*s/t)/100:Math.ceil(100*o/e)/100:"fill"===n?d=f=l>c?l/c:c/l:"exactfit"===n&&(l>c?(d=l/c,f=1):(d=1,f=c/l)),(0,r.vs)(a,"matrix("+d.toFixed(2)+", 0, 0, "+f.toFixed(2)+", 0, 0)")}else u.top=u.left=u.margin="",(0,r.vs)(a,"");(0,r.oB)(a,u)}},getContainer:function(){return this.container},setContainer:function(e){this.container=e,this.video.parentNode!==e&&e.appendChild(this.video)},removeFromContainer:function(){var e=this.container,t=this.video;this.container=null,e&&e===t.parentNode&&e.removeChild(t)},remove:function(){this.stop(),this.destroy(),this.removeFromContainer()},atEdgeOfLiveStream:function(){if(!this.isLive())return!1;return(0,a.Z)(this.video.buffered)-this.video.currentTime<=2}};t.Z=o},186:function(e,t){"use strict";t.Z={_eventsOn:function(){},_eventsOff:function(){},attachMedia:function(){this._eventsOn()},detachMedia:function(){return this._eventsOff()}}},8702:function(e,t,n){"use strict";var i=n(1643),r=n(1261),a={canplay:function(){this.renderNatively&&this.setTextTracks(this.video.textTracks),this.trigger(i.Jl)},play:function(){this.stallTime=-1,this.video.paused||this.state===i._5||this.state===i.r0||this.setState(i.ik)},loadedmetadata:function(){var e={metadataType:"media",duration:this.getDuration(),height:this.video.videoHeight,width:this.video.videoWidth,seekRange:this.getSeekRange()},t=this.drmUsed;t&&(e.drm=t),this.trigger(i.rx,e)},timeupdate:function(){var e=this.video.currentTime,t=this.getCurrentTime(),n=this.getDuration();if(!isNaN(n)){this.seeking||this.video.paused||this.state!==i.nQ&&this.state!==i.ik||this.stallTime===e||(this.stallTime=-1,this.setState(i.r0),this.trigger(i.Gj));var r={position:t,duration:n,currentTime:e,seekRange:this.getSeekRange(),metadata:{currentTime:e}},a=this.getLiveLatency();if(null!==a&&(r.latency=a,this.getTargetLatency)){var o=this.getTargetLatency();null!==o&&(r.targetLatency=o)}(this.state===i.r0||this.seeking&&this.state!==i.bc)&&this.trigger(i.R2,r)}},click:function(e){this.trigger(i.ot,e)},volumechange:function(){var e=this.video;this.trigger(i.yH,{volume:Math.round(100*e.volume)}),this.trigger(i.gy,{mute:e.muted})},seeking:function(){if(this.state===i.ik){var e=this.video.buffered.length?this.video.buffered.start(0):-1;if(this.video.currentTime===e)return}else if(this.state===i.bc)return;this.seeking=!0},seeked:function(){this.seeking&&(this.seeking=!1,this.trigger(i.aQ))},playing:function(){-1===this.stallTime&&this.setState(i.r0),this.trigger(i.Gj)},pause:function(){this.state!==i.xQ&&(this.video.ended||this.video.error||this.video.currentTime!==this.video.duration&&this.setState(i._5))},progress:function(){var e=this.getDuration();if(!(e<=0||e===1/0)){var t=this.video.buffered;if(t&&0!==t.length){var n=(0,r.v)(t.end(t.length-1)/e,0,1);this.trigger(i.uT,{bufferPercent:100*n,position:this.getCurrentTime(),duration:e,currentTime:this.video.currentTime,seekRange:this.getSeekRange()})}}},ratechange:function(){this.trigger(i.TJ,{playbackRate:this.video.playbackRate})},ended:function(){this.state!==i.bc&&this.state!==i.xQ&&this.trigger(i.Ms)}};t.Z=a},9974:function(e,t,n){"use strict";function i(e){return e&&e.length?e.end(e.length-1):0}n.d(t,{Z:function(){return i}})},9738:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Me}});var i=n(7462),r=n(4506),a=n(548),o=n(4578),s=n(7477),u=n(8348);function l(e){this._service=e}var c=function e(t,n,i){if(t.payload&&t.startTime===n&&i.push(t.payload),t.nestedCues)for(var r=0;r1&&this.shakaPlayer.trickPlay(e)},n.seek=function(e){if("LIVE"!==this.streamType){var t=this.shakaPlayer.seekRange().end;this.videoTag.currentTime=e<0?t+e:e}},n.getPlaybackRate=function(){return this.shakaPlayer?this.shakaPlayer.getPlaybackRate()||1:this.videoTag.playbackRate},n.isLive=function(){return this.shakaPlayer.isLive()},n.isDvr=function(){return"DVR"===this.streamType},n.getCurrentTime=function(){var e=this.videoTag.currentTime;return this.shakaPlayer.isLive()&&"DVR"===this.streamType&&(e-=this.shakaPlayer.seekRange().end),e},n.getDuration=function(){var e=this.loadedItem,t=this.shakaPlayer,n=this.videoTag.duration;if(!e)return n;var i=e.minDvrWindow;if(this.shakaPlayer.isLive()){var r=t.seekRange();n=r.start-r.end,this.tweakedAvailabilityWindow||"hls"!==this.loadedItem.sources[0].type||(t.getManifest().presentationTimeline.setSegmentAvailabilityDuration(Math.abs(n)),this.tweakedAvailabilityWindow=!0),n=(0,p.s)(n,i)?n:1/0}return this.streamType=(0,p.v)(n,i),n},n.getLoadedItem=function(){return this.loadedItem},n.getSeekRange=function(){return this.shakaPlayer.seekRange()},n.getVariantHistory=function(e){return e=e||0,this.shakaPlayer.getStats().switchHistory.filter((function(t){return"variant"===t.type&&t.timestamp>e}))},n.setLoadedItem=function(e){this.loadedItem=e,this.streamType="VOD"},n.setDisplayText=function(e){this.displayText=e},n.unload=function(){this.loadedItem=null,this.shakaPlayer.unload()},n.destroy=function(){return window.VTTCue=s.Z,this.loadedItem=null,this.shakaPlayer.destroy()},t}(d.ZP),y=n(1918),b=n(5256),T=n(1643),w=n(974),x=n(8518),S=n(6886),E=n(6528),k=n(8702),A=n(3949),I=n(186),C=n(3328),M=n(5099),R=n(2728),D=n(4446),N=n(9601),_=24e4,L=241e3,P=244e3,O=246e3,j=241005,U=h().util.Error,B=U.Severity.RECOVERABLE,F=U.Category,V=F.NETWORK,H=F.MEDIA,q=F.MANIFEST,K=F.PLAYER,G=F.DRM,z=U.Code,W=z.UNSUPPORTED_SCHEME,X=z.BAD_HTTP_STATUS,Y=z.HTTP_ERROR,$=z.TIMEOUT,Q=z.MP4_SIDX_WRONG_BOX_TYPE,J=z.VIDEO_ERROR,Z=z.DASH_INVALID_XML,ee=z.CONTENT_UNSUPPORTED_BY_BROWSER,te=z.RESTRICTIONS_CANNOT_BE_MET,ne=z.REQUEST_FILTER_ERROR,ie=z.RESPONSE_FILTER_ERROR,re=z.NO_RECOGNIZED_KEY_SYSTEMS,ae=z.REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE,oe=z.FAILED_TO_CREATE_CDM,se=z.FAILED_TO_ATTACH_TO_VIDEO,ue=z.INVALID_SERVER_CERTIFICATE,le=z.FAILED_TO_CREATE_SESSION,ce=z.FAILED_TO_GENERATE_LICENSE_REQUEST,de=z.LICENSE_REQUEST_FAILED,fe=z.LICENSE_RESPONSE_REJECTED,he=z.ENCRYPTED_CONTENT_WITHOUT_DRM_INFO,pe=z.NO_LICENSE_SERVER_GIVEN,ge=z.OFFLINE_SESSION_REMOVED,me=z.EXPIRED,ve=z.SERVER_CERTIFICATE_REQUIRED,ye=z.INIT_DATA_TRANSFORM_ERROR,be=z.SERVER_CERTIFICATE_REQUEST_FAILED,Te=new Map([[$,241001],[Q,244604],[Z,242601],[te,242635],[ne,j],[ie,j],[re,O],[ae,246001],[oe,246002],[se,246003],[ue,246004],[le,246005],[ce,246006],[de,246007],[fe,246008],[he,246010],[pe,246012],[ge,246013],[me,246014],[ve,246015],[ye,246016],[be,246017]]),we=n(4742),xe=function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)},Se=(m="warn",we.Z.debug?console[m].bind(console):function(){}),Ee=function(e){var t=e.getAllResponseHeaders().trim().split("\r\n"),n={};return t.forEach((function(e){var t=e.split(": ");n[t[0].toLowerCase()]=t.slice(1).join(": ")})),n},ke=function(e){return function(t,n,i,r,a){void 0===a&&(a=function(){});var o=new XMLHttpRequest,s=Date.now(),u=0,l=new Promise((function(l,c){o.open(n.method,t,!0);try{e(o,t)}catch(e){Se(e)}o.responseType="arraybuffer",o.timeout=n.retryParameters.timeout,o.withCredentials=n.allowCrossSiteCredentials,o.onabort=function(){c(new(h().util.Error)(h().util.Error.Severity.RECOVERABLE,h().util.Error.Category.NETWORK,h().util.Error.Code.OPERATION_ABORTED,t,i))};var d=!1;for(var f in o.onreadystatechange=function(){if(2===o.readyState&&!d){var e=Ee(o);a(e),d=!0}},o.onload=function(){var e=Ee(o),n=o.response;try{var r=function(e,t,n,i,r,a){if(n>=200&&n<=299&&202!==n)return{uri:r||i,originalUri:i,data:t,status:n,headers:e,fromCache:Boolean(e["x-shaka-from-cache"])};var o=null;try{o=h().util.StringUtils.fromBytesAutoDetect(t)}catch(e){Se(e)}Se("HTTP error text:",o);var s=401===n||403===n?h().util.Error.Severity.CRITICAL:h().util.Error.Severity.RECOVERABLE;throw new(h().util.Error)(s,h().util.Error.Category.NETWORK,h().util.Error.Code.BAD_HTTP_STATUS,i,n,o,e,a)}(e,n,o.status,t,o.responseURL,i);l(r)}catch(e){c(e)}},o.onerror=function(e){c(new(h().util.Error)(h().util.Error.Severity.RECOVERABLE,h().util.Error.Category.NETWORK,h().util.Error.Code.HTTP_ERROR,t,e,i))},o.ontimeout=function(){c(new(h().util.Error)(h().util.Error.Severity.RECOVERABLE,h().util.Error.Category.NETWORK,h().util.Error.Code.TIMEOUT,t,i))},o.onprogress=function(e){var t=Date.now();(t-s>100||e.lengthComputable&&e.loaded===e.total)&&(r(t-s,e.loaded-u,e.total-e.loaded),u=e.loaded,s=t)},n.headers)if(xe(n.headers,f)){var p=f.toLowerCase();o.setRequestHeader(p,n.headers[f])}o.send(n.body)}));return new(h().util.AbortableOperation)(l,(function(){return o.abort(),Promise.resolve()}))}},Ae=function(e){void 0===e&&(e=null);var t=h().net.HttpXHRPlugin.parse;e&&"function"==typeof e&&(t=ke(e)),h().net.NetworkingEngine.registerScheme("http",t,h().net.NetworkingEngine.PluginPriority.APPLICATION,!0),h().net.NetworkingEngine.registerScheme("https",t,h().net.NetworkingEngine.PluginPriority.APPLICATION,!0),h().net.NetworkingEngine.registerScheme("blob",t,h().net.NetworkingEngine.PluginPriority.APPLICATION,!0)},Ie=n(1384),Ce=function(e,t,n){var o,s,l=this,c={},f=null,p=null,m=(0,R.Z)(this,t.bandwidthEstimate),E=t.bitrateSelection;l.video=n,l.drmUsed=null,l.position=0,l.levels=[],l.currentQuality=-1,l.supportsPlaybackRate=!0,l.service=null,l.adaptationId=-1,l.adaptationTs=-1,l.pollAdaptation=!1,l.livePausedItem=null,l.jwLevels=[],l.state=T.bc,(0,g.S6)(k.Z,(function(e,t){c[t]=e.bind(l)}));var j,U=function(e){var t=new(h().Player)(e);return l.service=new v(t,e),l.adaptationId=-1,l.adaptationTs=-1,t},F=function(e,t){return(0,g.hj)(e)&&!(0,g.i2)(e)&&e>=0&&e<(0,g.dp)(t)},z=function(e,n){return(0,b.ji)(e,t.qualityLabels,n)},$=function(e){l.shakaLevels=e,l.shakaLevels.sort((function(e,t){return e.height1&&l.jwLevels.unshift({label:"Auto",shakaId:"auto"})},Z=function(e){if(F(e,l.jwLevels)){l.service.enableAbr(!1);var t=l.jwLevels[e].shakaId,n=(0,g._e)(l.shakaLevels,{id:t});if(n){var i=n.bandwidth>E,r=!s||n.audioId!==s.audioId;E=n.bandwidth,p.selectVariantTrack(n,i||r)}var a=0===e;l.service.enableAbr(a),a||(l.pollAdaptation=!0)}},te=function(e){l.tracksByLabel&&l.tracksByLang&&l.audioTracks&&Object.keys(l.tracksByLabel).length!==Object.keys(l.tracksByLang).length?$(l.tracksByLabel[l.audioTracks[l.currentAudioIndex].name]):l.tracksByLang&&l.audioTracks&&$(l.tracksByLang[l.audioTracks[l.currentAudioIndex].language]),Z(e),l.currentQuality=e},ne=function(){j(),l.service&&(l.service.setLoadedItem(null),l.service.unload()),f=null},ie=function(e){if(!(n.src||null!=n&&null!=(t=n.played)&&t.length))return l.destroy(),void(p=U(n));var t,r=e.detail?e.detail:e,a=function(e){var t=e.category,n=e.code,r=e.data,a=e.severity!==B,o=n===Q,s=a?_:34e4,l=a?D.ul:null,c={key:l,code:s,fatal:a,changeLevel:o};if(!a)return c;if(Te.has(n))return(0,i.Z)(c,{code:Te.get(n)});if(n===W)s=241004;else if(n===X){var d=(0,N.Z)(_,r[1],r[0]);s=d.code,l=d.key}else if(n===Y){var f=(0,N.Z)(_,0,r[0]);s=f.code,l=f.key}else n===J?(s=P,r[0]>1&&r[0]<5&&(s+=r[0]-1)):n===ee?(l=D.zO,s=242632):u.Browser.ie&&e.message&&0===e.message.indexOf("Access is denied.")?s=241012:t===q?s=242600:t===V?s=L:t===H?s=P:t===K?s=249e3:t===G&&(s=O);return(0,i.Z)(c,{code:s,key:l})}(r),o=a.key,s=a.code,c=a.fatal,d=a.changeLevel;if(c){if(d){var f=function(){var e=(0,g._e)(l.shakaLevels,{active:!0});if(e)for(var t=0;t1,a=!!e.label&&(0,g.ar)(t,{label:e.label}).length>1,o=(0,x.id)(i);return"und"===i?o="Unknown":"dv"===i&&(o="Audio Description"),r&&!a?o=e.label?e.label:(0,x.id)(i):r&&a&&(o+=" ("+(0,b._T)(e.bandwidth)+" kbps)"),{autoselect:!1,defaulttrack:Boolean(e.active),groupid:e.primary?"default":"",language:e.language,name:o,shakaIndex:n,shakaId:e.id}})),l.currentAudioIndex=re(),s=l.shakaAudioTracks[l.currentAudioIndex])},oe=function(){return F(l.currentAudioIndex,l.audioTracks)?l.currentAudioIndex:-1},se=function(e,t){void 0===t&&(t=!1);var n=l.audioTracks[e||oe()];if(n){var i=l.shakaAudioTracks[n.shakaIndex];i&&(s&&s.audioId===i.audioId&&!t||(l.service.enableAbr(!1),s=i,p.selectVariantTrack(i,!0),l.service.enableAbr(!0),te(l.currentQuality)))}},ue=function(){var e=p.getTextTracks();l._tracksById&&e.length===Object.keys(l._tracksById).length||(e=e.filter((function(e){return"Shaka Player TextTrack"!==e.label})).map((function(e){var t=e;return t.kind=(t.kind||"subtitles").replace(/^(.+[^s])$/,"$1s"),t.embedded=!0,t.label=t.label?t.label:(0,x.id)(t.language),t.source="currentTime",t})),l.addTextTracks(e));var t=p.getVariantTracks();t=t.map((function(e){return e.label||(e.label=(0,x.id)(e.language)),e}));var n=(0,g._e)(t,{active:!0}),i=(0,g.vM)(t,"language"),r=(0,g.vM)(t,"label"),a="video";if(l.tracksByLang=i,l.tracksByLabel=r,(0,g.dp)(i)&&n){Object.keys(r).length!==Object.keys(i).length?$(r[n.label]):$(i[n.language]);var o=0;if(!l.service.abrEnabled()){var s=l.service.getVariantHistory();if(s.length){var u=s[0].id,c=(0,g._e)(l.jwLevels,{shakaId:u});o=l.jwLevels.indexOf(c)}}l.currentQuality=Math.max(0,o),Z(l.currentQuality),l.trigger(T.UZ,{levels:l.jwLevels,currentQuality:l.currentQuality}),function(e,t){var n=(0,g.sE)(e[t],(function(e){return e.active})),i=[];Object.keys(e).forEach((function(r){r===t?i.push(n):i.push(e[r][0])})),Array.isArray(i)&&ae(i),l.trigger(T.j0,{tracks:l.audioTracks,currentTrack:l.currentAudioIndex})}(r,(0,x.id)(n.language)),se(l.currentAudioIndex,l.replay),n.mimeType.indexOf("audio")>-1&&(a="audio"),l.trigger(T.oZ,{mediaType:a})}},le=function(e){var t=e.detail,n=t.startTime,i=t.endTime,r=t.id,a=t.schemeIdUri,o=t.timescale,s=t.presentationTimeDelta,u=t.eventDuration,c=t.messageData,d={metadataType:"emsg",id:r,schemeIdUri:a,timescale:o,presentationTimeOffset:s,duration:u,start:n,end:i},f=l.createCue(n,i,JSON.stringify(d));f.value=c,f._parsed=!0,l.addVTTCue({type:"metadata",cue:f},r+"_"+s+"_"+n+"_"+i)&&(delete d.metadataType,d.messageData=c,l.trigger(T.O1,{metadataType:"emsg",metadata:d}))},ce=function(e){var t=p.getTextTracks(),n=l.getSubtitlesTrack();if(n<0){var i=(0,g._e)(t,{active:!0});n=(0,g.cq)(t,i)}var r=t[n];if(r){var a,o=(0,g._e)(l._tracksById,{id:r.id});a=o?o._id:r.kind+"s"+n,e.forEach((function(e){u.Browser.ie?e.align="middle":e.align="center",l.addVTTCue({type:r.kind+"s",cue:e,track:a})}))}return[]},de=function(e){l.trigger(T.rx,{metadataType:"dai-dash",metadata:{messageData:e.detail.eventElement.attributes.messageData.value,start:e.detail.startTime,type:e.detail.schemeIdUri}})};j=function(){p&&(p.removeEventListener("error",ie),p.removeEventListener("trackschanged",ue),p.removeEventListener("emsg",le),p.removeEventListener("timelineregionenter",de)),(0,g.S6)(c,(function(e,t){n.removeEventListener(t,e)})),(0,Ie.IP)(n),l.service&&l.service.off("cues",ce),m.stop()};var fe=function(){p.addEventListener("error",ie),p.addEventListener("trackschanged",ue),p.addEventListener("adaptation",(function(){l.pollAdaptation=!0})),p.addEventListener("emsg",le),p.addEventListener("timelineregionenter",de),(0,g.S6)(c,(function(e,t){n.addEventListener(t,e)})),(0,Ie.Nm)(l,n),l.service.on("cues",ce),m.start()};l.checkAdaptation=function(){var e=n.videoWidth,t=n.videoHeight,i=p.getStats(),r=i.width,a=i.height;l.shakaLevels||ue();var o=l.service.getVariantHistory(l.adaptationTs);if(o.length){var s=-1===l.adaptationTs,u=(0,g.sE)(l.jwLevels,(function(n){return o.some((function(i){var r=i.id===n.shakaId&&(n.width===e&&n.height===t||null===n.width);return r&&(l.adaptationTs=i.timestamp),r}))}));if(u&&u.shakaId!==l.adaptationId){l.adaptationId=u.shakaId,l.pollAdaptation=!1;var c=l.jwLevels.indexOf(u),d=u.label,f=u.bitrate,h=l.service.abrEnabled(),m=h?"auto":"manual",v=h?"auto":"api";s&&(v="initial choice"),l.trigger(T.ug,{level:{index:c,label:d,bitrate:f,width:r,height:a},bandwidth:i.estimatedBandwidth,mode:m,reason:v})}}else l.pollAdaptation=!1};var he,pe=function(){if(f=null,j(),p){var e=p.getNetworkingEngine();e.clearAllRequestFilters(),e.clearAllResponseFilters(),p=null}if(l.service){var t=l.service.destroy();return l.service=null,t}},ge=function(){l.livePausedItem=l.service.loadedItem,l.service.unload()},me=function(e,n){void 0===e&&(e={sources:[]}),void 0===n&&(n={});var i=null,r="hls"===e.sources[0].type;n.response&&(i=new Uint8Array(n.response));var a=m.getEstimate();l.service.setup(function(e){void 0===e&&(e=null);var t,n,i={},r="";if(o.clearkey&&(0,y.Gb)("clearkey"))return(n=o.clearkey).keyId=n.keyId?n.keyId.replace(/-/g,""):null,i.clearKeys={},i.clearKeys[n.keyId]=n.key,i;if(o.widevine&&(0,y.Gb)("widevine"))l.drmUsed="widevine",t="com.widevine.alpha",r="http://widevine-proxy.appspot.com/proxy";else{if(!o.playready||!(0,y.Gb)("playready"))return i;l.drmUsed="playready",t="com.microsoft.playready",r="http://microsoft-proxy.appspot.com/proxy"}if(!(n=o[l.drmUsed]))return i;var a=n,s=a.audioRobustness,u=void 0===s?"":s,c=a.videoRobustness,d=void 0===c?"":c;(e||u||d)&&(i.advanced={},i.advanced[t]={serverCertificate:e,audioRobustness:u,videoRobustness:d}),i.servers=i.servers||{},i.servers[t]=n.url||r;var f=p.getNetworkingEngine(),g=h().net.NetworkingEngine.RequestType.LICENSE,m=n,v=m.licenseRequestFilter,b=m.licenseResponseFilter;return f.registerRequestFilter((function(e,t){if(e===g){try{Object.defineProperties(t,{open:{get:function(){return function(e,n){t.uris=[e],t.method=n}},enumerable:!0},setRequestHeader:{get:function(){return function(e,n){t.headers[e]=n}},enumerable:!0},withCredentials:{get:function(){return t.allowCrossSiteCredentials},set:function(e){t.allowCrossSiteCredentials=e},enumerable:!0}})}catch(e){}return function(e,t){[].concat(e.headers||[]).concat(e.licenseRequestHeaders||[]).forEach((function(e){t.headers[e.name]=e.value}));var n=e.customData;n&&(t.headers.customData=n)}(n,t),"function"==typeof v?v.call(p,t,p.drmInfo()):void 0}})),f.registerResponseFilter((function(e,t){if(e===g)return"function"==typeof b?b.call(p,t,p.drmInfo()):void 0})),i}(i),t.selectedCaptionCode||(0,x.Cq)(t.captionLabel),a,E,r);var s=e.sources[0].file;return(e.starttime?p.load(s,e.starttime):p.load(s)).then((function(){l.livePausedItem=null,f=null,l.state===T.bc&&p&&p.isLive()&&ge()})).catch(ie)},ve=function(e,t){t.allowCrossSiteCredentials=!0},ye=function(e){o=e.sources[0].drm||{},l.service.setLoadedItem(e),l.clearTracks(),l.setupSideloadedTracks(e.tracks),l.on(T.uT,(function(){n&&1===n.readyState&&n.buffered.length>0&&n.currentTime>>0)+"_",i=0;return function e(r){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(r||"")+"_"+i++,r)}})),s("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;nr&&(r=Math.max(r+i,0));r=r}})),s("Array.prototype.keys",(function(e){return e||function(){return j(this,(function(e){return e}))}}));var U="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;ne||1342177279>>=1)&&(t+=t);return n}})),s("Number.isNaN",(function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}})),s("Object.values",(function(e){return e||function(e){var t,n=[];for(t in e)L(e,t)&&n.push(e[t]);return n}})),s("Math.log2",(function(e){return e||function(e){return Math.log(e)/Math.LN2}})),s("Math.trunc",(function(e){return e||function(e){if(e=Number(e),isNaN(e)||1/0===e||-1/0===e||0===e)return e;var t=Math.floor(Math.abs(e));return 0>e?-t:t}})),s("Object.entries",(function(e){return e||function(e){var t,n=[];for(t in e)L(e,t)&&n.push([t,e[t]]);return n}}));var B=this||self;function F(e,t){var n,i=e.split("."),r=B;i[0]in r||void 0===r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t} /* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */ function V(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function H(e){return e.h/(1-Math.pow(e.g,e.i))}function q(){this.h=new V(2),this.j=new V(5),this.g=0,this.i=128e3,this.l=16e3}function K(){}function G(){}function z(){}function W(e){var t=_.apply(1,arguments);Y.has(e)||(Y.add(e),z.apply(K,c(t)))}function X(){}V.prototype.sample=function(e,t){var n=Math.pow(this.g,e);n=t*(1-n)+n*this.h,isNaN(n)||(this.h=n,this.i+=e)},q.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},q.prototype.sample=function(e,t){if(!(tt)throw Error("Bad port number "+t);e.Ib=t}else e.Ib=null}function je(e,t,n){t instanceof ze?e.g=t:(n||(t=Be(t,Ke)),e.g=new ze(t))}function Ue(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Be(e,t,n){return null!=e?(e=encodeURI(e).replace(t,Fe),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Fe(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(i=Le.prototype).Fa="",i.ob="",i.Ga="",i.Ib=null,i.ua="",i.fb="",i.toString=function(){var e=[],t=this.Fa;if(t&&e.push(Be(t,Ve,!0),":"),t=this.Ga){e.push("//");var n=this.ob;n&&e.push(Be(n,Ve,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Ib)&&e.push(":",String(t))}return(t=this.ua)&&(this.Ga&&"/"!=t.charAt(0)&&e.push("/"),e.push(Be(t,"/"==t.charAt(0)?qe:He,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.fb)&&e.push("#",Be(t,Ge)),e.join("")},i.resolve=function(e){var t=this.clone();"data"===t.Fa&&(t=new Le);var n=!!e.Fa;n?Pe(t,e.Fa):n=!!e.ob,n?t.ob=e.ob:n=!!e.Ga,n?t.Ga=e.Ga:n=null!=e.Ib;var i=e.ua;if(n)Oe(t,e.Ib);else if(n=!!e.ua){if("/"!=i.charAt(0))if(this.Ga&&!this.ua)i="/"+i;else{var r=t.ua.lastIndexOf("/");-1!=r&&(i=t.ua.substr(0,r+1)+i)}if(".."==i||"."==i)i="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var a=[],o=0;o=i+2&&192==(224&t[i])&&128==(192&t[i+1])?(r=(31&t[i])<<6|63&t[i+1],i+=1):t.length>=i+3&&224==(240&t[i])&&128==(192&t[i+1])&&128==(192&t[i+2])?(r=(15&t[i])<<12|(63&t[i+1])<<6|63&t[i+2],i+=2):t.length>=i+4&&240==(241&t[i])&&128==(192&t[i+1])&&128==(192&t[i+2])&&128==(192&t[i+3])&&(r=(7&t[i])<<18|(63&t[i+1])<<12|(63&t[i+2])<<6|63&t[i+3],i+=3),65535>=r)n+=String.fromCharCode(r);else{var a=1023&(r-=65536);n+=String.fromCharCode(55296+(r>>10)),n+=String.fromCharCode(56320+a)}}return n}function xt(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new Ne(2,2,2004);n=Math.floor(e.byteLength/2);var i=new Uint16Array(n);e=Ie(e);for(var r=0;r=n[e]}if(!e)return"";var n=Ae(e);if(239==n[0]&&187==n[1]&&191==n[2])return wt(n);if(254==n[0]&&255==n[1])return xt(n.subarray(2),!1);if(255==n[0]&&254==n[1])return xt(n.subarray(2),!0);if(0==n[0]&&0==n[2])return xt(e,!1);if(0==n[1]&&0==n[3])return xt(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return wt(e);throw new Ne(2,2,2003)}function Et(t){if(e.TextEncoder&&!pt()){var n=new TextEncoder;return ke(n.encode(t))}t=encodeURIComponent(t),t=unescape(t),n=new Uint8Array(t.length);for(var i=0;i>4).toString(16),r+=(15&o).toString(16),n=n.replace(i[0],r)}return n}function Ut(){}function Bt(e,t){var n=e;return t&&(n+='; codecs="'+t+'"'),n}function Ft(e,t,n){if(Ot(e=Bt(e,t))){if(De.get("muxjs")())return jt(n,e)}else if("audio"==n)return e.replace("video","audio");return e}function Vt(e){var t=qt(e);switch(e=t[0],t=t[1].toLowerCase(),!0){case"mp4a"===e&&"69"===t:case"mp4a"===e&&"6b"===t:return"mp3";case"mp4a"===e&&"66"===t:case"mp4a"===e&&"67"===t:case"mp4a"===e&&"68"===t:case"mp4a"===e&&"40.2"===t:case"mp4a"===e&&"40.02"===t:case"mp4a"===e&&"40.5"===t:case"mp4a"===e&&"40.05"===t:case"mp4a"===e&&"40.29"===t:case"mp4a"===e&&"40.42"===t:return"aac";case"mp4a"===e&&"a5"===t:return"ac-3";case"mp4a"===e&&"a6"===t:return"ec-3";case"mp4a"===e&&"b2"===t:return"dtsx";case"mp4a"===e&&"a9"===t:return"dtsc";case"avc1"===e:case"avc3"===e:return"avc";case"hvc1"===e:case"hev1"===e:return"hevc";case"dvh1"===e:case"dvhe"===e:return"dovi"}return e}function Ht(e){return(e=e.split(/ *; */)).shift(),(e=e.find((function(e){return e.startsWith("codecs=")})))?e.split("=")[1].replace(/^"|"$/g,""):""}function qt(e){var t=(e=e.split("."))[0];return e.shift(),[t,e.join(".")]}function Kt(e){this.j=null,this.i=e,this.u=!1,this.l=this.s=0,this.m=1/0,this.h=this.g=null,this.C="",this.o=new Map}function Gt(e){return!(!Yt[e]&&"application/cea-608"!=e&&"application/cea-708"!=e)}function zt(e,t,n){if(e.C=t,t=e.o.get(t))for(var i=l(t.keys()),r=i.next();!r.done;r=i.next())(r=t.get(r.value).filter((function(e){return e.endTime<=n})))&&e.i.append(r)}function Wt(e,t,n){t.startTime+=n,t.endTime+=n;for(var i=(t=l(t.nestedCues)).next();!i.done;i=t.next())Wt(e,i.value,n)}function Xt(e,t,n,i,r){for(var a=n+" "+i,o=new Map,s=(t=l(t)).next();!s.done;s=t.next()){var u=s.value;s=u.stream,u=u.cue,o.has(s)||o.set(s,new Map),o.get(s).has(a)||o.get(s).set(a,[]),Wt(e,u,r),u.startTime>=e.l&&u.startTime=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&tn.g&&t>=n.h&&(n.h=e)),w(i)}))},F("shaka.text.TextEngine",Kt),Kt.prototype.destroy=Kt.prototype.destroy,Kt.findParser=function(e){return Yt[e]},Kt.unregisterParser=function(e){delete Yt[e]},Kt.registerParser=function(e,t){Yt[e]=t};var Yt={};function $t(){}function Qt(e,t){return e=en(e),t=en(t),e.split("-")[0]==t.split("-")[0]}function Jt(e,t){e=en(e),t=en(t);var n=e.split("-"),i=t.split("-");return n[0]==i[0]&&1==n.length&&2==i.length}function Zt(e,t){e=en(e),t=en(t);var n=e.split("-"),i=t.split("-");return 2==n.length&&2==i.length&&n[0]==i[0]}function en(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=on.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function tn(e,t){return e=en(e),(t=en(t))==e?4:Jt(t,e)?3:Zt(t,e)?2:Jt(e,t)?1:0}function nn(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),on.get(e)||e}function rn(e){return e.language?en(e.language):e.audio&&e.audio.language?en(e.audio.language):e.video&&e.video.language?en(e.video.language):"und"}function an(e,t){for(var n=en(e),i=new Set,r=l(t),a=r.next();!a.done;a=r.next())i.add(en(a.value));for(a=(r=l(i)).next();!a.done;a=r.next())if((a=a.value)==n)return a;for(a=(r=l(i)).next();!a.done;a=r.next())if(Jt(a=a.value,n))return a;for(a=(r=l(i)).next();!a.done;a=r.next())if(Zt(a=a.value,n))return a;for(a=(i=l(i)).next();!a.done;a=i.next())if(Jt(n,a=a.value))return a;return null}F("shaka.util.LanguageUtils",$t),$t.findClosestLocale=an,$t.getLocaleForVariant=rn,$t.getLocaleForText=function(e){return en(e.language||"und")},$t.getBase=nn,$t.relatedness=tn,$t.areSiblings=function(e,t){var n=nn(e),i=nn(t);return e!=n&&t!=i&&n==i},$t.normalize=en,$t.isSiblingOf=Zt,$t.isParentOf=Jt,$t.areLanguageCompatible=Qt,$t.areLocaleCompatible=function(e,t){return(e=en(e))==(t=en(t))};var on=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function sn(){this.g={}}function un(e,t){for(var n in e.g)t(n,e.g[n])}function ln(e,t,n,i,r){var a=e.variants;(t.length||n.length)&&(a=function(e,t,n){for(var i={},r=(t=l(t)).next();!r.done;i={ud:i.ud},r=t.next())if(i.ud=r.value,r=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.ud)}}(i)),r.length){e=r;break}for(i={},n=l(n),t=n.next();!t.done;i={fd:i.fd},t=n.next())if(i.fd=t.value,t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.fd)}}(i)),t.length){e=t;break}return e}(a,t,n)),t=function(e){for(var t=new sn,n=(e=l(e)).next();!n.done;n=e.next()){var i=dn(n=n.value);t.push(i,n)}return t}(a=Rn(a,i)),t=function(e){var t=0,n=new Map,i=e.size();return un(e,(function(e,r){for(var a=l(r),o=a.next();!o.done;o=a.next()){var s=(o=o.value).video;if(s&&s.width&&s.height){s=s.width*s.height*(s.frameRate||1),n.has(s)||n.set(s,new sn);var u=n.get(s);u.push(e,o),u.size()===i&&(t=Math.max(t,s))}}})),t?n.get(t):e}(t);var o=function(e,t){for(var n=l(t),i=n.next();!i.done;i=n.next())if((i=i.value)==On||i==jn){if(1==(e=cn(e,i)).size())return e.keys()[0]}else if(i==Un)break;return function(e){var t="",n=1/0;return un(e,(function(e,i){for(var r=0,a=0,o=l(i),s=o.next();!s.done;s=o.next())r+=s.value.bandwidth||0,++a;(r/=a)n?(i.g={},i.push(e,r),n=a):a==n&&i.push(e,r)})),i}function dn(e){var t="";e.video&&(t=Vt(e.video.codecs));var n="";return e.audio&&(n=Vt(e.audio.codecs)),t+"-"+n}function fn(e,t,n){function i(e,t,n){return e>=t&&e<=n}var r=e.video;if(0!=e.disabledUntilTime){if(e.disabledUntilTime>Date.now()/1e3)return!1;e.disabledUntilTime=0}return!(r&&r.width&&r.height&&(!i(r.width,t.minWidth,Math.min(t.maxWidth,n.width))||!i(r.height,t.minHeight,Math.min(t.maxHeight,n.height))||!i(r.width*r.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!i(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!i(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function hn(e,t,n){for(var i=!1,r=(e=l(e)).next();!r.done;r=e.next()){var a=(r=r.value).allowedByApplication;r.allowedByApplication=fn(r,t,n),a!=r.allowedByApplication&&(i=!0)}return i}function pn(e,t){return N((function(n){return 1==n.g?T(n,gn(t,0=s&&n<=o&&i.bandwidth!=a.bandwidth&&(i=a)}return this.s=Date.now(),i},i.enable=function(){this.o=!0},i.disable=function(){this.o=!1},i.segmentDownloaded=function(e,t){if(this.i.sample(e,t),null!=this.s&&this.o)e:{if(this.C){if(Date.now()-this.s<1e3*this.g.switchInterval)break e}else{var n=this.i;if(!(n.g>=n.i))break e;this.C=!0}n=this.chooseVariant(),this.i.getBandwidthEstimate(Hn(this)),n&&this.l(n)}},i.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(Hn(this))},i.setVariants=function(e){this.m=e},i.playbackRateChanged=function(e){this.u=e},i.setMediaElement=function(t){var n=this;this.j=t,this.h&&(this.h.disconnect(),this.h=null),this.j&&"ResizeObserver"in e&&(this.h=new ResizeObserver((function(){n.D.R(Kn)})),this.h.observe(this.j))},i.configure=function(e){this.g=e,this.i&&this.g&&this.i.configure(this.g.advanced)},F("shaka.abr.SimpleAbrManager",Vn),Vn.prototype.configure=Vn.prototype.configure,Vn.prototype.setMediaElement=Vn.prototype.setMediaElement,Vn.prototype.playbackRateChanged=Vn.prototype.playbackRateChanged,Vn.prototype.setVariants=Vn.prototype.setVariants,Vn.prototype.getBandwidthEstimate=Vn.prototype.getBandwidthEstimate,Vn.prototype.segmentDownloaded=Vn.prototype.segmentDownloaded,Vn.prototype.disable=Vn.prototype.disable,Vn.prototype.enable=Vn.prototype.enable,Vn.prototype.chooseVariant=Vn.prototype.chooseVariant,Vn.prototype.init=Vn.prototype.init,Vn.prototype.stop=Vn.prototype.stop;var Kn=1;function Gn(e,t){this.g=e,this.h=t}function zn(e,t,n,i){z([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function Wn(e,t,n,i){G([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(""))}Gn.prototype.toString=function(){return"v"+this.g+"."+this.h};var Xn=null;function Yn(e,t){this.h=e,this.g=new Set([e]);for(var n=l(t=t||[]),i=n.next();!i.done;i=n.next())this.add(i.value)}function $n(e,t){var n;if(!(n=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(n=e.audio&&t.audio)){n=e.audio;var i=t.audio;n=!((!(!n.channelsCount||!i.channelsCount||2=e.l){if(!e.i)throw new Ne(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?i.return():(n=e.h*(1+(2*Math.random()-1)*e.o),T(i,new Promise((function(e){new st(e).R(n/1e3)})),2))}e.h*=e.m,w(i)}))}function si(e,t){this.promise=e,this.i=t,this.g=!1}function ui(e){return new si(Promise.reject(e),(function(){return Promise.resolve()}))}function li(){var e=Promise.reject(new Ne(2,7,7001));return e.catch((function(){})),new si(e,(function(){return Promise.resolve()}))}function ci(e){return new si(Promise.resolve(e),(function(){return Promise.resolve()}))}function di(e){return new si(e,(function(){return e.catch((function(){}))}))}function fi(e){return new si(Promise.all(e.map((function(e){return e.promise}))),(function(){return Promise.all(e.map((function(e){return e.abort()})))}))}function hi(t,n){if(n)if(n instanceof Map)for(var i=l(n.keys()),r=i.next();!r.done;r=i.next())r=r.value,Object.defineProperty(this,r,{value:n.get(r),writable:!0,enumerable:!0});else for(i in n)Object.defineProperty(this,i,{value:n[i],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function pi(e){var t,n=new hi(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}si.prototype.abort=function(){return this.g=!0,this.i()},si.prototype.finally=function(e){return this.promise.then((function(){return e(!0)}),(function(){return e(!1)})),this},si.prototype.Z=function(e,t){function n(n){return function(s){if(r.g&&n)a.reject(o);else{var u=n?e:t;u?i=function(e,t,n){try{var i=e(t);return i&&i.promise&&i.abort?(n.resolve(i.promise),function(){return i.abort()}):(n.resolve(i),function(){return Promise.resolve(i).then((function(){}),(function(){}))})}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(u,s,a):(n?a.resolve:a.reject)(s)}}}function i(){return a.reject(o),r.abort()}var r=this,a=new rt,o=new Ne(2,7,7001);return this.promise.then(n(!0),n(!1)),new si(a,(function(){return i()}))},F("shaka.util.AbortableOperation",si),si.prototype.chain=si.prototype.Z,si.prototype.finally=si.prototype.finally,si.all=fi,si.prototype.abort=si.prototype.abort,si.notAbortable=di,si.completed=ci,si.aborted=li,si.failed=ui,hi.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},hi.prototype.stopImmediatePropagation=function(){this.g=!0},hi.prototype.stopPropagation=function(){},F("shaka.util.FakeEvent",hi);var gi={ug:"abrstatuschanged",vg:"adaptation",wg:"buffering",yg:"downloadfailed",zg:"downloadheadersreceived",Ag:"drmsessionupdate",Cg:"emsg",Error:"error",Dg:"expirationupdated",Eg:"gapjumped",Gg:"loaded",Hg:"loading",Jg:"manifestparsed",Kg:"mediaqualitychanged",Metadata:"metadata",Mg:"onstatechange",Ng:"onstateidle",Og:"ratechange",Qg:"sessiondata",Rg:"stalldetected",Sg:"streaming",Tg:"textchanged",Ug:"texttrackvisibility",Vg:"timelineregionadded",Wg:"timelineregionenter",Xg:"timelineregionexit",Yg:"trackschanged",$g:"unloading",ah:"variantchanged"};function mi(){this.da=new sn,this.Lc=this}function vi(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var i=n.constructor==Array;if(n.constructor!=Object&&!i)return null;t.add(n);var r,a=i?[]:{};for(r in n)a[r]=e(n[r]);return i&&(a.length=n.length),a}}(e)}function yi(e){var t,n={};for(t in e)n[t]=e[t];return n}function bi(){this.g=[]}function Ti(e,t){e.g.push(t.finally((function(){Z(e.g,t)})))}function wi(e,t,n){mi.call(this),this.i=!1,this.m=new bi,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.s=n||null,this.o=!1}function xi(e,t,n,i){n=n||Ci;var r=Mi[e];(!r||n>=r.priority)&&(Mi[e]={priority:n,Vf:t,Wf:void 0!==i&&i})}function Si(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===n?null:n}}function Ei(e,t,n,i,r,a,o){e.o&&(n.uris[r]=n.uris[r].replace("http://","https://"));var s=new Le(n.uris[r]),u=s.Fa,l=!1;u||(Pe(s,u=(u=location.protocol).slice(0,-1)),n.uris[r]=s.toString()),u=u.toLowerCase();var c=(u=Mi[u])?u.Vf:null;if(!c)return ui(new Ne(2,1,1e3,s));var d,f=u.Wf,h=null,p=null,g=!1,m=!1;return di(oi(i)).Z((function(){if(e.i)return li();d=Date.now();var i=c(n.uris[r],n,t,(function(n,i,r){h&&h.stop(),p&&p.R(s/1e3),e.l&&t==Ii&&(e.l(n,i),l=!0,o.g=r)}),(function(i){e.j&&e.j(i,n,t),m=!0}));if(!f)return i;var a=n.retryParameters.connectionTimeout;a&&(h=new st((function(){g=!0,i.abort()}))).R(a/1e3);var s=n.retryParameters.stallTimeout;return s&&(p=new st((function(){g=!0,i.abort()}))),i})).Z((function(i){h&&h.stop(),p&&p.stop(),null==i.timeMs&&(i.timeMs=Date.now()-d);var r={response:i,Kf:l};return!m&&e.j&&e.j(i.headers,n,t),r}),(function(s){if(h&&h.stop(),p&&p.stop(),e.s){var u=null,l=0;s instanceof Ne&&(u=s,1001==s.code&&(l=s.data[1])),e.s(n,u,l,g)}if(e.i)return li();if(g&&(s=new Ne(1,1,1003,n.uris[r],t)),s instanceof Ne){if(7001==s.code)throw s;if(1010==s.code)throw a;if(1==s.severity)return u=new hi("retry",u=(new Map).set("error",s)),e.dispatchEvent(u),r=(r+1)%n.uris.length,Ei(e,t,n,i,r,s,o)}throw s}))}function ki(){this.g=0}function Ai(e,t,n){si.call(this,e,t),this.h=n}mi.prototype.addEventListener=function(e,t){this.da&&this.da.push(e,t)},mi.prototype.removeEventListener=function(e,t){this.da&&this.da.remove(e,t)},mi.prototype.dispatchEvent=function(e){if(!this.da)return!0;var t=this.da.get(e.type)||[],n=this.da.get("All");for(n&&(t=t.concat(n)),n=(t=l(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.Lc,e.currentTarget=this.Lc;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},mi.prototype.release=function(){this.da=null},bi.prototype.destroy=function(){for(var e=[],t=l(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch((function(){})),e.push(n.abort());return this.g=[],Promise.all(e)},m(wi,mi),(i=wi.prototype).$d=function(e){this.o=e},i.Xf=function(e){this.g.add(e)},i.ng=function(e){this.g.delete(e)},i.df=function(){this.g.clear()},i.Yf=function(e){this.h.add(e)},i.og=function(e){this.h.delete(e)},i.ef=function(){this.h.clear()},i.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),mi.prototype.release.call(this),this.m.destroy()},i.request=function(e,t){var n=this,i=new ki;if(this.i){var r=Promise.reject(new Ne(2,7,7001));return r.catch((function(){})),new Ai(r,(function(){return Promise.resolve()}),i)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?vi(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},t.uris=vi(t.uris),r=function(e,t,n){for(var i=ci(void 0),r={},a=(e=l(e.g)).next();!a.done;r={pd:r.pd},a=e.next())r.pd=a.value,i=i.Z(function(e){return function(){return n.body&&(n.body=ke(n.body)),e.pd(t,n)}}(r));return i.Z(void 0,(function(e){if(e instanceof Ne&&7001==e.code)throw e;throw new Ne(2,1,1006,e)}))}(this,e,t);var a=r.Z((function(){return Ei(n,e,t,new ai(t.retryParameters,!1),0,null,i)})),o=a.Z((function(t){return function(e,t,n){for(var i=ci(void 0),r={},a=(e=l(e.h)).next();!a.done;r={qd:r.qd},a=e.next())r.qd=a.value,i=i.Z(function(e){return function(){var i=n.response;return i.data&&(i.data=ke(i.data)),e.qd(t,i)}}(r));return i.Z((function(){return n}),(function(e){var t=2;if(e instanceof Ne){if(7001==e.code)throw e;t=e.severity}throw new Ne(t,1,1007,e)}))}(n,e,t)})),s=Date.now(),u=0;r.promise.then((function(){u=Date.now()-s}),(function(){}));var c=0;a.promise.then((function(){c=Date.now()}),(function(){}));var d=o.Z((function(t){var i=Date.now()-c,r=t.response;return r.timeMs+=u,r.timeMs+=i,t.Kf||!n.l||r.fromCache||e!=Ii||n.l(r.timeMs,r.data.byteLength),r}),(function(e){throw e&&(e.severity=2),e}));return r=new Ai(d.promise,(function(){return d.abort()}),i),Ti(this.m,r),r},F("shaka.net.NetworkingEngine",wi),wi.prototype.request=wi.prototype.request,wi.prototype.destroy=wi.prototype.destroy,wi.makeRequest=Si,wi.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}},wi.prototype.clearAllResponseFilters=wi.prototype.ef,wi.prototype.unregisterResponseFilter=wi.prototype.og,wi.prototype.registerResponseFilter=wi.prototype.Yf,wi.prototype.clearAllRequestFilters=wi.prototype.df,wi.prototype.unregisterRequestFilter=wi.prototype.ng,wi.prototype.registerRequestFilter=wi.prototype.Xf,wi.unregisterScheme=function(e){delete Mi[e]},wi.registerScheme=xi,wi.prototype.setForceHTTPS=wi.prototype.$d,wi.NumBytesRemainingClass=ki,m(Ai,si),wi.PendingRequest=Ai;var Ii=1;wi.RequestType={MANIFEST:0,SEGMENT:Ii,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var Ci=3;wi.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Ci};var Mi={};function Ri(e){this.g=!1,this.h=new rt,this.i=e}function Di(e,t){if(e.g){if(t instanceof Ne&&7003==t.code)throw t;throw new Ne(2,7,7003,t)}}function Ni(){this.g=new sn}function _i(e,t,n,i){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(null==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter((function(e){return!n.has(e)})),function(e){var t=Li;if(null==t){t=!1;try{var n={},i={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",i),Object.defineProperty(n,"capture",i),i=function(){},e.addEventListener("test",i,n),e.removeEventListener("test",i,n)}catch(e){t=!1}Li=t}return t||!1}(e)?t:t.capture||!1}(e,i),this.target.addEventListener(t,n,this.g)}Ri.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then((function(){e.h.resolve()}),(function(){e.h.resolve()})))},(i=Ni.prototype).release=function(){this.mb(),this.g=null},i.B=function(e,t,n,i){this.g&&(e=new _i(e,t,n,i),this.g.push(t,e))},i.oa=function(e,t,n,i){var r=this;this.B(e,t,(function i(a){r.xc(e,t,i),n(a)}),i)},i.xc=function(e,t,n){if(this.g)for(var i=this.g.get(t)||[],r=(i=l(i)).next();!r.done;r=i.next())(r=r.value).target!=e||n!=r.listener&&n||(r.xc(),this.g.remove(t,r))},i.mb=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,c(t.g[e]));for(n=(t=l(n)).next();!n.done;n=t.next())n.value.xc();this.g.g={}}},F("shaka.util.EventManager",Ni),Ni.prototype.removeAll=Ni.prototype.mb,Ni.prototype.unlisten=Ni.prototype.xc,Ni.prototype.listenOnce=Ni.prototype.oa,Ni.prototype.listen=Ni.prototype.B,Ni.prototype.release=Ni.prototype.release,_i.prototype.xc=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var Li=void 0;function Pi(e,t){for(var n=[],i=l(e),r=i.next();!r.done;r=i.next())n.push(t(r.value));return n}function Oi(e){for(var t=new Map,n=l(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function ji(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}function Ui(e,t){if(!e&&!t)return!0;if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=l(e),i=n.next();!i.done;i=n.next()){var r=l(i.value);if(i=r.next().value,r=r.next().value,!t.has(i))return!1;if((i=t.get(i))!=r||null==i)return!1}return!0}function Bi(e,t){this.S=Ie(e),this.h=t==Vi,this.g=0}function Fi(){return new Ne(2,3,3e3)}(i=Bi.prototype).ma=function(){return this.gthis.S.byteLength)throw Fi();var t=Ae(this.S,this.g,e);return this.g+=e,t},i.skip=function(e){if(this.g+e>this.S.byteLength)throw Fi();this.g+=e},i.dg=function(e){if(this.ge||e>this.S.byteLength)throw Fi();this.g=e},i.qc=function(){for(var e=this.g;this.ma()&&0!=this.S.getUint8(this.g);)this.g+=1;return e=Ae(this.S,e,this.g-e),this.g+=1,wt(e)},F("shaka.util.DataViewReader",Bi),Bi.prototype.readTerminatedString=Bi.prototype.qc,Bi.prototype.seek=Bi.prototype.seek,Bi.prototype.rewind=Bi.prototype.dg,Bi.prototype.skip=Bi.prototype.skip,Bi.prototype.readBytes=Bi.prototype.Za,Bi.prototype.readUint64=Bi.prototype.Jb,Bi.prototype.readInt32=Bi.prototype.Ie,Bi.prototype.readUint32=Bi.prototype.N,Bi.prototype.readUint16=Bi.prototype.Rd,Bi.prototype.readUint8=Bi.prototype.Ra,Bi.prototype.getLength=Bi.prototype.tf,Bi.prototype.getPosition=Bi.prototype.$,Bi.prototype.hasMoreData=Bi.prototype.ma;var Vi=1;function Hi(){this.i=[],this.h=[],this.g=!1}function qi(e){for(var t=Xi(e);e.reader.ma()&&!e.parser.g;)e.parser.Zc(e.start+t,e.reader,e.partialOkay)}function Ki(e){for(var t=Xi(e),n=e.reader.N(),i=0;i>24&255,e>>16&255,e>>8&255,255&e)}function Xi(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}Bi.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Vi},(i=Hi.prototype).box=function(e,t){var n=zi(e);return this.i[n]=Yi,this.h[n]=t,this},i.U=function(e,t){var n=zi(e);return this.i[n]=$i,this.h[n]=t,this},i.stop=function(){this.g=!0},i.parse=function(e,t,n){for(e=new Bi(e,0),this.g=!1;e.ma()&&!this.g;)this.Zc(0,e,t,n)},i.Zc=function(e,t,n,i){var r=t.$();if(i&&r+8>t.S.byteLength)this.g=!0;else{var a=t.N(),o=t.N(),s=!1;switch(a){case 0:a=t.S.byteLength-r;break;case 1:if(i&&t.$()+8>t.S.byteLength)return void(this.g=!0);a=t.Jb(),s=!0}var u=this.h[o];if(u){var l=null,c=null;if(this.i[o]==$i){if(i&&t.$()+4>t.S.byteLength)return void(this.g=!0);l=(c=t.N())>>>24,c&=16777215}o=r+a,n&&o>t.S.byteLength&&(o=t.S.byteLength),i&&o>t.S.byteLength?this.g=!0:(i=o-t.$(),u({parser:this,partialOkay:n||!1,version:l,flags:c,reader:t=new Bi(t=0i?s.setUint32(u,0):s.setUint32(u,16777216),u+=4,o.set(t,u),u+=t.length,0i&&(i+=Math.pow(2,32)),i="0x"+i.toString(16)}e.m(new Ne(2,6,6006,t.message,t,i))}}))}(e,t,n,e.g.sessionType)}}function or(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}function sr(e){return e=Pi(e=e.i.keys(),(function(e){return e.sessionId})),Array.from(e)}function ur(e,t,n){var i,r,a,o,s,u,c,d,f,h,p,g,m;return N((function(v){switch(v.g){case 1:if(i=new Map,n.length){r=function(e,t,n){for(var i=l(t),r=i.next();!r.done;r=i.next()){var a=l(pr(r.value));for(r=a.next();!r.done;r=a.next())r=r.value,n.has(r.keySystem)||n.set(r.keySystem,[]),n.get(r.keySystem).push(r)}if(1==n.size&&n.has(""))throw new Ne(2,6,6e3);for(i={},e=l(e.h.preferredKeySystems),r=e.next();!r.done;i={nd:i.nd},r=e.next())for(i.nd=r.value,a=l(t),r=a.next();!r.done;r=a.next())if(r=r.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.nd}}(i)))return r.keySystemAccess;for(e=l([!0,!1]),r=e.next();!r.done;r=e.next())for(i=r.value,a=l(t),r=a.next();!r.done;r=a.next()){var o=l(r.value.decodingInfos);for(r=o.next();!r.done;r=o.next()){var s=r.value;if(s.supported&&s.keySystemAccess){var u=l(r=n.get(s.keySystemAccess.keySystem));for(r=u.next();!r.done;r=u.next())if(!!r.value.licenseServerUri==i)return s.keySystemAccess}}}return null}(e,n,i),v.A(2);break}return T(v,function(e,t){var n,i,r,a,o,s,u,c,d,f,h,p,g,m,v;return N((function(y){switch(y.g){case 1:if(1==t.size&&t.has(""))throw new Ne(2,6,6e3);for(i=l(t.values()),r=i.next();!r.done;r=i.next())0==(a=r.value).audioCapabilities.length&&delete a.audioCapabilities,0==a.videoCapabilities.length&&delete a.videoCapabilities;o=l(e.h.preferredKeySystems),s=o.next();case 2:if(s.done){y.A(4);break}if(u=s.value,!t.has(u)){y.A(3);break}return c=t.get(u),x(y,6),T(y,navigator.requestMediaKeySystemAccess(u,[c]),8);case 8:return n=y.h,y.return(n);case 6:k(y);case 7:Di(e.j);case 3:s=o.next(),y.A(2);break;case 4:d=l([!0,!1]),f=d.next();case 9:if(f.done){y.A(11);break}h=f.value,p=l(t.keys()),s=p.next();case 12:if(s.done){f=d.next(),y.A(9);break}if(g=s.value,m=t.get(g),v=m.drmInfos.some((function(e){return!!e.licenseServerUri})),v!=h){y.A(13);break}return x(y,15),T(y,navigator.requestMediaKeySystemAccess(g,[m]),17);case 17:return n=y.h,y.return(n);case 15:k(y);case 16:Di(e.j);case 13:s=p.next(),y.A(12);break;case 11:return y.return(n)}}))}(e,t),3);case 3:r=v.h;case 2:if(!(a=r))throw new Ne(2,6,6001);for(Di(e.j),x(v,4),e.G.clear(),o=a.getConfiguration(),s=o.audioCapabilities||[],u=o.videoCapabilities||[],c=l(s),d=c.next();!d.done;d=c.next())f=d.value,e.G.add(f.contentType.toLowerCase());for(h=l(u),d=h.next();!d.done;d=h.next())p=d.value,e.G.add(p.contentType.toLowerCase());if(n.length){var y=a.keySystem,b=i.get(a.keySystem),w=[],S=[],A=[],I=[],C=new Set;mr(b,w,A,S,I,C);var M=e.M?"persistent-license":"temporary";for(y={keySystem:y,licenseServerUri:w[0],distinctiveIdentifierRequired:b[0].distinctiveIdentifierRequired,persistentStateRequired:b[0].persistentStateRequired,sessionType:b[0].sessionType||M,audioRobustness:b[0].audioRobustness||"",videoRobustness:b[0].videoRobustness||"",serverCertificate:A[0],serverCertificateUri:S[0],initData:I,keyIds:C},w=(b=l(b)).next();!w.done;w=b.next())(w=w.value).distinctiveIdentifierRequired&&(y.distinctiveIdentifierRequired=w.distinctiveIdentifierRequired),w.persistentStateRequired&&(y.persistentStateRequired=w.persistentStateRequired);b=y}else b=a.keySystem,y=t.get(a.keySystem),w=[],S=[],A=[],I=[],C=new Set,mr(y.drmInfos,w,A,S,I,C),b={keySystem:b,licenseServerUri:w[0],distinctiveIdentifierRequired:"required"==y.distinctiveIdentifier,persistentStateRequired:"required"==y.persistentState,sessionType:y.sessionTypes[0]||"temporary",audioRobustness:(y.audioCapabilities?y.audioCapabilities[0].robustness:"")||"",videoRobustness:(y.videoCapabilities?y.videoCapabilities[0].robustness:"")||"",serverCertificate:A[0],serverCertificateUri:S[0],initData:I,keyIds:C};if(e.g=b,!e.g.licenseServerUri)throw new Ne(2,6,6012,e.g.keySystem);return T(v,a.createMediaKeys(),6);case 6:return g=v.h,Di(e.j),e.u=g,e.ca=!0,T(v,ir(e),7);case 7:Di(e.j),E(v,0);break;case 4:if(m=k(v),Di(e.j,m),e.g=null,e.G.clear(),m instanceof Ne)throw m;throw new Ne(2,6,6002,m.message)}}))}function lr(e,t){var n,i,r,a,o;return N((function(s){switch(s.g){case 1:try{n=e.u.createSession("persistent-license")}catch(t){return i=new Ne(2,6,6005,t.message),e.m(i),s.return(Promise.reject(i))}return e.s.B(n,"message",(function(t){e.l&&e.h.delayLicenseRequestUntilPlayed&&e.l.paused&&!e.O?e.L.push(t):cr(e,t)})),e.s.B(n,"keystatuseschange",(function(t){return dr(e,t)})),r={initData:null,initDataType:null,loaded:!1,Od:1/0,Ja:null,type:"persistent-license"},e.i.set(n,r),x(s,2),T(s,n.load(t),4);case 4:return a=s.h,Di(e.j),a?(r.loaded=!0,gr(e)&&e.o.resolve(),s.return(n)):(e.i.delete(n),e.m(new Ne(2,6,6013)),s.return(Promise.resolve()));case 2:o=k(s),Di(e.j,o),e.i.delete(n),e.m(new Ne(2,6,6005,o.message));case 3:return s.return(Promise.resolve())}}))}function cr(e,t){var n,i,r,a,o,s,u,c,d,f,h,p;N((function(g){switch(g.g){case 1:return n=t.target,e.h.logLicenseExchange&&Mt(t.message),i=e.i.get(n),r=e.g.licenseServerUri,a=e.h.advanced[e.g.keySystem],"individualization-request"==t.messageType&&a&&a.individualizationServer&&(r=a.individualizationServer),(o=Si([r],e.h.retryParameters)).body=t.message,o.method="POST",o.licenseRequestType=t.messageType,o.sessionId=n.sessionId,o.drmInfo=e.g,i&&(o.initData=i.initData,o.initDataType=i.initDataType),or(e.g.keySystem)&&function(e){var t=xt(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=l((t=(new DOMParser).parseFromString(t,"application/xml")).getElementsByTagName("HttpHeader")),i=n.next();!i.done;i=n.next())i=i.value,e.headers[i.getElementsByTagName("name")[0].textContent]=i.getElementsByTagName("value")[0].textContent;e.body=Rt(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(o),s=Date.now(),x(g,2),T(g,e.D.kb.request(2,o).promise,4);case 4:u=g.h,E(g,3);break;case 2:return c=k(g),d=new Ne(2,6,6007,c),e.m(d),i&&i.Ja&&i.Ja.reject(d),g.return();case 3:return e.j.g?g.return():(e.I+=(Date.now()-s)/1e3,e.h.logLicenseExchange&&Mt(u.data),x(g,5),T(g,n.update(u.data),7));case 7:E(g,6);break;case 5:return f=k(g),h=new Ne(2,6,6008,f.message),e.m(h),i&&i.Ja&&i.Ja.reject(h),g.return();case 6:if(e.j.g)return g.return();p=new hi("drmsessionupdate"),e.D.onEvent(p),i&&(i.Ja&&i.Ja.resolve(),new st((function(){i.loaded=!0,gr(e)&&e.o.resolve()})).R(br)),w(g)}}))}function dr(e,t){var n=t.target,i=e.i.get(n),r=!1;n.keyStatuses.forEach((function(t,n){if("string"==typeof n){var a=n;n=t,t=a}if(or(e.g.keySystem)&&16==n.byteLength&&(navigator.userAgent.match(/Edge?\//)||pt())){var o=(a=Ie(n)).getUint32(0,!0),s=a.getUint16(4,!0),u=a.getUint16(6,!0);a.setUint32(0,o,!1),a.setUint16(4,s,!1),a.setUint16(6,u,!1)}"status-pending"!=t&&(i.loaded=!0),"expired"==t&&(r=!0),a=Nt(n),e.ia.set(a,t)}));var a=n.expiration-Date.now();(0>a||r&&1e3>a)&&i&&!i.Ja&&(e.i.delete(n),n.close().catch((function(){}))),gr(e)&&(e.o.resolve(),e.T.R(Tr))}function fr(e){var t;return N((function(n){return t=Array.from(e.i.entries()),e.i.clear(),T(n,Promise.all(t.map((function(t){var n=(t=l(t)).next().value,i=t.next().value;return N((function(t){return 1==t.g?(x(t,2),e.ha||e.C.includes(n.sessionId)||"persistent-license"!==i.type?T(t,function(e){var t;return N((function(n){return 1==n.g?(t=new Promise((function(e,t){new st(t).R(yr)})),x(n,2),T(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?E(n,0):(k(n),void w(n))}))}(n),5):T(t,n.remove(),5)):2!=t.g?E(t,0):(k(t),void w(t))}))}))),0)}))}function hr(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],i=l(e),r=i.next();!r.done;r=i.next()){r=r.value;for(var a={},o=l(t),s=o.next();!s.done;a={Ea:a.Ea},s=o.next())if(s=s.value,r.keySystem==s.keySystem){a.Ea=[],a.Ea=a.Ea.concat(r.initData||[]),a.Ea=a.Ea.concat(s.initData||[]),a.Ea=a.Ea.filter(function(e){return function(t,n){return void 0===t.keyId||n===e.Ea.findIndex((function(e){return e.keyId===t.keyId}))}}(a)),o=r.keyIds&&s.keyIds?new Set([].concat(c(r.keyIds),c(s.keyIds))):r.keyIds||s.keyIds,n.push({keySystem:r.keySystem,licenseServerUri:r.licenseServerUri||s.licenseServerUri,distinctiveIdentifierRequired:r.distinctiveIdentifierRequired||s.distinctiveIdentifierRequired,persistentStateRequired:r.persistentStateRequired||s.persistentStateRequired,videoRobustness:r.videoRobustness||s.videoRobustness,audioRobustness:r.audioRobustness||s.audioRobustness,serverCertificate:r.serverCertificate||s.serverCertificate,serverCertificateUri:r.serverCertificateUri||s.serverCertificateUri,initData:a.Ea,keyIds:o});break}}return n}function pr(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function gr(e){return function(e,t){for(var n=l(e),i=n.next();!i.done;i=n.next())if(!t(i.value))return!1;return!0}(e=e.i.values(),(function(e){return e.loaded}))}function mr(e,t,n,i,r,a){for(var o={},s=(e=l(e)).next();!s.done;o={qa:o.qa},s=e.next()){if(o.qa=s.value,t.includes(o.qa.licenseServerUri)||t.push(o.qa.licenseServerUri),i.includes(o.qa.serverCertificateUri)||i.push(o.qa.serverCertificateUri),o.qa.serverCertificate&&(n.some(function(e){return function(t){return Se(t,e.qa.serverCertificate)}}(o))||n.push(o.qa.serverCertificate)),o.qa.initData){s={};for(var u=l(o.qa.initData),c=u.next();!c.done;s={Ac:s.Ac},c=u.next())s.Ac=c.value,r.some(function(e){return function(t){var n=e.Ac;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&Se(t.initData,n.initData)}}(s))||r.push(s.Ac)}if(o.qa.keyIds)for(u=(s=l(o.qa.keyIds)).next();!u.done;u=s.next())a.add(u.value)}}function vr(t,n,i,r){var a=t.keySystem;!a||"org.w3.clearkey"==a&&t.licenseServerUri||(n.size&&(n=n.get(a)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(i=i.get(a))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=i.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=i.persistentStateRequired),t.videoRobustness||(t.videoRobustness=i.videoRobustness),t.audioRobustness||(t.audioRobustness=i.audioRobustness),t.serverCertificate||(t.serverCertificate=i.serverCertificate),i.sessionType&&(t.sessionType=i.sessionType),t.serverCertificateUri||(t.serverCertificateUri=i.serverCertificateUri)),r[a]&&(t.keySystem=r[a]),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==a&&(t.keySystem="com.chromecast.playready"))}(i=Zi.prototype).destroy=function(){return this.j.destroy()},i.configure=function(e){this.h=e},i.Yb=function(t){var n,i=this;return N((function(r){if(1==r.g)return i.u?(i.l=t,i.s.oa(i.l,"play",(function(){for(var e=l(i.L),t=e.next();!t.done;t=e.next())cr(i,t.value);i.O=!0,i.L=[]})),"webkitCurrentPlaybackTargetIsWireless"in i.l&&i.s.B(i.l,"webkitcurrentplaybacktargetiswirelesschanged",(function(){return fr(i)})),(n=i.g.initData.find((function(e){return 0>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var Rr=new at((function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}));function Dr(e,t,n,i,r){if(i>=r)return null;for(var a=-1,o=-1,s=0;sn||127n||0>t))if(t>=n)for(--i;0<=i;i--)e.i[t+i]=e.i[n+i].map((function(e){return e}));else for(var r=0;rt;t++)e.i.push(sa())}function sa(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function ua(e,t){la(e)&&(e.i[e.h][e.g]=new Lr(t,e.u,e.o,e.m,e.s),e.g++)}function la(e){var t=e.g=n)i=7&n,e.h[i]&&(e.g=e.h[i]);else{if(136===n){n=va(t).value,t=null;for(var r=(n=l(Ta(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=ca(r,i,e.i)),oa(r);return t}if(137===n)for(n=(t=l(Ta(e,t=va(t).value))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=i),n.l=!0;else{if(138===n){for(n=va(t).value,t=null,r=(n=l(Ta(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=ca(r,i,e.i)),r.l=!1;return t}if(139===n){for(n=va(t).value,t=null,r=(n=l(Ta(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()?t=ca(r,i,e.i):r.j=i,r.l=!r.l;return t}if(140===n)return wa(e,t=va(t).value,i);if(143===n)return i=wa(e,255,i),xa(e),i;if(144===n)t.skip(1),i=va(t).value,e.g&&(e.g.o=0<(128&i),e.g.u=0<(64&i));else if(145===n)i=va(t).value,n=va(t).value,t.skip(1),e.g&&(t=Sa((48&n)>>4,(12&n)>>2,3&n),e.g.s=Sa((48&i)>>4,(12&i)>>2,3&i),e.g.m=t);else if(146===n)i=va(t).value,t=va(t).value,e.g&&((e=e.g).h=15&i,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),i=va(t).value,t.skip(1),e.g&&(e.g.D=3&i);else if(152<=n&&159>=n){if(n=(15&n)-8,!(r=null!==e.h[n])){var a=new aa;a.j=i,e.h[n]=a}i=va(t).value,va(t),va(t),a=va(t).value;var o=va(t).value;t=va(t).value,r&&0==(7&t)||((t=e.h[n]).h=0,t.g=0,t.u=!1,t.o=!1,t.s="white",t.m="black"),(t=e.h[n]).l=0<(32&i),t.F=1+(15&a),t.C=1+(63&o),e.g=e.h[n]}}}return null}function Ta(e,t){for(var n=[],i=0;8>i;i++)1==(1&t)&&e.h[i]&&n.push(i),t>>=1;return n}function wa(e,t,n){for(var i=null,r=(t=l(Ta(e,t))).next();!r.done;r=t.next()){r=r.value;var a=e.h[r];a.isVisible()&&(i=ca(a,n,e.i)),e.h[r]=null}return i}function xa(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function Sa(e,t,n){var i={0:0,1:0,2:1,3:1};return ka[(e=i[e])<<2|(t=i[t])<<1|(n=i[n])]}ma.prototype.ma=function(){return this.gthis.h.length)throw new Ne(2,2,3e3);this.g+=e};var Ea=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),ka="black blue green cyan red magenta yellow white".split(" ");function Aa(){this.h=[],this.g=[],this.i=new pa,this.l=0,this.s=new Map([["CC1",new Yr(0,0)],["CC2",new Yr(0,1)],["CC3",new Yr(1,0)],["CC4",new Yr(1,1)]]),this.o=this.m=0,this.j=new Map,Ia(this)}function Ia(e){e.m=0,e.o=0;for(var t=(e=l(e.s.values())).next();!t.done;t=e.next())(t=t.value).h=2,t.g=t.i,t.m=null,jr(t.i),jr(t.l),jr(t.o)}function Ca(e,t){var n=t.type;if(16==(112&t.xa)){var i=t.xa>>3&1;0===n?e.m=i:e.o=i}if(n=e.s.get("CC"+(n<<1|(n?e.o:e.m)+1)),255===t.xa&&255===t.Ma||!t.xa&&!t.Ma||!Ra(t.xa)||!Ra(t.Ma))return 45<=++e.l&&Ia(e),null;if(e.l=0,t.xa&=127,t.Ma&=127,!t.xa&&!t.Ma)return null;if(i=null,16==(112&t.xa))e:{var r=t.xa;if(i=t.Ma,n.m===(r<<8|i))n.m=null;else if(n.m=r<<8|i,16==(240&r)&&64==(192&i)){r=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&r)<<1|i>>5&1];var a=(30&i)>>1,o="white",s=!1;if(7>a?o=ra[a]:7===a&&(s=!0),i=1==(1&i),n.h!==na){if(a=n.g,n.h===ta&&r!==a.g){var u=1+r-a.h;Br(a,u,1+a.g-a.h,a.h),Fr(a,0,u-1),Fr(a,r+1,15-r)}a.g=r,n.g.m=i,n.g.j=s,n.g.l=o,n.g.o="black"}}else if(17==(247&r)&&32==(240&i))n.g.m=!1,n.g.j=!1,n.g.l="white",Ur(n.g,Vr,32),o=!1,"white_italics"===(r=ra[(14&i)>>1])&&(r="white",o=!0),n.g.m=1==(1&i),n.g.j=o,n.g.l=r;else if(16==(247&r)&&32==(240&i)||23==(247&r)&&45==(255&i))o="black",0==(7&r)&&(o=ia[(14&i)>>1]),n.g.o=o;else if(17==(247&r)&&48==(240&i))Ur(n.g,Hr,i);else if(18==(246&r)&&32==(224&i))Ur(n.g,1&r?Kr:qr,i);else if(20==(246&r)&&32==(240&i)){switch(i=t.pts,r=null,t.Ma){case 32:Qr(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:r=$r(n,2,i);break;case 38:r=$r(n,3,i);break;case 39:r=$r(n,4,i);break;case 40:Ur(n.g,Vr,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.j=i;break;case 42:jr(n.o),Jr(n);break;case 43:Jr(n);break;case 44:r=n.i,o=null,n.h!==na&&(o=Or(r,n.j,i)),Fr(r,0,15),r=o;break;case 45:r=n.g,n.h!==ta?r=null:(o=Or(r,n.j,i),Br(r,(s=r.g-r.h+1)-1,s,r.h),Fr(r,0,s-1),Fr(r,r.g,15-r.g),n.j=i,r=o);break;case 46:Fr(n.l,0,15);break;case 47:r=null,n.h!==na&&(r=Or(n.i,n.j,i)),o=n.l,n.l=n.i,n.i=o,Qr(n),n.j=i}i=r;break e}i=null}else r=t.Ma,Ur(n.g,Vr,t.xa),Ur(n.g,Vr,r);return i}function Ma(e,t){var n=[];try{for(;t.ma();){var i=va(t).value,r=(224&i)>>5,a=31&i;if(7===r&&0!=a&&(r=63&va(t).value),0!=r){e.j.has(r)||e.j.set(r,new ya(r));for(var o=e.j.get(r),s=t.$();t.$()-s=l){var d=c;if(o.g){var f=o.g;switch(r=null,l){case 8:!la(f)||0>=f.g&&0>=f.h||(0>=f.g?(f.g=f.C-1,f.h--):f.g--,f.i[f.h][f.g]=null);break;case 13:if(f.isVisible()&&(r=ca(f,d,o.i)),f.h+1>=f.F){d=f;for(var h=0,p=1;15>p;p++,h++)d.i[h]=d.i[p];for(p=0;1>p;p++,h++)d.i[h]=sa()}else f.h++;f.g=0;break;case 14:f.isVisible()&&(r=ca(f,d,o.i)),f.i[f.h]=sa(),f.g=0;break;case 12:f.isVisible()&&(r=ca(f,d,o.i)),oa(f),(d=f).h=0,d.g=0}var g=r}else g=null}else if(128<=l&&159>=l)g=ba(o,r,l,c);else{if(4096<=l&&4127>=l)8<=(d=255&l)&&15>=d?r.skip(1):16<=d&&23>=d?r.skip(2):24<=d&&31>=d&&r.skip(3);else if(4224<=l&&4255>=l)128<=(d=255&l)&&135>=d?r.skip(4):136<=d&&143>=d&&r.skip(5);else if(32<=l&&127>=l)r=l,o.g&&ua(o.g,127===r?"♪":String.fromCharCode(r));else if(160<=l&&255>=l)o.g&&ua(o.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(r=255&l,o.g)if(Ea.has(r)){var m=Ea.get(r);ua(o.g,m)}else ua(o.g,"_")}else 4256<=l&&4351>=l&&o.g&&ua(o.g,160!=(255&l)?"_":"[CC]");g=null}(r=g)&&n.push(r)}}}}catch(e){if(!(e instanceof Ne&&3e3===e.code))throw e;W("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function Ra(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function Da(e,t){var n=null,i=null,r=e.N();return 1&t&&e.skip(8),2&t&&e.skip(4),8&t&&(n=e.N()),16&t&&(i=e.N()),{trackId:r,re:n,hf:i}}function Na(e,t){return{le:1==t?e.Jb():e.N()}}function _a(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),{timescale:e.N()}}function La(e,t,n){var i=e.N(),r=[];1&n&&e.skip(4),4&n&&e.skip(4);for(var a=0;a>2,f=a.Ra(),h=a.Ra();d&&(0===(u&=3)||1===u?i.h.push({pts:r,type:u,xa:f,Ma:h,order:i.h.length}):(i.g.push({pts:r,type:u,value:f,order:i.g.length}),i.g.push({pts:r,type:2,value:h,order:i.g.length})))}}}}return function(e){function t(e,t){return e.pts-t.pts||e.order-t.order}var n=[];e.h.sort(t),e.g.sort(t);for(var i=l(e.h),r=i.next();!r.done;r=i.next())(r=Ca(e,r.value))&&n.push(r);for(r=(i=l(e.g)).next();!r.done;r=i.next())ga(e.i,r.value);for(r=(i=l(e.i.i)).next();!r.done;r=i.next())r=Ma(e,r.value),n.push.apply(n,c(r));return e.i.i=[],e.h=[],e.g=[],n}(e.g)}function Ua(e,t,n,i){this.ya=e,this.Ca=t,this.la=n,this.Id=void 0===i?null:i}function Ba(e,t,n,i,r,a,o,s,u,l,c,d,f,h,p){l=void 0===l?[]:l,h=void 0===h?Fa:h,this.startTime=e,this.j=this.endTime=t,this.o=n,this.Ca=i,this.la=r,this.i=a,this.timestampOffset=o,this.appendWindowStart=s,this.appendWindowEnd=u,this.h=l,this.tilesLayout=void 0===c?"":c,this.m=void 0===d?null:d,this.g=void 0===f?null:f,this.status=h,this.l=void 0===p?null:p}Pa.prototype.init=function(e){var t=this,n=[],i=[];if((new Hi).box("moov",qi).box("mvex",qi).U("trex",(function(e){var n=e.reader;n.skip(4),n.skip(4),e=n.N(),n=n.N(),t.g=e,t.h=n})).box("trak",qi).U("tkhd",(function(e){var t=e.reader;1==e.version?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4)),e=t.N(),n.push(e)})).box("mdia",qi).U("mdhd",(function(e){e=_a(e.reader,e.version),i.push(e.timescale)})).parse(e,!0),!n.length||!i.length||n.length!=i.length)throw new Ne(2,2,2010);n.forEach((function(e,n){t.i.set(e,i[n])}))},Pa.prototype.parse=function(e){var t=this,n=[],i=this.g,r=this.h,a=[],o=null,s=9e4;return(new Hi).box("moof",qi).box("traf",qi).U("trun",(function(e){a=La(e.reader,e.version,e.flags).Ke})).U("tfhd",(function(e){e=Da(e.reader,e.flags),i=e.re||t.g,r=e.hf||t.h,e=e.trackId,t.i.has(e)&&(s=t.i.get(e))})).U("tfdt",(function(e){o=Na(e.reader,e.version).le})).box("mdat",(function(e){if(null===o)throw new Ne(2,2,2010);e=e.reader;var t=o,u=s,d=i,f=r,h=a,p=0,g=f;for(h.length&&(g=h[0].sampleSize||f);e.ma();){var m=e.N();if(6==(31&e.Ra())){var v=0;h.length>p&&(v=h[p].ad||0),v=(t+v)/u;for(var y,b=[],T=e.Za(m-1),w=y=0;wp?t+(h[p].Vd||d):t+d,p++,g=h.length>p&&h[p].sampleSize||f)}})).parse(e,!1),n},Oa.prototype.init=function(e){this.h.init(e)},Ua.prototype.ic=function(){return this.Ca},Ua.prototype.dc=function(){return this.la},F("shaka.media.InitSegmentReference",Ua),Ua.prototype.getEndByte=Ua.prototype.dc,Ua.prototype.getStartByte=Ua.prototype.ic,(i=Ba.prototype).ya=function(){return this.o()},i.getStartTime=function(){return this.startTime},i.qf=function(){return this.endTime},i.ic=function(){return this.Ca},i.dc=function(){return this.la},i.Hf=function(){return this.tilesLayout},i.Gf=function(){return this.m},i.Cb=function(){return this.status},i.Of=function(){this.status=Va},F("shaka.media.SegmentReference",Ba),Ba.prototype.markAsUnavailable=Ba.prototype.Of,Ba.prototype.getStatus=Ba.prototype.Cb,Ba.prototype.getTileDuration=Ba.prototype.Gf,Ba.prototype.getTilesLayout=Ba.prototype.Hf,Ba.prototype.getEndByte=Ba.prototype.dc,Ba.prototype.getStartByte=Ba.prototype.ic,Ba.prototype.getEndTime=Ba.prototype.qf,Ba.prototype.getStartTime=Ba.prototype.getStartTime,Ba.prototype.getUris=Ba.prototype.ya;var Fa=0,Va=1;function Ha(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:1==e.length&&0>e.start(0)?0:e.length?e.start(0):null}function qa(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function Ka(e,t){return!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t>=e.start(0)}function Ga(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,i=l(za(e)),r=i.next();!r.done;r=i.next()){var a=r.value;r=a.start,(a=a.end)>t&&(n+=a-Math.max(r,t))}return n}function za(e){if(!e)return[];for(var t=[],n=0;n=e.l&&t.startTimen&&(n+=.001),e.h[t].timestampOffset=n,io(e,t)}))),T(k,ro(e,t,(function(){e.h[t].appendBuffer(n)})),15);case 15:w(k)}}))}function eo(e,t){return N((function(n){return t==nt.X?e.g?T(n,e.g.remove(0,1/0),0):n.return():T(n,ro(e,t,(function(){return to(e,t,0,e.l.duration)})),0)}))}function to(e,t,n,i){i<=n?io(e,t):e.h[t].remove(n,i)}function no(e,t){var n=e.h[t].appendWindowStart,i=e.h[t].appendWindowEnd;e.h[t].abort(),e.h[t].appendWindowStart=n,e.h[t].appendWindowEnd=i,io(e,t)}function io(e,t){var n=e.i[t][0];n&&(n.p.resolve(),oo(e,t))}function ro(e,t,n){return Di(e.D),n={start:n,p:new rt},e.i[t].push(n),1==e.i[t].length&&so(e,t),n.p}function ao(e,t){var n,i,r,a,o;return N((function(s){switch(s.g){case 1:for(r in Di(e.D),n=[],i={},e.h)i.Sb=new rt,a={start:function(e){return function(){return e.Sb.resolve()}}(i),p:i.Sb},e.i[r].push(a),n.push(i.Sb),1==e.i[r].length&&a.start(),i={Sb:i.Sb};return x(s,2),T(s,Promise.all(n),4);case 4:E(s,3);break;case 2:throw k(s);case 3:try{t()}catch(e){throw new Ne(2,3,3015,e)}finally{for(o in e.h)oo(e,o)}w(s)}}))}function oo(e,t){e.i[t].shift(),so(e,t)}function so(e,t){var n=e.i[t][0];if(n)try{n.start()}catch(i){"QuotaExceededError"==i.name?n.p.reject(new Ne(2,3,3017,t)):n.p.reject(new Ne(2,3,3015,i)),oo(e,t)}}Ba.Status={tg:Fa,Zg:Va,Ig:2},(i=Wa.prototype).destroy=function(){return this.D.destroy()},i.init=function(e,t,n){n=void 0!==n&&n;var i,r,a,o,s,u,c,d=this;return N((function(f){if(1==f.g)return i=nt,T(f,d.G,2);for(d.s=n,r={},a=l(e.keys()),o=a.next();!o.done;r={pa:r.pa},o=a.next())r.pa=o.value,s=e.get(r.pa),u=Bt(s.mimeType,s.codecs),r.pa==i.X?Xa(d,u,n):(!t&&MediaSource.isTypeSupported(u)||!Pt(u,r.pa)||(d.u[r.pa]=new Lt,u=jt(r.pa,u)),c=d.l.addSourceBuffer(u),d.o.B(c,"error",function(e){return function(){d.i[e.pa][0].p.reject(new Ne(2,3,3014,d.j.error?d.j.error.code:0))}}(r)),d.o.B(c,"updateend",function(e){return function(){return io(d,e.pa)}}(r)),d.h[r.pa]=c,d.M[r.pa]=u,d.i[r.pa]=[],d.L[r.pa]=!!s.drmInfos.length);w(f)}))},i.Na=function(){var e={total:za(this.j.buffered),audio:za(Ja(this,"audio")),video:za(Ja(this,"video")),text:[]};if(this.g){var t=this.g.g,n=this.g.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},i.remove=function(e,t,n){var i=this;return N((function(r){return T(r,e==nt.X?i.g.remove(t,n):ro(i,e,(function(){return to(i,e,t,n)})),0)}))},i.flush=function(e){var t=this;return N((function(n){return e==nt.X?n.return():T(n,ro(t,e,(function(){t.j.currentTime-=.001,io(t,e)})),0)}))},i.endOfStream=function(e){var t=this;return N((function(n){return T(n,ao(t,(function(){Ya(t)||(e?t.l.endOfStream(e):t.l.endOfStream())})),0)}))},i.Ia=function(e){var t=this;return N((function(n){return T(n,ao(t,(function(){if(en.end-.5)){t=!0;break e}t=!1}return t}function mo(e,t,n,i,r){var a=this;this.o=r,this.g=e,this.s=t,this.D=n,this.i=new Ni,this.m=!1,this.C=e.readyState,this.u=0,this.h=i,this.l=!1,this.i.B(e,"waiting",(function(){return vo(a)})),this.j=new st((function(){vo(a)})).Da(.25)}function vo(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.m)return}else e.m=!1;if(!e.g.paused||0==e.g.currentTime&&(e.g.autoplay||0!=e.g.currentTime)){var t;if(e.g.readyState!=e.C&&(e.C=e.g.readyState),!(t=!e.h)){var n=(t=e.h).j,i=go(n),r=n.g.currentTime,a=Date.now()/1e3;t.g==r&&t.s==i||(t.m=a,t.g=r,t.s=i,t.h=!1),(i=(r=a-t.m)>=t.u&&i&&!t.h)&&(t.i(t.g,r),t.h=!0,t.g=n.g.currentTime,t.o++,t.l(new hi("stalldetected"))),t=!i}t&&(t=e.g.currentTime,i=function(e,t,n){return!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)?null:0<=(e=za(e).findIndex((function(e,i,r){return e.start>t&&(0==i||r[i-1].end-t<=n)})))?e:null}(n=e.g.buffered,t,e.D.gapDetectionThreshold),null==i||0==i&&!e.l||((r=n.start(i))>=e.s.Oa()||.001>r-t||(0!=i&&n.end(i-1),e.g.currentTime=r,e.u++,e.o(new hi("gapjumped")))))}}}function yo(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?i():(t=bo.value().get(t),n.oa(e,t,i))}(i=fo.prototype).getDuration=function(){return this.i},i.xf=function(){return this.g},i.Ia=function(e){this.i=e},i.Cf=function(){return this.l},i.Oe=function(e){this.o=e},i.wc=function(e){this.s=e},i.ce=function(e){this.m=e},i.jg=function(e){this.$c=e},i.pf=function(){return this.$c},i.Gb=function(e){if(0!=e.length){var t=e[e.length-1].endTime;this.Md(e[0].startTime),this.g=e.reduce((function(e,t){return Math.max(e,t.endTime-t.startTime)}),this.g),this.h=Math.max(this.h,t),null!=this.l&&this.C&&!this.F&&(this.l=(Date.now()+this.o)/1e3-this.h-this.g)}},i.Gd=function(){this.F=!0},i.Md=function(e){this.j=null==this.j?e:Math.min(this.j,e)},i.Ld=function(e){this.g=Math.max(this.g,e)},i.offset=function(e){null!=this.j&&(this.j+=e),null!=this.h&&(this.h+=e)},i.V=function(){return 1/0==this.i&&!this.s},i.jb=function(){return 1/0!=this.i&&!this.s},i.Pa=function(){return Math.max(this.u,this.gb()-this.m)},i.Pe=function(e){this.u=e},i.gb=function(){return this.V()||this.jb()?Math.min(Math.max(0,(Date.now()+this.o)/1e3-this.g-this.l)+this.D,this.i):this.h?Math.min(this.h,this.i):this.i},i.hc=function(e){var t=Math.max(this.j,this.u);return 1/0==this.m?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.gb()-this.m+e,this.Oa()))},i.Bb=function(){return this.hc(0)},i.Oa=function(){return Math.max(0,this.gb()-(this.V()||this.jb()?this.$c:0))},i.Se=function(){return!(null==this.l||null!=this.h&&this.C)},i.Ne=function(e){this.D=e},F("shaka.media.PresentationTimeline",fo),fo.prototype.setAvailabilityTimeOffset=fo.prototype.Ne,fo.prototype.usingPresentationStartTime=fo.prototype.Se,fo.prototype.getSeekRangeEnd=fo.prototype.Oa,fo.prototype.getSeekRangeStart=fo.prototype.Bb,fo.prototype.getSafeSeekRangeStart=fo.prototype.hc,fo.prototype.getSegmentAvailabilityEnd=fo.prototype.gb,fo.prototype.setUserSeekStart=fo.prototype.Pe,fo.prototype.getSegmentAvailabilityStart=fo.prototype.Pa,fo.prototype.isInProgress=fo.prototype.jb,fo.prototype.isLive=fo.prototype.V,fo.prototype.offset=fo.prototype.offset,fo.prototype.notifyMaxSegmentDuration=fo.prototype.Ld,fo.prototype.notifyMinSegmentStartTime=fo.prototype.Md,fo.prototype.lockStartTime=fo.prototype.Gd,fo.prototype.notifySegments=fo.prototype.Gb,fo.prototype.getDelay=fo.prototype.pf,fo.prototype.setDelay=fo.prototype.jg,fo.prototype.setSegmentAvailabilityDuration=fo.prototype.ce,fo.prototype.setStatic=fo.prototype.wc,fo.prototype.setClockOffset=fo.prototype.Oe,fo.prototype.getPresentationStartTime=fo.prototype.Cf,fo.prototype.setDuration=fo.prototype.Ia,fo.prototype.getMaxSegmentDuration=fo.prototype.xf,fo.prototype.getDuration=fo.prototype.getDuration,ho.prototype.release=function(){this.l=this.j=null,this.i=function(){}},mo.prototype.release=function(){this.i&&(this.i.release(),this.i=null),null!=this.j&&(this.j.stop(),this.j=null),this.h&&(this.h.release(),this.h=null),this.g=this.s=this.o=null},mo.prototype.Pd=function(){this.l=!0,vo(this)};var bo=new at((function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])}));function To(e,t,n){var i=this;this.g=e,this.l=t,this.j=n,this.m=!1,this.h=new Ni,this.i=new ko(e),yo(this.g,HTMLMediaElement.HAVE_METADATA,this.h,(function(){So(i,i.j)}))}function wo(e){return e.m?e.g.currentTime:e.j}function xo(e,t){0Math.abs(e.g.currentTime-t)?Eo(e):(e.h.oa(e.g,"seeking",(function(){Eo(e)})),Ao(e.i,0==e.g.currentTime?t:e.g.currentTime))}function Eo(e){e.m=!0,e.h.B(e.g,"seeking",(function(){return e.l()}))}function ko(e){var t=this;this.h=e,this.m=10,this.l=this.j=this.i=0,this.g=new st((function(){0>=t.i||t.h.currentTime!=t.j?t.g.stop():(t.h.currentTime=t.l,t.i--)}))}function Ao(e,t){e.j=e.h.currentTime,e.l=t,e.i=e.m,e.h.currentTime=t,e.g.Da(.1)}function Io(e){var t=this;this.g=e,this.j=!1,this.h=null,this.i=new Ni,yo(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,(function(){null==t.h||0==t.h?t.j=!0:(t.i.oa(t.g,"seeking",(function(){t.j=!0})),t.g.currentTime=Math.max(0,t.g.currentTime+t.h))}))}function Co(e,t,n,i,r,a){var o=this;this.i=e,this.g=t.presentationTimeline,this.C=t.minBufferTime||0,this.l=n,this.s=r,this.o=null,this.u=function(e,t,n){if(!t.stallEnabled)return null;var i=t.stallSkip;return function(e,t){e.i=t}(t=new ho(new po(e),t.stallThreshold,n),(function(){i?e.currentTime+=i:(e.pause(),e.play())})),t}(e,n,a),this.j=new mo(e,t.presentationTimeline,n,this.u,a),this.h=new To(e,(function(){var e=o.j;e.m=!0,e.l=!1;var t=wo(o.h);return e=Ro(o,t),.001e.g.getDuration()?e.g.Bb():e.g.Oa():0>t&&(t=e.g.Oa()+t),Mo(e,Do(e,t))}(this,i)),this.m=new st((function(){if(0!=o.i.readyState&&!o.i.paused){var e=wo(o.h),t=o.g.Bb(),n=o.g.Oa();3>n-t&&(t=n-3),e=n?n-e.l.durationBackoff:t}function Ro(e,t){var n=Math.max(e.C,e.l.rebufferingGoal),i=e.l.safeSeekOffset,r=e.g.Bb(),a=e.g.Oa(),o=e.g.getDuration();3>a-r&&(r=a-3);var s=e.g.hc(n),u=e.g.hc(i);return n=e.g.hc(n+i),t>=o?Mo(e,t):t>a?a:t=s||Ka(e.i.buffered,t)?t:n}function Do(e,t){var n=e.g.Bb();return t(n=e.g.Oa())?n:t}function No(e){this.J=e,this.g=null,this.h=0,this.i=!1}function _o(e,t,n){return new No([new Ba(e,e+t,(function(){return n}),0,null,null,e,e,e+t)])}function Lo(e,t,n){this.i=e,this.g=t,this.h=n}function Po(){No.call(this,[]),this.j=[]}function Oo(e){var t=this;this.g=e,this.j=!1,this.i=this.g.Qc(),this.h=new st((function(){t.g.De(.25*t.i)}))}function jo(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.Qc()!=t&&e.g.be(t))}catch(e){}e.h.Da(.25),0!=e.g.Qc()&&e.g.be(0)}function Uo(e){var t=this;this.h=e,this.g=new Set,this.i=new st((function(){Bo(t,!1)})).Da(.25)}function Bo(e,t){for(var n=l(e.g),i=n.next();!i.done;i=n.next())i.value.j(e.h.currentTime,t)}function Fo(e){mi.call(this),this.g=new Map,this.h=e}function Vo(e){mi.call(this);var t=this;this.g=new Set,this.i=e,this.h=new st((function(){for(var e=t.i(),n=l(t.g),i=n.next();!i.done;i=n.next())(i=i.value).endTime=i.startTime&&e(e-=this.h)||e>=this.J.length?null:this.J[e]},i.offset=function(e){if(!this.i)for(var t=l(this.J),n=t.next();!n.done;n=t.next()){(n=n.value).startTime+=e,n.endTime+=e,n.j+=e;for(var i=(n=l(n.h)).next();!i.done;i=n.next())(i=i.value).startTime+=e,i.endTime+=e,i.j+=e}},i.nc=function(e){!this.i&&e.length&&(this.J=this.J.filter((function(t){return t.startTimet&&(0==n.J.length||e.endTime>n.J[0].startTime)})),this.nc(e),this.eb(t)},i.eb=function(e){if(!this.i){var t=this.J.length;this.J=this.J.filter((function(t){return t.endTime>e})),this.h+=t-this.J.length}},i.Xa=function(e,t,n){if(n=void 0!==n&&n,!this.i){for(;this.J.length&&this.J[this.J.length-1].startTime>=t;)this.J.pop();for(;this.J.length&&this.J[0].endTime<=e;)this.J.shift(),n||this.h++;0!=this.J.length&&(e=this.J[this.J.length-1],this.J[this.J.length-1]=new Ba(e.startTime,t,e.o,e.Ca,e.la,e.i,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.h,e.tilesLayout,e.m,e.g,e.status,e.l))}},i.bd=function(e,t){var n=this;this.i||(this.g&&this.g.stop(),this.g=new st((function(){var e=t();e?n.J.push.apply(n.J,c(e)):(n.g.stop(),n.g=null)})),this.g.Da(e))},No.prototype[Symbol.iterator]=function(){return this.Ab(0)},No.prototype.Ab=function(e){var t=this.find(e);if(null==t)return null;t--;var n=this.get(t+1),i=-1;if(n&&0=a.startTime&&e=e.h.length&&(this.g++,this.h=0,e=this.i.get(this.g)),e&&0=a[0].start&&ri.endTime?zo:Go;this.g.set(i,a);for(var o=l(this.l),s=o.next();!s.done;s=o.next())(s=s.value).qb==r&&s.pb==a&&s.ib(i,t)}};var Ko=1,Go=2,zo=3;function Wo(e,t,n,i,r){return e=Si(e,i,r),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Xo(e,t){var n=this;this.g=t,this.m=e,this.j=null,this.u=1,this.o=this.l=null,this.i=new Map,this.C=!1,this.D=null,this.s=!1,this.h=new Ri((function(){return function(e){var t,n,i,r;return N((function(a){if(1==a.g){for(t=[],n=l(e.i.values()),i=n.next();!i.done;i=n.next())ss(r=i.value),t.push(us(r));return T(a,Promise.all(t),2)}e.i.clear(),e.g=null,e.m=null,e.j=null,w(a)}))}(n)}))}function Yo(e,t){var n=e.i.get("video");if(n){var i=n.stream;if(i)if(t){var r=i.trickModeVideo;r&&!n.nb&&(Jo(e,r,!1,0,!1),n.nb=i)}else(i=n.nb)&&(n.nb=null,Jo(e,i,!0,0,!1))}}function $o(e,t,n,i,r,a){n=void 0!==n&&n,i=void 0===i?0:i,r=void 0!==r&&r,a=void 0!==a&&a,e.l=t,e.C&&(t.video&&Jo(e,t.video,n,i,r,a),t.audio&&Jo(e,t.audio,n,i,r,a))}function Qo(e,t){e.o=t,e.C&&Jo(e,t,!0,0,!1)}function Jo(e,t,n,i,r,a){var o=e.i.get(t.type);o||t.type!=tt?o&&(o.nb&&(t.trickModeVideo?(o.nb=t,t=t.trickModeVideo):o.nb=null),o.stream!=t||r)&&(t.type==tt&&Xa(e.g.P,Bt(t.mimeType,t.codecs),e.m.sequenceMode),o.stream.closeSegmentIndex&&o.stream.closeSegmentIndex(),o.stream=t,o.ba=null,o.ke=!!a,n&&(o.ac?o.ed=!0:o.Ba?(o.ab=!0,o.Hc=i,o.ed=!0):(ss(o),as(e,o,!0,i).catch((function(t){e.g&&e.g.onError(t)})))),function(e,t){var n,i;return N((function(r){if(1==r.g)return t.ta?(n=t.stream,i=t.ta,n.segmentIndex?r.A(2):T(r,n.createSegmentIndex(),2)):r.return();if(t.ta!=i||t.stream!=n)return r.return();var a=e.g.Pc(),o=Qa(e.g.P,t.type),s=t.stream.segmentIndex.find(t.za?t.za.endTime:a),u=null==s?null:t.stream.segmentIndex.get(s);s=u&&u.la?u.la-u.Ca:null,u&&!s&&(s=(u.endTime-u.getStartTime())*(t.stream.bandwidth||0)/8),s?((u=u.i)&&(s+=(u.la?u.la-u.Ca:null)||0),a=8*s/(u=e.g.getBandwidthEstimate())<(o||0)-a-Math.max(e.m.minBufferTime||0,e.j.rebufferingGoal)||t.ta.h.g>s):a=!1,a&&t.ta.abort(),w(r)}))}(e,o).catch((function(t){e.g&&e.g.onError(t)}))):function(e,t){var n,i,r,a;N((function(o){switch(o.g){case 1:return n=nt,x(o,2),T(o,eo(e.g.P,n.X),4);case 4:E(o,3);break;case 2:i=k(o),e.g&&e.g.onError(i);case 3:r=Bt(t.mimeType,t.codecs),Xa(e.g.P,r,e.m.sequenceMode),(e.g.P.m.isTextVisible()||e.j.alwaysStreamText)&&(a=es(t),e.i.set(n.X,a),os(e,a,0)),w(o)}}))}(e,t)}function Zo(e,t){t.ac||t.ab||(t.Ba?(t.ab=!0,t.Hc=0):null==$a(e.g.P,t.type)?null==t.Ka&&os(e,t,0):(ss(t),as(e,t,!1,0).catch((function(t){e.g&&e.g.onError(t)}))))}function es(e){return{stream:e,type:e.type,ba:null,za:null,Uc:null,Fd:null,Ed:null,Dd:null,nb:null,endOfStream:!1,Ba:!1,Ka:null,ab:!1,Hc:0,ed:!1,ac:!1,tc:!0,Td:!1,jc:!1,ta:null}}function ts(t,n){var i,r,a,o,s;return N((function(u){switch(u.g){case 1:if(Di(t.h),n.Ba||null==n.Ka||n.ac)return u.return();if(n.Ka=null,!n.ab){u.A(2);break}return T(u,as(t,n,n.ed,n.Hc),3);case 3:return u.return();case 2:if(n.stream.segmentIndex){u.A(4);break}return i=n.stream,T(u,n.stream.createSegmentIndex(),5);case 5:if(i!=n.stream)return i.closeSegmentIndex&&i.closeSegmentIndex(),null==n.Ka&&os(t,n,0),u.return();case 4:x(u,6),r=function(t,n){if(is(n))return function(e,t){var n=Qa(e,"video")||0;zt(e.g,t,n)}(t.g.P,n.stream.originalId||""),null;n.type==tt&&function(e){e.g&&zt(e.g,"",0)}(t.g.P);var i=t.g.Pc(),r=n.za?n.za.endTime:i,a=function(e,t,n){return t==tt?null==(e=e.g).h||e.hs&&u)return n.endOfStream=!0,"video"==n.type&&(i=t.i.get(tt))&&is(i)&&(i.endOfStream=!0),null;if(n.endOfStream=!1,a>=o)return t.j.updateIntervalSeconds/2;if(a=function(e,t,n,i){if(t.ba)return t.ba.current();if(t.za||i)return t.ba=t.stream.segmentIndex.Ab(t.za?t.za.endTime:i),t.ba&&t.ba.next().value;e=e.j.inaccurateManifestTolerance,i=Math.max(n-e,0);var r=null;return e&&(t.ba=t.stream.segmentIndex.Ab(i),r=t.ba&&t.ba.next().value),r||(t.ba=t.stream.segmentIndex.Ab(n),r=t.ba&&t.ba.next().value),r}(t,n,i,u),!a)return t.j.updateIntervalSeconds;for(o=1/0,s=l(s=Array.from(t.i.values())),u=s.next();!u.done;u=s.next())is(u=u.value)||u.ba&&!u.ba.current()||(o=Math.min(o,u.za?u.za.endTime:i));return r>=o+t.m.presentationTimeline.g?t.j.updateIntervalSeconds:(function(t,n,i,r){var a,o,s,u,l,c,d,f,h,p,g,m,v,y;return N((function(b){switch(b.g){case 1:if(a=nt,o=n.stream,s=n.ba,n.Ba=!0,x(b,2),2==r.Cb())throw new Ne(1,1,1011);return T(b,function(e,t,n){var i,r,a,o,s,u,l;return N((function(c){return i=[],r=Math.max(0,n.appendWindowStart-.1),a=n.appendWindowEnd+.01,(o=n.timestampOffset)==t.Fd&&r==t.Ed&&a==t.Dd||(s=function(){var n;return N((function(i){if(1==i.g)return x(i,2),t.Ed=r,t.Dd=a,t.Fd=o,T(i,function(e,t,n,i,r,a){return N((function(o){return t==nt.X?(a||(e.g.s=n),function(e,t,n){e.l=t,e.m=n}(e.g,i,r),o.return()):T(o,Promise.all([ro(e,t,(function(){return no(e,t)})),a?Promise.resolve():ro(e,t,(function(){var i=n;0>i&&(i+=.001),e.h[t].timestampOffset=i,io(e,t)})),ro(e,t,(function(){e.h[t].appendWindowStart=0,e.h[t].appendWindowEnd=r,e.h[t].appendWindowStart=i,io(e,t)}))]),0)}))}(e.g.P,t.type,o,r,a,e.m.sequenceMode),4);if(2!=i.g)return E(i,0);throw n=k(i),t.Ed=null,t.Dd=null,t.Fd=null,n}))},i.push(s())),!function(e,t){return e&&t?e.ic()==t.ic()&&e.dc()==t.dc()&&te(e.ya(),t.ya()):e==t}(n.i,t.Uc)&&(t.Uc=n.i)&&(u=rs(e,t,n.i),l=function(){var n,i,r;return N((function(a){switch(a.g){case 1:return x(a,2),T(a,u,4);case 4:return n=a.h,Di(e.h),i=t.stream.closedCaptions&&0>=8;return u.return(e.crypto.subtle.decrypt({name:"AES-CBC",iv:a},r.cryptoKey,t))}))}(c,r,s),9);case 9:c=b.h;case 8:return Di(t.h),n.ab?(n.Ba=!1,os(t,n,0),b.return()):T(b,ns(t,n,i,o,r,c),6);case 11:if(g=b.h,h){b.A(6);break}return f=!0,Di(t.h),t.s?b.return():n.ab?(n.Ba=!1,os(t,n,0),b.return()):T(b,ns(t,n,i,o,r,g),6);case 6:if(Di(t.h),t.s)return b.return();n.za=r,s.next(),n.Ba=!1,n.Td=!1,m=t.g.P.Na(),v=m[n.type],JSON.stringify(v),n.ab||t.g.Pd(),os(t,n,0),E(b,0);break;case 2:if(y=k(b),Di(t.h,y),t.s)return b.return();if(n.Ba=!1,7001==y.code)n.Ba=!1,n.Ka=null,os(t,n,0),b.A(0);else if(n.type==a.X&&t.j.ignoreTextStreamFailures)t.i.delete(a.X),b.A(0);else if(3017==y.code)(function(e,t,n){if(!Array.from(e.i.values()).some((function(e){return e!=t&&e.Td}))){var i=Math.round(100*e.u);if(20=(a=n-r-i)?o.return():T(o,e.g.P.remove(t.type,r,r+a),2);Di(e.h),w(o)}))}(e,t,n),2);case 2:return Di(e.h),s=t.tc,t.tc=!1,u=t.ke,t.ke=!1,T(l,e.g.me(t.type,a),3);case 3:return T(l,Za(e.g.P,t.type,a,r,o,s,u),4);case 4:Di(e.h),w(l)}}))}function is(e){return e&&e.type==tt&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function rs(e,t,n,i){var r,a,o,s,u;return N((function(l){return 1==l.g?(r=Ii,a=Wo(n.ya(),n.Ca,n.la,e.j.retryParameters,i),o=t.stream,e.g.modifySegmentRequest(a,{type:o.type,init:n instanceof Ua,duration:n.endTime-n.startTime,mimeType:o.mimeType,codecs:o.codecs,bandwidth:o.bandwidth}),s=e.g.kb.request(r,a),t.ta=s,T(l,s.promise,2)):(u=l.h,t.ta=null,l.return(u.data))}))}function as(e,t,n,i){var r,a;return N((function(o){return 1==o.g?(t.ab=!1,t.ed=!1,t.Hc=0,t.ac=!0,t.za=null,t.Uc=null,t.ba=null,i?(r=e.g.Pc(),a=e.g.P.getDuration(),T(o,e.g.P.remove(t.type,r+i,a),3)):T(o,eo(e.g.P,t.type),4)):3!=o.g?(Di(e.h),n?T(o,e.g.P.flush(t.type),3):o.A(3)):(Di(e.h),t.ac=!1,t.endOfStream=!1,os(e,t,0),void w(o))}))}function os(e,t,n){var i=t.type;(i!=tt||e.i.has(i))&&(t.Ka=new ot((function(){var n;return N((function(i){return 1==i.g?(x(i,2),T(i,ts(e,t),4)):2!=i.g?E(i,0):(n=k(i),e.g&&e.g.onError(n),void w(i))}))})).R(n))}function ss(e){null!=e.Ka&&(e.Ka.stop(),e.Ka=null)}function us(e){return N((function(t){return e.ta?T(t,e.ta.abort(),0):t.A(0)}))}function ls(e,t){return N((function(n){if(1==n.g)return T(n,oi(e.D),2);Di(e.h),e.g.onError(t),t.handled||e.j.failureCallback(t),w(n)}))}function cs(e,t){var n=Hu(),i=this;this.j=t,this.i=e,this.l=n,this.o=null,this.m=[],this.h=this.g=null,this.u=Promise.resolve().then((function(){return function(e){return N((function(t){if(e.s.g)t=t.A(0);else{if(0==e.m.length||e.g&&!e.g.hb)var n=!1;else{e.g&&(e.g.Ha.lb(),e.g=null);var i=(n=e.m.shift()).create(e.l);i?(n.Ha.Hb(),e.g={node:i.node,payload:i.payload,hb:i.hb,Ha:n.Ha}):n.Ha.Yc(),n=!0}n?n=Promise.resolve():e.g?n=function(e){var t,n;return N((function(i){switch(i.g){case 1:return e.i=e.j.zf(e.i,e.l,e.g.node,e.g.payload),x(i,2),e.h=e.j.jf(e.i,e.l,e.g.payload),T(i,e.h.promise,4);case 4:e.h=null,e.i==e.g.node&&(e.g.Ha.Wc(),e.g=null),E(i,0);break;case 2:return 7001==(t=k(i)).code?e.g.Ha.lb():e.g.Ha.onError(t),e.g=null,e.h=null,n=e,T(i,e.j.handleError(e.l,t),5);case 5:n.i=i.h,w(i)}}))}(e):(e.j.Rf(e.i),e.o=new rt,n=e.o),t=T(t,n,1)}return t}))}(i)})),this.s=new Ri((function(){return function(e){var t,n;return N((function(i){if(1==i.g)return e.h&&e.h.abort(),fs(e),T(i,e.u,2);for(e.g&&e.g.Ha.lb(),t=l(e.m),n=t.next();!n.done;n=t.next())n.value.Ha.lb();e.g=null,e.m=[],e.j=null,w(i)}))}(i)}))}function ds(e,t){var n={Hb:function(){},Wc:function(){},lb:function(){},onError:function(){},Yc:function(){},eh:function(){}};return e.m.push({create:t,Ha:n}),e.h&&e.h.abort(),fs(e),n}function fs(e){e.o&&(e.o.resolve(),e.o=null)}function hs(e){this.g=null;for(var t=l(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.g=n);this.g||(this.g=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.g.mode="hidden"}function ps(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}function gs(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var i=l(Array.from(e.cues)),r=i.next();!r.done;r=i.next())(r=r.value)&&t(r)&&e.removeCue(r);e.mode=n}function ms(){}function vs(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function ys(t,n){var i=this;this.j=!1,this.i=[],this.C=t,this.m=n,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.m.appendChild(this.g),this.u=new st((function(){Ts(i)})).Da(.25),this.h=new Map,this.s=new Ni,this.s.B(document,"fullscreenchange",(function(){Ts(i,!0)})),this.l=null,"ResizeObserver"in e&&(this.l=new ResizeObserver((function(){Ts(i,!0)})),this.l.observe(this.g)),this.o=new Map}function bs(e,t,n,i,r){for(var a=!1,o=[],s=[],u=(t=l(t)).next();!u.done;u=t.next()){u=u.value,r.push(u);var c=e.h.get(u),d=u.startTime<=i&&u.endTime>i,f=c?c.Te:null;c&&(o.push(c.wd),c.rc&&o.push(c.rc),d||(a=!0,e.h.delete(u),c=null)),d&&(s.push(u),c||(ws(e,u,r),f=(c=e.h.get(u)).Te,a=!0)),0=i})))?1e3*(n.end-i):NaN}(e,n.type)),n.bandwidth&&(i.br=n.bandwidth/1e3),r&&i.ot!==Ps&&(i.tb=function(e,t){var n=e.h.Ya();if(!n.length)return NaN;for(var i=n[0],r=(n=l(n)).next();!r.done;r=n.next())"variant"===(r=r.value).type&&r.bandwidth>i.bandwidth&&(i=r);switch(t){case Ds:return i.videoBandwidth||NaN;case Rs:return i.audioBandwidth||NaN;default:return i.bandwidth}}(e,i.ot)/1e3),As(e,t,i)}}catch(e){W("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}}function ks(t){return t.j||(t.j=t.g.sessionId||e.crypto.randomUUID()),{v:1,sf:t.o,sid:t.j,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}function As(e,t,n){n=void 0===n?{}:n;var i=void 0===i?e.g.useHeaders:i;if(e.g.enabled){Object.assign(n,ks(e)),n.pr=e.h.Oc();var r=n.ot===Ds||n.ot===Ns;if(e.l&&r&&(n.bs=!0,n.su=!0,e.l=!1),null==n.su&&(n.su=e.m),i)e=function(e){for(var t=Object.keys(e),n={},i=["Object","Request","Session","Status"],r=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},o=(t=l(t)).next();!o.done;o=t.next())o=o.value,r[null!=a[o]?a[o]:1][o]=e[o];for(e=0;e=r.g&&ee?this.g.P.Ia(e):this.g.P.Ia(Math.pow(2,32))},cs.prototype.destroy=function(){return this.s.destroy()},(i=hs.prototype).remove=function(e,t){return!!this.g&&(gs(this.g,(function(n){return n.startTimee})),!0)},i.append=function(e){function t(e){var n=[],i=700<=e.fontWeight,r="italic"==e.fontStyle,a=e.textDecoration.includes("underline");return i&&n.push("b"),r&&n.push("i"),a&&n.push("u"),i=n.reduce((function(e,t){return e+"<"+t+">"}),""),n=n.reduceRight((function(e,t){return e+""}),""),e.lineBreak?"\n":e.nestedCues.length?e.nestedCues.map(t).join(""):i+e.payload+n}var n=function e(n,i){for(var r=l(n),a=r.next();!a.done;a=r.next())if((a=a.value).isContainer)e(a.nestedCues,i);else{var o=a.clone();o.nestedCues=[],o.payload=t(a),i.push(o)}return i}(e,[]),i=[];e=this.g.cues?Array.from(this.g.cues):[];for(var r={},a=(n=l(n)).next();!a.done;r={rb:r.rb},a=n.next())r.rb=a.value,e.some(function(e){return function(t){return t.startTime==e.rb.startTime&&t.endTime==e.rb.endTime&&t.text==e.rb.payload}}(r))||(a=ps(r.rb))&&i.push(a);for(e=i.slice().sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?i.indexOf(t)-i.indexOf(e):i.indexOf(e)-i.indexOf(t)})),r=(e=l(e)).next();!r.done;r=e.next())this.g.addCue(r.value)},i.destroy=function(){return this.g&&(gs(this.g,(function(){return!0})),this.g.mode="disabled"),this.g=null,Promise.resolve()},i.isTextVisible=function(){return"showing"==this.g.mode},i.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},F("shaka.text.SimpleTextDisplayer",hs),hs.prototype.setTextVisibility=hs.prototype.setTextVisibility,hs.prototype.isTextVisible=hs.prototype.isTextVisible,hs.prototype.destroy=hs.prototype.destroy,hs.prototype.append=hs.prototype.append,hs.prototype.remove=hs.prototype.remove,F("shaka.util.Dom",ms),ms.removeAllChildren=vs,(i=ys.prototype).append=function(e){for(var t=[].concat(c(this.i)),n={},i=(e=l(e)).next();!i.done;n={zc:n.zc},i=e.next())n.zc=i.value,t.some(function(e){return function(t){return ie(t,e.zc)}}(n))||this.i.push(n.zc);Ts(this)},i.destroy=function(){this.m.removeChild(this.g),this.g=null,this.j=!1,this.i=[],this.u&&this.u.stop(),this.h.clear(),this.s&&(this.s.release(),this.s=null),this.l&&(this.l.disconnect(),this.l=null)},i.remove=function(e,t){if(!this.g)return!1;var n=this.i.length;return this.i=this.i.filter((function(n){return n.startTime=t})),Ts(this,n>this.i.length),!0},i.isTextVisible=function(){return this.j},i.setTextVisibility=function(e){this.j=e},F("shaka.text.UITextDisplayer",ys),ys.prototype.setTextVisibility=ys.prototype.setTextVisibility,ys.prototype.isTextVisible=ys.prototype.isTextVisible,ys.prototype.remove=ys.prototype.remove,ys.prototype.destroy=ys.prototype.destroy,ys.prototype.append=ys.prototype.append,F("shaka.text.WebVttGenerator",(function(){}));var Ms="m",Rs="a",Ds="v",Ns="av",_s="i",Ls="c",Ps="tt",Os="v",js="l";function Us(){}function Bs(e,t,n,i,r){var a,o=r in i,s=!0;for(a in t){var u=r+"."+a,l=o?i[r]:n[a];o||a in n?void 0===t[a]?void 0===l||o?delete e[a]:e[a]=vi(l):l.constructor==Object&&t[a]&&t[a].constructor==Object?(e[a]||(e[a]=vi(l)),u=Bs(e[a],t[a],l,i,u),s=s&&u):typeof t[a]!=typeof l||null==t[a]||"function"!=typeof t[a]&&t[a].constructor!=l.constructor?(G("Invalid config, wrong type for "+u),s=!1):("function"==typeof n[a]&&n[a].length!=t[a].length&&z("Unexpected number of arguments for "+u),e[a]=t[a]):(G("Invalid config, unrecognized key "+u),s=!1)}return s}function Fs(e,t){for(var n={},i=n,r=0,a=0;!(0>(r=e.indexOf(".",r)));)0!=r&&"\\"==e[r-1]||(i[a=e.substring(a,r).replace(/\\\./g,".")]={},i=i[a],a=r+1),r+=1;return i[e.substring(a).replace(/\\\./g,".")]=t,n}function Vs(e,t){return e&&t}function Hs(){}function qs(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(e,t,n){return Vs([e,t,n],e)},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:ct()},n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"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:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(e){return Vs([e],e)}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"'}},i={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},failureCallback:function(e){return Vs([e],void 0)},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30};(mt("Web0S")||dt()||mt("CrKey"))&&(i.stallSkip=0);var r={trackSelectionCallback:function(e){return N((function(t){return t.return(e)}))},downloadSizeCallback:function(e){var t;return N((function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?T(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))}))},progressCallback:function(e,t){return Vs([e,t],void 0)},usePersistentLicense:!0,numberOfParallelDownloads:5},a={drm:t,manifest:n,streaming:i,offline:r,abrFactory:function(){return new Vn},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,ignoreDevicePixelRatio:!1},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};return r.trackSelectionCallback=function(e){return N((function(t){return t.return(function(e,t){var n=e.filter((function(e){return"variant"==e.type})),i=[],r=an(t,n.map((function(e){return e.language})));r&&(i=n.filter((function(e){return en(e.language)==r}))),0==i.length&&(i=n.filter((function(e){return e.primary}))),0==i.length&&(n.map((function(e){return e.language})),i=n);var a=i.filter((function(e){return e.height&&480>=e.height}));if(a.length&&(a.sort((function(e,t){return t.height-e.height})),i=a.filter((function(e){return e.height==a[0].height}))),n=[],i.length){var o=Math.floor(i.length/2);i.sort((function(e,t){return e.bandwidth-t.bandwidth})),n.push(i[o])}for(i=l(e),o=i.next();!o.done;o=i.next())(o=o.value).type!=tt&&"image"!=o.type||n.push(o);return n}(e,a.preferredAudioLanguage))}))},a}function Ks(e,t,n){var i={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Bs(e,t,n||qs(),i,"")}function Gs(){this.g=null,this.h=[]}function zs(e,t){if(null==e.g)e.g={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0})}}function Ws(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var i=l(e.h),r=i.next();!r.done;r=i.next())n+=(r=r.value).state==t?r.duration:0;return n}function Xs(){this.i=this.h=null,this.g=[]}function Ys(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function $s(){this.u=this.C=this.G=this.D=this.s=this.j=this.F=this.m=this.i=this.O=this.T=this.I=this.L=this.M=this.l=this.o=NaN,this.g=new Gs,this.h=new Xs}function Qs(t,n){mi.call(this);var i=this;this.l=Gu,this.Jc=this.g=null,this.ha=!1,this.Rc=new Ni,this.Wb=new Ni,this.s=new Ni,this.Bd=this.u=this.Vb=this.i=this.Sc=this.I=this.j=this.ia=this.T=this.Tc=this.M=this.Kc=this.G=this.vb=this.C=this.L=this.m=this.F=null,this.He=1e9,this.h=fu(this),this.$b={width:1/0,height:1/0},this.o=null,this.La=new ei(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount),this.sb=this.h.preferredTextLanguage,this.Zb=this.h.preferredTextRole,this.Xb=this.h.preferForcedSubs,this.Mb=[],this.cc=null,n&&n(this),this.F=function(e){return new wi((function(t,n){e.u&&e.u.segmentDownloaded(t,n)}),(function(t,n,i){t=(new Map).set("headers",t).set("request",n).set("requestType",i),e.dispatchEvent(Js("downloadheadersreceived",t))}),(function(t,n,i,r){t=(new Map).set("request",t).set("error",n).set("httpResponseCode",i).set("aborted",r),e.dispatchEvent(Js("downloadfailed",t))}))}(this),this.F.$d(this.h.streaming.forceHTTPS),this.D=null,Qu&&(this.D=Qu()),this.Rc.B(e,"online",(function(){i.Ud()})),this.O={name:"detach"},this.Y={name:"attach"},this.ea={name:"unload"},this.Nd={name:"manifest-parser"},this.Kd={name:"manifest"},this.ub={name:"media-source"},this.Cd={name:"drm-engine"},this.ca={name:"load"},this.Qd={name:"src-equals-drm-engine"},this.wb={name:"src-equals"};var r=new Map;r.set(this.Y,(function(e,t){return di(function(e,t,n){return null==t.K&&(t.K=n.K,e.Wb.B(t.K,"error",(function(){var t=Du(e);t&&Mu(e,t)}))),e.g=t.K,Promise.resolve()}(i,e,t))})),r.set(this.O,(function(e){return e.K&&(i.Wb.mb(),e.K=null),i.D&&i.D.release(),i.g=null,di(e=Promise.resolve())})),r.set(this.ea,(function(e){return di(Zs(i,e))})),r.set(this.ub,(function(e){return e=function(e,t){var n,i,r,a,o,s;return N((function(u){if(1==u.g)return n=new Oa,i=e.h.textDisplayFactory,r=i(),e.Hd=i,a=function(e,t,n,i){return new Wa(e,t,n,i)}(t.K,n,r,(function(t,n,i){for(var r=(t=l(t)).next();!r.done;r=t.next())if((r=r.value).data&&r.cueTime&&r.frames){for(var a=r.cueTime+n,o=i,s=l(r.frames),u=s.next();!u.done;u=s.next())eu(e,a,o,"ID3",u.value);e.D&&e.D.onHlsTimedMetadata(r,a)}})),o=e.h.manifest,s=o.segmentRelativeVttTiming,a.F=s,T(u,a.G,2);e.L=a,w(u)}))}(i,e),di(e)})),r.set(this.Nd,(function(e,t){var n=function(e,t,n){var i,r,a,o;return N((function(s){if(1==s.g)return t.mimeType=n.mimeType,t.uri=n.uri,i=t.uri,r=e.F,e.Vb=i,a=e,T(s,Sr(i,r,e.h.manifest.retryParameters,t.mimeType),2);a.Sc=s.h,e.I=e.Sc(),o=vi(e.h.manifest),n.K&&"AUDIO"===n.K.nodeName&&(o.disableVideo=!0),e.I.configure(o),w(s)}))}(i,e,t);return di(n)})),r.set(this.Kd,(function(e){return function(e,t){var n=t.uri,i=e.F;e.Tc=new Vo((function(){return e.sc()})),e.Tc.addEventListener("regionadd",(function(t){t=t.region,Ru(e,"timelineregionadded",t),e.D&&e.D.onDashTimedMetadata(t)})),e.ia=null,e.h.streaming.observeQualityChanges&&(e.ia=new Fo((function(){return e.Na()})),e.ia.addEventListener("qualitychange",(function(t){var n=t.quality;t=t.position,n=(new Map).set("mediaQuality",{bandwidth:n.bandwidth,audioSamplingRate:n.audioSamplingRate,codecs:n.codecs,contentType:n.contentType,frameRate:n.frameRate,height:n.height,mimeType:n.mimeType,channelsCount:n.channelsCount,pixelAspectRatio:n.pixelAspectRatio,width:n.width}).set("position",t),e.dispatchEvent(Js("mediaqualitychanged",n))})));var r={networkingEngine:i,modifyManifestRequest:function(t,n){var i=e.T;try{i.g.enabled&&(i.o=n.format,As(i,t,{ot:Ms,su:!i.i}))}catch(e){W("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}},modifySegmentRequest:function(t,n){Es(e.T,t,n)},filter:function(t){return hu(e,t)},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,i=l(t.textStreams),r=i.next();!r.done;r=i.next())"application/cea-608"!=(r=r.value).mimeType&&"application/cea-708"!=r.mimeType||n.add(r.originalId);for(i=l(t.variants),r=i.next();!r.done;r=i.next())if((r=r.value.video)&&r.closedCaptions)for(var a=l(r.closedCaptions.keys()),o=a.next();!o.done;o=a.next())if(o=o.value,!n.has(o)){var s=o.startsWith("CC")?"application/cea-608":"application/cea-708",u=new Po;s={id:e.He++,originalId:o,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:u,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:r.closedCaptions.get(o),label:null,type:tt,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:r.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},t.textStreams.push(s),n.add(o)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.Tc;e:{for(var i=l(n.g),r=i.next();!r.done;r=i.next())if((r=r.value).schemeIdUri==t.schemeIdUri&&r.id==t.id&&r.startTime==t.startTime&&r.endTime==t.endTime){i=r;break e}i=null}null==i&&(n.g.add(t),t=new hi("regionadd",new Map([["region",t]])),n.dispatchEvent(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return Mu(e,t)},isLowLatencyMode:function(){return e.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return e.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){e.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){e.j&&e.j.updateDuration()}},a=Date.now()/1e3;return new si(function(){var t,i,o,s;return N((function(u){if(1==u.g)return t=e,T(u,e.I.start(n,r),2);if(t.i=u.h,i=Js("manifestparsed"),e.dispatchEvent(i),0==e.i.variants.length)throw new Ne(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.i),o=Date.now()/1e3,s=o-a,e.o.F=s,w(u)}))}(),(function(){return e.I.stop()}))}(i,e)})),r.set(this.Cd,(function(e){return e=function(e,t){var n,i;return N((function(r){return 1==r.g?(n=Date.now()/1e3,i=!0,e.m=nu(e,{kb:e.F,onError:function(t){Mu(e,t)},Xc:function(t){Nu(e,t)},onExpirationUpdated:function(t,n){_u(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&i&&(i=!1,e.o.j=Date.now()/1e3-n)}}),e.m.configure(e.h.drm),T(r,er(e.m,e.i.variants,e.i.offlineSessionIds),2)):3!=r.g?T(r,e.m.Yb(t.K),3):T(r,hu(e,e.i),0)}))}(i,e),di(e)})),r.set(this.ca,(function(e,t){return di(function(e,t,n){var i,r,a,o,s,u,c,d,f,h;return N((function(p){switch(p.g){case 1:if(t.startTime=n.startTime,null!=e.cc&&(t.startTime=e.cc,e.cc=null),i=t.K,r=t.uri,e.Vb=r,e.G=new Oo({Qc:function(){return i.playbackRate},Mc:function(){return i.defaultPlaybackRate},be:function(e){i.playbackRate=e},De:function(e){i.currentTime+=e}}),a=function(){return vu(e)},o=function(){return mu(e)},e.s.B(i,"playing",a),e.s.B(i,"pause",a),e.s.B(i,"ended",a),e.s.B(i,"ratechange",o),s=e.h.abrFactory,e.u&&e.Bd==s||(e.Bd=s,e.u=s(),"function"!=typeof e.u.setMediaElement&&(function(){var e=new Gn(5,0),t=Xn,n=t.g,i=e.h-n.h;(0<(e.g-n.g||i)?t.i:t.h)(t.g,e,"AbrManager","Please use an AbrManager with setMediaElement function.")}(),e.u.setMediaElement=function(){}),e.u.configure(e.h.abr)),e.La=new ei(e.h.preferredAudioLanguage,e.h.preferredVariantRole,e.h.preferredAudioChannelCount),e.sb=e.h.preferredTextLanguage,e.Zb=e.h.preferredTextRole,e.Xb=e.h.preferForcedSubs,Lu(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd),e.u.init((function(t,n,i){e.j&&t!=e.j.l&&wu(e,t,!0,void 0!==n&&n,void 0===i?0:i)})),e.u.setMediaElement(i),e.C=function(e,t){return new Co(e.g,e.i,e.h.streaming,t,(function(){e.vb&&Bo(e.vb,!0),e.j&&e.j.tc(),e.M&&ru(e)}),(function(t){return e.dispatchEvent(t)}))}(e,t.startTime),e.vb=function(e){var t=new Ho(e.Tc);t.addEventListener("enter",(function(t){Ru(e,"timelineregionenter",t.region)})),t.addEventListener("exit",(function(t){Ru(e,"timelineregionexit",t.region)})),t.addEventListener("skip",(function(t){var n=t.region;t.seeking||(Ru(e,"timelineregionenter",n),Ru(e,"timelineregionexit",n))}));var n=new Uo(e.g);return n.g.add(t),e.ia&&n.g.add(e.ia),n}(e),u=Math.max(e.i.minBufferTime,e.h.streaming.rebufferingGoal),iu(e,u),ln(e.i,e.h.preferredVideoCodecs,e.h.preferredAudioCodecs,e.h.preferredAudioChannelCount,e.h.preferredDecodingAttributes),e.j=function(e){return new Xo(e.i,{Pc:function(){return e.C.Ec()},getBandwidthEstimate:function(){return e.u.getBandwidthEstimate()},modifySegmentRequest:function(t,n){Es(e.T,t,n)},P:e.L,kb:e.F,onError:function(t){return Mu(e,t)},onEvent:function(t){return e.dispatchEvent(t)},Tf:function(){e.I&&e.I.update&&e.I.update()},Pd:function(){e.C&&e.C.Ee(),ru(e)},Sf:function(t,n){var i=n.Id;i&&e.ia&&function(e,t,n){var i=function(e,t){var n=e.g.get(t);return n||(n={pc:[],pe:null,contentType:t},e.g.set(t,n)),n}(e,t.contentType);!function(e,t){var n=e.h()[t.contentType];if(n&&0=r)}))}else t.pc=[]}(e,i),e={Id:t,position:n},0<=(t=(i=i.pc).findIndex((function(e){return e.position>=n})))?i.splice(t,i[t].position==n?1:0,e):i.push(e)}(e.ia,i,t)},me:function(t,n){var i=e.m;if(i.h.parseInbandPsshEnabled&&["audio","video"].includes(t)){for(var r=new Qi(Ae(n)),a=0,o=l(r.data),s=o.next();!s.done;s=o.next())a+=s.value.length;if(0==a)i=Promise.resolve();else{for(a=new Uint8Array(a),o=0,s=(r=l(r.data)).next();!s.done;s=r.next())s=s.value,a.set(s,o),o+=s.length;ar(i,"cenc",a),i=i.o}}else i=Promise.resolve();return i}})}(e),e.j.configure(e.h.streaming),e.l=zu,i.textTracks&&e.s.B(i.textTracks,"addtrack",(function(t){if(t.track&&"chapters"===(t=t.track).kind)tu(e,t)})),e.dispatchEvent(Js("streaming")),c=null,e.Ya().find((function(e){return e.active}))){p.A(2);break}if(c=bu(e),wu(e,c,!0,!1,0),!e.h.streaming.startAtSegmentBoundary){p.A(3);break}return d=e.C.Ec(),T(p,function(e,t){var n,i,r,a,o;return N((function(s){return 1==s.g?(n=e.audio,i=e.video,r=function(e,t){var n,i,r;return N((function(a){return 1==a.g?e?T(a,e.createSegmentIndex(),2):a.return(null):(i=(n=e.segmentIndex.Ab(t))?n.next().value:null)?(r=i.startTime,a.return(r)):a.return(null)}))},T(s,r(n,t),2)):3!=s.g?(a=s.h,T(s,r(i,t),3)):null!=(o=s.h)&&null!=a?s.return(Math.max(o,a)):null!=o?s.return(o):null!=a?s.return(a):s.return(t)}))}(c,d),4);case 4:f=p.h,e.C.vd(f);case 3:Su(e,null,xn(c));case 2:return e.Db().find((function(e){return e.active}))||((h=Dn(e.i.textStreams,e.sb,e.Zb,e.Xb)[0]||null)&&Ys(e.o.h,h,!0),c&&(h?(c.audio&&function(e,t,n){return e=en(e.h.preferredTextLanguage),t=en(t.language),Qt(n=en(n.language),e)&&!Qt(t,n)}(e,c.audio,h)&&(e.ha=!0),e.ha&&e.L.m.setTextVisibility(!0),Iu(e)):e.ha=!1),h&&(e.h.streaming.alwaysStreamText||e.zd())&&Qo(e.j,h)),T(p,e.j.start(),5);case 5:e.h.abr.enabled&&(e.u.enable(),Cu(e)),Tn(e.j?e.j.l:null,e.i),Ou(e.i),Eu(e),yu(e),e.i.variants.some((function(e){return e.primary})),e.s.oa(i,"loadedmetadata",(function(){e.o.m=Date.now()/1e3-n.de})),w(p)}}))}(i,e,t))})),r.set(this.Qd,(function(e,t){var n=function(e,t,n){var i,r,a,o,s,u,l;return N((function(c){return 1==c.g?(i=nt,r=Date.now()/1e3,a=!0,e.m=nu(e,{kb:e.F,onError:function(t){Mu(e,t)},Xc:function(t){Nu(e,t)},onExpirationUpdated:function(t,n){_u(e,t,n)},onEvent:function(t){e.dispatchEvent(t),"drmsessionupdate"==t.type&&a&&(a=!1,e.o.j=Date.now()/1e3-r)}}),e.m.configure(e.h.drm),o=n.uri||"",s=kr(o),"application/x-mpegurl"==(u=Ju[s])&&ht()&&(u="application/vnd.apple.mpegurl"),u||(u="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n.mimeType?n.mimeType.split(";")[0]:u,codecs:n.mimeType?Ht(n.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:i.ra,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.m.Y=!0,T(c,er(e.m,[l],[]),2)):T(c,e.m.Yb(t.K),0)}))}(i,e,t);return di(n)})),r.set(this.wb,(function(e,t){return function(e,t,n){function i(){return vu(e)}t.uri=n.uri,t.startTime=n.startTime,e.Vb=t.uri;var r=t.K;e.C=new Io(r);var a=!1;e.Mb.push((function(){a=!0})),null!=t.startTime&&e.C.vd(t.startTime),e.G=new Oo({Qc:function(){return r.playbackRate},Mc:function(){return r.defaultPlaybackRate},be:function(e){r.playbackRate=e},De:function(e){r.currentTime+=e}}),iu(e,e.h.streaming.rebufferingGoal),e.s.B(r,"playing",i),e.s.B(r,"pause",i),e.s.B(r,"ended",i),e.s.B(r,"ratechange",(function(){return mu(e)})),"none"!=r.preload&&e.s.oa(r,"loadedmetadata",(function(){e.o.m=Date.now()/1e3-n.de})),r.audioTracks&&(e.s.B(r.audioTracks,"addtrack",(function(){return Eu(e)})),e.s.B(r.audioTracks,"removetrack",(function(){return Eu(e)})),e.s.B(r.audioTracks,"change",(function(){return Eu(e)}))),r.textTracks&&(e.s.B(r.textTracks,"addtrack",(function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){if("metadata"==t.kind){t.mode="hidden",e.s.B(t,"cuechange",(function(){if(t.activeCues)for(var n=l(t.activeCues),i=n.next();!i.done;i=n.next())i=i.value,eu(e,i.startTime,i.endTime,i.type,i.value),e.D&&e.D.onCueMetadataChange(i.value)}));var n=new st((function(){for(var t=function(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"==e.kind}))}(e),n=(t=l(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).Lb().R(.5);e.Mb.push((function(){n.stop()}))}}(e,t);break;case"chapters":tu(e,t);break;default:Eu(e)}})),e.s.B(r.textTracks,"removetrack",(function(){return Eu(e)})),e.s.B(r.textTracks,"change",(function(){return Eu(e)})));var o=kr(t.uri);r.src=function(e,t,n){try{if(!e.g.enabled)return t;var i=ks(e);e:{switch(n){case"video/webm":case"video/mp4":var r=Ns;break e;case"application/x-mpegurl":r=Ms;break e}r=void 0}return i.ot=r,i.su=!0,Cs(t,Is(i))}catch(e){return W("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(e.T,t.uri,Ju[o]),(dt()||mt("Web0S"))&&r.load(),e.l=Wu,e.dispatchEvent(Js("streaming"));var s=new rt;return yo(r,HTMLMediaElement.HAVE_METADATA,e.s,(function(){s.resolve()})),yo(r,HTMLMediaElement.HAVE_CURRENT_DATA,e.s,(function(){return N((function(t){return 1==t.g?(function(e){var t=e.h.preferredAudioLanguage;if(""!=t){e.Xd(t);var n=e.h.preferredVariantRole;""!=n&&e.Xd(t,n)}}(e),ou(e).find((function(e){return"disabled"!=e.mode}))?t.A(2):T(t,new Promise((function(t){e.s.oa(r.textTracks,"change",t),new st(t).R(1)})),2)):a?t.return():(function(e){var t=e.h.preferredTextLanguage,n=e.h.preferForcedSubs;if(""!=t){e.Yd(t,"",n);var i=e.h.preferredTextRole;""!=i&&e.Yd(t,i,n)}}(e),void w(t))}))})),r.error?s.reject(Du(e)):"none"==r.preload&&(z('With