PageSourceSearch

https://nebenan.de/assets/reactPlayerMux-b7a6eed3.js

js nebenan.de collected 2026-09-24 08:56:18 UTC 173,660 bytes, 82 lines download raw bytes

1"use strict";(globalThis.webpackChunknebenan_frontend=globalThis.webpackChunknebenan_frontend||[]).push([[723],{68347(e,t,a){a.r(t),a.d(t,{MaxResolution:()=>A,MediaError:()=>c,MinResolution:()=>_,RenditionOrder:()=>R,default:()=>Er,generatePlayerInitTime:()=>Ke,playerSoftwareName:()=>hr,playerSoftwareVersion:()=>pr});var n=a(96540),r=a(2160),i=a(64945),o=i.Ay,l="video",s="drm",d={NOT_AN_ERROR:0,NETWORK_OFFLINE:2000002,NETWORK_UNKNOWN_ERROR:2e6,NETWORK_NO_STATUS:2000001,NETWORK_INVALID_URL:24e5,NETWORK_NOT_FOUND:2404e3,NETWORK_NOT_READY:2412e3,NETWORK_GENERIC_SERVER_FAIL:25e5,NETWORK_TOKEN_MISSING:2403201,NETWORK_TOKEN_MALFORMED:2412202,NETWORK_TOKEN_EXPIRED:2403210,NETWORK_TOKEN_AUD_MISSING:2403221,NETWORK_TOKEN_AUD_MISMATCH:2403222,NETWORK_TOKEN_SUB_MISMATCH:2403232,ENCRYPTED_ERROR:5e6,ENCRYPTED_UNSUPPORTED_KEY_SYSTEM:5000001,ENCRYPTED_GENERATE_REQUEST_FAILED:5000002,ENCRYPTED_UPDATE_LICENSE_FAILED:5000003,ENCRYPTED_UPDATE_SERVER_CERT_FAILED:5000004,ENCRYPTED_CDM_ERROR:5000005,ENCRYPTED_OUTPUT_RESTRICTED:5000006,ENCRYPTED_MISSING_TOKEN:5000002},u=e=>e===l?"playback":e,m=class e extends Error{constructor(t,a=e.MEDIA_ERR_CUSTOM,n,r){var i;super(t),this.name="MediaError",this.code=a,this.context=r,this.fatal=null!=n?n:a>=e.MEDIA_ERR_NETWORK&&a<=e.MEDIA_ERR_ENCRYPTED,this.message||(this.message=null!=(i=e.defaultMessages[this.code])?i:"")}};m.MEDIA_ERR_ABORTED=1,m.MEDIA_ERR_NETWORK=2,m.MEDIA_ERR_DECODE=3,m.MEDIA_ERR_SRC_NOT_SUPPORTED=4,m.MEDIA_ERR_ENCRYPTED=5,m.MEDIA_ERR_CUSTOM=100,m.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail.",3:"A media error caused playback to be aborted. The media could be corrupt or your browser does not support this format.",4:"An unsupported error occurred. The server or network failed, or your browser does not support this format.",5:"The media is encrypted and there are no keys to decrypt it."};var c=m,p=(e,t)=>!(e=>null==e)(t)&&e in t,h={ANY:"any",MUTED:"muted"},b={ON_DEMAND:"on-demand",LIVE:"live",UNKNOWN:"unknown"},E="mse",v="native",g={HEADER:"header",QUERY:"query",NONE:"none"},T=Object.values(g),y={M3U8:"application/vnd.apple.mpegurl",MP4:"video/mp4"},f={HLS:y.M3U8},A=(Object.keys(f),Object.values(y),{upTo720p:"720p",upTo1080p:"1080p",upTo1440p:"1440p",upTo2160p:"2160p"}),_={noLessThan480p:"480p",noLessThan540p:"540p",noLessThan720p:"720p",noLessThan1080p:"1080p",noLessThan1440p:"1440p",noLessThan2160p:"2160p"},R={DESCENDING:"desc"},C={code:"en"},k=(e,t,a,n,r=e)=>{r.addEventListener(t,a,n),e.addEventListener("teardown",()=>{r.removeEventListener(t,a)},{once:!0})};var N=e=>{let t=e.indexOf("?");return t<0?[e]:[e.slice(0,t),e.slice(t)]},S=e=>{let{type:t}=e;if(t){let e=t.toUpperCase();return p(e,f)?f[e]:t}return D(e)},O=e=>"VOD"===e?b.ON_DEMAND:b.LIVE,I=e=>"EVENT"===e?Number.POSITIVE_INFINITY:"VOD"===e?Number.NaN:0,D=e=>{let{src:t}=e;if(!t)return"";let a="";try{a=w(t).pathname}catch{}let n=a.lastIndexOf(".");if(n<0)return M(e)?y.M3U8:"";let r=a.slice(n+1).toUpperCase();return p(r,y)?y[r]:""},L=e=>{try{return new URL(e),!1}catch{return!0}},w=(e,t)=>{var a;if(!L(e))return new URL(e);let n=null==(a=null==window?void 0:window.location)?void 0:a.href,r=null!=t?t:n;return t&&L(t.toString())&&(r=new URL(t,n)),new URL(e,r)},M=({src:e,customDomain:t="mux.com"})=>{let a;try{a=new URL(`${e}`)}catch{return!1}let n="https:"===a.protocol,r=a.hostname===`stream.${t}`.toLowerCase(),i=a.pathname.split("/"),o=2===i.length,l=!(null!=i&&i[1].includes("."));return n&&r&&o&&l},x=e=>{let t=(null!=e?e:"").split(".")[1];if(t)try{let e=t.replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(atob(e).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(a)}catch{return}};function P(e,t=!0){var a,n;let r=t&&null!=(n=null==(a=C)?void 0:a[e])?n:e;return new U(r,t?C.code:"en")}var U=class{constructor(e,t=(e=>null!=(e=C)?e:"en")()){this.message=e,this.locale=t}format(e){return this.message.replace(/\{(\w+)\}/g,(t,a)=>{var n;return null!=(n=e[a])?n:""})}toString(){return this.message}},K=Object.values(h),B=e=>"boolean"==typeof e||"string"==typeof e&&K.includes(e),Y=(e,t)=>
1{if(!t)return;let a=e.muted,n=()=>e.muted=a;switch(t){case h.ANY:e.play().catch(()=>{e.muted=!0,e.play().catch(n)});break;case h.MUTED:e.muted=!0,e.play().catch(n);break;default:e.play().catch(()=>{})}};function W(e,t){var a;if(!("videoTracks"in e))return;let n=new WeakMap;t.on(o.Events.MANIFEST_PARSED,function(t,a){s();let r=e.addVideoTrack("main");r.selected=!0;for(let[e,t]of a.levels.entries()){let a=r.addRendition(t.url[0],t.width,t.height,t.videoCodec,t.bitrate);n.set(t,`${e}`),a.id=`${e}`}}),t.on(o.Events.AUDIO_TRACKS_UPDATED,function(t,a){l();for(let t of a.audioTracks){let a=t.default?"main":"alternative",n=e.addAudioTrack(a,t.name,t.lang);n.id=`${t.id}`,t.default&&(n.enabled=!0)}});let r=()=>{var a;let n=+(null==(a=[...e.audioTracks].find(e=>e.enabled))?void 0:a.id),r=t.audioTracks.map(e=>e.id);n!=t.audioTrack&&r.includes(n)&&(t.audioTrack=n)};e.audioTracks.addEventListener("change",r),t.on(o.Events.LEVELS_UPDATED,function(t,a){var r;let i=e.videoTracks[null!=(r=e.videoTracks.selectedIndex)?r:0];if(!i)return;let o=a.levels.map(e=>n.get(e));for(let t of e.videoRenditions)t.id&&!o.includes(t.id)&&i.removeRendition(t)});let i=e=>{let a=e.target.selectedIndex;a!=t.nextLevel&&(t.nextLevel=a)};null==(a=e.videoRenditions)||a.addEventListener("change",i);let l=()=>{for(let t of e.audioTracks)e.removeAudioTrack(t)},s=()=>{(()=>{for(let t of e.videoTracks)e.removeVideoTrack(t)})(),l()};t.once(o.Events.DESTROYING,()=>{var t,a;s(),null==(t=e.audioTracks)||t.removeEventListener("change",r),null==(a=e.videoRenditions)||a.removeEventListener("change",i)})}var F=e=>"time"in e?e.time:e.startTime;function V(e,t,a,n,r,i){let o=document.createElement("track");return o.kind=t,o.label=a,n&&(o.srclang=n),r&&(o.id=r),i&&(o.default=!0),o.track.mode=["subtitles","captions"].includes(t)?"disabled":"hidden",o.setAttribute("data-removeondestroy",""),e.append(o),o.track}function $(e,t,a){var n;return null==(n=Array.from(e.querySelectorAll("track")).find(e=>e.track.label===t&&e.track.kind===a))?void 0:n.track}async function H(e,t,a,n){let r=$(e,a,n);return r||(r=V(e,n,a),r.mode="hidden",await new Promise(e=>setTimeout(()=>e(void 0),0))),"hidden"!==r.mode&&(r.mode="hidden"),[...t].sort((e,t)=>F(t)-F(e)).forEach(t=>{var a,i;let o=t.value,l=F(t);if("endTime"in t&&null!=t.endTime)null==r||r.addCue(new VTTCue(l,t.endTime,"chapters"===n?o:JSON.stringify(null!=o?o:null)));else{let t=Array.prototype.findIndex.call(null==r?void 0:r.cues,e=>e.startTime>=l),s=null==(a=null==r?void 0:r.cues)?void 0:a[t],d=s?s.startTime:Number.isFinite(e.duration)?e.duration:Number.MAX_SAFE_INTEGER,u=null==(i=null==r?void 0:r.cues)?void 0:i[t-1];u&&(u.endTime=l),null==r||r.addCue(new VTTCue(l,d,"chapters"===n?o:JSON.stringify(null!=o?o:null)))}}),e.textTracks.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),r}var G="cuepoints",j=Object.freeze({label:G});async function Z(e,t,a=j){return H(e,t,a.label,"metadata")}var z=e=>({time:e.startTime,value:JSON.parse(e.text)});function X(e,t={label:G}){var a,n;let r=$(e,t.label,"metadata");if(null==(a=null==r?void 0:r.activeCues)||!a.length)return;if(1===r.activeCues.length)return z(r.activeCues[0]);let{currentTime:i}=e,o=Array.prototype.find.call(null!=(n=r.activeCues)?n:[],({startTime:e,endTime:t})=>e<=i&&t>i);return z(o||r.activeCues[0])}var q="chapters",Q=Object.freeze({label:q}),J=e=>({startTime:e.startTime,endTime:e.endTime,value:e.text});async function ee(e,t,a=Q){return H(e,t,a.label,"chapters")}function te(e,t={label:q}){var a,n;let r=$(e,t.label,"chapters");if(null==(a=null==r?void 0:r.activeCues)||!a.length)return;if(1===r.activeCues.length)return J(r.activeCues[0]);let{currentTime:i}=e,o=Array.prototype.find.call(null!=(n=r.activeCues)?n:[],({startTime:e,endTime:t})=>e<=i&&t>i);return J(o||r.activeCues[0])}var ae="v",ne="t",re="s",ie="d",oe=(e,t,a,n,r=!1,i=!(e=>null==(e=globalThis.navigator)?void 0:e.onLine)())=>{var o,m;if(i){let a,n=P("Your device appears to be offline",r),i=c.MEDIA_ERR_NETWORK,o=new c(n,i,!1,a);return o.errorCategory=t,o.muxCode=d.NETWORK_OFFLINE,o.data=e,o}let h="status"in e?e.status:e.code,E=Date.now(),v=c.MEDIA_ERR_NETWORK;
1if(200===h)return;let g=u(t),T=((e,t)=>{var a,n;let r=u(e),i=`${r}Token`;return null!=(a=t.tokens)&&a[r]?null==(n=t.tokens)?void 0:n[r]:p(i,t)?t[i]:void 0})(t,a),y=(e=>e===l?ae:e===s?ie:void 0)(t),[f]=N(null!=(o=a.playbackId)?o:"");if(!h||!f)return;let A=x(T);if(T&&!A){let a=P("The {tokenNamePrefix}-token provided is invalid or malformed.",r).format({tokenNamePrefix:g}),n=P("Compact JWT string: {token}",r).format({token:T}),i=new c(a,v,!0,n);return i.errorCategory=t,i.muxCode=d.NETWORK_TOKEN_MALFORMED,i.data=e,i}if(h>=500){let e=new c("",v,null==n||n);return e.errorCategory=t,e.muxCode=d.NETWORK_UNKNOWN_ERROR,e}if(403===h){if(!A){let a=P("Authorization error trying to access this {category} URL. If this is a signed URL, you might need to provide a {tokenNamePrefix}-token.",r).format({tokenNamePrefix:g,category:t}),i=P("Specified playback ID: {playbackId}",r).format({playbackId:f}),o=new c(a,v,null==n||n,i);return o.errorCategory=t,o.muxCode=d.NETWORK_TOKEN_MISSING,o.data=e,o}if((({exp:e},t=Date.now())=>!e||1e3*e<t)(A,E)){let a={timeStyle:"medium",dateStyle:"medium"},n=P("The video’s secured {tokenNamePrefix}-token has expired.",r).format({tokenNamePrefix:g}),i=P("Expired at: {expiredDate}. Current time: {currentDate}.",r).format({expiredDate:new Intl.DateTimeFormat("en",a).format(null!=(m=A.exp)?m:0),currentDate:new Intl.DateTimeFormat("en",a).format(E)}),o=new c(n,v,!0,i);return o.errorCategory=t,o.muxCode=d.NETWORK_TOKEN_EXPIRED,o.data=e,o}if((({sub:e},t)=>e!==t)(A,f)){let a=P("The video’s playback ID does not match the one encoded in the {tokenNamePrefix}-token.",r).format({tokenNamePrefix:g}),n=P("Specified playback ID: {playbackId} and the playback ID encoded in the {tokenNamePrefix}-token: {tokenPlaybackId}",r).format({tokenNamePrefix:g,playbackId:f,tokenPlaybackId:A.sub}),i=new c(a,v,!0,n);return i.errorCategory=t,i.muxCode=d.NETWORK_TOKEN_SUB_MISMATCH,i.data=e,i}if((({aud:e})=>!e)(A)){let a=P("The {tokenNamePrefix}-token is formatted with incorrect information.",r).format({tokenNamePrefix:g}),n=P("The {tokenNamePrefix}-token has no aud value. aud value should be {expectedAud}.",r).format({tokenNamePrefix:g,expectedAud:y}),i=new c(a,v,!0,n);return i.errorCategory=t,i.muxCode=d.NETWORK_TOKEN_AUD_MISSING,i.data=e,i}if((({aud:e},t)=>e!==t)(A,y)){let a=P("The {tokenNamePrefix}-token is formatted with incorrect information.",r).format({tokenNamePrefix:g}),n=P("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.",r).format({tokenNamePrefix:g,expectedAud:y,aud:A.aud}),i=new c(a,v,!0,n);return i.errorCategory=t,i.muxCode=d.NETWORK_TOKEN_AUD_MISMATCH,i.data=e,i}}if(412===h){let i=P("This playback-id may belong to a live stream that is not currently active or an asset that is not ready.",r),o=P("Specified playback ID: {playbackId}",r).format({playbackId:f}),l=new c(i,v,null==n||n,o);return l.errorCategory=t,l.muxCode=d.NETWORK_NOT_READY,l.streamType=a.streamType===b.LIVE?"live":a.streamType===b.ON_DEMAND?"on-demand":"unknown",l.data=e,l}if(404===h){let a=P("This URL or playback-id does not exist. You may have used an Asset ID or an ID from a different resource.",r),i=P("Specified playback ID: {playbackId}",r).format({playbackId:f}),o=new c(a,v,null==n||n,i);return o.errorCategory=t,o.muxCode=d.NETWORK_NOT_FOUND,o.data=e,o}if(400===h){let a=P("The URL or playback-id was invalid. You may have used an invalid value as a playback-id."),i=P("Specified playback ID: {playbackId}",r).format({playbackId:f}),o=new c(a,v,null==n||n,i);return o.errorCategory=t,o.muxCode=d.NETWORK_INVALID_URL,o.data=e,o}let _=new c("",v,null==n||n);return _.errorCategory=t,_.muxCode=d.NETWORK_UNKNOWN_ERROR,_.data=e,_},le=o.DefaultConfig.capLevelController,se={"720p":921600,"1080p":2073600,"1440p":4194304,"2160p":8294400};var de=class e extends le{constructor(e){super(e)}static setMaxAutoResolution(t,a){a?e.maxAutoResolution.set(t,a):e.maxAutoResolution.delete(t)}getMaxAutoResolution(){var t;let a=this.hls;return null!=(t=e.maxAutoResolution.get(a))?t:void 0}get levels(){var e;return null!=(e=this.hls.levels)?e:[]}getValidLevels(e){return this.levels.filter((t,a)=>this.isLevelAllowed(t)&&a<=e)}getMaxLevelCapped(e){let t=this.getValidLevels(e),a=this.getMaxAutoResolution();if(!a)return super.getMaxLevel(e);let n=function(e){let t=e.toLowerCase().trim();return se[t]}(a);if(!n)return super.getMaxLevel(e);let r=t.filter(e=>e.width*e.height<=n),i=r.findIndex(e=>e.width*e.height===n);if(-1!==i){let e=r[i];return t.findIndex(t=>t===e)}if(0===r.length)return 0;let o=r[r.length-1];return t.findIndex(e=>e===o)}getMaxLevel(t){if(void 0!==this.getMaxAutoResolution())return this.getMaxLevelCapped(t);let a=super.getMaxLevel(t),n=this.getValidLevels(t);if(!n[a])return a;let r=Math.min(n[a].width,n[a].height),i=e.minMaxResolution;return r>=i?a:le.getMaxLevelByMediaSize(n,i*(16/9),i)}};de.minMaxResolution=720,de.maxAutoResolution=new WeakMap;var ue=de,me=(e,t)=>
1{let a=function(e){let t=new ArrayBuffer(2*e.length),a=new DataView(t);for(let t=0;t<e.length;t++)a.setUint16(2*t,e.charCodeAt(t),!0);return t}(ce(e)),n=new Uint8Array(e),r=new Uint8Array(a),i=new Uint8Array(t),o=n.byteLength+4+i.byteLength+4+r.byteLength,l=new Uint8Array(o),s=0,d=e=>{l.set(e,s),s+=e.byteLength},u=e=>{let t=new DataView(l.buffer),a=e.byteLength;t.setUint32(s,a,!0),s+=4,d(e)};return d(n),u(r),u(i),l},ce=e=>new TextDecoder("utf-16le").decode(e).replace("skd://","").slice(1);var pe=({mediaEl:e,getAppCertificate:t,getLicenseKey:a,saveAndDispatchError:n,drmTypeCb:r,fallbackToWebkitFairplay:i})=>{let o=null,l=async t=>{try{let a=t.initDataType;if("skd"!==a)return;e.mediaKeys||await u(a);let n=t.initData;if(null==n)return;await m(a,n)}catch(t){return void n(e,t)}},u=async a=>{let i=await navigator.requestMediaKeySystemAccess("com.apple.fps",[{initDataTypes:[a],videoCapabilities:[{contentType:"application/vnd.apple.mpegurl",robustness:""}],distinctiveIdentifier:"not-allowed",persistentState:"not-allowed",sessionTypes:["temporary"]}]).then(e=>(r(),e)).catch(()=>{let t=P("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser."),a=new c(t,c.MEDIA_ERR_ENCRYPTED,!0);a.errorCategory=s,a.muxCode=d.ENCRYPTED_UNSUPPORTED_KEY_SYSTEM,n(e,a)});if(!i)return;let o=await i.createMediaKeys();try{let e=await t();await o.setServerCertificate(e).catch(()=>{let e=P("Your server certificate failed when attempting to set it. This may be an issue with a no longer valid certificate."),t=new c(e,c.MEDIA_ERR_ENCRYPTED,!0);return t.errorCategory=s,t.muxCode=d.ENCRYPTED_UPDATE_SERVER_CERT_FAILED,Promise.reject(t)})}catch(t){return void n(e,t)}await e.setMediaKeys(o)},m=async(t,r)=>{let l=e.mediaKeys.createSession(),u=async t=>{let r=t.message,i=await a(r);try{await l.update(i)}catch{let t=P("Failed to update DRM license. This may be an issue with the player or your protected content."),a=new c(t,c.MEDIA_ERR_ENCRYPTED,!0);a.errorCategory=s,a.muxCode=d.ENCRYPTED_UPDATE_LICENSE_FAILED,n(e,a)}},m=()=>{l.keyStatuses.forEach(t=>(t=>{let a;if("internal-error"===t){let e=P("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser.");a=new c(e,c.MEDIA_ERR_ENCRYPTED,!0),a.errorCategory=s,a.muxCode=d.ENCRYPTED_CDM_ERROR}else if("output-restricted"===t||"output-downscaled"===t){let e=P("DRM playback is being attempted in an environment that is not sufficiently secure. User may see black screen.");a=new c(e,c.MEDIA_ERR_ENCRYPTED,!1),a.errorCategory=s,a.muxCode=d.ENCRYPTED_OUTPUT_RESTRICTED}a&&n(e,a)})(t))};l.addEventListener("keystatuseschange",m),l.addEventListener("message",u);let p=async()=>{l.removeEventListener("keystatuseschange",m),l.removeEventListener("message",u),"webkitCurrentPlaybackTargetIsWireless"in e&&e.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",p),e.removeEventListener("teardown",p),await l.close().catch(e=>{}),o=null};"webkitCurrentPlaybackTargetIsWireless"in e&&e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",p,{once:!0}),e.addEventListener("teardown",p,{once:!0}),o=p,await l.generateRequest(t,r).catch(async t=>{if("NotSupportedError"!==t.name||!("webkitCurrentPlaybackTargetIsWireless"in e)||!e.webkitCurrentPlaybackTargetIsWireless){let e=P("Failed to generate a DRM license request. This may be an issue with the player or your protected content."),t=new c(e,c.MEDIA_ERR_ENCRYPTED,!0);return t.errorCategory=s,t.muxCode=d.ENCRYPTED_GENERATE_REQUEST_FAILED,Promise.reject(t)}null==i||i()})},p=async()=>{e.removeEventListener("encrypted",l),e.removeEventListener("teardown",p),o&&await o(),await e.setMediaKeys(null).catch(()=>{})};return e.addEventListener("encrypted",l),e.addEventListener("teardown",p,{once:!0}),p},he="fairplay",be="playready",Ee="widevine",ve=e=>{let t=e.split("\n").filter(e=>e.startsWith("#EXT-X-SESSION-DATA"));if(!t.length)return{};let a={};for(let e of t){let t=Te(e),n=t["DATA-ID"];n&&(a[n]={...t})}return{sessionData:a}},ge=/([A-Z0-9-]+)="?(.*?)"?(?:,|$)/g;function Te(e){let t=[...e.matchAll(ge)];return Object.fromEntries(t.map(([,e,t])=>[e,t]))}var ye,fe,Ae,_e,Re,Ce,ke,Ne=e=>{var t,a,n;let r,i=e.split("\n"),o=null==(a=(null!=(t=i.find(e=>e.startsWith("#EXT-X-PLAYLIST-TYPE")))?t:"").split(":")[1])?void 0:a.trim(),l=O(o),s=I(o);if(l===b.LIVE){let e=i.find(e=>e.startsWith("#EXT-X-PART-INF"));if(e)r=2*+e.split(":")[1].split("=")[1];else{let e=i.find(e=>e.startsWith("#EXT-X-TARGETDURATION")),t=null==(n=null==e?void 0:e.split(":"))?void 0:n[1];r=3*+(null!=t?t:6)}}return{streamType:l,targetLiveWindow:s,liveEdgeStartOffset:r}},Se=async(e,t)=>{if(t===y.MP4)return{streamType:b.ON_DEMAND,targetLiveWindow:Number.NaN,liveEdgeStartOffset:void 0,sessionData:void 0};if(t===y.M3U8){let t=await fetch(e);if(!t.ok)return Promise.reject(t);let a=await t.text(),n=await((e,t)=>{let a,n=(e=>e.split("\n").find((e,t,a)=>t>0&&a[t-1].startsWith("#EXT-X-STREAM-INF")))(e);if(!n)return Promise.reject(new Error("No media playlist URL found in multivariant playlist"));if(L(n)&&!t)return Promise.reject(new Error("masterPlaylistUrl is required to resolve relative media playlist URL"));try{a=w(n,t)}catch(e){return Promise.reject(e)}return fetch(a).then(e=>200!==e.status?Promise.reject(e):e.text())})(a,t.url);
1return{...ve(a),...Ne(n)}}return{streamType:void 0,targetLiveWindow:void 0,liveEdgeStartOffset:void 0,sessionData:void 0}},Oe=async(e,t)=>{var a,n;try{let r=await fetch(e);if(!r.ok)throw new Error(`Failed to fetch Mux metadata: ${r.status} ${r.statusText}`);let i=await r.json(),o={};if(null==(a=null==i?void 0:i[0])||!a.metadata)return;for(let e of i[0].metadata)e.key&&e.value&&(o[e.key]=e.value);(null!=(n=Me.get(t))?n:{}).metadata=o;let l=new CustomEvent("muxmetadata");t.dispatchEvent(l)}catch(e){}},Ie=(e,t,a)=>{var n,r,i,o,l,s,d,u;let{streamType:m,targetLiveWindow:c,liveEdgeStartOffset:p,lowLatency:h}=(e=>{var t;let a,n=e.type,r=O(n),i=I(n),o=!(null==(t=e.partList)||!t.length);return r===b.LIVE&&(a=o?2*e.partTarget:3*e.targetduration),{streamType:r,targetLiveWindow:i,liveEdgeStartOffset:a,lowLatency:o}})(e);if(m===b.LIVE){h?(a.config.backBufferLength=null!=(n=a.userConfig.backBufferLength)?n:4,a.config.maxFragLookUpTolerance=null!=(r=a.userConfig.maxFragLookUpTolerance)?r:.001,a.config.abrBandWidthUpFactor=null!=(i=a.userConfig.abrBandWidthUpFactor)?i:a.config.abrBandWidthFactor):a.config.backBufferLength=null!=(o=a.userConfig.backBufferLength)?o:8;let e=Object.freeze({get length(){return t.seekable.length},start:e=>t.seekable.start(e),end(e){var n;return e>this.length||e<0||Number.isFinite(t.duration)?t.seekable.end(e):null!=(n=a.liveSyncPosition)?n:t.seekable.end(e)}});(null!=(l=Me.get(t))?l:{}).seekable=e}(null!=(s=Me.get(t))?s:{}).liveEdgeStartOffset=p,(null!=(d=Me.get(t))?d:{}).targetLiveWindow=c,t.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0})),(null!=(u=Me.get(t))?u:{}).streamType=m,t.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))},De=null!=(fe=null==(ye=null==globalThis?void 0:globalThis.navigator)?void 0:ye.userAgent)?fe:"",Le=null!=(Re=null==(_e=null==(Ae=null==globalThis?void 0:globalThis.navigator)?void 0:Ae.userAgentData)?void 0:_e.platform)?Re:"",we=De.toLowerCase().includes("android")||["x11","android"].some(e=>Le.toLowerCase().includes(e)),Me=new WeakMap,xe="mux.com",Pe=null==(ke=(Ce=o).isSupported)?void 0:ke.call(Ce),Ue=e=>we||!(e=>/^((?!chrome|android).)*safari/i.test(De)&&!!e.canPlayType("application/vnd.apple.mpegurl"))(e),Ke=()=>{if("undefined"!=typeof window)return r.A.utils.now()},Be=r.A.utils.generateUUID,Ye=({playbackId:e,customDomain:t=xe,maxResolution:a,minResolution:n,renditionOrder:r,programStartTime:i,programEndTime:o,assetStartTime:l,assetEndTime:s,playbackToken:d,tokens:{playback:u=d}={},extraSourceParams:m={}}={})=>{if(!e)return;let[c,p=""]=N(e),h=new URL(`https://stream.${t}/${c}.m3u8${p}`);return u||h.searchParams.has("token")?(h.searchParams.forEach((e,t)=>{"token"!=t&&h.searchParams.delete(t)}),u&&h.searchParams.set("token",u)):(a&&h.searchParams.set("max_resolution",a),n&&(h.searchParams.set("min_resolution",n),a&&(a.slice(0,-1),n.slice(0,-1))),r&&h.searchParams.set("rendition_order",r),i&&h.searchParams.set("program_start_time",`${i}`),o&&h.searchParams.set("program_end_time",`${o}`),l&&h.searchParams.set("asset_start_time",`${l}`),s&&h.searchParams.set("asset_end_time",`${s}`),Object.entries(m).forEach(([e,t])=>{null!=t&&h.searchParams.set(e,t)})),h.toString()},We=e=>{if(!e)return;let[t]=e.split("?");return t||void 0},Fe=e=>{if(!e||!e.startsWith("https://stream."))return;let[t]=new URL(e).pathname.slice(1).split(/\.m3u8|\//);return t||void 0},Ve=e=>{var t;return null==(t=Me.get(e))?void 0:t.error},$e=e=>{var t,a;return null!=(a=null==(t=Me.get(e))?void 0:t.streamType)?a:b.UNKNOWN},He=e=>{var t,a;return null!=(a=null==(t=Me.get(e))?void 0:t.seekable)?a:e.seekable},Ge=.034,je=(e,t,a=Ge)=>e>t||((e,t,a=Ge)=>Math.abs(e-t)<=a)(e,t,a),Ze=(e,t)=>{var a,n,r;if(!t||!e.buffered.length)return;if(e.readyState>2)return!1;let i=t.currentLevel>=0?null==(n=null==(a=t.levels)?void 0:a[t.currentLevel])?void 0:n.details:null==(r=t.levels.find(e=>!!e.details))?void 0:r.details;if(!i||i.live)return;let{fragments:o}=i;if(null==o||!o.length)return;if(e.currentTime<e.duration-(i.targetduration+.5))return!1;let l=o[o.length-1];if(e.currentTime<=l.start)return!1;let s=l.start+l.duration/2,d=e.buffered.start(e.buffered.length-1),u=e.buffered.end(e.buffered.length-1);return s>d&&s<u},ze=(e,t)=>
1e.ended||e.loop?e.ended:!(!t||!Ze(e,t))||((e,t=Ge)=>e.paused&&je(e.currentTime,e.duration,t))(e),Xe=(e,t,a)=>{qe(t,a,e);let{metadata:n={}}=e,{view_session_id:r=Be()}=n,i=(e=>{var t,a,n;return null!=(t=null==e?void 0:e.metadata)&&t.video_id?e.metadata.video_id:it(e)&&null!=(n=null!=(a=We(e.playbackId))?a:Fe(e.src))?n:e.src})(e);n.view_session_id=r,n.video_id=i,e.metadata=n;e.drmTypeCb=e=>{var a;null==(a=t.mux)||a.emit("hb",{view_drm_type:e})},e.fallbackToWebkitFairplay=async()=>{var a;let n=!t.paused,r=t.currentTime;e.useWebkitFairplay=!0;let i=e.muxDataKeepSession;e.muxDataKeepSession=!0;let o=null==(a=Me.get(t))?void 0:a.coreReference;Xe(e,t,o),e.muxDataKeepSession=i,e.useWebkitFairplay=!1,n&&await t.play().then(()=>{t.currentTime=r}).catch(()=>{}),t.currentTime=r},Me.set(t,{retryCount:0});let l=Je(e,t),s=(({preload:e,src:t},a,n)=>{let r=e=>{null!=e&&["","none","metadata","auto"].includes(e)?a.setAttribute("preload",e):a.removeAttribute("preload")};if(!n)return r(e),r;let i=!1,o=!1,l=n.config.maxBufferLength,s=n.config.maxBufferSize,d=e=>{r(e);let t=null!=e?e:a.preload;o||"none"===t||("metadata"===t?(n.config.maxBufferLength=1,n.config.maxBufferSize=1):(n.config.maxBufferLength=l,n.config.maxBufferSize=s),u())},u=()=>{!i&&t&&(i=!0,n.loadSource(t))};return k(a,"play",()=>{o=!0,n.config.maxBufferLength=l,n.config.maxBufferSize=s,u()},{once:!0}),d(e),d})(e,t,l);null!=e&&e.muxDataKeepSession&&null!=t&&t.mux&&!t.mux.deleted?l&&t.mux.addHLSJS({hlsjs:l,Hls:l?o:void 0}):lt(e,t,l),st(e,t,l),async function(e,t=j){new Promise(a=>{k(e,"loadstart",async()=>{let n=await Z(e,[],t);k(e,"cuechange",()=>{let t=X(e);if(t){let a=new CustomEvent("cuepointchange",{composed:!0,bubbles:!0,detail:t});e.dispatchEvent(a)}},{},n),a(n)})})}(t),async function(e,t=Q){new Promise(a=>{k(e,"loadstart",async()=>{let n=await ee(e,[],t);k(e,"cuechange",()=>{let t=te(e);if(t){let a=new CustomEvent("chapterchange",{composed:!0,bubbles:!0,detail:t});e.dispatchEvent(a)}},{},n),a(n)})})}(t);let d=((e,t,a)=>{let{autoplay:n}=e,r=!1,i=!1,l=B(n)?n:!!n,s=()=>{r||k(t,"playing",()=>{r=!0},{once:!0})};if(s(),k(t,"loadstart",()=>{r=!1,s(),Y(t,l)},{once:!0}),k(t,"loadstart",()=>{a||(i=e.streamType&&e.streamType!==b.UNKNOWN?e.streamType===b.LIVE:!Number.isFinite(t.duration)),Y(t,l)},{once:!0}),a&&a.once(o.Events.LEVEL_LOADED,(t,a)=>{var n;i=e.streamType&&e.streamType!==b.UNKNOWN?e.streamType===b.LIVE:null!=(n=a.details.live)&&n}),!l){let n=()=>{!i||Number.isFinite(e.startTime)||(null!=a&&a.liveSyncPosition?t.currentTime=a.liveSyncPosition:Number.isFinite(t.seekable.end(0))&&(t.currentTime=t.seekable.end(0)))};a&&k(t,"play",()=>{"metadata"===t.preload?a.once(o.Events.LEVEL_UPDATED,n):n()},{once:!0})}return e=>{r||(l=B(e)?e:!!e,Y(t,l))}})(e,t,l);((e,t,a)=>{let{minPreloadSegments:n}=e;if(null==n||n<=0||!a)return;let r=0,i=!1,l=t.playbackRate||1,s=()=>{0!==t.playbackRate&&(l=t.playbackRate,t.playbackRate=0)};t.playbackRate=0,k(t,"ratechange",s);let d=(e,{frag:a})=>{i||"main"!==a.type||(r++,r>=n&&(i=!0,t.removeEventListener("ratechange",s),t.playbackRate=l))};a.on(o.Events.FRAG_BUFFERED,d),t.addEventListener("teardown",()=>{i||(i=!0,a.off(o.Events.FRAG_BUFFERED,d),t.playbackRate=l)},{once:!0})})(e,t,l),((e,t,a)=>{let{initialEstimateSegments:n}=e;if(null==n||n<=0||!a)return;let r=0;a.on(o.Events.FRAG_BUFFERED,(e,{frag:t})=>{"main"===t.type&&(r++,r<n&&a.abrController.resetEstimator(a.config.abrEwmaDefaultEstimate))})})(e,0,l);let u={engine:l,setAutoplay:d,setPreload:s},m=Me.get(t);return m&&(m.coreReference=u),u},qe=(e,t,a)=>{let n=null==t?void 0:t.engine;null!=e&&e.mux&&!e.mux.deleted&&(null!=a&&a.muxDataKeepSession?n&&e.mux.removeHLSJS():(e.mux.destroy(),delete e.mux)),n&&(n.detachMedia(),n.destroy()),e&&(e.hasAttribute("src")&&(e.removeAttribute("src"),e.load()),e.removeEventListener("error",ut),e.removeEventListener("error",ct),e.removeEventListener("durationchange",dt),Me.delete(e),e.dispatchEvent(new Event("teardown")))};function Qe(e,t){var a;let n=S(e);if(n!==y.M3U8)return!0;let r=!n||null==(a=t.canPlayType(n))||a,{preferPlayback:i}=e,o=i===v,l=Pe&&(i===E||Ue(t));return r&&(o||!l)}var Je=(e,t)=>
1{let{debug:a,streamType:n,startTime:r=-1,metadata:i,preferCmcd:l,_hlsConfig:s={},maxAutoResolution:d,initialBandwidthEstimateKbps:u}=e,m=S(e)===y.M3U8,c=Qe(e,t);if(m&&!c&&Pe){let m={backBufferLength:30,renderTextTracksNatively:!1,liveDurationInfinity:!0,capLevelOnFPSDrop:!0,...null!=u?{abrEwmaDefaultEstimate:1e3*u}:{}},c=et(n),p=tt(e),h=[g.QUERY,g.HEADER].includes(l)?{useHeaders:l===g.HEADER,sessionId:null==i?void 0:i.view_session_id,contentId:null==i?void 0:i.video_id}:void 0,b=ot(e,s),E=new o({debug:a,startPosition:r,cmcd:h,xhrSetup:(e,t)=>{var a,n;if(l&&l!==g.QUERY)return;let r=w(t);if(!r.searchParams.has("CMCD"))return;let i=(null!=(n=null==(a=r.searchParams.get("CMCD"))?void 0:a.split(","))?n:[]).filter(e=>e.startsWith("sid")||e.startsWith("cid")).join(",");r.searchParams.set("CMCD",i),e.open("GET",r)},...m,...b,...c,...p,...s});return b.capLevelController===ue&&void 0!==d&&ue.setMaxAutoResolution(E,d),E.on(o.Events.MANIFEST_PARSED,async function(e,a){var n,r;let i=null==(n=a.sessionData)?void 0:n["com.apple.hls.chapters"];(null!=i&&i.URI||null!=i&&i.VALUE.toLocaleLowerCase().startsWith("http"))&&Oe(null!=(r=null==i?void 0:i.URI)?r:null==i?void 0:i.VALUE,t)}),E}},et=e=>e===b.LIVE?{backBufferLength:8}:{},tt=e=>{let{tokens:{drm:t}={},playbackId:a,drmTypeCb:n}=e,r=We(a);return t&&r?{emeEnabled:!0,drmSystems:{"com.apple.fps":{licenseUrl:nt(e,"fairplay"),serverCertificateUrl:rt(e,"fairplay")},"com.widevine.alpha":{licenseUrl:nt(e,"widevine")},"com.microsoft.playready":{licenseUrl:nt(e,"playready")}},requestMediaKeySystemAccessFunc:(e,t)=>("com.widevine.alpha"===e&&(t=[...t.map(e=>{var t;let a=null==(t=e.videoCapabilities)?void 0:t.map(e=>({...e,robustness:"HW_SECURE_ALL"}));return{...e,videoCapabilities:a}}),...t]),navigator.requestMediaKeySystemAccess(e,t).then(t=>{let a=(e=>e.includes("fps")?he:e.includes("playready")?be:e.includes("widevine")?Ee:void 0)(e);return null==n||n(a),t}))}:{}},at=(e,t)=>{let a={mediaEl:t,getAppCertificate:()=>(async e=>{let t=await fetch(e);return 200!==t.status?Promise.reject(t):await t.arrayBuffer()})(rt(e,"fairplay")).catch(t=>{if(t instanceof Response){let a=oe(t,s,e);return a?Promise.reject(a):Promise.reject(new Error("Unexpected error in app cert request"))}return Promise.reject(t)}),getLicenseKey:t=>(async(e,t)=>{let a=await fetch(t,{method:"POST",headers:{"Content-type":"application/octet-stream"},body:e});if(200!==a.status)return Promise.reject(a);let n=await a.arrayBuffer();return new Uint8Array(n)})(t,nt(e,"fairplay")).catch(t=>{if(t instanceof Response){let a=oe(t,s,e);return a?Promise.reject(a):Promise.reject(new Error("Unexpected error in license key request"))}return Promise.reject(t)}),saveAndDispatchError:mt,drmTypeCb:()=>{var t;null==(t=e.drmTypeCb)||t.call(e,he)}};if(e.useWebkitFairplay)(({mediaEl:e,getAppCertificate:t,getLicenseKey:a,saveAndDispatchError:n,drmTypeCb:r})=>{if(!window.WebKitMediaKeys||!("onwebkitneedkey"in e)){let t=P("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser."),a=new c(t,c.MEDIA_ERR_ENCRYPTED,!0);return a.errorCategory=s,a.muxCode=d.ENCRYPTED_CDM_ERROR,n(e,a),()=>{}}let i=e,o=t(),l=null,u=e=>{(async()=>{try{i.webkitKeys||m();let t=await o;if(null===e.initData||null==t)return;let a=me(e.initData,t);p(a)}catch(e){n(i,e)}})()},m=()=>{try{let e=new WebKitMediaKeys("com.apple.fps.1_0");i.webkitSetMediaKeys(e),r()}catch{let e=new c("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser.",c.MEDIA_ERR_ENCRYPTED,!0);throw e.errorCategory=s,e.muxCode=d.ENCRYPTED_UNSUPPORTED_KEY_SYSTEM,e}},p=t=>{let r=i.webkitKeys.createSession("application/vnd.apple.mpegurl",t),o=async t=>{try{let e=t.message,n=await a(e);r.update(n)}catch(t){n(e,t)}},u=t=>{if(!t.target.error)return;let a=P("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser."),r=new c(a,c.MEDIA_ERR_ENCRYPTED,!0);r.errorCategory=s,r.muxCode=d.ENCRYPTED_CDM_ERROR,n(e,r)},m=()=>{r.removeEventListener("webkitkeymessage",o),r.removeEventListener("webkitkeyerror",u),e.removeEventListener("teardown",m),"webkitCurrentPlaybackTargetIsWireless"in e&&e.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged",m),l=null;try{r.close()}catch{}};"webkitCurrentPlaybackTargetIsWireless"in e&&e.addEventListener("webkitcurrentplaybacktargetiswirelesschanged",m,{once:!0}),r.addEventListener("webkitkeymessage",o),r.addEventListener("webkitkeyerror",u),e.addEventListener("teardown",m),l=m},h=()=>{e.removeEventListener("webkitneedkey",u),e.removeEventListener("teardown",h),null==l||l();try{i.webkitSetMediaKeys(null)}catch{}};e.addEventListener("webkitneedkey",u),e.addEventListener("teardown",h,{once:!0})})(a);else{let t={fallbackToWebkitFairplay:async()=>{var t;await n(),null==(t=e.fallbackToWebkitFairplay)||t.call(e)},...a},n=pe(t)}},nt=({playbackId:e,tokens:{drm:t}={},customDomain:a=xe},n)=>{let r=We(e);return`https://license.${a.toLocaleLowerCase().endsWith(xe)?a:xe}/license/${n}/${r}?token=${t}`},rt=({playbackId:e,tokens:{drm:t}={},customDomain:a=xe},n)=>{let r=We(e);return`https://license.${a.toLocaleLowerCase().endsWith(xe)?a:xe}/appcert/${n}/${r}?token=${t}`},it=({playbackId:e,src:t,customDomain:a})=>{if(e)return!0;
1if("string"!=typeof t)return!1;let n=null==window?void 0:window.location.href,r=new URL(t,n).hostname.toLocaleLowerCase();return r.includes(xe)||!!a&&r.includes(a.toLocaleLowerCase())},ot=(e,t)=>{let a={};return a.capLevelToPlayerSize=e.capRenditionToPlayerSize,null==a.capLevelToPlayerSize?(a.capLevelController=ue,a.capLevelToPlayerSize=!0):a.capLevelController=i.Rx,a},lt=(e,t,a)=>{var n;let{envKey:i,disableTracking:l,muxDataSDK:s=r.A,muxDataSDKOptions:d={}}=e,u=it(e);if(!l&&(i||u)){let{playerInitTime:r,playerSoftwareName:l,playerSoftwareVersion:u,beaconCollectionDomain:m,debug:c,disableCookies:p}=e,h={...e.metadata,video_title:(null==(n=null==e?void 0:e.metadata)?void 0:n.video_title)||void 0},b=t=>"string"!=typeof t.player_error_code&&("function"==typeof e.errorTranslator?e.errorTranslator(t):t);s.monitor(t,{debug:c,beaconCollectionDomain:m,hlsjs:a,Hls:a?o:void 0,automaticErrorTracking:!1,errorTranslator:b,disableCookies:p,...d,data:{...i?{env_key:i}:{},player_software_name:l,player_software:l,player_software_version:u,player_init_time:r,...h}})}},st=(e,t,a)=>{var n,r;let i,u,m=Qe(e,t),{src:p,customDomain:h=xe}=e,E=()=>{t.ended||e.disablePseudoEnded||!ze(t,a)||(Ze(t,a)?t.currentTime=t.buffered.end(t.buffered.length-1):t.dispatchEvent(new Event("ended")))},v=()=>{let e,a,n=He(t);n.length>0&&(e=n.start(0),a=n.end(0)),(u!==a||i!==e)&&t.dispatchEvent(new CustomEvent("seekablechange",{composed:!0})),i=e,u=a};if(k(t,"durationchange",v),t&&m){let a=S(e);if("string"==typeof p){if(p.endsWith(".mp4")&&p.includes(h)){let e=Fe(p),a=new URL(`https://stream.${h}/${e}/metadata.json`);Oe(a.toString(),t)}let i=()=>{if($e(t)!==b.LIVE||Number.isFinite(t.duration))return;let e=setInterval(v,1e3);t.addEventListener("teardown",()=>{clearInterval(e)},{once:!0}),k(t,"durationchange",()=>{Number.isFinite(t.duration)&&clearInterval(e)})},o=async()=>(async(e,t,a=S({src:e}))=>{var n,r,i,o;let{streamType:l,targetLiveWindow:s,liveEdgeStartOffset:d,sessionData:u}=await Se(e,a),m=null==u?void 0:u["com.apple.hls.chapters"];(null!=m&&m.URI||null!=m&&m.VALUE.toLocaleLowerCase().startsWith("http"))&&Oe(null!=(n=m.URI)?n:m.VALUE,t),(null!=(r=Me.get(t))?r:{}).liveEdgeStartOffset=d,(null!=(i=Me.get(t))?i:{}).targetLiveWindow=s,t.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0})),(null!=(o=Me.get(t))?o:{}).streamType=l,t.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}))})(p,t,a).then(i).catch(a=>{if(a instanceof Response){let n=oe(a,l,e);if(n)return void mt(t,n)}else Error});if("none"===t.preload){let e=()=>{o(),t.removeEventListener("loadedmetadata",a)},a=()=>{o(),t.removeEventListener("play",e)};k(t,"play",e,{once:!0}),k(t,"loadedmetadata",a,{once:!0})}else o();null!=(n=e.tokens)&&n.drm?at(e,t):k(t,"encrypted",()=>{let e=P("Attempting to play DRM-protected content without providing a DRM token."),a=new c(e,c.MEDIA_ERR_ENCRYPTED,!0);a.errorCategory=s,a.muxCode=d.ENCRYPTED_MISSING_TOKEN,mt(t,a)},{once:!0}),t.setAttribute("src",p),e.startTime&&((null!=(r=Me.get(t))?r:{}).startTime=e.startTime,t.addEventListener("durationchange",dt,{once:!0}))}else t.removeAttribute("src");t.addEventListener("error",ut),t.addEventListener("error",ct),t.addEventListener("emptied",()=>{t.querySelectorAll("track[data-removeondestroy]").forEach(e=>{e.remove()})},{once:!0}),k(t,"pause",E),k(t,"seeked",E),k(t,"play",()=>{t.ended||je(t.currentTime,t.duration)&&(t.currentTime=t.seekable.length?t.seekable.start(0):0)})}else a&&p&&(a.once(o.Events.LEVEL_LOADED,(e,n)=>{Ie(n.details,t,a),v(),$e(t)===b.LIVE&&!Number.isFinite(t.duration)&&(a.on(o.Events.LEVEL_UPDATED,v),k(t,"durationchange",()=>{Number.isFinite(t.duration)&&a.off(o.Events.LEVELS_UPDATED,v)}))}),a.on(o.Events.ERROR,(n,r)=>{var i,o;let l=Nt(r,e);if(l.muxCode===d.NETWORK_NOT_READY){let e=null!=(i=Me.get(t))?i:{},n=null!=(o=e.retryCount)?o:0;if(n<6){let i=0===n?5e3:6e4,o=new c(`Retrying in ${i/1e3} seconds...`,l.code,l.fatal);Object.assign(o,l),mt(t,o);let s=setTimeout(()=>{e.retryCount=n+1,"manifestLoadError"===r.details&&r.url&&a.loadSource(r.url)},i);return void t.addEventListener("teardown",()=>clearTimeout(s),{once:!0})}{e.retryCount=0;let a=new c('Try again later or <a href="#" onclick="window.location.reload(); return false;" style="color: #4a90e2;">click here to retry</a>',l.code,l.fatal);return Object.assign(a,l),void mt(t,a)}}mt(t,l)}),a.on(o.Events.MANIFEST_LOADED,()=>{let e=Me.get(t);e&&e.error&&(e.error=null,e.retryCount=0,t.dispatchEvent(new Event("emptied")),t.dispatchEvent(new Event("loadstart")))}),t.addEventListener("error",ct),k(t,"waiting",E),W(e,a),function(e,t){t.on(o.Events.NON_NATIVE_TEXT_TRACKS_FOUND,(a,{tracks:n})=>
1{n.forEach(a=>{var n,r;let i=null!=(n=a.subtitleTrack)?n:a.closedCaptions,o=t.subtitleTracks.findIndex(({lang:e,name:t,type:n})=>e==(null==i?void 0:i.lang)&&t===a.label&&n.toLowerCase()===a.kind),l=(null!=(r=a._id)?r:a.default)?"default":`${a.kind}${o}`;V(e,a.kind,a.label,null==i?void 0:i.lang,l,a.default)})});let a=()=>{if(!t.subtitleTracks.length)return;let a=Array.from(e.textTracks).find(e=>e.id&&"showing"===e.mode&&["subtitles","captions"].includes(e.kind));if(!a)return;let n=t.subtitleTracks[t.subtitleTrack],r=n?n.default?"default":`${t.subtitleTracks[t.subtitleTrack].type.toLowerCase()}${t.subtitleTrack}`:void 0;if(t.subtitleTrack<0||(null==a?void 0:a.id)!==r){let e=t.subtitleTracks.findIndex(({lang:e,name:t,type:n,default:r})=>"default"===a.id&&r||e==a.language&&t===a.label&&n.toLowerCase()===a.kind);t.subtitleTrack=e}(null==a?void 0:a.id)===r&&a.cues&&Array.from(a.cues).forEach(e=>{a.addCue(e)})};e.textTracks.addEventListener("change",a),t.on(o.Events.CUES_PARSED,(t,{track:a,cues:n})=>{let r=e.textTracks.getTrackById(a);if(!r)return;let i="disabled"===r.mode;i&&(r.mode="hidden"),n.forEach(e=>{var t;null!=(t=r.cues)&&t.getCueById(e.id)||r.addCue(e)}),i&&(r.mode="disabled")}),t.once(o.Events.DESTROYING,()=>{e.textTracks.removeEventListener("change",a),e.querySelectorAll("track[data-removeondestroy]").forEach(e=>{e.remove()})});let n=()=>
1{Array.from(e.textTracks).forEach(t=>{var a,n;if(!["subtitles","caption"].includes(t.kind)&&("thumbnails"===t.label||"chapters"===t.kind)){if(null==(a=t.cues)||!a.length){let a="track";t.kind&&(a+=`[kind="${t.kind}"]`),t.label&&(a+=`[label="${t.label}"]`);let r=e.querySelector(a),i=null!=(n=null==r?void 0:r.getAttribute("src"))?n:"";null==r||r.removeAttribute("src"),setTimeout(()=>{null==r||r.setAttribute("src",i)},0)}"hidden"!==t.mode&&(t.mode="hidden")}})};t.once(o.Events.MANIFEST_LOADED,n),t.once(o.Events.MEDIA_ATTACHED,n)}(t,a),a.attachMedia(t))};function dt(e){var t;let a=e.target,n=null==(t=Me.get(a))?void 0:t.startTime;if(n&&function(e,t,a){t&&a>t&&(a=t);for(let t=0;t<e.length;t++)if(e.start(t)<=a&&e.end(t)>=a)return!0;return!1}(a.seekable,a.duration,n)){let e="auto"===a.preload;e&&(a.preload="none"),a.currentTime=n,e&&(a.preload="auto")}}async function ut(e){if(!e.isTrusted)return;e.stopImmediatePropagation();let t=e.target;if(null==t||!t.error)return;let{message:a,code:n}=t.error,r=new c(a,n);if(t.src&&n===c.MEDIA_ERR_SRC_NOT_SUPPORTED&&t.readyState===HTMLMediaElement.HAVE_NOTHING)setTimeout(()=>{var e;let a=null!=(e=Ve(t))?e:t.error;(null==a?void 0:a.code)===c.MEDIA_ERR_SRC_NOT_SUPPORTED&&mt(t,r)},500);else{if(t.src&&(n!==c.MEDIA_ERR_DECODE||void 0!==n))try{let{status:e}=await fetch(t.src);r.data={response:{code:e}}}catch{}mt(t,r)}}function mt(e,t){var a;t.fatal&&((null!=(a=Me.get(e))?a:{}).error=t,e.dispatchEvent(new CustomEvent("error",{detail:t})))}function ct(e){var t,a;if(!(e instanceof CustomEvent&&e.detail instanceof c))return;let n=e.target,r=e.detail;!r||!r.fatal||((null!=(t=Me.get(n))?t:{}).error=r,null==(a=n.mux)||a.emit("error",{player_error_code:r.code,player_error_message:r.message,player_error_context:r.context}))}var pt,ht,bt,Et,vt,gt,Tt,yt,ft,At,_t,Rt,Ct,kt,Nt=(e,t)=>{var a,n,r;e.fatal||t.debug;let i,u={[o.ErrorTypes.NETWORK_ERROR]:c.MEDIA_ERR_NETWORK,[o.ErrorTypes.MEDIA_ERROR]:c.MEDIA_ERR_DECODE,[o.ErrorTypes.KEY_SYSTEM_ERROR]:c.MEDIA_ERR_ENCRYPTED},m=(e=>[o.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,o.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED].includes(e.details)?c.MEDIA_ERR_NETWORK:u[e.type])(e);if(m===c.MEDIA_ERR_NETWORK&&e.response){let r=null!=(a=(e=>e.type===o.ErrorTypes.KEY_SYSTEM_ERROR?s:e.type===o.ErrorTypes.NETWORK_ERROR?l:void 0)(e))?a:l;i=null!=(n=oe(e.response,r,t,e.fatal))?n:new c("",m,e.fatal)}else if(m===c.MEDIA_ERR_ENCRYPTED)if(e.details===o.ErrorDetails.KEY_SYSTEM_NO_CONFIGURED_LICENSE){let t=P("Attempting to play DRM-protected content without providing a DRM token.");i=new c(t,c.MEDIA_ERR_ENCRYPTED,e.fatal),i.errorCategory=s,i.muxCode=d.ENCRYPTED_MISSING_TOKEN}else if(e.details===o.ErrorDetails.KEY_SYSTEM_NO_ACCESS){let t=P("Cannot play DRM-protected content with current security configuration on this browser. Try playing in another browser.");i=new c(t,c.MEDIA_ERR_ENCRYPTED,e.fatal),i.errorCategory=s,i.muxCode=d.ENCRYPTED_UNSUPPORTED_KEY_SYSTEM}else if(e.details===o.ErrorDetails.KEY_SYSTEM_NO_SESSION){let e=P("Failed to generate a DRM license request. This may be an issue with the player or your protected content.");i=new c(e,c.MEDIA_ERR_ENCRYPTED,!0),i.errorCategory=s,i.muxCode=d.ENCRYPTED_GENERATE_REQUEST_FAILED}else if(e.details===o.ErrorDetails.KEY_SYSTEM_SESSION_UPDATE_FAILED){let t=P("Failed to update DRM license. This may be an issue with the player or your protected content.");i=new c(t,c.MEDIA_ERR_ENCRYPTED,e.fatal),i.errorCategory=s,i.muxCode=d.ENCRYPTED_UPDATE_LICENSE_FAILED}else if(e.details===o.ErrorDetails.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED){let t=P("Your server certificate failed when attempting to set it. This may be an issue with a no longer valid certificate.");i=new c(t,c.MEDIA_ERR_ENCRYPTED,e.fatal),i.errorCategory=s,i.muxCode=d.ENCRYPTED_UPDATE_SERVER_CERT_FAILED}else if(e.details===o.ErrorDetails.KEY_SYSTEM_STATUS_INTERNAL_ERROR){let t=P("The DRM Content Decryption Module system had an internal failure. Try reloading the page, upading your browser, or playing in another browser.");i=new c(t,c.MEDIA_ERR_ENCRYPTED,e.fatal),i.errorCategory=s,i.muxCode=d.ENCRYPTED_CDM_ER
1ROR}else if(e.details===o.ErrorDetails.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED){let e=P("DRM playback is being attempted in an environment that is not sufficiently secure. User may see black screen.");i=new c(e,c.MEDIA_ERR_ENCRYPTED,!1),i.errorCategory=s,i.muxCode=d.ENCRYPTED_OUTPUT_RESTRICTED}else i=new c(e.error.message,c.MEDIA_ERR_ENCRYPTED,e.fatal),i.errorCategory=s,i.muxCode=d.ENCRYPTED_ERROR;else i=new c("",m,e.fatal);return i.context||(i.context=`${e.url?`url: ${e.url}\n`:""}${e.response&&(e.response.code||e.response.text)?`response: ${e.response.code}, ${e.response.text}\n`:""}${e.reason?`failure reason: ${e.reason}\n`:""}${e.level?`level: ${e.level}\n`:""}${e.parent?`parent stream controller: ${e.parent}\n`:""}${e.buffer?`buffer length: ${e.buffer}\n`:""}${e.error?`error: ${e.error}\n`:""}${e.event?`event: ${e.event}\n`:""}${e.err?`error message: ${null==(r=e.err)?void 0:r.message}\n`:""}`),i.data=e,i},St=a(61121),Ot=e=>{throw TypeError(e)},It=(e,t,a)=>t.has(e)||Ot("Cannot "+a),Dt=(e,t,a)=>(It(e,t,"read from private field"),a?a.call(e):t.get(e)),Lt=(e,t,a)=>t.has(e)?Ot("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),wt=(e,t,a,n)=>(It(e,t,"write to private field"),n?n.call(e,a):t.set(e,a),a),Mt=(e,t,a)=>(It(e,t,"access private method"),a),xt=(()=>{try{return"0.31.0"}catch{}return"UNKNOWN"})(),Pt={BEACON_COLLECTION_DOMAIN:"beacon-collection-domain",CUSTOM_DOMAIN:"custom-domain",DEBUG:"debug",DISABLE_TRACKING:"disable-tracking",DISABLE_COOKIES:"disable-cookies",DISABLE_PSEUDO_ENDED:"disable-pseudo-ended",DRM_TOKEN:"drm-token",PLAYBACK_TOKEN:"playback-token",ENV_KEY:"env-key",MAX_RESOLUTION:"max-resolution",MIN_RESOLUTION:"min-resolution",MAX_AUTO_RESOLUTION:"max-auto-resolution",RENDITION_ORDER:"rendition-order",PROGRAM_START_TIME:"program-start-time",PROGRAM_END_TIME:"program-end-time",ASSET_START_TIME:"asset-start-time",ASSET_END_TIME:"asset-end-time",METADATA_URL:"metadata-url",PLAYBACK_ID:"playback-id",PLAYER_SOFTWARE_NAME:"player-software-name",PLAYER_SOFTWARE_VERSION:"player-software-version",PLAYER_INIT_TIME:"player-init-time",PREFER_CMCD:"prefer-cmcd",PREFER_PLAYBACK:"prefer-playback",START_TIME:"start-time",STREAM_TYPE:"stream-type",TARGET_LIVE_WINDOW:"target-live-window",LIVE_EDGE_OFFSET:"live-edge-offset",TYPE:"type",LOGO:"logo",CAP_RENDITION_TO_PLAYER_SIZE:"cap-rendition-to-player-size",INITIAL_BANDWIDTH_ESTIMATE_KBPS:"initial-bandwidth-estimate-kbps",INITIAL_ESTIMATE_SEGMENTS:"initial-estimate-segments",MIN_PRELOAD_SEGMENTS:"min-preload-segments"},Ut=Object.values(Pt),Kt=xt,Bt="mux-video",Yt=class extends St.lB{constructor(){super(),Lt(this,_t),Lt(this,pt),Lt(this,ht),Lt(this,bt,{}),Lt(this,Et,{}),Lt(this,vt),Lt(this,gt),Lt(this,Tt),Lt(this,yt),Lt(this,ft,""),Lt(this,At,e=>{var t;let a=(e=>{var t;return null==(t=Me.get(e))?void 0:t.metadata})(this.nativeEl),n=null!=(t=this.metadata)?t:{};this.metadata={...a,...n},"mux-free-plan"===(null==a?void 0:a["com.mux.video.branding"])&&(wt(this,ft,"default"),this.updateLogo())}),Lt(this,Ct),wt(this,ht,Ke())}static get NAME(){return Bt}static get VERSION(){return Kt}static get observedAttributes(){var e;return[...Ut,...null!=(e=St.lB.observedAttributes)?e:[]]}static getLogoHTML(e){return e&&"false"!==e?"default"===e?'\n<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" part="logo" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 1600 500"><g fill="#fff"><path d="M994.287 93.486c-17.121 0-31-13.879-31-31 0-17.121 13.879-31 31-31 17.121 0 31 13.879 31 31 0 17.121-13.879 31-31 31m0-93.486c-34.509 0-62.484 27.976-62.484 62.486v187.511c0 68.943-56.09 125.033-125.032 125.033s-125.03-56.09-125.03-125.033V62.486C681.741 27.976 653.765 0 619.256 0s-62.484 27.976-62.484 62.486v187.511C556.772 387.85 668.921 500 806.771 500c137.851 0 250.001-112.15 250.001-250.003V62.486c0-34.51-27.976-62.486-62.485-62.486M1537.51 468.511c-17.121 0-31-13.879-31-31 0-17.121 13.879-31 31-31 17.121 0 31 13.879 31 31 0 17.121-13.879 31-31 31m-275.883-218.509-143.33 143.329c-24.402 24.402-24.402 63.966 0 88.368 24.402 24.402 63.967 24.402 88.3
169 0l143.33-143.329 143.328 143.329c24.402 24.4 63.967 24.402 88.369 0 24.403-24.402 24.403-63.966.001-88.368l-143.33-143.329.001-.004 143.329-143.329c24.402-24.402 24.402-63.965 0-88.367s-63.967-24.402-88.369 0L1349.996 161.63 1206.667 18.302c-24.402-24.401-63.967-24.402-88.369 0s-24.402 63.965 0 88.367l143.329 143.329v.004ZM437.511 468.521c-17.121 0-31-13.879-31-31 0-17.121 13.879-31 31-31 17.121 0 31 13.879 31 31 0 17.121-13.879 31-31 31M461.426 4.759C438.078-4.913 411.2.432 393.33 18.303L249.999 161.632 106.669 18.303C88.798.432 61.922-4.913 38.573 4.759 15.224 14.43-.001 37.214-.001 62.488v375.026c0 34.51 27.977 62.486 62.487 62.486 34.51 0 62.486-27.976 62.486-62.486V213.341l80.843 80.844c24.404 24.402 63.965 24.402 88.369 0l80.843-80.844v224.173c0 34.51 27.976 62.486 62.486 62.486s62.486-27.976 62.486-62.486V62.488c0-25.274-15.224-48.058-38.573-57.729" style="fill-rule:nonzero"/></g></svg>':`<img part="logo" src="${e}" />`:""}static getTemplateHTML(e={}){var t;return`\n      ${St.lB.getTemplateHTML(e)}\n      <style>\n        :host {\n          position: relative;\n        }\n        slot[name="logo"] {\n          display: flex;\n          justify-content: end;\n          position: absolute;\n          top: 1rem;\n          right: 1rem;\n          opacity: 0;\n          transition: opacity 0.25s ease-in-out;\n          z-index: 1;\n        }\n        slot[name="logo"]:has([part="logo"]) {\n          opacity: 1;\n        }\n        slot[name="logo"] [part="logo"] {\n          width: 5rem;\n          pointer-events: none;\n          user-select: none;\n        }\n      </style>\n      <slot name="logo">\n        ${this.getLogoHTML(null!=(t=e[Pt.LOGO])?t:"")}\n      </slot>\n    `}get preferCmcd(){var e;return null!=(e=this.getAttribute(Pt.PREFER_CMCD))?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?T.includes(e)&&this.setAttribute(Pt.PREFER_CMCD,e):this.removeAttribute(Pt.PREFER_CMCD))}get playerInitTime(){return this.hasAttribute(Pt.PLAYER_INIT_TIME)?+this.getAttribute(Pt.PLAYER_INIT_TIME):Dt(this,ht)}set playerInitTime(e){e!=this.playerInitTime&&(null==e?this.removeAttribute(Pt.PLAYER_INIT_TIME):this.setAttribute(Pt.PLAYER_INIT_TIME,""+ +e))}get playerSoftwareName(){var e;return null!=(e=Dt(this,Tt))?e:Bt}set playerSoftwareName(e){wt(this,Tt,e)}get playerSoftwareVersion(){var e;return null!=(e=Dt(this,gt))?e:Kt}set playerSoftwareVersion(e){wt(this,gt,e)}get _hls(){var e;return null==(e=Dt(this,_t,Rt))?void 0:e.engine}get mux(){var e;return null==(e=this.nativeEl)?void 0:e.mux}get error(){var e;return null!=(e=Ve(this.nativeEl))?e:null}get errorTranslator(){return Dt(this,yt)}set errorTranslator(e){wt(this,yt,e)}get src(){return this.getAttribute("src")}set src(e){e!==this.src&&(null==e?this.removeAttribute("src"):this.setAttribute("src",e))}get type(){var e;return null!=(e=this.getAttribute(Pt.TYPE))?e:void 0}set type(e){e!==this.type&&(e?this.setAttribute(Pt.TYPE,e):this.removeAttribute(Pt.TYPE))}get preload(){let e=this.getAttribute("preload");return""===e?"auto":["none","metadata","auto"].includes(e)?e:super.preload}set preload(e){e!=this.getAttribute("preload")&&(["","none","metadata","auto"].includes(e)?this.setAttribute("preload",e):this.removeAttribute("preload"))}get debug(){return null!=this.getAttribute(Pt.DEBUG)}set debug(e){e!==this.debug&&(e?this.setAttribute(Pt.DEBUG,""):this.removeAttribute(Pt.DEBUG))}get disableTracking(){return this.hasAttribute(Pt.DISABLE_TRACKING)}set disableTracking(e){e!==this.disableTracking&&this.toggleAttribute(Pt.DISABLE_TRACKING,!!e)}get disableCookies(){return this.hasAttribute(Pt.DISABLE_COOKIES)}set disableCookies(e){e!==this.disableCookies&&(e?this.setAttribute(Pt.DISABLE_COOKIES,""):this.removeAttribute(Pt.DISABLE_COOKIES))}get disablePseudoEnded(){return this.hasAttribute(Pt.DISABLE_PSEUDO_ENDED)}set disablePseudoEnded(e){e!==this.disablePseudoEnded&&(e?this.setAttribute(Pt.DISABLE_PSEUDO_ENDED,""):this.removeAttribute(Pt.DISABLE_PSEUDO_ENDED))}get startTime(){let e=this.getAttribute(Pt.START_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set startTime(e){e!==this.startTime&&(null==e?this.removeAttribute(Pt.START_TIME):this.setAttribute(Pt.START_TIME,`${e}`))}get initialBandwidthEstimateKbps(){let e=this.getAttribute(Pt.INITIAL_BANDWIDTH_ESTIMATE_KBPS);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set initialBandwidthEstimateKbps(e){e!==this.initialBandwidthEstimateKbps&&(null==e?this.removeAttribute(Pt.INITIAL_BANDWIDTH_ESTIMATE_KBPS):this.setAttribute(Pt.INITIAL_BANDWIDTH_ESTIMATE_KBPS,`${e}`))}get initialEstimateSegments(){let e=this.getAttribute(Pt.INITIAL_ESTIMATE_SEGMENTS);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set initialEstimateSegments(e){e!==this.initialEstimateSegments&&(null==e?this.removeAttribute(Pt.INITIAL_ESTIMATE_SEGMENTS):this.setAttribute(Pt.INITIAL_ESTIMATE_SEGMENTS,`${e}`))}get minPreloadSegments(){let e=this.getAttribute(Pt.MIN_PRELOAD_SEGMENTS);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set minPreloadSegments(e){e!==this.minPreloadSegments&&(null==e?this.removeAttribute(Pt.MIN_PRELOAD_SEGMENTS):this.setAttribute(Pt.MIN_PRELOAD_SEGMENTS,`${e}`))}get playbackId(){var e;return this.hasAttribute(Pt.PLAYBACK_ID)?this.getAttribute(Pt.PLAYBACK_ID):null!=(e=Fe(this.src))?e:void 0}set playbackId(e){e!==this.playbackId&&(e?this.setAttribute(Pt.PLAYBACK_ID,e):this.removeAttribute(Pt.PLAYBACK_ID))}get maxResolution(){var e;return null!=(e=this.getAttribute(Pt.MAX_RESOLUTION))?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(Pt.MAX_RESOLUTION,e):this.removeAttribute(Pt.MAX_RESOLUTION))}get minResolution(){var e;return null!=(e=this.getAttribute(Pt.MIN_RESOLUTION))?e:void 0}set minResolution(e){e!==this.minResolution&&(e?this.setAttribute(Pt.MIN_RESOLUTION,e):this.removeAttribute(Pt.MIN_RESOLUTION))}get maxAutoResolution(){var e;return null!=(e=this.getAttribute(Pt.MAX_AUTO_RESOLUTION))?e:void 0}set maxAutoResolution(e){null==e?this.removeAttribute(Pt.MAX_AUTO_RESOLUTION):this.setAttribute(Pt.MAX_AUTO_RESOLUTION,e)}get renditionOrder(){var e;return null!=(e=this.getAttribute(Pt.RENDITION_ORDER))?e:void 0}set renditionOrder(e){e!==this.renditionOrder&&(e?this.setAttribute(Pt.RENDITION_ORDER,e):this.removeAttribute(Pt.RENDITION_ORDER))}get programStartTime(){let e=this.getAttribute(Pt.PROGRAM_START_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set programStartTime(e){null==e?this.removeAttribute(Pt.PROGRAM_START_TIME):this.setAttribute(Pt.PROGRAM_START_TIME,`${e}`)}get programEndTime(){let e=this.getAttribute(Pt.PROGRAM_END_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set programEndTime(e){null==e?this.removeAttribute(Pt.PROGRAM_END_TIME):this.setAttribute(Pt.PROGRAM_END_TIME,`${e}`)}get assetStartTime(){let e=this.getAttribute(Pt.ASSET_START_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set assetStartTime(e){null==e?this.removeAttribute(Pt.ASSET_START_TIME):this.setAttribute(Pt.ASSET_START_TIME,`${e}`)}get assetEndTime(){let e=this.getAttribute(Pt.ASSET_END_TIME);if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}set assetEndTime(e){null==e?this.removeAttribute(Pt.ASSET_END_TIME):this.setAttribute(Pt.ASSET_END_TIME,`${e}`)}get customDomain(){var e;return null!=(e=this.getAttribute(Pt.CUSTOM_DOMAIN))?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(Pt.CUSTOM_DOMAIN,e):this.removeAttribute(Pt.CUSTOM_DOMAIN))}get capRenditionToPlayerSize(){var e;return null!=(null==(e=this._hlsConfig)?void 0:e.capLevelToPlayerSize)?this._hlsConfig.capLevelToPlayerSize:Dt(this,Ct)}set capRenditionToPlayerSize(e){wt(this,Ct,e)}get drmToken(){var e;return null!=(e=this.getAttribute(Pt.DRM_TOKEN))?e:void 0}
1set drmToken(e){e!==this.drmToken&&(e?this.setAttribute(Pt.DRM_TOKEN,e):this.removeAttribute(Pt.DRM_TOKEN))}get playbackToken(){var e,t,a,n;if(this.hasAttribute(Pt.PLAYBACK_TOKEN))return null!=(e=this.getAttribute(Pt.PLAYBACK_TOKEN))?e:void 0;if(this.hasAttribute(Pt.PLAYBACK_ID)){let[,e]=N(null!=(t=this.playbackId)?t:"");return null!=(a=new URLSearchParams(e).get("token"))?a:void 0}return this.src&&null!=(n=new URLSearchParams(this.src).get("token"))?n:void 0}set playbackToken(e){e!==this.playbackToken&&(e?this.setAttribute(Pt.PLAYBACK_TOKEN,e):this.removeAttribute(Pt.PLAYBACK_TOKEN))}get tokens(){let e=this.getAttribute(Pt.PLAYBACK_TOKEN),t=this.getAttribute(Pt.DRM_TOKEN);return{...Dt(this,Et),...null!=e?{playback:e}:{},...null!=t?{drm:t}:{}}}set tokens(e){wt(this,Et,null!=e?e:{})}get ended(){return ze(this.nativeEl,this._hls)}get envKey(){var e;return null!=(e=this.getAttribute(Pt.ENV_KEY))?e:void 0}set envKey(e){e!==this.envKey&&(e?this.setAttribute(Pt.ENV_KEY,e):this.removeAttribute(Pt.ENV_KEY))}get beaconCollectionDomain(){var e;return null!=(e=this.getAttribute(Pt.BEACON_COLLECTION_DOMAIN))?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(Pt.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(Pt.BEACON_COLLECTION_DOMAIN))}get streamType(){var e;return null!=(e=this.getAttribute(Pt.STREAM_TYPE))?e:$e(this.nativeEl)}set streamType(e){e!==this.streamType&&(e?this.setAttribute(Pt.STREAM_TYPE,e):this.removeAttribute(Pt.STREAM_TYPE))}get targetLiveWindow(){return this.hasAttribute(Pt.TARGET_LIVE_WINDOW)?+this.getAttribute(Pt.TARGET_LIVE_WINDOW):(e=>{var t,a;return null!=(a=null==(t=Me.get(e))?void 0:t.targetLiveWindow)?a:Number.NaN})(this.nativeEl)}set targetLiveWindow(e){e!=this.targetLiveWindow&&(null==e?this.removeAttribute(Pt.TARGET_LIVE_WINDOW):this.setAttribute(Pt.TARGET_LIVE_WINDOW,""+ +e))}get liveEdgeStart(){var e,t;if(this.hasAttribute(Pt.LIVE_EDGE_OFFSET)){let{liveEdgeOffset:a}=this,n=null!=(e=this.nativeEl.seekable.end(0))?e:0,r=null!=(t=this.nativeEl.seekable.start(0))?t:0;return Math.max(r,n-a)}return(e=>{var t;let a=null==(t=Me.get(e))?void 0:t.liveEdgeStartOffset;if("number"!=typeof a)return Number.NaN;let n=He(e);return n.length?n.end(n.length-1)-a:Number.NaN})(this.nativeEl)}get liveEdgeOffset(){if(this.hasAttribute(Pt.LIVE_EDGE_OFFSET))return+this.getAttribute(Pt.LIVE_EDGE_OFFSET)}set liveEdgeOffset(e){e!=this.liveEdgeOffset&&(null==e?this.removeAttribute(Pt.LIVE_EDGE_OFFSET):this.setAttribute(Pt.LIVE_EDGE_OFFSET,""+ +e))}get seekable(){return He(this.nativeEl)}async addCuePoints(e){return Z(this.nativeEl,e)}get activeCuePoint(){return X(this.nativeEl)}get cuePoints(){return function(e,t={label:G}){let a=$(e,t.label,"metadata");return null!=a&&a.cues?Array.from(a.cues,e=>z(e)):[]}(this.nativeEl)}async addChapters(e){return ee(this.nativeEl,e)}get activeChapter(){return te(this.nativeEl)}get chapters(){return function(e,t={label:q}){var a;let n=$(e,t.label,"chapters");return null!=(a=null==n?void 0:n.cues)&&a.length?Array.from(n.cues,e=>J(e)):[]}(this.nativeEl)}getStartDate(){return function(e,t){if(t){let a=t.playingDate;if(null!=a)return new Date(a.getTime()-1e3*e.currentTime)}return"function"==typeof e.getStartDate?e.getStartDate():new Date(NaN)}(this.nativeEl,this._hls)}get currentPdt(){return function(e,t){if(t&&t.playingDate)return t.playingDate;if("function"==typeof e.getStartDate){let t=e.getStartDate();return new Date(t.getTime()+1e3*e.currentTime)}return new Date(NaN)}(this.nativeEl,this._hls)}get preferPlayback(){let e=this.getAttribute(Pt.PREFER_PLAYBACK);if(e===E||e===v)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===E||e===v?this.setAttribute(Pt.PREFER_PLAYBACK,e):this.removeAttribute(Pt.PREFER_PLAYBACK))}get metadata(){return{...this.getAttributeNames().filter(e=>e.startsWith("metadata-")&&![Pt.METADATA_URL].includes(e)).reduce((e,t)=>{let a=this.getAttribute(t);return null!=a&&(e[t.replace(/^metadata-/,"").replace(/-/g,"_")]=a),e},{}),...Dt(this,bt)}}set metadata(e){wt(this,bt,null!=e?e:{}),this.mux&&this.mux.emit("hb",Dt(this,bt))}
1get _hlsConfig(){return Dt(this,vt)}set _hlsConfig(e){wt(this,vt,e)}get logo(){var e;return null!=(e=this.getAttribute(Pt.LOGO))?e:Dt(this,ft)}set logo(e){e?this.setAttribute(Pt.LOGO,e):this.removeAttribute(Pt.LOGO)}load(){Xe(this,this.nativeEl,Dt(this,_t,Rt))}unload(){qe(this.nativeEl,Dt(this,_t,Rt),this)}attributeChangedCallback(e,t,a){var n,r;switch(St.lB.observedAttributes.includes(e)&&!["src","autoplay","preload"].includes(e)&&super.attributeChangedCallback(e,t,a),e){case Pt.PLAYER_SOFTWARE_NAME:this.playerSoftwareName=null!=a?a:void 0;break;case Pt.PLAYER_SOFTWARE_VERSION:this.playerSoftwareVersion=null!=a?a:void 0;break;case"src":{let e=!!t,n=!!a;!e&&n?Mt(this,_t,kt).call(this):e&&!n?this.unload():e&&n&&(this.unload(),Mt(this,_t,kt).call(this));break}case"autoplay":if(a===t)break;null==(n=Dt(this,_t,Rt))||n.setAutoplay(this.autoplay);break;case"preload":if(a===t)break;null==(r=Dt(this,_t,Rt))||r.setPreload(a);break;case Pt.PLAYBACK_ID:case Pt.CUSTOM_DOMAIN:case Pt.MAX_RESOLUTION:case Pt.MIN_RESOLUTION:case Pt.RENDITION_ORDER:case Pt.PROGRAM_START_TIME:case Pt.PROGRAM_END_TIME:case Pt.ASSET_START_TIME:case Pt.ASSET_END_TIME:case Pt.PLAYBACK_TOKEN:this.src=Ye(this);break;case Pt.DEBUG:{let e=this.debug;this.mux,this._hls&&(this._hls.config.debug=e);break}case Pt.METADATA_URL:a&&fetch(a).then(e=>e.json()).then(e=>this.metadata=e).catch(()=>{});break;case Pt.STREAM_TYPE:(null==a||a!==t)&&this.dispatchEvent(new CustomEvent("streamtypechange",{composed:!0,bubbles:!0}));break;case Pt.TARGET_LIVE_WINDOW:(null==a||a!==t)&&this.dispatchEvent(new CustomEvent("targetlivewindowchange",{composed:!0,bubbles:!0,detail:this.targetLiveWindow}));break;case Pt.LOGO:(null==a||a!==t)&&this.updateLogo();break;case Pt.DISABLE_TRACKING:if(null==a||a!==t){let e=this.currentTime,t=this.paused;this.unload(),Mt(this,_t,kt).call(this).then(()=>{this.currentTime=e,t||this.play()})}break;case Pt.DISABLE_COOKIES:(null==a||a!==t)&&this.disableCookies&&document.cookie.split(";").forEach(e=>{e.trim().startsWith("muxData")&&(document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/"))});break;case Pt.CAP_RENDITION_TO_PLAYER_SIZE:(null==a||a!==t)&&(this.capRenditionToPlayerSize=null!=a||void 0)}}updateLogo(){if(!this.shadowRoot)return;let e=this.shadowRoot.querySelector('slot[name="logo"]');if(!e)return;let t=this.constructor.getLogoHTML(Dt(this,ft)||this.logo);e.innerHTML=t}connectedCallback(){var e,t;null==(e=super.connectedCallback)||e.call(this),null==(t=this.nativeEl)||t.addEventListener("muxmetadata",Dt(this,At)),this.nativeEl&&this.src&&!Dt(this,_t,Rt)&&Mt(this,_t,kt).call(this)}disconnectedCallback(){var e,t;null==(e=this.nativeEl)||e.removeEventListener("muxmetadata",Dt(this,At)),this.unload(),null==(t=super.disconnectedCallback)||t.call(this)}handleEvent(e){e.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(e.type,{composed:!0,detail:e.detail}))}};pt=new WeakMap,ht=new WeakMap,bt=new WeakMap,Et=new WeakMap,vt=new WeakMap,gt=new WeakMap,Tt=new WeakMap,yt=new WeakMap,ft=new WeakMap,At=new WeakMap,_t=new WeakSet,Rt=function(){return e=this.nativeEl,null==(t=Me.get(e))?void 0:t.coreReference;var e,t},Ct=new WeakMap,kt=async function(){Dt(this,pt)||(await wt(this,pt,Promise.resolve()),wt(this,pt,null),this.load())};var Wt=a(96025),Ft=a(35185),Vt=e=>{throw TypeError(e)},$t=(e,t,a)=>t.has(e)||Vt("Cannot "+a),Ht=(e,t,a)=>($t(e,t,"read from private field"),a?a.call(e):t.get(e)),Gt=(e,t,a)=>t.has(e)?Vt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),jt=(e,t,a,n)=>($t(e,t,"write to private field"),n?n.call(e,a):t.set(e,a),a),Zt=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if("undefined"==typeof DocumentFragment){class e extends Zt{}globalThis.DocumentFragment=e}var zt,Xt=class extends Zt{},qt={get(e){},define(e,t,a){},getName:e=>null,upgrade(e){},whenDefined:e=>Promise.resolve(Xt)};zt=new WeakMap;var Qt,Jt={document:{createElement:function(e,t){return new Xt}},DocumentFragment,customElements:qt,CustomEvent:class{constructor(e,t={}){Gt(this,zt),jt(this,zt,null==t?void 0:t.detail)}get detail(){return Ht(this,zt)}initCustomEvent(){}},EventTarget:Zt,HTMLElement:Xt,HTMLVideoElement:class extends Zt{}},ea="undefined"==typeof window||void 0===globalThis.customElements,ta=ea?Jt:globalThis,aa=(ea||globalThis.document,class extends((0,Wt.J)((0,Ft.u6)(Yt))){constructor(){super(...arguments),Gt(this,Qt)}get autoplay(){let e=this.getAttribute("autoplay");return null!==e&&(""===e||e)}set autoplay(e){e!==this.autoplay&&(e?this.setAttribute("autoplay","string"==typeof e?e:""):this.removeAttribute("autoplay"))}get muxCastCustomData(){return{mux:{playbackId:this.playbackId,minResolution:this.minResolution,maxResolution:this.maxResolution,renditionOrder:this.renditionOrder,customDomain:this.customDomain,tokens:{drm:this.drmToken},envKey:this.envKey,metadata:this.metadata,disableCookies:this.disableCookies,disableTracking:this.disableTracking,beaconCollectionDomain:this.beaconCollectionDomain,startTime:this.startTime,preferCmcd:this.preferCmcd}}}get castCustomData(){var e;return null!=(e=Ht(this,Qt))?e:this.muxCastCustomData}set castCustomData(e){jt(this,Qt,e)}});Qt=new WeakMap,ta.customElements.get("mux-video")||(ta.customElements.define("mux-video",aa),ta.MuxVideoElement=aa);var na=a(84688),ra=a(28664),ia=a(17055),oa=(a(59817),a(34836)),la=(a(1160),e=>{throw TypeError(e)}),sa=(e,t,a)=>t.has(e)||la("Cannot "+a),da=(e,t,a)=>(sa(e,t,"read from private field"),a?a.call(e):t.get(e)),ua=(e,t,a)=>t.has(e)?la("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),ma=(e,t,a,n)=>(sa(e,t,"write to private field"),n?n.call(e,a):t.set(e,a),a),ca=(e,t,a)=>(sa(e,t,"access private method"),a),pa=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if("undefined"==typeof DocumentFragment){class e extends pa{}globalThis.DocumentFragment=e}var ha,ba=class extends pa{},Ea={get(e){},define(e,t,a){},getName:e=>null,upgrade(e){},whenDefined:e=>Promise.resolve(ba)};ha=new WeakMap;var va={document:{createElement:function(e,t){return new ba}},DocumentFragment,customElements:Ea,CustomEvent:class{constructor(e,t={}){ua(this,ha),ma(this,ha,null==t?void 0:t.detail)}get detail(){return da(this,ha)}initCustomEvent(){}},EventTarget:pa,HTMLElement:ba,HTMLVideoElement:class extends pa{}},ga="undefined"==typeof window||void 0===globalThis.customElements,Ta=ga?va:globalThis,ya=ga?va.document:globalThis.document;function fa(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Aa(e){return e.replace(/[-_]([a-z])/g,(e,t)=>t.toUpperCase())}function _a(e){if(null==e)return;let t=+e;return Number.isNaN(t)?void 0:t}function Ra(e){let t=function(e){let t={};for(let a in e)null!=e[a]&&(t[a]=e[a]);return new URLSearchParams(t)}(e).toString();return t?"?"+t:""}var Ca=(e,t)=>!(!e||!t)&&(!!e.contains(t)||Ca(e,t.getRootNode().host)),ka="mux.com",Na=(()=>{try{return"3.13.0"}catch{}return"UNKNOWN"})(),Sa=()=>Na,Oa=e=>{if(e){if([b.LIVE,b.ON_DEMAND].includes(e))return e;if(null!=e&&e.includes("live"))return b.LIVE}}
1,Ia={crossorigin:"crossOrigin",playsinline:"playsInline"};function Da(e){var t;return null!=(t=Ia[e])?t:Aa(e)}var La,wa,Ma,xa=class{constructor(e,t){ua(this,La),ua(this,wa),ua(this,Ma,[]),ma(this,La,e),ma(this,wa,t)}[Symbol.iterator](){return da(this,Ma).values()}get length(){return da(this,Ma).length}get value(){var e;return null!=(e=da(this,Ma).join(" "))?e:""}set value(e){var t;e!==this.value&&(ma(this,Ma,[]),this.add(...null!=(t=null==e?void 0:e.split(" "))?t:[]))}toString(){return this.value}item(e){return da(this,Ma)[e]}values(){return da(this,Ma).values()}keys(){return da(this,Ma).keys()}forEach(e){da(this,Ma).forEach(e)}add(...e){var t,a;e.forEach(e=>{this.contains(e)||da(this,Ma).push(e)}),(""!==this.value||null!=(t=da(this,La))&&t.hasAttribute(`${da(this,wa)}`))&&(null==(a=da(this,La))||a.setAttribute(`${da(this,wa)}`,`${this.value}`))}remove(...e){var t;e.forEach(e=>{da(this,Ma).splice(da(this,Ma).indexOf(e),1)}),null==(t=da(this,La))||t.setAttribute(`${da(this,wa)}`,`${this.value}`)}contains(e){return da(this,Ma).includes(e)}toggle(e,t){return void 0!==t?t?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,t){this.remove(e),this.add(t)}};La=new WeakMap,wa=new WeakMap,Ma=new WeakMap;Sa();function Pa(e){var t;let a=null!=(t=e.message)?t:"";e.context&&(a+=` ${e.context}`),e.file&&(a+=` ${P("Read more: ")}\nhttps://github.com/muxinc/elements/blob/main/errors/${e.file}`)}var Ua={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},Ka={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},Ba=Object.freeze({length:0,start(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(e){let t=e>>>0;if(t>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${t}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),Ya=[...Object.values(Ua).filter(e=>Ua.PLAYSINLINE!==e),...Object.values(Ka)],Wa=class extends Ta.HTMLElement{static get observedAttributes(){return Ya}constructor(){super()}attributeChangedCallback(e,t,a){var n,r;switch(e){case Ka.MUTED:return void(this.media&&(this.media.muted=null!=a,this.media.defaultMuted=null!=a));case Ka.VOLUME:{let e=null!=(n=_a(a))?n:1;return void(this.media&&(this.media.volume=e))}case Ka.PLAYBACKRATE:{let e=null!=(r=_a(a))?r:1;return void(this.media&&(this.media.playbackRate=e,this.media.defaultPlaybackRate=e))}}}play(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.play())?t:Promise.reject()}pause(){var e;null==(e=this.media)||e.pause()}load(){var e;null==(e=this.media)||e.load()}get media(){var e;return null==(e=this.shadowRoot)?void 0:e.querySelector("mux-video")}get audioTracks(){return this.media.audioTracks}get videoTracks(){return this.media.videoTracks}get audioRenditions(){return this.media.audioRenditions}get videoRenditions(){return this.media.videoRenditions}get paused(){var e,t;return null==(t=null==(e=this.media)?void 0:e.paused)||t}get duration(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.duration)?t:NaN}get ended(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.ended)&&t}get buffered(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.buffered)?t:Ba}get seekable(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.seekable)?t:Ba}get readyState(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.readyState)?t:0}get videoWidth(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.videoWidth)?t:0}get videoHeight(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.videoHeight)?t:0}get currentSrc(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.currentSrc)?t:""}get currentTime(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.currentTime)?t:0}set currentTime(e){this.media&&(this.media.currentTime=Number(e))}get volume(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.volume)?t:1}set volume(e){this.media&&(this.media.volume=Number(e))}get playbackRate(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.playbackRate)?t:1}set playbackRate(e){this.media&&(this.media.playbackRate=Number(e))}get defaultPlaybackRate(){var e;return null!=(e=_a(this.getAttribute(Ka.PLAYBACKRATE)))?e:1}set defaultPlaybackRate(e){null!=e?this.setAttribute(Ka.PLAYBACKRATE,`${e}`):this.removeAttribute(Ka.PLAYBACKRATE)}get crossOrigin(){return Fa(this,Ua.CROSSORIGIN)}set crossOrigin(e){this.setAttribute(Ua.CROSSORIGIN,`${e}`)}get autoplay(){return null!=Fa(this,Ua.AUTOPLAY)}set autoplay(e){e?this.setAttribute(Ua.AUTOPLAY,"string"==typeof e?e:""):this.removeAttribute(Ua.AUTOPLAY)}get loop(){return null!=Fa(this,Ua.LOOP)}set loop(e){e?this.setAttribute(Ua.LOOP,""):this.removeAttribute(Ua.LOOP)}get muted(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.muted)&&t}set muted(e){this.media&&(this.media.muted=!!e)}get defaultMuted(){return null!=Fa(this,Ua.MUTED)}set defaultMuted(e){e?this.setAttribute(Ua.MUTED,""):this.removeAttribute(Ua.MUTED)}
1get playsInline(){return null!=Fa(this,Ua.PLAYSINLINE)}set playsInline(e){}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(e){["","none","metadata","auto"].includes(e)?this.setAttribute(Ua.PRELOAD,e):this.removeAttribute(Ua.PRELOAD)}};function Fa(e,t){return e.media?e.media.getAttribute(t):e.getAttribute(t)}var Va=Wa,$a=new WeakMap,Ha=class e{constructor(e,t){this.element=e,this.type=t,this.element.addEventListener(this.type,this);let a=$a.get(this.element);a&&a.set(this.type,this)}set(e){if("function"==typeof e)this.handleEvent=e.bind(this.element);else if("object"==typeof e&&"function"==typeof e.handleEvent)this.handleEvent=e.handleEvent.bind(e);else{this.element.removeEventListener(this.type,this);let e=$a.get(this.element);e&&e.delete(this.type)}}static for(t){$a.has(t.element)||$a.set(t.element,new Map);let a=t.attributeName.slice(2),n=$a.get(t.element);return n&&n.has(a)?n.get(a):new e(t.element,a)}};function Ga(e,t){(function(e,t){if(e instanceof oa.db&&t instanceof Element){let a=e.element;return a[e.attributeName]!==t&&(e.element.removeAttributeNS(e.attributeNamespace,e.attributeName),a[e.attributeName]=t),!0}return!1})(e,t)||function(e,t){if("boolean"==typeof t&&e instanceof oa.db){let a=e.attributeNamespace;return t!==e.element.hasAttributeNS(a,e.attributeName)&&(e.booleanValue=t),!0}return!1}(e,t)||function(e,t){return!!(e instanceof oa.db&&e.attributeName.startsWith("on"))&&(Ha.for(e).set(t),e.element.removeAttributeNS(e.attributeNamespace,e.attributeName),!0)}(e,t)||function(e,t){return!1===t&&e instanceof oa.cV&&(e.replace(""),!0)}(e,t)||function(e,t){return t instanceof Xa&&e instanceof oa.cV&&(t.renderInto(e),!0)}(e,t)||function(e,t){return t instanceof DocumentFragment&&e instanceof oa.cV&&(t.childNodes.length&&e.replace(...t.childNodes),!0)}(e,t)||function(e,t){if(e instanceof oa.db){let a=e.attributeNamespace,n=e.element.getAttributeNS(a,e.attributeName);return String(t)!==n&&(e.value=String(t)),!0}e.value=String(t)}(e,t)}var ja=new Map,Za=new WeakMap,za=new WeakMap,Xa=class{constructor(e,t,a){this.strings=e,this.values=t,this.processor=a,this.stringsKey=this.strings.join("�")}get template(){if(ja.has(this.stringsKey))return ja.get(this.stringsKey);{let e=ya.createElement("template"),t=this.strings.length-1;return e.innerHTML=this.strings.reduce((e,a,n)=>e+a+(n<t?`{{ ${n} }}`:""),""),ja.set(this.stringsKey,e),e}}renderInto(e){var t;let a=this.template;if(Za.get(e)!==a){Za.set(e,a);let t=new oa.i4(a,this.values,this.processor);return za.set(e,t),void(e instanceof oa.cV?e.replace(...t.children):e.appendChild(t))}let n=za.get(e);null==(t=null==n?void 0:n.update)||t.call(n,this.values)}},qa={processCallback(e,t,a){var n;if(a)for(let[e,r]of t)if(e in a){Ga(r,null!=(n=a[e])?n:"")}}};function Qa(e,...t){return new Xa(e,t,qa)}var Ja=Object.values({TOP:"top",CENTER:"center",BOTTOM:"bottom",LAYER:"layer",MEDIA_LAYER:"media-layer",POSTER_LAYER:"poster-layer",VERTICAL_LAYER:"vertical-layer",CENTERED_LAYER:"centered-layer",GESTURE_LAYER:"gesture-layer",CONTROLLER_LAYER:"controller",BUTTON:"button",RANGE:"range",THUMB:"thumb",DISPLAY:"display",CONTROL_BAR:"control-bar",MENU_BUTTON:"menu-button",MENU:"menu",MENU_ITEM:"menu-item",OPTION:"option",POSTER:"poster",LIVE:"live",PLAY:"play",PRE_PLAY:"pre-play",SEEK_BACKWARD:"seek-backward",SEEK_FORWARD:"seek-forward",MUTE:"mute",CAPTIONS:"captions",AIRPLAY:"airplay",PIP:"pip",FULLSCREEN:"fullscreen",CAST:"cast",PLAYBACK_RATE:"playback-rate",VOLUME:"volume",TIME:"time",TITLE:"title",AUDIO_TRACK:"audio-track",RENDITION:"rendition"}).join(", "),en=e=>{var t,a,n,r,i,o,l,s,d,u,m,c,p,h,E,v,g,T,y,f,A,_,R,C,k,N,S,O,I,D,L,w,M,x,P,U,K,B,Y,W,F;return Qa`
2  <media-theme
3    template="${e.themeTemplate||!1}"
4    defaultstreamtype="${null!=(t=e.defaultStreamType)&&t}"
5    hotkeys="${(e=>{let t=e.hotKeys?`${e.hotKeys}`:"";return"live"===Oa(e.streamType)&&(t+=" noarrowleft noarrowright"),t})(e)||!1}"
6    nohotkeys="${e.noHotKeys||!e.hasSrc||!1}"
7    noautoseektolive="${!(null==(a=e.streamType)||!a.includes(b.LIVE))&&0!==e.targetLiveWindow}"
8    novolumepref="${e.novolumepref||!1}"
9    nomutedpref="${e.nomutedpref||!1}"
10    disabled="${!e.hasSrc||e.isDialogOpen}"
11    audio="${null!=(n=e.audio)&&n}"
12    style="${null!=(r=function(e){let t="";return Object.entries(e).forEach(([e,a])=>{null!=a&&(t+=`${fa(e)}: ${a}; `)}),t?t.trim():void 0}({"--media-primary-color":e.primaryColor,"--media-secondary-color":e.secondaryColor,"--media-accent-color":e.accentColor}))&&r}"
13    defaultsubtitles="${!e.defaultHiddenCaptions}"
14    forwardseekoffset="${null!=(i=e.forwardSeekOffset)&&i}"
15    backwardseekoffset="${null!=(o=e.backwardSeekOffset)&&o}"
16    playbackrates="${null!=(l=e.playbackRates)&&l}"
17    defaultshowremainingtime="${null!=(s=e.defaultShowRemainingTime)&&s}"
18    defaultduration="${null!=(d=e.defaultDuration)&&d}"
19    hideduration="${null!=(u=e.hideDuration)&&u}"
20    title="${null!=(m=e.title)&&m}"
21    videotitle="${null!=(c=e.videoTitle)&&c}"
22    proudlydisplaymuxbadge="${null!=(p=e.proudlyDisplayMuxBadge)&&p}"
23    exportparts="${Ja}"
24    onclose="${e.onCloseErrorDialog}"
25    onfocusin="${e.onFocusInErrorDialog}"
26  >
27    <mux-video
28      slot="media"
29      inert="${null!=(h=e.noHotKeys)&&h}"
30      target-live-window="${null!=(E=e.targetLiveWindow)&&E}"
31      stream-type="${null!=(v=Oa(e.streamType))&&v}"
32      crossorigin="${null!=(g=e.crossOrigin)?g:""}"
33      playsinline
34      autoplay="${null!=(T=e.autoplay)&&T}"
35      muted="${null!=(y=e.muted)&&y}"
36      loop="${null!=(f=e.loop)&&f}"
37      preload="${null!=(A=e.preload)&&A}"
38      debug="${null!=(_=e.debug)&&_}"
39      prefer-cmcd="${null!=(R=e.preferCmcd)&&R}"
40      disable-tracking="${null!=(C=e.disableTracking)&&C}"
41      disable-cookies="${null!=(k=e.disableCookies)&&k}"
42      prefer-playback="${null!=(N=e.preferPlayback)&&N}"
43      start-time="${null!=e.startTime&&e.startTime}"
44      initial-bandwidth-estimate-kbps="${null!=e.initialBandwidthEstimateKbps&&e.initialBandwidthEstimateKbps}"
45      initial-estimate-segments="${null!=e.initialEstimateSegments&&e.initialEstimateSegments}"
46      min-preload-segments="${null!=e.minPreloadSegments&&e.minPreloadSegments}"
47      beacon-collection-domain="${null!=(S=e.beaconCollectionDomain)&&S}"
48      player-init-time="${null!=(O=e.playerInitTime)&&O}"
49      player-software-name="${null!=(I=e.playerSoftwareName)&&I}"
50      player-software-version="${null!=(D=e.playerSoftwareVersion)&&D}"
51      env-key="${null!=(L=e.envKey)&&L}"
52      custom-domain="${null!=(w=e.customDomain)&&w}"
53      src="${e.src?e.src:!!e.playbackId&&Ye(e)}"
54      cast-src="${e.src?e.src:!!e.playbackId&&Ye(e)}"
55      cast-receiver="${null!=(M=e.castReceiver)&&M}"
56      drm-token="${null!=(P=null==(x=e.tokens)?void 0:x.drm)&&P}"
57      playback-token="${null!=(K=null==(U=e.tokens)?void 0:U.playback)&&K}"
58      exportparts="video"
59      disable-pseudo-ended="${null!=(B=e.disablePseudoEnded)&&B}"
60      max-auto-resolution="${null!=(Y=e.maxAutoResolution)&&Y}"
61      cap-rendition-to-player-size="${null!=(W=e.capRenditionToPlayerSize)&&W}"
62    >
63      ${e.storyboard?Qa`<track label="thumbnails" default kind="metadata" src="${e.storyboard}" />`:Qa``}
64      <slot></slot>
65    </mux-video>
66    <slot name="poster" slot="poster">
67      <media-poster-image
68        part="poster"
69        exportparts="poster, img"
70        src="${!!e.poster&&e.poster}"
71        placeholdersrc="${null!=(F=e.placeholder)&&F}"
72      ></media-poster-image>
73    </slot>
74  </media-theme>
75`},tn=e=>e.charAt(0).toUpperCase()+e.slice(1),an=(e,t=!1)=>{let a=((e,t=!1)=>{var a,n;if(e.muxCode){let r=tn(null!=(a=e.errorCategory)?a:"video"),i=u(null!=(n=e.errorCategory)?n:l);if(e.muxCode===d.NETWORK_OFFLINE)return P("Your device appears to be offline",t);if(e.muxCode===d.NETWORK_TOKEN_EXPIRED)return P("{category} URL has expired",t).format({category:r});if([d.NETWORK_TOKEN_SUB_MISMATCH,d.NETWORK_TOKEN_AUD_MISMATCH,d.NETWORK_TOKEN_AUD_MISSING,d.NETWORK_TOKEN_MALFORMED].includes(e.muxCode))return P("{category} URL is formatted incorrectly",t).format({category:r});if(e.muxCode===d.NETWORK_TOKEN_MISSING)return P("Invalid {categoryName} URL",t).format({categoryName:i});if(e.muxCode===d.NETWORK_NOT_FOUND)return P("{category} does not exist",t).format({category:r});if(e.muxCode===d.NETWORK_NOT_READY){let a="live"===e.streamType?"Live stream":"Video";return P("{mediaType} is not currently available",t).format({mediaType:a})}}if(e.code){if(e.code===c.MEDIA_ERR_NETWORK)return P("Network Error",t);if(e.code===c.MEDIA_ERR_DECODE)return P("Media Error",t);if(e.code===c.MEDIA_ERR_SRC_NOT_SUPPORTED)return P("Source Not Supported",t)}return P("Error",t)})(e,t).toString(),n=((e,t=!1)=>{var a,n;if(e.muxCode){let r=tn(null!=(a=e.errorCategory)?a:"video"),i=u(null!=(n=e.errorCategory)?n:l);return e.muxCode===d.NETWORK_OFFLINE?P("Check your internet connection and try reloading this video.",t):e.muxCode===d.NETWORK_TOKEN_EXPIRED?P("The video’s secured {tokenNamePrefix}-token has expired.",t).format({tokenNamePrefix:i}):e.muxCode===d.NETWORK_TOKEN_SUB_MISMATCH?P("The video’s playback ID does not match the one encoded in the {tokenNamePrefix}-token.",t).format({tokenNamePrefix:i}):e.muxCode===d.NETWORK_TOKEN_MALFORMED?P("{category} URL is formatted incorrectly",t).format({category:r}):[d.NETWORK_TOKEN_AUD_MISMATCH,d.NETWORK_TOKEN_AUD_MISSING].includes(e.muxCode)?P("The {tokenNamePrefix}-token is formatted with incorrect information.",t).format({tokenNamePrefix:i}):[d.NETWORK_TOKEN_MISSING,d.NETWORK_INVALID_URL].includes(e.muxCode)?P("The video URL or {tokenNamePrefix}-token are formatted with incorrect or incomplete information.",t).format({tokenNamePrefix:i}):e.muxCode===d.NETWORK_NOT_FOUND?"":e.message}return e.code&&(e.code===c.MEDIA_ERR_NETWORK||e.code===c.MEDIA_ERR_DECODE||(e.code,c.MEDIA_ERR_SRC_NOT_SUPPORTED)),e.message})(e,t).toString();return{title:a,message:n}},nn=(e,t)=>{let a=(e=>{if(e.muxCode){if(e.muxCode===d.NETWORK_TOKEN_EXPIRED)return"403-expired-token.md";if(e.muxCode===d.NETWORK_TOKEN_MALFORMED)return"403-malformatted-token.md";if([d.NETWORK_TOKEN_AUD_MISMATCH,d.NETWORK_TOKEN_AUD_MISSING].includes(e.muxCode))return"403-incorrect-aud-value.md";if(e.muxCode===d.NETWORK_TOKEN_SUB_MISMATCH)return"403-playback-id-mismatch.md";if(e.muxCode===d.NETWORK_TOKEN_MISSING)return"missing-signed-tokens.md";if(e.muxCode===d.NETWORK_NOT_FOUND)return"404-not-found.md";if(e.muxCode===d.NETWORK_NOT_READY)return"412-not-playable.md"}if(e.code){if(e.code===c.MEDIA_ERR_NETWORK)return"";if(e.code===c.MEDIA_ERR_DECODE)return"media-decode-error.md";if(e.code===c.MEDIA_ERR_SRC_NOT_SUPPORTED)return"media-src-not-supported.md"}return""})(e);return{message:e.message,context:e.context,file:a}},rn=ya.createElement("template");"innerHTML"in rn&&(rn.innerHTML='<template id="media-theme-gerwig">\n  <style>\n    @keyframes pre-play-hide {\n      0% {\n        transform: scale(1);\n        opacity: 1;\n      }\n\n      30% {\n        transform: scale(0.7);\n      }\n\n      100% {\n        transform: scale(1.5);\n        opacity: 0;\n      }\n    }\n\n    :host {\n      --_primary-color: var(--media-primary-color, #fff);\n      --_secondary-color: var(--media-secondary-color, transparent);\n      --_accent-color: var(--media-accent-color, #fa50b5);\n      --_text-color: var(--media-text-color, #000);\n\n      --media-icon-color: var(--_primary-color);\n      --media-control-background: var(--_secondary-color);\n      --media-control-hover-background: var(--_accent-color);\n      --media-time-buffered-color: rgba(255, 255, 255, 0.4);\n      --media-preview-time-text-shadow: none;\n      --media-control-height: 14px;\n      --media-control-padding: 6px;\n      --media-tooltip-container-margin: 6px;\n      --media-tooltip-distance: 18px;\n\n      color: var(--_primary-color);\n      display: inline-block;\n      width: 100%;\n      height: 100%;\n    }\n\n    :host([audio]) {\n      --_secondary-color: var(--media-secondary-color, black);\n      --media-preview-time-text-shadow: none;\n    }\n\n    :host([audio]) ::slotted([slot=\'media\']) {\n      height: 0px;\n    }\n\n    :host([audio]) media-loading-indicator {\n      display: none;\n    }\n\n    :host([audio]) media-controller {\n      background: transparent;\n    }\n\n    :host([audio]) media-controller::part(vertical-layer) {\n      background: transparent;\n    }\n\n    :host([audio]) media-control-bar {\n      width: 100%;\n      background-color: var(--media-control-background);\n    }\n\n    /*\n     * 0.433s is the transition duration for VTT Regions.\n     * Borrowed here, so the captions don\'t move too fast.\n     */\n    media-controller {\n      --media-webkit-text-track-transform: translateY(0) scale(0.98);\n      --media-webkit-text-track-transition: transform 0.433s ease-out 0.3s;\n    }\n    media-controller:is([mediapaused], :not([userinactive])) {\n      --media-webkit-text-track-transform: translateY(-50px) scale(0.98);\n      --media-webkit-text-track-transition: transform 0.15s ease;\n    }\n\n    /*\n     * CSS specific to iOS devices.\n     * See: https://stackoverflow.com/questions/30102792/css-media-query-to-target-only-ios-devices/60220757#60220757\n     */\n    @supports (-webkit-touch-callout: none) {\n      /* Disable subtitle adjusting for iOS Safari */\n      media-controller[mediaisfullscreen] {\n        --media-webkit-text-track-transform: unset;\n        --media-webkit-text-track-transition: unset;\n      }\n    }\n\n    media-time-range {\n      --media-box-padding-left: 6px;\n      --media-box-padding-right: 6px;\n      --media-range-bar-color: var(--_accent-color);\n      --media-time-range-buffered-color: var(--_primary-color);\n      --media-range-track-color: transparent;\n      --media-range-track-background: rgba(255, 255, 255, 0.4);\n      --media-range-thumb-background: radial-gradient(\n        circle,\n        #000 0%,\n        #000 25%,\n        var(--_accent-color) 25%,\n        var(--_accent-color)\n      );\n      --media-range-thumb-width: 12px;\n      --media-range-thumb-height: 12px;\n      --media-range-thumb-transform: scale(0);\n      --media-range-thumb-transition: transform 0.3s;\n      --media-range-thumb-opacity: 1;\n      --media-preview-background: var(--_primary-color);\n      --media-box-arrow-background: var(--_primary-color);
75\n      --media-preview-thumbnail-border: 5px solid var(--_primary-color);\n      --media-preview-border-radius: 5px;\n      --media-text-color: var(--_text-color);\n      --media-control-hover-background: transparent;\n      --media-preview-chapter-text-shadow: none;\n      color: var(--_accent-color);\n      padding: 0 6px;\n    }\n\n    :host([audio]) media-time-range {\n      --media-preview-time-padding: 1.5px 6px;\n      --media-preview-box-margin: 0 0 -5px;\n    }\n\n    media-time-range:hover {\n      --media-range-thumb-transform: scale(1);\n    }\n\n    media-preview-thumbnail {\n      border-bottom-width: 0;\n    }\n\n    [part~=\'menu\'] {\n      border-radius: 2px;\n      border: 1px solid rgba(0, 0, 0, 0.1);\n      bottom: 50px;\n      padding: 2.5px 10px;\n    }\n\n    [part~=\'menu\']::part(indicator) {\n      fill: var(--_accent-color);\n    }\n\n    [part~=\'menu\']::part(menu-item) {\n      box-sizing: border-box;\n      display: flex;\n      align-items: center;\n      padding: 6px 10px;\n      min-height: 34px;\n    }\n\n    [part~=\'menu\']::part(checked) {\n      font-weight: 700;\n    }\n\n    media-captions-menu,\n    media-rendition-menu,\n    media-audio-track-menu,\n    media-playback-rate-menu {\n      position: absolute; /* ensure they don\'t take up space in DOM on load */\n      --media-menu-background: var(--_primary-color);\n      --media-menu-item-checked-background: transparent;\n      --media-text-color: var(--_text-color);\n      --media-menu-item-hover-background: transparent;\n      --media-menu-item-hover-outline: var(--_accent-color) solid 1px;\n    }\n\n    media-rendition-menu {\n      min-width: 140px;\n    }\n\n    /* The icon is a circle so make it 16px high instead of 14px for more balance. */\n    media-audio-track-menu-button {\n      --media-control-padding: 5px;\n      --media-control-height: 16px;\n    }\n\n    media-playback-rate-menu-button {\n      --media-control-padding: 6px 3px;\n      min-width: 4.4ch;\n    }\n\n    media-playback-rate-menu {\n      --media-menu-flex-direction: row;\n      --media-menu-item-checked-background: var(--_accent-color);\n      --media-menu-item-checked-indicator-display: none;\n      margin-right: 6px;\n      padding: 0;\n      --media-menu-gap: 0.25em;\n    }\n\n    media-playback-rate-menu[part~=\'menu\']::part(menu-item) {\n      padding: 6px 6px 6px 8px;\n    }\n\n    media-playback-rate-menu[part~=\'menu\']::part(checked) {\n      color: #fff;\n    }\n\n    :host(:not([audio])) media-time-range {\n      /* Adding px is required here for calc() */\n      --media-range-padding: 0px;\n      background: transparent;\n      z-index: 10;\n      height: 10px;\n      bottom: -3px;\n      width: 100%;\n    }\n\n    media-control-bar :is([role=\'button\'], [role=\'switch\'], button) {\n      line-height: 0;\n    }\n\n    media-control-bar :is([part*=\'button\'], [part*=\'range\'], [part*=\'display\']) {\n      border-radius: 3px;\n    }\n\n    .spacer {\n      flex-grow: 1;\n      background-color: var(--media-control-background, rgba(20, 20, 30, 0.7));\n    }\n\n    media-control-bar[slot~=\'top-chrome\'] {\n      min-height: 42px;\n      pointer-events: none;\n    }\n\n    media-control-bar {\n      --gradient-steps:\n        hsl(0 0% 0% / 0) 0%, hsl(0 0% 0% / 0.013) 8.1%, hsl(0 0% 0% / 0.049) 15.5%, hsl(0 0% 0% / 0.104) 22.5%,\n        hsl(0 0% 0% / 0.175) 29%, hsl(0 0% 0% / 0.259) 35.3%, hsl(0 0% 0% / 0.352) 41.2%, hsl(0 0% 0% / 0.45) 47.1%,\n        hsl(0 0% 0% / 0.55) 52.9%, hsl(0 0% 0% / 0.648) 58.8%, hsl(0 0% 0% / 0.741) 64.7%, hsl(0 0% 0% / 0.825) 71%,\n        hsl(0 0% 0% / 0.896) 77.5%, hsl(0 0% 0% / 0.951) 84.5%, hsl(0 0% 0% / 0.987) 91.9%, hsl(0 0% 0%) 100%;\n    }\n\n    :host([title]) media-control-bar[slot=\'top-chrome\']::before,\n    :host([videotitle]) media-control-bar[slot=\'top-chrome\']::before {\n      content: \'\';\n      position: absolute;\n      width: 100%;\n      padding-bottom: min(100px, 25%);\n      background: linear-gradient(to top, var(--gradient-steps));\n      opacity: 0.8;\n      pointer-events: none;\n    }\n\n    :host(:not([audio])) media-control-bar[part~=\'bottom\']::before {\n      content: \'\';\n      position: absolute;\n      width: 100%;\n      bottom: 0;\n      left: 0;\n      padding-bottom: min(100px, 25%);\n      background: linear-gradient(to bottom, var(--gradient-steps));\n      opacity: 0.8;\n      z-index: 1;\n      pointer-events: none;\n    }\n\n    media-control-bar[part~=\'bottom\'] > * {\n      z-index: 20;\n    }\n\n    media-control-bar[part~=\'bottom\'] {\n      padding: 6px 6px;\n    }\n\n    media-control-bar[slot~=\'top-chrome\'] > * {\n      --media-control-background: transparent;\n      --media-control-hover-background: transparent;\n      position: relative;\n    }\n\n    media-controller::part(vertical-layer) {\n      transition: background-color 1s;\n    }\n\n    media-controller:is([mediapaused], :not([userinactive]))::part(vertical-layer) {\n      background-color: var(--controls-backdrop-color, var(--controls, transparent));\n      transition: background-color 0.25s;\n    }
75\n\n    .center-controls {\n      --media-button-icon-width: 100%;\n      --media-button-icon-height: auto;\n      --media-tooltip-display: none;\n      pointer-events: none;\n      width: 100%;\n      display: flex;\n      flex-flow: row;\n      align-items: center;\n      justify-content: center;\n      paint-order: stroke;\n      stroke: rgba(102, 102, 102, 1);\n      stroke-width: 0.3px;\n      text-shadow:\n        0 0 2px rgb(0 0 0 / 0.25),\n        0 0 6px rgb(0 0 0 / 0.25);\n    }\n\n    .center-controls media-play-button {\n      --media-control-background: transparent;\n      --media-control-hover-background: transparent;\n      --media-control-padding: 0;\n      width: 40px;\n      filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25));\n    }\n\n    [breakpointsm] .center-controls media-play-button {\n      width: 90px;\n      height: 90px;\n      border-radius: 50%;\n      transition: background 0.4s;\n      padding: 24px;\n      --media-control-background: #000;\n      --media-control-hover-background: var(--_accent-color);\n    }\n\n    .center-controls media-seek-backward-button,\n    .center-controls media-seek-forward-button {\n      --media-control-background: transparent;\n      --media-control-hover-background: transparent;\n      padding: 0;\n      margin: 0 20px;\n      width: max(33px, min(8%, 40px));\n      text-shadow:\n        0 0 2px rgb(0 0 0 / 0.25),\n        0 0 6px rgb(0 0 0 / 0.25);\n    }\n\n    [breakpointsm]:not([audio]) .center-controls.pre-playback {\n      display: grid;\n      align-items: initial;\n      justify-content: initial;\n      height: 100%;\n      overflow: hidden;\n    }\n\n    [breakpointsm]:not([audio]) .center-controls.pre-playback media-play-button {\n      place-self: var(--_pre-playback-place, center);\n      grid-area: 1 / 1;\n      margin: 16px;\n    }\n\n    /* Show and hide controls or pre-playback state */\n\n    [breakpointsm]:is([mediahasplayed], :not([mediapaused])):not([audio])\n      .center-controls.pre-playback\n      media-play-button {\n      /* Using `forwards` would lead to a laggy UI after the animation got in the end state */\n      animation: 0.3s linear pre-play-hide;\n      opacity: 0;\n      pointer-events: none;\n    }\n\n    .autoplay-unmute {\n      --media-control-hover-background: transparent;\n      width: 100%;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n      filter: drop-shadow(0 0 2px rgb(0 0 0 / 0.25)) drop-shadow(0 0 6px rgb(0 0 0 / 0.25));\n    }\n\n    .autoplay-unmute-btn {\n      --media-control-height: 16px;\n      border-radius: 8px;\n      background: #000;\n      color: var(--_primary-color);\n      display: flex;\n      align-items: center;\n      padding: 8px 16px;\n      font-size: 18px;\n      font-weight: 500;\n      cursor: pointer;\n    }\n\n    .autoplay-unmute-btn:hover {\n      background: var(--_accent-color);\n    }\n\n    [breakpointsm] .autoplay-unmute-btn {\n      --media-control-height: 30px;\n      padding: 14px 24px;\n      font-size: 26px;\n    }\n\n    .autoplay-unmute-btn svg {\n      margin: 0 6px 0 0;\n    }\n\n    [breakpointsm] .autoplay-unmute-btn svg {\n      margin: 0 10px 0 0;\n    }\n\n    media-controller:not([audio]):not([mediahasplayed]) *:is(media-control-bar, media-time-range) {\n      display: none;\n    }\n\n    media-error-dialog:not([mediaerrorcode]) {\n      opacity: 0;\n    }\n\n    media-loading-indicator {\n      --media-loading-icon-width: 100%;\n      --media-button-icon-height: auto;\n      display: var(--media-control-display, var(--media-loading-indicator-display, flex));\n      pointer-events: none;\n      position: absolute;\n      width: min(15%, 150px);\n      flex-flow: row;\n      align-items: center;\n      justify-content: center;\n    }\n\n    /* Intentionally don\'t target the div for transition but the children\n     of the div. Prevents messing with media-chrome\'s autohide feature. */\n    media-loading-indicator + div * {\n      transition: opacity 0.15s;\n      opacity: 1;\n    }\n\n    media-loading-indicator[medialoading]:not([mediapaused]) ~ div > * {\n      opacity: 0;\n      transition-delay: 400ms;\n    }\n\n    media-volume-range {\n      width: min(100%, 100px);\n      --media-range-padding-left: 10px;\n      --media-range-padding-right: 10px;\n      --media-range-thumb-width: 12px;\n      --media-range-thumb-height: 12px;\n      --media-range-thumb-background: radial-gradient(\n        circle,\n        #000 0%,\n        #000 25%,\n        var(--_primary-color) 25%,\n        var(--_primary-color)\n      );\n      --media-control-hover-background: none;\n    }\n\n    media-time-display {\n      white-space: nowrap;\n    }\n\n    /* Generic style for explicitly disabled controls */\n    media-control-bar[part~=\'bottom\'] [disabled],\n    media-control-bar[part~=\'bottom\'] [aria-disabled=\'true\'] {\n      opacity: 60%;
75\n      cursor: not-allowed;\n    }\n\n    media-text-display {\n      --media-font-size: 16px;\n      --media-control-padding: 14px;\n      font-weight: 500;\n    }\n\n    media-play-button.animated *:is(g, path) {\n      transition: all 0.3s;\n    }\n\n    media-play-button.animated[mediapaused] .pause-icon-pt1 {\n      opacity: 0;\n    }\n\n    media-play-button.animated[mediapaused] .pause-icon-pt2 {\n      transform-origin: center center;\n      transform: scaleY(0);\n    }\n\n    media-play-button.animated[mediapaused] .play-icon {\n      clip-path: inset(0 0 0 0);\n    }\n\n    media-play-button.animated:not([mediapaused]) .play-icon {\n      clip-path: inset(0 0 0 100%);\n    }\n\n    media-seek-forward-button,\n    media-seek-backward-button {\n      --media-font-weight: 400;\n    }\n\n    .mute-icon {\n      display: inline-block;\n    }\n\n    .mute-icon :is(path, g) {\n      transition: opacity 0.5s;\n    }\n\n    .muted {\n      opacity: 0;\n    }\n\n    media-mute-button[mediavolumelevel=\'low\'] :is(.volume-medium, .volume-high),\n    media-mute-button[mediavolumelevel=\'medium\'] :is(.volume-high) {\n      opacity: 0;\n    }\n\n    media-mute-button[mediavolumelevel=\'off\'] .unmuted {\n      opacity: 0;\n    }\n\n    media-mute-button[mediavolumelevel=\'off\'] .muted {\n      opacity: 1;\n    }\n\n    /**\n     * Our defaults for these buttons are to hide them at small sizes\n     * users can override this with CSS\n     */\n    media-controller:not([breakpointsm]):not([audio]) {\n      --bottom-play-button: none;\n      --bottom-seek-backward-button: none;\n      --bottom-seek-forward-button: none;\n      --bottom-time-display: none;\n      --bottom-playback-rate-menu-button: none;\n      --bottom-pip-button: none;\n    }\n\n    [part=\'mux-badge\'] {\n      position: absolute;\n      bottom: 10px;\n      right: 10px;\n      z-index: 2;\n      opacity: 0.6;\n      transition:\n        opacity 0.2s ease-in-out,\n        bottom 0.2s ease-in-out;\n    }\n\n    [part=\'mux-badge\']:hover {\n      opacity: 1;\n    }\n\n    [part=\'mux-badge\'] a {\n      font-size: 14px;\n      font-family: var(--_font-family);\n      color: var(--_primary-color);\n      text-decoration: none;\n      display: flex;\n      align-items: center;\n      gap: 5px;\n    }\n\n    [part=\'mux-badge\'] .mux-badge-text {\n      transition: opacity 0.5s ease-in-out;\n      opacity: 0;\n    }\n\n    [part=\'mux-badge\'] .mux-badge-logo {\n      width: 40px;\n      height: auto;\n      display: inline-block;\n    }\n\n    [part=\'mux-badge\'] .mux-badge-logo svg {\n      width: 100%;\n      height: 100%;\n      fill: white;\n    }\n\n    media-controller:not([userinactive]):not([mediahasplayed]) [part=\'mux-badge\'],\n    media-controller:not([userinactive]) [part=\'mux-badge\'],\n    media-controller[mediahasplayed][mediapaused] [part=\'mux-badge\'] {\n      transition: bottom 0.1s ease-in-out;\n    }\n\n    media-controller[userinactive]:not([mediapaused]) [part=\'mux-badge\'] {\n      transition: bottom 0.2s ease-in-out 0.62s;\n    }\n\n    media-controller:not([userinactive]) [part=\'mux-badge\'] .mux-badge-text,\n    media-controller[mediahasplayed][mediapaused] [part=\'mux-badge\'] .mux-badge-text {\n      opacity: 1;\n    }\n\n    media-controller[userinactive]:not([mediapaused]) [part=\'mux-badge\'] .mux-badge-text {\n      opacity: 0;\n    }\n\n    media-controller[userinactive]:not([mediapaused]) [part=\'mux-badge\'] {\n      bottom: 10px;\n    }\n\n    media-controller:not([userinactive]):not([mediahasplayed]) [part=\'mux-badge\'] {\n      bottom: 10px;\n    }\n\n    media-controller:not([userinactive])[mediahasplayed] [part=\'mux-badge\'],\n    media-controller[mediahasplayed][mediapaused] [part=\'mux-badge\'] {\n      bottom: calc(28px + var(--media-control-height, 0px) + var(--media-control-padding, 0px) * 2);\n    }\n  </style>\n\n  <template partial="TitleDisplay">\n    <template if="videotitle">\n      <template if="videotitle != true">\n        <media-text-display part="top title display" class="title-display">{{videotitle}}</media-text-display>\n      </template>\n    </template>\n    <template if="!videotitle">\n      <template if="title">\n        <media-text-display part="top title display" class="title-display">{{title}}</media-text-display>\n      </template>\n    </template>\n  </template>\n\n  <template partial="PlayButton">\n    <media-play-button\n      part="{{section ?? \'bottom\'}} play button"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n      class="animated"\n    >\n      <svg aria-hidden="true" viewBox="0 0 18 14" slot="icon">\n        <g class="play-icon">\n          <path\n            d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"\n          />\n        </g>
75\n        <g class="pause-icon">\n          <path\n            class="pause-icon-pt1"\n            d="M5.90709 0H2.96889C2.46857 0 2.06299 0.405585 2.06299 0.9059V13.0941C2.06299 13.5944 2.46857 14 2.96889 14H5.90709C6.4074 14 6.81299 13.5944 6.81299 13.0941V0.9059C6.81299 0.405585 6.4074 0 5.90709 0Z"\n          />\n          <path\n            class="pause-icon-pt2"\n            d="M15.1571 0H12.2189C11.7186 0 11.313 0.405585 11.313 0.9059V13.0941C11.313 13.5944 11.7186 14 12.2189 14H15.1571C15.6574 14 16.063 13.5944 16.063 13.0941V0.9059C16.063 0.405585 15.6574 0 15.1571 0Z"\n          />\n        </g>\n      </svg>\n    </media-play-button>\n  </template>\n\n  <template partial="PrePlayButton">\n    <media-play-button\n      part="{{section ?? \'center\'}} play button pre-play"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n    >\n      <svg aria-hidden="true" viewBox="0 0 18 14" slot="icon" style="transform: translate(3px, 0)">\n        <path\n          d="M15.5987 6.2911L3.45577 0.110898C2.83667 -0.204202 2.06287 0.189698 2.06287 0.819798V13.1802C2.06287 13.8103 2.83667 14.2042 3.45577 13.8891L15.5987 7.7089C16.2178 7.3938 16.2178 6.6061 15.5987 6.2911Z"\n        />\n      </svg>\n    </media-play-button>\n  </template>\n\n  <template partial="SeekBackwardButton">\n    <media-seek-backward-button\n      seekoffset="{{backwardseekoffset}}"\n      part="{{section ?? \'bottom\'}} seek-backward button"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n    >\n      <svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">\n        <path\n          d="M3.65 2.07888L0.0864 6.7279C-0.0288 6.87812 -0.0288 7.12188 0.0864 7.2721L3.65 11.9211C3.7792 12.0896 4 11.9703 4 11.7321V2.26787C4 2.02968 3.7792 1.9104 3.65 2.07888Z"\n        />\n        <text transform="translate(6 12)" style="font-size: 14px; font-family: \'ArialMT\', \'Arial\'">\n          {{backwardseekoffset}}\n        </text>\n      </svg>\n    </media-seek-backward-button>\n  </template>\n\n  <template partial="SeekForwardButton">\n    <media-seek-forward-button\n      seekoffset="{{forwardseekoffset}}"\n      part="{{section ?? \'bottom\'}} seek-forward button"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n    >\n      <svg viewBox="0 0 22 14" aria-hidden="true" slot="icon">\n        <g>\n          <text transform="translate(-1 12)" style="font-size: 14px; font-family: \'ArialMT\', \'Arial\'">\n            {{forwardseekoffset}}\n          </text>\n          <path\n            d="M18.35 11.9211L21.9136 7.2721C22.0288 7.12188 22.0288 6.87812 21.9136 6.7279L18.35 2.07888C18.2208 
751.91041 18 2.02968 18 2.26787V11.7321C18 11.9703 18.2208 12.0896 18.35 11.9211Z"\n          />\n        </g>\n      </svg>\n    </media-seek-forward-button>\n  </template>\n\n  <template partial="MuteButton">\n    <media-mute-button part="bottom mute button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n      <svg viewBox="0 0 18 14" slot="icon" class="mute-icon" aria-hidden="true">\n        <g class="unmuted">\n          <path\n            d="M6.76786 1.21233L3.98606 3.98924H1.19937C0.593146 3.98924 0.101743 4.51375 0.101743 5.1607V6.96412L0 6.99998L0.101743 7.03583V8.83926C0.101743 9.48633 0.593146 10.0108 1.19937 10.0108H3.98606L6.76773 12.7877C7.23561 13.2547 8 12.9007 8 12.2171V1.78301C8 1.09925 7.23574 0.745258 6.76786 1.21233Z"\n          />\n          <path\n            class="volume-low"\n            d="M10 3.54781C10.7452 4.55141 11.1393 5.74511 11.1393 6.99991C11.1393 8.25471 10.7453 9.44791 10 10.4515L10.7988 11.0496C11.6734 9.87201 12.1356 8.47161 12.1356 6.99991C12.1356 5.52821 11.6735 4.12731 10.7988 2.94971L10 3.54781Z"\n          />\n          <path\n            class="volume-medium"\n            d="M12.3778 2.40086C13.2709 3.76756 13.7428 5.35806 13.7428 7.00026C13.7428 8.64246 13.2709 10.233 12.3778 11.5992L13.2106 12.1484C14.2107 10.6185 14.739 8.83796 14.739 7.00016C14.739 5.16236 14.2107 3.38236 13.2106 1.85156L12.3778 2.40086Z"\n          />\n          <path\n            class="volume-high"\n            d="M15.5981 0.75L14.7478 1.2719C15.7937 2.9919 16.3468 4.9723 16.3468 7C16.3468 9.0277 15.7937 11.0082 14.7478 12.7281L15.5981 13.25C16.7398 11.3722 17.343 9.211 17.343 7C17.343 4.789 16.7398 2.6268 15.5981 0.75Z"\n          />\n        </g>\n        <g class="muted">\n          <path\n            fill-rule="evenodd"\n            clip-rule="evenodd"\n            d="M4.39976 4.98924H1.19937C1.19429 4.98924 1.17777 4.98961 1.15296 5.01609C1.1271 5.04369 1.10174 5.09245 1.10174 5.1607V8.83926C1.10174 8.90761 1.12714 8.95641 1.15299 8.984C1.17779 9.01047 1.1943 9.01084 1.19937 9.01084H4.39977L7 11.6066V2.39357L4.39976 4.98924ZM7.47434 1.92006C7.4743 1.9201 7.47439 1.92002 7.47434 1.92006V1.92006ZM6.76773 12.7877L3.98606 10.0108H1.19937C0.593146 10.0108 0.101743 9.48633 0.101743 8.83926V7.03583L0 6.99998L0.101743 6.96412V5.1607C0.101743 4.51375 0.593146 3.98924 1.19937 3.98924H3.98606L6.76786 1.21233C7.23574 0.745258 8 1.09925 8 1.78301V12.2171C8 12.9007 7.23561 13.2547 6.76773 12.7877Z"\n          />\n          <path\n            fill-rule="evenodd"\n            clip-rule="evenodd"\n            d="M15.2677 9.30323C15.463 9.49849 15.7796 9.49849 15.9749 9.30323C16.1701 9.10796 16.1701 8.79138 15.9749 8.59612L14.2071 6.82841L15.9749 5.06066C16.1702 4.8654 16.1702 4.54882 15.9749 4.35355C15.7796 4.15829 15.4631 4.15829 15.2678 4.35355L13.5 6.1213L11.7322 4.35348C11.537 4.15822 11.2204 4.15822 11.0251 4.35348C10.8298 4.54874 10.8298 4.86532 11.0251 5.06058L12.7929 6.82841L11.0251 8.59619C10.8299 8.79146 10.8299 9.10804 11.0251 9.3033C11.2204 9.49856 11.537 9.49856 11.7323 9.3033L13.5 7.53552L15.2677 9.30323Z"\n          />\n        </g>\n      </svg>\n    </media-mute-button>\n  </template>\n\n  <template partial="PipButton">\n    <media-pip-button part="bottom pip button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n      <svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">\n        <path\n          d="M15.9891 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.989C0 13.0996 0.9004 14 2.011 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0ZM17 11.9891C17 12.5465 16.5465 13 15.9891 13H2.011C1.4536 13 1.0001 12.5465 1.0001 11.9891V2.0109C1.0001 1.4535 1.4536 0.9999 2.011 0.9999H15.9891C16.5465 0.9999 17 1.4535 17 2.0109V11.9891Z"\n        />\n        <path\n          d="M15.356 5.67822H8.19523C8.03253 5.67822 7.90063 5.81012 7.90063 5.97282V11.3836C7.90063 11.5463 8.03253 11.6782 8.19523 11.6782H15.356C15.5187 11.6782 15.6506 11.5463 15.6506 11.3836V5.97282C15.6506 5.81012 15.5187 5.67822 15.356 5.67822Z"\n        />\n      </svg>\n    </media-pip-button>\n  </template>\n\n  <template partial="CaptionsMenu">\n    <media-captions-menu-button part="bottom captions button">\n      <svg aria-hidden="true" viewBox="0 0 18 14" slot="on">\n        <path\n          d="M15.989 0H2.011C0.9004 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9004 14 2.011 14H15.989C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.989 0ZM4.2292 8.7639C4.5954 9.1902 5.0935 9.4031 5.7233 9.4031C6.1852 9.4031 6.5544 9.301 6.8302 9.0969C7.1061 8.8933 7.2863 8.614 7.3702 8.26H8.4322C8.3062 8.884 8.0093 9.3733 7.5411 9.7273C7.0733 10.0813 6.4703 10.2581 5.732 10.2581C5.108 10.2581 4.5699 10.1219 4.1168 9.8489C3.6637 9.5759 3.3141 9.1946 3.0685 8.7058C2.8224 8.2165 2.6994 7.6511 2.6994 7.009C2.6994 6.3611 2.8224 5.7927 3.0685 5.3034C3.3141 4.8146 3.6637 4.4323 4.1168 4.1559C4.5699 3.88 5.108 3.7418 5.732 3.7418C6.4703 3.7418 7.0733 3.922 7.5411 4.2818C8.0094 4.6422 8.3062 5.1461 8.4322 5.794H7.3702C7.2862 5.4283 7.106 5.1368 6.8302 4.921C6.5544 4.7052 6.1852 4.5968 5.7233 4.5968C5.0934 4.5968 4.5954 4.8116 4.2292 5.2404C3.8635 5.6696 3.6804 6.259 3.6804 7.
75009C3.6804 7.7531 3.8635 8.3381 4.2292 8.7639ZM11.0974 8.7639C11.4636 9.1902 11.9617 9.4031 12.5915 9.4031C13.0534 9.4031 13.4226 9.301 13.6984 9.0969C13.9743 8.8933 14.1545 8.614 14.2384 8.26H15.3004C15.1744 8.884 14.8775 9.3733 14.4093 9.7273C13.9415 10.0813 13.3385 10.2581 12.6002 10.2581C11.9762 10.2581 11.4381 10.1219 10.985 9.8489C10.5319 9.5759 10.1823 9.1946 9.9367 8.7058C9.6906 8.2165 9.5676 7.6511 9.5676 7.009C9.5676 6.3611 9.6906 5.7927 9.9367 5.3034C10.1823 4.8146 10.5319 4.4323 10.985 4.1559C11.4381 3.88 11.9762 3.7418 12.6002 3.7418C13.3385 3.7418 13.9415 3.922 14.4093 4.2818C14.8776 4.6422 15.1744 5.1461 15.3004 5.794H14.2384C14.1544 5.4283 13.9742 5.1368 13.6984 4.921C13.4226 4.7052 13.0534 4.5968 12.5915 4.5968C11.9616 4.5968 11.4636 4.8116 11.0974 5.2404C10.7317 5.6696 10.5486 6.259 10.5486 7.009C10.5486 7.7531 10.7317 8.3381 11.0974 8.7639Z"\n        />\n      </svg>\n      <svg aria-hidden="true" viewBox="0 0 18 14" slot="off">\n        <path\n          d="M5.73219 10.258C5.10819 10.258 4.57009 10.1218 4.11699 9.8488C3.66389 9.5758 3.31429 9.1945 3.06869 8.7057C2.82259 8.2164 2.69958 7.651 2.69958 7.0089C2.69958 6.361 2.82259 5.7926 3.06869 5.3033C3.31429 4.8145 3.66389 4.4322 4.11699 4.1558C4.57009 3.8799 5.10819 3.7417 5.73219 3.7417C6.47049 3.7417 7.07348 3.9219 7.54128 4.2817C8.00958 4.6421 8.30638 5.146 8.43238 5.7939H7.37039C7.28639 5.4282 7.10618 5.1367 6.83039 4.9209C6.55459 4.7051 6.18538 4.5967 5.72348 4.5967C5.09358 4.5967 4.59559 4.8115 4.22939 5.2403C3.86369 5.6695 3.68058 6.2589 3.68058 7.0089C3.68058 7.753 3.86369 8.338 4.22939 8.7638C4.59559 9.1901 5.09368 9.403 5.72348 9.403C6.18538 9.403 6.55459 9.3009 6.83039 9.0968C7.10629 8.8932 7.28649 8.6139 7.37039 8.2599H8.43238C8.30638 8.8839 8.00948 9.3732 7.54128 9.7272C7.07348 10.0812 6.47049 10.258 5.73219 10.258Z"\n        />\n        <path\n          d="M12.6003 10.258C11.9763 10.258 11.4382 10.1218 10.9851 9.8488C10.532 9.5758 10.1824 9.1945 9.93685 8.7057C9.69075 8.2164 9.56775 7.651 9.56775 7.0089C9.56775 6.361 9.69075 5.7926 9.93685 5.3033C10.1824 4.8145 10.532 4.4322 10.9851 4.1558C11.4382 3.8799 11.9763 3.7417 12.6003 3.7417C13.3386 3.7417 13.9416 3.9219 14.4094 4.2817C14.8777 4.6421 15.1745 5.146 15.3005 5.7939H14.2385C14.1545 5.4282 13.9743 5.1367 13.6985 4.9209C13.4227 4.7051 13.0535 4.5967 12.5916 4.5967C11.9617 4.5967 11.4637 4.8115 11.0975 5.2403C10.7318 5.6695 10.5487 6.2589 10.5487 7.0089C10.5487 7.753 10.7318 8.338 11.0975 8.7638C11.4637 9.1901 11.9618 9.403 12.5916 9.403C13.0535 9.403 13.4227 9.3009 13.6985 9.0968C13.9744 8.8932 14.1546 8.6139 14.2385 8.2599H15.3005C15.1745 8.8839 14.8776 9.3732 14.4094 9.7272C13.9416 10.0812 13.3386 10.258 12.6003 10.258Z"\n        />\n        <path\n          d="M15.9891 1C16.5465 1 17 1.4535 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H2.0109C1.4535 13 1 12.5465 1 11.9891V2.0109C1 1.4535 1.4535 0.9999 2.0109 0.9999L15.9891 1ZM15.9891 0H2.0109C0.9003 0 0 0.9003 0 2.0109V11.9891C0 13.0997 0.9003 14 2.0109 14H15.9891C17.0997 14 18 13.0997 18 11.9891V2.0109C18 0.9003 17.0997 0 15.9891 0Z"\n        />\n      </svg>\n    </media-captions-menu-button>\n    <media-captions-menu\n      hidden\n      anchor="auto"\n      part="bottom captions menu"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n      exportparts="menu-item"\n    >\n      <div slot="checked-indicator">\n        <style>\n          .indicator {\n            position: relative;\n            top: 1px;\n            width: 0.9em;\n            height: auto;\n            fill: var(--_accent-color);\n            margin-right: 5px;\n          }\n\n          [aria-checked=\'false\'] .indicator {\n            display: none;\n          }\n        </style>\n        <svg viewBox="0 0 14 18" class="indicator">\n          <path\n            d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"\n            fill-rule="evenodd"\n          />\n        </svg></div\n    ></media-captions-menu>\n  </template>\n\n  <template partial="AirplayButton">\n    <media-airplay-button part="bottom airplay button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n      <svg viewBox="0 0 18 14" aria-hidden="true" slot="icon">\n        <path\n          d="M16.1383 0H1.8618C0.8335 0 0 0.8335 0 1.8617V10.1382C0 11.1664 0.8335 12 1.8618 12H3.076C3.1204 11.9433 3.1503 11.8785 3.2012 11.826L4.004 11H1.8618C1.3866 11 1 10.6134 1 10.1382V1.8617C1 1.3865 1.3866 0.9999 1.8618 0.9999H16.1383C16.6135 0.9999 17.0001 1.3865 17.0001 1.8617V10.1382C17.0001 10.6134 16.6135 11 16.1383 11H13.9961L14.7989 11.826C14.8499 11.8785 14.8798 11.9432 14.9241 12H16.1383C17.1665 12 18.0001 11.1664 18.0001 10.1382V1.8617C18 0.8335 17.1665 0 16.1383 0Z"\n        />\n        <path\n          d="M9.55061 8.21903C9.39981 8.06383 9.20001 7.98633 9.00011 7.98633C8.80021 7.98633 8.60031 8.06383 8.44951 8.21903L4.09771 12.697C3.62471 13.1838 3.96961 13.9998 4.64831 13.9998H13.3518C14.0304 13.9998 14.3754 13.1838 13.9023 12.697L9.55061 8.21903Z"\n        />\n      </svg>\n    </media-airplay-button>\n  </template>\n\n  <template partial="FullscreenButton">\n    <media-fullscreen-button part="bottom fullscreen button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n      <svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">\n        <path\n          d="M1.00745 4.39539L1.01445 1.98789C1.01605 1.43049 1.47085 0.978289 2.02835 0.979989L6.39375 0.992589L6.39665 -0.007411L2.03125 -0.020011C0.920646 -0.023211 0.0176463 0.874489 0.0144463 1.98509L0.00744629 4.39539H1.00745Z"\n        />\n        <path\n          d="M17.0144 2.03431L17.0076 4.39541H18.0076L18.0144 2.03721C18.0176 0.926712 17.1199 0.0237125 16.0093 0.0205125L11.6439 0.0078125L11.641 1.00781L16.0064 1.02041C16.5638 1.02201 17.016 1.47681 17.0144 2.03431Z"\n        />\n        <path\n          d="M16.9925 9.60498L16.9855 12.0124C16.9839 12.5698 16.5291 13.022 15.9717 13.0204L11.6063 13.0078L11.6034 14.0078L15.9688 14.0204C17.0794 14.0236 17.9823 13.1259 17.9855 12.0153L1
757.9925 9.60498H16.9925Z"\n        />\n        <path\n          d="M0.985626 11.9661L0.992426 9.60498H-0.0074737L-0.0142737 11.9632C-0.0174737 13.0738 0.880226 13.9767 1.99083 13.98L6.35623 13.9926L6.35913 12.9926L1.99373 12.98C1.43633 12.9784 0.983926 12.5236 0.985626 11.9661Z"\n        />\n      </svg>\n      <svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">\n        <path\n          d="M5.39655 -0.0200195L5.38955 2.38748C5.38795 2.94488 4.93315 3.39708 4.37565 3.39538L0.0103463 3.38278L0.00744629 4.38278L4.37285 4.39538C5.48345 4.39858 6.38635 3.50088 6.38965 2.39028L6.39665 -0.0200195H5.39655Z"\n        />\n        <path\n          d="M12.6411 2.36891L12.6479 0.0078125H11.6479L11.6411 2.36601C11.6379 3.47651 12.5356 4.37951 13.6462 4.38271L18.0116 4.39531L18.0145 3.39531L13.6491 3.38271C13.0917 3.38111 12.6395 2.92641 12.6411 2.36891Z"\n        />\n        <path\n          d="M12.6034 14.0204L12.6104 11.613C12.612 11.0556 13.0668 10.6034 13.6242 10.605L17.9896 10.6176L17.9925 9.61759L13.6271 9.60499C12.5165 9.60179 11.6136 10.4995 11.6104 11.6101L11.6034 14.0204H12.6034Z"\n        />\n        <path\n          d="M5.359 11.6315L5.3522 13.9926H6.3522L6.359 11.6344C6.3622 10.5238 5.4645 9.62088 4.3539 9.61758L-0.0115043 9.60498L-0.0144043 10.605L4.351 10.6176C4.9084 10.6192 5.3607 11.074 5.359 11.6315Z"\n        />\n      </svg>\n    </media-fullscreen-button>\n  </template>\n\n  <template partial="CastButton">\n    <media-cast-button part="bottom cast button" disabled="{{disabled}}" aria-disabled="{{disabled}}">\n      <svg viewBox="0 0 18 14" aria-hidden="true" slot="enter">\n        <path\n          d="M16.0072 0H2.0291C0.9185 0 0.0181 0.9003 0.0181 2.011V5.5009C0.357 5.5016 0.6895 5.5275 1.0181 5.5669V2.011C1.0181 1.4536 1.4716 1 2.029 1H16.0072C16.5646 1 17.0181 1.4536 17.0181 2.011V11.9891C17.0181 12.5465 16.5646 13 16.0072 13H8.4358C8.4746 13.3286 8.4999 13.6611 8.4999 13.9999H16.0071C17.1177 13.9999 18.018 13.0996 18.018 11.989V2.011C18.0181 0.9003 17.1178 0 16.0072 0ZM0 6.4999V7.4999C3.584 7.4999 6.5 10.4159 6.5 13.9999H7.5C7.5 9.8642 4.1357 6.4999 0 6.4999ZM0 8.7499V9.7499C2.3433 9.7499 4.25 11.6566 4.25 13.9999H5.25C5.25 11.1049 2.895 8.7499 0 8.7499ZM0.0181 11V14H3.0181C3.0181 12.3431 1.675 11 0.0181 11Z"\n        />\n      </svg>\n      <svg viewBox="0 0 18 14" aria-hidden="true" slot="exit">\n        <path\n          d="M15.9891 0H2.01103C0.900434 0 3.35947e-05 0.9003 3.35947e-05 2.011V5.5009C0.338934 5.5016 0.671434 5.5275 1.00003 5.5669V2.011C1.00003 1.4536 1.45353 1 2.01093 1H15.9891C16.5465 1 17 1.4536 17 2.011V11.9891C17 12.5465 16.5465 13 15.9891 13H8.41773C8.45653 13.3286 8.48183 13.6611 8.48183 13.9999H15.989C17.0996 13.9999 17.9999 13.0996 17.9999 11.989V2.011C18 0.9003 17.0997 0 15.9891 0ZM-0.0180664 6.4999V7.4999C3.56593 7.4999 6.48193 10.4159 6.48193 13.9999H7.48193C7.48193 9.8642 4.11763 6.4999 -0.0180664 6.4999ZM-0.0180664 8.7499V9.7499C2.32523 9.7499 4.23193 11.6566 4.23193 13.9999H5.23193C5.23193 11.1049 2.87693 8.7499 -0.0180664 8.7499ZM3.35947e-05 11V14H3.00003C3.00003 12.3431 1.65693 11 3.35947e-05 11Z"\n        />\n        <path d="M2.15002 5.634C5.18352 6.4207 7.57252 8.8151 8.35282 11.8499H15.8501V2.1499H2.15002V5.634Z" />\n      </svg>\n    </media-cast-button>\n  </template>\n\n  <template partial="LiveButton">\n    <media-live-button part="{{section ?? \'top\'}} live button" disabled="{{disabled}}" aria-disabled="{{disabled}}">
75\n      <span slot="text">Live</span>\n    </media-live-button>\n  </template>\n\n  <template partial="PlaybackRateMenu">\n    <media-playback-rate-menu-button part="bottom playback-rate button"></media-playback-rate-menu-button>\n    <media-playback-rate-menu\n      hidden\n      anchor="auto"\n      rates="{{playbackrates}}"\n      exportparts="menu-item"\n      part="bottom playback-rate menu"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n    ></media-playback-rate-menu>\n  </template>\n\n  <template partial="VolumeRange">\n    <media-volume-range\n      part="bottom volume range"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n    ></media-volume-range>\n  </template>\n\n  <template partial="TimeDisplay">\n    <media-time-display\n      remaining="{{defaultshowremainingtime}}"\n      showduration="{{!hideduration}}"\n      part="bottom time display"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n    ></media-time-display>\n  </template>\n\n  <template partial="TimeRange">\n    <media-time-range part="bottom time range" disabled="{{disabled}}" aria-disabled="{{disabled}}" exportparts="thumb">\n      <media-preview-thumbnail slot="preview"></media-preview-thumbnail>\n      <media-preview-chapter-display slot="preview"></media-preview-chapter-display>\n      <media-preview-time-display slot="preview"></media-preview-time-display>\n      <div slot="preview" part="arrow"></div>\n    </media-time-range>\n  </template>\n\n  <template partial="AudioTrackMenu">\n    <media-audio-track-menu-button part="bottom audio-track button">\n      <svg aria-hidden="true" slot="icon" viewBox="0 0 18 16">\n        <path d="M9 15A7 7 0 1 1 9 1a7 7 0 0 1 0 14Zm0 1A8 8 0 1 0 9 0a8 8 0 0 0 0 16Z" />\n        <path\n          d="M5.2 6.3a.5.5 0 0 1 .5.5v2.4a.5.5 0 1 1-1 0V6.8a.5.5 0 0 1 .5-.5Zm2.4-2.4a.5.5 0 0 1 .5.5v7.2a.5.5 0 0 1-1 0V4.4a.5.5 0 0 1 .5-.5ZM10 5.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.4-.8a.5.5 0 0 1 .5.5v5.6a.5.5 0 0 1-1 0V5.2a.5.5 0 0 1 .5-.5Z"\n        />\n      </svg>\n    </media-audio-track-menu-button>\n    <media-audio-track-menu\n      hidden\n      anchor="auto"\n      part="bottom audio-track menu"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n      exportparts="menu-item"\n    >\n      <div slot="checked-indicator">\n        <style>\n          .indicator {\n            position: relative;\n            top: 1px;\n            width: 0.9em;\n            height: auto;\n            fill: var(--_accent-color);\n            margin-right: 5px;\n          }\n\n          [aria-checked=\'false\'] .indicator {\n            display: none;\n          }\n        </style>\n        <svg viewBox="0 0 14 18" class="indicator">\n          <path\n            d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"\n            fill-rule="evenodd"\n          />\n        </svg>\n      </div>\n    </media-audio-track-menu>\n  </template>\n\n  <template partial="RenditionMenu">\n    <media-rendition-menu-button part="bottom rendition button">\n      <svg aria-hidden="true" slot="icon" viewBox="0 0 18 14">\n        <path\n          d="M2.25 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM9 9a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6.75 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"\n        />\n      </svg>\n    </media-rendition-menu-button>\n    <media-rendition-menu\n      hidden\n      anchor="auto"\n      part="bottom rendition menu"\n      disabled="{{disabled}}"\n      aria-disabled="{{disabled}}"\n    >\n      <div slot="checked-indicator">\n        <style>\n          .indicator {\n            position: relative;\n            top: 1px;\n            width: 0.9em;\n            height: auto;\n            fill: var(--_accent-color);\n            margin-right: 5px;\n          }\n\n          [aria-checked=\'false\'] .indicator {\n            opacity: 0;\n          }\n        </style>\n        <svg viewBox="0 0 14 18" class="indicator">\n          <path\n            d="M12.252 3.48c-.115.033-.301.161-.425.291-.059.063-1.407 1.815-2.995 3.894s-2.897 3.79-2.908 3.802c-.013.014-.661-.616-1.672-1.624-.908-.905-1.702-1.681-1.765-1.723-.401-.27-.783-.211-1.176.183a1.285 1.285 0 0 0-.261.342.582.582 0 0 0-.082.35c0 .165.01.205.08.35.075.153.213.296 2.182 2.271 1.156 1.159 2.17 2.159 2.253 2.222.189.143.338.196.539.194.203-.003.412-.104.618-.299.205-.193 6.7-8.693 6.804-8.903a.716.716 0 0 0 .085-.345c.01-.179.005-.203-.062-.339-.124-.252-.45-.531-.746-.639a.784.784 0 0 0-.469-.027"\n            fill-rule="evenodd"\n          />\n        </svg>\n      </div>\n    </media-rendition-menu>\n  </template>\n\n  <template partial="MuxBadge">\n    <div part="mux-badge">\n      <a href="https://www.mux.com/player" target="_blank">
75\n        <span class="mux-badge-text">Powered by</span>\n        <div class="mux-badge-logo">\n          <svg\n            viewBox="0 0 1600 500"\n            style="fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2"\n          >\n            <g>\n              <path\n                d="M994.287,93.486c-17.121,-0 -31,-13.879 -31,-31c0,-17.121 13.879,-31 31,-31c17.121,-0 31,13.879 31,31c0,17.121 -13.879,31 -31,31m0,-93.486c-34.509,-0 -62.484,27.976 -62.484,62.486l0,187.511c0,68.943 -56.09,125.033 -125.032,125.033c-68.942,-0 -125.03,-56.09 -125.03,-125.033l0,-187.511c0,-34.51 -27.976,-62.486 -62.485,-62.486c-34.509,-0 -62.484,27.976 -62.484,62.486l0,187.511c0,137.853 112.149,250.003 249.999,250.003c137.851,-0 250.001,-112.15 250.001,-250.003l0,-187.511c0,-34.51 -27.976,-62.486 -62.485,-62.486"\n                style="fill-rule: nonzero"\n              ></path>\n              <path\n                d="M1537.51,468.511c-17.121,-0 -31,-13.879 -31,-31c0,-17.121 13.879,-31 31,-31c17.121,-0 31,13.879 31,31c0,17.121 -13.879,31 -31,31m-275.883,-218.509l-143.33,143.329c-24.402,24.402 -24.402,63.966 0,88.368c24.402,24.402 63.967,24.402 88.369,-0l143.33,-143.329l143.328,143.329c24.402,24.4 63.967,24.402 88.369,-0c24.403,-24.402 24.403,-63.966 0.001,-88.368l-143.33,-143.329l0.001,-0.004l143.329,-143.329c24.402,-24.402 24.402,-63.965 0,-88.367c-24.402,-24.402 -63.967,-24.402 -88.369,-0l-143.329,143.328l-143.329,-143.328c-24.402,-24.401 -63.967,-24.402 -88.369,-0c-24.402,24.402 -24.402,63.965 0,88.367l143.329,143.329l0,0.004Z"\n                style="fill-rule: nonzero"\n              ></path>\n              <path\n                d="M437.511,468.521c-17.121,-0 -31,-13.879 -31,-31c0,-17.121 13.879,-31 31,-31c17.121,-0 31,13.879 31,31c0,17.121 -13.879,31 -31,31m23.915,-463.762c-23.348,-9.672 -50.226,-4.327 -68.096,13.544l-143.331,143.329l-143.33,-143.329c-17.871,-17.871 -44.747,-23.216 -68.096,-13.544c-23.349,9.671 -38.574,32.455 -38.574,57.729l0,375.026c0,34.51 27.977,62.486 62.487,62.486c34.51,-0 62.486,-27.976 62.486,-62.486l0,-224.173l80.843,80.844c24.404,24.402 63.965,24.402 88.369,-0l80.843,-80.844l0,224.173c0,34.51 27.976,62.486 62.486,62.486c34.51,-0 62.486,-27.976 62.486,-62.486l0,-375.026c0,-25.274 -15.224,-48.058 -38.573,-57.729"\n                style="fill-rule: nonzero"\n              ></path>\n            </g>\n          </svg>\n        </div>\n      </a>\n    </div>\n  </template>\n\n  <media-controller\n    part="controller"\n    defaultstreamtype="{{defaultstreamtype ?? \'on-demand\'}}"\n    breakpoints="sm:470"\n    gesturesdisabled="{{disabled}}"\n    hotkeys="{{hotkeys}}"\n    nohotkeys="{{nohotkeys}}"\n    novolumepref="{{novolumepref}}"\n    audio="{{audio}}"\n    noautoseektolive="{{noautoseektolive}}"\n    defaultsubtitles="{{defaultsubtitles}}"\n    defaultduration="{{defaultduration ?? false}}"\n    keyboardforwardseekoffset="{{forwardseekoffset}}"\n    keyboardbackwardseekoffset="{{backwardseekoffset}}"\n    exportparts="layer, media-layer, poster-layer, vertical-layer, centered-layer, gesture-layer"\n    style="--_pre-playback-place:{{preplaybackplace ?? \'center\'}}"\n  >\n    <slot name="media" slot="media"></slot>\n    <slot name="poster" slot="poster"></slot>\n\n    <media-loading-indicator slot="centered-chrome" noautohide></media-loading-indicator>\n\n    <template if="!audio">\n      <media-error-dialog slot="dialog" noautohide></media-error-dialog>\n      \x3c!-- Pre-playback UI --\x3e\n      \x3c!-- same for both on-demand and live --\x3e\n      <div slot="centered-chrome" class="center-controls pre-playback">\n        <template if="!breakpointsm">{{>PlayButton section="center"}}</template>\n        <template if="breakpointsm">{{>PrePlayButton section="center"}}</template>\n      </div>\n\n      \x3c!-- Mux Badge --\x3e\n      <template if="proudlydisplaymuxbadge"> {{>MuxBadge}} </template>\n\n      \x3c!-- Autoplay centered unmute button --\x3e\n      \x3c!--\n        todo: figure out how show this with available state variables\n        needs to show when:\n        - autoplay is enabled\n        - playback has been successful\n        - audio is muted\n        - in place / instead of the pre-plaback play button\n        - not to show again after user has interacted with this button\n          - OR user has interacted with the mute button in the control bar\n      --\x3e\n      \x3c!--\n        There should be a >MuteButton to the left of the "Unmute" text, but a templating bug\n        makes it appear even if commented out in the markup, add it back when code is un-commented\n      --\x3e\n      \x3c!-- <div slot="centered-chrome" class="autoplay-unmute">\n        <div role="button" class="autoplay-unmute-btn">Unmute</div>\n      </div> --\x3e\n\n      <template if="streamtype == \'on-demand\'">\n        <template if="breakpointsm">\n          <media-control-bar part="control-bar top" slot="top-chrome">{{>TitleDisplay}} </media-control-bar>\n        </template>\n        {{>TimeRange}}\n        <media-control-bar part="control-bar bottom">\n          {{>PlayButton}} {{>SeekBackwardButton}} {{>SeekForwardButton}} {{>TimeDisplay}} {{>MuteButton}}\n          {{>VolumeRange}}\n          <div class="spacer"></div>\n          {{>RenditionMenu}} {{>PlaybackRateMenu}} {{>AudioTrackMenu}} {{>CaptionsMenu}} {{>AirplayButton}}\n          {{>CastButton}} {{>PipButton}} {{>FullscreenButton}}\n        </media-control-bar>\n      </template>\n\n      <template if="streamtype == \'live\'">\n        <media-control-bar part="control-bar top" slot="top-chrome">\n          {{>LiveButton}}\n          <template if="breakpointsm"> {{>TitleDisplay}} </template>\n        </media-control-bar>\n        <template if="targetlivewindow > 0">{{>TimeRange}}</template>\n        <media-control-bar part="control-bar bottom">\n          {{>PlayButton}}\n          <template if="targetlivewindow > 0">{{>SeekBackwardButton}} {{>SeekForwardButton}}</template>\n          {{>MuteButton}} {{>VolumeRange}}\n          <div class="spacer"></div>\n          {{>RenditionMenu}} {{>AudioTrackMenu}} {{>CaptionsMenu}} {{>AirplayButton}} {{>CastButton}} {{>PipButton}}\n          {{>FullscreenButton}}\n        </media-control-bar>\n      </template>\n    </template>\n\n    <template if="audio">\n      <template if="streamtype == \'on-demand\'">\n        <template if="title">\n          <media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>\n        </template>\n        <media-control-bar part="control-bar bottom">\n          {{>PlayButton}}\n          <template if="breakpointsm"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>\n          {{>MuteButton}}\n          <template if="breakpointsm">{{>VolumeRange}}</template>\n          {{>TimeDisplay}} {{>TimeRange}}\n          <template if="breakpointsm">{{>PlaybackRateMenu}}</template>\n          {{>AirplayButton}} {{>CastButton}}\n        </media-control-bar>\n      </template>\n\n      <template if="streamtype == \'live\'">\n        <template if="title">\n          <media-control-bar part="control-bar top">{{>TitleDisplay}}</media-control-bar>\n        </template>\n        <media-control-bar part="control-bar bottom">\n          {{>PlayButton}} {{>LiveButton section="bottom"}} {{>MuteButton}}\n          <template if="breakpointsm">\n            {{>VolumeRange}}\n            <template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>\n          </template>\n          <template if="targetlivewindow > 0"> {{>TimeDisplay}} {{>TimeRange}} </template>\n          <template if="!targetlivewindow"><div class="spacer"></div></template>\n          {{>AirplayButton}} {{>CastButton}}\n        </media-control-bar>\n      </template>\n    </template>\n\n    <slot></slot>\n  </media-controller>\n</template>\n');var on,ln,sn=class extends oa.OU{};sn.template=null==(ln=null==(on=rn.content)?void 0:on.children)?void 0:ln[0],Ta.customElements.get("media-theme-gerwig")||Ta.customElements.define("media-theme-gerwig",sn);var dn={SRC:"src",POSTER:"poster"},un={STYLE:"style",DEFAULT_HIDDEN_CAPTIONS:"default-hidden-captions",PRIMARY_COLOR:"primary-color",SECONDARY_COLOR:"secondary-color",ACCENT_COLOR:"accent-color",FORWARD_SEEK_OFFSET:"forward-seek-offset",BACKWARD_SEEK_OFFSET:"backward-seek-offset",P
75LAYBACK_TOKEN:"playback-token",THUMBNAIL_TOKEN:"thumbnail-token",STORYBOARD_TOKEN:"storyboard-token",FULLSCREEN_ELEMENT:"fullscreen-element",DRM_TOKEN:"drm-token",STORYBOARD_SRC:"storyboard-src",THUMBNAIL_TIME:"thumbnail-time",AUDIO:"audio",NOHOTKEYS:"nohotkeys",HOTKEYS:"hotkeys",PLAYBACK_RATES:"playbackrates",DEFAULT_SHOW_REMAINING_TIME:"default-show-remaining-time",DEFAULT_DURATION:"default-duration",TITLE:"title",VIDEO_TITLE:"video-title",PLACEHOLDER:"placeholder",THEME:"theme",DEFAULT_STREAM_TYPE:"default-stream-type",TARGET_LIVE_WINDOW:"target-live-window",EXTRA_SOURCE_PARAMS:"extra-source-params",NO_VOLUME_PREF:"no-volume-pref",NO_MUTED_PREF:"no-muted-pref",CAST_RECEIVER:"cast-receiver",NO_TOOLTIPS:"no-tooltips",PROUDLY_DISPLAY_MUX_BADGE:"proudly-display-mux-badge",DISABLE_PSEUDO_ENDED:"disable-pseudo-ended"},mn=["audio","backwardseekoffset","defaultduration","defaultshowremainingtime","defaultsubtitles","noautoseektolive","disabled","exportparts","forwardseekoffset","hideduration","hotkeys","nohotkeys","playbackrates","defaultstreamtype","streamtype","style","targetlivewindow","template","title","videotitle","novolumepref","nomutedpref","proudlydisplaymuxbadge"];var cn=na.dl.formatErrorMessage;function pn(e){var t,a;let n=e.theme;if(n){let r=null==(a=null==(t=e.getRootNode())?void 0:t.getElementById)?void 0:a.call(t,n);if(r&&r instanceof HTMLTemplateElement)return r;n.startsWith("media-theme-")||(n=`media-theme-${n}`);let i=Ta.customElements.get(n);if(null!=i&&i.template)return i.template}}function hn(e){var t;let a=null==(t=e.mediaController)?void 0:t.querySelector("media-time-display");return a&&"none"===getComputedStyle(a).getPropertyValue("--media-duration-display-display").trim()}function bn(e){let t=e.videoTitle?{video_title:e.videoTitle}:{};return e.getAttributeNames().filter(e=>e.startsWith("metadata-")).reduce((t,a)=>{let n=e.getAttribute(a);return null!==n&&(t[a.replace(/^metadata-/,"").replace(/-/g,"_")]=n),t},t)}na.dl.formatErrorMessage=e=>{var t,a;if(e instanceof c){let n=an(e,!1);return`\n      ${null!=n&&n.title?`<h3>${n.title}</h3>`:""}\n      ${null!=n&&n.message||null!=n&&n.linkUrl?`<p>\n        ${null==n?void 0:n.message}\n        ${null!=n&&n.linkUrl?`<a\n              href="${n.linkUrl}"\n              target="_blank"\n              rel="external noopener"\n              aria-label="${null!=(t=n.linkText)?t:""} ${P("(opens in a new window)")}"\n              >${null!=(a=n.linkText)?a:n.linkUrl}</a\n            >`:""}\n      </p>`:""}\n    `}return cn(e)};var En,vn,gn,Tn,yn,fn,An,_n,Rn,Cn,kn,Nn,Sn,On,In,Dn,Ln,wn,Mn,xn,Pn,Un=Object.values(Pt),Kn=Object.values(dn),Bn=Object.values(un),Yn=Sa(),Wn="mux-player",Fn={isDialogOpen:!1},Vn={redundant_streams:!0};function $n(e,t){return e.media?e.media.getAttribute(t):e.getAttribute(t)}En=new WeakMap,vn=new WeakMap,gn=new WeakMap,Tn=new WeakMap,yn=new WeakMap,fn=new WeakMap,An=new WeakMap,_n=new WeakMap,Rn=new WeakMap,Cn=new WeakMap,kn=new WeakMap,Nn=new WeakMap,Sn=new WeakSet,On=function(){var e,t,a,n;if(!da(this,vn)){ma(this,vn,!0),ca(this,Sn,Ln).call(this);try{if(customElements.upgrade(this.mediaTheme),!(this.mediaTheme instanceof Ta.HTMLElement))throw""}catch{}try{customElements.upgrade(this.media)}catch{}try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof na.xX))throw""}catch{}ca(this,Sn,wn).call(this),ca(this,Sn,Mn).call(this),ca(this,Sn,xn).call(this),ma(this,Tn,null==(t=null==(e=this.mediaController)?void 0:e.hasAttribute(ra.eS.USER_INACTIVE))||t),ca(this,Sn,Pn).call(this),null==(a=this.media)||a.addEventListener("streamtypechange",da(this,An)),null==(n=this.media)||n.addEventListener("loadstart",da(this,_n))}},In=function(){var e,t;try{null==(e=null==window?void 0:window.CSS)||e.registerProperty({name:"--media-primary-color",syntax:"<color>",inherits:!0}),null==(t=null==window?void 0:window.CSS)||t.registerProperty({name:"--media-secondary-color",syntax:"<color>",inherits:!0})}catch{}},Dn=function(e){Object.assign(da(this,kn),e),ca(this,Sn,Ln).call(this)},Ln=function(e={}){var t;!function(e,t){e.renderInto(t)}((t=function(e,t){var a,n,r;return{src:!e.playbackId&&e.src,playbackId:e.playbackId,hasSrc:!!e.playbackId||!!e.src||!!e.currentSrc,poster:e.poster,storyboard:(null==(a=e.media)?void 0:a.currentSrc)&&e.storyboard,storyboardSrc:e.getAttribute(un.STORYBOARD_SRC),fullscreenElement:e.getAttribute(un.FULLSCREEN_ELEMENT),placeholder:e.getAttribute("placeholder"),themeTemplate:pn(e),thumbnailTime:!e.tokens.thumbnail&&e.thumbnailTime,autoplay:e.autoplay,crossOrigin:e.crossOrigin,loop:e.loop,noHotKeys:e.hasAttribute(un.NOHOTKEYS),hotKeys:e.getAttribute(un.HOTKEYS),muted:e.muted,paused:e.paused,preload:e.preload,envKey:e.envKey,preferCmcd:e.preferCmcd,debug:e.debug,disableTracking:e.disableTracking,disableCookies:e.disableCookies,tokens:e.tokens,beaconCollectionDomain:e.beaconCollectionDomain,maxResolution:e.maxResolution,minResolution:e.minResolution,maxAutoResolution:e.maxAutoResolution,programStartTime:e.programStartTime,programEndTime:e.programEndTime,assetStartTime:e.assetStartTime,asset
75EndTime:e.assetEndTime,renditionOrder:e.renditionOrder,metadata:e.metadata,playerInitTime:e.playerInitTime,playerSoftwareName:e.playerSoftwareName,playerSoftwareVersion:e.playerSoftwareVersion,startTime:e.startTime,initialBandwidthEstimateKbps:e.initialBandwidthEstimateKbps,initialEstimateSegments:e.initialEstimateSegments,minPreloadSegments:e.minPreloadSegments,preferPlayback:e.preferPlayback,audio:e.audio,defaultStreamType:e.defaultStreamType,targetLiveWindow:e.getAttribute(Pt.TARGET_LIVE_WINDOW),streamType:Oa(e.getAttribute(Pt.STREAM_TYPE)),primaryColor:e.getAttribute(un.PRIMARY_COLOR),secondaryColor:e.getAttribute(un.SECONDARY_COLOR),accentColor:e.getAttribute(un.ACCENT_COLOR),forwardSeekOffset:e.forwardSeekOffset,backwardSeekOffset:e.backwardSeekOffset,defaultHiddenCaptions:e.defaultHiddenCaptions,defaultDuration:e.defaultDuration,defaultShowRemainingTime:e.defaultShowRemainingTime,hideDuration:hn(e),playbackRates:e.getAttribute(un.PLAYBACK_RATES),customDomain:null!=(n=e.getAttribute(Pt.CUSTOM_DOMAIN))?n:void 0,title:e.getAttribute(un.TITLE),videoTitle:null!=(r=e.getAttribute(un.VIDEO_TITLE))?r:e.getAttribute(un.TITLE),novolumepref:e.hasAttribute(un.NO_VOLUME_PREF),nomutedpref:e.hasAttribute(un.NO_MUTED_PREF),proudlyDisplayMuxBadge:e.hasAttribute(un.PROUDLY_DISPLAY_MUX_BADGE),castReceiver:e.castReceiver,disablePseudoEnded:e.hasAttribute(un.DISABLE_PSEUDO_ENDED),capRenditionToPlayerSize:e.capRenditionToPlayerSize,...t,extraSourceParams:e.extraSourceParams}}(this,{...da(this,kn),...e}),Qa`
76  <style>
77    ${(e=>{let{tokens:t}=e;return t.drm?":host(:not([cast-receiver])) { --_cast-button-drm-display: none; }":""})(t)}
78    ${":host {\n  --media-control-display: var(--controls);\n  --media-loading-indicator-display: var(--loading-indicator);\n  --media-dialog-display: var(--dialog);\n  --media-play-button-display: var(--play-button);\n  --media-live-button-display: var(--live-button);\n  --media-seek-backward-button-display: var(--seek-backward-button);\n  --media-seek-forward-button-display: var(--seek-forward-button);\n  --media-mute-button-display: var(--mute-button);\n  --media-captions-button-display: var(--captions-button);\n  --media-captions-menu-button-display: var(--captions-menu-button, var(--media-captions-button-display));\n  --media-rendition-menu-button-display: var(--rendition-menu-button);\n  --media-audio-track-menu-button-display: var(--audio-track-menu-button);\n  --media-airplay-button-display: var(--airplay-button);\n  --media-pip-button-display: var(--pip-button);\n  --media-fullscreen-button-display: var(--fullscreen-button);\n  --media-cast-button-display: var(--cast-button, var(--_cast-button-drm-display));\n  --media-playback-rate-button-display: var(--playback-rate-button);\n  --media-playback-rate-menu-button-display: var(--playback-rate-menu-button);\n  --media-volume-range-display: var(--volume-range);\n  --media-time-range-display: var(--time-range);\n  --media-time-display-display: var(--time-display);\n  --media-duration-display-display: var(--duration-display);\n  --media-title-display-display: var(--title-display);\n\n  display: inline-block;\n  line-height: 0;\n  width: 100%;\n}\n\na {\n  color: #fff;\n  font-size: 0.9em;\n  text-decoration: underline;\n}\n\nmedia-theme {\n  display: inline-block;\n  line-height: 0;\n  width: 100%;\n  height: 100%;\n  direction: ltr;\n}\n\nmedia-poster-image {\n  display: inline-block;\n  line-height: 0;\n  width: 100%;\n  height: 100%;\n}\n\nmedia-poster-image:not([src]):not([placeholdersrc]) {\n  display: none;\n}\n\n::part(top),\n[part~='top'] {\n  --media-control-display: var(--controls, var(--top-controls));\n  --media-play-button-display: var(--play-button, var(--top-play-button));\n  --media-live-button-display: var(--live-button, var(--top-live-button));\n  --media-seek-backward-button-display: var(--seek-backward-button, var(--top-seek-backward-button));\n  --media-seek-forward-button-display: var(--seek-forward-button, var(--top-seek-forward-button));\n  --media-mute-button-display: var(--mute-button, var(--top-mute-button));\n  --media-captions-button-display: var(--captions-button, var(--top-captions-button));\n  --media-captions-menu-button-display: var(\n    --captions-menu-button,\n    var(--media-captions-button-display, var(--top-captions-menu-button))\n  );\n  --media-rendition-menu-button-display: var(--rendition-menu-button, var(--top-rendition-menu-button));\n  --media-audio-track-menu-button-display: var(--audio-track-menu-button, var(--top-audio-track-menu-button));\n  --media-airplay-button-display: var(--airplay-button, var(--top-airplay-button));\n  --media-pip-button-display: var(--pip-button, var(--top-pip-button));\n  --media-fullscreen-button-display: var(--fullscreen-button, var(--top-fullscreen-button));\n  --media-cast-button-display: var(--cast-button, var(--top-cast-button, var(--_cast-button-drm-display)));\n  --media-playback-rate-button-display: var(--playback-rate-button, var(--top-playback-rate-button));\n  --media-playback-rate-menu-button-display: var(\n    --captions-menu-button,\n    var(--media-playback-rate-button-display, var(--top-playback-rate-menu-button))\n  );\n  --media-volume-range-display: var(--volume-range, var(--top-volume-range));\n  --media-time-range-display: var(--time-range, var(--top-time-range));\n  --media-time-display-display: var(--time-display, var(--top-time-display));\n  --media-duration-display-display: var(--duration-display, var(--top-duration-display));\n  --media-title-display-display: var(--title-display, var(--top-title-display));\n}\n\n::part(center),\n[part~='center'] {\n  --media-control-display: var(--controls, var(--center-control
78s));\n  --media-play-button-display: var(--play-button, var(--center-play-button));\n  --media-live-button-display: var(--live-button, var(--center-live-button));\n  --media-seek-backward-button-display: var(--seek-backward-button, var(--center-seek-backward-button));\n  --media-seek-forward-button-display: var(--seek-forward-button, var(--center-seek-forward-button));\n  --media-mute-button-display: var(--mute-button, var(--center-mute-button));\n  --media-captions-button-display: var(--captions-button, var(--center-captions-button));\n  --media-captions-menu-button-display: var(\n    --captions-menu-button,\n    var(--media-captions-button-display, var(--center-captions-menu-button))\n  );\n  --media-rendition-menu-button-display: var(--rendition-menu-button, var(--center-rendition-menu-button));\n  --media-audio-track-menu-button-display: var(--audio-track-menu-button, var(--center-audio-track-menu-button));\n  --media-airplay-button-display: var(--airplay-button, var(--center-airplay-button));\n  --media-pip-button-display: var(--pip-button, var(--center-pip-button));\n  --media-fullscreen-button-display: var(--fullscreen-button, var(--center-fullscreen-button));\n  --media-cast-button-display: var(--cast-button, var(--center-cast-button, var(--_cast-button-drm-display)));\n  --media-playback-rate-button-display: var(--playback-rate-button, var(--center-playback-rate-button));\n  --media-playback-rate-menu-button-display: var(\n    --playback-rate-menu-button,\n    var(--media-playback-rate-button-display, var(--center-playback-rate-menu-button))\n  );\n  --media-volume-range-display: var(--volume-range, var(--center-volume-range));\n  --media-time-range-display: var(--time-range, var(--center-time-range));\n  --media-time-display-display: var(--time-display, var(--center-time-display));\n  --media-duration-display-display: var(--duration-display, var(--center-duration-display));\n}\n\n::part(bottom),\n[part~='bottom'] {\n  --media-control-display: var(--controls, var(--bottom-controls));\n  --media-play-button-display: var(--play-button, var(--bottom-play-button));\n  --media-live-button-display: var(--live-button, var(--bottom-live-button));\n  --media-seek-backward-button-display: var(--seek-backward-button, var(--bottom-seek-backward-button));\n  --media-seek-forward-button-display: var(--seek-forward-button, var(--bottom-seek-forward-button));\n  --media-mute-button-display: var(--mute-button, var(--bottom-mute-button));\n  --media-captions-button-display: var(--captions-button, var(--bottom-captions-button));\n  --media-captions-menu-button-display: var(\n    --captions-menu-button,\n    var(--media-captions-button-display, var(--bottom-captions-menu-button))\n  );\n  --media-rendition-menu-button-display: var(--rendition-menu-button, var(--bottom-rendition-menu-button));\n  --media-audio-track-menu-button-display: var(--audio-track-menu-button, var(--bottom-audio-track-menu-button));\n  --media-airplay-button-display: var(--airplay-button, var(--bottom-airplay-button));\n  --media-pip-button-display: var(--pip-button, var(--bottom-pip-button));\n  --media-fullscreen-button-display: var(--fullscreen-button, var(--bottom-fullscreen-button));\n  --media-cast-button-display: var(--cast-button, var(--bottom-cast-button, var(--_cast-button-drm-display)));\n  --media-playback-rate-button-display: var(--playback-rate-button, var(--bottom-playback-rate-button));\n  --media-playback-rate-menu-button-display: var(\n    --playback-rate-menu-button,\n    var(--media-playback-rate-button-display, var(--bottom-playback-rate-menu-button))\n  );\n  --media-volume-range-display: var(--volume-range, var(--bottom-volume-range));\n  --media-time-range-display: var(--time-range, var(--bottom-time-range));\n  --media-time-display-display: var(--time-display, var(--bottom-time-display));\n  --media-duration-display-display: var(--duration-display, var(--bottom-duration-display));\n  --media-title-display-display: var(--title-display, var(--bottom-title-display));\n}\n\n:host([no-tooltips]) {\n  --media-tooltip-display: none;\n}\n"}
79  </style>
80  ${en(t)}
81`),this.shadowRoot)},wn=function(){let e=e=>{var t,a;if(null==e||!e.startsWith("theme-"))return;let n=e.replace(/^theme-/,"");if(mn.includes(n))return;let r=this.getAttribute(e);null!=r?null==(t=this.mediaTheme)||t.setAttribute(n,r):null==(a=this.mediaTheme)||a.removeAttribute(n)};ma(this,fn,new MutationObserver(t=>{for(let{attributeName:a}of t)e(a)})),da(this,fn).observe(this,{attributes:!0}
81),this.getAttributeNames().forEach(e)},Mn=function(){this.addEventListener("error",da(this,Nn)),this.media&&(this.media.errorTranslator=(e={})=>{var t,a,n;if(!((null==(t=this.media)?void 0:t.error)instanceof c))return e;let r=nn(null==(a=this.media)?void 0:a.error);return{player_error_code:null==(n=this.media)?void 0:n.error.code,player_error_message:r.message?String(r.message):e.player_error_message,player_error_context:r.context?String(r.context):e.player_error_context}})},xn=function(){var e,t,a,n;null==(t=null==(e=this.media)?void 0:e.textTracks)||t.addEventListener("addtrack",da(this,Rn)),null==(n=null==(a=this.media)?void 0:a.textTracks)||n.addEventListener("removetrack",da(this,Rn))},Pn=function(){var e,t;if(!/Firefox/i.test(navigator.userAgent))return;let a,n=new WeakMap,r=()=>this.streamType===b.LIVE&&!this.secondaryColor&&this.offsetWidth>=800,i=(e,t,a=!1)=>{r()||Array.from(e&&e.activeCues||[]).forEach(e=>{if(!(!e.snapToLines||e.line<-5||e.line>=0&&e.line<10))if(!t||this.paused){let t=e.text.split("\n").length,r=-3;this.streamType===b.LIVE&&(r=-2);let i=r-t;if(e.line===i&&!a)return;n.has(e)||n.set(e,e.line),e.line=i}else setTimeout(()=>{e.line=n.get(e)||"auto"},500)})},o=()=>{var e,t;i(a,null!=(t=null==(e=this.mediaController)?void 0:e.hasAttribute(ra.eS.USER_INACTIVE))&&t)},l=()=>{var e,t;let n=Array.from((null==(t=null==(e=this.mediaController)?void 0:e.media)?void 0:t.textTracks)||[]).filter(e=>["subtitles","captions"].includes(e.kind)&&"showing"===e.mode)[0];n!==a&&(null==a||a.removeEventListener("cuechange",o)),a=n,null==a||a.addEventListener("cuechange",o),i(a,da(this,Tn))};l(),null==(e=this.textTracks)||e.addEventListener("change",l),null==(t=this.textTracks)||t.addEventListener("addtrack",l);let s=()=>{var e,t;let n=null==(t=null==(e=this.mediaController)?void 0:e.hasAttribute(ra.eS.USER_INACTIVE))||t;da(this,Tn)!==n&&(ma(this,Tn,n),i(a,da(this,Tn)))};this.addEventListener("userinactivechange",s),ma(this,Cn,()=>{var e,t;null==a||a.removeEventListener("cuechange",o),null==(e=this.textTracks)||e.removeEventListener("change",l),null==(t=this.textTracks)||t.removeEventListener("addtrack",l),this.removeEventListener("userinactivechange",s)})};var Hn=class extends Va{constructor(){super(),ua(this,Sn),ua(this,En),ua(this,vn,!1),ua(this,gn,{}),ua(this,Tn,!0),ua(this,yn,new xa(this,"hotkeys")),ua(this,fn),ua(this,An,()=>ca(this,Sn,Ln).call(this)),ua(this,_n,()=>ca(this,Sn,Ln).call(this)),ua(this,Rn,()=>ca(this,Sn,Ln).call(this)),ua(this,Cn),ua(this,kn,{...Fn,onCloseErrorDialog:e=>{var t;"media-error-dialog"===(null==(t=e.composedPath()[0])?void 0:t.localName)&&ca(this,Sn,Dn).call(this,{isDialogOpen:!1})},onFocusInErrorDialog:e=>{var t;"media-error-dialog"===(null==(t=e.composedPath()[0])?void 0:t.localName)&&(Ca(this,ya.activeElement)||e.preventDefault())}}),ua(this,Nn,e=>{var t;let a=null==(t=this.media)?void 0:t.error;if(!(a instanceof c)){let{message:e,code:t}=null!=a?a:{};a=new c(e,t)}if(null==a||!a.fatal)return void(a.data&&(a.name,a.data));let n=nn(a);n.message&&Pa(n),a.data&&(a.name,a.data),ca(this,Sn,Dn).call(this,{isDialogOpen:!0})}),ma(this,En,Ke()),this.attachShadow({mode:"open"}
81),ca(this,Sn,In).call(this),this.isConnected&&ca(this,Sn,On).call(this)}static get NAME(){return Wn}static get VERSION(){return Yn}static get observedAttributes(){var e;return[...null!=(e=Va.observedAttributes)?e:[],...Kn,...Un,...Bn]}get mediaTheme(){var e;return null==(e=this.shadowRoot)?void 0:e.querySelector("media-theme")}get mediaController(){var e,t;return null==(t=null==(e=this.mediaTheme)?void 0:e.shadowRoot)?void 0:t.querySelector("media-controller")}connectedCallback(){ca(this,Sn,On).call(this);let e=this.media;e&&(e.metadata=bn(this))}disconnectedCallback(){var e,t,a,n,r,i,o,l;null==(e=da(this,fn))||e.disconnect(),null==(t=this.media)||t.removeEventListener("streamtypechange",da(this,An)),null==(a=this.media)||a.removeEventListener("loadstart",da(this,_n)),this.removeEventListener("error",da(this,Nn)),this.media&&(this.media.errorTranslator=void 0),null==(r=null==(n=this.media)?void 0:n.textTracks)||r.removeEventListener("addtrack",da(this,Rn)),null==(o=null==(i=this.media)?void 0:i.textTracks)||o.removeEventListener("removetrack",da(this,Rn)),null==(l=da(this,Cn))||l.call(this),ma(this,Cn,void 0),ma(this,vn,!1)}
81attributeChangedCallback(e,t,a){switch(ca(this,Sn,On).call(this),super.attributeChangedCallback(e,t,a),e){case un.HOTKEYS:da(this,yn).value=a;break;case un.THUMBNAIL_TIME:null!=a&&this.tokens.thumbnail&&P("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").toString();break;case un.THUMBNAIL_TOKEN:if(a){let e=x(a);if(e){let{aud:t}=e,a=ne;t!==a&&P("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:t,expectedAud:a,tokenNamePrefix:"thumbnail"})}}break;case un.STORYBOARD_TOKEN:if(a){let e=x(a);if(e){let{aud:t}=e,a=re;t!==a&&P("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:t,expectedAud:a,tokenNamePrefix:"storyboard"})}}break;case un.DRM_TOKEN:if(a){let e=x(a);if(e){let{aud:t}=e,a=ie;t!==a&&P("The {tokenNamePrefix}-token has an incorrect aud value: {aud}. aud value should be {expectedAud}.").format({aud:t,expectedAud:a,tokenNamePrefix:"drm"})}}break;case Pt.PLAYBACK_ID:null!=a&&a.includes("?token")&&P("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:a});break;case Pt.STREAM_TYPE:a&&![b.LIVE,b.ON_DEMAND,b.UNKNOWN].includes(a)?["ll-live","live:dvr","ll-live:dvr"].includes(this.streamType)?this.targetLiveWindow=a.includes("dvr")?Number.POSITIVE_INFINITY:0:Pa({file:"invalid-stream-type.md",message:P("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand` or `live`").format({streamType:this.streamType})}):a===b.LIVE?null==this.getAttribute(un.TARGET_LIVE_WINDOW)&&(this.targetLiveWindow=0):this.targetLiveWindow=Number.NaN;break;case un.FULLSCREEN_ELEMENT:if(null!=a||a!==t){let e=ya.getElementById(a),t=null==e?void 0:e.querySelector("mux-player");this.mediaController&&e&&t&&(this.mediaController.fullscreenElement=e)}break;case Pt.CAP_RENDITION_TO_PLAYER_SIZE:(null==a||a!==t)&&(this.capRenditionToPlayerSize=null!=a||void 0)}[Pt.PLAYBACK_ID,dn.SRC,un.PLAYBACK_TOKEN].includes(e)&&t!==a&&ma(this,kn,{...da(this,kn),...Fn}),ca(this,Sn,Ln).call(this,{[Da(e)]:a})}async requestFullscreen(e){var t;if(this.mediaController&&!this.mediaController.hasAttribute(ia.GC.MEDIA_IS_FULLSCREEN))return null==(t=this.mediaController)||t.dispatchEvent(new Ta.CustomEvent(ia.a8.MEDIA_ENTER_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0})),new Promise((e,t)=>{var a;null==(a=this.mediaController)||a.addEventListener(ia.T$.MEDIA_IS_FULLSCREEN,()=>e(),{once:!0})})}async exitFullscreen(){var e;if(this.mediaController&&this.mediaController.hasAttribute(ia.GC.MEDIA_IS_FULLSCREEN))return null==(e=this.mediaController)||e.dispatchEvent(new Ta.CustomEvent(ia.a8.MEDIA_EXIT_FULLSCREEN_REQUEST,{composed:!0,bubbles:!0})),new Promise((e,t)=>{var a;null==(a=this.mediaController)||a.addEventListener(ia.T$.MEDIA_IS_FULLSCREEN,()=>e(),{once:!0})})}get preferCmcd(){var e;return null!=(e=this.getAttribute(Pt.PREFER_CMCD))?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?T.includes(e)?this.setAttribute(Pt.PREFER_CMCD,e):T.join():this.removeAttribute(Pt.PREFER_CMCD))}get hasPlayed(){var e,t;return null!=(t=null==(e=this.mediaController)?void 0:e.hasAttribute(ia.GC.MEDIA_HAS_PLAYED))&&t}get inLiveWindow(){var e;return null==(e=this.mediaController)?void 0:e.hasAttribute(ia.GC.MEDIA_TIME_IS_LIVE)}get _hls(){var e;return null==(e=this.media)?void 0:e._hls}get mux(){var e;return null==(e=this.media)?void 0:e.mux}get theme(){var e;return null!=(e=this.getAttribute(un.THEME))?e:"gerwig"}set theme(e){this.setAttribute(un.THEME,`${e}`)}get themeProps(){let e=this.mediaTheme;if(!e)return;let t={};for(let a of e.getAttributeNames()){if(mn.includes(a))continue;let n=e.getAttribute(a);t[Aa(a)]=""===n||n}return t}set themeProps(e){var t,a;
81ca(this,Sn,On).call(this);let n={...this.themeProps,...e};for(let r in n){if(mn.includes(r))continue;let n=null==e?void 0:e[r];"boolean"==typeof n||null==n?null==(t=this.mediaTheme)||t.toggleAttribute(fa(r),!!n):null==(a=this.mediaTheme)||a.setAttribute(fa(r),n)}}get playbackId(){var e;return null!=(e=this.getAttribute(Pt.PLAYBACK_ID))?e:void 0}set playbackId(e){e?this.setAttribute(Pt.PLAYBACK_ID,e):this.removeAttribute(Pt.PLAYBACK_ID)}get src(){var e,t;return this.playbackId?null!=(e=$n(this,dn.SRC))?e:void 0:null!=(t=this.getAttribute(dn.SRC))?t:void 0}set src(e){e?this.setAttribute(dn.SRC,e):this.removeAttribute(dn.SRC)}get poster(){var e;let t=this.getAttribute(dn.POSTER);if(null!=t)return t;let{tokens:a}=this;return(!a.playback||a.thumbnail)&&this.playbackId&&!this.audio?((e,{token:t,customDomain:a=ka,thumbnailTime:n,programTime:r}={})=>{var i;let o=null==t?n:void 0,{aud:l}=null!=(i=x(t))?i:{};if(!t||"t"===l)return`https://image.${a}/${e}/thumbnail.webp${Ra({token:t,time:o,program_time:r})}`})(this.playbackId,{customDomain:this.customDomain,thumbnailTime:null!=(e=this.thumbnailTime)?e:this.startTime,programTime:this.programStartTime,token:a.thumbnail}):void 0}set poster(e){e||""===e?this.setAttribute(dn.POSTER,e):this.removeAttribute(dn.POSTER)}get storyboardSrc(){var e;return null!=(e=this.getAttribute(un.STORYBOARD_SRC))?e:void 0}set storyboardSrc(e){e?this.setAttribute(un.STORYBOARD_SRC,e):this.removeAttribute(un.STORYBOARD_SRC)}get storyboard(){let{tokens:e}=this;return this.storyboardSrc&&!e.storyboard?this.storyboardSrc:this.audio||!this.playbackId||!this.streamType||[b.LIVE,b.UNKNOWN].includes(this.streamType)||e.playback&&!e.storyboard?void 0:((e,{token:t,customDomain:a=ka,programStartTime:n,programEndTime:r}={})=>{var i;let{aud:o}=null!=(i=x(t))?i:{};if(!t||"s"===o)return`https://image.${a}/${e}/storyboard.vtt${Ra({token:t,format:"webp",program_start_time:n,program_end_time:r})}`})(this.playbackId,{customDomain:this.customDomain,token:e.storyboard,programStartTime:this.programStartTime,programEndTime:this.programEndTime})}get audio(){return this.hasAttribute(un.AUDIO)}set audio(e){e?this.setAttribute(un.AUDIO,""):this.removeAttribute(un.AUDIO)}get hotkeys(){return da(this,yn)}get nohotkeys(){return this.hasAttribute(un.NOHOTKEYS)}set nohotkeys(e){e?this.setAttribute(un.NOHOTKEYS,""):this.removeAttribute(un.NOHOTKEYS)}get thumbnailTime(){return _a(this.getAttribute(un.THUMBNAIL_TIME))}set thumbnailTime(e){this.setAttribute(un.THUMBNAIL_TIME,`${e}`)}get videoTitle(){var e,t;return null!=(t=null!=(e=this.getAttribute(un.VIDEO_TITLE))?e:this.getAttribute(un.TITLE))?t:""}set videoTitle(e){e!==this.videoTitle&&(e?this.setAttribute(un.VIDEO_TITLE,e):this.removeAttribute(un.VIDEO_TITLE))}get placeholder(){var e;return null!=(e=$n(this,un.PLACEHOLDER))?e:""}set placeholder(e){this.setAttribute(un.PLACEHOLDER,`${e}`)}get primaryColor(){var e,t;let a=this.getAttribute(un.PRIMARY_COLOR);if(null!=a||this.mediaTheme&&(a=null==(t=null==(e=Ta.getComputedStyle(this.mediaTheme))?void 0:e.getPropertyValue("--_primary-color"))?void 0:t.trim(),a))return a}set primaryColor(e){this.setAttribute(un.PRIMARY_COLOR,`${e}`)}get secondaryColor(){var e,t;let a=this.getAttribute(un.SECONDARY_COLOR);if(null!=a||this.mediaTheme&&(a=null==(t=null==(e=Ta.getComputedStyle(this.mediaTheme))?void 0:e.getPropertyValue("--_secondary-color"))?void 0:t.trim(),a))return a}set secondaryColor(e){this.setAttribute(un.SECONDARY_COLOR,`${e}`)}get accentColor(){var e,t;let a=this.getAttribute(un.ACCENT_COLOR);if(null!=a||this.mediaTheme&&(a=null==(t=null==(e=Ta.getComputedStyle(this.mediaTheme))?void 0:e.getPropertyValue("--_accent-color"))?void 0:t.trim(),a))return a}set accentColor(e){this.setAttribute(un.ACCENT_COLOR,`${e}`)}get defaultShowRemainingTime(){return this.hasAttribute(un.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(e){e?this.setAttribute(un.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(un.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(this.hasAttribute(un.PLAYBACK_RATES))return this.getAttribute(un.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map(e=>Number(e)).filter(e=>!Number.isNaN(e)).sort((e,t)=>
81e-t)}set playbackRates(e){e?this.setAttribute(un.PLAYBACK_RATES,e.join(" ")):this.removeAttribute(un.PLAYBACK_RATES)}get forwardSeekOffset(){var e;return null!=(e=_a(this.getAttribute(un.FORWARD_SEEK_OFFSET)))?e:10}set forwardSeekOffset(e){this.setAttribute(un.FORWARD_SEEK_OFFSET,`${e}`)}get backwardSeekOffset(){var e;return null!=(e=_a(this.getAttribute(un.BACKWARD_SEEK_OFFSET)))?e:10}set backwardSeekOffset(e){this.setAttribute(un.BACKWARD_SEEK_OFFSET,`${e}`)}get defaultHiddenCaptions(){return this.hasAttribute(un.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(e){e?this.setAttribute(un.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(un.DEFAULT_HIDDEN_CAPTIONS)}get defaultDuration(){return _a(this.getAttribute(un.DEFAULT_DURATION))}set defaultDuration(e){null==e?this.removeAttribute(un.DEFAULT_DURATION):this.setAttribute(un.DEFAULT_DURATION,`${e}`)}get playerInitTime(){return this.hasAttribute(Pt.PLAYER_INIT_TIME)?_a(this.getAttribute(Pt.PLAYER_INIT_TIME)):da(this,En)}set playerInitTime(e){e!=this.playerInitTime&&(null==e?this.removeAttribute(Pt.PLAYER_INIT_TIME):this.setAttribute(Pt.PLAYER_INIT_TIME,""+ +e))}get playerSoftwareName(){var e;return null!=(e=this.getAttribute(Pt.PLAYER_SOFTWARE_NAME))?e:Wn}get playerSoftwareVersion(){var e;return null!=(e=this.getAttribute(Pt.PLAYER_SOFTWARE_VERSION))?e:Yn}get beaconCollectionDomain(){var e;return null!=(e=this.getAttribute(Pt.BEACON_COLLECTION_DOMAIN))?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(Pt.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(Pt.BEACON_COLLECTION_DOMAIN))}get maxResolution(){var e;return null!=(e=this.getAttribute(Pt.MAX_RESOLUTION))?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(Pt.MAX_RESOLUTION,e):this.removeAttribute(Pt.MAX_RESOLUTION))}get minResolution(){var e;return null!=(e=this.getAttribute(Pt.MIN_RESOLUTION))?e:void 0}set minResolution(e){e!==this.minResolution&&(e?this.setAttribute(Pt.MIN_RESOLUTION,e):this.removeAttribute(Pt.MIN_RESOLUTION))}get maxAutoResolution(){var e;return null!=(e=this.getAttribute(Pt.MAX_AUTO_RESOLUTION))?e:void 0}set maxAutoResolution(e){null==e?this.removeAttribute(Pt.MAX_AUTO_RESOLUTION):this.setAttribute(Pt.MAX_AUTO_RESOLUTION,e)}get renditionOrder(){var e;return null!=(e=this.getAttribute(Pt.RENDITION_ORDER))?e:void 0}set renditionOrder(e){e!==this.renditionOrder&&(e?this.setAttribute(Pt.RENDITION_ORDER,e):this.removeAttribute(Pt.RENDITION_ORDER))}get programStartTime(){return _a(this.getAttribute(Pt.PROGRAM_START_TIME))}set programStartTime(e){null==e?this.removeAttribute(Pt.PROGRAM_START_TIME):this.setAttribute(Pt.PROGRAM_START_TIME,`${e}`)}get programEndTime(){return _a(this.getAttribute(Pt.PROGRAM_END_TIME))}set programEndTime(e){null==e?this.removeAttribute(Pt.PROGRAM_END_TIME):this.setAttribute(Pt.PROGRAM_END_TIME,`${e}`)}get assetStartTime(){return _a(this.getAttribute(Pt.ASSET_START_TIME))}set assetStartTime(e){null==e?this.removeAttribute(Pt.ASSET_START_TIME):this.setAttribute(Pt.ASSET_START_TIME,`${e}`)}get assetEndTime(){return _a(this.getAttribute(Pt.ASSET_END_TIME))}set assetEndTime(e){null==e?this.removeAttribute(Pt.ASSET_END_TIME):this.setAttribute(Pt.ASSET_END_TIME,`${e}`)}get extraSourceParams(){return this.hasAttribute(un.EXTRA_SOURCE_PARAMS)?[...new URLSearchParams(this.getAttribute(un.EXTRA_SOURCE_PARAMS)).entries()].reduce((e,[t,a])=>(e[t]=a,e),{}):Vn}set extraSourceParams(e){null==e?this.removeAttribute(un.EXTRA_SOURCE_PARAMS):this.setAttribute(un.EXTRA_SOURCE_PARAMS,new URLSearchParams(e).toString())}get customDomain(){var e;return null!=(e=this.getAttribute(Pt.CUSTOM_DOMAIN))?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(Pt.CUSTOM_DOMAIN,e):this.removeAttribute(Pt.CUSTOM_DOMAIN))}get envKey(){var e;return null!=(e=$n(this,Pt.ENV_KEY))?e:void 0}set envKey(e){this.setAttribute(Pt.ENV_KEY,`${e}`)}get noVolumePref(){return this.hasAttribute(un.NO_VOLUME_PREF)}set noVolumePref(e){e?this.setAttribute(un.NO_VOLUME_PREF,""):this.removeAttribute(un.NO_VOLUME_PREF)}get noMutedPref(){return this.hasAttribute(un.NO_MUTED_PREF)}set noMutedPref(e){e?this.setAttribute(un.NO_MUTED_PREF,""):this.removeAttribute(un.NO_MUTED_PREF)}get debug(){return null!=$n(this,Pt.DEBUG)}set debug(e){e?this.setAttribute(Pt.DEBUG,""):this.removeAttribute(Pt.DEBUG)}get disableTracking(){return null!=$n(this,Pt.DISABLE_TRACKING)}set disableTracking(e){this.toggleAttribute(Pt.DISABLE_TRACKING,!!e)}get disableCookies(){return null!=$n(this,Pt.DISABLE_COOKIES)}set disableCookies(e){e?this.setAttribute(Pt.DISABLE_COOKIES,""):this.removeAttribute(Pt.DISABLE_COOKIES)}get streamType(){var e,t,a;return null!=(a=null!=(t=this.getAttribute(Pt.STREAM_TYPE))?t:null==(e=this.media)?void 0:e.streamType)?a:b.UNKNOWN}set streamType(e){this.setAttribute(Pt.STREAM_TYPE,`${e}`)}get defaultStreamType(){var e,t,a;return null!=(a=null!=(t=this.getAttribute(un.DEFAULT_STREAM_TYPE))?t:null==(e=this.mediaController)?void 0:e.getAttribute(un.DEFAULT_STREAM_TYPE))?a:b.ON_DEMAND}set defaultStreamType(e){e?this.setAttribute(un.DEFAULT_STREAM_TYPE,e):this.removeAttribute(un.DEFAULT_STREAM_TYPE)}get targetLiveWindow(){var e,t;return this.hasAttribute(un.TARGET_LIVE_WINDOW)?+this.getAttribute(un.TARGET_LIVE_WINDOW):null!=(t=null==(e=this.media)?void 0:e.targetLiveWindow)?t:Number.NaN}set targetLiveWindow(e){e==this.targetLiveWindow||Number.isNaN(e)&&Number.isNaN(this.targetLiveWindow)||(null==e?this.removeAttribute(un.TARGET_LIVE_WINDOW):this.setAttribute(un.TARGET_LIVE_WINDOW,""+ +e))}get liveEdgeStart(){var e;return null==(e=this.media)?void 0:e.liveEdgeStart}get startTime(){return _a($n(this,Pt.START_TIME))}set startTime(e){this.setAttribute(Pt.START_TIME,`${e}`)}get initialBandwidthEstimateKbps(){return _a($n(this,Pt.INITIAL_BANDWIDTH_ESTIMATE_KBPS))}set initialBandwidthEstimateKbps(e){null==e?this.removeAttribute(Pt.INITIAL_BANDWIDTH_ESTIMATE_KBPS):this.setAttribute(Pt.INITIAL_BANDWIDTH_ESTIMATE_KBPS,`${e}`)}get initialEstimateSegments(){return _a($n(this,Pt.INITIAL_ESTIMATE_SEGMENTS))}set initialEstimateSegments(e){null==e?this.removeAttribute(Pt.INITIAL_ESTIMATE_SEGMENTS):this.setAttribute(Pt.INITIAL_ESTIMATE_SEGMENTS,`${e}`)}get minPreloadSegments(){return _a($n(this,Pt.MIN_PRELOAD_SEGMENTS))}set minPreloadSegments(e){null==e?this.removeAttribute(Pt.MIN_PRELOAD_SEGMENTS):this.setAttribute(Pt.MIN_PRELOAD_SEGMENTS,`${e}`)}get preferPlayback(){let e=this.getAttribute(Pt.PREFER_PLAYBACK);if(e===E||e===v)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===E||e===v?this.setAttribute(Pt.PREFER_PLAYBACK,e):this.removeAttribute(Pt.PREFER_PLAYBACK))}get metadata(){var e;return null==(e=this.media)?void 0:e.metadata}
81set metadata(e){ca(this,Sn,On).call(this),this.media&&(this.media.metadata={...bn(this),...e})}get _hlsConfig(){var e;return null==(e=this.media)?void 0:e._hlsConfig}set _hlsConfig(e){ca(this,Sn,On).call(this),this.media&&(this.media._hlsConfig=e)}async addCuePoints(e){var t;if(ca(this,Sn,On).call(this),this.media)return null==(t=this.media)?void 0:t.addCuePoints(e)}get activeCuePoint(){var e;return null==(e=this.media)?void 0:e.activeCuePoint}get cuePoints(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.cuePoints)?t:[]}addChapters(e){var t;if(ca(this,Sn,On).call(this),this.media)return null==(t=this.media)?void 0:t.addChapters(e)}get activeChapter(){var e;return null==(e=this.media)?void 0:e.activeChapter}get chapters(){var e,t;return null!=(t=null==(e=this.media)?void 0:e.chapters)?t:[]}getStartDate(){var e;return null==(e=this.media)?void 0:e.getStartDate()}get currentPdt(){var e;return null==(e=this.media)?void 0:e.currentPdt}get tokens(){let e=this.getAttribute(un.PLAYBACK_TOKEN),t=this.getAttribute(un.DRM_TOKEN),a=this.getAttribute(un.THUMBNAIL_TOKEN),n=this.getAttribute(un.STORYBOARD_TOKEN);return{...da(this,gn),...null!=e?{playback:e}:{},...null!=t?{drm:t}:{},...null!=a?{thumbnail:a}:{},...null!=n?{storyboard:n}:{}}}set tokens(e){ma(this,gn,null!=e?e:{})}get playbackToken(){var e;return null!=(e=this.getAttribute(un.PLAYBACK_TOKEN))?e:void 0}set playbackToken(e){this.setAttribute(un.PLAYBACK_TOKEN,`${e}`)}get drmToken(){var e;return null!=(e=this.getAttribute(un.DRM_TOKEN))?e:void 0}set drmToken(e){this.setAttribute(un.DRM_TOKEN,`${e}`)}get thumbnailToken(){var e;return null!=(e=this.getAttribute(un.THUMBNAIL_TOKEN))?e:void 0}set thumbnailToken(e){this.setAttribute(un.THUMBNAIL_TOKEN,`${e}`)}get storyboardToken(){var e;return null!=(e=this.getAttribute(un.STORYBOARD_TOKEN))?e:void 0}set storyboardToken(e){this.setAttribute(un.STORYBOARD_TOKEN,`${e}`)}addTextTrack(e,t,a,n){var r;let i=null==(r=this.media)?void 0:r.nativeEl;if(i)return V(i,e,t,a,n)}removeTextTrack(e){var t;let a=null==(t=this.media)?void 0:t.nativeEl;if(a)return function(e,t){let a=Array.prototype.find.call(e.querySelectorAll("track"),e=>e.track===t);null==a||a.remove()}(a,e)}get textTracks(){var e;return null==(e=this.media)?void 0:e.textTracks}get castReceiver(){var e;return null!=(e=this.getAttribute(un.CAST_RECEIVER))?e:void 0}set castReceiver(e){e!==this.castReceiver&&(e?this.setAttribute(un.CAST_RECEIVER,e):this.removeAttribute(un.CAST_RECEIVER))}get castCustomData(){var e;return null==(e=this.media)?void 0:e.castCustomData}set castCustomData(e){this.media&&(this.media.castCustomData=e)}get noTooltips(){return this.hasAttribute(un.NO_TOOLTIPS)}set noTooltips(e){e?this.setAttribute(un.NO_TOOLTIPS,""):this.removeAttribute(un.NO_TOOLTIPS)}get proudlyDisplayMuxBadge(){return this.hasAttribute(un.PROUDLY_DISPLAY_MUX_BADGE)}set proudlyDisplayMuxBadge(e){e?this.setAttribute(un.PROUDLY_DISPLAY_MUX_BADGE,""):this.removeAttribute(un.PROUDLY_DISPLAY_MUX_BADGE)}get capRenditionToPlayerSize(){var e;return null==(e=this.media)?void 0:e.capRenditionToPlayerSize}set capRenditionToPlayerSize(e){this.media&&(this.media.capRenditionToPlayerSize=e)}},Gn=e=>{throw TypeError(e)},jn=(e,t,a)=>t.has(e)||Gn("Cannot "+a),Zn=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if("undefined"==typeof DocumentFragment){class e extends Zn{}globalThis.DocumentFragment=e}var zn,Xn=class extends Zn{},qn={get(e){},define(e,t,a){},getName:e=>null,upgrade(e){},whenDefined:e=>Promise.resolve(Xn)};zn=new WeakMap;var Qn={document:{createElement:function(e,t){return new Xn}},DocumentFragment,customElements:qn,CustomEvent:class{constructor(e,t={}){((e,t,a)=>{t.has(e)?Gn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a)})(this,zn),((e,t,a,n)=>{jn(e,t,"write to private field"),n?n.call(e,a):t.set(e,a)})(this,zn,null==t?void 0:t.detail)}get detail(){return((e,t,a)=>(jn(e,t,"read from private field"),a?a.call(e):t.get(e)))(this,zn)}initCustomEvent(){}},EventTarget:Zn,HTMLElement:Xn,HTMLVideoElement:class extends Zn{}},Jn="undefined"==typeof window||void 0===globalThis.customElements,er=Jn?Qn:globalThis;Jn||globalThis.document;er.customElements.get("mux-player")||(er.customElements.define("mux-player",Hn),er.MuxPlayerElement=Hn);var tr=parseInt(n.version)>
81=19,ar={className:"class",classname:"class",htmlFor:"for",crossOrigin:"crossorigin",viewBox:"viewBox",playsInline:"playsinline",autoPlay:"autoplay",playbackRate:"playbackrate"},nr=(e={})=>{let{ref:t,...a}=e;return Object.entries(a).reduce((e,[t,a])=>{let n=((e,t)=>{if(tr||"boolean"!=typeof t||t){if(((e,t)=>!(e=>null==e)(t)&&e in t)(e,ar))return ar[e];if(void 0!==t)return/[A-Z]/.test(e)?(e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`))(e):e}})(t,a);if(!n)return e;let r=(e=>tr||"boolean"!=typeof e?e:"")(a);return e[n]=r,e},{})};function rr(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ir(...e){return n.useCallback(function(...e){return t=>{let a=!1,n=e.map(e=>{let n=rr(e,t);return!a&&"function"==typeof n&&(a=!0),n});if(a)return()=>{for(let t=0;t<n.length;t++){let a=n[t];"function"==typeof a?a():rr(e[t],null)}}}}(...e),e)}var or=Object.prototype.hasOwnProperty,lr=(e,t,a)=>!((e,t)=>{if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(Array.isArray(e))return!(!Array.isArray(t)||e.length!==t.length)&&e.some((e,a)=>t[a]===e);let a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(let n=0;n<a.length;n++)if(!or.call(t,a[n])||!Object.is(e[a[n]],t[a[n]]))return!1;return!0})(t,e[a]),sr=(e,t,a)=>{e[a]=t},dr=(e,t,a,r=sr,i=lr)=>(0,n.useEffect)(()=>{let n=null==a?void 0:a.current;n&&i(n,t,e)&&r(n,t,e)},[null==a?void 0:a.current,t]),ur=(()=>{try{return"3.13.0"}catch{}return"UNKNOWN"})(),mr=(e,t,a)=>(0,n.useEffect)(()=>{let n=null==t?void 0:t.current;if(!n||!a)return;let r=e,i=a;return n.addEventListener(r,i),()=>{n.removeEventListener(r,i)}},[null==t?void 0:t.current,a,e]),cr=n.forwardRef(({children:e,...t},a)=>n.createElement("mux-player",{suppressHydrationWarning:!0,...nr(t),ref:a},e)),pr=ur,hr="mux-player-react",br=n.forwardRef((e,t)=>{var a;let r=(0,n.useRef)(null),i=ir(r,t),[o]=((e,t)=>{let{onAbort:a,onCanPlay:n,onCanPlayThrough:r,onEmptied:i,onLoadStart:o,onLoadedData:l,onLoadedMetadata:s,onProgress:d,onDurationChange:u,onVolumeChange:m,onRateChange:c,onResize:p,onWaiting:h,onPlay:b,onPlaying:E,onTimeUpdate:v,onPause:g,onSeeking:T,onSeeked:y,onStalled:f,onSuspend:A,onEnded:_,onError:R,onCuePointChange:C,onChapterChange:k,metadata:N,tokens:S,paused:O,playbackId:I,playbackRates:D,currentTime:L,themeProps:w,extraSourceParams:M,castCustomData:x,_hlsConfig:P,...U}=t;return dr("tokens",S,e),dr("playbackId",I,e),dr("playbackRates",D,e),dr("metadata",N,e),dr("extraSourceParams",M,e),dr("_hlsConfig",P,e),dr("themeProps",w,e),dr("castCustomData",x,e),dr("paused",O,e,(e,t)=>{null!=t&&(t?e.pause():e.play())},(e,t,a)=>!(e.hasAttribute("autoplay")&&!e.hasPlayed)&&lr(e,t,a)),dr("currentTime",L,e,(e,t)=>{null!=t&&(e.currentTime=t)}),mr("abort",e,a),mr("canplay",e,n),mr("canplaythrough",e,r),mr("emptied",e,i),mr("loadstart",e,o),mr("loadeddata",e,l),mr("loadedmetadata",e,s),mr("progress",e,d),mr("durationchange",e,u),mr("volumechange",e,m),mr("ratechange",e,c),mr("resize",e,p),mr("waiting",e,h),mr("play",e,b),mr("playing",e,E),mr("timeupdate",e,v),mr("pause",e,g),mr("seeking",e,T),mr("seeked",e,y),mr("stalled",e,f),mr("suspend",e,A),mr("ended",e,_),mr("error",e,R),mr("cuepointchange",e,C),mr("chapterchange",e,k),[U]})(r,e),[l]=(0,n.useState)(null!=(a=e.playerInitTime)?a:Ke());return n.createElement(cr,{ref:i,defaultHiddenCaptions:e.defaultHiddenCaptions,playerSoftwareName:hr,playerSoftwareVersion:pr,playerInitTime:l,...o})}),Er=br}}]);
82//# sourceMappingURL=reactPlayerMux-b7a6eed3.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.