(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-25e1b0c2"],{"0538":function(e,t,n){"use strict";var i=n("1c0b"),r=n("861d"),a=[].slice,s={};e.exports=Function.bind||function(e){var t=i(this),n=a.call(arguments,1),o=function(){var i=n.concat(a.call(arguments));if(this instanceof o){var r=t,u=i.length,l=i;if(!(u in s)){for(var c=[],d=0;de.modelValue===e.activeValue,r=()=>{var i;e.disabled||e.loading||(i=n()?e.inactiveValue:e.activeValue,t("update:modelValue",i),t("change",i))};return Object(o.h)(()=>e.modelValue),()=>{var{size:t,loading:a,disabled:o,activeColor:l,inactiveColor:d}=e,h=n(),t={fontSize:Object(s.b)(t),backgroundColor:h?l:d};return Object(i.createVNode)("div",{role:"switch",class:c({on:h,loading:a,disabled:o}),style:t,tabindex:o?void 0:0,"aria-checked":h,onClick:r},[Object(i.createVNode)("div",{class:c("node")},[(()=>{var t;if(e.loading)return t=n()?e.activeColor:e.inactiveColor,Object(i.createVNode)(u.a,{class:c("loading"),color:t},null)})()])])}}});const d=Object(t.a)(r);var h=d},"210b":function(e,t,n){var i=n("e1c8");t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n("b074").DOMParser},2241:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=n("75e6").a},"22de":function(e,t,n){},"2b8c":function(e,t,n){var i=n("be09"),r=(e=e.exports={WebVTT:n("d02c"),VTTCue:n("b03c"),VTTRegion:n("f97d")},i.vttjs=e,i.WebVTT=e.WebVTT,e.VTTCue),a=e.VTTRegion,s=i.VTTCue,o=i.VTTRegion;e.shim=function(){i.VTTCue=r,i.VTTRegion=a},e.restore=function(){i.VTTCue=s,i.VTTRegion=o},i.VTTCue||e.shim()},"2fcb":function(e,t,n){},"321f":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("de66"),r=Object(i.k)([73,68,51]),a=function e(t,n){return void 0===n&&(n=0),(t=Object(i.k)(t)).length-n<10||!Object(i.a)(t,r,{offset:n})?n:e(t,n+=(t=t,void 0===(a=n)&&(a=0),s=(t=Object(i.k)(t))[a+5],t=t[a+6]<<21|t[a+7]<<14|t[a+8]<<7|t[a+9],(16&s)>>4?20+t:10+t));var a,s}},3410:function(e,t,n){var i=n("23e7"),r=n("d039"),a=n("7b0b"),s=n("e163");n=n("e177");i({target:"Object",stat:!0,forced:r((function(){s(1)})),sham:!n},{getPrototypeOf:function(e){return s(a(e))}})},3603:function(e,t,n){"use strict";for(var i=n("be09"),r=n("a559"),a=n("8362"),s=(d.httpHandler=n("8c00"),function(e){var t={};return e&&e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase();e=e.slice(n+1).trim();void 0===t[i]?t[i]=e:Array.isArray(t[i])?t[i].push(e):t[i]=[t[i],e]})),t}),o=(e.exports=d,(e.exports.default=d).XMLHttpRequest=i.XMLHttpRequest||function(){},d.XDomainRequest="withCredentials"in new d.XMLHttpRequest?d.XMLHttpRequest:i.XDomainRequest,["get","put","post","patch","head","delete"]),u=function(e){d["delete"===e?"del":e]=function(t,n,i){return(n=c(t,n,i)).method=e.toUpperCase(),h(n)}},l=0;l{var n;return Object(i.createVNode)("div",{class:[v(),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[null==(n=t.default)?void 0:n.call(t)])}}});const b=Object(t.a)(_);var T=n("4eda"),S=n("b070");const[E,k]=Object(s.a)("action-bar-button");_=Object(r.a)({},S.b,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),n=Object(i.defineComponent)({name:E,props:_,setup(e,{slots:t}){const n=Object(S.c)(),{parent:r,index:a}=Object(m.k)(y),s=Object(i.computed)(()=>{var e;if(r)return!((e=r.children[a.value-1])&&"isButton"in e)}),o=Object(i.computed)(()=>{var e;if(r)return!((e=r.children[a.value+1])&&"isButton"in e)});return Object(T.a)({isButton:!0}),()=>{const{type:r,icon:a,text:u,color:l,loading:c,disabled:d}=e;return Object(i.createVNode)(f.a,{class:k([r,{last:o.value,first:s.value}]),size:"large",type:r,icon:a,color:l,loading:c,disabled:d,onClick:n},{default:()=>[t.default?t.default():u]})}}});const w=Object(t.a)(n),[C,O,x]=Object(s.a)("dialog");_=Object(r.a)({},h.b,{title:String,theme:String,width:o.f,message:[String,Function],callback:Function,allowHtml:Boolean,className:o.h,transition:Object(o.e)("van-dialog-bounce"),messageAlign:String,closeOnPopstate:o.g,showCancelButton:Boolean,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showConfirmButton:o.g,closeOnClickOverlay:Boolean});const I=[...h.a,"transition","closeOnPopstate"];var A=Object(i.defineComponent)({name:C,props:_,emits:["confirm","cancel","keydown","update:show"],setup(e,{emit:t,slots:n}){const a=Object(i.ref)(),s=Object(i.reactive)({confirm:!1,cancel:!1}),o=e=>t("update:show",e),h=t=>{var n;o(!1),null!=(n=e.callback)&&n.call(e,t)};var m=n=>()=>{e.show&&(t(n),e.beforeClose?(s[n]=!0,Object(u.a)(e.beforeClose,{args:[n],done(){h(n),s[n]=!1},canceled(){s[n]=!1}})):h(n))};const g=m("cancel"),v=m("confirm"),y=Object(i.withKeys)(n=>{var i;if(n.target===(null==(i=null==(i=a.value)?void 0:i.popupRef)?void 0:i.value)){const i={Enter:e.showConfirmButton?v:r.d,Escape:e.showCancelButton?g:r.d};i[n.key](),t("keydown",n)}},["enter","esc"]),_=()=>{if(n.default)return Object(i.createVNode)("div",{class:O("content")},[n.default()]);var{title:t,message:r,allowHtml:a}=e;return r?(r=!(!t&&!n.title),Object(i.createVNode)("div",{key:a?1:0,class:O("content",{isolated:!r})},[(t=>{const{message:n,allowHtml:r,messageAlign:a}=e;t=O("message",{"has-title":t,[a]:a});var s=Object(l.c)(n)?n():n;return r&&"string"==typeof s?Object(i.createVNode)("div",{class:t,innerHTML:s},null):Object(i.createVNode)("div",{class:t},[s])})(r)])):void 0},T=()=>n.footer?n.footer():"round-button"===e.theme?Object(i.createVNode)(b,{class:O("footer")},{default:()=>[e.showCancelButton&&Object(i.createVNode)(w,{type:"warning",text:e.cancelButtonText||x("cancel"),class:O("cancel"),color:e.cancelButtonColor,loading:s.cancel,onClick:g},null),e.showConfirmButton&&Object(i.createVNode)(w,{type:"danger",text:e.confirmButtonText||x("confirm"),class:O("confirm"),color:e.confirmButtonColor,loading:s.confirm,onClick:v},null)]}):Object(i.createVNode)("div",{class:[c.c,O("footer")]},[e.showCancelButton&&Object(i.createVNode)(f.a,{size:"large",text:e.cancelButtonText||x("cancel"),class:O("cancel"),style:{color:e.cancelButtonColor},loading:s.cancel,onClick:g},null),e.showConfirmButton&&Object(i.createVNode)(f.a,{size:"large",text:e.confirmButtonText||x("confirm"),class:[O("confirm"),{[c.a]:e.showCancelButton}],style:{color:e.confirmButtonColor},loading:s.confirm,onClick:v},null)]);return()=>{var{width:t,title:s,theme:u,message:l,className:c}=e;return Object(i.createVNode)(p.a,Object(i.mergeProps)({ref:a,role:"dialog",class:[O([u]),c],style:{width:Object(d.b)(t)},tabindex:0,"aria-labelledby":s||l,onKeydown:y,"onUpdate:show":o},Object(r.e)(e,I)),{default:()=>[(()=>{var t=n.title?n.title():e.title;if(t)return Object(i.createVNode)("div",{class:O("header",{isolated:!e.message&&!n.default})},[t])})(),_(),T()]})}}});let P;function D(e){return r.c?new Promise((t,n)=>{var s;P||(s={setup(){const{state:e,toggle:t}=Object(a.b)();return()=>Object(i.createVNode)(A,Object(i.mergeProps)(e,{"onUpdate:show":t}),null)}},({instance:P}=Object(a.a)(s))),P.open(Object(r.a)({},D.currentOptions,e,{callback:e=>{("confirm"===e?t:n)(e)}}))}):Promise.resolve()}D.defaultOptions={title:"",width:"",theme:null,message:"",overlay:!0,callback:null,teleport:"body",className:"",allowHtml:!1,lockScroll:!0,transition:void 0,beforeClose:null,overlayClass:"",overlayStyle:void 0,messageAlign:"",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1},D.currentOptions=Object(r.a)({},D.defaultOptions),(D.alert=D).confirm=e=>D(Object(r.a)({showCancelButton:!0},e)),D.close=()=>{P&&P.toggle(!1)},D.setDefaultOptions=e=>{Object(r.a)(D.currentOptions,e)},D.resetDefaultOptions=()=>{D.currentOptions=Object(r.a)({},D.defaultOptions)},D.Component=Object(t.a)(A),D.install=e=>{e.use(D.Component),e.config.globalProperties.$dialog=D}},"76d1":function(e,t,n){e.exports=n.p+"static/img/box_line.6256177b.png"},"7aa4":function(e,t,n){"use strict";n("c2f6")},"81c0":function(e,t,n){var i=n("a968").getUint64;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12,a=(0===n.version?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=i(e.subarray(r)),n.firstOffset=i(e.subarray(r+8)),r+=16),t.getUint16(r+=2));for(r+=2;0>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return n}},8362:function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},"840c":function(e,t,n){"use strict";n("9c0e")},8484:function(e,t,n){"use strict";function i(e){return!!e&&"object"==typeof e}function r(){for(var e=arguments.length,t=new Array(e),n=0;nt.timeline?1:-1}));var t},L=function(e){var t,n,i=e.oldManifest,r=(e=e.newManifest,i.playlists.concat(c(i))),a=e.playlists.concat(c(e));return e.timelineStarts=D([i.timelineStarts,e.timelineStarts]),i={oldPlaylists:r,newPlaylists:a,timelineStarts:e.timelineStarts},t=i.oldPlaylists,r=i.newPlaylists,n=i.timelineStarts,r.forEach((function(e){e.discontinuitySequence=o(n,(function(t){return t.timeline===e.timeline}));var i=function(e,t){for(var n=0;ni.timeline||i.segments.length&&e.timeline>i.segments[i.segments.length-1].timeline)&&e.discontinuitySequence--);i.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),d({playlist:e,mediaSequence:i.segments[a].number})}})),e},N=function(e){return e&&e.uri+"-"+(e=e.byterange,t="bigint"==typeof e.offset||"bigint"==typeof e.length?S.a.BigInt(e.offset)+S.a.BigInt(e.length)-S.a.BigInt(1):e.offset+e.length-1,e.offset+"-"+t);var t},R=function(e){return a(e.reduce((function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{})).map((function(e){var t,n;return e.discontinuityStarts=(t=e.segments||[],n="discontinuity",t.reduce((function(e,t,i){return t[n]&&e.push(i),e}),[])),e}))},M=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=h(e[n],t);return e},j=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i;e=e.reduce((function(e,r){var a,s,o,u,l,c,d=r.attributes.role&&r.attributes.role.value||"",p=r.attributes.lang||"",f=r.attributes.label||"main",m=(e[f=p&&!r.attributes.label?r.attributes.lang+(d?" ("+d+")":""):f]||(e[f]={language:p,autoselect:!0,default:"main"===d,playlists:[],uri:""}),h((p=n,s=(a=r).attributes,o=r.segments,u=r.sidx,l=r.mediaSequence,m=r.discontinuitySequence,a=r.discontinuityStarts,c={attributes:((c={NAME:s.id,BANDWIDTH:s.bandwidth,CODECS:s.codecs})["PROGRAM-ID"]=1,c),uri:"",endList:"static"===s.type,timeline:s.periodStart,resolvedUri:"",targetDuration:s.duration,discontinuitySequence:m,discontinuityStarts:a,timelineStarts:s.timelineStarts,mediaSequence:l,segments:o},s.contentProtection&&(c.contentProtection=s.contentProtection),u&&(c.sidx=u),p&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c),t));return e[f].playlists.push(m),void 0===i&&"main"===d&&((i=r).default=!0),e}),{});return i||(e[Object.keys(e)[0]].default=!0),e},U=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(h(function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts;e=e.discontinuitySequence;return void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration),(t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,n.codecs&&(t.CODECS=n.codecs),{attributes:t,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:e,mediaSequence:r,segments:i}}(n),t)),e}),{})},B=function(e){return e.reduce((function(e,t){return t&&t.forEach((function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])})),e}),{})},F=function(e){var t=e.attributes,n=e.segments,i=e.sidx,r=(e=e.discontinuityStarts,{attributes:((r={NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth})["PROGRAM-ID"]=1,r),uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:"",targetDuration:t.duration,discontinuityStarts:e,timelineStarts:t.timelineStarts,segments:n});return t.frameRate&&(r.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(r.contentProtection=t.contentProtection),i&&(r.sidx=i),r},V=function(e){return e=e.attributes,"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType},q=function(e){return e=e.attributes,"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType},H=function(e){return e=e.attributes,"text/vtt"===e.mimeType||"text"===e.contentType},W=function(e,t){e.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=o(t,(function(t){return t.timeline===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))}))},G=function(e){return e?Object.keys(e).reduce((function(t,n){return n=e[n],t.concat(n.playlists)}),[]):[]},z=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,X=function(e){var t,n=e.attributes;e=e.segmentInfo,e.template?(s=m,t=r(n,e.template)):e.base?(s=l,t=r(n,e.base)):e.list&&(s=g,t=r(n,e.list)),n={attributes:n};if(!s)return n;var i,a,s=s(t,e.segmentTimeline);return t.duration?(i=(a=t).duration,a=a.timescale,t.duration=i/(void 0===a?1:a)):s.length?t.duration=s.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0,n.attributes=t,n.segments=s,e.base&&t.indexRange&&(n.sidx=s[0],n.segments=[]),n},K=function(e,t){return s(e.childNodes).filter((function(e){return e.tagName===t}))},Y=function(e){return e.textContent.trim()},Q={mediaPresentationDuration:v,availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=e)&&(e+="Z"),Date.parse(e)/1e3},minimumUpdatePeriod:v,suggestedPresentationDelay:v,type:function(e){return e},timeShiftBufferDepth:v,start:v,width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return parseFloat(e.split("/").reduce((function(e,t){return e/t})))},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?v(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},$=function(e){return e&&e.attributes?s(e.attributes).reduce((function(e,t){var n=Q[t.name]||Q.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},J={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Z=function(e,t){return t.length?w(e.map((function(e){return t.map((function(t){return Object(T.a)(e,Y(t))}))}))):e},ee=function(e,t){return function(n,i){var a=Z(t,K(n.node,"BaseURL")),s=r(e,{periodStart:n.attributes.start}),o=("number"==typeof n.attributes.duration&&(s.periodDuration=n.attributes.duration),K(n.node,"AdaptationSet"));n=y(n.node);return w(o.map(_(s,a,n)))}},te=function(e){var t=e.attributes,n=e.priorPeriodAttributes;e=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==e?null:0},ne=function(e,t){void 0===t&&(t={});e=function(e,t){t=t=void 0===t?{}:t;var n=t.manifestUri,i=(n=void 0===n?"":n,t.NOW),r=(i=void 0===i?Date.now():i,t=t.clientOffset,t=void 0===t?0:t,K(e,"Period"));if(!r.length)throw new Error(C.INVALID_NUMBER_OF_PERIOD);var a=K(e,"Location"),s=$(e),o=(n=Z([n],K(e,"BaseURL")),s.type=s.type||"static",s.sourceDuration=s.mediaPresentationDuration||0,s.NOW=i,s.clientOffset=t,a.length&&(s.locations=a.map(Y)),[]);return r.forEach((function(e,t){var n=$(e);t=o[t-1];n.start=te({attributes:n,priorPeriodAttributes:t?t.attributes:null,mpdType:s.type}),o.push({node:e,attributes:n})})),{locations:s.locations,representationInfo:w(o.map(ee(s,n)))}}(b(e),t);var n=e.representationInfo.map(X),i=(e=(n={dashPlaylists:n,locations:e.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest}).dashPlaylists,t=n.locations,void 0===(i=n.sidxMapping)?{}:i);n=n.previousManifest;if(!e.length)return{};var r=(o=e[0].attributes).sourceDuration,a=o.type,s=o.suggestedPresentationDelay,o=o.minimumUpdatePeriod,u=R(e.filter(V)).map(F),l=R(e.filter(q)),c=R(e.filter(H)),d=(e=e.map((function(e){return e.attributes.captionServices})).filter(Boolean),{allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((d={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},d.SUBTITLES={},d),uri:"",duration:r,playlists:M(u,i)});0<=o&&(d.minimumUpdatePeriod=1e3*o),t&&(d.locations=t),"dynamic"===a&&(d.suggestedPresentationDelay=s),r=0===d.playlists.length,o=l.length?j(l,i,r):null,t=c.length?U(c,i):null,s=(a=u.concat(G(o),G(t))).map((function(e){return e.timelineStarts}));return d.timelineStarts=D(s),W(a,d.timelineStarts),o&&(d.mediaGroups.AUDIO.audio=o),t&&(d.mediaGroups.SUBTITLES.subs=t),e.length&&(d.mediaGroups["CLOSED-CAPTIONS"].cc=B(e)),n?L({oldManifest:n,newManifest:d}):d},ie=function(e){if(e=b(e),!(e=K(e,"UTCTiming")[0]))return null;var t=$(e);switch(t.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":t.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":t.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":t.method="DIRECT",t.value=Date.parse(t.value);break;default:throw new Error(C.UNSUPPORTED_UTC_TIMING_SCHEME)}return t}},"89a7":function(e,t,n){"use strict";function i(e,t){return(t=void 0===t?Object:t)&&"function"==typeof t.freeze?t.freeze(e):e}var r=i({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;iw;w++)u(_,S=k[w])&&!u(E,S)&&g(E,S,m(_,S));(E.prototype=b).constructor=E,o(a,y,E)}},b000:function(e,t,n){"use strict";n("68ef"),n("e3b3"),n("d9d2")},b03c:function(e,t){var n={"":1,lr:1,rl:1},i={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function r(e){return"string"==typeof e&&!!i[e.toLowerCase()]&&e.toLowerCase()}function a(e,t,i){this.hasBeenReset=!1;var a="",s=!1,o=e,u=t,l=i,c=null,d="",h=!0,p="auto",f="start",m="auto",g="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return l},set:function(e){l=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(e){if(e="string"==typeof(e=e)&&!!n[e.toLowerCase()]&&e.toLowerCase(),!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){e=r(e),e&&(f=e,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||100=t+n||t?new java.lang.String(e,t,n)+"":e}function g(e,t){(e.currentElement||e.doc).appendChild(t)}d.prototype.parseFromString=function(e,t){var n=this.options,i=new l,r=n.domBuilder||new h,s=n.errorHandler,u=n.locator,d=n.xmlns||{},p=(t=/\/x?html?$/.test(t),t?a.HTML_ENTITIES:a.XML_ENTITIES);u&&r.setDocumentLocator(u),i.errorHandler=function(e,t,n){if(!e){if(t instanceof h)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a?function(e){a("[xmldom "+t+"]\t"+e+f(n))}:function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}(s,r,u),i.domBuilder=n.domBuilder||r,t&&(d[""]=o.HTML),d.xml=d.xml||o.XML,s=n.normalizeLineEndings||c;return e&&"string"==typeof e?i.parse(s(e),d,p):i.errorHandler.error("invalid doc source"),r.doc},h.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),s=i.length;g(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var o=0;o",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),t.entityMap=t.HTML_ENTITIES},b650:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m}));t=n("c199");var i=n("7a23"),r=n("fe7e"),a=n("f344"),s=n("f691"),o=n("4a89"),u=n("b1d2"),l=n("b070"),c=n("ad06"),d=n("543e");const[h,p]=Object(r.a)("button");n=Object(a.a)({},l.b,{tag:Object(s.e)("button"),text:String,icon:String,type:Object(s.e)("default"),size:Object(s.e)("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:Object(s.e)("button"),loadingSize:s.f,loadingText:String,loadingType:String,iconPosition:Object(s.e)("left")}),r=Object(i.defineComponent)({name:h,props:n,emits:["click"],setup(e,{emit:t,slots:n}){const r=Object(l.c)(),a=()=>e.loading?n.loading?n.loading():Object(i.createVNode)(d.a,{size:e.loadingSize,type:e.loadingType,class:p("loading")},null):n.icon?Object(i.createVNode)("div",{class:p("icon")},[n.icon()]):e.icon?Object(i.createVNode)(c.a,{name:e.icon,class:p("icon"),classPrefix:e.iconPrefix},null):void 0,s=n=>{e.loading?Object(o.e)(n):e.disabled||(t("click",n),r())};return()=>{const{tag:t,type:r,size:o,block:l,round:c,plain:d,square:h,loading:f,disabled:m,hairline:g,nativeType:v,iconPosition:y}=e;var _=[p([r,o,{plain:d,block:l,round:c,square:h,loading:f,disabled:m,hairline:g}]),{[u.b]:g}];return Object(i.createVNode)(t,{type:v,class:_,style:(()=>{const{color:t,plain:n}=e;if(t){const e={color:n?t:"white"};return n||(e.background=t),t.includes("gradient")?e.border=0:e.borderColor=t,e}})(),disabled:m,onClick:s},{default:()=>[Object(i.createVNode)("div",{class:p("content")},["left"===y&&a(),(()=>{let t;if(t=e.loading?e.loadingText:n.default?n.default():e.text)return Object(i.createVNode)("span",{class:p("text")},[t])})(),"right"===y&&a()])]})}}});const f=Object(t.a)(r);var m=f},b95f:function(e,t,n){function i(e){if(s[e])return s[e].exports;var t=s[e]={i:e,l:!1,exports:{}};return a[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}var r,a,s;e.exports=(r=n("f0e2"),a=[function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n=n(0),n=n&&n.__esModule?n:{default:n};var i=window.videojs||n.default,r=("function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i
温度
26
CO2
410
湿度
42%
TVOC
0.5健康
PM 2.5
17
甲醛
0.04健康
',5),k={class:"box"},w={class:"box"},C={class:"box"},O={class:"box air-box"},x={class:"box"};function I(e){return Object(r.pushScopeId)("data-v-2a317a66"),e=e(),Object(r.popScopeId)(),e}n("d81d");var A=n("5530"),P=n("6c02"),D={class:"top"},L=["src"],N={class:"top-right"},R={class:"bottom"},M={class:"air-info"},j={class:"left"},U=I((function(){return Object(r.createElementVNode)("div",{class:"text"},"空调",-1)})),B={class:"status"},F={key:0,class:"temp"},V=I((function(){return Object(r.createElementVNode)("sup",null,"℃",-1)})),q={key:0,class:"temp-box",id:"sliderAirId"},H={class:"bar"},W={class:"text text-left active-text"},G=[I((function(){return Object(r.createElementVNode)("div",{class:"hand-box",id:"handAirId"},[Object(r.createElementVNode)("div",{class:"line"})],-1)}))],z={key:1,class:"air-volume"},X=I((function(){return Object(r.createElementVNode)("div",{class:"volume-left"},[Object(r.createElementVNode)("div",{class:"volume-top"},[Object(r.createElementVNode)("span",null,"1"),Object(r.createElementVNode)("span",null,"2"),Object(r.createElementVNode)("span",null,"3"),Object(r.createElementVNode)("span",{class:"span-active"},"4")]),Object(r.createElementVNode)("div",{class:"text"},"风量调节")],-1)})),K={class:"volume-right"},Y={class:"control-item"},Q=["src"],$={class:"control-item"},J=["src"],Z=I((function(){return Object(r.createElementVNode)("div",{class:"control-item"},"A",-1)}));n("b680");var ee=n("ade3"),te=n("1a23"),ne=n("75e6"),ie=n("543e"),re=n("d257"),ae=n("48a1"),se=Object(r.defineComponent)({components:(se={Switch:te.a},Object(ee.a)(se,ne.a.Component.name,ne.a.Component),Object(ee.a)(se,"Loading",ie.a),se),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:re.y,isOpen:!1,airData:{minTempSet:16,maxTempSet:32,airTemp:24},part:1,realTemp:24,isWhite:!1,barWidth:30,getAirStatus:function(){n.isOpen&&Object(r.nextTick)((function(){n.endBoxSwiper(),n.setBarNowPerstion()})),t.emit("getStatus",n.isOpen)},getEleWidth:function(e){return e?e.getBoundingClientRect().width:1},setBarNowPerstion:function(){n.realTemp=n.airData.airTemp;var e,t=document.querySelector("#barAirId");t&&(e=document.querySelector("#sliderAirId"),n.getEleWidth(e),n.airData.airTemp>=n.airData.minTempSet&&n.airData.airTemp<=n.airData.maxTempSet?(e=(n.airData.airTemp-n.airData.minTempSet)/n.part,t&&(t.style.width=e+"px")):!n.airData.airTemp||n.airData.airTempn.airData.maxTempSet&&(e=t.offsetWidth,n.barWidth=e))},endBoxSwiper:function(){var e=document.querySelector("#sliderAirId"),t=document.querySelector("#handAirId"),i=document.querySelector("#barAirId"),r=!1,a=n.getEleWidth(e),s=n.getEleWidth(i),o=(n.airData.maxTempSet-n.airData.minTempSet)/(a-30);n.part=o,t&&(t.addEventListener("touchstart",(function(e){var t=i&&i.style&&i.style.width||0;s=isNaN(parseInt(t))?0:parseInt(t),r=!0})),t.addEventListener("touchend",(function(e){r=!1,n.airData.airTemp=n.realTemp})),Object(ae.a)(t,{swipeLeft:function(e){var t;r&&(e=Math.abs(e.mation.moveX-e.mation.startX),e=parseInt(e),e=s-e,e=parseInt(e),n.isWhite=a<=(e=e<30?30:e),n.barWidth=e,(t=(t=n.airData.minTempSet+e*o)>n.airData.maxTempSet?n.airData.maxTempSet:t)&&(n.realTemp=Object(re.a)(t.toFixed(1))),e<=30&&(n.realTemp=16))},swipeRight:function(e){r&&(e=Math.abs(e.mation.moveX-e.mation.startX),e=parseInt(e),e=s+e,e=parseInt(e),n.isWhite=a<=(e=an.airData.maxTempSet?n.airData.maxTempSet:e)&&(n.realTemp=Object(re.a)(e.toFixed(1))))}}))}});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),oe=(n("db96"),n("f250"),n("6b0d")),ue=(oe=n.n(oe),se=oe()(se,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["volumn-box",e.isOpen?"active":""])},[Object(r.createElementVNode)("div",D,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/air-con.svg":"air-con.svg"),alt:""},null,8,L),Object(r.createElementVNode)("div",N,[Object(r.createVNode)(o,{onChange:e.getAirStatus,class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.3)",modelValue:e.isOpen,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.isOpen=t})},null,8,["onChange","modelValue"])])]),Object(r.createElementVNode)("div",R,[Object(r.createElementVNode)("div",M,[Object(r.createElementVNode)("div",j,[U,Object(r.createElementVNode)("div",B,Object(r.toDisplayString)(e.isOpen?"已开启":"已关闭"),1)]),e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",F,[Object(r.createTextVNode)(Object(r.toDisplayString)(e.airData.airTemp)+" ",1),V])):Object(r.createCommentVNode)("",!0)]),e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",q,[Object(r.createElementVNode)("div",H,[Object(r.createElementVNode)("div",W,Object(r.toDisplayString)(e.airData.minTempSet),1),Object(r.createElementVNode)("div",{class:"active-bar",style:Object(r.normalizeStyle)({width:e.barWidth+"px"}),id:"barAirId"},G,4),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["text text-right",e.isWhite?"active-text":""])},Object(r.toDisplayString)(e.airData.maxTempSet),3)])])):Object(r.createCommentVNode)("",!0),e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",z,[X,Object(r.createElementVNode)("div",K,[Object(r.createElementVNode)("div",Y,[Object(r.createElementVNode)("img",{class:"icon",src:e.parseImgUrl("taiguv1/envmonitor","minus.svg")},null,8,Q)]),Object(r.createElementVNode)("div",$,[Object(r.createElementVNode)("img",{class:"icon",src:e.parseImgUrl("taiguv1/envmonitor","plus.svg")},null,8,J)]),Z])])):Object(r.createCommentVNode)("",!0)])],2)}],["__scopeId","data-v-2a317a66"]]),{class:"screen-box active"}),le={class:"top"},ce=["src"],de=function(e){return Object(r.pushScopeId)("data-v-402c8977"),e=e(),Object(r.popScopeId)(),e}((function(){return Object(r.createElementVNode)("div",{class:"top-right"},[Object(r.createElementVNode)("div",{class:"title"},"投屏"),Object(r.createElementVNode)("div",{class:"status"},"关闭")],-1)})),he={class:"bottom"};function pe(e){return Object(r.pushScopeId)("data-v-7281cdff"),e=e(),Object(r.popScopeId)(),e}n("a9e3");var fe=Object(r.defineComponent)({components:(fe={Switch:te.a},Object(ee.a)(fe,ne.a.Component.name,ne.a.Component),Object(ee.a)(fe,"Loading",ie.a),fe),props:{modeType:{type:Number,default:1}},setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:re.y,type:1,checkMode:function(e){n.type=e}});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),me=(fe=(n("7aa4"),oe()(fe,[["render",function(e,t,n,i,a,s){return Object(r.openBlock)(),Object(r.createElementBlock)("div",ue,[Object(r.createElementVNode)("div",le,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor","active/screen_cast.svg"),alt:""},null,8,ce),de]),Object(r.createElementVNode)("div",he,[Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["btn",1==e.type?"btn-active":""]),onClick:t[0]||(t[0]=function(t){return e.checkMode(1)})}," 有线投屏 ",2),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["btn",2==e.type?"btn-active":""]),onClick:t[1]||(t[1]=function(t){return e.checkMode(2)})}," 无线投屏 ",2),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["btn",3==e.type?"btn-active":""]),onClick:t[2]||(t[2]=function(t){return e.checkMode(3)})}," Team Room ",2)])])}],["__scopeId","data-v-402c8977"]])),{class:"top"}),ge=["src"],ve={class:"top-right"},ye={class:"bottom"},_e={class:"volumn-info"},be=pe((function(){return Object(r.createElementVNode)("div",{class:"left"},[Object(r.createElementVNode)("div",{class:"text"},"音量"),Object(r.createElementVNode)("div",{class:"status"},"已关闭")],-1)})),Te={key:0,class:"temp"},Se={key:0,class:"temp-box",id:"slidervolumnId"},Ee={class:"bar"},ke={class:"text text-left active-text"},we=[pe((function(){return Object(r.createElementVNode)("div",{class:"hand-box",id:"handvolumnId"},[Object(r.createElementVNode)("div",{class:"line"})],-1)}))],Ce=(ne=Object(r.defineComponent)({components:(Ce={Switch:te.a},Object(ee.a)(Ce,ne.a.Component.name,ne.a.Component),Object(ee.a)(Ce,"Loading",ie.a),Ce),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:re.y,isOpen:!1,volumnData:{minTempSet:0,maxTempSet:100,volumnTemp:30},part:1,realTemp:30,isWhite:!1,barWidth:30,getvolumnStatus:function(){n.isOpen&&Object(r.nextTick)((function(){n.endBoxSwiper(),n.setBarNowPerstion()})),t.emit("getStatus",n.isOpen)},getEleWidth:function(e){return e?e.getBoundingClientRect().width:1},setBarNowPerstion:function(){n.realTemp=n.volumnData.volumnTemp;var e,t=document.querySelector("#barvolumnId");t&&(e=document.querySelector("#slidervolumnId"),n.getEleWidth(e),n.volumnData.volumnTemp>=n.volumnData.minTempSet&&n.volumnData.volumnTemp<=n.volumnData.maxTempSet?(e=(n.volumnData.volumnTemp-n.volumnData.minTempSet)/n.part,t&&(t.style.width=e+"px")):!n.volumnData.volumnTemp||n.volumnData.volumnTempn.volumnData.maxTempSet&&(e=t.offsetWidth,n.barWidth=e))},endBoxSwiper:function(){var e=document.querySelector("#slidervolumnId"),t=document.querySelector("#handvolumnId"),i=document.querySelector("#barvolumnId"),r=!1,a=n.getEleWidth(e),s=n.getEleWidth(i),o=(n.volumnData.maxTempSet-n.volumnData.minTempSet)/(a-30);n.part=o,t&&(t.addEventListener("touchstart",(function(e){var t=i&&i.style&&i.style.width||0;s=isNaN(parseInt(t))?0:parseInt(t),r=!0})),t.addEventListener("touchend",(function(e){r=!1,n.volumnData.volumnTemp=n.realTemp})),Object(ae.a)(t,{swipeLeft:function(e){var t;r&&(e=Math.abs(e.mation.moveX-e.mation.startX),e=parseInt(e),e=s-e,e=parseInt(e),n.isWhite=a<=(e=e<30?30:e),n.barWidth=e,(t=(t=n.volumnData.minTempSet+e*o)>n.volumnData.maxTempSet?n.volumnData.maxTempSet:t)&&(n.realTemp=Object(re.a)(t.toFixed(1))),e<=30&&(n.realTemp=0))},swipeRight:function(e){r&&(e=Math.abs(e.mation.moveX-e.mation.startX),e=parseInt(e),e=s+e,e=parseInt(e),n.isWhite=a<=(e=an.volumnData.maxTempSet?n.volumnData.maxTempSet:e)&&(n.realTemp=Object(re.a)(e.toFixed(1))))}}))}});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),n("ee67"),n("170d"),oe()(ne,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["volumn-box",e.isOpen?"active":""])},[Object(r.createElementVNode)("div",me,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/volumn.png":"volumn.svg"),alt:""},null,8,ge),Object(r.createElementVNode)("div",ve,[Object(r.createVNode)(o,{onChange:e.getvolumnStatus,class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.3)",modelValue:e.isOpen,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.isOpen=t})},null,8,["onChange","modelValue"])])]),Object(r.createElementVNode)("div",ye,[Object(r.createElementVNode)("div",_e,[be,e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",Te,Object(r.toDisplayString)(e.volumnData.volumnTemp),1)):Object(r.createCommentVNode)("",!0)]),e.isOpen?(Object(r.openBlock)(),Object(r.createElementBlock)("div",Se,[Object(r.createElementVNode)("div",Ee,[Object(r.createElementVNode)("div",ke,Object(r.toDisplayString)(e.volumnData.minTempSet),1),Object(r.createElementVNode)("div",{class:"active-bar",style:Object(r.normalizeStyle)({width:e.barWidth+"px"}),id:"barvolumnId"},we,4),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["text text-right",e.isWhite?"active-text":""])},Object(r.toDisplayString)(e.volumnData.maxTempSet),3)])])):Object(r.createCommentVNode)("",!0)])],2)}],["__scopeId","data-v-7281cdff"]])),Oe={class:"top"},xe=["src"],Ie={class:"top-right"},Ae={class:"bottom"},Pe=function(e){return Object(r.pushScopeId)("data-v-abd87e50"),e=e(),Object(r.popScopeId)(),e}((function(){return Object(r.createElementVNode)("div",{class:"text"},"光照",-1)})),De={class:"status"},Le=["src"];n("b000");ne=n("2241");var Ne=(n("e17f"),n("ac1e"),n("e7e5"),Object(r.defineComponent)({components:(Ne={Switch:te.b},Object(ee.a)(Ne,ne.a.Component.name,ne.a.Component),Object(ee.a)(Ne,"Loading",ie.b),Ne),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:re.y,isOpen:!1,searchMore:function(){t.emit("showMore")}});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}})),Re=(Ne=(n("171a"),n("be73"),oe()(Ne,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["volumn-box",e.isOpen?"active":""])},[Object(r.createElementVNode)("div",Oe,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/lamp.svg":"lamp.svg"),alt:""},null,8,xe),Object(r.createElementVNode)("div",Ie,[Object(r.createVNode)(o,{class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.3)",modelValue:e.isOpen,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.isOpen=t})},null,8,["modelValue"])])]),Object(r.createElementVNode)("div",Ae,[Pe,Object(r.createElementVNode)("div",De,Object(r.toDisplayString)(e.isOpen?"已开启":"已关闭"),1),Object(r.createElementVNode)("div",{class:"right",onClick:t[1]||(t[1]=function(){return e.searchMore&&e.searchMore.apply(e,arguments)})},[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/filter.svg":"filter.svg"),alt:""},null,8,Le)])])],2)}],["__scopeId","data-v-abd87e50"]])),{class:"top"}),Me=["src"],je={class:"top-right"},Ue={class:"bottom"},Be=function(e){return Object(r.pushScopeId)("data-v-738fc8e4"),e=e(),Object(r.popScopeId)(),e}((function(){return Object(r.createElementVNode)("div",{class:"text"},"窗帘",-1)})),Fe={class:"status"};function Ve(e){return Object(r.pushScopeId)("data-v-1867ee54"),e=e(),Object(r.popScopeId)(),e}var qe=Object(r.defineComponent)({components:(qe={Switch:te.b},Object(ee.a)(qe,ne.a.Component.name,ne.a.Component),Object(ee.a)(qe,"Loading",ie.b),qe),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:re.y,isOpen:!1});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),He=(qe=(n("9e6f"),n("4878"),oe()(qe,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["volumn-box",e.isOpen?"active":""])},[Object(r.createElementVNode)("div",Re,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",e.isOpen?"active/curtain.svg":"curtain.svg"),alt:""},null,8,Me),Object(r.createElementVNode)("div",je,[Object(r.createVNode)(o,{class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.3)",modelValue:e.isOpen,"onUpdate:modelValue":t[0]||(t[0]=function(t){return e.isOpen=t})},null,8,["modelValue"])])]),Object(r.createElementVNode)("div",Ue,[Be,Object(r.createElementVNode)("div",Fe,Object(r.toDisplayString)(e.isOpen?"已开启":"已关闭"),1)])],2)}],["__scopeId","data-v-738fc8e4"]])),{class:"more-box"}),We={class:"light-more-top"},Ge={class:"left"},ze={class:"light-box"},Xe=["src"],Ke=Ve((function(){return Object(r.createElementVNode)("div",{class:"light-name"},"光照",-1)})),Ye=Ve((function(){return Object(r.createElementVNode)("div",{class:"right"},[Object(r.createElementVNode)("div",{class:"control"},"全开"),Object(r.createElementVNode)("div",{class:"control"},"全关")],-1)})),Qe={class:"light-bottom"},$e={class:"name"};ne=Object(r.defineComponent)({components:(te={Switch:te.b},Object(ee.a)(te,ne.a.Component.name,ne.a.Component),Object(ee.a)(te,"Loading",ie.b),te),setup:function(e,t){var n=Object(r.reactive)({parseImgUrl:re.y,isOpen:!1,childLights:[{name:"主灯",isOpen:!1},{name:"氛围灯",isOpen:!1},{name:"吸顶灯",isOpen:!1},{name:"吊灯",isOpen:!1},{name:"壁灯",isOpen:!1}]});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){})),Object(A.a)({},Object(r.toRefs)(n))}}),n("0e29"),n("fc3c"),ee=oe()(ne,[["render",function(e,t,n,i,a,s){var o=Object(r.resolveComponent)("Switch");return Object(r.openBlock)(),Object(r.createElementBlock)("div",He,[Object(r.createElementVNode)("div",We,[Object(r.createElementVNode)("div",Ge,[Object(r.createElementVNode)("div",ze,[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor","active/lamp.svg"),alt:""},null,8,Xe)]),Ke]),Ye]),Object(r.createElementVNode)("div",Qe,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(e.childLights,(function(e,t){return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["item-box",e.isOpen?"light-box-active ":""])},[Object(r.createElementVNode)("div",$e,Object(r.toDisplayString)(e.name),1),Object(r.createVNode)(o,{class:"switch-btn","inactive-color":"rgba(0, 0, 0, 0.08)",modelValue:e.isOpen,"onUpdate:modelValue":function(t){return e.isOpen=t}},null,8,["modelValue","onUpdate:modelValue"])],2)})),256))])])}],["__scopeId","data-v-1867ee54"]]),ie=n("b95f"),te=Object(r.defineComponent)({components:{Screen:fe,Volumn:Ce,Lamp:Ne,Air:se,Curtain:qe,LightMore:ee,videoPlay:ie.videoPlay},setup:function(){var e=Object(r.reactive)({parseImgUrl:re.y,type:"zh",lanageArr:[{type:"zh",text:"中"},{type:"en",text:"EN"}],checkLanage:function(t){e.type=t.type},boxLine:n("76d1"),roomData:[{id:"room1",name:"ROOM EOS",modeBg:"linear-gradient(113.73deg, rgba(47, 36, 28, 0.4) 17.26%, rgba(47, 36, 28, 0.8) 55.71%)",bg:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room1.png",video:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video1.mov"},{id:"room2",name:"ROOM METIS",modeBg:"linear-gradient(113.73deg, rgba(37, 21, 8, 0.4) 17.26%, rgba(37, 21, 8, 0.8) 55.71%)",bg:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room2.png",video:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video2.mp4"},{id:"room3",name:"ROOM NAIAD",modeBg:"linear-gradient(113.73deg, rgba(8, 14, 37, 0.4) 17.26%, rgba(10, 15, 33, 0.9) 55.71%)",bg:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room3.png",video:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video3.mov"},{id:"room4",name:"ROOM HELIOS",modeBg:"linear-gradient(113.73deg, rgba(32, 5, 5, 0.4) 17.26%, rgba(28, 7, 7, 0.8) 55.71%)",bg:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room4.png",video:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video4.mp4"},{id:"room5",name:"ROOM GAIA",modeBg:"linear-gradient(113.73deg, rgba(21, 32, 26, 0.5) 17.26%, rgba(14, 30, 21, 0.8) 55.71%)",bg:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room5.png",video:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video5.mp4"},{id:"room6",name:"ROOM AURA",modeBg:"linear-gradient(113.73deg, rgba(4, 18, 32, 0.5) 17.26%, rgba(6, 18, 32, 0.8) 55.71%)",bg:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room6.png",video:"https://terra-h5.tenants.link/static/WeChat/page-taiguv1/page-pad/pad_room_video6.mov"}],roomInfo:"",modeType:1,checkModel:function(t){e.modeType=t},airStatus:!1,getStatus:function(t){e.airStatus=t},isLightColorFlag:!1,lightData:[],showMore:function(t){e.isLightColorFlag=!0}});return Object(r.onBeforeUnmount)((function(){})),Object(r.onMounted)((function(){var t=Object(P.c)().query.id;e.roomInfo=e.roomData[0],e.roomData.map((function(n){n.id==t&&(e.roomInfo=n)})),e.roomInfo.logo=n("0d86"),e.roomInfo.location="3F"})),Object(A.a)({},Object(r.toRefs)(e))}}),n("840c"),n("55c8"),t.default=oe()(te,[["render",function(e,t,n,i,I,A){var P=Object(r.resolveComponent)("Screen"),D=Object(r.resolveComponent)("Volumn"),L=Object(r.resolveComponent)("Lamp"),N=Object(r.resolveComponent)("Air"),R=Object(r.resolveComponent)("Curtain"),M=Object(r.resolveComponent)("LightMore"),j=Object(r.resolveComponent)("van-popup");return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:"main",style:Object(r.normalizeStyle)({"background-image":"url("+e.roomInfo.bg+")"})},[Object(r.createElementVNode)("video",{class:"video-image",autoplay:!0,muted:!0,loop:!0,preload:!0,controls:!1,poster:e.roomInfo.bg,src:e.roomInfo.video},null,8,a),s,Object(r.createElementVNode)("div",o,[Object(r.createElementVNode)("div",u,[Object(r.createElementVNode)("img",{class:"logo",src:e.roomInfo.logo},null,8,l),Object(r.createElementVNode)("div",c,Object(r.toDisplayString)(e.roomInfo.name),1),Object(r.createElementVNode)("div",d,Object(r.toDisplayString)(e.roomInfo.location),1)]),Object(r.createElementVNode)("div",h,[(Object(r.openBlock)(!0),Object(r.createElementBlock)(r.Fragment,null,Object(r.renderList)(e.lanageArr,(function(t){return Object(r.openBlock)(),Object(r.createElementBlock)("div",{class:Object(r.normalizeClass)(["language-item",e.type==t.type?"l-active":""]),onClick:function(n){return e.checkLanage(t)}},Object(r.toDisplayString)(t.text),11,p)})),256))]),Object(r.createElementVNode)("div",f,[Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["item",1==e.modeType?"active":""]),onClick:t[0]||(t[0]=function(t){return e.checkModel(1)})},[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",1==e.modeType?"active/meeting.svg":"meeting.svg"),alt:""},null,8,m),g],2),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["item",2==e.modeType?"active":""]),onClick:t[1]||(t[1]=function(t){return e.checkModel(2)})},[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",2==e.modeType?"active/projector.svg":"projector.svg"),alt:""},null,8,v),y],2),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["item",3==e.modeType?"active":""]),onClick:t[2]||(t[2]=function(t){return e.checkModel(3)})},[Object(r.createElementVNode)("img",{src:e.parseImgUrl("taiguv1/envmonitor",3==e.modeType?"active/stop.svg":"stop.svg"),alt:""},null,8,_),b],2)]),Object(r.createElementVNode)("div",T,[Object(r.createElementVNode)("img",{class:"box-line",src:e.boxLine},null,8,S),E])]),Object(r.createElementVNode)("div",{class:Object(r.normalizeClass)(["fotter",e.airStatus?"small":"fotter"])},[Object(r.createElementVNode)("div",k,[Object(r.createVNode)(P,{modeType:e.modeType},null,8,["modeType"])]),Object(r.createElementVNode)("div",w,[Object(r.createVNode)(D)]),Object(r.createElementVNode)("div",C,[Object(r.createVNode)(L,{onShowMore:e.showMore},null,8,["onShowMore"])]),Object(r.createElementVNode)("div",O,[Object(r.createVNode)(N,{onGetStatus:e.getStatus},null,8,["onGetStatus"])]),Object(r.createElementVNode)("div",x,[Object(r.createVNode)(R)])],2),Object(r.createVNode)(j,{show:e.isLightColorFlag,"onUpdate:show":t[3]||(t[3]=function(t){return e.isLightColorFlag=t}),position:"right","close-on-click-overlay":!0,class:"taigu-popup",teleport:"#app"},{default:Object(r.withCtx)((function(){return[Object(r.createElementVNode)("div",null,[Object(r.createVNode)(M)])]})),_:1},8,["show"])],4)}],["__scopeId","data-v-01801e19"]])},c2f6:function(e,t,n){},c5f7:function(e,t,n){n("c975"),n("d3b7"),n("25f0"),e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},d02c:function(e,t,n){n=n("ef34");var i=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return r.prototype=e,new r};function r(){}function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}return e=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/),e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59]*>?)?/);return e=e[1]||e[2],t=t.substr(e.length),e}());)"<"===n[0]?"/"===n[1]?g.length&&g[g.length-1]===n.substr(2).replace(">","")&&(g.pop(),m=m.parentNode):(r=s(n.substr(1,n.length-2)))?(i=e.document.createProcessingInstruction("timestamp",r),m.appendChild(i)):(r=n.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(a=r[1],o=r[3],u=void 0,u=c[a],(i=u?(u=e.document.createElement(u),(a=h[a])&&o&&(u[a]=o.trim()),u):null)&&(a=m,p[(o=i).localName]&&p[o.localName]!==a.localName||(r[2]&&((u=r[2].split(".")).forEach((function(e){var t=/^bg_/.test(e);e=t?e.slice(3):e;d.hasOwnProperty(e)&&(e=d[e],i.style[t?"background-color":"color"]=e)})),i.className=u.join(" ")),g.push(r[1]),m.appendChild(i),m=i))):m.appendChild(e.document.createTextNode((o=n,l.innerHTML=o,o=l.textContent,l.textContent="",o)));return f}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function g(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;0<=n;n--)e.push(t.childNodes[n])}for(i(t,e);n=function e(t){if(!t||!t.length)return null;var n,r=t.pop(),a=r.textContent||r.innerText;return a?(n=a.match(/^.*(\n|\r)/))?n[t.length=0]:a:"ruby"===r.tagName?e(t):r.childNodes?(i(t,r),e(t)):void 0}(t);)for(var r=0;r=n[0]&&e<=n[1])return 1}}(n.charCodeAt(r)))return"rtl";return"ltr"}function v(){}function y(e,t,n){v.call(this),this.cue=t,this.cueDiv=f(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"},r=(this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:g(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv),0);switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function _(e){var t,n,i,r;e.div&&(t=e.div.offsetHeight,n=e.div.offsetWidth,i=e.div.offsetTop,r=(r=e.div.childNodes)&&(r=r[0])&&r.getClientRects&&r.getClientRects(),e=e.div.getBoundingClientRect(),r=r?Math.max(r[0]&&r[0].height||0,e.height/r.length):0),this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||t,this.bottom=e.bottom||i+(e.height||t),this.width=e.width||n,this.lineHeight=void 0!==r?r:e.lineHeight}function b(e,t,n,i){var r,a=new _(t),s=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;rd&&(c=c<0?-1:1,c*=Math.ceil(d/l)*l),o<0&&(c+=""===s.vertical?n.height:n.width,u=u.reverse()),a.move(h,c)}else{var p=a.lineHeight/n.height*100;switch(s.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}u=["+y","-x","+x","-y"],a=new _(t)}d=function(e,t){for(var r,a=new _(e),s=1,o=0;oe.left&&this.tope.top},_.prototype.overlapsAny=function(e){for(var t=0;t=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},_.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.lefte.right;case"+y":return this.tope.bottom}},_.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},_.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},_.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},T.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},T.convertCueToDOMTree=function(e,t){return e&&t?f(e,t):null},T.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t=t.length&&n.call(t,(function(t,n){return t===(a[n]?a[n]&e[r+n]:e[r+n])}))}},df33:function(e,t){function n(e){if(!e||"object"!=typeof e||(t=e.which||e.keyCode||e.charCode)&&(e=t),"number"==typeof e)return o[e];var t=String(e);e=i[t.toLowerCase()];return e||((e=r[t.toLowerCase()])?e:1===t.length?t.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){if(e=e.which||e.keyCode||e.charCode,null==e)return!1;if("string"==typeof t){var n=i[t.toLowerCase()];if(n)return n===e;if(n=r[t.toLowerCase()])return n===e}else if("number"==typeof t)return t===e;return!1}}; /*! * Programatically add the following */ for(var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91},a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var s,o=t.names=t.title={};for(a in i)o[i[a]]=a;for(s in r)i[s]=r[s]},e003:function(e,t,n){var i=n("89a7").NAMESPACE,r=(n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]")),a=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$"),s=0,o=1,u=2,l=3,c=4,d=5,h=6,p=7;function f(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,f)}function m(){}function g(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function v(e,t,n){for(var r=e.tagName,a=null,s=e.length;s--;){var o=e[s],u=o.qName,l=o.value;u=0<(d=u.indexOf(":"))?(c=o.prefix=u.slice(0,d),h=u.slice(d+1),"xmlns"===c&&h):(c=null,"xmlns"===(h=u)&&"");o.localName=h,!1!==u&&(null==a&&(a={},y(n,n={})),n[u]=a[u]=l,o.uri=i.XMLNS,t.startPrefixMapping(u,l))}var c;for(s=e.length;s--;)(c=(o=e[s]).prefix)&&("xml"===c&&(o.uri=i.XML),"xmlns"!==c&&(o.uri=n[c||""]));var d,h=0<(d=r.indexOf(":"))?(c=e.prefix=r.slice(0,d),e.localName=r.slice(d+1)):(c=null,e.localName=r),p=e.uri=n[c||""];if(t.startElement(p,h,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,1;if(t.endElement(p,h,r),a)for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&t.endPrefixMapping(c)}function y(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function _(){this.attributeNames={}}(f.prototype=new Error).name=f.name,m.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),y(t,t={}),function(e,t,n,r,a){function m(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?65535<(t=parseInt(t.substr(1).replace("x","0x")))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t):(a.error("entity not found:"+e),e)}function y(t){var n;O",A+3),D=e.substring(A+2,P).replace(/[ \t\n\r]+$/g,""),L=w.pop(),N=(P<0?(D=e.substring(A+2).replace(/[\s<].*/,""),a.error("end tag name: "+D+" is not complete:"+L.tagName),P=A+1+D.length):D.match(/\s",t);return i&&(e=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/))?(e[0].length,n.processingInstruction(e[1],e[2]),i+2):-1}(e,A,r);break;case"!":k&&b(A),P=function(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(a=e.indexOf("--\x3e",t+4),t",t+9),n.startCDATA(),n.characters(e,t+9,a-t-9),n.endCDATA(),a+3;i=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i}(e,t);var r,a=i.length;return 1":switch(y){case s:n.setTagName(e.slice(t,v));case d:case h:case p:break;case c:case o:"/"===(b=e.slice(t,v)).slice(-1)&&(n.closed=!0,b=b.slice(0,-1));case u:y===u&&(b=g),y==c?(f.warning('attribute "'+b+'" missed quot(")!'),m(g,b,t)):(i.isHTML(r[""])&&b.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+b+'" missed value!! "'+b+'" instead!!'),m(b,b,t));break;case l:throw new Error("attribute value missed!!")}return v;case"€":_=" ";default:if(_<=" ")switch(y){case s:n.setTagName(e.slice(t,v)),y=h;break;case o:g=e.slice(t,v),y=u;break;case c:var b=e.slice(t,v);f.warning('attribute "'+b+'" missed quot(")!!'),m(g,b,t);case d:y=h}else switch(y){case u:n.tagName,i.isHTML(r[""])&&g.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=v,y=o;break;case d:f.warning('attribute space is required"'+g+'"!!');case h:y=o,t=v;break;case l:y=c,t=v;break;case p:throw new Error("elements closed character '/' and '>' must be connected to")}}v++}}(e,A,j,U,m,a),j.length);if(!j.closed&&function(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf(""))",t);e=e.substring(t+1,a);if(/[&<]/.test(e))return/^script$/i.test(n)||(e=e.replace(/&#?\w+;/g,i)),r.characters(e,0,e.length),a}return t+1}(e,P,j.tagName,m,r):P++}}catch(t){if(t instanceof f)throw t;a.error("element parse error: "+t),P=-1}O"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function w(e,t){if(t(e))return 1;if(e=e.firstChild)do{if(w(e,t))return 1}while(e=e.nextSibling)}function C(){this.ownerDocument=this}function O(e,t,n){e&&e._inc++,n.namespaceURI===r.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function x(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,a=0;r;)r=(i[a++]=r).nextSibling;i.length=a,delete i[i.length]}}}function I(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,x(e.ownerDocument,e),t}function A(e){return e&&e.nodeType===E.DOCUMENT_TYPE_NODE}function P(e){return e&&e.nodeType===E.ELEMENT_NODE}function D(e){return e&&e.nodeType===E.TEXT_NODE}function L(e,t){var n;e=e.childNodes||[];if(!i(e,P)&&!A(t))return n=i(e,A),!(t&&n&&e.indexOf(n)>e.indexOf(t))}function N(e,t){var n;e=e.childNodes||[];if(!i(e,(function(e){return P(e)&&e!==t})))return n=i(e,A),!(t&&n&&e.indexOf(n)>e.indexOf(t))}function R(e,t,n){if(!(i=e)||i.nodeType!==E.DOCUMENT_NODE&&i.nodeType!==E.DOCUMENT_FRAGMENT_NODE&&i.nodeType!==E.ELEMENT_NODE)throw new f(h,"Unexpected parent node type "+e.nodeType);var i;if(n&&n.parentNode!==e)throw new f(p,"child not in parent");if(!(i=t)||!(P(i)||D(i)||A(i)||i.nodeType===E.DOCUMENT_FRAGMENT_NODE||i.nodeType===E.COMMENT_NODE||i.nodeType===E.PROCESSING_INSTRUCTION_NODE)||A(t)&&e.nodeType!==E.DOCUMENT_NODE)throw new f(h,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function M(e,t,n){var r=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===E.DOCUMENT_FRAGMENT_NODE){var s=a.filter(P);if(1"),n&&/^script$/i.test(l))for(;u;)u.data?t.push(u.data):te(u,t,n,i,a.slice()),u=u.nextSibling;else for(;u;)te(u,t,n,i,a.slice()),u=u.nextSibling;t.push("")}else t.push("/>");return;case 9:case 11:for(u=e.firstChild;u;)te(u,t,n,i,a.slice()),u=u.nextSibling;return;case 2:return ee(t,e.name,e.value);case 3:return t.push(e.data.replace(/[<&>]/g,k));case 4:return t.push("");case 8:return t.push("\x3c!--",e.data,"--\x3e");case 10:var _=e.publicId,b=e.systemId;return t.push("")):b&&"."!=b?t.push(" SYSTEM ",b,">"):((_=e.internalSubset)&&t.push(" [",_,"]"),t.push(">")));case 7:return t.push("");case 5:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ne(e,t,n){e[t]=n}c.NOT_SUPPORTED_ERR=(d[9]="Not supported",9),c.INUSE_ATTRIBUTE_ERR=(d[10]="Attribute in use",10),c.INVALID_STATE_ERR=(d[11]="Invalid state",11),c.SYNTAX_ERR=(d[12]="Syntax error",12),c.INVALID_MODIFICATION_ERR=(d[13]="Invalid modification",13),c.NAMESPACE_ERR=(d[14]="Invalid namespace",14),c.INVALID_ACCESS_ERR=(d[15]="Invalid access",15),f.prototype=Error.prototype,u(c,f),m.prototype={length:0,item:function(e){return 0<=e&&e=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(var a=0;an.length;l--)t.el_.removeChild(r[l-1]);r.length=n.length}))},t}(xt),xt.registerComponent("LoadProgressBar",X),re=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i,r=Ie(this.el_),a=xe(this.player_.el());t=e.width*t;a&&r&&(i=e.left-a.left+t,t=e.width-t+(a.right-e.right),i<(a=r.width/2)?a+=a-i:tr.width&&(a=r.width),a=Math.round(a),this.el_.style.right="-"+a+"px",this.write(n))},n.write=function(e){me(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var a,s,o=r.player_.duration();s=r.player_.liveTracker&&r.player_.liveTracker.isLive()?((s=(a=r.player_.liveTracker.liveWindow())-t*a)<1?"":"-")+Nn(s,a):Nn(n,o),r.update(e,t,s),i&&i()}))},t}(xt),xt.registerComponent("TimeTooltip",re),Yt=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n,i=this.getChild("timeTooltip");i&&(n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),i.updateTime(e,t,n))},t}(xt),Yt.prototype.options_={children:[]},se||K||Yt.prototype.options_.children.push("timeTooltip"),xt.registerComponent("PlayProgressBar",Yt),X=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,(function(){n.el_.style.left=e.width*t+"px"}))},t}(xt),X.prototype.options_={children:["timeTooltip"]},xt.registerComponent("MouseTimeDisplay",X),re=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.setEventHandlers_(),t}c()(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=mt(this,this.update),this.update=at(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s.a&&"visibilityState"in s.a&&this.on(s.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===s.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n,i=this;if("hidden"!==s.a.visibilityState)return n=e.prototype.update.call(this),this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),t=i.player_.liveTracker,r=i.player_.duration();t&&t.isLive()&&(r=i.player_.liveTracker.liveCurrentTime()),i.percent_!==n&&(i.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),i.percent_=n),i.currentTime_===e&&i.duration_===r||(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[Nn(e,r),Nn(r,r)],"{1} of {2}")),i.currentTime_=e,i.duration_=r),i.bar&&i.bar.update(xe(i.el()),i.getProgress())})),n},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Me(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Me(e)){if(t||this.player_.scrubbing()||this.player_.scrubbing(!0),t=this.calculateDistance(e),e=this.player_.liveTracker,e&&e.isLive()){if(.99<=t)return void e.seekToLiveEdge();var n,i=e.seekableStart(),r=e.liveCurrentTime();if((n=(n=r<=(n=i+t*e.liveWindow())?r:n)<=i?i+.1:n)===1/0)return}else(n=t*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Mt(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n,i=this.player_.liveTracker;u.a.isEventKey(t,"Space")||u.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.handleAction(t)):u.a.isEventKey(t,"Home")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(0)):u.a.isEventKey(t,"End")?(t.preventDefault(),t.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration())):/^[0-9]$/.test(u()(t))?(t.preventDefault(),t.stopPropagation(),n=10*(u.a.codes[u()(t)]-u.a.codes[0])/100,i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)):u.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):u.a.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s.a&&"visibilityState"in s.a&&this.off(s.a,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(ln),re.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},se||K||re.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),xt.registerComponent("SeekBar",re),Yt=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.handleMouseMove=at(mt(l()(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=at(mt(l()(i),i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t,n,i,r,a=this.getChild("seekBar");a&&(t=a.getChild("playProgressBar"),n=a.getChild("mouseTimeDisplay"),(t||n)&&(i=Ie(r=a.el()),r=Ae(r,e).x,r=Rn(r,0,1),n&&n.update(i,r),t&&t.update(i,a.getProgress())))},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){var e;this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing()&&(e=this.getChild("seekBar"),this.player_.scrubbing(!1),e.videoWasPlaying&&Mt(this.player_.play())))},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(xt),Yt.prototype.options_={children:["seekBar"]},xt.registerComponent("ProgressControl",Yt),X=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return i.handlePictureInPictureChange(e)})),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return i.handlePictureInPictureEnabledChange(e)})),i.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),i.hide()):i.show()})),i.disable(),i}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){s.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Dn),X.prototype.controlText_="Picture-in-Picture",xt.registerComponent("PictureInPictureToggle",X),re=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on(t,"fullscreenchange",(function(e){return i.handleFullscreenChange(e)})),!1===s.a[t.fsApi_.fullscreenEnabled]&&i.disable(),i}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Dn),re.prototype.controlText_="Fullscreen",xt.registerComponent("FullscreenToggle",re),xt.registerComponent("VolumeLevel",function(e){function t(){return e.apply(this,arguments)||this}return c()(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(xt)),Yt=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){n=xe(this.el_);var r=xe(this.player_.el());t=e.width*t;if(!r||!n)return;var a=e.left-r.left+t;t=e.width-t+(r.right-e.right),r=n.width/2;an.width&&(r=n.width),this.el_.style.right="-"+r+"px"}this.write(i+"%")},n.write=function(e){me(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){a.update(e,t,n,i.toFixed(0)),r&&r()}))},t}(xt),xt.registerComponent("VolumeLevelTooltip",Yt),X=function(e){function t(t,n){return t=e.call(this,t,n)||this,t.update=at(mt(l()(t),t.update),30),t}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,(function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"}))},t}(xt),X.prototype.options_={children:["volumeLevelTooltip"]},xt.registerComponent("MouseVolumeLevelDisplay",X),re=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on("slideractive",(function(e){return i.updateLastVolume_(e)})),i.on(t,"volumechange",(function(e){return i.updateARIAAttributes(e)})),t.ready((function(){return i.updateARIAAttributes()})),i}c()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Me(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t,n,i,r=this.getChild("mouseVolumeLevelDisplay");r&&(t=xe(i=this.el()),n=this.vertical(),i=Ae(i,e),i=n?i.y:i.x,i=Rn(i,0,1),r.update(t,i,n)),Me(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(ln),re.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},se||K||re.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),re.prototype.playerEvent="volumechange",xt.registerComponent("VolumeBar",re),Yt=function(e){function t(t,n){var i,r,a;return(n=void 0===n?{}:n).vertical=n.vertical||!1,void 0!==n.volumeBar&&!q(n.volumeBar)||(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,r=l()(i),(a=t).tech_&&!a.tech_.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(a,"loadstart",(function(){a.tech_.featuresVolumeControl?r.removeClass("vjs-hidden"):r.addClass("vjs-hidden")})),i.throttledHandleMouseMove=at(mt(l()(i),i.handleMouseMove),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i.on("touchstart",(function(e){return i.handleMouseDown(e)})),i.on("mousemove",(function(e){return i.handleMouseMove(e)})),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}c()(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(xt),Yt.prototype.options_={children:["volumeBar"]},xt.registerComponent("VolumeControl",Yt),X=function(e){function t(t,n){var i,r,a=e.call(this,t,n)||this;return i=l()(a),(r=t).tech_&&!r.tech_.featuresMuteControl&&i.addClass("vjs-hidden"),i.on(r,"loadstart",(function(){r.tech_.featuresMuteControl?i.removeClass("vjs-hidden"):i.addClass("vjs-hidden")})),a.on(t,["loadstart","volumechange"],(function(e){return a.update(e)})),a}c()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();0===t?(this.player_.volume(n<.1?.1:n),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;se&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)_e(this.el_,"vjs-vol-"+n);ye(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Dn),X.prototype.controlText_="Mute",xt.registerComponent("MuteToggle",X),ln=function(e){function t(t,n){var i;return void 0!==(n=void 0===n?{}:n).inline?n.inline=n.inline:n.inline=!0,void 0!==n.volumeControl&&!q(n.volumeControl)||(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],(function(e){return i.volumePanelState_(e)})),i.on(i.muteToggle,"keyup",(function(e){return i.handleKeyPress(e)})),i.on(i.volumeControl,"keyup",(function(e){return i.handleVolumeControlKeyUp(e)})),i.on("keydown",(function(e){return i.handleKeyPress(e)})),i.on("mouseover",(function(e){return i.handleMouseOver(e)})),i.on("mouseout",(function(e){return i.handleMouseOut(e)})),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}c()(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){u.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),et(s.a,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),tt(s.a,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){u.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(xt);var jn=(ln.prototype.options_={children:["muteToggle","volumeControl"]},xt.registerComponent("VolumePanel",ln),function(e){function t(t,n){var i=e.call(this,t,n)||this;return n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",(function(e){return i.handleKeyDown(e)})),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}c()(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof xt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof xt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){e=this.addChild(e),e&&this.addEventListenerForItem(e)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=fe(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu"),t=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),et(t,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),t},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||s.a.activeElement;this.children().some((function(e){return e.el()===t}))||(e=this.menuButton_)&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()},n.handleTapClick=function(e){var t;this.menuButton_&&(this.menuButton_.unpressButton(),t=this.children(),Array.isArray(t)&&(t=t.filter((function(t){return t.el()===e.target}))[0])&&"CaptionSettingsMenuItem"!==t.name()&&this.menuButton_.focus())},n.handleKeyDown=function(e){u.a.isEventKey(e,"Left")||u.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(u.a.isEventKey(e,"Right")||u.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),0=t.length&&(e=t.length-1),t[this.focusedChild_=e].el_.focus())},t}(xt)),Un=(re=(xt.registerComponent("Menu",jn),function(e){function t(t,n){function i(e){return r.handleClick(e)}(r=e.call(this,t,n=void 0===n?{}:n)||this).menuButton_=new Dn(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var r;t=Dn.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+t,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.handleMenuKeyUp_=function(e){return r.handleMenuKeyUp(e)},r.on(r.menuButton_,"tap",i),r.on(r.menuButton_,"click",i),r.on(r.menuButton_,"keydown",(function(e){return r.handleKeyDown(e)})),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),et(s.a,"keyup",r.handleMenuKeyUp_)})),r.on("mouseleave",(function(e){return r.handleMouseLeave(e)})),r.on("keydown",(function(e){return r.handleSubmenuKeyDown(e)})),r}c()(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var e,t=new jn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title&&(e=fe("li",{className:"vjs-menu-title",textContent:kt(this.options_.title),tabIndex:-1}),e=new xt(this.player_,{el:e}),t.addItem(e)),this.items=this.createItems(),this.items)for(var n=0;n select",id:"captions-background-color-%s",label:"Color",options:[G,Kn,Xn,X,Yt,Yn,re,ln]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Qn,$n,Jn]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Kn,G,Xn,X,Yt,Yn,re,ln]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Qn,$n]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Jn,$n,Qn]}};function ei(e,t){if((e=t?t(e):e)&&"none"!==e)return e}function ti(e){var t,n,i,r=e.el();r.resetSourceWatch_||(t={},n=gi(e),i=function(t){return function(){for(var n=arguments.length,i=new Array(n),a=0;a',this.localize(e.label),"",'").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['
','',this.localize("Text"),"",this.createElSelect_("color",e),'',this.createElSelect_("textOpacity",e),"","
"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['
','',this.localize("Background"),"",this.createElSelect_("backgroundColor",e),'',this.createElSelect_("backgroundOpacity",e),"","
"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['
','',this.localize("Window"),"",this.createElSelect_("windowColor",e),'',this.createElSelect_("windowOpacity",e),"","
"].join("")},n.createElColors_=function(){return fe("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return fe("div",{className:"vjs-track-settings-font",innerHTML:['
',this.createElSelect_("fontPercent","","legend"),"
",'
',this.createElSelect_("edgeStyle","","legend"),"
",'
',this.createElSelect_("fontFamily","","legend"),"
"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return fe("div",{className:"vjs-track-settings-controls",innerHTML:['",'"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,i=this;return t=function(e,t,n){r=i.$(t.selector),t=t.parser;var r=ei(r.options[r.options.selectedIndex].value,t);return void 0!==r&&(e[n]=r),e},void 0===(n={})&&(n=0),R(e=Zn).reduce((function(n,i){return t(n,e[i],i)}),n)},n.setValues=function(e){var t=this;B(Zn,(function(n,i){var r=t.$(n.selector),a=e[i],s=n.parser;if(a)for(var o=0;othis.options_.liveTolerance,(e=!(!this.timeupdateSeen_||t===1/0)&&e)!==this.behindLiveEdge_&&(this.behindLiveEdge_=e,this.trigger("liveedgechange")))},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&2 "+e.end(n));return t.join(", ")}function Ri(e){for(var t=[],n=0;nDate.now()}function Gi(e){return e.excludeUntil&&e.excludeUntil===1/0}function zi(e){var t=Wi(e);return!e.disabled&&!t}function Xi(e,t){return t.attributes&&t.attributes[e]}function Ki(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!zi(e)&&(e.attributes.BANDWIDTH||0)i+a.duration*pa)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(n,t)))return e({message:"valid programTime was not found"});if("estimate"===t.type)return e({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:t.estimatedStart});var i={mediaSeconds:n};return(n=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds;e-=t.videoTimingInfo.transmuxedPresentationStart+n;return new Date(t.dateTimeObject.getTime()+1e3*e)}(n,t.segment))&&(i.programDateTime=n.toISOString()),e(null,i)}function pr(e){var t,n=e.programTime,i=e.playlist,r=e.retryCount,a=void 0===r?2:r,s=e.seekTo,o=void 0===(r=e.pauseAfterSeek)||r,u=e.tech,l=e.callback;if(l)return void 0!==n&&i&&s?i.endList||u.hasStarted_?function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;tn||e.height>i}))).filter((function(e){return e.width===h[0].width&&e.height===h[0].height})),c=r[r.length-1],p=r.filter((function(e){return e.bandwidth===c.bandwidth}))[0]),s.experimentalLeastPixelDiffSelector&&(r=m.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e})),Ha(r,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),f=r[0]),f||p||l||d||u[0]||e[0]);return s&&s.playlist?(m="sortedPlaylistReps",f?m="leastPixelDiffRep":p?m="resolutionPlusOneRep":l?m="resolutionBestRep":d?m="bandwidthBestRep":u[0]&&(m="enabledPlaylistReps"),Va("choosing "+qa(s)+" using "+m+" with options",o),s.playlist):(Va("could not choose a playlist with options",o),null)}}function Rr(){var e=this.useDevicePixelRatio&&a.a.devicePixelRatio||1;return Nr(this.playlists.master,this.systemBandwidth,parseInt(Dr(this.tech_.el(),"width"),10)*e,parseInt(Dr(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}function Mr(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var s=a.a.WebKitDataCue||a.a.VTTCue,o=t.metadataTrack_;if(o&&(n.forEach((function(e){var t=e.cueTime+i;!("number"!=typeof t||a.a.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n,i=new s(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,n=i,Object.defineProperties(n.frame,{id:{get:function(){return Ai.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),n.value.key}},value:{get:function(){return Ai.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),n.value.data}},privateData:{get:function(){return Ai.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),n.value.data}}}),o.addCue(i)}))})),o.cues&&o.cues.length)){for(var u=o.cues,l=[],c=0;c=e&&r.endTime<=t&&n.removeCue(r)}function Ur(e){return"number"==typeof e&&isFinite(e)}function Br(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=(o=e.playlist).mediaSequence,s=o.id,o=o.segments,u=e.mediaIndex,l=e.partIndex,c=e.timeline,d=(o=(void 0===o?[]:o).length-1,"mediaIndex/partIndex increment"),h=(e.getMediaInfoForTime?d="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(d="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(d+=" with independent "+e.independent),"number"==typeof l),p=(e=e.segment.uri?"segment":"pre-segment",h?Vi({preloadSegment:i})-1:0);return e+" ["+(a+u)+"/"+(a+o)+"]"+(h?" part ["+l+"/"+p+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(h?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+c+"] selected by ["+d+"] playlist ["+s+"]"}function Fr(e){return e+"TimingInfo"}function Vr(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType;e=e.audioDisabled;return n!==i&&("audio"===r?!(n=t.lastTimelineChange({type:"main"}))||n.to!==i:!("main"!==r||!e)&&(!(n=t.pendingTimelineChange({type:"audio"}))||n.to!==i))}function qr(e){var t=e.segmentDuration;e=e.maxDuration;return!!t&&Math.round(t)>e+zr}function Hr(e,t){if("hls"!==t)return null;var n,i;if(n={audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo},i=0,["video","audio"].forEach((function(e){var t,r;e=n[e+"TimingInfo"];e&&(t=e.start,e=e.end,"bigint"==typeof t||"bigint"==typeof e?r=a.a.BigInt(e)-a.a.BigInt(t):"number"==typeof t&&"number"==typeof e&&(r=e-t),void 0!==r&&i"):function(){}},zr=1/30,Xr=3*zr,Kr=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n=l+u?r(t,{response:o.subarray(u,u+l),status:n.status,uri:n.uri}):void(s.request=s.vhs_.xhr({uri:i,responseType:"arraybuffer",headers:ar({byterange:e.sidx.byterange})},r))):r({status:n.status,message:"Unsupported "+(a||"unknown")+" container type for sidx segment at URL: "+i,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var u,l}))):this.mediaRequest_=a.a.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},a.a.clearTimeout(this.minimumUpdatePeriodTimeout_),a.a.clearTimeout(this.mediaRequest_),a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){var e;this.request&&(e=this.request,this.request=null,e.onreadystatechange=null,e.abort())},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(i){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState;e=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[e.id]=e,this.mediaRequest_=null,this.refreshMedia_(e.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(a.a.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this,n=(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.media());if(e)return e=n?n.targetDuration/2*1e3:5e3,void(this.mediaUpdateTimeout=a.a.setTimeout((function(){return t.load()}),e));this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=a.a.setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,i){var r;if(!t.requestErrored_(n,i))return r=i.responseText!==t.masterPlaylistLoader_.masterXml_,t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=Pi(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(i,r)}))):e(i,r);"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=Object(b.d)(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Wr(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();i="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=i-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e,t,n,i=this.masterPlaylistLoader_.master,r=(e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:i},t=e.masterXml,n=e.srcUrl,r=e.clientOffset,a=e.sidxMapping,e=e.previousManifest,t=Object(b.c)(t,{manifestUri:n,clientOffset:r,sidxMapping:a,previousManifest:e}),Ji(t,n,vr),t),a=(i&&(r=yr(i,r,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=r||i,this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0]);return a&&a!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=a),(!i||r&&r.minimumUpdatePeriod!==i.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(r)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_,t=(e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(a.a.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null),e.master&&e.master.minimumUpdatePeriod);0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=a.a.setTimeout((function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){var i,r;n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(n=e.masterPlaylistLoader_.master,i=e.masterPlaylistLoader_.sidxMapping_,r=_r(n.playlists,i),aa(n,(function(e,t,n,a){e.playlists&&e.playlists.length&&(e=e.playlists,r=ma(r,_r(e,i)))})),r),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];i?this.media_=n[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=a.a.setTimeout((function(){t.trigger("mediaupdatetimeout"),e()}),nr(t.media(),Boolean(i))))}(),this.trigger("loadedplaylist")},t}(Ai.EventTarget),ya={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},_a=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;nGe;)e+=n*We;return e}function J(e){var t,n;J.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=$(e.dts,n),e.pts=$(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){t=n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}}n=function(e){for(var t,n=[],i=0,r=1;r>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},m=function(e){return n(S.hdlr,C[e])},f=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(S.mdhd,t)},p=function(e){return n(S.mdia,f(e),m(e.type),o(e))},s=function(e){return n(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},o=function(e){return n(S.minf,"video"===e.type?n(S.vmhd,O):n(S.smhd,x),i(),v(e))},l=function(e){for(var t=e.length,i=[];t--;)i[t]=b(e[t]);return n.apply(null,[S.mvex].concat(i))},c=function(e){return e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]),n(S.mvhd,e)},g=function(e){for(var t,i=e.samples||[],r=new Uint8Array(4+i.length),a=0;a>>8),s.push(255&r[u].byteLength),s=s.concat(Array.prototype.slice.call(r[u]));for(u=0;u>>8),o.push(255&a[u].byteLength),o=o.concat(Array.prototype.slice.call(a[u]));return t=[S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(S.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],s,[a.length],o))),n(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio&&(i=e.sarRatio[0],e=e.sarRatio[1],t.push(n(S.pasp,new Uint8Array([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])))),n.apply(null,t)},R=function(e){return n(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},h=function(e){return e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]),n(S.tkhd,e)},_=function(e){var t,i=n(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),r=Math.floor(e.baseMediaDecodeTime/q),a=Math.floor(e.baseMediaDecodeTime%q);r=n(S.tfdt,new Uint8Array([1,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,a>>>24&255,a>>>16&255,a>>>8&255,255&a]));return"audio"===e.type?(t=T(e,92),n(S.traf,i,r,t)):(a=g(e),t=T(e,a.length+92),n(S.traf,i,r,t,a))},d=function(e){return e.duration=e.duration||4294967295,n(S.trak,h(e),p(e))},b=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(S.trex,t)},M=function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},j=function(e,t){var i,r,a,s,o=e.samples||[];for(t+=20+16*o.length,e=M(o,t),(r=new Uint8Array(e.length+16*o.length)).set(e),i=e.length,s=0;s>>24,r[i++]=(16711680&a.duration)>>>16,r[i++]=(65280&a.duration)>>>8,r[i++]=255&a.duration,r[i++]=(4278190080&a.size)>>>24,r[i++]=(16711680&a.size)>>>16,r[i++]=(65280&a.size)>>>8,r[i++]=255&a.size,r[i++]=a.flags.isLeading<<2|a.flags.dependsOn,r[i++]=a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,r[i++]=61440&a.flags.degradationPriority,r[i++]=15&a.flags.degradationPriority,r[i++]=(4278190080&a.compositionTimeOffset)>>>24,r[i++]=(16711680&a.compositionTimeOffset)>>>16,r[i++]=(65280&a.compositionTimeOffset)>>>8,r[i++]=255&a.compositionTimeOffset;return n(S.trun,r)},U=function(e,t){var i,r,a,s,o=e.samples||[];for(t+=20+8*o.length,e=M(o,t),(i=new Uint8Array(e.length+8*o.length)).set(e),r=e.length,s=0;s>>24,i[r++]=(16711680&a.duration)>>>16,i[r++]=(65280&a.duration)>>>8,i[r++]=255&a.duration,i[r++]=(4278190080&a.size)>>>24,i[r++]=(16711680&a.size)>>>16,i[r++]=(65280&a.size)>>>8,i[r++]=255&a.size;return n(S.trun,i)},T=function(e,t){return("audio"===e.type?U:j)(e,t)},a=function(){return n(S.ftyp,E,k,E,w)};var Z,ee=function(e){return n(S.mdat,e)},te=function(e,t){for(var i=[],r=t.length;r--;)i[r]=_(t[r]);return n.apply(null,[S.moof,s(e)].concat(i))},ne=(u=function(e){for(var t=e.length,i=[];t--;)i[t]=d(e[t]);return n.apply(null,[S.moov,c(4294967295)].concat(i).concat(l(e)))},function(e){var t=a(),n=(e=u(e),new Uint8Array(t.byteLength+e.byteLength));return n.set(t),n.set(e,t.byteLength),n}),ie=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},re=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,t=i.byteLength=0;t=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},we=function(e){for(var t,n=[],i=0;i=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),0this.virtualRowCount;)this.rows.shift(),this.rowIdx--},X.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},X.prototype.addText=function(e){this.rows[this.rowIdx]+=e},X.prototype.backspace=function(){var e;this.isEmpty()||(e=this.rows[this.rowIdx],this.rows[this.rowIdx]=e.substr(0,e.length-1))},K.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new X(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},K.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},K.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}},function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},a={};Object.keys(r).forEach((function(e){n=r[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)})),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){(3===e.type||null===i.current708Packet)&&i.new708Packet(),i.add708Bytes(e)}}),Ue=(je.prototype=new B,je.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},je.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8;t&=255;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(t)},je.prototype.push708Packet=function(){var e,t=this.current708Packet,n=t.data,i=null,r=0,a=n[r++];for(t.seq=a>>6,t.sizeCode=63&a;r>5)&&0>5,t.rowLock=(16&i)>>4,t.columnLock=(8&i)>>3,t.priority=7&i,i=n[++e],t.relativePositioning=(128&i)>>7,t.anchorVertical=127&i,i=n[++e],t.anchorHorizontal=i,i=n[++e],t.anchorPoint=(240&i)>>4,t.rowCount=15&i,i=n[++e],t.columnCount=63&i,i=n[++e],t.windowStyle=(56&i)>>3,t.penStyle=7&i,t.virtualRowCount=t.rowCount+1,e},je.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=(t=(n[e],t.currentWindow.winAttr),n[++e]);return t.fillOpacity=(192&i)>>6,t.fillRed=(48&i)>>4,t.fillGreen=(12&i)>>2,t.fillBlue=3&i,i=n[++e],t.borderType=(192&i)>>6,t.borderRed=(48&i)>>4,t.borderGreen=(12&i)>>2,t.borderBlue=3&i,i=n[++e],t.borderType+=(128&i)>>5,t.wordWrap=(64&i)>>6,t.printDirection=(48&i)>>4,t.scrollDirection=(12&i)>>2,t.justify=3&i,i=n[++e],t.effectSpeed=(240&i)>>4,t.effectDirection=(12&i)>>2,t.displayEffect=3&i,e},je.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},je.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},je.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<>4,t.offset=(12&i)>>2,t.penSize=3&i,i=n[++e],t.italics=(128&i)>>7,t.underline=(64&i)>>6,t.edgeType=(56&i)>>3,t.fontStyle=7&i,e},je.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=(t=(n[e],t.currentWindow.penColor),n[++e]);return t.fgOpacity=(192&i)>>6,t.fgRed=(48&i)>>4,t.fgGreen=(12&i)>>2,t.fgBlue=3&i,i=n[++e],t.bgOpacity=(192&i)>>6,t.bgRed=(48&i)>>4,t.bgGreen=(12&i)>>2,t.bgBlue=3&i,i=n[++e],t.edgeRed=(48&i)>>4,t.edgeGreen=(12&i)>>2,t.edgeBlue=3&i,e},je.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=(n[e],t.currentWindow.penLoc);return t.currentWindow.pendingNewLine=!0,t=n[++e],i.row=15&t,t=n[++e],i.column=63&t,e},je.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)},{42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496}),Be=14,Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ve=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a=32639&e.ccData;a===this.lastControlCode_?this.lastControlCode_=null:(4096==(61440&a)?this.lastControlCode_=a:a!==this.PADDING_&&(this.lastControlCode_=null),t=a>>>8,n=255&a,a!==this.PADDING_&&(a===this.RESUME_CAPTION_LOADING_?this.mode_="popOn":a===this.END_OF_CAPTION_?(this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),r=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=r,this.startPts_=e.pts):a===this.ROLL_UP_2_ROWS_?(this.rollUpRows_=2,this.setRollUp(e.pts)):a===this.ROLL_UP_3_ROWS_?(this.rollUpRows_=3,this.setRollUp(e.pts)):a===this.ROLL_UP_4_ROWS_?(this.rollUpRows_=4,this.setRollUp(e.pts)):a===this.CARRIAGE_RETURN_?(this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts):a===this.BACKSPACE_?"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1):a===this.ERASE_DISPLAYED_MEMORY_?(this.flushDisplayed(e.pts),this.displayed_=Q()):a===this.ERASE_NON_DISPLAYED_MEMORY_?this.nonDisplayed_=Q():a===this.RESUME_DIRECT_CAPTIONING_?("paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Q()),this.mode_="paintOn",this.startPts_=e.pts):this.isSpecialCharacter(t,n)?(i=Y((t=(3&t)<<8)|n),this[this.mode_](e.pts,i),this.column_++):this.isExtCharacter(t,n)?("popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),i=Y((t=(3&t)<<8)|n),this[this.mode_](e.pts,i),this.column_++):this.isMidRowCode(t,n)?(this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&n)&&this.addFormatting(e.pts,["i"]),1==(1&n)&&this.addFormatting(e.pts,["u"])):this.isOffsetControlCode(t,n)?this.column_+=3&n:this.isPAC(t,n)?(r=Fe.indexOf(7968&a),"rollUp"===this.mode_&&(r-this.rollUpRows_+1<0&&(r=this.rollUpRows_-1),this.setRollUp(e.pts,r)),r!==this.row_&&(this.clearFormatting(e.pts),this.row_=r),1&n&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&a)&&(this.column_=4*((14&a)>>1)),this.isColorPAC(n)&&14==(14&n)&&this.addFormatting(e.pts,["i"])):this.isNormalChar(t)&&(0===n&&(n=null),i=Y(t),i+=Y(n),this[this.mode_](e.pts,i),this.column_+=i.length)))}},qe=(Ve.prototype=new B,Ve.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Ve.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Q(),this.nonDisplayed_=Q(),this.lastControlCode_=null,this.column_=0,this.row_=Be,this.rollUpRows_=2,this.formatting_=[]},Ve.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ve.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&48<=t&&t<=63},Ve.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&32<=t&&t<=63},Ve.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&32<=t&&t<=47},Ve.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&33<=t&&t<=35},Ve.prototype.isPAC=function(e,t){return e>=this.BASE_&&e"}),""),this[this.mode_](e,t)},Ve.prototype.clearFormatting=function(e){var t;this.formatting_.length&&(t=this.formatting_.reverse().reduce((function(e,t){return e+""}),""),this.formatting_=[],this[this.mode_](e,t))},Ve.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];this.nonDisplayed_[this.row_]=n+=t},Ve.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=t},Ve.prototype.shiftRowsUp_=function(){for(var e=0;e>>2,l=(l*=4)+(3&u[7]),c.timeStamp=l,void 0===t.pts&&void 0===t.dts&&(t.pts=c.timeStamp,t.dts=c.timeStamp),this.trigger("timestamp",c))),t.frames.push(c),(n=n+10+s)>>4&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=He.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=He.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new B,Ye.STREAM_TYPES={h264:27,adts:15},(Qe=function(){function e(e,t,i){var r,a=new Uint8Array(e.size),s={type:t},u=0,l=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,u=0;u>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))};Qe.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var t,n;switch(o.streamType){case He.H264_STREAM_TYPE:t=r,n="video";break;case He.ADTS_STREAM_TYPE:t=a,n="audio";break;case He.METADATA_STREAM_TYPE:t=s,n="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&e(t,n,!0),t.data.push(o),t.size+=o.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]};null!==(t=o.programMapTable).video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),i=!0,n.trigger("data",e)}})[o.type]()},this.reset=function(){r.size=0,r.data.length=0,a.size=0,a.data.length=0,this.trigger("reset")},this.flushStreams_=function(){e(r,"video"),e(a,"audio"),e(s,"timed-metadata")},this.flush=function(){var e;!i&&t&&(e={type:"metadata",tracks:[]},null!==t.video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),n.trigger("data",e)),i=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new B,{PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:it,TransportParseStream:Ye,ElementaryStream:Qe,TimestampRolloverStream:Je,CaptionStream:qe.CaptionStream,Cea608Stream:qe.Cea608Stream,Cea708Stream:qe.Cea708Stream,MetadataStream:nt});for($e in He)He.hasOwnProperty($e)&&(rt[$e]=He[$e]);var at,st,ot=rt,ut=ve,lt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],ct=function(e){var t,n=0;ct.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,a,s,o,u,l,c=0;if(e||(n=0),"audio"===i.type){for(t&&t.length?(s=t,(t=new Uint8Array(s.byteLength+i.data.byteLength)).set(s),t.set(i.data,s.byteLength)):t=i.data;c+7>5,u=(o=1024*(1+(3&t[c+6])))*ut/lt[(60&t[c+2])>>>2],t.byteLength-c>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:lt[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+a,c+r)}),n++,c+=r}"number"==typeof l&&(this.skipWarn_(l,c),l=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},dt=(ct.prototype=new B,ct),ht=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw new Error("no bytes available");a.set(e.subarray(r,r+s)),n=new DataView(a.buffer).getUint32(0),i=8*s,t-=s},this.skipBits=function(e){var r;e>>32-r;return 0<(i-=r)?n<<=r:0>>e))return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},pt=function(){var e,t,n=0;pt.prototype.init.call(this),this.push=function(i){for(var r,a=(t=t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),r):i.data).byteLength;n>4?n+20:n+10},kt=function(e,t,n){for(var i="",r=t;r=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:Et,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5>>2];t++}return null},parseAacTimestamp:function(e){var t,n=10;64&e[5]&&(n=(n+=4)+mt(e.subarray(10,14)));do{if((t=mt(e.subarray(n+4,n+8)))<1)return null;if("PRIV"===String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]))for(var i,r,a=e.subarray(n+10,n+t+10),s=0;s>>2,(r*=4)+(3&i[7]);break}}while((n=n+10+t)e.length)break;i={type:"timed-metadata",data:e.subarray(s,s+a)},this.trigger("data",i),s+=a}else if(255==(255&e[s])&&240==(240&e[s+1])){if(e.length-s<7)break;if(s+(a=wt.parseAdtsSize(e,s))>e.length)break;i={type:"audio",data:e.subarray(s,s+a),pts:t,dts:t},this.trigger("data",i),s+=a}else s++;r=e.length-s,e=0>>4&&(t+=e[4]+1),t}function Ut(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}Nt.prototype=new B,(_t=function(e,t){var n,i,r=[],a=[],s=(t=t||{}).firstSequenceNumber||0;_t.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Ae(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],It.forEach((function(t){e[t]=n[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.data,e.pps=[t.data]),r.push(t)},this.flush=function(){for(var n,i,o,u=0;r.length&&"access_unit_delimiter_rbsp"!==r[0].nalUnitType;)r.shift();if(0===r.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=re(r),(n=ae(n))[0][0].keyFrame||((l=this.getGopForFusion_(r[0],e))?(u=l.duration,n.unshift(l),n.byteLength+=l.byteLength,n.nalCount+=l.nalCount,n.pts=l.pts,n.dts=l.dts,n.duration+=l.duration):n=se(n)),a.length){var l=t.alignGopsAtEnd?this.alignGopsAtEnd_(n):this.alignGopsAtStart_(n);if(!l)return this.gopCache_.unshift({gop:n.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),r=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");xe(e),n=l}Ae(e,n),e.samples=oe(n),l=ee(ue(n)),e.baseMediaDecodeTime=Ie(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",n.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),i=n[0],o=n[n.length-1],this.trigger("segmentTimingInfo",yt(e.baseMediaDecodeTime,i.dts,i.pts,o.dts+o.duration,o.pts+o.duration,u)),this.trigger("timingInfo",{start:n[0].pts,end:n[n.length-1].pts+n[n.length-1].duration}),this.gopCache_.unshift({gop:n.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),r=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),i=te(s,[e]),o=new Uint8Array(i.byteLength+l.byteLength),s++,o.set(i),o.set(l,i.byteLength),this.trigger("data",{track:e,boxes:o}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),r=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){xe(e),i=n=void 0},this.getGopForFusion_=function(t){for(var n,i,r,a=1/0,s=0;sn.pts?l++:(t++,s-=i.byteLength,o-=i.nalCount,u-=i.duration);return 0===t?e:t===e.length?null:((r=e.slice(t)).byteLength=s,r.duration=u,r.nalCount=o,r.pts=r[0].pts,r.dts=r[0].dts,r)},this.alignGopsAtEnd_=function(e){for(var t,n,i=a.length-1,r=e.length-1,s=null,o=!1;0<=i&&0<=r;){if(t=a[i],n=e[r],t.pts===n.pts){o=!0;break}t.pts>n.pts?i--:(i===a.length-1&&(s=r),r--)}if(!o&&null===s)return null;if(0===(u=o?r:s))return e;var u=e.slice(u),l=u.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=l.byteLength,u.duration=l.duration,u.nalCount=l.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){a=e}}).prototype=new B,((Tt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Tt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new B).flush=function(e){var t,n,i,r=0,a={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,It.forEach((function(e){a.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,xt.forEach((function(e){a.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,e=ne(this.pendingTracks),a.initSegment=new Uint8Array(e.byteLength),a.initSegment.set(e),a.data=new Uint8Array(this.pendingBytes),i=0;i=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Tt.prototype.setRemux=function(e){this.remuxTracks=e},(bt=function(e){var t,n,i=this,r=!0;bt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};(this.transmuxPipeline_=r).type="aac",r.metadataStream=new ot.MetadataStream,r.aacStream=new Ot,r.audioTimestampRolloverStream=new ot.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ot.TimestampRolloverStream("timed-metadata"),r.adtsStream=new dt,r.coalesceStream=new Tt(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Nt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),gt(this,r)},this.setupTsPipeline=function(){var r={};(this.transmuxPipeline_=r).type="ts",r.metadataStream=new ot.MetadataStream,r.packetStream=new ot.TransportPacketStream,r.parseStream=new ot.TransportParseStream,r.elementaryStream=new ot.ElementaryStream,r.timestampRolloverStream=new ot.TimestampRolloverStream,r.adtsStream=new dt,r.h264Stream=new At,r.captionStream=new ot.CaptionStream(e),r.coalesceStream=new Tt(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?n||"audio"!==a.tracks[s].type||((n=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new _t(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Nt(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),gt(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,xe(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,xe(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){var t;r&&((t=Pt(e))&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1),this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new B;var Bt=bt,Ft=(nt=function(e){return e>>>0},Je=function(e){return("00"+e.toString(16)).slice(-2)},function(e){var t="";return(t+=String.fromCharCode(e[0]))+String.fromCharCode(e[1])+String.fromCharCode(e[2])+String.fromCharCode(e[3])}),Vt=nt,qt=function e(t,n){var i,r,a,s=[];if(!n.length)return null;for(i=0;i>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Xt=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],s=1&n.flags[1],o=2&n.flags[1],u=4&n.flags[1],l=8&n.flags[1],c=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),a&&c&&(t={flags:zt(e.subarray(d,d+4))},d+=4,s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),u&&(t.flags=zt(e.subarray(d,d+4)),d+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},Kt=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=(e={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4)},1&e.flags[2]),i=2&e.flags[2],r=8&e.flags[2],a=16&e.flags[2],s=32&e.flags[2],o=65536&e.flags[0],u=131072&e.flags[0],l=8;return n&&(l+=4,e.baseDataOffset=t.getUint32(12),l+=4),i&&(e.sampleDescriptionIndex=t.getUint32(l),l+=4),r&&(e.defaultSampleDuration=t.getUint32(l),l+=4),a&&(e.defaultSampleSize=t.getUint32(l),l+=4),s&&(e.defaultSampleFlags=t.getUint32(l)),o&&(e.durationIsEmpty=!0),!n&&u&&(e.baseDataOffsetIsMoof=!0),e},Yt=(B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},B="undefined"!=typeof window?window:void 0!==B?B:"undefined"!=typeof self?self:{},B),Qt=Ne,$t=qe.CaptionStream,Jt=function(e,t){var n=qt(e,["moof","traf"]),i=(e=qt(e,["mdat"]),{}),r=[];return e.forEach((function(e,t){t=n[t],r.push({mdat:e,traf:t})})),r.forEach((function(e){var n,r,a,s,o,u=e.mdat,l=(e=e.traf,qt(e,["tfhd"])),c=(l=Kt(l[0]),l.trackId),d=qt(e,["tfdt"]);d=0>>2&63).replace(/^0/,"")):i.codec="mp4a.40.2"):i.codec=i.codec.toLowerCase())),r=qt(e,["mdia","mdhd"])[0];r&&(i.timescale=rn(r)),t.push(i)})),t},on=Ze,un={},ln=(un.ts={parseType:function(e,t){return e=Rt(e),0===e?"pat":e===t?"pmt":t?"pes":null},parsePat:function(e){var t=Mt(e),n=4+jt(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=Mt(e),i=4+jt(e);if(n&&(i+=e[i]+1),1&e[i+5]){for(var r=3+((15&e[i+1])<<8|e[i+2])-4,a=12+((15&e[i+10])<<8|e[i+11]);a=e.byteLength)return null;var n=null,i=e[t+7];return 192&i&&((n={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+jt(e),n=e.subarray(t),i=0,r=0,a=!1;re.length){n=!0;break}null===a&&(t=e.subarray(o,o+s),a=un.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){n=!0;break}if((s=un.aac.parseAdtsSize(e,o))>e.length){n=!0;break}null===r&&(t=e.subarray(o,o+s),r=un.aac.parseSampleRate(t)),i++,o+=s;break;default:o++}if(n)return null}if(null===r||null===a)return null;var u=ln/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*u,pts:a+1024*i*u}]}}:function(e){var t,n={pid:null,table:null},i={};for(t in cn(e,n),n.table)if(n.table.hasOwnProperty(t))switch(n.table[t]){case He.H264_STREAM_TYPE:i.video=[],hn(e,n,i),0===i.video.length&&delete i.video;break;case He.ADTS_STREAM_TYPE:i.audio=[],dn(e,n,i),0===i.audio.length&&delete i.audio}return i})(e);return e&&(e.audio||e.video)?(t=t,(n=e).audio&&n.audio.length&&(void 0!==(i=t)&&!isNaN(i)||(i=n.audio[0].dts),n.audio.forEach((function(e){e.dts=on(e.dts,i),e.pts=on(e.pts,i),e.dtsTime=e.dts/ln,e.ptsTime=e.pts/ln}))),n.video&&n.video.length&&(void 0!==(r=t)&&!isNaN(r)||(r=n.video[0].dts),n.video.forEach((function(e){e.dts=on(e.dts,r),e.pts=on(e.pts,r),e.dtsTime=e.dts/ln,e.ptsTime=e.pts/ln})),n.firstKeyFrame&&((t=n.firstKeyFrame).dts=on(t.dts,r),t.pts=on(t.pts,r),t.dtsTime=t.dts/ln,t.ptsTime=t.pts/ln)),e):null},fn=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){var e,t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Bt(this.options),e=this.self,(t=this.transmuxer).on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength},n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var n={start:{decode:_e(t.start.dts),presentation:_e(t.start.pts)},end:{decode:_e(t.end.dts),presentation:_e(t.end.pts)},baseMediaDecodeTime:_e(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=_e(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:_e(t.start.dts),presentation:_e(t.start.pts)},end:{decode:_e(t.end.dts),presentation:_e(t.end.pts)},baseMediaDecodeTime:_e(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=_e(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:_e(t.start),end:_e(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:_e(t.start),end:_e(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new Zt,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);e=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:e&&e.captions||[],logs:e&&e.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales;e=e.data,t=an(t,e);this.self.postMessage({action:"probeMp4StartTime",startTime:t,data:e},[e.buffer])},t.probeMp4Tracks=function(e){e=e.data;var t=sn(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])},t.probeTs=function(e){var t=e.data,n=(e=e.baseStartTime,e="number"!=typeof e||isNaN(e)?void 0:e*ve,e=pn(t,e),null);e&&((n={hasVideo:e.video&&2===e.video.length||!1,hasAudio:e.audio&&2===e.audio.length||!1}).hasVideo&&(n.videoStart=e.video[0].ptsTime),n.hasAudio&&(n.audioStart=e.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:n,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){e=new Uint8Array(e.data,e.byteOffset,e.byteLength),this.transmuxer.push(e)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){e=e.timestampOffset||0,this.transmuxer.setBaseMediaDecodeTime(Math.round(ye(e)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(ye(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new fn(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new fn(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})))),Ta=function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,s=i.captions,o=i.captionStreams,u=i.metadata,l=i.videoFrameDtsTime;i=i.videoFramePtsTime,t.buffer.push({captions:s,captionStreams:o,metadata:u}),t=e.data.segment.boxes||{data:e.data.segment.data},s={type:r,data:new Uint8Array(t.data,t.data.byteOffset,t.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==l&&(s.videoFrameDtsTime=l),void 0!==i&&(s.videoFramePtsTime=i),n(s)},Sa=function(e){var t=e.transmuxedData;e=e.callback;t.buffer=[],e(t)},Ea=function(e,t){t.gopInfo=e.data.gopInfo},ka=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():kr(e.currentTransmux))},wa=function(e,t){e.postMessage({action:t}),ka(e)},Ca=function(e){wr("reset",e)},Oa=function(e){var t=new ba,n=(t.currentTransmux=null,t.transmuxQueue=[],t.terminate);return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t},xa={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Ia=function(e){e.forEach((function(e){e.abort()}))},Aa=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},Pa=function(e){var t=e.target;t={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return t.bytesReceived=e.loaded,t.bandwidth=Math.floor(t.bytesReceived/t.roundTripTime*8*1e3),t},Da=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:xa.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:xa.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:xa.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:xa.FAILURE,xhr:t}:null},La=function(e,t){var n,i=Object(k.a)(e.map.bytes);if("mp4"!==i)return n=e.map.resolvedUri||e.map.uri,t({internal:!0,message:"Found unsupported "+(i||"unknown")+" container for initialization segment at URL: "+n,code:xa.FAILURE});Or({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks;n=n.data;return e.map.bytes=n,i.forEach((function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||"number"==typeof(e.map.tracks[t.type]=t).id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale)})),t(null)}})},Na=function(e){var t,n,i,r=e.segment,a=e.bytes,s=e.trackInfoFn,o=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,l=e.audioSegmentTimingInfoFn,c=e.id3Fn,d=e.captionsFn,h=e.isEndOfTimeline,p=e.endedTimelineFn,f=e.dataFn,m=e.doneFn,g=e.onTransmuxerLog,v=new Uint8Array(a);if(Object(k.b)(v))return r.isFmp4=!0,t=r.map.tracks,n={isFmp4:!0,hasVideo:!!t.video,hasAudio:!!t.audio},t.audio&&t.audio.codec&&"enca"!==t.audio.codec&&(n.audioCodec=t.audio.codec),t.video&&t.video.codec&&"encv"!==t.video.codec&&(n.videoCodec=t.video.codec),t.video&&t.audio&&(n.isMuxed=!0),s(r,n),i=function(e){f(r,{data:v,type:n.hasAudio&&!n.isMuxed?"audio":"video"}),e&&e.length&&d(r,e),m(null,r,{})},void Or({action:"probeMp4StartTime",timescales:r.map.timescales,data:v,transmuxer:r.transmuxer,callback:function(e){var s=e.data;e=e.startTime;a=s.buffer,r.bytes=v=s,n.hasAudio&&!n.isMuxed&&o(r,"audio","start",e),n.hasVideo&&o(r,"video","start",e),t.video&&s.byteLength&&r.transmuxer?Or({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:r.transmuxer,data:v,timescales:r.map.timescales,trackIds:[t.video.id],callback:function(e){a=e.data.buffer,r.bytes=v=e.data,e.logs.forEach((function(e){g(Ai.mergeOptions(e,{stream:"mp4CaptionParser"}))})),i(e.captions)}}):i()}});if(r.transmuxer){if(void 0===r.container&&(r.container=Object(k.a)(v)),"ts"!==r.container&&"aac"!==r.container)return s(r,{hasAudio:!1,hasVideo:!1}),void m(null,r,{});Ir({segment:r,bytes:a,trackInfoFn:s,timingInfoFn:o,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:l,id3Fn:c,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g})}else m(null,r,{})},Ra=function(e,t){var n=e.id,i=e.key,r=e.encryptedBytes,a=e.decryptionWorker;a.addEventListener("message",(function e(i){i.data.source===n&&(a.removeEventListener("message",e),i=i.data.decrypted,t(new Uint8Array(i.bytes,i.byteOffset,i.byteLength)))})),e=i.bytes.slice?i.bytes.slice():new Uint32Array(Array.prototype.slice.call(i.bytes)),a.postMessage(ur({source:n,encrypted:r,key:e,iv:i.iv}),[r.buffer,e.buffer])},Ma=function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog;Ra({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t},(function(e){n.bytes=e,Na({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}))},ja=Gr("CodecUtils"),Ua=function(e,t){return t=t.attributes||{},e&&e.mediaGroups&&e.mediaGroups.AUDIO&&t.AUDIO&&e.mediaGroups.AUDIO[t.AUDIO]},Ba=function(e){var t={};return e.forEach((function(e){var n=e.mediaType,i=e.type;e=e.details;t[n]=t[n]||[],t[n].push(Object(v.i)(""+i+e))})),Object.keys(t).forEach((function(e){if(1 "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",(function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),i;throw new TypeError("No MediaSource specified")}c()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return Oa({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"!==this.state?this.pendingSegment_&&(this.pendingSegment_=null):(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_())},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,a.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Ca(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Ai.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo;e=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!e)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=lr(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=cr(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes}),t={resolvedUri:(i||e).resolvedUri};return i&&(t.bytes=i.bytes),t},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;t=(this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e)),null);if(n&&(n.id?t=n.id:n.uri&&(t=n.uri)),this.logger_("playlist update ["+t+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var r;t=e.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+t+"]"),null!==this.mediaIndex&&(this.mediaIndex-=t,this.mediaIndex<0?(this.mediaIndex=null,this.partIndex=null):(r=this.playlist_.segments[this.mediaIndex],!this.partIndex||r.parts&&r.parts.length&&r.parts[this.partIndex]||(r=this.mediaIndex,this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=r))),i&&(i.mediaIndex-=t,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(0<=i.mediaIndex&&(i.segment=e.segments[i.mediaIndex]),0<=i.partIndex&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&Ca(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),(t=t===1/0?this.duration_():t)<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r,a=1,s=function(){0===--a&&n()};for(r in!i&&this.audioDisabled_||(a++,this.sourceUpdater_.removeAudio(e,t,s)),!i&&"main"!==this.loaderType_||(this.gopBuffer_=function(e,t,n,i){for(var r=Math.ceil((t-i)*w.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*w.ONE_SECOND_IN_TS),s=(t=e.slice(),e.length);s--&&!(e[s].pts<=a););if(-1===s)return t;for(var o=s+1;o--&&!(e[o].pts<=r););return o=Math.max(o,0),t.splice(o,s-o+1),t}(this.gopBuffer_,e,t,this.timeMapping_),a++,this.sourceUpdater_.removeVideo(e,t,s)),this.inbandTextTracks_)jr(e,t,this.inbandTextTracks_[r]);jr(e,t,this.segmentMetadataTrack_),s()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.a.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){var e;this.sourceUpdater_.updating()||(e=this.chooseNextRequest_())&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"==typeof e&&t.segments[e];e=e+1===t.segments.length,n=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&e&&n},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Mi(e)||0,n=(e=ji(e,this.currentTime_()),!this.hasPlayed_()&&1<=e),i=e>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||n||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());n={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)},n.isSyncRequest?n.mediaIndex=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;a=r.length-1&&e&&!this.seeking_()?null:this.generateSegmentInfo_(n))},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,u=(e=e.getMediaInfoForTime,n.segments[i]),l="number"==typeof s&&u.parts[s];i={requestId:"segment-loader-"+Math.random(),uri:l&&l.resolvedUri||u.resolvedUri,mediaIndex:i,partIndex:l?s:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:l&&l.duration||u.duration,segment:u,part:l,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:e,independent:t},s=void 0!==o?o:this.isPendingTimestampOffset_,i.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:s}),a=Mi(this.sourceUpdater_.audioBuffered());return"number"==typeof a&&(i.audioAppendStart=a-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(i.gopsToAlignWith=function(e,t,n){if(null==t||!e.length)return[];for(var i=Math.ceil((t-n+3)*w.ONE_SECOND_IN_TS),r=0;ri);r++);return e.slice(r)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),i},n.timestampOffsetForSegment_=function(e){return t=e.segmentTimeline,n=e.currentTimeline,i=e.startOfSegment,r=e.buffered,e.overrideCheck||t!==n?t "+y+" for "+e),f=_,t=r.vhs_.tech_,f[s=e]||(t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"}),/^cc708_/.test(o=s)&&(o="SERVICE"+s.split("_")[1]),(u=t.textTracks().getTrackById(o))?f[s]=u:(l=u=s,c=!1,(d=(t.options_.vhs&&t.options_.vhs.captionServices||{})[o])&&(u=d.label,l=d.language,c=d.default),f[s]=t.addRemoteTextTrack({kind:"captions",id:o,default:c,label:u,language:l},!1).track)),jr(v,y,_[e]),p=(d={captionArray:g,inbandTextTracks:_,timestampOffset:n}).inbandTextTracks,f=d.captionArray,m=d.timestampOffset,f&&(h=a.a.WebKitDataCue||a.a.VTTCue,f.forEach((function(e){var t=e.stream;p[t].addCue(new h(e.startTime+m,e.endTime+m,e.text))})))})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})):this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t)))},n.handleId3_=function(e,t,n){var i,r,a,s;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?(i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r=this.inbandTextTracks_,a=n,s=this.vhs_.tech_,r.metadataTrack_||(r.metadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,r.metadataTrack_.inBandMetadataTrackDispatchType=a),Mr({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:this.duration_()})):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n)))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!Vr({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return(e=void 0===e?this.pendingSegment_:e)&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.getPendingSegmentPlaylist=function(){return this.pendingSegment_?this.pendingSegment_.playlist:null},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,i=t.hasVideo;t=t.isMuxed;return!(i&&!e.videoTimingInfo)&&!(n&&!this.audioDisabled_&&!t&&!e.audioTimingInfo)&&!Vr({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())this.callQueue_.push(this.handleData_.bind(this,e,t));else{var n,i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4?(this.trigger("fmp4"),i.timingInfo.start=i[Fr(t.type)].start):(e=this.getCurrentMediaInfo_(),(e="main"===this.loaderType_&&e&&e.hasVideo)&&(n=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:e,firstVideoFrameTimeForData:n,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})),this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){if(this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_}),e=this.chooseNextRequest_(),e.mediaIndex!==i.mediaIndex||e.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map;e=e.playlist;if(i){var r=lr(i);if(this.activeInitSegmentId_===r)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=r}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=e,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,r=e.type,s=(e=e.bytes,this.sourceUpdater_.audioBuffered()),o=this.sourceUpdater_.videoBuffered(),u=(1=i);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(e)}},n.setTimeMapping_=function(e){e=this.syncController_.mappingForTimeline(e),null!==e&&(this.timeMapping_=e)},n.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo;e=e.audioTimingInfo;return void 0!==t?t:s?(t=n.segments[i-1],0!==i&&t&&void 0!==t.start&&t.end===r+a?o.start:r):e.start},n.waitForAppendsToComplete_=function(e){var t,n,i=this.getCurrentMediaInfo_(e);if(i)return n=i.hasAudio,t=i.hasVideo,i=i.isMuxed,t="main"===this.loaderType_&&t,n=!this.audioDisabled_&&n&&!i,e.waitingOnAppends=0,e.hasAppendedData_?(t&&e.waitingOnAppends++,n&&e.waitingOnAppends++,t&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),void(n&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e)))):(e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e));this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),this.trigger("error")},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){n=this.loaderType_,t=this.getCurrentMediaInfo_(),e=e;var t,n="main"===n&&t&&e?e.hasAudio||e.hasVideo?t.hasVideo&&!e.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&e.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null;return!!n&&(this.error({message:n,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){var t;null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_||(t=!1,e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset"))},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo;e=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:e.start:e.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_();t="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;t&&(e.timingInfo.end="number"==typeof t.end?t.end:t.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_,t=(this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_}),Hr(e,this.sourceType_));if(t&&("warn"===t.severity?Ai.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))this.logger_("Throwing away un-appended sync request "+Br(e));else{this.logger_("Appended "+Br(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");t=e.segment;var n=e.part;t=t.end&&this.currentTime_()-t.end>3*e.playlist.targetDuration,n=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(t||n)return this.logger_("bad "+(t?"segment":"part")+" "+Br(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}},n.recordThroughput_=function(e){var t,n;e.duration<1/60?this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60):(t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,e=Math.floor(e.byteLength/n*8*1e3),this.throughput.rate+=(e-t)/++this.throughput.count)},n.addSegmentMetadataCue_=function(e){var t,n,i,r;this.segmentMetadataTrack_&&(t=(r=e.segment).start,n=r.end,Ur(t)&&Ur(n)&&(jr(t,n,this.segmentMetadataTrack_),i=a.a.WebKitDataCue||a.a.VTTCue,r={custom:r.custom,dateTimeObject:r.dateTimeObject,dateTimeString:r.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:t,end:n},(e=new i(t,n,JSON.stringify(r))).value=r,this.segmentMetadataTrack_.addCue(e)))},t}(Ai.EventTarget);function Ga(){}function za(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))}function Xa(e,t){var n=t[e+"Buffer"],i=za(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)}function Ka(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)}function Ya(e){var t=e.type,n=e.sourceUpdater,i=e.action,r=e.doneFn;e=e.name;n.queue.push({type:t,action:i,doneFn:r,name:e}),ls(t,n)}function Qa(e,t){return function(n){var i;t.queuePending[e]&&(i=t.queuePending[e].doneFn,t.queuePending[e]=null,i&&i(t[e+"Error_"])),ls(e,t)}}function $a(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}function Ja(e){function t(){i.AUDIO.onTrackChanged(),a.trigger({type:"usage",name:"vhs-audio-change"}),a.trigger({type:"usage",name:"hls-audio-change"})}["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){Ds[t](t,e)}));var n,i=e.mediaTypes,r=e.masterPlaylistLoader,a=e.tech,s=e.vhs,o=(u=e.segmentLoaders).AUDIO,u=u.main,l=(["AUDIO","SUBTITLES"].forEach((function(t){var n,r,a,s,o,u,l,c,d,h;i[t].activeGroup=(n=t,r=e,function(e){var t=r.masterPlaylistLoader,i=r.mediaTypes[n].groups,a=t.media();if(!a)return null;var s=null,o=(a.attributes[n]&&(s=i[a.attributes[n]]),Object.keys(i));if(!s)if("AUDIO"===n&&1=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===xa.TIMEOUT&&this.handleTimeout_(),e.code===xa.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_,s=(this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending"),r.segment);if(s.map&&(s.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof a.a.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((function(){return i.segmentRequestFinished_(e,t,n)}),(function(){return i.stopForError({message:"Error loading vtt.js"})}));s.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,r.cues.forEach((function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new a.a.VTTCue(e.startTime,e.endTime,e.text):e)}));var o=this.subtitlesTrack_,u=o.cues;if(u)for(var l=0;lu)&&(r=void 0,r=o<0?n.start-qi({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:a}):n.end+qi({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:a}),this.discontinuities[s]={time:r,accuracy:u})}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(Ai.EventTarget),Cs=function(e){function t(){var t=e.call(this)||this;return t.pendingTimelineChanges_={},t.lastTimelineChanges_={},t}c()(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from;e=e.to;return"number"==typeof n&&"number"==typeof e&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:e},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from;e=e.to;return"number"==typeof n&&"number"==typeof e&&(this.lastTimelineChanges_[t]={type:t,from:n,to:e},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Ai.EventTarget),Os=Tr(Sr(Er((function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function n(e,t,n){return e(n={path:t,exports:{},require:function(e,t){throw null==t&&n.path,new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}},n.exports),n.exports}var i=n((function(e){function t(e,t){for(var n=0;n>8|e>>>24}function u(e){var t={};return Object.keys(e).forEach((function(n){var i,r=e[n];i=r,("function"===ArrayBuffer.isView?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r})),t} /*! @name aes-decrypter @version 3.1.3 @license Apache-2.0 */var l=null,c=function(){function e(e){l=l||function(){for(var e,t,n,i,r,a,s,o=[[[],[],[],[],[]],[[],[],[],[],[]]],u=o[0],l=o[1],c=u[4],d=l[4],h=[],p=[],f=0;f<256;f++)p[(h[f]=f<<1^283*(f>>7))^f]=f;for(e=t=0;!c[e];e^=n||1,t=p[t]||1)for(s=16843009*h[i=h[n=h[d[c[e]=r=(r=t^t<<1^t<<2^t<<3^t<<4)>>8^255&r^99]=e]]]^65537*i^257*n^16843008*e,a=257*h[r]^16843008*r,f=0;f<4;f++)u[f][e]=a=a<<24^a>>>8,l[f][r]=s=s<<24^s>>>8;for(f=0;f<5;f++)u[f]=u[f].slice(0),l[f]=l[f].slice(0);return o}(),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var t,n,i,r=this._tables[0][4],a=this._tables[1],s=e.length,o=1;if(4!==s&&6!==s&&8!==s)throw new Error("Invalid aes key size");var u=e.slice(0),c=[];for(this._key=[u,c],t=s;t<4*s+28;t++)i=u[t-1],(t%s==0||8===s&&t%s==4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%s==0&&(i=i<<8^i>>>24^o<<24,o=o<<1^283*(o>>7))),u[t]=u[t-s]^i;for(n=0;t;n++,t--)i=u[3&n?t:t-4],c[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}return e.prototype.decrypt=function(e,t,n,i,r,a){for(var s,o,u,l=this._key[1],c=e^l[0],d=i^l[1],h=n^l[2],p=t^l[3],f=l.length/4-2,m=4,g=(e=this._tables[1],e[0]),v=e[1],y=e[2],_=e[3],b=e[4],T=0;T>>24]^v[d>>16&255]^y[h>>8&255]^_[255&p]^l[m],o=g[d>>>24]^v[h>>16&255]^y[p>>8&255]^_[255&c]^l[m+1],u=g[h>>>24]^v[p>>16&255]^y[c>>8&255]^_[255&d]^l[m+2],p=g[p>>>24]^v[c>>16&255]^y[d>>8&255]^_[255&h]^l[m+3],m+=4,c=s,d=o,h=u;for(T=0;T<4;T++)r[(3&-T)+a]=b[c>>>24]<<24^b[d>>16&255]<<16^b[h>>8&255]<<8^b[255&p]^l[m++],s=c,c=d,d=h,h=p,p=s},e}(),d=function(e){function t(){var t=e.call(this,s)||this;return t.jobs=[],t.delay=1,t.timeout_=null,t}a(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),h=function(){function e(t,n,i,r){var a=e.STEP,s=new Int32Array(t.buffer),u=new Uint8Array(t.byteLength),l=0;for(this.asyncStream_=new d,this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),n,i,u)),l=a;l>2),l=new c(Array.prototype.slice.call(t)),d=(t=new Uint8Array(e.byteLength),new Int32Array(t.buffer)),h=n[0],p=n[1],f=n[2],m=n[3],g=0;g "+r+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=a.a.setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(a.a.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a,s=i.main||r.length&&i[r[0]];for(a in s)if(s[a].default){n={label:a};break}}if(!n)return t;var o,u=[];for(o in i)if(i[o][n.label]){var l=i[o][n.label];if(l.playlists&&l.playlists.length)u.push.apply(u,l.playlists);else if(l.uri)u.push(l);else if(e.playlists.length)for(var c=0;c "+i.id;if(!n)return a(l+" as current playlist is not set"),!0;if(i.id===n.id)return!1;var c=Boolean(Di(t,e).length);return n.endList?(c=ji(t,e),t=u?ya.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:ya.MAX_BUFFER_LOW_WATER_LINE,o= bufferLowWaterLine ("+c+" >= "+r+")",u&&(i+=" and next bandwidth > current bandwidth ("+e+" > "+o+")"),a(i),!0):(a("not "+l+" as no switching criteria met"),!1))):c||"number"!=typeof n.partTargetDuration?(a(l+" as current playlist is live"),!0):(a("not "+l+" as current playlist is live llhls, but currentTime isn't in buffered."),!1)},n.setupSegmentLoaderListeners_=function(){function e(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var e=t.getCodecsOrExclude_();e&&t.sourceUpdater_.addOrChangeSourceBuffers(e)}var t=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){t.checkABR_("bandwidthupdate"),t.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(function(){t.experimentalBufferBasedABR&&t.mainSegmentLoader_.load()})),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",(function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){t.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){t.logger_("main segment loader ended"),t.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(e){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))})),this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){t.logger_("audioSegmentLoader ended"),t.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;(e=void 0===e?this.selectPlaylist():e)===this.masterPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){Ai.browser.IE_VERSION||Ai.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})))},n.play=function(){var e;if(!this.setupFirstPlay())return this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load(),e=this.tech_.seekable(),this.tech_.duration()===1/0&&this.tech_.currentTime()this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=r,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),t=this.selectPlaylist(),!t)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");r=e.internal?this.logger_:Ai.log.warn;var s=e.message?" "+e.message:"";r((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+s+" Switching to playlist "+t.id+"."),t.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),t.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]),r=t.targetDuration/2*1e3||5e3,e="number"==typeof t.lastRequest&&Date.now()-t.lastRequest<=r;return this.switchMedia_(t,"exclude",a||e)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e,a=(!r&&"main"!==e||i.push(this.masterPlaylistLoader_),[]);!r&&"audio"!==e||a.push("AUDIO"),!r&&"subtitle"!==e||(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach((function(e){e=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader,e&&i.push(e)})),["main","audio","subtitle"].forEach((function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)})),i.forEach((function(e){return t.forEach((function(t){"function"==typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(e){var t=Di(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:as.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i,r,a=this.masterPlaylistLoader_.master,s=as.Playlist.seekable(t,n,as.Playlist.liveEdgeDelay(a,t));if(0!==s.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=as.Playlist.seekable(t,n,as.Playlist.liveEdgeDelay(a,t))).length)return}this.seekable_&&this.seekable_.length&&(i=this.seekable_.end(0),r=this.seekable_.start(0)),!e||e.start(0)>s.end(0)||s.start(0)>e.end(0)?this.seekable_=s:this.seekable_=Ai.createTimeRanges([[(e.start(0)>s.start(0)?e:s).start(0),(e.end(0) "'+r[t]+'"')})),l.length)return void this.blacklistCurrentPlaylist({playlist:n,message:"Codec switching not supported: "+l.join(", ")+".",blacklistDuration:1/0,internal:!0})}return r}this.blacklistCurrentPlaylist({playlist:n,message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){var e;"open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()&&(e=this.getCodecsOrExclude_())&&(this.sourceUpdater_.createSourceBuffers(e),e=[e.video,e.audio].filter(Boolean).join(","),this.excludeIncompatibleVariants_(e))},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(i){var r,a;i=t[i];-1===n.indexOf(i.id)&&(n.push(i.id),a=[],!(r=Fa(e.master,i)).audio||Object(v.g)(r.audio)||Object(v.c)(r.audio)||a.push("audio codec "+r.audio),!r.video||Object(v.g)(r.video)||Object(v.c)(r.video)||a.push("video codec "+r.video),r.text&&"stpp.ttml.im1t"===r.text&&a.push("text codec "+r.text),a.length&&(i.excludeUntil=1/0,e.logger_("excluding "+i.id+" for unsupported: "+a.join(", "))))}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=(e=Ba(Object(v.h)(e)),Pr(e)),a=e.video&&Object(v.h)(e.video)[0]||null,s=e.audio&&Object(v.h)(e.audio)[0]||null;Object.keys(i).forEach((function(e){var o,u,l;e=i[e];-1===n.indexOf(e.id)&&e.excludeUntil!==1/0&&(n.push(e.id),o=[],l=Fa(t.masterPlaylistLoader_.master,e),u=Pr(l),(l.audio||l.video)&&(u!==r&&o.push('codec count "'+u+'" !== "'+r+'"'),t.sourceUpdater_.canChangeType()||(u=l.video&&Object(v.h)(l.video)[0]||null,l=l.audio&&Object(v.h)(l.audio)[0]||null,u&&a&&u.type.toLowerCase()!==a.type.toLowerCase()&&o.push('video codec "'+u.type+'" !== "'+a.type+'"'),l&&s&&l.type.toLowerCase()!==s.type.toLowerCase()&&o.push('audio codec "'+l.type+'" !== "'+s.type+'"')),o.length&&(e.excludeUntil=1/0,t.logger_("blacklisting "+e.id+": "+o.join(" && ")))))}))},n.updateAdCues_=function(e){var t=0,n=this.seekable(),i=(n.length&&(t=n.start(0)),e),r=this.cueTagsTrack_;n=t;if(void 0===n&&(n=0),i.segments)for(var s=n,o=0;o=r.adStartTime&&t<=r.adEndTime)return r}return null}(r,s+d.duration/2)){if("cueIn"in d){c.endTime=s,c.adEndTime=s,s+=d.duration,c=null;continue}if(s=t.end(t.length-1))?this.techWaiting_():void(5<=this.consecutiveUpdates&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e))},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),void 0!==(e=this.beforeSeekableWindow_(t,n)?(i=t.start(0))+(i===t.end(0)?0:Xr):e))return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+Ni(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var i=this.masterPlaylistController_.sourceUpdater_,r=(t=this.tech_.buffered(),i.audioBuffer?i.audioBuffered():null),a=(i=i.videoBuffer?i.videoBuffered():null,this.media()),s=a.partTargetDuration||2*(a.targetDuration-zr),o=[r,i],u=0;u "+t.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})))},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t))return e=e.end(e.length-1),this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+e),this.cancelTimer_(),this.tech_.setCurrentTime(e),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0;e=this.tech_.vhs.masterPlaylistController_.sourceUpdater_;var n=this.tech_.buffered();return this.videoUnderflow_({audioBuffered:e.audioBuffered(),videoBuffered:e.videoBuffered(),currentTime:t})?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0):(e=Li(n,t),0>>0,o=e.subarray(a+4,a+8);if(0==s)break;if(s=a+s,s>e.length){if(n)break;s=e.length}var c=e.subarray(a+8,s);Object(u.a)(o,t[0])&&(1===t.length?i.push(c):i.push.apply(i,r(c,t.slice(1),n))),a=s}return i}function a(e,t,n){if(n>=t.length)return t.length;var i=p(t,n,!1);if(Object(u.a)(e.bytes,i.bytes))return n;var r=p(t,n+i.length);return a(e,t,n+r.length+r.value+i.length)}function s(e,t){n=t,t=Array.isArray(n)?n.map((function(e){return f(e)})):[f(n)],e=Object(u.k)(e);var n,i=[];if(!t.length)return i;for(var r=0;re.length?e.length:c+l.value);c=e.subarray(c,d);Object(u.a)(t[0],o.bytes)&&(1===t.length?i.push(c):i=i.concat(s(c,t.slice(1)))),r+=o.length+l.length+c.length}return i}function o(e,t,n,i){void 0===i&&(i=1/0),e=Object(u.k)(e),n=[].concat(n);for(var r,a=0,s=0;a>1&63),-1!==n.indexOf(l)&&(r=a+o),a+=o+("h264"===t?1:2)}else a++}return e.subarray(0,0)}n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return w}));var u=n("de66"),l=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return Array.isArray(e)?e.map(i):[i(e)]}),c={EBML:Object(u.k)([26,69,223,163]),DocType:Object(u.k)([66,130]),Segment:Object(u.k)([24,83,128,103]),SegmentInfo:Object(u.k)([21,73,169,102]),Tracks:Object(u.k)([22,84,174,107]),Track:Object(u.k)([174]),TrackNumber:Object(u.k)([215]),DefaultDuration:Object(u.k)([35,227,131]),TrackEntry:Object(u.k)([174]),TrackType:Object(u.k)([131]),FlagDefault:Object(u.k)([136]),CodecID:Object(u.k)([134]),CodecPrivate:Object(u.k)([99,162]),VideoTrack:Object(u.k)([224]),AudioTrack:Object(u.k)([225]),Cluster:Object(u.k)([31,67,182,117]),Timestamp:Object(u.k)([231]),TimestampScale:Object(u.k)([42,215,177]),BlockGroup:Object(u.k)([160]),BlockDuration:Object(u.k)([155]),Block:Object(u.k)([161]),SimpleBlock:Object(u.k)([163])},d=[128,64,32,16,8,4,2,1],h=function(e){for(var t=1,n=0;n