(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{hoKK:function(e,t,n){(function(e){ /* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */ !function(){var n="undefined"!=typeof window?window:e,i={};for(var r in function(e,t,n){var i;function r(e){var t=0;return function(){return tr&&(r=Math.max(r+i,0));r=r}}));var F=this||self;function B(e,t){var n,i=e.split("."),r=F;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 G(t,n){for(var i in n=void 0===n?{}: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.a=!1}function K(){}function V(){}function z(){}function H(){}G.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},G.prototype.stopImmediatePropagation=function(){this.a=!0},G.prototype.stopPropagation=function(){},B("shaka.util.FakeEvent",G);var q=new Set;if(e.console&&e.console.log.bind){var W={},X=(W[1]=console.error.bind(console),W[2]=console.warn.bind(console),W[3]=console.info.bind(console),W[4]=console.log.bind(console),W[5]=console.debug.bind(console),W[6]=console.debug.bind(console),W);z=X[2],V=X[1]}function Y(){this.a={}}function $(){this.ud=new Y,this.Kc=this}function J(e,t){for(var n=[],i=c(e),r=i.next();!r.done;r=i.next())n.push(t(r.value));return n}function Q(e,t){for(var n=[],i=c(e),r=i.next();!r.done;r=i.next())t(r=r.value)&&n.push(r);return n}Y.prototype.push=function(e,t){this.a.hasOwnProperty(e)?this.a[e].push(t):this.a[e]=[t]},Y.prototype.get=function(e){return(e=this.a[e])?e.slice():null},Y.prototype.remove=function(e,t){e in this.a&&(this.a[e]=this.a[e].filter((function(e){return e!=t})))},$.prototype.addEventListener=function(e,t){this.ud.push(e,t)},$.prototype.removeEventListener=function(e,t){this.ud.remove(e,t)},$.prototype.dispatchEvent=function(e){for(var t=this.ud.get(e.type)||[],n=(t=c(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.Kc,e.currentTarget=this.Kc;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.a)break}return e.defaultPrevented};var Z=function e(t){var n;return L(e,(function(e){return 1==e.a&&(n=0),3!=e.a?nt)throw Error("Bad port number "+t);e.Xb=t}else e.Xb=null}function ae(e,t,n){t instanceof pe?e.a=t:(n||(t=se(t,fe)),e.a=new pe(t))}function oe(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function se(e,t,n){return null!=e?(e=encodeURI(e).replace(t,ue),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function ue(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(i=ne.prototype).Ma="",i.Ab="",i.La="",i.Xb=null,i.za="",i.pb="",i.toString=function(){var e=[],t=this.Ma;if(t&&e.push(se(t,ce,!0),":"),t=this.La){e.push("//");var n=this.Ab;n&&e.push(se(n,ce,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Xb)&&e.push(":",String(t))}return(t=this.za)&&(this.La&&"/"!=t.charAt(0)&&e.push("/"),e.push(se(t,"/"==t.charAt(0)?de:le,!0))),(t=this.a.toString())&&e.push("?",t),(t=this.pb)&&e.push("#",se(t,he)),e.join("")},i.resolve=function(e){var t=this.clone();"data"===t.Ma&&(t=new ne);var n=!!e.Ma;n?ie(t,e.Ma):n=!!e.Ab,n?t.Ab=e.Ab:n=!!e.La,n?t.La=e.La:n=null!=e.Xb;var i=e.za;if(n)re(t,e.Xb);else if(n=!!e.za){if("/"!=i.charAt(0))if(this.La&&!this.za)i="/"+i;else{var r=t.za.lastIndexOf("/");-1!=r&&(i=t.za.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=n[e]}if(!e)return"";var n=Xe(e);if(239==n[0]&&187==n[1]&&191==n[2])return tt(n);if(254==n[0]&&255==n[1])return nt(n.subarray(2),!1);if(255==n[0]&&254==n[1])return nt(n.subarray(2),!0);if(0==n[0]&&0==n[2])return nt(e,!1);if(0==n[1]&&0==n[3])return nt(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return tt(e);throw new Je(2,2,2003)}function rt(e){e=encodeURIComponent(e);var t=unescape(e);e=new Uint8Array(t.length);for(var n=(t=c(ee(t))).next();!n.done;n=t.next())e[(n=n.value).ma]=n.item.charCodeAt(0);return We(e)}function at(e,t){for(var n=new ArrayBuffer(2*e.length),i=new DataView(n),r=c(ee(e)),a=r.next();!a.done;a=r.next())a=a.value,i.setUint16(2*a.ma,a.item.charCodeAt(0),t);return n}function ot(e){return st.value()(e)}Oe.ConflictResolution={USE_OLD:0,USE_NEW:Fe},Oe.UNKNOWN_LOCALES="unknown-locales",Oe.UNKNOWN_LOCALIZATION="unknown-localization",Oe.MISSING_LOCALIZATIONS="missing-localizations",Oe.LOCALE_CHANGED="locale-changed",Oe.LOCALE_UPDATED="locale-updated",Ve.prototype.getBandwidthEstimate=function(e){return 128e3>this.a?e:Math.min(Ke(this.b),Ke(this.c))},B("shaka.util.BufferUtils",ze),ze.toDataView=Ye,ze.toUint8=Xe,ze.toArrayBuffer=We,ze.equal=He,Je.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},B("shaka.util.Error",Je),Je.Severity={RECOVERABLE:1,CRITICAL:2},Je.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},Je.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004},Qe.prototype.resolve=function(){},Qe.prototype.reject=function(){},Ze.prototype.value=function(){return null==this.a&&(this.a=this.b()),this.a},B("shaka.util.StringUtils",et),et.resetFromCharCode=function(){st.a=void 0},et.toUTF16=at,et.toUTF8=rt,et.fromBytesAutoDetect=it,et.fromUTF16=nt,et.fromUTF8=tt;var st=new Ze((function(){function e(e){try{var t=new Uint8Array(e);return 0>4).toString(16),r+=(15&o).toString(16),n=n.replace(i[0],r)}return n}function yt(e){this.b=e,this.a=null}function bt(e){this.b=e,this.a=null}function Et(e,t){var n={maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0};this.o=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.f=null==e.baseDelay?n.baseDelay:e.baseDelay,this.l=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.g=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.a=0,this.b=this.f,(this.c=void 0!==t&&t)&&(this.a=1)}function Tt(e){var t,n;return R((function(i){if(1==i.a){if(e.a>=e.o){if(!e.c)throw new Je(2,7,1010);e.a=1,e.b=e.f}return t=e.a,e.a++,0==t?i.return():(n=e.b*(1+(2*Math.random()-1)*e.l),E(i,new Promise((function(e){new bt(e).P(n/1e3)})),2))}e.b*=e.g,T(i)}))}function wt(e,t){this.promise=e,this.c=t,this.a=!1}function At(e){return new wt(Promise.reject(e),(function(){return Promise.resolve()}))}function St(){var e=Promise.reject(new Je(2,7,7001));return e.catch((function(){})),new wt(e,(function(){return Promise.resolve()}))}function It(e){return new wt(Promise.resolve(e),(function(){return Promise.resolve()}))}function xt(e){return new wt(e,(function(){return e.catch((function(){}))}))}function kt(e){return new wt(Promise.all(e.map((function(e){return e.promise}))),(function(){return Promise.all(e.map((function(e){return e.abort()})))}))}function Ct(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 Nt(e){var t,n={};for(t in e)n[t]=e[t];return n}function _t(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function Mt(e,t){var n=e.indexOf(t);-1=i.priority)&&(Vt[e]={priority:n,Tf:t})}function jt(e,t){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null}}function Ft(){this.a=0}function Bt(e,t,n){wt.call(this,e,t),this.b=n}B("shaka.util.Uint8ArrayUtils",ut),ut.concat=pt,ut.toHex=ht,ut.fromHex=ft,ut.fromBase64=dt,ut.toBase64=lt,ut.toStandardBase64=ct,ut.equal=function(e,t){return ve("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead."),He(e,t)},mt.prototype.destroy=function(){return this.a.dispose(),this.a=null,Promise.resolve()},yt.prototype.P=function(t){var n=this;this.stop();var i=!0,r=null;return this.a=function(){e.clearTimeout(r),i=!1},r=e.setTimeout((function(){i&&n.b()}),1e3*t),this},yt.prototype.stop=function(){this.a&&(this.a(),this.a=null)},bt.prototype.sa=function(){return this.stop(),this.b(),this},bt.prototype.P=function(e){var t=this;return this.stop(),this.a=new yt((function(){t.b()})).P(e),this},bt.prototype.Z=function(e){var t=this;return this.stop(),this.a=new yt((function(){t.a.P(e),t.b()})).P(e),this},bt.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)},B("shaka.util.Timer",bt),bt.prototype.stop=bt.prototype.stop,bt.prototype.tickEvery=bt.prototype.Z,bt.prototype.tickAfter=bt.prototype.P,bt.prototype.tickNow=bt.prototype.sa,wt.prototype.abort=function(){return this.a=!0,this.c()},wt.prototype.finally=function(e){return this.promise.then((function(){return e(!0)}),(function(){return e(!1)})),this},wt.prototype.aa=function(e,t){function n(n){return function(s){if(r.a&&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 Qe,o=new Je(2,7,7001);return this.promise.then(n(!0),n(!1)),new wt(a,(function(){return i()}))},B("shaka.util.AbortableOperation",wt),wt.prototype.chain=wt.prototype.aa,wt.prototype.finally=wt.prototype.finally,wt.all=kt,wt.prototype.abort=wt.prototype.abort,wt.notAbortable=xt,wt.completed=It,wt.aborted=St,wt.failed=At,Pt.prototype.destroy=function(){for(var e=[],t=c(this.a),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch((function(){})),e.push(n.abort());return this.a=[],Promise.all(e)},v(Ot,$),(i=Ot.prototype).Vf=function(e){this.a.add(e)},i.mg=function(e){this.a.delete(e)},i.Ze=function(){this.a.clear()},i.Wf=function(e){this.b.add(e)},i.ng=function(e){this.b.delete(e)},i.$e=function(){this.b.clear()},i.destroy=function(){return this.f=!0,this.a.clear(),this.b.clear(),this.g.destroy()},i.request=function(e,t){var n=this,i=new Ft;if(this.f){var r=Promise.reject(new Je(2,7,7001));return r.catch((function(){})),new Bt(r,(function(){return Promise.resolve()}),i)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?Ct(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0},t.uris=Ct(t.uris);var a=(r=function(e,t,n){for(var i=It(void 0),r={},a=(e=c(e.a)).next();!a.done;r={qd:r.qd},a=e.next())r.qd=a.value,i=i.aa(function(e){return function(){return n.body&&(n.body=We(n.body)),e.qd(t,n)}}(r));return i.aa(void 0,(function(e){if(e instanceof Je&&7001==e.code)throw e;throw new Je(2,1,1006,e)}))}(this,e,t)).aa((function(){return function e(t,n,i,r,a,o,s){var u=new ne(i.uris[a]),c=u.Ma,l=!1;c||(c=(c=location.protocol).slice(0,-1),ie(u,c),i.uris[a]=u.toString()),c=c.toLowerCase();var d,f=(c=Vt[c])?c.Tf:null;return f?xt(Tt(r)).aa((function(){return t.f?St():(d=Date.now(),f(i.uris[a],i,n,(function(e,i,r){t.c&&n==Gt&&(t.c(e,i),l=!0,s.a=r)})))})).aa((function(e){return null==e.timeMs&&(e.timeMs=Date.now()-d),{response:e,If:l}}),(function(u){if(t.f)return St();if(u instanceof Je){if(7001==u.code)throw u;if(1010==u.code)throw o;if(1==u.severity){var c=new G("retry",{error:u});return t.dispatchEvent(c),a=(a+1)%i.uris.length,e(t,n,i,r,a,u,s)}}throw u})):At(new Je(2,1,1e3,u))}(n,e,t,new Et(t.retryParameters,!1),0,null,i)})),o=a.aa((function(t){return function(e,t,n){for(var i=It(void 0),r={},a=(e=c(e.b)).next();!a.done;r={rd:r.rd},a=e.next())r.rd=a.value,i=i.aa(function(e){return function(){var i=n.response;return i.data&&(i.data=We(i.data)),e.rd(t,i)}}(r));return i.aa((function(){return n}),(function(e){var t=2;if(e instanceof Je){if(7001==e.code)throw e;t=e.severity}throw new Je(t,1,1007,e)}))}(n,e,t)})),s=Date.now(),u=0;r.promise.then((function(){u=Date.now()-s}),(function(){}));var l=0;a.promise.then((function(){l=Date.now()}),(function(){}));var d=o.aa((function(t){var i=Date.now()-l,r=t.response;return r.timeMs+=u,r.timeMs+=i,t.If||!n.c||r.fromCache||e!=Gt||n.c(r.timeMs,r.data.byteLength),r}),(function(e){throw e&&(e.severity=2),e}));return r=new Bt(d.promise,(function(){return d.abort()}),i),Dt(this.g,r),r},B("shaka.net.NetworkingEngine",Ot),Ot.prototype.request=Ot.prototype.request,Ot.prototype.destroy=Ot.prototype.destroy,Ot.makeRequest=jt,Ot.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0}},Ot.prototype.clearAllResponseFilters=Ot.prototype.$e,Ot.prototype.unregisterResponseFilter=Ot.prototype.ng,Ot.prototype.registerResponseFilter=Ot.prototype.Wf,Ot.prototype.clearAllRequestFilters=Ot.prototype.Ze,Ot.prototype.unregisterRequestFilter=Ot.prototype.mg,Ot.prototype.registerRequestFilter=Ot.prototype.Vf,Ot.unregisterScheme=function(e){delete Vt[e]},Ot.registerScheme=Ut,Ot.NumBytesRemainingClass=Ft,v(Bt,wt),Ot.PendingRequest=Bt;var Gt=1;Ot.RequestType={MANIFEST:0,SEGMENT:Gt,LICENSE:2,APP:3,TIMING:4};var Kt=3;Ot.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Kt};var Vt={};function zt(e){this.a=!1,this.b=new Qe,this.c=e}function Ht(e,t){if(e.a){if(t instanceof Je&&7003==t.code)throw t;throw new Je(2,7,7003,t)}}function qt(){this.a=new Y}function Wt(e,t,n,i){this.target=e,this.type=t,this.listener=n,this.a=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=Xt;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}Xt=t}return t||!1}(e)?t:t.capture||!1}(e,i),this.target.addEventListener(t,n,this.a)}zt.prototype.destroy=function(){var e=this;return this.a?this.b:(this.a=!0,this.c().then((function(){e.b.resolve()}),(function(){e.b.resolve()})))},(i=qt.prototype).release=function(){this.yb(),this.a=null},i.h=function(e,t,n,i){this.a&&(e=new Wt(e,t,n,i),this.a.push(t,e))},i.xa=function(e,t,n,i){var r=this;this.h(e,t,(function i(a){r.Ca(e,t,i),n(a)}),i)},i.Ca=function(e,t,n){if(this.a)for(var i=this.a.get(t)||[],r=(i=c(i)).next();!r.done;r=i.next())(r=r.value).target!=e||n!=r.listener&&n||(r.Ca(),this.a.remove(t,r))},i.yb=function(){if(this.a){var e,t=this.a,n=[];for(e in t.a)n.push.apply(n,l(t.a[e]));for(n=(t=c(n)).next();!n.done;n=t.next())n.value.Ca();this.a.a={}}},B("shaka.util.EventManager",qt),qt.prototype.removeAll=qt.prototype.yb,qt.prototype.unlisten=qt.prototype.Ca,qt.prototype.listenOnce=qt.prototype.xa,qt.prototype.listen=qt.prototype.h,qt.prototype.release=qt.prototype.release,Wt.prototype.Ca=function(){this.target.removeEventListener(this.type,this.listener,this.a),this.listener=this.target=null,this.a=!1};var Xt=void 0;function Yt(){}function $t(e){return new ne(e=it(e)).La}function Jt(e,t,n){function i(e){Ye(a).setUint32(o,e.byteLength,!0),o+=4,a.set(Xe(e),o),o+=e.byteLength}if(!n||!n.byteLength)throw new Je(2,6,6015);var r;r="string"==typeof t?at(t,!0):t,e=at(e=it(e),!0);var a=new Uint8Array(12+e.byteLength+r.byteLength+n.byteLength),o=0;return i(e),i(r),i(n),a}function Qt(e){for(var t=new Map,n=c(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function Zt(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}function en(e,t){if(!e&&!t)return!0;if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=c(e),i=n.next();!i.done;i=n.next()){var r=c(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 tn(){}function nn(e,t){var n=e;return t&&(n+='; codecs="'+t+'"'),n}function rn(e){var t=(e=e.split("."))[0];return e.pop(),[t,e.join(".")]}B("shaka.util.FairPlayUtils",Yt),Yt.initDataTransform=Jt,Yt.defaultGetContentId=$t;var an=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function on(){return!(!e.MediaSource||!MediaSource.isTypeSupported)}function sn(e){return""!=fn().canPlayType(e)}function un(){return dn("Tizen")}function cn(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!un()}function ln(){if(!cn())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function dn(e){return(navigator.userAgent||"").includes(e)}function fn(){return pn||(hn||(hn=new bt((function(){pn=null}))),(pn=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(pn=document.createElement("video")),hn.P(1),pn)}var hn=null,pn=null;function mn(e,t){var n=this;t=void 0===t?1:t,this.B=e,this.s=new Set,this.a=this.l=null,this.M=!1,this.H=0,this.c=null,this.b=new qt,this.f=new Map,this.A=[],this.o=new Qe,this.m=null,this.g=function(t){n.o.reject(t),e.onError(t)},this.X=new Map,this.R=new Map,this.L=new bt((function(){return function(e){var t=e.X,n=e.R;n.clear(),t.forEach((function(e,t){return n.set(t,e)})),(t=Array.from(n.values())).length&&t.every((function(e){return"expired"==e}))&&e.g(new Je(2,6,6014)),e.B.Wc(Zt(n))}(n)})),this.C=!1,this.F=[],this.K=!1,this.V=new bt((function(){!function(e){e.f.forEach((function(t,n){var i=t.Id,r=n.expiration;isNaN(r)&&(r=1/0),r!=i&&(e.B.onExpirationUpdated(n.sessionId,r),t.Id=r)}))}(n)})).Z(t),this.o.catch((function(){})),this.I=new zt((function(){return function(e){return R((function(t){switch(t.a){case 1:return e.b.release(),e.b=null,e.o.reject(),e.V.stop(),e.V=null,e.L.stop(),e.L=null,E(t,_n(e),2);case 2:if(!e.a){t.u(3);break}return w(t,4),E(t,e.a.setMediaKeys(null),6);case 6:S(t,5);break;case 4:I(t);case 5:e.a=null;case 3:e.c=null,e.s.clear(),e.l=null,e.A=[],e.m=null,e.g=function(){},e.B=null,T(t)}}))}(n)}))}function vn(e,t,n){return e.A=n,e.C=0r&&(r+=Math.pow(2,32)),r="0x"+r.toString(16)}e.g(new Je(2,6,6006,t.message,t,r))}}))}(e,t,n)}function Tn(e){return e?e.keySystem:""}function wn(e,t){if(navigator.userAgent.match(/Edge\//))return!0;if(t=t.toLowerCase(),un()&&t.includes('codecs="ac-3"')){var n=t.replace("ac-3","ec-3");return e.s.has(t)||e.s.has(n)}return e.s.has(t)}function An(e){return e=J(e=e.f.keys(),(function(e){return e.sessionId})),Array.from(e)}function Sn(e,t){var n=nn(e.mimeType,t||e.codecs);return vt(n)?gt(e.type,n):n}function In(e,t){var n,i,r,a,o,s,u,l,d,f,h,p,m,v,g,y,b,T,A,x,k;return R((function(C){switch(C.a){case 1:if(1==t.size&&t.has(""))throw new Je(2,6,6e3);for(n=c(t.values()),i=n.next();!i.done;i=n.next())0==(r=i.value).audioCapabilities.length&&delete r.audioCapabilities,0==r.videoCapabilities.length&&delete r.videoCapabilities;o=c([!0,!1]),s=o.next();case 2:if(s.done){C.u(4);break}u=s.value,l=c(t.keys()),d=l.next();case 5:if(d.done){C.u(7);break}if(f=d.value,h=t.get(f),h.drmInfos.some((function(e){return!!e.licenseServerUri}))!=u){C.u(6);break}return w(C,8),E(C,navigator.requestMediaKeySystemAccess(f,[h]),10);case 10:a=C.b,C.u(7);break;case 8:I(C);case 9:Ht(e.I);case 6:d=l.next(),C.u(5);break;case 7:if(a){C.u(4);break}s=o.next(),C.u(2);break;case 4:if(!a)throw new Je(2,6,6001);for(Ht(e.I),w(C,11),e.s.clear(),p=a.getConfiguration(),m=p.audioCapabilities||[],v=p.videoCapabilities||[],g=c(m),y=g.next();!y.done;y=g.next())b=y.value,e.s.add(b.contentType.toLowerCase());for(T=c(v),y=T.next();!y.done;y=T.next())A=y.value,e.s.add(A.contentType.toLowerCase());if(e.c=function(e,t){var n=[],i=[],r=[],a=new Set;return function(e,t,n,i,r){for(var a={},o=(e=c(e)).next();!o.done;a={Ea:a.Ea},o=e.next()){if(a.Ea=o.value,t.includes(a.Ea.licenseServerUri)||t.push(a.Ea.licenseServerUri),a.Ea.serverCertificate&&(n.some(function(e){return function(t){return He(t,e.Ea.serverCertificate)}}(a))||n.push(a.Ea.serverCertificate)),a.Ea.initData){o={};for(var s=c(a.Ea.initData),u=s.next();!u.done;o={Fc:o.Fc},u=s.next())o.Fc=u.value,i.some(function(e){return function(t){var n=e.Fc;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&He(t.initData,n.initData)}}(o))||i.push(o.Fc)}if(a.Ea.keyIds)for(o=c(a.Ea.keyIds),s=o.next();!s.done;s=o.next())r.add(s.value)}}(t.drmInfos,n,i,r,a),{keySystem:e,licenseServerUri:n[0],distinctiveIdentifierRequired:"required"==t.distinctiveIdentifier,persistentStateRequired:"required"==t.persistentState,audioRobustness:(t.audioCapabilities?t.audioCapabilities[0].robustness:"")||"",videoRobustness:(t.videoCapabilities?t.videoCapabilities[0].robustness:"")||"",serverCertificate:i[0],initData:r,keyIds:a}}(a.keySystem,t.get(a.keySystem)),!e.c.licenseServerUri)throw new Je(2,6,6012,e.c.keySystem);return E(C,a.createMediaKeys(),13);case 13:return x=C.b,Ht(e.I),e.l=x,e.M=!0,E(C,yn(e),14);case 14:Ht(e.I),S(C,0);break;case 11:if(k=I(C),Ht(e.I,k),e.c=null,e.s.clear(),k instanceof Je)throw k;throw new Je(2,6,6002,k.message)}}))}function xn(e,t){var n,i,r,a,o;return R((function(s){switch(s.a){case 1:try{n=e.l.createSession("persistent-license")}catch(t){return i=new Je(2,6,6005,t.message),e.g(i),s.return(Promise.reject(i))}return e.b.h(n,"message",(function(t){e.a&&e.m.delayLicenseRequestUntilPlayed&&e.a.paused&&!e.K?e.F.push(t):Cn(e,t)})),e.b.h(n,"keystatuseschange",(function(t){return Nn(e,t)})),r={initData:null,loaded:!1,Id:1/0,Ra:null},e.f.set(n,r),w(s,2),E(s,n.load(t),4);case 4:return a=s.b,Ht(e.I),a?(r.loaded=!0,Rn(e)&&e.o.resolve(),s.return(n)):(e.f.delete(n),e.g(new Je(2,6,6013)),s.return(Promise.resolve()));case 2:o=I(s),Ht(e.I,o),e.f.delete(n),e.g(new Je(2,6,6005,o.message));case 3:return s.return(Promise.resolve())}}))}function kn(e,t,n){return"skd"==t&&(t=n.serverCertificate,e=Jt(e,n=$t(e),t)),e}function Cn(e,t){var n,i,r,a,o,s,u,l,d,f,h,p;R((function(m){switch(m.a){case 1:return n=t.target,e.m.logLicenseExchange&<(t.message),i=e.f.get(n),r=e.c.licenseServerUri,a=e.m.advanced[e.c.keySystem],"individualization-request"==t.messageType&&a&&a.individualizationServer&&(r=a.individualizationServer),(o=jt([r],e.m.retryParameters)).body=t.message,o.method="POST",o.licenseRequestType=t.messageType,o.sessionId=n.sessionId,"com.microsoft.playready"!=e.c.keySystem&&"com.chromecast.playready"!=e.c.keySystem||function(e){var t=nt(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=c((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=dt(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(o),s=Date.now(),w(m,2),E(m,e.B.Ub.request(2,o).promise,4);case 4:u=m.b,S(m,3);break;case 2:return l=I(m),d=new Je(2,6,6007,l),e.g(d),i&&i.Ra&&i.Ra.reject(d),m.return();case 3:return e.I.a?m.return():(e.H+=(Date.now()-s)/1e3,e.m.logLicenseExchange&<(u.data),w(m,5),E(m,n.update(u.data),7));case 7:S(m,6);break;case 5:return f=I(m),h=new Je(2,6,6008,f.message),e.g(h),i&&i.Ra&&i.Ra.reject(h),m.return();case 6:p=new G("drmsessionupdate"),e.B.onEvent(p),i&&(i.Ra&&i.Ra.resolve(),new bt((function(){i.loaded=!0,Rn(e)&&e.o.resolve()})).P(On)),T(m)}}))}function Nn(e,t){var n=t.target,i=e.f.get(n),r=!1;n.keyStatuses.forEach((function(t,n){if("string"==typeof n){var a=n;n=t,t=a}if("com.microsoft.playready"==e.c.keySystem&&16==n.byteLength&&(dn("Trident/")||navigator.userAgent.match(/Edge?\//))){var o=(a=Ye(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)}"com.microsoft.playready"==e.c.keySystem&&"status-pending"==t&&(t="usable"),"status-pending"!=t&&(i.loaded=!0),"expired"==t&&(r=!0),a=ht(n),e.X.set(a,t)}));var a=n.expiration-Date.now();(0>a||r&&1e3>a)&&i&&!i.Ra&&(e.f.delete(n),n.close().catch((function(){}))),Rn(e)&&(e.o.resolve(),e.L.P(Un))}function _n(e){var t;return R((function(n){return t=Array.from(e.f.keys()),e.f.clear(),E(n,Promise.all(t.map((function(e){return R((function(t){return 1==t.a?(w(t,2),E(t,function(e){var t;return R((function(n){return 1==n.a?(t=new Promise((function(e,t){new bt(t).P(Dn)})),w(n,2),E(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.a?S(n,0):(I(n),void T(n))}))}(e),4)):2!=t.a?S(t,0):(I(t),void T(t))}))}))),0)}))}function Mn(e,t){var n=t.audio,i=t.video;if(n&&n.encrypted){var r=Sn(n);if(!wn(e,r))return!1}if(i&&i.encrypted&&!wn(e,r=Sn(i)))return!1;var a=Tn(e.c);return 0==(n=(i?i.drmInfos:[]).concat(n?n.drmInfos:[])).length||n.some((function(e){return e.keySystem==a}))}function Ln(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],i=c(e),r=i.next();!r.done;r=i.next()){r=r.value;for(var a=c(t),o=a.next();!o.done;o=a.next())if(o=o.value,r.keySystem==o.keySystem){a=(a=(a=[]).concat(r.initData||[])).concat(o.initData||[]);var s=r.keyIds&&o.keyIds?new Set(l(r.keyIds).concat(l(o.keyIds))):r.keyIds||o.keyIds;n.push({keySystem:r.keySystem,licenseServerUri:r.licenseServerUri||o.licenseServerUri,distinctiveIdentifierRequired:r.distinctiveIdentifierRequired||o.distinctiveIdentifierRequired,persistentStateRequired:r.persistentStateRequired||o.persistentStateRequired,videoRobustness:r.videoRobustness||o.videoRobustness,audioRobustness:r.audioRobustness||o.audioRobustness,serverCertificate:r.serverCertificate||o.serverCertificate,initData:a,keyIds:s});break}}return n}function Rn(e){return function(e,t){for(var n=c(e),i=n.next();!i.done;i=n.next())if(!t(i.value))return!1;return!0}(e=e.f.values(),(function(e){return e.loaded}))}function Pn(t,n,i){!t.keySystem||"org.w3.clearkey"==t.keySystem&&t.licenseServerUri||(n.size&&(n=n.get(t.keySystem)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(i=i.get(t.keySystem))&&(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)),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==t.keySystem&&(t.keySystem="com.chromecast.playready"))}mn.prototype.destroy=function(){return this.I.destroy()},mn.prototype.configure=function(e){this.m=e},mn.prototype.fc=function(e){var t,n=this;return R((function(i){if(1==i.a)return n.l?(n.a=e,n.b.xa(n.a,"play",(function(){for(var e=c(n.F),t=e.next();!t.done;t=e.next())Cn(n,t.value);n.K=!0,n.F=[]})),"webkitCurrentPlaybackTargetIsWireless"in n.a&&n.b.h(n.a,"webkitcurrentplaybacktargetiswirelesschanged",(function(){return _n(n)})),E(i,n.a.setMediaKeys(n.l).catch((function(e){return Promise.reject(new Je(2,6,6003,e.message))})),2)):(n.b.xa(e,"encrypted",(function(){n.g(new Je(2,6,6010))})),i.return());Ht(n.I),bn(n),n.c.initData.length||n.A.length||(t=function(e){return En(n,e.initDataType,Xe(e.initData))},n.b.h(n.a,"encrypted",t)),T(i)}))},mn.prototype.lc=function(){for(var e=1/0,t=this.f.keys(),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e};var Dn=1,On=5,Un=.5,jn=new Ze((function(){return We(new Uint8Array([0]))}));function Fn(){this.a=new muxjs.mp4.CaptionParser,this.g=[],this.f={}}function Bn(){}function Gn(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function Kn(e,t,n){return n=void 0===n?0:n,!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t+n>=e.start(0)}function Vn(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,i=c(zn(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 zn(e){if(!e)return[];for(var t=[],n=c(Z(e.length)),i=n.next();!i.done;i=n.next())i=i.value,t.push({start:e.start(i),end:e.end(i)});return t}function Hn(e,t,n){this.startTime=e,this.direction=Qn,this.endTime=t,this.payload=n,this.region=new oi,this.position=null,this.positionAlign=Wn,this.size=0,this.textAlign=Xn,this.writingMode=Zn,this.lineInterpretation=ei,this.line=null,this.lineHeight="",this.lineAlign=ti,this.displayAlign=$n,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=ii,this.fontStyle=ri,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textDecoration=[],this.wrapLine=!0,this.id="",this.nestedCues=[],this.spacer=!1,this.cellResolution={columns:32,rows:15}}function qn(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n)if("nestedCues"==n){if(!Rt(e.nestedCues,t.nestedCues,qn))return!1}else if("region"==n||"cellResolution"==n){for(var i in e[n])if(e[n][i]!=t[n][i])return!1}else if(Array.isArray(e[n])){if(!Rt(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}Fn.prototype.init=function(e){var t=muxjs.mp4.probe;e=Xe(e),this.g=t.videoTrackIds(e),this.f=t.timescale(e),this.a.init()},Fn.prototype.b=function(e,t){var n=Xe(e);(n=this.a.parse(n,this.g,this.f))&&n.captions&&t(n.captions),this.a.clearParsedCaptions()},Fn.prototype.c=function(){this.a.resetCaptionStream()},Bn.prototype.init=function(){},Bn.prototype.b=function(){},Bn.prototype.c=function(){},Hn.prototype.clone=function(){var e,t=new Hn(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},B("shaka.text.Cue",Hn);var Wn="auto";Hn.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Wn};var Xn="center",Yn={LEFT:"left",RIGHT:"right",CENTER:Xn,START:"start",END:"end"};Hn.textAlign=Yn;var $n="after",Jn={BEFORE:"before",CENTER:"center",AFTER:$n};Hn.displayAlign=Jn;var Qn="ltr";Hn.direction={HORIZONTAL_LEFT_TO_RIGHT:Qn,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Zn="horizontal-tb";Hn.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Zn,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var ei=0;Hn.lineInterpretation={LINE_NUMBER:ei,PERCENTAGE:1};var ti="start",ni={CENTER:"center",START:ti,END:"end"};Hn.lineAlign=ni;var ii=400;Hn.fontWeight={NORMAL:ii,BOLD:700};var ri="normal",ai={NORMAL:ri,ITALIC:"italic",OBLIQUE:"oblique"};function oi(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=si,this.scroll=ui}Hn.fontStyle=ai,Hn.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},B("shaka.text.CueRegion",oi);var si=1;oi.units={PX:0,PERCENTAGE:si,LINES:2};var ui="";function ci(e){this.s=null,this.c=e,this.f=this.A=0,this.g=1/0,this.b=this.a=null,this.o="",this.l=new Map}function li(t){return!!(fi[t]||e.muxjs&&"application/cea-608"==t)}function di(e,t,n,i,r){for(var a=n+" "+i,o=new Map,s=(t=c(t)).next();!s.done;s=t.next()){var u=s.value;s=u.stream,o.has(s)||o.set(s,new Map),o.get(s).has(a)||o.get(s).set(a,[]),u.startTime+=r,u.endTime+=r,u.startTime>=e.f&&u.startTime=n.b||(e<=n.a&&t>=n.b?n.a=n.b=null:e<=n.a&&tn.a&&t>=n.b&&(n.b=e)),T(i)}))},B("shaka.text.TextEngine",ci),ci.prototype.destroy=ci.prototype.destroy,ci.unregisterParser=function(e){delete fi[e]},ci.registerParser=function(e,t){fi[e]=t};var fi={};function hi(e,t,n,i){var r=this;this.a=e,this.l=n,this.f={},this.c=null,this.H=i||function(){},this.g={},this.b=new qt,this.s={},this.A=t,this.C=new Qe,this.o=function(e,t){var n=new MediaSource;return e.b.xa(n,"sourceopen",(function(){URL.revokeObjectURL(e.F),t.resolve()})),e.F=Ci(n),e.a.src=e.F,n}(this,this.C),this.I=new zt((function(){return function(e){var t,n,i,r,a,o,s;return R((function(u){if(1==u.a){for(n in t=[],e.g)for(i=e.g[n],r=i[0],e.g[n]=i.slice(0,1),r&&t.push(r.p.catch(Te)),a=c(i.slice(1)),o=a.next();!o.done;o=a.next())o.value.p.reject(new Je(2,7,7003,void 0));for(s in e.c&&t.push(e.c.destroy()),e.l&&t.push(e.l.destroy()),e.s)t.push(e.s[s].destroy());return E(u,Promise.all(t),2)}e.b&&(e.b.release(),e.b=null),e.a&&(e.a.removeAttribute("src"),e.a.load(),e.a=null),e.o=null,e.c=null,e.l=null,e.f={},e.s={},e.A=null,e.g={},T(u)}))}(r)})),this.F=""}function pi(e){var t=nn(e.mimeType,e.codecs),n=function(e){var t=[e.mimeType];return an.forEach((function(n,i){var r=e[i];r&&t.push(n+'="'+r+'"')})),t.join(";")}(e);return li(t)||MediaSource.isTypeSupported(n)||vt(t,e.type)}function mi(e,t){e.c||(e.c=new ci(e.l)),"application/cea-608"!=t&&(e.c.s=Ae(fi[t]))}function vi(e){return!e.o||"ended"==e.o.readyState}function gi(e,t){if("text"==t)var n=e.c.a;else n=!(n=bi(e,t))||1==n.length&&1e-6>n.end(0)-n.start(0)?null:1==n.length&&0>n.start(0)?0:n.length?n.start(0):null;return n}function yi(e,t){return"text"==t?e.c.b:Gn(bi(e,t))}function bi(e,t){try{return e.f[t].buffered}catch(e){return null}}function Ei(t,n,i,r,a,o){var s,u,c,l;return R((function(d){return 1==d.a?n==(s=xe).oa?E(d,function(e,t,n,i){var r,a,o;return R((function(s){return 1==s.a?E(s,Promise.resolve(),2):e.s&&e.c?null==n||null==i?(e.s.parseInit(Xe(t)),s.return()):(r={periodStart:e.A,segmentStart:n,segmentEnd:i},a=e.s.parseMedia(Xe(t),r),o=a.filter((function(t){return t.startTime>=e.f&&t.startTime=n?Ai(e,t):e.f[t].remove(0,n)})),0)}))}function Ai(e,t){var n=e.g[t][0];n&&(n.p.resolve(),xi(e,t))}function Si(e,t,n){return Ht(e.I),n={start:n,p:new Qe},e.g[t].push(n),1==e.g[t].length&&ki(e,t),n.p}function Ii(e,t){var n,i,r,a,o;return R((function(s){switch(s.a){case 1:for(r in Ht(e.I),n=[],i={},e.f)i.cc=new Qe,a={start:function(e){return function(){return e.cc.resolve()}}(i),p:i.cc},e.g[r].push(a),n.push(i.cc),1==e.g[r].length&&a.start(),i={cc:i.cc};return w(s,2),E(s,Promise.all(n),4);case 4:S(s,3);break;case 2:throw I(s);case 3:try{t()}catch(e){throw new Je(2,3,3015,e)}finally{for(o in e.f)xi(e,o)}T(s)}}))}function xi(e,t){e.g[t].shift(),ki(e,t)}function ki(e,t){var n=e.g[t][0];if(n)try{n.start()}catch(i){"QuotaExceededError"==i.name?n.p.reject(new Je(2,3,3017,t)):n.p.reject(new Je(2,3,3015,i)),xi(e,t)}}(i=hi.prototype).destroy=function(){return this.I.destroy()},i.init=function(e,t){var n,i,r,a,o,s,u,l=this;return R((function(d){if(1==d.a)return n=xe,E(d,l.C,2);for(i={},r=c(e.keys()),a=r.next();!a.done;i={Da:i.Da},a=r.next())i.Da=a.value,o=e.get(i.Da),s=nn(o.mimeType,o.codecs),i.Da==n.oa?mi(l,s):(!t&&MediaSource.isTypeSupported(s)||!vt(s,i.Da)||(l.s[i.Da]=new mt,s=gt(i.Da,s)),u=l.o.addSourceBuffer(s),l.b.h(u,"error",function(e){return function(){l.g[e.Da][0].p.reject(new Je(2,3,3014,l.a.error?l.a.error.code:0))}}(i)),l.b.h(u,"updateend",function(e){return function(){return Ai(l,e.Da)}}(i)),l.f[i.Da]=u,l.g[i.Da]=[]);T(d)}))},i.Rc=function(){var e={total:zn(this.a.buffered),audio:zn(bi(this,"audio")),video:zn(bi(this,"video")),text:[]};if(this.c){var t=this.c.a,n=this.c.b;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},i.remove=function(e,t,n){var i=this;return R((function(r){return E(r,e==xe.oa?i.c.remove(t,n):Si(i,e,(function(){n<=t?Ai(i,e):i.f[e].remove(t,n)})),0)}))},i.flush=function(e){var t=this;return R((function(n){return e==xe.oa?n.return():E(n,Si(t,e,(function(){t.a.currentTime-=.001,Ai(t,e)})),0)}))},i.endOfStream=function(e){var t=this;return R((function(n){return E(n,Ii(t,(function(){vi(t)||(e?t.o.endOfStream(e):t.o.endOfStream())})),0)}))},i.Qa=function(e){var t=this;return R((function(n){return E(n,Ii(t,(function(){t.o.duration=e})),0)}))},i.getDuration=function(){return this.o.duration};var Ci=e.URL.createObjectURL;function Ni(e,t){function n(e){var t="";e.video&&(t=rn(e.video.codecs)[0]);var n="";return e.audio&&(n=rn(e.audio.codecs)[0]),t+"-"+n}for(var i=ji(e.variants,t),r=new Y,a=(i=c(i)).next();!a.done;a=i.next()){var o=n(a=a.value);r.push(o,a)}var s=null,u=1/0;!function(e,t){for(var n in e.a)t(n,e.a[n])}(r,(function(e,t){for(var n=0,i=0,r=c(t),a=r.next();!a.done;a=r.next())n+=a.value.bandwidth||0,++i;(n/=i)=t&&e<=n}var r=e.video;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 Mi(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function Li(e){var t=e.audio,n=e.video,i=t?t.codecs:null,r=n?n.codecs:null,a=[];r&&a.push(r),i&&a.push(i);var o=[];n&&o.push(n.mimeType),t&&o.push(t.mimeType),o=o[0]||null;var s=[];t&&s.push(t.kind),n&&s.push(n.kind),s=s[0]||null;var u=new Set;if(t)for(var l=c(t.roles),d=l.next();!d.done;d=l.next())u.add(d.value);if(n)for(d=(l=c(n.roles)).next();!d.done;d=l.next())u.add(d.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:s,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:o,codecs:a.join(", "),audioCodec:i,videoCodec:r,primary:e.primary,roles:Array.from(u),audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null),t&&(e.audioId=t.id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.label=t.label,e.audioRoles=t.roles),e}function Ri(e){return{id:e.id,active:!1,type:"text",bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:e.mimeType,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId}}function Pi(e){return e.__shaka_id||(e.__shaka_id=Gi++),e.__shaka_id}function Di(e){var t=Oi(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind]),t}function Oi(e){return{id:Pi(e),active:!1,type:"",bandwidth:0,language:_e(e.language),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null}}function Ui(e){return e.allowedByApplication&&e.allowedByKeySystem}function ji(e,t){for(var n=e.filter((function(e){return e.audio&&e.audio.channelsCount})),i=new Map,r=(n=c(n)).next();!r.done;r=n.next()){var a=(r=r.value).audio.channelsCount;i.has(a)||i.set(a,[]),i.get(a).push(r)}return 0==(n=Array.from(i.keys())).length?e:(r=n.filter((function(e){return e<=t}))).length?i.get(Math.max.apply(Math,l(r))):i.get(Math.min.apply(Math,l(n)))}function Fi(e,t,n){var i=e,r=e.filter((function(e){return e.primary}));r.length&&(i=r);var a=i.length?i[0].language:"";if(i=i.filter((function(e){return e.language==a})),t){var o=Pe(_e(t),e.map((function(e){return e.language})));o&&(i=e.filter((function(e){return _e(e.language)==o})))}if(n){if((e=Bi(i,n)).length)return e}else if((e=i.filter((function(e){return 0==e.roles.length}))).length)return e;return(e=i.map((function(e){return e.roles})).reduce(Ee,[])).length?Bi(i,e[0]):i}function Bi(e,t){return e.filter((function(e){return e.roles.includes(t)}))}var Gi=0;function Ki(){this.l=null,this.g=!1,this.a=new Ve,this.b=[],this.f=1,this.o=!1,this.m=this.c=null}function Vi(e,t){return e&&(t=t.filter((function(t){return _i(t,e,{width:1/0,height:1/0})}))),t.sort((function(e,t){return e.bandwidth-t.bandwidth}))}function zi(e,t){this.a=e,this.b=new Set([e]);for(var n=c(t=t||[]),i=n.next();!i.done;i=n.next())this.add(i.value)}function Hi(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&&qi(n,i)&&Wi(n.roles,i.roles))}return!n&&(n=e.video&&t.video)&&(n=!(qi(n=e.video,i=t.video)&&Wi(n.roles,i.roles))),!n}function qi(e,t){if(e.mimeType!=t.mimeType)return!1;var n=e.codecs.split(",").map((function(e){return rn(e)[0]})),i=t.codecs.split(",").map((function(e){return rn(e)[0]}));if(n.length!=i.length)return!1;n.sort(),i.sort();for(var r=c(Z(n.length)),a=r.next();!a.done;a=r.next())if(n[a=a.value]!=i[a])return!1;return!0}function Wi(e,t){var n=new Set(e),i=new Set(t);if(n.delete("main"),i.delete("main"),n.size!=i.size)return!1;for(var r=(n=c(n)).next();!r.done;r=n.next())if(!i.has(r.value))return!1;return!0}function Xi(e){this.a=e,this.b=new Yi(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"")}function Yi(e,t,n,i){this.c=e,this.f=t,this.a=n,this.b=void 0===i?"":i}function $i(){this.a=Zi,this.b=(new Map).set(Zi,2).set(Qi,1)}function Ji(e,t,n){e.b.set(Zi,n).set(Qi,t)}(i=Ki.prototype).stop=function(){this.l=null,this.g=!1,this.b=[],this.f=1,this.c=null},i.init=function(e){this.l=e},i.chooseVariant=function(){var e=Vi(this.m.restrictions,this.b),t=this.a.getBandwidthEstimate(this.m.defaultBandwidthEstimate);this.b.length&&!e.length&&(e=[(e=Vi(null,this.b))[0]]);for(var n=e[0]||null,i=(e=c(ee(e))).next();!i.done;i=e.next()){var r=i.value;i=r.item;var a=isNaN(this.f)?1:Math.abs(this.f);r=a*(r.next||{bandwidth:1/0}).bandwidth/this.m.bandwidthUpgradeTarget,t>=a*i.bandwidth/this.m.bandwidthDowngradeTarget&&t<=r&&(n=i)}return this.c=Date.now(),n},i.enable=function(){this.g=!0},i.disable=function(){this.g=!1},i.segmentDownloaded=function(e,t){var n=this.a;if(!(16e3>t)){var i=8e3*t/e,r=e/1e3;n.a+=t,Ge(n.b,r,i),Ge(n.c,r,i)}if(null!=this.c&&this.g)e:{if(this.o){if(Date.now()-this.c<1e3*this.m.switchInterval)break e}else{if(!(128e3<=this.a.a))break e;this.o=!0}n=this.chooseVariant(),this.a.getBandwidthEstimate(this.m.defaultBandwidthEstimate),n&&this.l(n)}},i.getBandwidthEstimate=function(){return this.a.getBandwidthEstimate(this.m.defaultBandwidthEstimate)},i.setVariants=function(e){this.b=e},i.playbackRateChanged=function(e){this.f=e},i.configure=function(e){this.m=e},B("shaka.abr.SimpleAbrManager",Ki),Ki.prototype.configure=Ki.prototype.configure,Ki.prototype.playbackRateChanged=Ki.prototype.playbackRateChanged,Ki.prototype.setVariants=Ki.prototype.setVariants,Ki.prototype.getBandwidthEstimate=Ki.prototype.getBandwidthEstimate,Ki.prototype.segmentDownloaded=Ki.prototype.segmentDownloaded,Ki.prototype.disable=Ki.prototype.disable,Ki.prototype.enable=Ki.prototype.enable,Ki.prototype.chooseVariant=Ki.prototype.chooseVariant,Ki.prototype.init=Ki.prototype.init,Ki.prototype.stop=Ki.prototype.stop,zi.prototype.add=function(e){return!!Hi(this.a,e)&&(this.b.add(e),!0)},zi.prototype.values=function(){return this.b.values()},Xi.prototype.create=function(e){var t=this,n=e.filter((function(e){return Hi(t.a,e)}));return n.length?new zi(n[0],n):this.b.create(e)},Yi.prototype.create=function(e){var t=[];t=function(e,t){var n=Pe(_e(t),e.map((function(e){return Re(e)})));return n?e.filter((function(e){return n==Re(e)})):[]}(e,this.c);var n=e.filter((function(e){return e.primary}));for((e=function(e,t){return e.filter((function(e){return!!e.audio&&(t?e.audio.roles.includes(t):0==e.audio.roles.length)}))}(t=t.length?t:n.length?n:e,this.f)).length&&(t=e),this.a&&((e=ji(t,this.a)).length&&(t=e)),this.b&&((e=function(e,t){return e.filter((function(e){return!!e.audio&&e.audio.label.toLowerCase()==t.toLowerCase()}))}(t,this.b)).length&&(t=e)),e=new zi(t[0]),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,Hi(e.a,n)&&e.add(n);return e};var Qi=0,Zi=1;function er(){}function tr(e,t,n,i){var r,a,o,s;return R((function(u){if(1==u.a)return i&&(r=ir[i.toLowerCase()])?u.return(r):(a=nr(e))&&(o=rr[a])?u.return(o):i?u.u(2):E(u,function(e,t,n){var i,r,a;return R((function(o){return 1==o.a?((i=jt([e],n)).method="HEAD",E(o,t.request(0,i).promise,2)):(r=o.b,a=r.headers["content-type"],o.return(a?a.toLowerCase().split(";").shift():""))}))}(e,t,n),3);if(2!=u.a&&(i=u.b)&&(s=ir[i]))return u.return(s);throw new Je(2,4,4e3,e)}))}function nr(e){return 1==(e=new ne(e).za.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}B("shaka.media.ManifestParser",er),er.unregisterParserByMime=function(e){delete ir[e]},er.registerParserByMime=function(e,t){ir[e]=t},er.registerParserByExtension=function(e,t){rr[e]=t};var ir={},rr={};function ar(e,t,n){this.c=e,this.b=t,this.a=n}function or(e,t,n,i,r,a,o,s,u){this.startTime=e,this.endTime=t,this.c=n,this.b=i,this.a=r,this.f=a,this.timestampOffset=o,this.appendWindowStart=s,this.appendWindowEnd=u}function sr(e,t,n){this.f=e,this.Zc=t,this.l=this.g=1/0,this.a=1,this.b=this.c=null,this.o=0,this.s=!0,this.A=0,this.C=void 0===n||n}function ur(e,t){this.g=e,this.l=lr(e),this.a=e.a.currentTime,this.f=Date.now()/1e3,this.b=!1,this.o=t,this.c=function(){}}function cr(e){this.a=e}function lr(e){if(e.a.paused||0==e.a.playbackRate||0==e.a.buffered.length)var t=!1;else e:{t=e.a.currentTime;for(var n=(e=c(zn(e.a.buffered))).next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function dr(e,t,n,i,r){var a=this;this.a=e,this.C=t,this.m=n,this.A=r,this.b=new qt,this.o=!1,this.s=e.readyState,this.f=!1,this.c=i,this.l=!1,this.b.h(e,"waiting",(function(){return fr(a)})),this.g=new bt((function(){fr(a)})).Z(.25)}function fr(e){if(0!=e.a.readyState){if(e.a.seeking){if(!e.o)return}else e.o=!1;if(!e.a.paused){var t;if(e.a.readyState!=e.s&&(e.f=!1,e.s=e.a.readyState),!(t=!e.c)){var n=(t=e.c).g,i=lr(n),r=n.a.currentTime,a=Date.now()/1e3;t.a==r&&t.l==i||(t.f=a,t.a=r,t.l=i,t.b=!1),(i=(r=a-t.f)>=t.o&&i&&!t.b)&&(t.c(t.a,r),t.b=!0,t.a=n.a.currentTime),t=!i}if(t){var o=e.m.smallGapLimit;if(r=e.a.currentTime,!(null==(n=function(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return null;var n=navigator.userAgent.match(/Edge\//)||dn("Trident/")||un()||dn("CrKey")?.5:.1,i=zn(e).findIndex((function(e,i,r){return e.start>t&&(0==i||r[i-1].end-t<=n)}));return 0<=i?i:null}(t=e.a.buffered,r))||0==n&&!e.l||(i=t.start(n),i>=e.C.Wa()))){o=(a=i-r)<=o;var s=!1;.001>a||(o||e.f||(e.f=!0,(r=new G("largegap",{currentTime:r,gapSize:a})).cancelable=!0,e.A(r),e.m.jumpLargeGaps&&!r.defaultPrevented&&(s=!0)),!o&&!s)||(0!=n&&t.end(n-1),e.a.currentTime=i)}}}}}function hr(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?i():(t=pr.get(t),n.xa(e,t,i))}ar.prototype.qc=function(){return this.b},ar.prototype.kc=function(){return this.a},B("shaka.media.InitSegmentReference",ar),ar.prototype.getEndByte=ar.prototype.kc,ar.prototype.getStartByte=ar.prototype.qc,or.prototype.Df=function(){return this.startTime},or.prototype.nf=function(){return this.endTime},or.prototype.qc=function(){return this.b},or.prototype.kc=function(){return this.a},B("shaka.media.SegmentReference",or),or.prototype.getEndByte=or.prototype.kc,or.prototype.getStartByte=or.prototype.qc,or.prototype.getEndTime=or.prototype.nf,or.prototype.getStartTime=or.prototype.Df,(i=sr.prototype).getDuration=function(){return this.g},i.wf=function(){return this.a},i.Qa=function(e){this.g=e},i.Bf=function(){return this.f},i.Ke=function(e){this.o=e},i.Bc=function(e){this.s=e},i.Td=function(e){this.l=e},i.ig=function(e){this.Zc=e},i.mf=function(){return this.Zc},i.Vb=function(e){if(0!=e.length){var t=e[e.length-1].endTime;this.Gd(e[0].startTime),this.a=e.reduce((function(e,t){return Math.max(e,t.endTime-t.startTime)}),this.a),this.b=Math.max(this.b,t),null!=this.f&&this.C&&(this.f=(Date.now()+this.o)/1e3-this.b-this.a)}},i.Gd=function(e){this.c=null==this.c?e:Math.min(this.c,e)},i.Fd=function(e){this.a=Math.max(this.a,e)},i.offset=function(e){null!=this.c&&(this.c+=e),null!=this.b&&(this.b+=e)},i.S=function(){return 1/0==this.g&&!this.s},i.tb=function(){return 1/0!=this.g&&!this.s},i.qb=function(){return Math.max(this.A,this.fb()-this.l)},i.Ne=function(e){this.A=e},i.fb=function(){return this.S()||this.tb()?Math.min(Math.max(0,(Date.now()+this.o)/1e3-this.a-this.f),this.g):this.g},i.pc=function(e){var t=Math.max(this.c,this.A);return 1/0==this.l?t:Math.max(t,Math.min(this.fb()-this.l+e,this.Wa()))},i.Pb=function(){return this.pc(0)},i.Wa=function(){return Math.max(0,this.fb()-(this.S()||this.tb()?this.Zc:0))},i.Re=function(){return!(null==this.f||null!=this.b&&this.C)},B("shaka.media.PresentationTimeline",sr),sr.prototype.usingPresentationStartTime=sr.prototype.Re,sr.prototype.getSeekRangeEnd=sr.prototype.Wa,sr.prototype.getSeekRangeStart=sr.prototype.Pb,sr.prototype.getSafeSeekRangeStart=sr.prototype.pc,sr.prototype.getSegmentAvailabilityEnd=sr.prototype.fb,sr.prototype.setUserSeekStart=sr.prototype.Ne,sr.prototype.getSegmentAvailabilityStart=sr.prototype.qb,sr.prototype.isInProgress=sr.prototype.tb,sr.prototype.isLive=sr.prototype.S,sr.prototype.offset=sr.prototype.offset,sr.prototype.notifyMaxSegmentDuration=sr.prototype.Fd,sr.prototype.notifyMinSegmentStartTime=sr.prototype.Gd,sr.prototype.notifySegments=sr.prototype.Vb,sr.prototype.getDelay=sr.prototype.mf,sr.prototype.setDelay=sr.prototype.ig,sr.prototype.setSegmentAvailabilityDuration=sr.prototype.Td,sr.prototype.setStatic=sr.prototype.Bc,sr.prototype.setClockOffset=sr.prototype.Ke,sr.prototype.getPresentationStartTime=sr.prototype.Bf,sr.prototype.setDuration=sr.prototype.Qa,sr.prototype.getMaxSegmentDuration=sr.prototype.wf,sr.prototype.getDuration=sr.prototype.getDuration,ur.prototype.release=function(){this.g=null,this.c=function(){}},dr.prototype.release=function(){this.b&&(this.b.release(),this.b=null),null!=this.g&&(this.g.stop(),this.g=null),this.c&&(this.c.release(),this.c=null),this.a=this.C=this.A=null},dr.prototype.Jd=function(){this.l=!0,fr(this)};var pr=new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]]);function mr(e,t,n){var i=this;this.a=e,this.g=t,this.f=n,this.l=!1,this.b=new qt,this.c=new Er(e),hr(this.a,HTMLMediaElement.HAVE_METADATA,this.b,(function(){yr(i,i.f)}))}function vr(e){return e.l?e.a.currentTime:e.f}function gr(e,t){0Math.abs(e.a.currentTime-t)?br(e):(e.b.xa(e.a,"seeking",(function(){br(e)})),Tr(e.c,0==e.a.currentTime?t:e.a.currentTime))}function br(e){e.l=!0,e.b.h(e.a,"seeking",(function(){return e.g()}))}function Er(e){var t=this;this.b=e,this.l=10,this.g=this.f=this.c=0,this.a=new bt((function(){0>=t.c||t.b.currentTime!=t.f?t.a.stop():(t.b.currentTime=t.g,t.c--)}))}function Tr(e,t){e.f=e.b.currentTime,e.g=t,e.c=e.l,e.b.currentTime=t,e.a.Z(.1)}function wr(e){var t=this;this.a=e,this.f=!1,this.c=null,this.b=new qt,hr(this.a,HTMLMediaElement.HAVE_CURRENT_DATA,this.b,(function(){null==t.c?t.f=!0:(t.b.xa(t.a,"seeking",(function(){t.f=!0})),t.a.currentTime=Math.max(0,t.a.currentTime+t.c))}))}function Ar(e,t,n,i,r,a){var o=this;this.c=e,this.a=t.presentationTimeline,this.F=t.minBufferTime||0,this.m=n,this.C=r,this.o=null,this.f=new dr(e,t.presentationTimeline,n,function(e,t){if(!t.stallEnabled)return null;var n=t.stallSkip,i=new ur(new cr(e),t.stallThreshold);return function(e,t){e.c=t}(i,(function(){n?e.currentTime+=n:(e.pause(),e.play())})),i}(e,n),a),this.b=new mr(e,(function(){var e=o.f;e.o=!0,e.l=!1,e.f=!1;var t=vr(o.b);return e=Ir(o,t),.001e.a.getDuration()?e.a.Pb():e.a.Wa():0>t&&(t=e.a.Wa()+t),Sr(e,xr(e,t))}(this,i)),this.l=new bt((function(){if(0!=o.c.readyState&&!o.c.paused){var e=vr(o.b),t=o.a.Pb(),n=o.a.Wa();3>n-t&&(t=n-3),e=n?n-e.m.durationBackoff:t}function Ir(e,t){var n=Math.max(e.F,e.m.rebufferingGoal),i=e.m.safeSeekOffset,r=e.a.Pb(),a=e.a.Wa(),o=e.a.getDuration();3>a-r&&(r=a-3);var s=e.a.pc(n),u=e.a.pc(i);return n=e.a.pc(n+i),t>=o?Sr(e,t):t>a?a:t=s||Kn(e.c.buffered,t)?t:n}function xr(e,t){var n=e.a.Pb();return t(n=e.a.Wa())?n:t}function kr(e){this.a=e,this.b=null,this.c=0,this.f=!1}function Cr(e,t,n){return new kr([new or(e,e+t,(function(){return n}),0,null,null,e,e,e+t)])}function Nr(e,t){this.b=e,this.a=t}function _r(){kr.call(this,[]),this.g=[]}function Mr(e){var t=this;this.a=e,this.f=!1,this.b=this.a.Tc(),this.c=new bt((function(){t.a.Ae(.25*t.b)}))}function Lr(e){e.c.stop();var t=e.f?0:e.b;if(0<=t)try{return void(e.a.Tc()!=t&&e.a.Rd(t))}catch(e){}e.c.Z(.25),0!=e.a.Tc()&&e.a.Rd(0)}function Rr(e){var t=this;this.c=e,this.a=new Set,this.b=new bt((function(){Pr(t,!1)})).Z(.25)}function Pr(e,t){for(var n=c(e.a),i=n.next();!i.done;i=n.next()){i=i.value;for(var r=e.c.currentTime,a=t,o=c(i.g.a),s=o.next();!s.done;s=o.next()){s=s.value;var u=i.f.get(s),l=rs.endTime?Fr:jr;i.f.set(s,l);for(var d=c(i.l),f=d.next();!f.done;f=d.next())(f=f.value).Db==u&&f.Cb==l&&f.sb(s,a)}}}function Dr(e){var t=this;this.b=function(){},this.a=new Set,this.f=e,this.c=new bt((function(){for(var e=t.f(),n=c(t.a),i=n.next();!i.done;i=n.next())(i=i.value).endTime=n.startTime&&e(e-=this.c)||e>=this.a.length?null:this.a[e]},i.offset=function(e){if(!this.f)for(var t=c(this.a),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.timestampOffset+=e},i.Tb=function(e){if(!this.f){var t,n=this.a[this.a.length-1];t=this.a.length?e.filter((function(e){return e.startTime>=n.startTime})):e,n&&t.length&&t[0].startTime==n.startTime&&this.a.pop(),this.a.push.apply(this.a,l(t))}},i.ob=function(e){if(!this.f){var t=this.a.length;this.a=this.a.filter((function(t){return t.endTime>e})),this.c+=t-this.a.length}},i.eb=function(e,t){if(!this.f){for(;this.a.length&&this.a[this.a.length-1].startTime>=t;)this.a.pop();for(;this.a.length&&this.a[0].endTime<=e;)this.a.shift(),this.c++;if(0!=this.a.length){var n=this.a[this.a.length-1];this.a[this.a.length-1]=new or(n.startTime,t,n.c,n.b,n.a,n.f,n.timestampOffset,n.appendWindowStart,n.appendWindowEnd)}}},i.ed=function(e,t){var n=this;this.f||(this.b&&this.b.stop(),this.b=new bt((function(){var e=t();n.a.push.apply(n.a,l(e)),0==n.a.length&&(n.b.stop(),n.b=null)})),this.b.Z(e))},kr.prototype[Symbol.iterator]=function(){return this.Nb(0)},kr.prototype.Nb=function(e){return new Nr(this,this.find(e)||0)},B("shaka.media.SegmentIndex",kr),kr.forSingleSegment=Cr,kr.prototype.getIteratorForTime=kr.prototype.Nb,kr.prototype.updateEvery=kr.prototype.ed,kr.prototype.fit=kr.prototype.eb,kr.prototype.evict=kr.prototype.ob,kr.prototype.merge=kr.prototype.Tb,kr.prototype.offset=kr.prototype.offset,kr.prototype.get=kr.prototype.get,kr.prototype.find=kr.prototype.find,kr.prototype.markImmutable=kr.prototype.Nf,kr.prototype.release=kr.prototype.release,kr.prototype.destroy=kr.prototype.destroy,Nr.prototype.seek=function(e){return this.a=this.b.Nb(e).a,this.next().value},Nr.prototype.current=function(){return this.b.get(this.a-1)},Nr.prototype.next=function(){var e=this.b.get(this.a++);return{value:e,done:!e}},B("shaka.media.SegmentIterator",Nr),Nr.prototype.next=Nr.prototype.next,Nr.prototype.current=Nr.prototype.current,Nr.prototype.seek=Nr.prototype.seek,v(_r,kr),(i=_r.prototype).clone=function(){var e=new _r;return e.g=this.g.slice(),e},i.release=function(){for(var e=c(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g=[]},i.find=function(e){for(var t=0,n=c(this.g),i=n.next();!i.done;i=n.next()){var r=(i=i.value).find(e);if(null!=r)return r+t;t+=i.c+i.a.length}return null},i.get=function(e){for(var t=0,n=c(this.g),i=n.next();!i.done;i=n.next()){var r=(i=i.value).get(e-t);if(r)return r;t+=i.c+i.a.length}return null},i.offset=function(){},i.Tb=function(){},i.ob=function(){},i.eb=function(){},i.ed=function(){},B("shaka.media.MetaSegmentIndex",_r),_r.prototype.updateEvery=_r.prototype.ed,_r.prototype.fit=_r.prototype.eb,_r.prototype.evict=_r.prototype.ob,_r.prototype.merge=_r.prototype.Tb,_r.prototype.offset=_r.prototype.offset,_r.prototype.get=_r.prototype.get,_r.prototype.find=_r.prototype.find,_r.prototype.release=_r.prototype.release,Mr.prototype.release=function(){this.c&&(this.c.stop(),this.c=null),this.a=null},Mr.prototype.set=function(e){this.b=e,Lr(this)},Rr.prototype.release=function(){this.b.stop();for(var e=c(this.a),t=e.next();!t.done;t=e.next())t.value.release();this.a.clear()},Dr.prototype.release=function(){this.b=function(){},this.a.clear(),this.c.stop()},Or.prototype.release=function(){this.g=null,this.f.clear(),this.a=function(){},this.b=function(){},this.c=function(){}};var Ur=1,jr=2,Fr=3;function Br(e,t){this.W=Ye(e),this.a=t==Kr,this.G=0}function Gr(){return new Je(2,3,3e3)}(i=Br.prototype).Na=function(){return this.Gthis.W.byteLength)throw Gr();var t=Xe(this.W,this.G,e);return this.G+=e,t},i.skip=function(e){if(this.G+e>this.W.byteLength)throw Gr();this.G+=e},i.Ge=function(e){if(this.Ge||e>this.W.byteLength)throw Gr();this.G=e},i.Ld=function(){for(var e=this.G;this.Na()&&0!=this.W.getUint8(this.G);)this.G+=1;return e=Xe(this.W,e,this.G-e),this.G+=1,tt(e)},B("shaka.util.DataViewReader",Br),Br.prototype.readTerminatedString=Br.prototype.Ld,Br.prototype.seek=Br.prototype.seek,Br.prototype.rewind=Br.prototype.Ge,Br.prototype.skip=Br.prototype.skip,Br.prototype.readBytes=Br.prototype.xb,Br.prototype.readUint64=Br.prototype.Yb,Br.prototype.readInt32=Br.prototype.Ee,Br.prototype.readUint32=Br.prototype.N,Br.prototype.readUint16=Br.prototype.yc,Br.prototype.readUint8=Br.prototype.Ha,Br.prototype.getLength=Br.prototype.pf,Br.prototype.getPosition=Br.prototype.Af,Br.prototype.hasMoreData=Br.prototype.Na;var Kr=1;function Vr(){this.c=[],this.b=[],this.a=!1}function zr(e){for(var t=null!=e.flags?12:8;e.reader.Na()&&!e.parser.a;)e.parser.Yc(e.start+t,e.reader,e.partialOkay)}function Hr(e){for(var t=null!=e.flags?12:8,n=e.reader.N(),i=(n=c(Z(n))).next();!i.done&&(e.parser.Yc(e.start+t,e.reader,e.partialOkay),!e.parser.a);i=n.next());}function qr(e){return function(t){e(t.reader.xb(t.reader.W.byteLength-t.reader.G))}}function Wr(e){for(var t=0,n=(e=c(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function Xr(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}Br.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Kr},(i=Vr.prototype).box=function(e,t){var n=Wr(e);return this.c[n]=Yr,this.b[n]=t,this},i.va=function(e,t){var n=Wr(e);return this.c[n]=$r,this.b[n]=t,this},i.stop=function(){this.a=!0},i.parse=function(e,t){var n=new Br(e,0);for(this.a=!1;n.Na()&&!this.a;)this.Yc(0,n,t)},i.Yc=function(e,t,n){var i=t.G,r=t.N(),a=t.N();switch(r){case 0:r=t.W.byteLength-i;break;case 1:r=t.Yb()}var o=this.b[a];if(o){var s=null,u=null;this.c[a]==$r&&(s=(u=t.N())>>>24,u&=16777215),a=i+r,n&&a>t.W.byteLength&&(a=t.W.byteLength),o({parser:this,partialOkay:n||!1,version:s,flags:u,reader:t=new Br(t=0<(a-=t.G)?t.xb(a):new Uint8Array(0),0),size:r,start:i+e})}else t.skip(Math.min(i+r-t.G,t.W.byteLength-t.G))},B("shaka.util.Mp4Parser",Vr),Vr.typeToString=Xr,Vr.allData=qr,Vr.sampleDescription=Hr,Vr.children=zr,Vr.prototype.parseNext=Vr.prototype.Yc,Vr.prototype.parse=Vr.prototype.parse,Vr.prototype.stop=Vr.prototype.stop,Vr.prototype.fullBox=Vr.prototype.va,Vr.prototype.box=Vr.prototype.box;var Yr=0,$r=1;function Jr(e,t,n,i){return e=jt(e,i),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Qr(e,t){var n=this;this.B=t,this.v=e,this.m=null,this.f=1,this.c=this.b=null,this.a=new Map,this.l=!1,this.o=null,this.g=!1,this.I=new zt((function(){return function(e){var t,n,i,r;return R((function(a){if(1==a.a){for(t=[],n=c(e.a.values()),i=n.next();!i.done;i=n.next())la(r=i.value),t.push(da(r));return E(a,Promise.all(t),2)}e.a.clear(),e.B=null,e.v=null,e.m=null,T(a)}))}(n)}))}function Zr(e,t){var n=e.a.get("video");if(n){var i=n.stream;if(i)if(t){var r=i.trickModeVideo;r&&!n.zb&&(na(e,r,!1,0,!1),n.zb=i)}else(i=n.zb)&&(n.zb=null,na(e,i,!0,0,!1))}}function ea(e,t,n,i){n=void 0!==n&&n,i=void 0===i?0:i,e.b=t,e.l&&(t.video&&na(e,t.video,n,i,!1),t.audio&&na(e,t.audio,n,i,!1))}function ta(e,t){e.c=t,e.l&&na(e,t,!0,0,!1)}function na(e,t,n,i,r){var a=e.a.get(t.type);a||"text"!=t.type?a&&(a.zb&&(t.trickModeVideo?(a.zb=t,t=t.trickModeVideo):a.zb=null),a.stream!=t||r)&&("text"==t.type&&mi(e.B.O,nn(t.mimeType,t.codecs)),a.stream=t,a.Ba=null,n&&(a.hc?a.hd=!0:a.gb?(a.Bb=!0,a.Oc=i,a.hd=!0):(la(a),ua(e,a,!0,i).catch((function(t){e.B&&e.B.onError(t)})))),function(e,t){var n,i;return R((function(r){if(1==r.a)return t.ya?(n=t.stream,i=t.ya,n.segmentIndex?r.u(2):E(r,n.createSegmentIndex(),2)):r.return();if(t.ya!=i||t.stream!=n)return r.return();var a=e.B.Sc(),o=yi(e.B.O,t.type),s=t.stream.segmentIndex.find(t.Ga?t.Ga.endTime:a),u=null==s?null:t.stream.segmentIndex.get(s);s=u&&u.a?u.a-u.b:null,u&&!s&&(s=(u.endTime-u.startTime)*(t.stream.bandwidth||0)/8),s?((u=u.f)&&(s+=(u.a?u.a-u.b:null)||0),a=8*s/(u=e.B.getBandwidthEstimate())<(o||0)-a-Math.max(e.v.minBufferTime||0,e.m.rebufferingGoal)||t.ya.b.a>s):a=!1,a&&t.ya.abort(),T(r)}))}(e,a).catch((function(t){e.B&&e.B.onError(t)}))):function(e,t){var n,i,r,a,o;R((function(s){switch(s.a){case 1:return n=xe,w(s,2),E(s,wi(e.B.O,n.oa),4);case 4:S(s,3);break;case 2:i=I(s),e.B&&e.B.onError(i);case 3:r=nn(t.mimeType,t.codecs),mi(e.B.O,r),a=e.B.O.l,(a.isTextVisible()||e.m.alwaysStreamText)&&(o=ra(t),e.a.set(n.oa,o),ca(e,o,0)),T(s)}}))}(e,t)}function ia(e,t){t.hc||t.Bb||(t.gb?(t.Bb=!0,t.Oc=0):null==gi(e.B.O,t.type)?null==t.Za&&ca(e,t,0):(la(t),ua(e,t,!1,0).catch((function(t){e.B&&e.B.onError(t)}))))}function ra(e){return{stream:e,type:e.type,Ba:null,Ga:null,Uc:null,Dd:null,Cd:null,Bd:null,zb:null,endOfStream:!1,gb:!1,Za:null,Bb:!1,Oc:0,hd:!1,hc:!1,Md:!1,sc:!1,ya:null}}function aa(e,t){var n=e.v.presentationTimeline,i=n.fb();return!(t.endTimei)}function oa(e){return e&&"text"==e.type&&"application/cea-608"==e.stream.mimeType}function sa(e,t,n){var i,r,a,o;return R((function(s){return 1==s.a?(i=Gt,r=Jr(n.c(),n.b,n.a,e.m.retryParameters),a=e.B.Ub.request(i,r),t.ya=a,E(s,a.promise,2)):(o=s.b,t.ya=null,s.return(o.data))}))}function ua(e,t,n,i){var r,a;return R((function(o){return 1==o.a?(t.Bb=!1,t.hd=!1,t.Oc=0,t.hc=!0,t.Ga=null,t.Uc=null,t.Ba=null,i?(r=e.B.Sc(),a=e.B.O.getDuration(),E(o,e.B.O.remove(t.type,r+i,a),3)):E(o,wi(e.B.O,t.type),4)):3!=o.a?(Ht(e.I),n?E(o,e.B.O.flush(t.type),3):o.u(3)):(Ht(e.I),t.hc=!1,t.endOfStream=!1,ca(e,t,0),void T(o))}))}function ca(e,t,n){var i=t.type;("text"!=i||e.a.has(i))&&(t.Za=new yt((function(){var n;return R((function(i){return 1==i.a?(w(i,2),E(i,e.wc(t),4)):2!=i.a?S(i,0):(n=I(i),e.B&&e.B.onError(n),void T(i))}))})).P(n))}function la(e){null!=e.Za&&(e.Za.stop(),e.Za=null)}function da(e){return R((function(t){return e.ya?E(t,e.ya.abort(),0):t.u(0)}))}function fa(e,t){R((function(n){if(1==n.a)return E(n,Tt(e.o),2);Ht(e.I),e.B.onError(t),t.handled||e.m.failureCallback(t),T(n)}))}function ha(e,t){var n=wo(),i=this;this.l=t,this.c=e,this.f=n,this.o=null,this.g=[],this.b=this.a=null,this.s=Promise.resolve().then((function(){return function(e){return R((function(t){if(e.I.a)t=t.u(0);else{if(0==e.g.length||e.a&&!e.a.rb)var n=!1;else{e.a&&(e.a.Oa.wb(),e.a=null);var i=(n=e.g.shift()).create(e.f);i?(n.Oa.Wb(),e.a={node:i.node,payload:i.payload,rb:i.rb,Oa:n.Oa}):n.Oa.Xc(),n=!0}n?n=Promise.resolve():e.a?n=function(e){var t,n;return R((function(i){switch(i.a){case 1:return e.c=e.l.yf(e.c,e.f,e.a.node,e.a.payload),w(i,2),e.b=e.l.cf(e.c,e.f,e.a.payload),E(i,e.b.promise,4);case 4:e.b=null,e.c==e.a.node&&(e.a.Oa.Vc(),e.a=null),S(i,0);break;case 2:return 7001==(t=I(i)).code?e.a.Oa.wb():e.a.Oa.onError(t),e.a=null,e.b=null,n=e,E(i,e.l.handleError(e.f,t),5);case 5:n.c=i.b,T(i)}}))}(e):(e.l.Rf(e.c),e.o=new Qe,n=e.o),t=E(t,n,1)}return t}))}(i)})),this.I=new zt((function(){return function(e){var t,n;return R((function(i){if(1==i.a)return e.b&&e.b.abort(),ma(e),E(i,e.s,2);for(e.a&&e.a.Oa.wb(),t=c(e.g),n=t.next();!n.done;n=t.next())n.value.Oa.wb();e.a=null,e.g=[],e.l=null,T(i)}))}(i)}))}function pa(e,t){var n={Wb:function(){},Vc:function(){},wb:function(){},onError:function(){},Xc:function(){},Tg:function(){}};return e.g.push({create:t,Oa:n}),e.b&&e.b.abort(),ma(e),n}function ma(e){e.o&&(e.o.resolve(),e.o=null)}function va(e){this.a=null;for(var t=c(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.a=n);this.a||(this.a=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.a.mode="hidden"}function ga(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 ya(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var i=c(Array.from(e.cues)),r=i.next();!r.done;r=i.next())(r=r.value)&&t(r)&&e.removeCue(r);e.mode=n}function ba(){}function Ea(e){return document.createElement(e)}function Ta(){return document.createElement("button")}function wa(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Aa(e,t){var n=this;this.l=!1,this.f=[],this.a=e,this.g=t,this.b=Ea("div"),this.b.classList.add("shaka-text-container"),this.b.style.textAlign="center",this.b.style.display="flex",this.b.style.flexDirection="column",this.b.style.alignItems="center",this.b.style.justifyContent="flex-end",this.g.appendChild(this.b),this.o=new bt((function(){Sa(n)})).Z(.25),this.c=new Map}function Sa(e){function t(t){return e.f.includes(t)&&e.l&&t.startTime<=n&&t.endTime>=n}for(var n=e.a.currentTime,i=c(e.c.keys()),r=i.next();!r.done;r=i.next())if(!t(r=r.value)){var a=e.c.get(r);e.b.removeChild(a),e.c.delete(r)}for(i=new Set(e.c.values()),a=(r=c(Array.from(e.b.childNodes))).next();!a.done;a=r.next())a=a.value,i.has(a)||e.b.removeChild(a);for(r=(i=c(i=e.f.filter((function(n){return t(n)&&!e.c.has(n)})).sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime})))).next();!r.done;r=i.next())xa(e,e.b,r.value)}function Ia(e,t,n,i){var r=Ea("span");return i&&r.classList.add("shaka-nested-cue"),ka(e,r,n,!0),t.appendChild(r),r}function xa(e,t,n){if(n.nestedCues.length){var i=Ea("p");i.style.width="100%",ka(e,i,n,!1);for(var r=0;r(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 La(){}function Ra(){var e=1e6,t=1/0;navigator.connection&&(navigator.connection.downlink&&(e=1e6*navigator.connection.downlink),navigator.connection.saveData&&(t=360));var n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:kn,logLicenseExchange:!1,updateExpirationTime:1},i={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1},hls:{ignoreTextStreamFailures:!1,useFullSegmentsForStartTime:!1}},r={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0},failureCallback:function(e){return[e]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2};(dn("Web0S")||un()||dn("CrKey"))&&(r.stallSkip=0);var a={trackSelectionCallback:function(e){return R((function(t){return t.return(e)}))},progressCallback:function(e,t){return[e,t]},usePersistentLicense:!0},o={drm:n,manifest:i,streaming:r,offline:a,abrFactory:function(){return new Ki},abr:{enabled:!0,defaultBandwidthEstimate:e,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:t,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,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}};return a.trackSelectionCallback=function(e){return R((function(t){return t.return(function(e,t){var n=e.filter((function(e){return"variant"==e.type})),i=[],r=Pe(t,n.map((function(e){return e.language})));r&&(i=n.filter((function(e){return _e(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=c(e),o=i.next();!o.done;o=i.next())"text"==(o=o.value).type&&n.push(o);return n}(e,o.preferredAudioLanguage))}))},o}function Pa(e,t,n){var i={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",serverCertificate:new Uint8Array(0),individualizationServer:""}};return _a(e,t,n||Ra(),i,"")}function Da(){this.a=null,this.b=[]}function Oa(e,t){if(null==e.a)e.a={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.a.duration=n-e.a.timestamp,e.a.state!=t&&(e.b.push(e.a),e.a={timestamp:n,state:t,duration:0})}}function Ua(e,t){var n=0;e.a&&e.a.state==t&&(n+=e.a.duration);for(var i=c(e.b),r=i.next();!r.done;r=i.next())n+=(r=r.value).state==t?r.duration:0;return n}function ja(){this.b=this.c=null,this.a=[]}function Fa(e,t,n){e.c!=t&&(e.c=t,e.a.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth}))}function Ba(e,t,n){e.b!=t&&(e.b=t,e.a.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function Ga(){this.g=this.l=this.C=this.s=this.F=this.c=this.A=this.f=this.H=this.K=this.L=this.o=this.M=NaN,this.b=new Da,this.a=new ja}function Ka(t,n){$.call(this);var i=this;this.g=Yo,this.cb=this.a=null,this.R=!1,this.b=new qt,this.ib=this.o=this.Ja=this.v=this.ab=this.s=this.c=this.bb=this.F=this.Sa=this.C=this.ha=this.A=this.H=this.l=this.T=null,this.me=1e9,this.m=Qa(this),this.jd={width:1/0,height:1/0},this.f=null,this.Ka=new Yi(this.m.preferredAudioLanguage,this.m.preferredVariantRole,this.m.preferredAudioChannelCount),this.X=this.m.preferredTextLanguage,this.Ta=this.m.preferredTextRole,this.jb=[],n&&n(this),this.T=function(e){return new Ot((function(t,n){e.o&&e.o.segmentDownloaded(t,n)}))}(this),this.K=null,ts&&(this.K=Ae(ts)),this.b.h(e,"online",(function(){i.Nd()})),this.ua={name:"detach"},this.Va={name:"attach"},this.M={name:"unload"},this.wd={name:"manifest-parser"},this.vd={name:"manifest"},this.$={name:"media-source"},this.kb={name:"drm-engine"},this.L={name:"load"},this.xd={name:"src-equals-drm-engine"},this.ia={name:"src-equals"};var r=new Map;r.set(this.Va,(function(e,t){return xt(function(e,t,n){return null==t.D&&(t.D=n.D,e.b.h(t.D,"error",(function(){var t=ho(e);t&&lo(e,t)}))),e.a=t.D,Promise.resolve()}(i,e,t))})),r.set(this.ua,(function(e){return e.D&&(i.b.Ca(e.D,"error"),e.D=null),i.a=null,xt(e=Promise.resolve())})),r.set(this.M,(function(e){return xt(Ha(i,e))})),r.set(this.$,(function(t){return xt(t=function(t,n){var i,r,a,o;return R((function(s){if(1==s.a)return i=e.muxjs?new Fn:new Bn,r=t.m.textDisplayFactory,a=Ae(r),t.Jb=r,E(s,(o=function(e,t,n,i){return new hi(e,t,n,i)}(n.D,i,a,(function(e,n,i){for(var r=(e=c(e)).next();!r.done;r=e.next())if((r=r.value).data&&r.cueTime&&r.frames){for(var a=r.cueTime+n,o=i,s=c(r.frames),u=s.next();!u.done;u=s.next())qa(t,a,o,"ID3",u.value);t.K&&t.K.onHlsTimedMetadata(r,a)}}))).C,2);t.H=o,T(s)}))}(i,t))})),r.set(this.wd,(function(e,t){return xt(function(e,t,n){var i,r,a,o;return R((function(s){if(1==s.a)return t.mimeType=n.mimeType,t.uri=n.uri,i=t.uri,r=e.T,e.Ja=i,a=e,E(s,tr(i,r,e.m.manifest.retryParameters,t.mimeType),2);a.ab=s.b,e.s=Ae(e.ab),o=Ct(e.m.manifest),n.D&&"AUDIO"===n.D.nodeName&&(o.disableVideo=!0),e.s.configure(o),T(s)}))}(i,e,t))})),r.set(this.vd,(function(e){return function(e,t){var n=t.uri,i=e.T;e.bb=new Dr((function(){return e.Ia()})),function(e,t){e.b=t}(e.bb,(function(t){fo(e,Go,t),e.K&&e.K.onDashTimedMetadata(t)}));var r={networkingEngine:i,filter:function(t){return R((function(n){return n.return(e.Kb(t))}))},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,i=c(t.textStreams),r=i.next();!r.done;r=i.next())"application/cea-608"==(r=r.value).mimeType&&n.add(r.originalId);for(i=c(t.variants),r=i.next();!r.done;r=i.next())if((r=r.value.video)&&r.closedCaptions)for(var a=c(r.closedCaptions.keys()),o=a.next();!o.done;o=a.next())if(o=o.value,!n.has(o)){var s=new _r;s={id:e.me++,originalId:o,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:s,mimeType:"application/cea-608",codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:r.closedCaptions.get(o),label:null,type:"text",primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:r.roles,channelsCount:null,audioSamplingRate:null,closedCaptions:null},t.textStreams.push(s),n.add(o)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.bb;e:{for(var i=c(n.a),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.a.add(t),n.b(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return lo(e,t)}},a=Date.now()/1e3;return new wt(function(){var t,i,o,s;return R((function(u){if(1==u.a)return t=e,E(u,e.s.start(n,r),2);if(t.v=u.b,i=Va(Ro),e.dispatchEvent(i),0==e.v.variants.length)throw new Je(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.v),o=Date.now()/1e3,s=o-a,e.f.A=s,T(u)}))}(),(function(){return e.s.stop()}))}(i,e)})),r.set(this.kb,(function(){return xt(function(e){var t,n;return R((function(i){if(1==i.a)return t=Date.now()/1e3,n=!0,e.l=Wa(e,{Ub:e.T,onError:function(t){lo(e,t)},Wc:function(t){po(e,t)},onExpirationUpdated:function(t,n){mo(e,t,n)},onEvent:function(i){e.dispatchEvent(i),i.type==ko&&n&&(n=!1,e.f.c=Date.now()/1e3-t)}}),e.l.configure(e.m.drm),E(i,vn(e.l,e.v.variants,e.v.offlineSessionIds),2);e.Kb(e.v),T(i)}))}(i))})),r.set(this.L,(function(e,t){return xt(function(e,t,n){var i,r,a,o,s,u,l,d,f,h;return R((function(p){switch(p.a){case 1:return t.startTime=n.startTime,i=t.D,r=t.uri,e.Ja=r,e.C=new Mr({Tc:function(){return t.D.playbackRate},Rd:function(e){t.D.playbackRate=e},Ae:function(e){t.D.currentTime+=e}}),a=function(){return to(e)},o=function(){return eo(e)},e.b.h(i,"playing",a),e.b.h(i,"pause",a),e.b.h(i,"ended",a),e.b.h(i,"ratechange",o),s=e.m.abrFactory,e.o&&e.ib==s||(e.ib=s,e.o=Ae(s),"function"!=typeof e.o.playbackRateChanged&&(ve("AbrManager","Please use an AbrManager with playbackRateChanged function."),e.o.playbackRateChanged=function(){}),e.o.configure(e.m.abr)),e.Ka=new Yi(e.m.preferredAudioLanguage,e.m.preferredVariantRole,e.m.preferredAudioChannelCount),e.X=e.m.preferredTextLanguage,function(e,t,n){0=s.a&&n, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),r.resolve()),e.b.xa(e.a,"error",(function(){r.reject(ho(e))})),new wt(r,(function(){return r.reject(new Je(2,7,7001)),Promise.resolve()}))}(i,e,t)})),this.V=new ha(this.ua,{yf:function(e,t,n,r){var a=null;return e==i.ua&&(a=n==i.ua?i.ua:i.Va),e==i.Va&&(a=n==i.ua||t.D!=r.D?i.ua:n==i.Va?i.Va:n==i.$||n==i.L?i.$:n==i.ia?i.xd:null),e==i.$&&(a=n==i.L&&t.D==r.D?i.wd:i.M),e==i.wd&&(a=To(i.L,i.vd,i.M,n,t,r)),e==i.vd&&(a=To(i.L,i.kb,i.M,n,t,r)),e==i.kb&&(a=To(i.L,i.L,i.M,n,t,r)),e==i.xd&&(a=n==i.ia&&t.D==r.D?i.ia:i.M),e!=i.L&&e!=i.ia||(a=i.M),e==i.M&&(a=r.D&&t.D==r.D?i.Va:i.ua),a},cf:function(e,t,n){return i.dispatchEvent(Va(Do,{state:e.name})),r.get(e)(t,n)},handleError:function(e){return R((function(t){return 1==t.a?E(t,Ha(i,e),2):t.return(e.D?i.Va:i.ua)}))},Rf:function(e){i.dispatchEvent(Va(Oo,{state:e.name}))}}),t&&this.fc(t,!0)}function Va(e,t){return new G(e,t)}function za(){if(!(e.Promise&&e.Uint8Array&&Array.prototype.forEach))return!1;var t=ln();return!(t&&12>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!on()||sn("application/x-mpegurl"))}function Ha(e,t){var n,i,r,a,o,s,u,l,d;return R((function(f){switch(f.a){case 1:return e.g!=Xo&&(e.g=Yo),n=e.jb.map((function(e){return e()})),e.jb=[],E(f,Promise.all(n),2);case 2:if(e.dispatchEvent(Va(Ho)),t.mimeType=null,t.startTime=null,t.uri=null,t.D&&(e.b.Ca(t.D,"loadedmetadata"),e.b.Ca(t.D,"playing"),e.b.Ca(t.D,"pause"),e.b.Ca(t.D,"ended"),e.b.Ca(t.D,"ratechange")),e.ha&&(e.ha.release(),e.ha=null),e.Sa&&(e.Sa.stop(),e.Sa=null),!e.s){f.u(3);break}return E(f,e.s.stop(),4);case 4:e.s=null,e.ab=null;case 3:if(!e.o){f.u(5);break}return E(f,e.o.stop(),5);case 5:if(!e.c){f.u(7);break}return E(f,e.c.destroy(),8);case 8:e.c=null;case 7:if(e.C&&(e.C.release(),e.C=null),e.A&&(e.A.release(),e.A=null),!e.H){f.u(9);break}return E(f,e.H.destroy(),10);case 10:e.H=null;case 9:if(e.K&&e.K.onAssetUnload(),!t.D||!t.D.src){f.u(11);break}return E(f,new Promise((function(e){return new bt(e).P(.1)})),12);case 12:t.D.removeAttribute("src"),t.D.load();case 11:if(!e.l){f.u(13);break}return E(f,e.l.destroy(),14);case 14:e.l=null;case 13:if(e.Ja=null,e.F=null,e.v){for(i=c(e.v.variants),r=i.next();!r.done;r=i.next())for(a=r.value,o=c([a.audio,a.video]),s=o.next();!s.done;s=o.next())(u=s.value)&&u.segmentIndex&&u.segmentIndex.release();for(l=c(e.v.textStreams),s=l.next();!s.done;s=l.next())(d=s.value).segmentIndex&&d.segmentIndex.release()}e.v=null,e.f=new Ga,e.Jb=null,Za(e),T(f)}}))}function qa(e,t,n,i,r){e.dispatchEvent(Va(Po,{startTime:t,endTime:n,Sg:i,payload:r}))}function Wa(e,t){return new mn(t,e.m.drm.updateExpirationTime)}function Xa(e,t){e.F=new $i,e.F.a=Qi,Ji(e.F,t,Math.min(.5,t/2)),Za(e),e.Sa=new bt((function(){Ya(e)})).Z(.25)}function Ya(e){switch(e.g){case Jo:if(e.a.ended)var t=!0;else{var n=Gn(e.a.buffered);t=null!=n&&n>=e.a.duration-1}break;case $o:e:if(e.a.ended||vi(e.H))t=!0;else{if(e.v.presentationTimeline.S()){n=e.v.presentationTimeline.fb();var i=Gn(e.a.buffered);if(null!=i&&i>=n){t=!0;break e}}t=!1}break;default:t=!1}i=Vn(e.a.buffered,e.a.currentTime);var r=t,a=(n=e.F).b.get(n.a);t=n.a,i=r||i>=a?Zi:Qi,n.a=i,t!=i&&Za(e)}function $a(e){if(e.s){var t=Ct(e.m.manifest);e.a&&"AUDIO"===e.a.nodeName&&(t.disableVideo=!0),e.s.configure(t)}if(e.l&&e.l.configure(e.m.drm),e.c){e.c.configure(e.m.streaming);try{e.Kb(e.v)}catch(t){lo(e,t)}e.o&&no(e),!(t=e.c.b)||t.allowedByApplication&&t.allowedByKeySystem||io(e)}if(e.H&&(t=e.m.textDisplayFactory,e.Jb!=t)){var n=Ae(t),i=e.H,r=i.l;i.l=n,r&&(n.setTextVisibility(r.isTextVisible()),r.destroy()),i.c&&(i.c.c=n),e.Jb=t,e.c&&((n=(t=e.c).a.get("text"))&&na(t,n.stream,!0,0,!0))}e.o&&(e.o.configure(e.m.abr),e.m.abr.enabled?e.o.enable():e.o.disable(),co(e)),e.F&&(t=e.m.streaming.rebufferingGoal,e.v&&(t=Math.max(t,e.v.minBufferTime)),Ji(e.F,t,Math.min(.5,t/2)))}function Ja(e){return Array.from(e.a.textTracks).filter((function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label}))}function Qa(e){var t=Ra();return t.streaming.failureCallback=function(t){e.S()&&[1001,1002,1003].includes(t.code)&&(t.severity=1,e.Nd())},t.textDisplayFactory=function(){return e.cb?new Aa(e.a,e.cb):new va(e.a)},t}function Za(e){var t=e.vc();if(e.f&&e.F&&e.A){var n=e.C;n.f=t,Lr(n),to(e)}e.dispatchEvent(Va(xo,{buffering:t}))}function eo(e){var t=e.a.playbackRate;0!=t&&(e.C&&e.C.set(t),t=Va(Uo),e.dispatchEvent(t))}function to(e){if(e.f&&e.F){var t=e.f.b;e.F.a==Qi?Oa(t,"buffering"):e.a.paused?Oa(t,"paused"):e.a.ended?Oa(t,"ended"):Oa(t,"playing")}}function no(e){try{vo(e,e.v)}catch(t){return lo(e,t),!1}var t=e.v.variants.filter((function(e){return Ui(e)}));return t=e.Ka.create(t),e.o.setVariants(Array.from(t.values())),!0}function io(e){var t;if(t=no(e)?e.o.chooseVariant():null){if(t==e.c.b)return;Fa(e.f.a,t,!0),ea(e.c,t,!0,0),oo(e)}ro(e)}function ro(e){go(e,Va(Io))}function ao(e){go(e,Va(zo))}function oo(e){go(e,Va(qo))}function so(e){go(e,Va(Fo))}function uo(e){go(e,Va(Bo))}function co(e){go(e,Va(So,{Qf:e.m.abr.enabled}))}function lo(e,t){if(e.g!=Xo){var n=Va(No,{detail:t});e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function fo(e,t,n){e.dispatchEvent(Va(t,{detail:{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}}))}function ho(e){if(!e.a.error)return null;var t=e.a.error.code;if(1==t)return null;var n=e.a.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new Je(2,3,3016,t,n,e.a.error.message)}function po(e,t){if(e.c){var n=Object.keys(t),i=1==n.length&&"00"==n[0],r=!1;if(n.length)for(var a=(n=c(e.v.variants)).next();!a.done;a=n.next()){var o=[];(a=a.value).audio&&o.push(a.audio),a.video&&o.push(a.video);for(var s=(o=c(o)).next();!s.done;s=o.next()){var u=s.value;if(s=a.allowedByKeySystem,u.keyIds.size){a.allowedByKeySystem=!0;for(var l=(u=c(u.keyIds)).next();!l.done;l=u.next())l=l.value,l=t[i?"00":l],a.allowedByKeySystem=a.allowedByKeySystem&&!!l&&!Zo.includes(l)}s!=a.allowedByKeySystem&&(r=!0)}}r&&no(e),(i=e.c.b)&&!i.allowedByKeySystem&&io(e),r&&ao(e)}}function mo(e,t,n){e.s&&e.s.onExpirationUpdated&&e.s.onExpirationUpdated(t,n),t=Va(_o),e.dispatchEvent(t)}function vo(e,t){var n=e.l?Zt(e.l.R):{},i=Object.keys(n);i=i.length&&"00"==i[0];for(var r=!1,a=!1,o=new Set,s=new Set,u=c(t.variants),l=u.next();!l.done;l=u.next()){var d=[];(l=l.value).audio&&d.push(l.audio),l.video&&d.push(l.video);for(var f=(d=c(d)).next();!f.done;f=d.next())if((f=f.value).keyIds.size)for(var h=(f=c(f.keyIds)).next();!h.done;h=f.next()){h=h.value;var p=n[i?"00":h];p?Zo.includes(p)&&s.add(p):o.add(h)}l.allowedByApplication?l.allowedByKeySystem&&(r=!0):a=!0}if(!r)throw new Je(2,4,4012,n={hasAppRestrictions:a,missingKeys:Array.from(o),restrictedKeyStatuses:Array.from(s)})}function go(e,t){R((function(n){if(1==n.a)return E(n,Promise.resolve(),2);e.g!=Xo&&e.dispatchEvent(t),T(n)}))}function yo(e){for(var t=new Set,n=(e=c(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(_e(n.language)):t.add("und");return t}function bo(e){for(var t=new Map,n=(e=c(e)).next();!n.done;n=e.next()){var i=n.value;n="und";var r=[];for(i.language&&(n=_e(i.language)),(r="variant"==i.type?i.audioRoles:i.roles)&&r.length||(r=[""]),t.has(n)||t.set(n,new Set),r=(i=c(r)).next();!r.done;r=i.next())r=r.value,t.get(n).add(r)}var a=[];return t.forEach((function(e,t){for(var n=c(e),i=n.next();!i.done;i=n.next())a.push({language:t,role:i.value})})),a}function Eo(){return new Je(2,7,7e3)}function To(e,t,n,i,r,a){return i==e&&r.D==a.D&&r.uri==a.uri&&r.mimeType==a.mimeType?t:n}function wo(){return{D:null,mimeType:null,startTime:null,Wd:NaN,uri:null}}function Ao(e){return new Promise((function(t,n){e.wb=function(){return n(Eo())},e.Vc=function(){return t()},e.onError=function(e){return n(e)},e.Xc=function(){return n(Eo())}}))}Qr.prototype.destroy=function(){return this.I.destroy()},Qr.prototype.configure=function(e){this.m=e,this.o=new Et({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0},!0)},Qr.prototype.start=function(){var e=this;return R((function(t){if(1==t.a)return E(t,function(e){var t,n,i,r,a,o,s,u,l,d;return R((function(f){if(1==f.a){if(t=xe,!e.b)throw new Je(2,5,5006);return n=new Map,i=new Set,e.b.audio&&(n.set(t.Ib,e.b.audio),i.add(e.b.audio)),e.b.video&&(n.set(t.Ua,e.b.video),i.add(e.b.video)),e.c&&(n.set(t.oa,e.c),i.add(e.c)),r=e.B.O,a=e.m.forceTransmuxTS,E(f,r.init(n,a),2)}Ht(e.I);var h=e.v.presentationTimeline.getDuration();for(1/0>h?e.B.O.Qa(h):e.B.O.Qa(Math.pow(2,32)),o=c(n.keys()),s=o.next();!s.done;s=o.next())u=s.value,l=n.get(u),e.a.has(u)||(d=ra(l),e.a.set(u,d),ca(e,d,0));T(f)}))}(e),2);Ht(e.I),e.l=!0,T(t)}))},Qr.prototype.wc=function(e){var t,n,i,r,a=this;return R((function(o){switch(o.a){case 1:if(Ht(a.I),e.gb||null==e.Za||e.hc)return o.return();if(e.Za=null,!e.Bb){o.u(2);break}return E(o,ua(a,e,e.hd,e.Oc),3);case 3:return o.return();case 2:if(e.stream.segmentIndex){o.u(4);break}return t=e.stream,E(o,e.stream.createSegmentIndex(),5);case 5:if(t!=e.stream)return null==e.Za&&ca(a,e,0),o.return();case 4:try{null!=(n=function(e,t){if(oa(t))return Ti(e.B.O,t.stream.originalId||""),null;var n=e.B.Sc(),i=t.Ga?t.Ga.endTime:n,r=function(e,t,n){return"text"==t?null==(e=e.c).b||e.b=e.v.presentationTimeline.getDuration())return t.endOfStream=!0,"video"==t.type&&(n=e.a.get("text"))&&oa(n)&&(n.endOfStream=!0),null;if(t.endOfStream=!1,r>=a)return.5;if(r=yi(e.B.O,t.type),!(r=function(e,t,n,i){return t.Ba?t.Ba.current():t.Ga||i?(t.Ba=t.stream.segmentIndex.Nb(t.Ga?t.Ga.endTime:i),t.Ba.next().value):(t.Ba=t.stream.segmentIndex.Nb(Math.max(n-e.m.inaccurateManifestTolerance,0)),(i=t.Ba.next().value)&&aa(e,i)||(t.Ba=t.stream.segmentIndex.Nb(n),i=t.Ba.next().value),i)}(e,t,n,r))||!aa(e,r))return 1;a=1/0;for(var o=Array.from(e.a.values()),s=(o=c(o)).next();!s.done;s=o.next())oa(s=s.value)||(a=Math.min(a,s.Ga?s.Ga.endTime:n));return i>=a+e.v.presentationTimeline.a?1:(function(e,t,n,i){var r,a,o,s,u,c,l,d,f;return R((function(h){switch(h.a){case 1:return r=xe,a=t.stream,o=t.Ba,t.gb=!0,s=function(e,t,n){var i,r,a,o,s,u,c;return R((function(l){return i=[],r=Math.max(0,n.appendWindowStart-.1),a=n.appendWindowEnd+.01,(o=n.timestampOffset)==t.Dd&&r==t.Cd&&a==t.Bd||(s=function(){var n;return R((function(i){if(1==i.a)return w(i,2),t.Cd=r,t.Bd=a,t.Dd=o,E(i,function(e,t,n,i,r){return R((function(a){return t==xe.oa?(e.c.A=n,function(e,t,n){e.f=t,e.g=n}(e.c,i,r),a.return()):E(a,Promise.all([Si(e,t,(function(){var n=e.f[t].appendWindowStart,i=e.f[t].appendWindowEnd;e.f[t].abort(),e.f[t].appendWindowStart=n,e.f[t].appendWindowEnd=i,Ai(e,t)})),Si(e,t,(function(){var i=n;0>i&&(i+=.001),e.f[t].timestampOffset=i,Ai(e,t)})),Si(e,t,(function(){e.f[t].appendWindowStart=0,e.f[t].appendWindowEnd=r,e.f[t].appendWindowStart=i,Ai(e,t)}))]),0)}))}(e.B.O,t.type,o,r,a),4);if(2!=i.a)return S(i,0);throw n=I(i),t.Cd=null,t.Bd=null,t.Dd=null,n}))},i.push(s())),!function(e,t){return e&&t?e.qc()==t.qc()&&e.kc()==t.kc()&&Rt(e.c(),t.c()):e==t}(n.f,t.Uc)&&(t.Uc=n.f)&&(u=sa(e,t,n.f),c=function(){var n,i,r;return R((function(a){switch(a.a){case 1:return w(a,2),E(a,u,4);case 4:return n=a.b,Ht(e.I),i=t.stream.closedCaptions&&0=(a=n-r-i)?o.return():E(o,e.B.O.remove(t.type,r,r+a),2);Ht(e.I),T(o)}))}(e,t,n),2)):3!=s.a?(Ht(e.I),E(s,Ei(e.B.O,t.type,a,r.startTime,r.endTime,o),3)):(Ht(e.I),void T(s))}))}(e,t,n,a,i,c[1]),5);case 5:if(Ht(e.I),e.g)return h.return();t.Ga=i,o.next(),t.gb=!1,t.Md=!1,l=e.B.O.Rc(),d=l[t.type],JSON.stringify(d),t.Bb||e.B.Jd(),ca(e,t,0),S(h,0);break;case 2:if(f=I(h),Ht(e.I,f),e.g)return h.return();t.gb=!1,t.type==r.oa&&e.m.ignoreTextStreamFailures?e.a.delete(r.oa):7001==f.code?(t.gb=!1,t.Za=null,ca(e,t,0)):3017==f.code?function(e,t,n){if(!Array.from(e.a.values()).some((function(e){return e!=t&&e.Md}))){var i=Math.round(100*e.f);if(20e})),!0)},i.append=function(e){function t(e){return e.spacer?"\n":e.nestedCues.length?e.nestedCues.map(t).join(""):e.payload}var n=e.map((function(e){if(e.nestedCues.length){var n=e.clone();return n.nestedCues=[],n.payload=t(e),n}return e})),i=[];e=this.a.cues?Array.from(this.a.cues):[];for(var r={},a=(n=c(n)).next();!a.done;r={Eb:r.Eb},a=n.next())r.Eb=a.value,e.some(function(e){return function(t){return t.startTime==e.Eb.startTime&&t.endTime==e.Eb.endTime&&t.text==e.Eb.payload}}(r))||(a=ga(r.Eb))&&i.push(a);for(r=(e=c(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)})))).next();!r.done;r=e.next())this.a.addCue(r.value)},i.destroy=function(){return this.a&&(ya(this.a,(function(){return!0})),this.a.mode="disabled"),this.a=null,Promise.resolve()},i.isTextVisible=function(){return"showing"==this.a.mode},i.setTextVisibility=function(e){this.a.mode=e?"showing":"hidden"},B("shaka.text.SimpleTextDisplayer",va),va.prototype.setTextVisibility=va.prototype.setTextVisibility,va.prototype.isTextVisible=va.prototype.isTextVisible,va.prototype.destroy=va.prototype.destroy,va.prototype.append=va.prototype.append,va.prototype.remove=va.prototype.remove,B("shaka.util.Dom",ba),ba.removeAllChildren=wa,(i=Aa.prototype).append=function(e){for(var t=l(this.f).concat(),n={},i=(e=c(e)).next();!i.done;n={Dc:n.Dc},i=e.next())n.Dc=i.value,t.some(function(e){return function(t){return qn(t,e.Dc)}}(n))||this.f.push(n.Dc);Sa(this)},i.destroy=function(){this.g.removeChild(this.b),this.b=null,this.l=!1,this.f=[],this.o&&this.o.stop(),this.c.clear()},i.remove=function(e,t){return!!this.b&&(this.f=this.f.filter((function(n){return n.startTime=t})),Sa(this),!0)},i.isTextVisible=function(){return this.l},i.setTextVisibility=function(e){this.l=e},B("shaka.text.UITextDisplayer",Aa),Aa.prototype.setTextVisibility=Aa.prototype.setTextVisibility,Aa.prototype.isTextVisible=Aa.prototype.isTextVisible,Aa.prototype.remove=Aa.prototype.remove,Aa.prototype.destroy=Aa.prototype.destroy,Aa.prototype.append=Aa.prototype.append,B("shaka.util.ConfigUtils",Na),Na.convertToConfigObject=Ma,Na.mergeConfigObjects=_a,B("shaka.util.PlayerConfiguration",La),La.mergeConfigObjects=Pa,v(Ka,$),(i=Ka.prototype).destroy=function(){var e,t=this;return R((function(n){switch(n.a){case 1:return t.g==Xo?n.return():(t.g=Xo,e=pa(t.V,(function(){return{node:t.ua,payload:wo(),rb:!1}})),E(n,new Promise((function(t){e.Wb=function(){},e.Vc=function(){t()},e.wb=function(){t()},e.onError=function(){t()},e.Xc=function(){t()}})),2));case 2:return E(n,t.V.destroy(),3);case 3:if(t.b&&(t.b.release(),t.b=null),t.ib=null,t.o=null,t.m=null,t.f=null,t.cb=null,!t.T){n.u(0);break}return E(n,t.T.destroy(),5);case 5:t.T=null,T(n)}}))},i.fc=function(e,t){if(t=void 0===t||t,this.g==Xo)return Promise.reject(Eo());var n=wo();n.D=e,on()||(t=!1);var i=t?this.$:this.Va,r=pa(this.V,(function(){return{node:i,payload:n,rb:!1}}));return r.Wb=function(){},Ao(r)},i.detach=function(){var e=this;if(this.g==Xo)return Promise.reject(Eo());var t=pa(this.V,(function(){return{node:e.ua,payload:wo(),rb:!1}}));return t.Wb=function(){},Ao(t)},i.ae=function(e){var t=this;if(e=void 0===e||e,this.g==Xo)return Promise.reject(Eo());on()||(e=!1);var n=wo(),i=pa(this.V,(function(i){var r=i.D&&e?t.$:i.D?t.Va:t.ua;return n.D=i.D,{node:r,payload:n,rb:!1}}));return i.Wb=function(){},Ao(i)},i.load=function(e,t,n){var i=this;if(this.g==Xo)return Promise.reject(Eo());this.dispatchEvent(Va(Lo));var r=wo();r.uri=e,r.Wd=Date.now()/1e3,n&&(r.mimeType=n),void 0!==t&&(r.startTime=t);var a=function(e,t){if(!on())return!0;var n=t.mimeType,i=t.uri||"";return n||(n={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"}[nr(i)]),!!n&&(""!=(t.D||fn()).canPlayType(n)&&(!on()||!(n in ir)&&!(nr(i)in rr)||cn()&&e.m.streaming.useNativeHlsOnSafari))}(this,r)?this.ia:this.L,o=pa(this.V,(function(e){return null==e.D?null:(r.D=e.D,{node:a,payload:r,rb:!0})}));return this.f=new Ga,o.Wb=function(){},new Promise((function(e,t){o.Xc=function(){return t(new Je(2,7,7002))},o.Vc=function(){e(),i.dispatchEvent(Va(Mo))},o.wb=function(){return t(Eo())},o.onError=function(e){return t(e)}}))},i.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=Ma(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ve("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay);var n=Pa(this.m,e,Qa(this));return $a(this),n},i.getConfiguration=function(){var e=Qa(this);return Pa(e,this.m,Qa(this)),e},i.ag=function(){for(var e in this.m)delete this.m[e];Pa(this.m,Qa(this),Qa(this)),$a(this)},i.qf=function(){return this.g},i.xf=function(){return this.a},i.mc=function(){return this.T},i.yd=function(){return this.Ja},i.Qc=function(){return function(e,t){for(var n=[],i=1;ie&&(r.a.currentTime=r.o,r.o=null)})),this.b.h(this.c,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,(function(e){r.C=e.getStreamData().adProgressData,r.l&&(r.l.b=r.C)})),this.b.h(this.c,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,(function(){r.f(new G("ad-first-quartile"))})),this.b.h(this.c,google.ima.dai.api.StreamEvent.Type.MIDPOINT,(function(){r.f(new G("ad-midpoint"))})),this.b.h(this.c,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,(function(){r.f(new G("ad-third-quartile"))})),this.b.h(this.c,google.ima.dai.api.StreamEvent.Type.COMPLETE,(function(){r.f(new G("ad-complete")),r.f(new G("ad-stopped")),r.A.removeAttribute("ad-active"),r.l=null})),this.b.h(this.c,google.ima.dai.api.StreamEvent.Type.SKIPPED,(function(){r.f(new G("ad-skipped")),r.f(new G("ad-stopped"))})),this.b.h(this.c,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,(function(e){var t=e.getStreamData();e=[];for(var n=(t=c(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push(new ds(n.start,n.end));r.f(new G("ad-cue-points-changed",{cuepoints:e}))}))}function ls(){$.call(this),this.a=this.b=null,this.f=new ns,this.c=navigator.language}function ds(e,t){this.start=e,this.end=void 0===t?null:t}function fs(e){return JSON.stringify(e,(function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof G){var n={};for(r in t){var i=t[r];i&&"object"==typeof i?"detail"==r&&(n[r]=i):r in Event||(n[r]=i)}return n}if(t instanceof Error){var r=new Set(["name","message","stack"]);for(n in t)r.add(n);for(n=(i=c(Object.getOwnPropertyNames(t))).next();!n.done;n=i.next())r.add(n.value);for(i={},n=(r=c(r)).next();!n.done;n=r.next())i[n=n.value]=t[n];r={__type__:"Error",contents:i}}else if(t instanceof TimeRanges)for(r={__type__:"TimeRanges",length:t.length,start:[],end:[]},i=(n=c(zn(t))).next();!i.done;i=n.next()){var a=(i=i.value).end;r.start.push(i.start),r.end.push(a)}else r=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return r}}))}function hs(e){return JSON.parse(e,(function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){n=t.contents;var i,r=Error(n.message);for(i in n)r[i]=n[i];n=r}else n=t;return n}))}(i=is.prototype).getDuration=function(){return this.c.getDuration()},i.getRemainingTime=function(){return this.a.getRemainingTime()},i.isPaused=function(){return this.f},i.isSkippable=function(){return 0<=this.c.getSkipTimeOffset()},i.getTimeUntilSkippable=function(){var e=this.c.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},i.canSkipNow=function(){return this.a.getAdSkippableState()},i.skip=function(){return this.a.skip()},i.pause=function(){return this.a.pause()},i.play=function(){return this.a.resume()},i.getVolume=function(){return this.a.getVolume()},i.setVolume=function(e){return this.a.setVolume(e)},i.isMuted=function(){return 0==this.a.getVolume()},i.resize=function(e,t){this.a.resize(e,t,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},i.setMuted=function(e){e?(this.g=this.getVolume(),this.setVolume(0)):this.setVolume(this.g)},i.getSequenceLength=function(){var e=this.c.getAdPodInfo();return null==e?1:e.getTotalAds()},i.getPositionInSequence=function(){var e=this.c.getAdPodInfo();return null==e?1:e.getAdPosition()},i.release=function(){this.a=this.c=null},B("shaka.ads.ClientSideAd",is),is.prototype.release=is.prototype.release,is.prototype.getPositionInSequence=is.prototype.getPositionInSequence,is.prototype.getSequenceLength=is.prototype.getSequenceLength,is.prototype.setMuted=is.prototype.setMuted,is.prototype.resize=is.prototype.resize,is.prototype.isMuted=is.prototype.isMuted,is.prototype.setVolume=is.prototype.setVolume,is.prototype.getVolume=is.prototype.getVolume,is.prototype.play=is.prototype.play,is.prototype.pause=is.prototype.pause,is.prototype.skip=is.prototype.skip,is.prototype.canSkipNow=is.prototype.canSkipNow,is.prototype.getTimeUntilSkippable=is.prototype.getTimeUntilSkippable,is.prototype.isSkippable=is.prototype.isSkippable,is.prototype.isPaused=is.prototype.isPaused,is.prototype.getRemainingTime=is.prototype.getRemainingTime,is.prototype.getDuration=is.prototype.getDuration,rs.prototype.stop=function(){this.c&&this.c.stop(),this.l&&wa(this.l)},(i=us.prototype).getDuration=function(){return this.b?this.b.duration:-1},i.getRemainingTime=function(){return this.b?this.b.duration-this.b.currentTime:-1},i.isPaused=function(){return this.a.paused},i.isSkippable=function(){return this.c.isSkippable()},i.getTimeUntilSkippable=function(){var e=this.c.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},i.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},i.skip=function(){this.a.currentTime+=this.getRemainingTime()},i.pause=function(){return this.a.pause()},i.play=function(){return this.a.play()},i.getVolume=function(){return this.a.volume},i.setVolume=function(e){this.a.volume=e},i.isMuted=function(){return this.a.muted},i.resize=function(){},i.setMuted=function(e){this.a.muted=e},i.getSequenceLength=function(){var e=this.c.getAdPodInfo();return null==e?1:e.getTotalAds()},i.getPositionInSequence=function(){var e=this.c.getAdPodInfo();return null==e?1:e.getAdPosition()},i.release=function(){this.a=this.b=this.c=null},B("shaka.ads.ServerSideAd",us),us.prototype.release=us.prototype.release,us.prototype.getPositionInSequence=us.prototype.getPositionInSequence,us.prototype.getSequenceLength=us.prototype.getSequenceLength,us.prototype.setMuted=us.prototype.setMuted,us.prototype.resize=us.prototype.resize,us.prototype.isMuted=us.prototype.isMuted,us.prototype.setVolume=us.prototype.setVolume,us.prototype.getVolume=us.prototype.getVolume,us.prototype.play=us.prototype.play,us.prototype.pause=us.prototype.pause,us.prototype.skip=us.prototype.skip,us.prototype.canSkipNow=us.prototype.canSkipNow,us.prototype.getTimeUntilSkippable=us.prototype.getTimeUntilSkippable,us.prototype.isSkippable=us.prototype.isSkippable,us.prototype.isPaused=us.prototype.isPaused,us.prototype.getRemainingTime=us.prototype.getRemainingTime,us.prototype.getDuration=us.prototype.getDuration,cs.prototype.stop=function(){this.c.reset(),this.s="",this.o=null},cs.prototype.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.c.onTimedMetadata(t)}},v(ls,$),(i=ls.prototype).setLocale=function(e){this.c=e},i.initClientSide=function(t,n){var i=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new Je(2,10,1e4);this.b=new rs(t,n,this.c,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":i.f.a.push(e.loadTime);break;case"ad-started":i.f.c++;break;case"ad-complete":i.f.b++;break;case"ad-skipped":i.f.f++}i.dispatchEvent(e)}))},i.onAssetUnload=function(){this.b&&this.b.stop(),this.dispatchEvent(new G("ad-stopped")),this.f=new ns},i.requestClientSideAds=function(e){if(!this.b)throw new Je(1,10,10001);var t=this.b;t.s=Date.now()/1e3,t.g.requestAds(e)},i.initServerSide=function(t,n){var i=this;if(!e.google||!google.ima||!google.ima.dai)throw new Je(2,10,10002);this.a=new cs(t,n,this.c,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":i.f.a.push(e.loadTime);break;case"ad-started":i.f.c++;break;case"ad-complete":i.f.b++;break;case"ad-skipped":i.f.f++}i.dispatchEvent(e)}))},i.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.a)throw new Je(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;(n.mpt||n.mpv)&&z('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="Shaka Player",e.adTagParameters.mpv="v3.0.7";var i=t;return(n=this.a).g?n=Promise.reject(new Je(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.F=!0),n.g=new Qe,n.c.requestStream(e),n.s=i||"",n.H=Date.now()/1e3,n=n.g),n},i.replaceServerSideAdTagParameters=function(e){if(!this.a)throw new Je(1,10,10003);(e.mpt||e.mpv)&&z('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v3.0.7",this.a.c.replaceAdTagParameters(e)},i.getStats=function(){var e=this.f;return{loadTimes:e.a,started:e.c,playedCompletely:e.b,skipped:e.f}},i.onDashTimedMetadata=function(e){if(this.a&&"urn:google:dai:2018"==e.schemeIdUri){var t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null;this.a.c.processMetadata(t,n,e.startTime)}},i.onHlsTimedMetadata=function(e,t){this.a&&this.a.c.processMetadata("ID3",e.data,t)},i.onCueMetadataChange=function(e){this.a&&this.a.onCueMetadataChange(e)},B("shaka.ads.AdManager",ls),ls.prototype.onCueMetadataChange=ls.prototype.onCueMetadataChange,ls.prototype.onHlsTimedMetadata=ls.prototype.onHlsTimedMetadata,ls.prototype.onDashTimedMetadata=ls.prototype.onDashTimedMetadata,ls.prototype.getStats=ls.prototype.getStats,ls.prototype.replaceServerSideAdTagParameters=ls.prototype.replaceServerSideAdTagParameters,ls.prototype.requestServerSideStream=ls.prototype.requestServerSideStream,ls.prototype.initServerSide=ls.prototype.initServerSide,ls.prototype.requestClientSideAds=ls.prototype.requestClientSideAds,ls.prototype.onAssetUnload=ls.prototype.onAssetUnload,ls.prototype.initClientSide=ls.prototype.initClientSide,ls.prototype.setLocale=ls.prototype.setLocale,ls.ADS_LOADED="ads-loaded",ls.AD_STARTED="ad-started",ls.AD_FIRST_QUARTILE="ad-first-quartile",ls.AD_MIDPOINT="ad-midpoint",ls.AD_THIRD_QUARTILE="ad-third-quartile",ls.AD_COMPLETE="ad-complete",ls.AD_STOPPED="ad-stopped",ls.AD_SKIPPED="ad-skipped",ls.AD_VOLUME_CHANGED="ad-volume-changed",ls.AD_MUTED="ad-muted",ls.AD_PAUSED="ad-paused",ls.AD_RESUMED="ad-resumed",ls.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",ls.CUEPOINTS_CHANGED="ad-cue-points-changed",ls.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",ls.AD_CLICKED="ad-clicked",ls.AD_PROGRESS="ad-progress",ls.AD_BUFFERING="ad-buffering",ls.AD_IMPRESSION="ad-impression",ls.AD_DURATION_CHANGED="ad-duration-changed",ls.AD_CLOSED="ad-closed",ls.AD_LOADED="ad-loaded",ls.ALL_ADS_COMPLETED="all-ads-completed",ls.AD_LINEAR_CHANGED="ad-linear-changed",ls.AD_METADATA="ad-metadata",ls.AD_RECOVERABLE_ERROR="ad-recoverable-error",ls.AD_BREAK_READY="ad-break-ready",ls.AD_INTERACTION="ad-interaction",ts=function(){return new ls};var ps="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),ms="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),vs=["loop","playbackRate"],gs=["pause","play"],ys={getAssetUri:2,getAudioLanguages:2,getAudioLanguagesAndRoles:2,getBufferedInfo:2,getConfiguration:2,getExpiration:2,getPlaybackRate:2,getTextLanguages:2,getTextLanguagesAndRoles:2,getTextTracks:2,getStats:5,getVariantTracks:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},bs={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Es=[["getConfiguration","configure"]],Ts=[["isTextTrackVisible","setTextTrackVisibility"]],ws="addTextTrack cancelTrickPlay configure resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay".split(" "),As=["attach","detach","load","unload"];function Ss(e,t,n,i,r,a){var o=this;this.R=e,this.f=new bt(t),this.V=n,this.s=!1,this.F=i,this.M=r,this.K=a,this.b=this.l=!1,this.L="",this.o=null,this.A=function(){return Ns(o)},this.C=function(e,t){var n=hs(t);switch(n.type){case"event":var i=n.targetName;n=new G((n=n.event).type,n),o.F(i,n);break;case"update":for(var r in i=n.update)for(var a in n=o.a[r]||{},i[r])n[a]=i[r][a];o.s&&(o.V(),o.s=!1);break;case"asyncComplete":if(r=n.id,n=n.error,a=o.c[r],delete o.c[r],a)if(n){for(i in r=new Je(n.severity,n.category,n.code),n)r[i]=n[i];a.reject(r)}else a.resolve()}},this.a={video:{},player:{}},this.H=0,this.c={},this.g=null,Ds.add(this)}function Is(e,t,n){Ps=n,n.addUpdateListener(e.A),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.C),Ns(e),Ms(e,{type:"init",initState:t,appData:e.o}),e.g.resolve()}function xs(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.g.reject(new Je(2,8,n,t))}function ks(e,t){var n=e.K();e.g=new Qe,e.s=!0,Is(e,n,t)}function Cs(e){var t=Ps;t.removeUpdateListener(e.A),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.C)}function Ns(e){var t=!!Ps&&"connected"==Ps.status;if(e.b&&!t){for(var n in e.M(),e.a)e.a[n]={};_s(e)}e.b=t,e.L=t?Ps.receiver.friendlyName:"",e.f.sa()}function _s(e){for(var t in e.c){var n=e.c[t];delete e.c[t],n.reject(new Je(1,7,7e3))}}function Ms(e,t){var n=fs(t),i=Ps;try{i.sendMessage("urn:x-cast:com.google.shaka.v2",n,(function(){}),H)}catch(t){throw i=new G("error",{detail:n=new Je(2,8,8005,t)}),e.F("player",i),e.Lb(),n}}(i=Ss.prototype).destroy=function(){return Ds.delete(this),_s(this),Ps&&Cs(this),this.f&&(this.f.stop(),this.f=null),this.M=this.F=null,this.b=this.l=!1,this.C=this.A=this.g=this.c=this.a=this.o=null,Promise.resolve()},i.ba=function(){return this.b},i.$c=function(){return this.L},i.init=function(){if(e.chrome&&chrome.cast&&chrome.cast.isAvailable&&this.R.length){this.l=!0,this.f.sa();var t=new chrome.cast.SessionRequest(this.R);t=new chrome.cast.ApiConfig(t,(function(e){for(var t=c(Ds),n=t.next();!n.done;n=t.next())ks(n.value,e)}),(function(e){for(var t=c(Ds),n=t.next();!n.done;n=t.next())n=n.value,Rs="available"==e,n.f.sa()}),"origin_scoped"),chrome.cast.initialize(t,(function(){}),(function(){})),Rs&&this.f.P(Ls),(t=Ps)&&t.status!=chrome.cast.SessionStatus.STOPPED?ks(this,t):Ps=null}},i.Od=function(e){this.o=e,this.b&&Ms(this,{type:"appData",appData:this.o})},i.cast=function(e){var t=this;return R((function(n){if(!t.l)throw new Je(1,8,8e3);if(!Rs)throw new Je(1,8,8001);if(t.b)throw new Je(1,8,8002);return t.g=new Qe,chrome.cast.requestSession((function(n){return Is(t,e,n)}),(function(e){return xs(t,e)})),E(n,t.g,0)}))},i.Lb=function(){if(this.b){if(_s(this),Ps){Cs(this);try{Ps.stop((function(){}),(function(){}))}catch(e){}Ps=null}Ns(this)}},i.get=function(e,t){var n=this;if("video"==e){if(gs.includes(t))return function(i){for(var r=[],a=0;an.byteLength){n=[];break e}var a=Xe(n,e,r);t.push({type:i,value:a}),e+=r}n=t}return n}(e=dt(e.textContent)).filter((function(e){return 1===e.type}))[0])&&(e=Tu(e=nt(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=c(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())for(var n=(t=c(t.value.childNodes)).next();!n.done;n=t.next())if((n=n.value)instanceof Element&&"LA_URL"==n.tagName)return n.textContent;return""}(e):""}));function ku(t,n,i,r,a){var o={RepresentationID:n,Number:i,Bandwidth:r,Time:a};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,(function(t,n,i,r){if("$$"==t)return"$";var a=o[n];if(null==a)return t;switch("RepresentationID"==n&&i&&(i=void 0),"Time"==n&&(a=Math.round(a)),r){case void 0:case"d":case"i":case"u":t=a.toString();break;case"o":t=a.toString(8);break;case"x":t=a.toString(16);break;case"X":t=a.toString(16).toUpperCase();break;default:t=a.toString()}return i=e.parseInt(i,10)||1,Array(Math.max(0,i-t.length)+1).join("0")+t}))}function Cu(e,t){var n=Nu(e,t,"timescale"),i=1;n&&(i=yu(n)||1),(n=yu((n=Nu(e,t,"duration"))||""))&&(n/=i);var r=Nu(e,t,"startNumber"),a=Number(Nu(e,t,"presentationTimeOffset"))||0,o=bu(r||"");null!=r&&null!=o||(o=1);var s=_u(e,t,"SegmentTimeline");if(r=null,s){r=i;var u=e.U.duration||1/0,l=cu(s,"S");s=[];for(var d=-a,f=(l=c(ee(l))).next();!f.done;f=l.next()){var h=(f=f.value).item,p=f.next,m=hu(h,"t",bu);f=hu(h,"d",bu);var v=hu(h,"r",gu);if(null!=m&&(m-=a),!f)break;if(h=null!=m?m:d,0>(m=v||0))if(p){if(null==(p=hu(p,"t",bu)))break;if(h>=p)break;m=Math.ceil((p-h)/f)-1}else{if(1/0==u)break;if(h/r>=u)break;m=Math.ceil((u*r-h)/f)-1}for(0>>31,h&=2147483647;var p=o.reader.N();if(o.reader.skip(4),1==d)throw new Je(2,3,3006);s.push(new or(l/u+n,(l+p)/u+n,(function(){return a}),e,e+h-1,t,n,i,r)),l+=p,e+=h}return o.parser.stop(),s}(t,i,r,a,o,n,e)}));if(e&&u.parse(e),s)return s;throw new Je(2,3,3004)}function Ru(e){this.b=Ye(e),this.a=new Br(this.b,0)}function Pu(e){var t=Du(e);if(7=n?o.push(new Set(f)):o.push(new Set);h=c(e),p=h.next();case 2:if(p.done){x.u(4);break}return E(x,function(e,t,n,i,r){var a;return R((function(o){return 1==o.a?(a=ac(t,e))?E(o,Promise.all(a.map((function(e){return e.createSegmentIndex()}))),2):o.return(!1):(ec(e,a,n,i,r),o.return(!0))}))}(p.value,t,n,r,o),5);case 5:if(!x.b)throw new Je(2,4,4037);p=h.next(),x.u(2);break;case 4:m=c(o),v=m.next();case 6:if(v.done){x.u(8);break}g=v.value,y=c(g),b=y.next();case 9:if(b.done){v=m.next(),x.u(6);break}return E(x,function(e,t,n,i,r){var a,o;return R((function(s){return 1==s.a?(a=n(e),(o=ac(t,a))?a.createSegmentIndex?E(s,Promise.all(o.map((function(e){return e.createSegmentIndex()}))),2):s.u(2):s.return(null)):(ec(a,o,0,i,r),s.return(a))}))}(b.value,t,i,r,o),12);case 12:(T=x.b)&&e.push(T),b=y.next(),x.u(9);break;case 8:for(w=c(o),v=w.next();!v.done;v=w.next())for(A=v.value,S={},I=c(A),b=I.next();!b.done;S={Gb:S.Gb},b=I.next())if(S.Gb=b.value,(S.Gb.type!=a.oa||S.Gb.language)&&e.some(function(e){return function(t){return t.mimeType==e.Gb.mimeType&&rn(t.codecs)[0]==rn(e.Gb.codecs)[0]}}(S)))throw new Je(2,4,4037);return x.return(e)}}))}function ec(e,t,n,i,r){for(var a=(t=c(ee(t))).next();!a.done;a=t.next()){var o=a.value;if(a=o.ma,o=o.item,a>=n){i(e,o);var s=!0;"audio"==e.type&&0==Me(e.language,o.language)&&(s=!1),s&&r[a].delete(o)}}}function tc(e){return(e=Object.assign({},e)).originalId=null,e.createSegmentIndex=function(){return Promise.resolve()},e.segmentIndex=new _r,e.emsgSchemeIdUris=[],e.keyIds=new Set,e.closedCaptions=null,e.trickModeVideo=null,e}function nc(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function ic(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris))));var n=t.keyIds;if(n=new Set(l(e.keyIds).concat(l(n))),e.keyIds=n,null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||""),n=Ln(e.drmInfos,t.drmInfos),t.drmInfos.length&&e.drmInfos.length&&!n.length)throw new Je(2,4,4038);if(e.drmInfos=n,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var i=(n=c(t.closedCaptions)).next();!i.done;i=n.next()){var r=c(i.value);i=r.next().value,r=r.next().value,e.closedCaptions.set(i,r)}}e.segmentIndex.g.push(t.segmentIndex),t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=tc(t.trickModeVideo),e.trickModeVideo.segmentIndex=e.segmentIndex.clone()),ic(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&ic(e.trickModeVideo,t)}function rc(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;if(n=new Set(l(e.keyIds).concat(l(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,l(t.segments)),t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var i=(n=c(t.closedCaptions)).next();!i.done;i=n.next()){var r=c(i.value);i=r.next().value,r=r.next().value,e.closedCaptions.set(i,r)}}}function ac(e,t){for(var n=[],i=c(e),r=i.next();!r.done;r=i.next()){for(var a=t,o={audio:oc,video:oc,text:sc}[a.type],s={audio:uc,video:cc,text:lc}[a.type],u=null,l=(r=c(r.value)).next();!l.done;l=r.next())!o(a,l=l.value)||u&&!s(a,u,l)||(u=l);if(!(a=u))return null;n.push(a)}return n}function oc(e,t){var n;if(!(n=t.mimeType!=e.mimeType||rn(t.codecs)[0]!=rn(e.codecs)[0])&&(n=e.drmInfos)){n=e.drmInfos;var i=t.drmInfos;n=!(!n.length||!i.length||0i||!(ri.length||!(r.lengthi)return!0;if(ri.length)return!0;if(r.lengthe){if(n<=e||n-et-e)return mc}else{if(n>e)return mc;if(e-ne-t)return mc}return pc}function fc(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))e.l||e.g.P(Math.max(3,e.l-t,Ke(e.o)))}function Tc(e,t,n){t=t||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Hd:null,audioSamplingRate:null},n=n||t.Fa;for(var i=cu(e,"BaseURL").map(fu),r=e.getAttribute("contentType")||t.contentType,a=e.getAttribute("mimeType")||t.mimeType,o=e.getAttribute("codecs")||t.codecs,s=hu(e,"frameRate",Eu)||t.frameRate,u=e.getAttribute("sar")||t.pixelAspectRatio,l=cu(e,"InbandEventStream"),d=t.emsgSchemeIdUris.slice(),f=(l=c(l)).next();!f.done;f=l.next())f=f.value.getAttribute("schemeIdUri"),d.includes(f)||d.push(f);return l=function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){var n=t.value;if((t=n.getAttribute("schemeIdUri"))&&(n=n.getAttribute("value")))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(t=parseInt(n,16)){for(e=0;t;)1&t&&++e,t>>=1;return e}}}return null}(l=cu(e,"AudioChannelConfiguration"))||t.Hd,f=hu(e,"audioSamplingRate",bu)||t.audioSamplingRate,r||(r=Sc(a,o)),{Fa:Se(n,i),zc:su(e,"SegmentBase")||t.zc,hb:su(e,"SegmentList")||t.hb,Ac:su(e,"SegmentTemplate")||t.Ac,width:hu(e,"width",bu)||t.width,height:hu(e,"height",bu)||t.height,contentType:r,mimeType:a,codecs:o,frameRate:s,pixelAspectRatio:u,emsgSchemeIdUris:d,id:e.getAttribute("id"),Hd:l,audioSamplingRate:f}}function wc(e,t,n,i){var r,a,o,s,u,c;return R((function(l){if(1==l.a)return r=Se(t,[n]),(a=jt(r,e.m.retryParameters)).method=i,o=e.B.networkingEngine.request(4,a),Dt(e.c,o),E(l,o.promise,2);if(s=l.b,"HEAD"==i){if(!s.headers||!s.headers.date)return l.return(0);u=s.headers.date}else u=tt(s.data);return c=Date.parse(u),isNaN(c)?l.return(0):l.return(c-Date.now())}))}function Ac(e,t,n,i){for(var r=i.getAttribute("schemeIdUri")||"",a=i.getAttribute("value")||"",o=hu(i,"timescale",bu)||1,s=(i=c(cu(i,"Event"))).next();!s.done;s=i.next()){var u=hu(s=s.value,"presentationTime",bu)||0,l=hu(s,"duration",bu)||0;l=(u=u/o+t)+l/o,null!=n&&(u=Math.min(u,t+n),l=Math.min(l,t+n)),s={schemeIdUri:r,value:a,startTime:u,endTime:l,id:s.getAttribute("id")||"",eventElement:s},e.B.onTimelineRegionAdded(s)}}function Sc(e,t){return li(nn(e,t))?"text":e.split("/")[0]}function Ic(e,t,n,i){this.a=e,this.type=t,this.ea=n,this.segments=i||null}function xc(e,t,n,i){this.id=e,this.name=t,this.a=n,this.value=void 0===i?null:i}function kc(e,t,n){return(e=e.getAttribute(t))?e.value:n||null}function Cc(e,t){var n=e.getAttribute(t);if(!n)throw new Je(2,4,4023,t);return n.value}function Nc(e,t){this.ea=t,this.a=e}function _c(e,t){this.name=e,this.value=t}function Mc(e,t){return e.filter((function(e){return e.name==t}))}function Lc(e,t){return e.filter((function(e){return Cc(e,"TYPE")==t}))}function Rc(e,t){var n=Mc(e,t);return n.length?n[0]:null}function Pc(e,t,n){return n=void 0===n?0:n,(e=Rc(e,t))?Number(e.value):n}function Dc(e){this.b=e,this.a=0}function Oc(e){Uc(e,/[ \t]+/gm)}function Uc(e,t){t.lastIndex=e.a;var n=t.exec(e.b);return n=null==n?null:{position:n.index,length:n[0].length,results:n},e.a==e.b.length||null==n||n.position!=e.a?null:(e.a+=n.length,n.results)}function jc(e){return e.a==e.b.length?null:(e=Uc(e,/[^ \t\n]*/gm))?e[0]:null}function Fc(){this.a=0}function Bc(e,t,n){var i=(t=(t=tt(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(i[0]))throw new Je(2,4,4015);t=0;for(var r=!0,a=c(i),o=a.next();!o.done;o=a.next())if(o=o.value,/^#(?!EXT)/m.test(o)||r)r=!1;else{if(o=Gc(e.a++,o),--e.a,Kc.includes(o.name)){t=1;break}"EXT-X-STREAM-INF"==o.name&&(r=!0)}a=[],r=!0;for(var s=(o=c(ee(i))).next();!s.done;s=o.next()){var u=s.value;s=u.ma;var l=u.item;if(u=u.next,/^#(?!EXT)/m.test(l)||r)r=!1;else{if(l=Gc(e.a++,l),Vc.includes(l.name)){if(1!=t)throw new Je(2,4,4017);for(l=i.splice(s,i.length-s),i=n,r=[],o=[],s=null,u=(l=c(l)).next();!u.done;u=l.next())u=u.value,/^(#EXT)/.test(u)?(u=Gc(e.a++,u),Kc.includes(u.name)?a.push(u):"EXT-X-MAP"==u.name?s=u:o.push(u)):/^#(?!EXT)/m.test(u)||(u=Se([i],[u.trim()])[0],s&&o.push(s),r.push(new Nc(u,o)),o=[]);return new Ic(n,t,a,r)}a.push(l),"EXT-X-STREAM-INF"==l.name&&(l.a.push(new _c("URI",u)),r=!0)}}return new Ic(n,t,a)}function Gc(e,t){var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new Je(2,4,4016,t);var i,r=n[1],a=n[2];if(n=[],a){var o;(o=Uc(a=new Dc(a),/^([^,=]+)(?:,|$)/g))&&(i=o[1]);for(var s=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;o=Uc(a,s);)n.push(new _c(o[1],o[2]||o[3]))}return new xc(e,r,n,i)}(i=vc.prototype).configure=function(e){this.m=e},i.start=function(e,t){var n,i=this;return R((function(r){if(1==r.a)return i.b=[e],i.B=t,E(r,gc(i),2);if(n=r.b,i.B&&Ec(i,n),!i.B)throw new Je(2,7,7001);return r.return(i.v)}))},i.stop=function(){for(var e=c(Object.values(this.f)),t=e.next();!t.done;t=e.next())t.value.release();return this.a&&this.a.release(),this.m=this.B=null,this.b=[],this.v=null,this.f={},this.a=null,null!=this.g&&(this.g.stop(),this.g=null),this.c.destroy()},i.update=function(){var e,t=this;return R((function(n){return 1==n.a?(w(n,2),E(n,gc(t),4)):2!=n.a?S(n,0):(e=I(n),t.B&&e?(t.B.onError(e),void T(n)):n.return())}))},i.onExpirationUpdated=function(){},i.wc=function(){var e,t,n=this;return R((function(i){switch(i.a){case 1:return e=0,w(i,2),E(i,gc(n),4);case 4:e=i.b,S(i,3);break;case 2:t=I(i),n.B&&(t.severity=1,n.B.onError(t));case 3:if(!n.B)return i.return();Ec(n,e),T(i)}}))},B("shaka.dash.DashParser",vc),rr.mpd=function(){return new vc},ir["application/dash+xml"]=function(){return new vc},ir["video/vnd.mpeg.dash.mpd"]=function(){return new vc},xc.prototype.toString=function(){var e="#"+this.name,t=this.a?this.a.map((function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)})):[];return this.value&&t.unshift(this.value),0n.length||"data"!=n[0])throw new Je(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new Je(2,1,1004,t);var i=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=i.split(";"),i=n[0];var r=!1;return 1>4)&&2!=n||r(),3==n&&(n=a.Ha(),a.skip(n)),1==a.N()>>8){a.skip(3),0!=(n=a.Ha()>>6)&&1!=n||r(),0==a.Ha()&&r(),n=a.Ha();var u=a.yc(),c=a.yc();return(1073741824*((14&n)>>1)+((65534&u)<<14|(65534&c)>>1))/9e4}i()}else i()}(t,m.uri,m.data));case 4:throw new Je(2,4,4030,t)}}))}function ol(e,t){if(1==t.length)return t[0];var n=sl(e,t);if(null!=n)return n;throw new Je(2,4,4025,t)}function sl(e,t){for(var n=c(fl[e]),i=n.next();!i.done;i=n.next()){i=i.value;for(var r=c(t),a=r.next();!a.done;a=r.next())if(a=a.value,i.test(a.trim()))return a.trim()}return"text"==e?"":null}function ul(e,t){var n=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}"),i=n.match(/{\$\w*}/g);if(i)for(var r=(i=c(i)).next();!r.done;r=i.next()){var a=(r=r.value).slice(2,r.length-1),o=t.get(a);if(!o)throw new Je(2,4,4039,a);n=n.replace(r,o)}return n}function cl(e,t){var n=Rc(e,t);if(!n)throw new Je(2,4,4024,t);return n}function ll(e,t){e.c=t,e.b&&e.b.Bc(e.c==vl),e.c!=vl||e.l.stop()}function dl(e,t,n){if(!e.s)throw new Je(2,7,7001);return t=e.B.networkingEngine.request(n,t),Dt(e.s,t),t.promise}B("shaka.net.DataUriPlugin",zc),zc.parse=Hc,Ut("data",Hc),(i=Wc.prototype).configure=function(e){this.m=e},i.start=function(e,t){var n,i,r=this;return R((function(a){return 1==a.a?(r.B=t,E(a,dl(r,jt([e],r.m.retryParameters),0),2)):3!=a.a?(n=a.b,r.L=n.uri,E(a,function(e,t){var n,i,r,a,o,s,u,l,d,f,h,p,m,v;return R((function(g){switch(g.a){case 1:if(0!=(n=Bc(e.H,t,e.L)).type)throw new Je(2,4,4022);for(var y=c(Mc(n.ea,"EXT-X-DEFINE")),b=y.next();!b.done;b=y.next()){var T=b.value;b=kc(T,"NAME"),T=kc(T,"VALUE"),b&&T&&(e.o.has(b)||e.o.set(b,T))}for(i=Mc(n.ea,"EXT-X-MEDIA"),b=(y=c(r=Mc(n.ea,"EXT-X-STREAM-INF"))).next();!b.done;b=y.next()){var A=b.value;T=kc(A,"AUDIO"),b=kc(A,"VIDEO");var S=kc(A,"SUBTITLES");if(A=$c(e,A),S){var x=sl("text",A);e.f.set(S,x),Mt(A,x)}T&&(S=ol("audio",A),e.f.set(T,S)),b&&(T=ol("video",A),e.f.set(b,T))}return E(g,function(e,t){var n;return R((function(i){return 1==i.a?(t=t.filter((function(e){var t=kc(e,"URI")||"";return"SUBTITLES"!=kc(e,"TYPE")&&""!=t}))).length?E(i,Qc(e,t[0]),2):i.u(2):(n=t.slice(1).map((function(t){return Qc(e,t)})),E(i,Promise.all(n),0))}))}(e,i),2);case 2:for(b=(y=c(y=Lc(i,"CLOSED-CAPTIONS"))).next();!b.done;b=y.next())b=Jc(S=b.value),T=Cc(S,"GROUP-ID"),S=Cc(S,"INSTREAM-ID"),e.C.get(T)||e.C.set(T,new Map),e.C.get(T).set(S,b);return E(g,function(e,t){var n,i,r;return R((function(a){return 1==a.a?(n=t.map((function(t){var n,i,r,a,o,s,u;return R((function(l){return 1==l.a?(n=kc(t,"FRAME-RATE"),i=Number(Cc(t,"BANDWIDTH")),r=kc(t,"RESOLUTION"),a=c(r?r.split("x"):[null,null]),o=a.next().value,s=a.next().value,E(l,function(e,t,n,i){var r,a,o,s,u,l,d,f,h,p,m,v,g,y;return R((function(b){if(1==b.a)return r=xe,a=$c(e,t),o=kc(t,"AUDIO"),s=kc(t,"VIDEO"),l=(u=o||s)&&e.g.has(u)?e.g.get(u):[],d={audio:o?l:[],video:s?l:[]},h=!1,p=Cc(t,"URI"),m=d.audio.find((function(e){return e&&e.fd==p})),v=sl(r.Ua,a),g=n||i||v,1!=a.length||g?!l.length&&1=n&&202!=n)return{uri:r||i,De:i,data:t,headers:e,fromCache:!!e["x-shaka-from-cache"]};r=null;try{r=it(t)}catch(e){}throw new Je(401==n||403==n?2:1,1,1001,i,n,r,e,a)}function Tl(){}function wl(e,t,n,i){var r=new kl;Qt(t.headers).forEach((function(e,t){r.append(t,e)}));var a=new Il,o={fe:!1,Qe:!1};if(e=new wt(e=function(e,t,n,i,r){var a,o,s,u,c,l,d,f,h,p,m,v;return R((function(g){switch(g.a){case 1:return a=Sl,o=xl,l=c=0,d=Date.now(),w(g,2),E(g,a(e,n),4);case 4:return s=g.b,f=s.clone().body.getReader(),p=(h=s.headers.get("Content-Length"))?parseInt(h,10):0,new o({start:function(e){!function t(){var n,i;return R((function(a){switch(a.a){case 1:return w(a,2),E(a,f.read(),4);case 4:n=a.b,S(a,3);break;case 2:return I(a),a.return();case 3:n.done||(c+=n.value.byteLength),(100<(i=Date.now())-d||n.done)&&(r(i-d,c-l,p-c),l=c,d=i),n.done?e.close():(e.enqueue(n.value),t()),T(a)}}))}()}}),E(g,s.arrayBuffer(),5);case 5:u=g.b,S(g,3);break;case 2:if(m=I(g),i.fe)throw new Je(1,1,7001,e,t);if(i.Qe)throw new Je(1,1,1003,e,t);throw new Je(1,1,1002,e,m,t);case 3:return v={},s.headers.forEach((function(e,t){v[t.trim()]=e})),g.return(El(v,u,s.status,e,s.url,t))}}))}(e,n,{body:t.body||void 0,headers:r,method:t.method,signal:a.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},o,i),(function(){return o.fe=!0,a.abort(),Promise.resolve()})),t=t.retryParameters.timeout){var s=new bt((function(){o.Qe=!0,a.abort()}));s.P(t/1e3),e.finally((function(){s.stop()}))}return e}function Al(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!(!e.fetch||!e.AbortController)}rr.m3u8=function(){return new Wc},ir["application/x-mpegurl"]=function(){return new Wc},ir["application/vnd.apple.mpegurl"]=function(){return new Wc},B("shaka.net.HttpFetchPlugin",Tl),Tl.isSupported=Al,Tl.parse=wl;var Sl=e.fetch,Il=e.AbortController,xl=e.ReadableStream,kl=e.Headers;function Cl(){}function Nl(e,t,n,i){var r=new _l,a=Date.now(),o=0;return new wt(new Promise((function(s,u){for(var l in r.open(t.method,e,!0),r.responseType="arraybuffer",r.timeout=t.retryParameters.timeout,r.withCredentials=t.allowCrossSiteCredentials,r.onabort=function(){u(new Je(1,1,7001,e,n))},r.onload=function(t){for(var i=(t=t.target).getAllResponseHeaders().trim().split("\r\n"),r={},a=(i=c(i)).next();!a.done;a=i.next())r[(a=a.value.split(": "))[0].toLowerCase()]=a.slice(1).join(": ");try{var o=El(r,t.response,t.status,e,t.responseURL,n);s(o)}catch(e){u(e)}},r.onerror=function(t){u(new Je(1,1,1002,e,t,n))},r.ontimeout=function(){u(new Je(1,1,1003,e,n))},r.onprogress=function(e){var t=Date.now();(100t,!s||!u){l.u(3);break}return E(l,r.updateManifestExpiration(n.key(),t),3);case 3:return x(l),E(l,i.destroy(),10);case 10:k(l,0);break;case 2:I(l),l.u(3)}}))},ir["application/x-offline-manifest"]=function(){return new sd},B("shaka.offline.OfflineScheme",ud),ud.plugin=cd,Ut("offline",cd),(i=vd.prototype).destroy=function(){return this.I.destroy()},i.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=Ma(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ve("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),Pa(this.m,e)},i.getConfiguration=function(){var e=Ra();return Pa(e,this.m,Ra()),e},i.mc=function(){return this.T},i.store=function(e,t,n){var i=this,r=this.getConfiguration(),a=new Ll(this.T);this.Kd.push(a);var o=new wt(t=function(e,t,n,i,r,a){var o,s,u,l,d,f,h,p,m,v;return R((function(g){switch(g.a){case 1:return Ad(),s=o=null,u=new Hl,d=l=null,w(g,2,3),E(g,i(),5);case 5:return o=g.b,E(g,function(e,t,n,i){var r,a,o,s,u;return R((function(c){if(1==c.a)return r=null,a=e.T,o={networkingEngine:a,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){r=e}},n.configure(i.manifest),wd(e),E(c,n.start(t,o),2);if(3!=c.a)return s=c.b,wd(e),u=Id(s),E(c,Promise.all(J(u,(function(e){return e.createSegmentIndex()}))),3);if(wd(e),r)throw r;return c.return(s)}))}(e,t,o,r),6);case 6:if(f=g.b,wd(e),!(!f.presentationTimeline.S()&&!f.presentationTimeline.tb()))throw new Je(2,9,9005,t);return E(g,function(e,t,n,i){var r;return R((function(a){switch(a.a){case 1:return(r=new mn({Ub:e.T,onError:n,Wc:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(i.drm),E(a,function(e,t,n){return e.A=[],e.C=n,gn(e,t)}(r,t.variants,i.offline.usePersistentLicense),2);case 2:return E(a,yn(r),3);case 3:return E(a,bn(r),4);case 4:return a.return(r)}}))}(e,f,(function(e){d=d||e}),r),7);case 7:if(s=g.b,wd(e),d)throw d;return E(g,e.Kb(f,s,r),8);case 8:return E(g,u.init(),9);case 9:return wd(e),E(g,function(e){var t=null;if(e.a.forEach((function(e,n){e.getCells().forEach((function(e,i){e.hasFixedKeySpace()||t||(t={path:{Pa:n,ra:i},ra:e})}))})),t)return t;throw new Je(2,9,9013,"Could not find a cell that supports add-operations")}(u),10);case 10:return l=g.b,wd(e),E(g,function(e,t,n,i,r,a,o,s){var u,l,d,f,h,p,m,v,g,y;return R((function(b){switch(b.a){case 1:return u=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=hd(t),appMetadata:n}}(r,i,a),l=o.offline.progressCallback,function(e,t,n){e.Ce=t,e.Be=n}(s,(function(e,t){u.size=t,l(u,e)}),(function(e,t){h&&o.offline.usePersistentLicense&&p==t&&En(n,"cenc",e)})),d=i.variants.some((function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t})),f=i.variants.some((function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some((function(e){return e.initData&&e.initData.length}))})),p=null,(h=d&&!f)&&(m=n.c,p=xd.get(m.keySystem)),A(b),g=v=function(e,t,n,i,r,a,o,s){for(var u=new pd,l=c(r.variants),d=l.next();!d.done;d=l.next()){var f=u,h=(d=d.value).audio,p=d.video;if(h&&!p&&(f.a[h.id]=h.bandwidth||d.bandwidth),!h&&p&&(f.a[p.id]=p.bandwidth||d.bandwidth),h&&p){var m=h.bandwidth||393216,v=p.bandwidth||d.bandwidth-m;0>=v&&(v=d.bandwidth),f.a[h.id]=m,f.a[p.id]=v}}for(l=c(r.textStreams),f=l.next();!f.done;f=l.next())u.a[f.value.id]=52;for(f=Id(r),l=new Map,f=c(f),d=f.next();!d.done;d=f.next())d=d.value,h=Td(e,t,n,u,r,d,s),l.set(d.id,h);for(e=c(r.variants),d=e.next();!d.done;d=e.next())(t=d.value).audio&&l.get(t.audio.id).variantIds.push(t.id),t.video&&l.get(t.video.id).variantIds.push(t.id);return e=Array.from(l.values()),s=s.offline.usePersistentLicense,(t=i.c)&&s&&(t.initData=[]),{creationTime:Date.now(),originalManifestUri:a,duration:r.presentationTimeline.getDuration(),size:0,expiration:i.lc(),streams:e,sessionIds:s?An(i):[],drmInfo:t,appMetadata:o}}(e,s,t,n,i,r,a,o),E(b,function(e){return R((function(t){return 1==t.a?E(t,Promise.all(e.a.values()),2):t.return(e.jc.a)}))}(s),4);case 4:if(g.size=b.b,v.expiration=n.lc(),y=An(n),v.sessionIds=o.offline.usePersistentLicense?y:[],d&&o.offline.usePersistentLicense&&!y.length)throw new Je(2,9,9007);return b.return(v);case 2:return x(b),E(b,s.destroy(),5);case 5:k(b,0)}}))}(e,l.ra,s,f,t,n,r,a),11);case 11:if(h=g.b,wd(e),d)throw d;return E(g,l.ra.addManifests([h]),12);case 12:return p=g.b,wd(e),m=new nd("manifest",l.path.Pa,l.path.ra,p[0]),g.return(fd(m,h));case 3:return x(g),e.bd=[],E(g,u.destroy(),13);case 13:if(!o){g.u(14);break}return E(g,o.stop(),14);case 14:if(!s){g.u(16);break}return E(g,s.destroy(),16);case 16:k(g,0);break;case 2:if(v=I(g),!l){g.u(18);break}return E(g,l.ra.removeSegments(e.bd,(function(){})),18);case 18:throw d||v}}))}(this,e,t||{},(function(){var t;return R((function(a){return 1==a.a?E(a,tr(e,i.T,r.manifest.retryParameters,n||null),2):(t=a.b,a.return(Ae(t)))}))}),r,a),(function(){return Rl(a)}));return o.finally((function(){Mt(i.Kd,a)})),o.then=function(e){return ve("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise. Please update to conform to this new API; you can use the |chain| method instead."),o.promise.then(e)},function(e,t){var n=t.promise;return e.xc.push(n),t.finally((function(){Mt(e.xc,n)}))}(this,o)},i.Ef=function(){return ve("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported."),!1},i.Kb=function(e,t,n){var i,r,a,o,s,u,l,d,f,h,p,m,v,g,y;return R((function(b){if(1==b.a){for(i={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter((function(e){return _i(e,t,n)}))}(e,n.restrictions,i),function(e){e.variants=e.variants.filter((function(e){var t=!0;return e.audio&&(t=t&&pi(e.audio)),e.video&&(t=t&&pi(e.video)),t}))}(e),function(e,t){e.variants=e.variants.filter((function(e){return Mn(t,e)}))}(e,t),r=[],a=n.preferredAudioChannelCount,Ni(e,a),o=c(e.variants),s=o.next();!s.done;s=o.next())u=s.value,r.push(Li(u));for(l=c(e.textStreams),d=l.next();!d.done;d=l.next())f=d.value,r.push(Ri(f));return E(b,n.offline.trackSelectionCallback(r),2)}for(h=b.b,p=new Set,m=new Set,v=c(h),g=v.next();!g.done;g=v.next())"variant"==(y=g.value).type&&p.add(y.id),"text"==y.type&&m.add(y.id);e.variants=e.variants.filter((function(e){return p.has(e.id)})),e.textStreams=e.textStreams.filter((function(e){return m.has(e.id)})),function(e){e.variants.map((function(e){return e.video}));var t=new Set(e.variants.map((function(e){return e.audio})));e=e.textStreams;for(var n=c(t),i=n.next();!i.done;i=n.next())for(var r=(i=c(t)).next();!r.done;r=i.next());for(t=c(e),n=t.next();!n.done;n=t.next())for(n=c(e),i=n.next();!i.done;i=n.next());}(e),T(b)}))},i.remove=function(e){return Sd(this,function(e,t){var n,i,r,a,o,s;return R((function(u){switch(u.a){case 1:if(Ad(),null==(n=id(t))||"manifest"!=n.a)throw new Je(2,9,9004,t);return i=n,r=new Hl,A(u),E(u,r.init(),4);case 4:return E(u,ql(r,i.Pa(),i.ra()),5);case 5:return E(u,(a=u.b).getManifests([i.key()]),6);case 6:return o=u.b,s=o[0],E(u,Promise.all([bd(e,s,r),Ed(a,i,s)]),2);case 2:return x(u),E(u,r.destroy(),8);case 8:k(u,0)}}))}(this,e))},i.Zf=function(){return Sd(this,function(e){var t,n,i,r,a,o,s,u,l,d;return R((function(f){switch(f.a){case 1:return Ad(),t=e.T,n=e.m.drm,i=new Hl,r=!1,A(f),E(f,i.init(),4);case 4:a=[],function(e,t){e.a.forEach((function(e){t(e.getEmeSessionCell())}))}(i,(function(e){return a.push(e)})),o=c(a),s=o.next();case 5:if(s.done){f.u(2);break}return E(f,(u=s.value).getAll(),8);case 8:return l=f.b,E(f,ld(n,t,l),9);case 9:return d=f.b,E(f,u.remove(d),10);case 10:d.length!=l.length&&(r=!0),s=o.next(),f.u(5);break;case 2:return x(f),E(f,i.destroy(),11);case 11:k(f,3);break;case 3:return f.return(!r)}}))}(this))},i.list=function(){return Sd(this,R((function(i){switch(i.a){case 1:return Ad(),e=[],t=new Hl,A(i),E(i,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.a.forEach((function(e,n){e.getCells().forEach((function(e,i){t({Pa:n,ra:i},e)}))}))}(t,(function(t,i){n=n.then((function(){return R((function(n){if(1==n.a)return E(n,i.getAllManifests(),2);n.b.forEach((function(n,i){var r=fd(new nd("manifest",t.Pa,t.ra,i),n);e.push(r)})),T(n)}))}))})),E(i,n,2);case 2:return x(i),E(i,t.destroy(),6);case 6:k(i,3);break;case 3:return i.return(e)}})));var e,t,n},B("shaka.offline.Storage",vd),vd.deleteAll=function(){var e;return R((function(t){return 1==t.a?(e=new Hl,A(t),E(t,function(e){var t,n;return R((function(i){return 1==i.a?(t=Array.from(e.a.values()),(n=0=t.data.length)return e;e=[];for(var n={},i=(t=c(t.data)).next();!i.done;n={Ec:n.Ec},i=t.next())n.Ec=i.value,e.some(function(e){return function(t){return He(t,e.Ec)}}(n))||e.push(n.Ec);return pt.apply(ut,l(e))}(e.initData)),this.dispatchEvent(t)}}function Hd(e,t){this.keySystem=e;for(var n=!1,i=c(t),r=i.next();!r.done;r=i.next()){var a={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(r=r.value).initDataTypes,sessionTypes:["temporary"],label:r.label},o=!1;if(r.audioCapabilities)for(var s=c(r.audioCapabilities),u=s.next();!u.done;u=s.next())(u=u.value).contentType&&(o=!0,MSMediaKeys.isTypeSupported(this.keySystem,u.contentType.split(";")[0])&&(a.audioCapabilities.push(u),n=!0));if(r.videoCapabilities)for(u=(s=c(r.videoCapabilities)).next();!u.done;u=s.next())(u=u.value).contentType&&(o=!0,MSMediaKeys.isTypeSupported(this.keySystem,u.contentType.split(";")[0])&&(a.videoCapabilities.push(u),n=!0));if(o||(n=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),"required"==r.persistentState&&(n=!1),n)return void(this.a=a)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function qd(e){var t=this.mediaKeys;return t&&t!=e&&Xd(t,null),delete this.mediaKeys,(this.mediaKeys=e)?Xd(e,this):Promise.resolve()}function Wd(e){this.a=new MSMediaKeys(e),this.b=new qt}function Xd(e,t){if(e.b.yb(),!t)return Promise.resolve();e.b.h(t,"msneedkey",zd);try{return hr(t,HTMLMediaElement.HAVE_METADATA,e.b,(function(){t.msSetMediaKeys(e.a)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function Yd(e){$.call(this),this.f=null,this.g=e,this.c=this.a=null,this.b=new qt,this.sessionId="",this.expiration=NaN,this.closed=new Qe,this.keyStatuses=new Jd}function $d(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.a=t,n=new G("keystatuseschange"),e.dispatchEvent(n)}function Jd(){this.size=0,this.a=void 0}function Qd(){return Promise.reject(Error("The key system specified is not supported."))}function Zd(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function ef(){throw new TypeError("Illegal constructor.")}function tf(){throw this.keySystem="",new TypeError("Illegal constructor.")}function nf(e){return pf?pf+e.charAt(0).toUpperCase()+e.slice(1):e}function rf(e,t){try{var n=new of(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function af(e){var t=this.mediaKeys;return t&&t!=e&&uf(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&uf(e,this),Promise.resolve()}function of(e,t){this.a=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.a="webkit-org.w3.clearkey",n=!1);var i=!1,r=document.getElementsByTagName("video");r=r.length?r[0]:document.createElement("video");for(var a=c(t),o=a.next();!o.done;o=a.next()){var s={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(o=o.value).initDataTypes,sessionTypes:["temporary"],label:o.label},u=!1;if(o.audioCapabilities)for(var l=c(o.audioCapabilities),d=l.next();!d.done;d=l.next())(d=d.value).contentType&&(u=!0,r.canPlayType(d.contentType.split(";")[0],this.a)&&(s.audioCapabilities.push(d),i=!0));if(o.videoCapabilities)for(d=(l=c(o.videoCapabilities)).next();!d.done;d=l.next())(d=d.value).contentType&&(u=!0,r.canPlayType(d.contentType,this.a)&&(s.videoCapabilities.push(d),i=!0));if(u||(i=r.canPlayType("video/mp4",this.a)||r.canPlayType("video/webm",this.a)),"required"==o.persistentState&&(n?(s.persistentState="required",s.sessionTypes=["persistent-license"]):i=!1),i)return void(this.b=s)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(n=Error(n)).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function sf(e){this.g=e,this.a=null,this.b=new qt,this.c=[],this.f=new Map}function uf(e,t){e.a=t,e.b.yb();var n=pf;t&&(e.b.h(t,n+"needkey",(function(t){var n=document.createEvent("CustomEvent");n.initCustomEvent("encrypted",!1,!1,null),n.initDataType="cenc",n.initData=We(t.initData),e.a.dispatchEvent(n)})),e.b.h(t,n+"keymessage",(function(t){var n=cf(e,t.sessionId);n&&(t=new G("message",{messageType:null==n.keyStatuses.a?"licenserequest":"licenserenewal",message:t.message}),n.b&&(n.b.resolve(),n.b=null),n.dispatchEvent(t))})),e.b.h(t,n+"keyadded",(function(t){(t=cf(e,t.sessionId))&&(ff(t,"usable"),t.a&&t.a.resolve(),t.a=null)})),e.b.h(t,n+"keyerror",(function(t){var n=cf(e,t.sessionId);n&&n.handleError(t)})))}function cf(e,t){var n=e.f.get(t);return n||((n=e.c.shift())?(n.sessionId=t,e.f.set(t,n),n):null)}function lf(e,t,n){$.call(this),this.f=e,this.l=!1,this.a=this.b=null,this.c=t,this.g=n,this.sessionId="",this.expiration=NaN,this.closed=new Qe,this.keyStatuses=new hf}function df(e,t,n){if(e.l)return Promise.reject(Error("The session is already initialized."));e.l=!0;try{if("persistent-license"==e.g)if(n)var i=Xe(rt("LOAD_SESSION|"+n));else{var r=rt("PERSISTENT|");i=pt(r,t)}else i=Xe(t)}catch(e){return Promise.reject(e)}e.b=new Qe;var a=nf("generateKeyRequest");try{e.f[a](e.c,i)}catch(t){if("InvalidStateError"!=t.name)return e.b=null,Promise.reject(t);new bt((function(){try{e.f[a](e.c,i)}catch(t){e.b.reject(t),e.b=null}})).P(.01)}return e.b}function ff(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.a=t,n=new G("keystatuseschange"),e.dispatchEvent(n)}function hf(){this.size=0,this.a=void 0}Nd((function(){ph()}),-1),Nd((function(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",Md),document.addEventListener("webkitfullscreenerror",Md),document.addEventListener("mozfullscreenchange",Md),document.addEventListener("mozfullscreenerror",Md),document.addEventListener("MSFullscreenChange",Md),document.addEventListener("MSFullscreenError",Md)}})),Nd((function(){dn("Trident/")&&!HTMLInputElement.prototype.originalAddEventListener&&(HTMLInputElement.prototype.originalAddEventListener=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Ld)})),Nd((function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})})),Nd((function(){})),Nd((function(){var t=ln();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some((function(e){return e.startsWith("codecs=")}))?cast.__platform__.canDisplayType(t):e(t)}}():t?(function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(/ *; */)[0].split("/")[1].toLowerCase()&&e(t)}}(),12>=t?(Rd(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):Rd()):(dn("Tizen 2")||dn("Tizen 3")||dn("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=rn(t)[0]&&e(t)}}())})),Ud.prototype.createMediaKeys=function(){var e=new jd(this.keySystem);return Promise.resolve(e)},Ud.prototype.getConfiguration=function(){return this.a},jd.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new Bd(this.a,e)},jd.prototype.setServerCertificate=function(){return Promise.resolve(!1)},v(Bd,$),(i=Bd.prototype).generateRequest=function(e,t){var n=this;this.a=new Qe;try{var i=this.g.createSession("video/mp4",Xe(t));this.f=i,this.sessionId=i.sessionId||"",this.b.h(this.f,"webkitkeymessage",(function(e){n.a&&(n.a.resolve(),n.a=null),e=new G("message",{messageType:null==n.keyStatuses.a?"license-request":"license-renewal",message:We(e.message)}),n.dispatchEvent(e)})),this.b.h(i,"webkitkeyadded",(function(){n.c&&(Gd(n,"usable"),n.c.resolve(),n.c=null)})),this.b.h(i,"webkitkeyerror",(function(){var e=Error("EME PatchedMediaKeysApple key error");if(e.errorCode=n.f.error,null!=n.a)n.a.reject(e),n.a=null;else if(null!=n.c)n.c.reject(e),n.c=null;else switch(n.f.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Gd(n,"output-not-allowed");break;default:Gd(n,"internal-error")}})),Gd(this,"status-pending")}catch(e){this.a.reject(e)}return this.a},i.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},i.update=function(e){this.c=new Qe;try{this.f.update(Xe(e))}catch(e){this.c.reject(e)}return this.c},i.close=function(){try{this.f.close(),this.closed.resolve(),this.b.yb()}catch(e){this.closed.reject(e)}return this.closed},i.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(i=Kd.prototype).forEach=function(e){this.a&&e(this.a,jn.value())},i.get=function(e){if(this.has(e))return this.a},i.has=function(e){var t=jn.value();return!(!this.a||!He(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){},Nd((function(){e.HTMLVideoElement&&e.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Dd,e.MediaKeys=jd,e.MediaKeySystemAccess=Ud,navigator.requestMediaKeySystemAccess=Pd)})),Hd.prototype.createMediaKeys=function(){var e=new Wd(this.keySystem);return Promise.resolve(e)},Hd.prototype.getConfiguration=function(){return this.a},Wd.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new Yd(this.a,e)},Wd.prototype.setServerCertificate=function(){return Promise.resolve(!1)},v(Yd,$),(i=Yd.prototype).generateRequest=function(e,t){var n=this;this.a=new Qe;try{this.f=this.g.createSession("video/mp4",Xe(t),null),this.b.h(this.f,"mskeymessage",(function(e){n.a&&(n.a.resolve(),n.a=null),e=new G("message",{messageType:null==n.keyStatuses.a?"license-request":"license-renewal",message:We(e.message)}),n.dispatchEvent(e)})),this.b.h(this.f,"mskeyadded",(function(){n.a?($d(n,"usable"),n.a.resolve(),n.a=null):n.c&&($d(n,"usable"),n.c.resolve(),n.c=null)})),this.b.h(this.f,"mskeyerror",(function(){var e=Error("EME PatchedMediaKeysMs key error");if(e.errorCode=n.f.error,null!=n.a)n.a.reject(e),n.a=null;else if(null!=n.c)n.c.reject(e),n.c=null;else switch(n.f.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:$d(n,"output-not-allowed");break;default:$d(n,"internal-error")}})),$d(this,"status-pending")}catch(e){this.a.reject(e)}return this.a},i.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},i.update=function(e){this.c=new Qe;try{this.f.update(Xe(e))}catch(e){this.c.reject(e)}return this.c},i.close=function(){try{this.f.close(),this.closed.resolve(),this.b.yb()}catch(e){this.closed.reject(e)}return this.closed},i.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(i=Jd.prototype).forEach=function(e){this.a&&e(this.a,jn.value())},i.get=function(e){if(this.has(e))return this.a},i.has=function(e){var t=jn.value();return!(!this.a||!He(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){},Nd((function(){!e.HTMLVideoElement||!e.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,e.MediaKeys=Wd,e.MediaKeySystemAccess=Hd,navigator.requestMediaKeySystemAccess=Vd,HTMLMediaElement.prototype.setMediaKeys=qd)})),ef.prototype.createSession=function(){},ef.prototype.setServerCertificate=function(){},tf.prototype.getConfiguration=function(){},tf.prototype.createMediaKeys=function(){},Nd((function(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Qd,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Zd,e.MediaKeys=ef,e.MediaKeySystemAccess=tf)}),-10),of.prototype.createMediaKeys=function(){var e=new sf(this.a);return Promise.resolve(e)},of.prototype.getConfiguration=function(){return this.b},sf.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.a||document.createElement("video");return t.src||(t.src="about:blank"),e=new lf(t,this.g,e),this.c.push(e),e},sf.prototype.setServerCertificate=function(){return Promise.resolve(!1)},v(lf,$),(i=lf.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.b?(45==e.systemCode&&(t.message="Unsupported session type."),this.b.reject(t),this.b=null):e.sessionId&&this.a?(this.a.reject(t),this.a=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?ff(this,"output-restricted"):ff(this,1==t?"expired":"internal-error"))},i.generateRequest=function(e,t){return df(this,t,null)},i.load=function(e){return"persistent-license"==this.g?df(this,null,e):Promise.reject(Error("Not a persistent session."))},i.update=function(e){var t=new Qe;return function e(t,n,i){if(t.a)t.a.then((function(){return e(t,n,i)})).catch((function(){return e(t,n,i)}));else{if(t.a=n,"webkit-org.w3.clearkey"==t.c){var r=tt(i),a=JSON.parse(r);"oct"!=a.keys[0].kty&&(t.a.reject(Error("Response is not a valid JSON Web Key Set.")),t.a=null),r=dt(a.keys[0].k),a=dt(a.keys[0].kid)}else r=Xe(i),a=null;var o=nf("addKey");try{t.f[o](t.c,r,a,t.sessionId)}catch(e){t.a.reject(e),t.a=null}}}(this,t,e),t},i.close=function(){if("persistent-license"!=this.g){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=nf("cancelKeyRequest");try{this.f[e](this.c,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},i.remove=function(){return"persistent-license"!=this.g?Promise.reject(Error("Not a persistent session.")):this.close()},(i=hf.prototype).forEach=function(e){this.a&&e(this.a,jn.value())},i.get=function(e){if(this.has(e))return this.a},i.has=function(e){var t=jn.value();return!(!this.a||!He(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){};var pf="";function mf(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function vf(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function gf(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function yf(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function bf(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function Ef(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function Tf(t,n,i){return new e.TextTrackCue(t,n,i)}function wf(t,n,i){return new e.TextTrackCue(t+"-"+n+"-"+i,t,n,i)}function Af(){}function Sf(e){var t=[];if(!e)return t;for(var n=c(e.childNodes),i=n.next();!i.done;i=n.next())(i=i.value).nodeType==Node.ELEMENT_NODE&&"br"!==i.nodeName&&(i=Sf(i),t=t.concat(i));return t.length||t.push(e),t}function If(e,t,n,i,r,a,o,s,u,l){if(u&&"br"==e.nodeName)return(e=new Hn(0,0,"")).spacer=!0,e;var d=/^[\s\n]*$/.test(e.textContent),f=e.nodeType==Node.ELEMENT_NODE&&!e.hasAttribute("begin")&&!e.hasAttribute("end");if(e.nodeType!=Node.ELEMENT_NODE||f&&d||f&&!u)return null;d=Lf(e.getAttribute("begin"),n),f=Lf(e.getAttribute("end"),n);var h=Lf(e.getAttribute("dur"),n);if(null==f&&null!=h&&(f=d+h),!u&&(null==d||null==f))throw new Je(2,2,2001);if(d=u&&null==d?0:d+t,f=u&&null==f?0:f+t,h="",u=[],Array.from(e.childNodes).some((function(e){return e.nodeType==Node.TEXT_NODE&&/\S+/.test(e.textContent)})))h=function e(t,n){for(var i="",r=c(t.childNodes),a=r.next();!a.done;a=r.next())"br"==(a=a.value).nodeName&&t.childNodes[0]!==a?i+="\n":a.childNodes&&0n.length)return a;var o=e;for(e=null;o&&!(e=r?du(o,r,t):o.getAttribute(t))&&(o=o.parentNode)instanceof Element;);if(t=e)for(r=(t=c(t.split(" "))).next();!r.done;r=t.next())for(r=r.value,o=(e=c(n)).next();!o.done;o=e.next())if(i+(o=o.value).getAttribute("xml:id")==r){a.push(o);break}return a}function Lf(e,t){var n=null;if(Gf.test(e)){n=Gf.exec(e);var i=Number(n[1]),r=Number(n[2]),a=Number(n[3]),o=Number(n[4]);n=(a+=(o+=(Number(n[5])||0)/t.b)/t.frameRate)+60*r+3600*i}else Kf.test(e)?n=Rf(Kf,e):Vf.test(e)?n=Rf(Vf,e):zf.test(e)?(n=zf.exec(e),n=Number(n[1])/t.frameRate):Hf.test(e)?(n=Hf.exec(e),n=Number(n[1])/t.a):qf.test(e)&&(n=Rf(qf,e));return n}function Rf(e,t){var n=e.exec(t);return null==n||""==n[0]?null:(Number(n[4])||0)/1e3+(Number(n[3])||0)+60*(Number(n[2])||0)+3600*(Number(n[1])||0)}function Pf(e,t,n,i){this.frameRate=Number(e)||30,this.b=Number(t)||1,this.a=Number(i),0==this.a&&(this.a=e?this.frameRate*this.b:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}Nd((function(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)pf="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=rf,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=af,e.MediaKeys=sf,e.MediaKeySystemAccess=of}})),Nd((function(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=vf,Object.defineProperty(t,"disablePictureInPicture",{get:yf,set:bf,enumerable:!0,configurable:!0}),document.exitPictureInPicture=gf,document.addEventListener("webkitpresentationmodechanged",mf,!0))}})),Nd((function(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch((function(){})),e}}})),Nd((function(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in t&&(t.getVideoPlaybackQuality=Ef)}})),Nd((function(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=Tf;else if(6==n)t=wf;else{try{var i=!!Tf(1,2,"")}catch(e){i=!1}i&&(t=Tf)}t&&(e.VTTCue=function(e,n,i){return t(e,n,i)})}})),Af.prototype.parseInit=function(){},Af.prototype.parseMedia=function(e,t){var n=tt(e),i=[],r=new DOMParser,a=null;if(""==n)return i;try{a=r.parseFromString(n,"text/xml")}catch(e){throw new Je(2,2,2005,"Failed to parse TTML.")}if(a){if(n=a.getElementsByTagName("parsererror")[0])throw new Je(2,2,2005,n.textContent);if(!(r=a.getElementsByTagName("tt")[0]))throw new Je(2,2,2005,"TTML does not contain tag.");var o=du(r,"http://www.w3.org/ns/ttml#parameter","frameRate"),s=du(r,"http://www.w3.org/ns/ttml#parameter","subFrameRate"),u=du(r,"http://www.w3.org/ns/ttml#parameter","frameRateMultiplier"),l=du(r,"http://www.w3.org/ns/ttml#parameter","tickRate"),d=du(r,"http://www.w3.org/ns/ttml#parameter","cellResolution");if(a=r.getAttribute("xml:space")||"default",n=du(r,"http://www.w3.org/ns/ttml#styling","extent"),"default"!=a&&"preserve"!=a)throw new Je(2,2,2005,"Invalid xml:space value: "+a);a="default"==a,o=new Pf(o,s,u,l),d=d&&(d=/^(\d+) (\d+)$/.exec(d))?{columns:parseInt(d[1],10),rows:parseInt(d[2],10)}:null,s=Sf(r.getElementsByTagName("metadata")[0]),u=Sf(r.getElementsByTagName("styling")[0]);for(var f=[],h=c(l=Sf(r.getElementsByTagName("layout")[0])),p=h.next();!p.done;p=h.next()){var m=p.value,v=n;p=new oi;var g,y,b=m.getAttribute("xml:id");if(b)p.id=b,b=null,v&&(b=Uf.exec(v)||Bf.exec(v)),v=b?Number(b[1]):null,b=b?Number(b[2]):null,(g=Cf(m,u,"extent"))&&(null!=(g=(y=Uf.exec(g))||Bf.exec(g))&&(p.width=null!=v?100*Number(g[1])/v:Number(g[1]),p.height=null!=b?100*Number(g[2])/b:Number(g[2]),p.widthUnits=y||null!=v?si:0,p.heightUnits=y||null!=b?si:0)),(m=Cf(m,u,"origin"))&&(null!=(g=(y=Uf.exec(m))||Bf.exec(m))&&(p.viewportAnchorX=null!=v?100*Number(g[1])/v:Number(g[1]),p.viewportAnchorY=null!=b?100*Number(g[2])/b:Number(g[2]),p.viewportAnchorUnits=y||null!=v?si:0));else p=null;p&&f.push(p)}for(n=function e(t){if(!t)return[];for(var n=[],i=(t=c(t.childNodes)).next();!i.done;i=t.next())(i=i.value)instanceof Element&&(i.hasAttribute("begin")?n.push(i):n=n.concat(e(i)));return n}(r.getElementsByTagName("body")[0]),r=(n=c(n)).next();!r.done;r=n.next())(r=If(r.value,t.periodStart,o,s,u,l,f,a,!1,d))&&i.push(r)}return i},B("shaka.text.TtmlTextParser",Af),Af.prototype.parseMedia=Af.prototype.parseMedia,Af.prototype.parseInit=Af.prototype.parseInit;var Df,Of,Uf=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,jf=/^(\d{1,2}(?:\.\d+)?|100)%$/,Ff=/^(\d+px|\d+em|\d*\.?\d+c)$/,Bf=/^(\d+)px (\d+)px$/,Gf=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Kf=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Vf=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,zf=/^(\d*(?:\.\d*)?)f$/,Hf=/^(\d*(?:\.\d*)?)t$/,qf=/^(?:(\d*(?:\.\d*)?)h)?(?:(\d*(?:\.\d*)?)m)?(?:(\d*(?:\.\d*)?)s)?(?:(\d*(?:\.\d*)?)ms)?$/,Wf={left:ti,center:"center",right:"end",start:ti,end:"end"},Xf={left:"line-left",center:"center",right:"line-right"};function Yf(){this.s=new Af}function $f(){}function Jf(e,t,n){var i;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=i[1],e.textAlign="middle"==t?Xn:Yn[t.toUpperCase()]):(i=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==i[1]?"vertical-lr":"vertical-rl":(i=/^size:([\d.]+)%$/.exec(t))?e.size=Number(i[1]):(i=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(i[1]),i[2]&&(t=i[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center")):(i=/^region:(.*)$/.exec(t))?(t=function(e,t){var n=e.filter((function(e){return e.id==t}));return n.length?n[0]:null}(n,i[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=ni[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=ei,e.line=Number(n[1]),n[2]&&(e.lineAlign=ni[n[2].toUpperCase()]))}function Qf(e){if(null==(e=Uc(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59r&&(r="0"+r),r=i+":"+r,t&&(10>i&&(r="0"+r),r=n+":"+r),r}function xh(e,t){bh.call(this,e,t);var n=this;this.c=Ea("div"),this.c.classList.add("shaka-ad-counter"),this.parent.appendChild(this.c),this.b=Ea("span"),this.b.classList.add("shaka-ad-counter-span"),this.c.appendChild(this.b),this.a=new bt((function(){var e=Math.round(n.ad.getRemainingTime()),t=n.ad.getDuration();-1!=e&&-1!=t&&(0a&&(n=a),e.bar.value=n}function Ph(e,t){Lh.call(this,e,t,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var n=this;this.f=Ea("div"),this.f.classList.add("shaka-ad-markers"),this.container.insertBefore(this.f,this.container.childNodes[0]),this.m=this.controls.m,this.b=new bt((function(){n.video.currentTime=n.getValue()})),this.g=new bt((function(){Oh(n)})),this.l=!1,this.c=[],this.eventManager.h(this.localization,"locale-updated",(function(){return Fh(n)})),this.eventManager.h(this.localization,"locale-changed",(function(){return Fh(n)})),this.eventManager.h(this.adManager,"ad-started",(function(){Sh(n.container,!1)})),this.eventManager.h(this.adManager,"ad-stopped",(function(){jh(n)&&Sh(n.container,!0)})),this.eventManager.h(this.adManager,"ad-cue-points-changed",(function(e){n.c=e.cuepoints,Uh(n)})),this.eventManager.h(this.player,"unloading",(function(){n.c=[],Uh(n)})),this.setValue(this.video.currentTime),Dh(this),Fh(this),this.ad&&Sh(this.container,!1)}function Dh(e){var t=e.m.seekBarColors,n=e.getValue(),i=e.video.buffered.length,r=i?e.video.buffered.start(0):0,a=i?e.video.buffered.end(i-1):0,o=e.player.Ia(),s=o.end-o.start;e.setRange(o.start,o.end),jh(e)?(Sh(e.container,!0),0==i?e.container.style.background=t.base:(i=(Math.max(r,o.start)-o.start)/s||0,a=(Math.min(a,o.end)-o.start)/s||0,n=(Math.min(Math.max(n,o.start),o.end)-o.start)/s||0,e.container.style.background="linear-gradient("+["to right",(e.m.showUnbufferedStart?t.base:t.played)+" "+100*i+"%",t.played+" "+100*i+"%",t.played+" "+100*n+"%",t.buffered+" "+100*n+"%",t.buffered+" "+100*a+"%",t.base+" "+100*a+"%"].join()+")")):Sh(e.container,!1)}function Oh(e){if(e.c.length){for(var t=e.player.Ia(),n=t.end-t.start,i=["to right"],r=[],a=e.m.seekBarColors.adBreaks,o=!1,s=c(e.c),u=s.next();!u.done;u=s.next())if(-1!=(u=u.value).start||u.end||(o=!0),u.start>=t.start&&u.startt.end)){var l=(u.start-t.start)/n||0,d=l+.01;u.end&&(d=(u.end-t.start)/n||0),r.push({start:l,end:d})}for(u=(t=c(r)).next();!u.done;u=t.next())n=u.value,i.push("transparent "+100*n.start+"%"),i.push(a+" "+100*n.start+"%"),i.push(a+" "+100*n.end+"%"),i.push("transparent "+100*n.end+"%");o&&(i.push("transparent 99%"),i.push(a+" 99%")),e.f.style.background="linear-gradient("+i.join(",")+")"}else e.f.style.background="transparent"}function Uh(e){Oh(e);var t=e.player.Ia();t=t.end-t.start,e.player.S()&&5t)&&null==e.ad}function Fh(e){e.bar.setAttribute("aria-label",e.localization.resolve("SEEK"))}function Bh(t,n,i,r){$.call(this);var a=this;this.X=!0,this.m=r,this.l=new Os(i,t,this.m.castReceiverAppId),this.ab=!0,this.a=this.l.rc(),this.s=i,this.C=this.l.Ob(),this.Sa=t,this.f=n,this.kb=this.C.Qc(),this.o=this.g=null,this.R=!1,this.A=[],this.Jb=[],this.jb=!1,this.V=new bt((function(){a.f.style.cursor="none",a.jb=!1,qh(a)})),this.ha=new bt((function(){a.c.removeAttribute("shown"),a.F.P(2)})),this.F=new bt((function(){for(var e=c(a.A),t=e.next();!t.done;t=e.next())Sh(t.value,!1)})),this.Ta=new bt((function(){a.ub()&&$h(a)})),this.H=null,this.M=[],this.Ka=function(){var e=new Oe("en");return e.Y("ar",new Map([["AD_DURATION","مدة الإعلان"],["AD_PROGRESS","الإعلان [AD_ON] من [NUM_ADS]"],["AD_TIME","الإعلان: [AD_TIME]"],["AUTO_QUALITY","تلقائي"],["BACK","رجوع"],["CAPTIONS","الترجمة والشرح"],["CAST","إرسال..."],["ENTER_LOOP_MODE","تكرار الفيديو الحالي"],["ENTER_PICTURE_IN_PICTURE",'الدخول في وضع "نافذة ضمن نافذة"'],["EXIT_FULL_SCREEN","إنهاء وضع ملء الشاشة"],["EXIT_LOOP_MODE","إيقاف تكرار الفيديو الحالي"],["EXIT_PICTURE_IN_PICTURE",'الخروج من وضع "نافذة ضمن نافذة"'],["FAST_FORWARD","تقديم سريع"],["FULL_SCREEN","ملء الشاشة"],["LANGUAGE","اللغة"],["LIVE","مباشر"],["LOOP","تكرار"],["MORE_SETTINGS","مزيد من الإعدادات"],["MULTIPLE_LANGUAGES","لغات متعددة"],["MUTE","كتم الصوت"],["NOT_APPLICABLE","غير سارٍ"],["OFF","إيقاف"],["ON","تشغيل"],["PAUSE","إيقاف مؤقت"],["PICTURE_IN_PICTURE","نافذة ضمن النافذة"],["PLAY","التشغيل"],["PLAYBACK_RATE","سرعة التشغيل"],["RESOLUTION","درجة الدقة"],["REWIND","ترجيع"],["SEEK","البحث بالتمرير"],["SKIP_AD","تخطّي الإعلان"],["SKIP_TO_LIVE","الانتقال إلى بث مباشر"],["UNDETERMINED_LANGUAGE","غير محدد"],["UNMUTE","إعادة الصوت"],["UNRECOGNIZED_LANGUAGE","غير معروف"],["VOLUME","مستوى الصوت"]])),e.Y("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung [AD_ON] von [NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zurück"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Auflösung"],["REWIND","Zurückspulen"],["SEEK","Suche"],["SKIP_AD","Überspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautstärke"]])),e.Y("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]])),e.Y("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]])),e.Y("es",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Enviar..."],["ENTER_LOOP_MODE","Reproducir en bucle el vídeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el vídeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar rápidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","Más ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["RESOLUTION","Resolución"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al vídeo en directo"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.Y("es-419",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetición indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","Más opciones de configuración"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["RESOLUTION","Resolución"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisión en vivo"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.Y("fr",new Map([["AD_DURATION","Durée de l'annonce"],["AD_PROGRESS","Annonce [AD_ON] sur [NUM_ADS]"],["AD_TIME","Annonce : [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster…"],["ENTER_LOOP_MODE","Lire en boucle la vidéo en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein écran"],["EXIT_LOOP_MODE","Arrêter la lecture en boucle de la vidéo en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein écran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","Répéter"],["MORE_SETTINGS","Plus de paramètres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","Désactivée"],["ON","Activée"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["RESOLUTION","Résolution"],["REWIND","Retour arrière"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Accéder à la partie la plus récente du direct"],["UNDETERMINED_LANGUAGE","Langue indéterminée"],["UNMUTE","Réactiver le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]])),e.Y("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Più lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocità di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]])),e.Y("ja",new Map([["AD_DURATION","広告再生時間"],["AD_PROGRESS","[AD_ON] 番目の広告(全 [NUM_ADS] 個)"],["AD_TIME","広告: [AD_TIME]"],["AUTO_QUALITY","自動"],["BACK","戻る"],["CAPTIONS","字幕"],["CAST","キャスト..."],["ENTER_LOOP_MODE","現在の動画をループ再生"],["ENTER_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを開始"],["EXIT_FULL_SCREEN","全画面表示を終了"],["EXIT_LOOP_MODE","現在の動画のループ再生を停止"],["EXIT_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを終了"],["FAST_FORWARD","早送り"],["FULL_SCREEN","全画面表示"],["LANGUAGE","言語"],["LIVE","ライブ"],["LOOP","ループ"],["MORE_SETTINGS","詳細設定"],["MULTIPLE_LANGUAGES","多言語"],["MUTE","ミュート"],["NOT_APPLICABLE","該当なし"],["OFF","オフ"],["ON","オン"],["PAUSE","一時停止"],["PICTURE_IN_PICTURE","ピクチャー イン ピクチャー"],["PLAY","再生"],["PLAYBACK_RATE","再生速度"],["RESOLUTION","解像度"],["REWIND","巻き戻し"],["SEEK","シーク再生"],["SKIP_AD","広告をスキップ"],["SKIP_TO_LIVE","ライブ配信までスキップ"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","ミュートを解除"],["UNRECOGNIZED_LANGUAGE","不明"],["VOLUME","音量"]])),e.Y("ko",new Map([["AD_DURATION","광고 기간"],["AD_PROGRESS","광고 [AD_ON]/[NUM_ADS]"],["AD_TIME","광고: [AD_TIME]"],["AUTO_QUALITY","자동"],["BACK","뒤로"],["CAPTIONS","자막"],["CAST","전송..."],["ENTER_LOOP_MODE","현재 동영상 반복 재생"],["ENTER_PICTURE_IN_PICTURE","PIP 모드 시작"],["EXIT_FULL_SCREEN","전체화면 닫기"],["EXIT_LOOP_MODE","현재 동영상 반복 재생 중지"],["EXIT_PICTURE_IN_PICTURE","PIP 모드 종료"],["FAST_FORWARD","빨리 감기"],["FULL_SCREEN","전체화면"],["LANGUAGE","언어"],["LIVE","실시간"],["LOOP","반복 재생"],["MORE_SETTINGS","설정 더보기"],["MULTIPLE_LANGUAGES","여러 언어"],["MUTE","음소거"],["NOT_APPLICABLE","해당 사항 없음"],["OFF","사용 안함"],["ON","사용"],["PAUSE","일시중지"],["PICTURE_IN_PICTURE","PIP 모드"],["PLAY","재생"],["PLAYBACK_RATE","재생 속도"],["RESOLUTION","해상도"],["REWIND","되감기"],["SEEK","찾기"],["SKIP_AD","광고 건너뛰기"],["SKIP_TO_LIVE","라이브 동영상으로 건너뛰기"],["UNDETERMINED_LANGUAGE","미정"],["UNMUTE","음소거 해제"],["UNRECOGNIZED_LANGUAGE","알 수 없음"],["VOLUME","볼륨"]])),e.Y("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]])),e.Y("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama [AD_ON] z [NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesyłaj..."],["ENTER_LOOP_MODE","Odtwarzaj bieżący film w pętli"],["ENTER_PICTURE_IN_PICTURE","Włącz tryb obrazu w obrazie"],["EXIT_FULL_SCREEN","Zamknij pełny ekran"],["EXIT_LOOP_MODE","Wyłącz odtwarzanie bieżącego filmu w pętli"],["EXIT_PICTURE_IN_PICTURE","Wyłącz tryb obrazu w obrazie"],["FAST_FORWARD","Przewiń do przodu"],["FULL_SCREEN","Pełny ekran"],["LANGUAGE","Język"],["LIVE","Na żywo"],["LOOP","Odtwarzaj w pętli"],["MORE_SETTINGS","Więcej ustawień"],["MULTIPLE_LANGUAGES","Wiele języków"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wyłączone"],["ON","Włączone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w obrazie"],["PLAY","Odtwórz"],["PLAYBACK_RATE","Szybkość odtwarzania"],["RESOLUTION","Rozdzielczość"],["REWIND","Przewiń do tyłu"],["SEEK","Szukaj"],["SKIP_AD","Pomiń reklamę"],["SKIP_TO_LIVE","Przejdź do transmisji na żywo"],["UNDETERMINED_LANGUAGE","Nie określono"],["UNMUTE","Wyłącz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","Głośność"]])),e.Y("pt-BR",new Map([["AD_DURATION","Duração do anúncio"],["AD_PROGRESS","Anúncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anúncio: [AD_TIME]"],["AUTO_QUALITY","Automática"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o vídeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repetição do vídeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avançar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais definições"],["MULTIPLE_LANGUAGES","Vários idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","Não relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodução"],["RESOLUTION","Resolução"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular anúncio"],["SKIP_TO_LIVE","Pular para transmissão ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","Não reconhecido"],["VOLUME","Volume"]])),e.Y("ru",new Map([["AD_DURATION","Продолжительность объявления"],["AD_PROGRESS","Объявление [AD_ON] из [NUM_ADS]"],["AD_TIME","Объявление: [AD_TIME]"],["AUTO_QUALITY","Авто"],["BACK","Назад"],["CAPTIONS","Титры"],["CAST","Транслировать..."],["ENTER_LOOP_MODE","Зациклить текущее видео"],["ENTER_PICTURE_IN_PICTURE",'Перейти в режим "Картинка в картинке"'],["EXIT_FULL_SCREEN","Обычный режим"],["EXIT_LOOP_MODE","Отменить зацикливание текущего видео"],["EXIT_PICTURE_IN_PICTURE",'Выйти из режима "Картинка в картинке"'],["FAST_FORWARD","Перемотка вперед"],["FULL_SCREEN","Полноэкранный режим"],["LANGUAGE","Язык"],["LIVE","Прямой эфир"],["LOOP","Зациклить"],["MORE_SETTINGS","Дополнительные настройки"],["MULTIPLE_LANGUAGES","Несколько языков"],["MUTE","Отключить звук"],["NOT_APPLICABLE","Неприменимо"],["OFF","Включить"],["ON","Отключить"],["PAUSE","Пауза"],["PICTURE_IN_PICTURE","Картинка в картинке"],["PLAY","Воспроизвести"],["PLAYBACK_RATE","Скорость воспроизведения"],["RESOLUTION","Разрешение"],["REWIND","Перемотать назад"],["SEEK","Перемотка"],["SKIP_AD","Пропустить"],["SKIP_TO_LIVE","Пропустить и перейти к прямой трансляции"],["UNDETERMINED_LANGUAGE","Не указано"],["UNMUTE","Включить звук"],["UNRECOGNIZED_LANGUAGE","Не распознано"],["VOLUME","Громкость"]])),e.Y("th",new Map([["AD_DURATION","ระยะเวลาโฆษณา"],["AD_PROGRESS","โฆษณา [AD_ON] จาก [NUM_ADS] รายการ"],["AD_TIME","โฆษณา: [AD_TIME]"],["AUTO_QUALITY","อัตโนมัติ"],["BACK","กลับ"],["CAPTIONS","คำบรรยาย"],["CAST","แคสต์..."],["ENTER_LOOP_MODE","วนซ้ำวิดีโอปัจจุบัน"],["ENTER_PICTURE_IN_PICTURE","เข้าสู่การแสดงภาพซ้อนภาพ"],["EXIT_FULL_SCREEN","ออกจากการแสดงแบบเต็มหน้าจอ"],["EXIT_LOOP_MODE","หยุดวนซ้ำวิดีโอปัจจุบัน"],["EXIT_PICTURE_IN_PICTURE","ออกจากการแสดงภาพซ้อนภาพ"],["FAST_FORWARD","กรอไปข้างหน้า"],["FULL_SCREEN","เต็มหน้าจอ"],["LANGUAGE","ภาษา"],["LIVE","สด"],["LOOP","ลูป"],["MORE_SETTINGS","การตั้งค่าเพิ่มเติม"],["MULTIPLE_LANGUAGES","หลายภาษา"],["MUTE","ปิดเสียง"],["NOT_APPLICABLE","ไม่เกี่ยวข้อง"],["OFF","ปิด"],["ON","เปิด"],["PAUSE","หยุดชั่วคราว"],["PICTURE_IN_PICTURE","การแสดงภาพซ้อนภาพ"],["PLAY","เล่น"],["PLAYBACK_RATE","ความเร็วในการเล่น"],["RESOLUTION","ความละเอียด"],["REWIND","กรอกลับ"],["SEEK","ค้นหา"],["SKIP_AD","ข้ามโฆษณา"],["SKIP_TO_LIVE","ข้ามไปที่การถ่ายทอดสด"],["UNDETERMINED_LANGUAGE","ไม่กำหนด"],["UNMUTE","เปิดเสียง"],["UNRECOGNIZED_LANGUAGE","ที่ไม่รู้จัก"],["VOLUME","ระดับเสียง"]])),e.Y("tr",new Map([["AD_DURATION","Reklam süresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyazılar"],["CAST","Yayınla..."],["ENTER_LOOP_MODE","Mevcut videoyu döngüye al"],["ENTER_PICTURE_IN_PICTURE","Pencere içinde Pencere moduna gir"],["EXIT_FULL_SCREEN","Tam ekrandan çık"],["EXIT_LOOP_MODE","Mevcut videonun döngüsünü durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere İçinde Pencereden Çık"],["FAST_FORWARD","İleri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canlı"],["LOOP","Döngü"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden çok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Geçerli değil"],["OFF","Kapalı"],["ON","Açık"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere İçinde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","Çalma hızı"],["RESOLUTION","Çözünürlük"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklamı Atla"],["SKIP_TO_LIVE","Canlı yayına atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi aç"],["UNRECOGNIZED_LANGUAGE","Tanınmayan"],["VOLUME","Ses"]])),e.Y("zh",new Map([["AD_DURATION","广告持续时间"],["AD_PROGRESS","广告 [AD_ON]/[NUM_ADS]"],["AD_TIME","广告:[AD_TIME]"],["AUTO_QUALITY","自动"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投射…"],["ENTER_LOOP_MODE","循环播放当前视频"],["ENTER_PICTURE_IN_PICTURE","进入“画中画”模式"],["EXIT_FULL_SCREEN","退出全屏模式"],["EXIT_LOOP_MODE","停止循环播放当前视频"],["EXIT_PICTURE_IN_PICTURE","退出“画中画”模式"],["FAST_FORWARD","快进"],["FULL_SCREEN","全屏"],["LANGUAGE","语言"],["LIVE","直播"],["LOOP","循环播放"],["MORE_SETTINGS","更多设置"],["MULTIPLE_LANGUAGES","多种语言"],["MUTE","静音"],["NOT_APPLICABLE","不适用"],["OFF","关闭"],["ON","开启"],["PAUSE","暂停"],["PICTURE_IN_PICTURE","画中画"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["RESOLUTION","分辨率"],["REWIND","快退"],["SEEK","进度"],["SKIP_AD","跳过广告"],["SKIP_TO_LIVE","跳至当前直播"],["UNDETERMINED_LANGUAGE","未确定"],["UNMUTE","取消静音"],["UNRECOGNIZED_LANGUAGE","无法识别"],["VOLUME","音量"]])),e.Y("zh-TW",new Map([["AD_DURATION","廣告長度"],["AD_PROGRESS","廣告 [AD_ON]/[NUM_ADS]"],["AD_TIME","廣告:[AD_TIME]"],["AUTO_QUALITY","自動"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投放..."],["ENTER_LOOP_MODE","循環播放目前的影片"],["ENTER_PICTURE_IN_PICTURE","進入子母畫面"],["EXIT_FULL_SCREEN","退出全螢幕模式"],["EXIT_LOOP_MODE","停止循環播放目前的影片"],["EXIT_PICTURE_IN_PICTURE","離開子母畫面"],["FAST_FORWARD","快轉"],["FULL_SCREEN","全螢幕"],["LANGUAGE","語言"],["LIVE","直播"],["LOOP","循環播放"],["MORE_SETTINGS","顯示更多設定"],["MULTIPLE_LANGUAGES","多種語言"],["MUTE","靜音"],["NOT_APPLICABLE","不適用"],["OFF","關閉"],["ON","開啟"],["PAUSE","暫停"],["PICTURE_IN_PICTURE","子母畫面"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["RESOLUTION","解析度"],["REWIND","倒轉"],["SEEK","搜尋"],["SKIP_AD","略過廣告"],["SKIP_TO_LIVE","跳至当前直播"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","取消靜音"],["UNRECOGNIZED_LANGUAGE","無法辨識"],["VOLUME","音量"]])),e.ge(navigator.languages||[]),e}(),this.b=new qt,this.configure(this.m),function(t){t.b.h(t.C,"buffering",(function(){t.X&&Sh(t.$,t.C.vc())})),t.X&&Sh(t.$,t.C.vc()),t.b.h(e,"keydown",(function(n){!function(t,n){t.ia.add(n.key);var i=t.Lc();"Tab"==n.key&&(t.c.classList.add("shaka-keyboard-navigation"),qh(t),t.b.h(e,"mousedown",(function(){t.b.Ca(e,"mousedown")}))),"Escape"==n.key&&t.F.sa(),i&&t.ia.has("Tab")&&function(e,t){var n=e.A.filter((function(e){return!e.classList.contains("shaka-hidden")}))[0];if(n.childNodes.length){for(var i=n.firstElementChild;i&&i.classList.contains("shaka-hidden");)i=i.nextElementSibling;for(n=n.lastElementChild;n&&n.classList.contains("shaka-hidden");)n=n.previousElementSibling;var r=document.activeElement;e.ia.has("Shift")?r==i&&(t.preventDefault(),n.focus()):r==n&&(t.preventDefault(),i.focus())}}(t,n)}(t,n)})),t.b.h(e,"click",(function(){return t.tc()})),t.b.h(t.a,"play",(function(){Xh(t)})),t.b.h(t.a,"pause",(function(){Xh(t)})),t.b.h(t.a,"ended",(function(){Xh(t)})),t.b.h(t.f,"mousemove",(function(e){Hh(t,e)})),t.b.h(t.f,"touchmove",(function(e){Hh(t,e)}),{passive:!0}),t.b.h(t.f,"touchend",(function(e){Hh(t,e)}),{passive:!0}),t.b.h(t.f,"mouseleave",(function(){t.H||t.V.sa()})),t.b.h(t.l,"caststatuschanged",(function(){Wh(t)})),t.b.h(t.f,"keyup",(function(e){var n=document.activeElement,i=!(!n||!n.classList)&&n.classList.contains("shaka-volume-bar"),r=n&&n.classList&&n.classList.contains("shaka-seek-bar");if(t.c.contains(n)&&Hh(t,e),t.ia.delete(e.key),t.m.enableKeyboardPlaybackControls)switch(e.key){case"ArrowLeft":i||Yh(t,t.a.currentTime-5);break;case"ArrowRight":i||Yh(t,t.a.currentTime+5);break;case"Home":Yh(t,t.C.Ia().start);break;case"End":Yh(t,t.C.Ia().end);break;case" ":r&&(t.g?zh(t):Vh(t))}})),t.b.h(t.kb,"ad-started",(function(e){t.g=e.ad,t.Oe()})),t.b.h(t.kb,"ad-stopped",(function(){t.g=null,t.se()})),screen.orientation&&t.b.h(screen.orientation,"change",(function(){return R((function(e){return E(e,function(e){return R((function(t){return e.a&&0!=e.a.readyState&&!e.l.ba()&&e.m.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?E(t,e.f.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?E(t,document.exitFullscreen(),0):t.u(0):t.return()}))}(t),0)}))})),t.b.h(document,"fullscreenchange",(function(){t.g&&t.g.resize(t.s.offsetWidth,t.s.offsetHeight)}))}(this),this.ia=new Set,Wh(this),this.Ta.Z(.125),this.b.h(this.Ka,"locale-changed",(function(e){a.kb.setLocale(e.locales[0])}))}function Gh(e){for(var t=c(e.M),n=t.next();!n.done;n=t.next())n.value.release();e.M=[]}function Kh(e,t){Jh.set(e,t)}function Vh(e){e.X&&e.a.duration&&(e.C.ee(),e.a.paused&&!e.R?e.a.play():e.a.pause())}function zh(e){e.g&&e.g.isPaused()?e.g.play():e.g&&e.g.pause()}function Hh(e,t){"mousemove"==t.type&&(e.c.classList.remove("shaka-keyboard-navigation"),qh(e)),"touchstart"==t.type||"touchmove"==t.type||"touchend"==t.type||"keyup"==t.type?e.H=Date.now():e.H+1e3e||4e?-1:2*e)}}))}function Jp(e){e.a.setAttribute("aria-label",e.localization.resolve("REWIND"))}function Qp(){}function Zp(e,t){bh.call(this,e,t);var n=this;this.f=Ea("div"),this.f.classList.add("shaka-skip-ad-container"),this.parent.appendChild(this.f),this.b=Ea("div"),this.b.classList.add("shaka-skip-ad-counter"),Sh(this.b,!1),this.f.appendChild(this.b),this.a=Ta(),this.a.classList.add("shaka-skip-ad-button"),this.a.disabled=!0,Sh(this.a,!1),this.a.classList.add("shaka-no-propagation"),this.f.appendChild(this.a),em(this),this.c=new bt((function(){var e=Math.round(n.ad.getTimeUntilSkippable());0=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;T(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:A(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=i}catch(e){Function("r","regeneratorRuntime = r")(i)}},yWTg:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o){try{var s=e[a](o),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(i,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function s(e){i(o,r,a,s,u,"next",e)}function u(e){i(o,r,a,s,u,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return r}))}}]);