@mux/mux-player 2.0.1 → 2.1.0-canary.0-662cd52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +833 -0
- package/README.md +4 -0
- package/dist/cjs.json +1 -0
- package/dist/esm.json +1 -0
- package/dist/iife.json +1 -0
- package/dist/index.cjs.js +150 -116
- package/dist/index.mjs +79 -45
- package/dist/module.json +1 -0
- package/dist/mux-player.js +164 -130
- package/dist/mux-player.mjs +164 -130
- package/dist/themes/gerwig/index.cjs.js +46 -12
- package/dist/themes/gerwig/index.js +46 -12
- package/dist/themes/gerwig/index.mjs +46 -12
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/helpers.d.ts +11 -14
- package/dist/types/index.d.ts +8 -3
- package/dist/types-ts3.4/helpers.d.ts +11 -14
- package/dist/types-ts3.4/index.d.ts +5 -2
- package/package.json +4 -5
- package/LICENSE +0 -9
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var Le=(t,a,e)=>{if(!a.has(t))throw TypeError("Cannot "+e)};var u=(t,a,e)=>(Le(t,a,"read from private field"),e?e.call(t):a.get(t)),b=(t,a,e)=>{if(a.has(t))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(t):a.set(t,e)},A=(t,a,e,r)=>(Le(t,a,"write to private field"),r?r.call(t,e):a.set(t,e),e);var f=(t,a,e)=>(Le(t,a,"access private method"),e);var W=class{addEventListener(){}removeEventListener(){}dispatchEvent(a){return!0}};if(typeof DocumentFragment=="undefined"){class t extends W{}globalThis.DocumentFragment=t}var z=class extends W{},
|
|
2
|
-
${r}${t.file}`}I(a)}var y={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},
|
|
1
|
+
var Le=(t,a,e)=>{if(!a.has(t))throw TypeError("Cannot "+e)};var u=(t,a,e)=>(Le(t,a,"read from private field"),e?e.call(t):a.get(t)),b=(t,a,e)=>{if(a.has(t))throw TypeError("Cannot add the same private member more than once");a instanceof WeakSet?a.add(t):a.set(t,e)},A=(t,a,e,r)=>(Le(t,a,"write to private field"),r?r.call(t,e):a.set(t,e),e);var f=(t,a,e)=>(Le(t,a,"access private method"),e);var W=class{addEventListener(){}removeEventListener(){}dispatchEvent(a){return!0}};if(typeof DocumentFragment=="undefined"){class t extends W{}globalThis.DocumentFragment=t}var z=class extends W{},we=class extends W{},Dt={get(t){},define(t,a,e){},upgrade(t){},whenDefined(t){return Promise.resolve(z)}},J,Oe=class{constructor(a,e={}){b(this,J,void 0);A(this,J,e==null?void 0:e.detail)}get detail(){return u(this,J)}initCustomEvent(){}};J=new WeakMap;function Vt(t,a){return new z}var at={document:{createElement:Vt},DocumentFragment,customElements:Dt,CustomEvent:Oe,EventTarget:W,HTMLElement:z,HTMLVideoElement:we},it=typeof window=="undefined"||typeof globalThis.customElements=="undefined",c=it?at:globalThis,T=it?at.document:globalThis.document;import{MediaController as ma}from"media-chrome";import"media-chrome/dist/experimental/index.js";import ua,{MediaError as ve,Attributes as d}from"@mux/mux-video";import{StreamTypes as w,PlaybackTypes as ke,addTextTrack as ca,removeTextTrack as pa,CmcdTypeValues as Ot}from"@mux/playback-core";import{VideoEvents as Ft}from"@mux/mux-video";var Ht="en",B={code:Ht};var rt="en";function l(t,a=!0){var i,o;let e=a&&(o=(i=B)==null?void 0:i[t])!=null?o:t,r=a?B.code:rt;return new Re(e,r)}var Re=class{constructor(a,e=(r=>(r=B.code)!=null?r:rt)()){this.message=a,this.locale=e}format(a){return this.message.replace(/\{(\w+)\}/g,(e,r)=>{var i;return(i=a[r])!=null?i:""})}toString(){return this.message}};function ot(t){let a="";return Object.entries(t).forEach(([e,r])=>{r!=null&&(a+=`${le(e)}: ${r}; `)}),a?a.trim():void 0}function le(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function me(t){return t.replace(/[-_]([a-z])/g,(a,e)=>e.toUpperCase())}function O(t){if(t==null)return;let a=+t;return Number.isNaN(a)?void 0:a}function Me(t){let a=Bt(t).toString();return a?"?"+a:""}function Bt(t){let a={};for(let e in t)t[e]!=null&&(a[e]=t[e]);return new URLSearchParams(a)}function N(t){let a=(t!=null?t:"").split(".")[1];if(!a)return{};let e=a.replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(atob(e).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(r)}var Se=(t,a)=>!t||!a?!1:t.contains(a)?!0:Se(t,a.getRootNode().host);import{StreamTypes as _e}from"@mux/playback-core";var nt="mux.com",Ut=()=>{try{return"2.1.0"}catch{}return"UNKNOWN"},$t=Ut(),ce=()=>$t,st=(t,{token:a,customDomain:e=nt,thumbnailTime:r}={})=>{let i=a==null?r:void 0,{aud:o}=N(a);if(!(a&&o!=="t"))return`https://image.${e}/${t}/thumbnail.webp${Me({token:a,time:i})}`},dt=(t,{token:a,customDomain:e=nt}={})=>{let{aud:r}=N(a);if(!(a&&r!=="s"))return`https://image.${e}/${t}/storyboard.vtt${Me({token:a,format:"webp"})}`},X=t=>{if(!!t){if([_e.LIVE,_e.ON_DEMAND].includes(t))return t;if(t!=null&&t.includes("live"))return _e.LIVE}};var Kt={crossorigin:"crossOrigin",playsinline:"playsInline"};function lt(t){var a;return(a=Kt[t])!=null?a:me(t)}var U,$,k,ue=class{constructor(a,e){b(this,U,void 0);b(this,$,void 0);b(this,k,[]);A(this,U,a),A(this,$,e)}[Symbol.iterator](){return u(this,k).values()}get length(){return u(this,k).length}get value(){var a;return(a=u(this,k).join(" "))!=null?a:""}set value(a){var e;a!==this.value&&(A(this,k,[]),this.add(...(e=a==null?void 0:a.split(" "))!=null?e:[]))}toString(){return this.value}item(a){return u(this,k)[a]}values(){return u(this,k).values()}keys(){return u(this,k).keys()}forEach(a){u(this,k).forEach(a)}add(...a){var e,r;a.forEach(i=>{this.contains(i)||u(this,k).push(i)}),!(this.value===""&&!((e=u(this,U))!=null&&e.hasAttribute(`${u(this,$)}`)))&&((r=u(this,U))==null||r.setAttribute(`${u(this,$)}`,`${this.value}`))}remove(...a){var e;a.forEach(r=>{u(this,k).splice(u(this,k).indexOf(r),1)}),(e=u(this,U))==null||e.setAttribute(`${u(this,$)}`,`${this.value}`)}contains(a){return u(this,k).includes(a)}toggle(a,e){return typeof e!="undefined"?e?(this.add(a),!0):(this.remove(a),!1):this.contains(a)?(this.remove(a),!1):(this.add(a),!0)}replace(a,e){this.remove(a),this.add(e)}};U=new WeakMap,$=new WeakMap,k=new WeakMap;var mt=`[mux-player ${ce()}]`;function I(...t){console.warn(mt,...t)}function L(...t){console.error(mt,...t)}function Pe(t){var e;let a=(e=t.message)!=null?e:"";if(t.context&&(a+=` ${t.context}`),t.file){let r="https://github.com/muxinc/elements/blob/main/errors/";a+=` ${l("Read more: ")}
|
|
2
|
+
${r}${t.file}`}I(a)}var y={AUTOPLAY:"autoplay",CROSSORIGIN:"crossorigin",LOOP:"loop",MUTED:"muted",PLAYSINLINE:"playsinline",PRELOAD:"preload"},K={VOLUME:"volume",PLAYBACKRATE:"playbackrate",MUTED:"muted"},ct=Object.freeze({length:0,start(t){let a=t>>>0;if(a>=this.length)throw new DOMException(`Failed to execute 'start' on 'TimeRanges': The index provided (${a}) is greater than or equal to the maximum bound (${this.length}).`);return 0},end(t){let a=t>>>0;if(a>=this.length)throw new DOMException(`Failed to execute 'end' on 'TimeRanges': The index provided (${a}) is greater than or equal to the maximum bound (${this.length}).`);return 0}}),Yt=Ft.filter(t=>t!=="error"),Wt=Object.values(y).filter(t=>![y.PLAYSINLINE].includes(t)),Zt=Object.values(K);function pt(t){t.querySelectorAll(":scope > track").forEach(a=>{var e;(e=t.media)==null||e.append(a.cloneNode())}),Yt.forEach(a=>{var e;(e=t.media)==null||e.addEventListener(a,r=>{t.dispatchEvent(new Event(r.type))})})}var Ne=class extends c.HTMLElement{static get observedAttributes(){return[...Wt,...Zt]}constructor(){super(),this.querySelectorAll(":scope > track").forEach(r=>{var i;(i=this.media)==null||i.append(r.cloneNode())});let a=r=>{for(let i of r)i.type==="childList"&&(i.removedNodes.forEach(o=>{var m,h;let s=(m=this.media)==null?void 0:m.querySelector(`track[src="${o.src}"]`);s&&((h=this.media)==null||h.removeChild(s))}),i.addedNodes.forEach(o=>{var s;(s=this.media)==null||s.append(o.cloneNode())}))};new MutationObserver(a).observe(this,{childList:!0,subtree:!0})}attributeChangedCallback(a,e,r){var i,o;switch(a){case K.MUTED:{this.media&&(this.media.muted=r!=null,this.media.defaultMuted=r!=null);return}case K.VOLUME:{let s=(i=O(r))!=null?i:1;this.media&&(this.media.volume=s);return}case K.PLAYBACKRATE:{let s=(o=O(r))!=null?o:1;this.media&&(this.media.playbackRate=s,this.media.defaultPlaybackRate=s);return}}}play(){var a,e;return(e=(a=this.media)==null?void 0:a.play())!=null?e:Promise.reject()}pause(){var a;(a=this.media)==null||a.pause()}requestCast(a){var e;return(e=this.media)==null?void 0:e.requestCast(a)}get media(){var a;return(a=this.shadowRoot)==null?void 0:a.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 a,e;return(e=(a=this.media)==null?void 0:a.paused)!=null?e:!0}get duration(){var a,e;return(e=(a=this.media)==null?void 0:a.duration)!=null?e:NaN}get ended(){var a,e;return(e=(a=this.media)==null?void 0:a.ended)!=null?e:!1}get buffered(){var a,e;return(e=(a=this.media)==null?void 0:a.buffered)!=null?e:ct}get seekable(){var a,e;return(e=(a=this.media)==null?void 0:a.seekable)!=null?e:ct}get readyState(){var a,e;return(e=(a=this.media)==null?void 0:a.readyState)!=null?e:0}get videoWidth(){var a,e;return(e=(a=this.media)==null?void 0:a.videoWidth)!=null?e:0}get videoHeight(){var a,e;return(e=(a=this.media)==null?void 0:a.videoHeight)!=null?e:0}get currentTime(){var a,e;return(e=(a=this.media)==null?void 0:a.currentTime)!=null?e:0}set currentTime(a){this.media&&(this.media.currentTime=Number(a))}get volume(){var a,e;return(e=(a=this.media)==null?void 0:a.volume)!=null?e:1}set volume(a){this.media&&(this.media.volume=Number(a))}get playbackRate(){var a,e;return(e=(a=this.media)==null?void 0:a.playbackRate)!=null?e:1}set playbackRate(a){this.media&&(this.media.playbackRate=Number(a))}get defaultPlaybackRate(){var a;return(a=O(this.getAttribute(K.PLAYBACKRATE)))!=null?a:1}set defaultPlaybackRate(a){a!=null?this.setAttribute(K.PLAYBACKRATE,`${a}`):this.removeAttribute(K.PLAYBACKRATE)}get crossOrigin(){return Q(this,y.CROSSORIGIN)}set crossOrigin(a){this.setAttribute(y.CROSSORIGIN,`${a}`)}get autoplay(){return Q(this,y.AUTOPLAY)!=null}set autoplay(a){a?this.setAttribute(y.AUTOPLAY,typeof a=="string"?a:""):this.removeAttribute(y.AUTOPLAY)}get loop(){return Q(this,y.LOOP)!=null}set loop(a){a?this.setAttribute(y.LOOP,""):this.removeAttribute(y.LOOP)}get muted(){var a,e;return(e=(a=this.media)==null?void 0:a.muted)!=null?e:!1}set muted(a){this.media&&(this.media.muted=Boolean(a))}get defaultMuted(){return Q(this,y.MUTED)!=null}set defaultMuted(a){a?this.setAttribute(y.MUTED,""):this.removeAttribute(y.MUTED)}get playsInline(){return Q(this,y.PLAYSINLINE)!=null}set playsInline(a){L("playsInline is set to true by default and is not currently supported as a setter.")}get preload(){return this.media?this.media.preload:this.getAttribute("preload")}set preload(a){["","none","metadata","auto"].includes(a)?this.setAttribute(y.PRELOAD,a):this.removeAttribute(y.PRELOAD)}};function Q(t,a){return t.media?t.media.getAttribute(a):t.getAttribute(a)}var Ie=Ne;import"media-chrome/dist/media-theme-element.js";var bt=`:host {
|
|
3
3
|
--media-control-display: var(--controls);
|
|
4
4
|
--media-loading-indicator-display: var(--loading-indicator);
|
|
5
5
|
--media-dialog-display: var(--dialog);
|
|
@@ -133,7 +133,7 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
133
133
|
--media-duration-display-display: var(--duration-display, var(--bottom-duration-display));
|
|
134
134
|
--media-title-display-display: var(--title-display, var(--bottom-title-display));
|
|
135
135
|
}
|
|
136
|
-
`;var
|
|
136
|
+
`;var gt=`
|
|
137
137
|
:host {
|
|
138
138
|
z-index: 100;
|
|
139
139
|
display: var(--media-dialog-display, flex);
|
|
@@ -185,17 +185,17 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
185
185
|
text-align: center;
|
|
186
186
|
line-height: 1.4;
|
|
187
187
|
}
|
|
188
|
-
`,
|
|
188
|
+
`,ft=T.createElement("template");ft.innerHTML=`
|
|
189
189
|
<style>
|
|
190
|
-
${
|
|
190
|
+
${gt}
|
|
191
191
|
</style>
|
|
192
192
|
|
|
193
193
|
<div class="dialog">
|
|
194
194
|
<slot></slot>
|
|
195
195
|
</div>
|
|
196
|
-
`;var D=class extends c.HTMLElement{constructor(){var e;super();this.attachShadow({mode:"open"}),(e=this.shadowRoot)==null||e.appendChild(this.constructor.template.content.cloneNode(!0))}show(){this.setAttribute("open",""),this.dispatchEvent(new CustomEvent("open",{composed:!0,bubbles:!0})),
|
|
196
|
+
`;var D=class extends c.HTMLElement{constructor(){var e;super();this.attachShadow({mode:"open"}),(e=this.shadowRoot)==null||e.appendChild(this.constructor.template.content.cloneNode(!0))}show(){this.setAttribute("open",""),this.dispatchEvent(new CustomEvent("open",{composed:!0,bubbles:!0})),ht(this)}close(){!this.hasAttribute("open")||(this.removeAttribute("open"),this.dispatchEvent(new CustomEvent("close",{composed:!0,bubbles:!0})),qt(this))}attributeChangedCallback(e,r,i){e==="open"&&r!==i&&(i!=null?this.show():this.close())}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","dialog"),this.hasAttribute("open")&&ht(this)}};D.styles=gt,D.template=ft,D.observedAttributes=["open"];function ht(t){let a=new CustomEvent("initfocus",{composed:!0,bubbles:!0,cancelable:!0});if(t.dispatchEvent(a),a.defaultPrevented)return;let e=t.querySelector("[autofocus]:not([disabled])");!e&&t.tabIndex>=0&&(e=t),e||(e=yt(t.shadowRoot)),t._previouslyFocusedElement=T.activeElement,T.activeElement instanceof HTMLElement&&T.activeElement.blur(),t.addEventListener("transitionend",()=>{e instanceof HTMLElement&&e.focus({preventScroll:!0})},{once:!0})}function yt(t){let e=["button","input","keygen","select","textarea"].map(function(i){return i+":not([disabled])"});e.push('[tabindex]:not([disabled]):not([tabindex=""])');let r=t==null?void 0:t.querySelector(e.join(", "));if(!r&&"attachShadow"in Element.prototype){let i=(t==null?void 0:t.querySelectorAll("*"))||[];for(let o=0;o<i.length&&!(i[o].tagName&&i[o].shadowRoot&&(r=yt(i[o].shadowRoot),r));o++);}return r}function qt(t){t._previouslyFocusedElement instanceof HTMLElement&&t._previouslyFocusedElement.focus()}c.customElements.get("media-dialog")||(c.customElements.define("media-dialog",D),c.MediaDialog=D);var De=D;var vt=T.createElement("template");vt.innerHTML=`
|
|
197
197
|
<style>
|
|
198
|
-
${
|
|
198
|
+
${De.styles}
|
|
199
199
|
|
|
200
200
|
.close {
|
|
201
201
|
background: none;
|
|
@@ -224,12 +224,12 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
224
224
|
</svg>
|
|
225
225
|
</button>
|
|
226
226
|
</slot>
|
|
227
|
-
`;var ee=class extends
|
|
227
|
+
`;var ee=class extends De{constructor(){var a,e;super(),(e=(a=this.shadowRoot)==null?void 0:a.querySelector(".close"))==null||e.addEventListener("click",()=>{this.close()})}};ee.template=vt;c.customElements.get("mxp-dialog")||(c.customElements.define("mxp-dialog",ee),c.MxpDialog=ee);import{TemplateInstance as Gt,ChildNodePart as be,AttrPart as he}from"media-chrome/dist/media-theme-element.js";var te=new WeakMap,ae=class{constructor(a,e){this.element=a;this.type=e;this.element.addEventListener(this.type,this);let r=te.get(this.element);r&&r.set(this.type,this)}set(a){if(typeof a=="function")this.handleEvent=a.bind(this.element);else if(typeof a=="object"&&typeof a.handleEvent=="function")this.handleEvent=a.handleEvent.bind(a);else{this.element.removeEventListener(this.type,this);let e=te.get(this.element);e&&e.delete(this.type)}}static for(a){te.has(a.element)||te.set(a.element,new Map);let e=a.attributeName.slice(2),r=te.get(a.element);return r&&r.has(e)?r.get(e):new ae(a.element,e)}};function zt(t,a){return t instanceof he&&t.attributeName.startsWith("on")?(ae.for(t).set(a),t.element.removeAttributeNS(t.attributeNamespace,t.attributeName),!0):!1}function Jt(t,a){return a instanceof pe&&t instanceof be?(a.renderInto(t),!0):!1}function Xt(t,a){return a instanceof DocumentFragment&&t instanceof be?(a.childNodes.length&&t.replace(...a.childNodes),!0):!1}function Qt(t,a){if(t instanceof he){let e=t.attributeNamespace,r=t.element.getAttributeNS(e,t.attributeName);return String(a)!==r&&(t.value=String(a)),!0}return t.value=String(a),!0}function ea(t,a){if(t instanceof he&&a instanceof Element){let e=t.element;return e[t.attributeName]!==a&&(t.element.removeAttributeNS(t.attributeNamespace,t.attributeName),e[t.attributeName]=a),!0}return!1}function ta(t,a){if(typeof a=="boolean"&&t instanceof he){let e=t.attributeNamespace,r=t.element.hasAttributeNS(e,t.attributeName);return a!==r&&(t.booleanValue=a),!0}return!1}function aa(t,a){return a===!1&&t instanceof be?(t.replace(""),!0):!1}function ia(t,a){ea(t,a)||ta(t,a)||zt(t,a)||aa(t,a)||Jt(t,a)||Xt(t,a)||Qt(t,a)}var Ve=new Map,kt=new WeakMap,Et=new WeakMap,pe=class{constructor(a,e,r){this.strings=a;this.values=e;this.processor=r;this.stringsKey=this.strings.join("")}get template(){if(Ve.has(this.stringsKey))return Ve.get(this.stringsKey);{let a=T.createElement("template"),e=this.strings.length-1;return a.innerHTML=this.strings.reduce((r,i,o)=>r+i+(o<e?`{{ ${o} }}`:""),""),Ve.set(this.stringsKey,a),a}}renderInto(a){var i;let e=this.template;if(kt.get(a)!==e){kt.set(a,e);let o=new Gt(e,this.values,this.processor);Et.set(a,o),a instanceof be?a.replace(...o.children):a.appendChild(o);return}let r=Et.get(a);(i=r==null?void 0:r.update)==null||i.call(r,this.values)}},ra={processCallback(t,a,e){var r;if(!!e){for(let[i,o]of a)if(i in e){let s=(r=e[i])!=null?r:"";ia(o,s)}}}};function R(t,...a){return new pe(t,a,ra)}function Tt(t,a){t.renderInto(a)}import{StreamTypes as oa,toMuxVideoURL as Ct}from"@mux/playback-core";var At=t=>R`
|
|
228
228
|
<style>
|
|
229
|
-
${
|
|
229
|
+
${bt}
|
|
230
230
|
</style>
|
|
231
231
|
${sa(t)}
|
|
232
|
-
`,na=t=>{let a=t.hotKeys?`${t.hotKeys}`:"";return X(t.streamType)==="live"&&(a+=" noarrowleft noarrowright"),a},sa=t=>{var a,e,r,i,o,s,m,h,x,E,_,g,v,C,P,p,de,G,Y,Fe,Ye,We,Ze,je,qe,Ge,ze,Je,Xe,Qe,et,tt
|
|
232
|
+
`,na=t=>{let a=t.hotKeys?`${t.hotKeys}`:"";return X(t.streamType)==="live"&&(a+=" noarrowleft noarrowright"),a},sa=t=>{var a,e,r,i,o,s,m,h,x,E,_,g,v,C,P,p,de,G,Y,$e,Ke,Fe,Ye,We,Ze,je,qe,Ge,ze,Je,Xe,Qe,et,tt;return R`
|
|
233
233
|
<media-theme
|
|
234
234
|
template="${t.themeTemplate||!1}"
|
|
235
235
|
defaultstreamtype="${(a=t.defaultStreamType)!=null?a:!1}"
|
|
@@ -239,7 +239,7 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
239
239
|
novolumepref="${t.novolumepref||!1}"
|
|
240
240
|
disabled="${!t.hasSrc||t.isDialogOpen}"
|
|
241
241
|
audio="${(r=t.audio)!=null?r:!1}"
|
|
242
|
-
style="${(i=
|
|
242
|
+
style="${(i=ot({"--media-primary-color":t.primaryColor,"--media-secondary-color":t.secondaryColor,"--media-accent-color":t.accentColor}))!=null?i:!1}"
|
|
243
243
|
defaultsubtitles="${!t.defaultHiddenCaptions}"
|
|
244
244
|
forwardseekoffset="${(o=t.forwardSeekOffset)!=null?o:!1}"
|
|
245
245
|
backwardseekoffset="${(s=t.backwardSeekOffset)!=null?s:!1}"
|
|
@@ -261,48 +261,48 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
261
261
|
preload="${(de=t.preload)!=null?de:!1}"
|
|
262
262
|
debug="${(G=t.debug)!=null?G:!1}"
|
|
263
263
|
prefer-cmcd="${(Y=t.preferCmcd)!=null?Y:!1}"
|
|
264
|
-
disable-cookies="${(
|
|
265
|
-
prefer-playback="${(
|
|
264
|
+
disable-cookies="${($e=t.disableCookies)!=null?$e:!1}"
|
|
265
|
+
prefer-playback="${(Ke=t.preferPlayback)!=null?Ke:!1}"
|
|
266
266
|
start-time="${t.startTime!=null?t.startTime:!1}"
|
|
267
|
-
beacon-collection-domain="${(
|
|
268
|
-
player-software-name="${(
|
|
269
|
-
player-software-version="${(
|
|
270
|
-
env-key="${(
|
|
271
|
-
custom-domain="${(
|
|
272
|
-
src="${t.src?t.src:t.playbackId?
|
|
273
|
-
cast-src="${t.src?t.src:t.playbackId?
|
|
267
|
+
beacon-collection-domain="${(Fe=t.beaconCollectionDomain)!=null?Fe:!1}"
|
|
268
|
+
player-software-name="${(Ye=t.playerSoftwareName)!=null?Ye:!1}"
|
|
269
|
+
player-software-version="${(We=t.playerSoftwareVersion)!=null?We:!1}"
|
|
270
|
+
env-key="${(Ze=t.envKey)!=null?Ze:!1}"
|
|
271
|
+
custom-domain="${(je=t.customDomain)!=null?je:!1}"
|
|
272
|
+
src="${t.src?t.src:t.playbackId?Ct(t):!1}"
|
|
273
|
+
cast-src="${t.src?t.src:t.playbackId?Ct(t):!1}"
|
|
274
274
|
exportparts="video"
|
|
275
275
|
>
|
|
276
|
-
${t.storyboard?
|
|
276
|
+
${t.storyboard?R`<track label="thumbnails" default kind="metadata" src="${t.storyboard}" />`:R``}
|
|
277
277
|
</mux-video>
|
|
278
278
|
<slot name="poster" slot="poster">
|
|
279
279
|
<media-poster-image
|
|
280
280
|
part="poster"
|
|
281
281
|
exportparts="poster, img"
|
|
282
|
-
src="${t.poster===""?!1:(
|
|
283
|
-
placeholdersrc="${(
|
|
282
|
+
src="${t.poster===""?!1:(qe=t.poster)!=null?qe:!1}"
|
|
283
|
+
placeholdersrc="${(Ge=t.placeholder)!=null?Ge:!1}"
|
|
284
284
|
></media-poster-image>
|
|
285
285
|
</slot>
|
|
286
286
|
<mxp-dialog
|
|
287
287
|
no-auto-hide
|
|
288
|
-
open="${(
|
|
288
|
+
open="${(ze=t.isDialogOpen)!=null?ze:!1}"
|
|
289
289
|
onclose="${t.onCloseErrorDialog}"
|
|
290
290
|
oninitfocus="${t.onInitFocusDialog}"
|
|
291
291
|
>
|
|
292
|
-
${(
|
|
292
|
+
${(Je=t.dialog)!=null&&Je.title?R`<h3>${t.dialog.title}</h3>`:R``}
|
|
293
293
|
<p>
|
|
294
|
-
${(
|
|
295
|
-
${(
|
|
294
|
+
${(Xe=t.dialog)==null?void 0:Xe.message}
|
|
295
|
+
${(Qe=t.dialog)!=null&&Qe.linkUrl?R`<a
|
|
296
296
|
href="${t.dialog.linkUrl}"
|
|
297
297
|
target="_blank"
|
|
298
298
|
rel="external noopener"
|
|
299
|
-
aria-label="${(
|
|
300
|
-
>${(
|
|
301
|
-
>`:
|
|
299
|
+
aria-label="${(et=t.dialog.linkText)!=null?et:""} ${l("(opens in a new window)")}"
|
|
300
|
+
>${(tt=t.dialog.linkText)!=null?tt:t.dialog.linkUrl}</a
|
|
301
|
+
>`:R``}
|
|
302
302
|
</p>
|
|
303
303
|
</mxp-dialog>
|
|
304
304
|
</media-theme>
|
|
305
|
-
`};import{MediaError as
|
|
305
|
+
`};import{MediaError as ge}from"@mux/mux-video";function fe(t,a,e,r,i){var m,h,x;let o={},s={};switch(t.code){case ge.MEDIA_ERR_NETWORK:{switch(o.title=l("Network Error",i),o.message=t.message,(m=t.data)==null?void 0:m.response.code){case 412:{o.title=l("Video is not currently available",i),o.message=l("The live stream or video file are not yet ready.",i),s.message=l("This playback-id may belong to a live stream that is not currently active or an asset that is not ready.",i),s.file="412-not-playable.md";break}case 404:{o.title=l("Video does not exist",i),o.message="",s.message=l("This playback-id does not exist. You may have used an Asset ID or an ID from a different resource.",i),s.file="404-not-found.md";break}case 403:{if(o.title=l("Invalid playback URL",i),o.message=l("The video URL or playback-token are formatted with incorrect or incomplete information.",i),s.message=l("403 error trying to access this playback URL. If this is a signed URL, you might need to provide a playback-token.",i),s.file="missing-signed-tokens.md",!r)break;let{exp:E,aud:_,sub:g}=N(r),v=Date.now()>E*1e3,C=g!==e,P=_!=="v",p={timeStyle:"medium",dateStyle:"medium"};if(v){o.title=l("Video URL has expired",i),o.message=l("The video\u2019s secured playback-token has expired.",i),s.message=l("The video\u2019s secured playback-token has expired.",i),s.context=l("Expired at: {expiredDate}. Current time: {currentDate}.",i).format({expiredDate:new Intl.DateTimeFormat(B.code,p).format(E*1e3),currentDate:new Intl.DateTimeFormat(B.code,p).format(Date.now())}),s.file="403-expired-token.md";break}if(C){o.title=l("Video URL is formatted incorrectly",i),o.message=l("The video\u2019s playback ID does not match the one encoded in the playback-token.",i),s.message=l("The video\u2019s playback ID does not match the one encoded in the playback-token.",i),s.context=l("Specified playback ID: {playbackId} and the playback ID encoded in the playback-token: {tokenPlaybackId}",i).format({playbackId:e,tokenPlaybackId:g}),s.file="403-playback-id-mismatch.md";break}if(P){o.title=l("Video URL is formatted incorrectly",i),o.message=l("The playback-token is formatted with incorrect information.",i),s.message=l("The playback-token is formatted with incorrect information.",i),s.context=l("The playback-token has an incorrect aud value: {tokenType}. aud value should be v.",i).format({tokenType:_}),s.file="403-incorrect-aud-value.md";break}s.message=l("403 error trying to access this playback URL. If this is a signed playback ID, the token might not have been generated correctly.",i),s.file="403-malformatted-token.md";break}}break}case ge.MEDIA_ERR_DECODE:{let{message:E}=t;o={title:l("Media Error",i),message:E},s.file="media-decode-error.md";break}case ge.MEDIA_ERR_SRC_NOT_SUPPORTED:{let E=(x=(h=t.data)==null?void 0:h.response)==null?void 0:x.code;if(E>=400&&E<500){t.code=ge.MEDIA_ERR_NETWORK,t.data={response:{code:E}},{dialog:o,devlog:s}=fe(t,a,e,r);break}o={title:l("Source Not Supported",i),message:t.message},s.file="media-src-not-supported.md";break}default:o={title:l("Error",i),message:t.message};break}return a&&(o={title:l("Your device appears to be offline",i),message:l("Check your internet connection and try reloading this video.",i)}),{dialog:o,devlog:s}}var xt=`<template id="media-theme-gerwig">
|
|
306
306
|
<style>
|
|
307
307
|
@keyframes pre-play-hide {
|
|
308
308
|
0% {
|
|
@@ -436,23 +436,30 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
436
436
|
transform: translate(-50%, -10px);
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
:is(media-captions-listbox, media-rendition-listbox, media-audio-track-listbox)::part(
|
|
439
|
+
:is(media-captions-listbox, media-rendition-listbox, media-audio-track-listbox, media-playback-rate-listbox)::part(
|
|
440
|
+
indicator
|
|
441
|
+
) {
|
|
440
442
|
fill: var(--_accent-color);
|
|
441
443
|
}
|
|
442
444
|
|
|
443
|
-
:is(media-captions-listbox, media-rendition-listbox, media-audio-track-listbox)::part(
|
|
445
|
+
:is(media-captions-listbox, media-rendition-listbox, media-audio-track-listbox, media-playback-rate-listbox)::part(
|
|
446
|
+
option
|
|
447
|
+
) {
|
|
444
448
|
display: flex;
|
|
445
449
|
align-items: center;
|
|
446
450
|
padding: 8px 10px;
|
|
447
451
|
}
|
|
448
452
|
|
|
449
|
-
:is(media-captions-listbox, media-rendition-listbox, media-audio-track-listbox)::part(
|
|
453
|
+
:is(media-captions-listbox, media-rendition-listbox, media-audio-track-listbox, media-playback-rate-listbox)::part(
|
|
454
|
+
option-selected
|
|
455
|
+
) {
|
|
450
456
|
font-weight: 700;
|
|
451
457
|
}
|
|
452
458
|
|
|
453
459
|
media-captions-listbox,
|
|
454
460
|
media-rendition-listbox,
|
|
455
|
-
media-audio-track-listbox
|
|
461
|
+
media-audio-track-listbox,
|
|
462
|
+
media-playback-rate-listbox {
|
|
456
463
|
border-radius: 2px;
|
|
457
464
|
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
458
465
|
bottom: calc(100% + 16px);
|
|
@@ -461,7 +468,8 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
461
468
|
|
|
462
469
|
media-captions-selectmenu,
|
|
463
470
|
media-rendition-selectmenu,
|
|
464
|
-
media-audio-track-selectmenu
|
|
471
|
+
media-audio-track-selectmenu,
|
|
472
|
+
media-playback-rate-listbox {
|
|
465
473
|
--media-listbox-background: var(--_primary-color);
|
|
466
474
|
--media-option-selected-background: transparent;
|
|
467
475
|
--media-option-hover-background: transparent;
|
|
@@ -509,6 +517,7 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
509
517
|
padding-bottom: min(100px, 25%);
|
|
510
518
|
background: linear-gradient(#000, transparent);
|
|
511
519
|
opacity: 0.8;
|
|
520
|
+
pointer-events: none;
|
|
512
521
|
}
|
|
513
522
|
|
|
514
523
|
:host(:not([audio])) media-control-bar[part~='bottom']::before {
|
|
@@ -521,6 +530,7 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
521
530
|
background: linear-gradient(transparent, #000);
|
|
522
531
|
opacity: 0.8;
|
|
523
532
|
z-index: 1;
|
|
533
|
+
pointer-events: none;
|
|
524
534
|
}
|
|
525
535
|
|
|
526
536
|
media-control-bar[part~='bottom'] > * {
|
|
@@ -1014,14 +1024,38 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
1014
1024
|
</media-live-button>
|
|
1015
1025
|
</template>
|
|
1016
1026
|
|
|
1017
|
-
<template partial="
|
|
1018
|
-
<media-playback-rate-
|
|
1027
|
+
<template partial="PlaybackRateSelect">
|
|
1028
|
+
<media-playback-rate-selectmenu
|
|
1019
1029
|
rates="{{playbackrates}}"
|
|
1020
|
-
part="bottom playback-rate
|
|
1030
|
+
part="bottom playback-rate selectmenu"
|
|
1021
1031
|
disabled="{{disabled}}"
|
|
1022
1032
|
aria-disabled="{{disabled}}"
|
|
1023
1033
|
>
|
|
1024
|
-
|
|
1034
|
+
<media-playback-rate-button slot="button" part="bottom playback-rate button"></media-playback-rate-button>
|
|
1035
|
+
<media-playback-rate-listbox slot="listbox" part="bottom playback-rate listbox">
|
|
1036
|
+
<div slot="select-indicator">
|
|
1037
|
+
<style>
|
|
1038
|
+
.listbox-indicator {
|
|
1039
|
+
position: relative;
|
|
1040
|
+
top: 1px;
|
|
1041
|
+
width: 0.9em;
|
|
1042
|
+
height: auto;
|
|
1043
|
+
fill: var(--_accent-color);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
[aria-selected='false'] .listbox-indicator {
|
|
1047
|
+
display: none;
|
|
1048
|
+
}
|
|
1049
|
+
</style>
|
|
1050
|
+
<svg viewBox="0 0 14 18" class="listbox-indicator">
|
|
1051
|
+
<path
|
|
1052
|
+
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"
|
|
1053
|
+
fill-rule="evenodd"
|
|
1054
|
+
/>
|
|
1055
|
+
</svg>
|
|
1056
|
+
</div>
|
|
1057
|
+
</media-playback-rate-listbox>
|
|
1058
|
+
</media-playback-rate-selectmenu>
|
|
1025
1059
|
</template>
|
|
1026
1060
|
|
|
1027
1061
|
<template partial="VolumeRange">
|
|
@@ -1192,7 +1226,7 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
1192
1226
|
{{>MuteButton}} {{>VolumeRange}}
|
|
1193
1227
|
<div class="spacer"></div>
|
|
1194
1228
|
{{>RenditionSelect}}
|
|
1195
|
-
<template if="breakpointsm"> {{>
|
|
1229
|
+
<template if="breakpointsm"> {{>PlaybackRateSelect}} </template>
|
|
1196
1230
|
{{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}
|
|
1197
1231
|
<template if="breakpointsm"> {{>PipButton}} </template>
|
|
1198
1232
|
{{>FullscreenButton}}
|
|
@@ -1210,7 +1244,7 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
1210
1244
|
{{>PlayButton}}
|
|
1211
1245
|
<template if="targetlivewindow > 0"> {{>SeekBackwardButton}} {{>SeekForwardButton}} </template>
|
|
1212
1246
|
</template>
|
|
1213
|
-
{{>MuteButton}}
|
|
1247
|
+
{{>MuteButton}} {{>VolumeRange}}
|
|
1214
1248
|
<div class="spacer"></div>
|
|
1215
1249
|
{{>RenditionSelect}} {{>AudioTrackSelect}} {{>CaptionsMenuButton}} {{>AirplayButton}} {{>CastButton}}
|
|
1216
1250
|
<template if="breakpointsm">{{>PipButton}}</template>
|
|
@@ -1231,7 +1265,7 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
1231
1265
|
<template if="breakpointsm">{{>VolumeRange}}</template>
|
|
1232
1266
|
{{>TimeDisplay}} {{>TimeRange}}
|
|
1233
1267
|
<div class="spacer"></div>
|
|
1234
|
-
<template if="breakpointsm">{{>
|
|
1268
|
+
<template if="breakpointsm">{{>PlaybackRateSelect}}</template>
|
|
1235
1269
|
{{>AirplayButton}} {{>CastButton}}
|
|
1236
1270
|
</media-control-bar>
|
|
1237
1271
|
</template>
|
|
@@ -1255,5 +1289,5 @@ media-poster-image:not([src]):not([placeholdersrc]) {
|
|
|
1255
1289
|
<slot></slot>
|
|
1256
1290
|
</media-controller>
|
|
1257
1291
|
</template>
|
|
1258
|
-
`;import{MediaThemeElement as la}from"media-chrome/dist/media-theme-element.js";var $e=T.createElement("template");"innerHTML"in $e&&($e.innerHTML=xt);var wt,Lt,ve=class extends la{};ve.template=(Lt=(wt=$e.content)==null?void 0:wt.children)==null?void 0:Lt[0];c.customElements.get("media-theme-gerwig")||c.customElements.define("media-theme-gerwig",ve);var ba="gerwig";var S={SRC:"src",POSTER:"poster"},n={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",PLAYBACK_TOKEN:"playback-token",THUMBNAIL_TOKEN:"thumbnail-token",STORYBOARD_TOKEN:"storyboard-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",TITLE:"title",PLACEHOLDER:"placeholder",THEME:"theme",DEFAULT_STREAM_TYPE:"default-stream-type",TARGET_LIVE_WINDOW:"target-live-window",NO_VOLUME_PREF:"no-volume-pref"},Ke=["audio","backwardseekoffset","defaultshowremainingtime","defaultsubtitles","noautoseektolive","disabled","exportparts","forwardseekoffset","hideduration","hotkeys","nohotkeys","playbackrates","defaultstreamtype","streamtype","style","targetlivewindow","template","title","novolumepref"];function ha(t,a){var r;return{src:!t.playbackId&&t.src,playbackId:t.playbackId,hasSrc:!!t.playbackId||!!t.src,poster:t.poster,storyboard:t.storyboard,storyboardSrc:t.getAttribute(n.STORYBOARD_SRC),placeholder:t.getAttribute("placeholder"),themeTemplate:ga(t),thumbnailTime:!t.tokens.thumbnail&&t.thumbnailTime,autoplay:t.autoplay,crossOrigin:t.crossOrigin,loop:t.loop,noHotKeys:t.hasAttribute(n.NOHOTKEYS),hotKeys:t.getAttribute(n.HOTKEYS),muted:t.muted,paused:t.paused,preload:t.preload,envKey:t.envKey,preferCmcd:t.preferCmcd,debug:t.debug,disableCookies:t.disableCookies,tokens:t.tokens,beaconCollectionDomain:t.beaconCollectionDomain,maxResolution:t.maxResolution,metadata:t.metadata,playerSoftwareName:t.playerSoftwareName,playerSoftwareVersion:t.playerSoftwareVersion,startTime:t.startTime,preferPlayback:t.preferPlayback,audio:t.audio,defaultStreamType:t.defaultStreamType,targetLiveWindow:t.getAttribute(d.TARGET_LIVE_WINDOW),streamType:X(t.getAttribute(d.STREAM_TYPE)),primaryColor:t.primaryColor,secondaryColor:t.secondaryColor,accentColor:t.accentColor,forwardSeekOffset:t.forwardSeekOffset,backwardSeekOffset:t.backwardSeekOffset,defaultHiddenCaptions:t.defaultHiddenCaptions,defaultShowRemainingTime:t.defaultShowRemainingTime,hideDuration:fa(t),playbackRates:t.getAttribute(n.PLAYBACK_RATES),customDomain:(r=t.getAttribute(d.CUSTOM_DOMAIN))!=null?r:void 0,title:t.getAttribute(n.TITLE),novolumepref:t.hasAttribute(n.NO_VOLUME_PREF),...a}}function ga(t){var e,r;let a=t.theme;if(a){let i=(r=(e=t.getRootNode())==null?void 0:e.getElementById)==null?void 0:r.call(e,a);if(i&&i instanceof HTMLTemplateElement)return i;a.startsWith("media-theme-")||(a=`media-theme-${a}`);let o=c.customElements.get(a);if(o!=null&&o.template)return o.template}}function fa(t){var e;let a=(e=t.mediaController)==null?void 0:e.querySelector("media-time-display");return a&&getComputedStyle(a).getPropertyValue("--media-duration-display-display").trim()==="none"}function Mt(t){let a=t.hasAttribute(n.TITLE)?{video_title:t.getAttribute(n.TITLE)}:{};return t.getAttributeNames().filter(e=>e.startsWith("metadata-")).reduce((e,r)=>{let i=t.getAttribute(r);return i!==null&&(e[r.replace(/^metadata-/,"").replace(/-/g,"_")]=i),e},a)}var ya=Object.values(d),va=Object.values(S),ka=Object.values(n),Ea=pe(),Ta="mux-player",St={dialog:void 0,isDialogOpen:!1},re,oe,R,ne,F,H,j,Te,Rt,se,Ue,V,q,Ce,_t,Ae,Pt,xe,Nt,we,It,ie=class extends He{constructor(){super();b(this,H);b(this,Te);b(this,se);b(this,V);b(this,Ce);b(this,Ae);b(this,xe);b(this,we);b(this,re,!1);b(this,oe,{});b(this,R,!0);b(this,ne,new ce(this,"hotkeys"));b(this,F,{...St,onCloseErrorDialog:()=>f(this,se,Ue).call(this,{dialog:void 0,isDialogOpen:!1}),onInitFocusDialog:e=>{Re(this,T.activeElement)||e.preventDefault()}});this.attachShadow({mode:"open"}),f(this,Te,Rt).call(this),this.isConnected&&f(this,H,j).call(this)}static get observedAttributes(){var e;return[...(e=He.observedAttributes)!=null?e:[],...va,...ya,...ka]}get mediaTheme(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("media-theme")}get mediaController(){var e,r;return(r=(e=this.mediaTheme)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("media-controller")}connectedCallback(){var r;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("mux-video");e&&(e.metadata=Mt(this))}attributeChangedCallback(e,r,i){switch(f(this,H,j).call(this),super.attributeChangedCallback(e,r,i),e){case n.HOTKEYS:u(this,ne).value=i;break;case n.THUMBNAIL_TIME:{i!=null&&this.tokens.thumbnail&&I(l("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").format({}));break}case n.THUMBNAIL_TOKEN:{let{aud:s}=N(i);i&&s!=="t"&&I(l("The provided thumbnail-token should have audience value 't' instead of '{aud}'.").format({aud:s}));break}case n.STORYBOARD_TOKEN:{let{aud:s}=N(i);i&&s!=="s"&&I(l("The provided storyboard-token should have audience value 's' instead of '{aud}'.").format({aud:s}));break}case d.PLAYBACK_ID:{i!=null&&i.includes("?token")&&w(l("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:i}));break}case d.STREAM_TYPE:i&&![L.LIVE,L.ON_DEMAND,L.UNKNOWN].includes(i)?["ll-live","live:dvr","ll-live:dvr"].includes(this.streamType)?this.targetLiveWindow=i.includes("dvr")?Number.POSITIVE_INFINITY:0:Ie({file:"invalid-stream-type.md",message:l("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand` or `live`").format({streamType:this.streamType})}):this.targetLiveWindow=i===L.LIVE?0:Number.NaN}[d.PLAYBACK_ID,S.SRC,n.PLAYBACK_TOKEN].includes(e)&&r!==i&&A(this,F,{...u(this,F),...St}),f(this,V,q).call(this,{[mt(e)]:i})}get preferCmcd(){var e;return(e=this.getAttribute(d.PREFER_CMCD))!=null?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?Ot.includes(e)?this.setAttribute(d.PREFER_CMCD,e):I(`Invalid value for preferCmcd. Must be one of ${Ot.join()}`):this.removeAttribute(d.PREFER_CMCD))}get hasPlayed(){var e,r;return(r=(e=this.mediaController)==null?void 0:e.hasAttribute("media-has-played"))!=null?r:!1}get inLiveWindow(){var e;return(e=this.mediaController)==null?void 0:e.hasAttribute("media-time-is-live")}get _hls(){var e;return(e=this.media)==null?void 0:e._hls}get mux(){var e;return(e=this.media)==null?void 0:e.mux}get theme(){var e;return(e=this.getAttribute(n.THEME))!=null?e:ba}set theme(e){this.setAttribute(n.THEME,`${e}`)}get themeProps(){let e=this.mediaTheme;if(!e)return;let r={};for(let i of e.getAttributeNames()){if(Ke.includes(i))continue;let o=e.getAttribute(i);r[me(i)]=o===""?!0:o}return r}set themeProps(e){var i,o;f(this,H,j).call(this);let r={...this.themeProps,...e};for(let s in r){if(Ke.includes(s))continue;let m=e==null?void 0:e[s];typeof m=="boolean"||m==null?(i=this.mediaTheme)==null||i.toggleAttribute(le(s),Boolean(m)):(o=this.mediaTheme)==null||o.setAttribute(le(s),m)}}get playbackId(){var e;return(e=this.getAttribute(d.PLAYBACK_ID))!=null?e:void 0}set playbackId(e){e?this.setAttribute(d.PLAYBACK_ID,e):this.removeAttribute(d.PLAYBACK_ID)}get src(){var e,r;return this.playbackId?(e=Z(this,S.SRC))!=null?e:void 0:(r=this.getAttribute(S.SRC))!=null?r:void 0}set src(e){e?this.setAttribute(S.SRC,e):this.removeAttribute(S.SRC)}get poster(){var r;let e=this.getAttribute(S.POSTER);if(e!=null)return e;if(this.playbackId&&!this.audio)return dt(this.playbackId,{domain:this.customDomain,thumbnailTime:(r=this.thumbnailTime)!=null?r:this.startTime,token:this.tokens.thumbnail})}set poster(e){e||e===""?this.setAttribute(S.POSTER,e):this.removeAttribute(S.POSTER)}get storyboardSrc(){var e;return(e=this.getAttribute(n.STORYBOARD_SRC))!=null?e:void 0}set storyboardSrc(e){e?this.setAttribute(n.STORYBOARD_SRC,e):this.removeAttribute(n.STORYBOARD_SRC)}get storyboard(){if(this.storyboardSrc&&!this.tokens.storyboard)return this.storyboardSrc;if(!(this.audio||!this.playbackId||!this.streamType||[L.LIVE,L.UNKNOWN].includes(this.streamType)))return lt(this.playbackId,{domain:this.customDomain,token:this.tokens.storyboard})}get audio(){return this.hasAttribute(n.AUDIO)}set audio(e){if(!e){this.removeAttribute(n.AUDIO);return}this.setAttribute(n.AUDIO,"")}get hotkeys(){return u(this,ne)}get nohotkeys(){return this.hasAttribute(n.NOHOTKEYS)}set nohotkeys(e){if(!e){this.removeAttribute(n.NOHOTKEYS);return}this.setAttribute(n.NOHOTKEYS,"")}get thumbnailTime(){return O(this.getAttribute(n.THUMBNAIL_TIME))}set thumbnailTime(e){this.setAttribute(n.THUMBNAIL_TIME,`${e}`)}get title(){var e;return(e=this.getAttribute(n.TITLE))!=null?e:""}set title(e){e!==this.title&&(e?this.setAttribute(n.TITLE,e):this.removeAttribute("title"),super.title=e)}get placeholder(){var e;return(e=Z(this,n.PLACEHOLDER))!=null?e:""}set placeholder(e){this.setAttribute(n.PLACEHOLDER,`${e}`)}get primaryColor(){var r,i;let e=this.getAttribute(n.PRIMARY_COLOR);if(e!=null||this.mediaTheme&&(e=(i=(r=c.getComputedStyle(this.mediaTheme))==null?void 0:r.getPropertyValue("--_primary-color"))==null?void 0:i.trim(),e))return e}set primaryColor(e){this.setAttribute(n.PRIMARY_COLOR,`${e}`)}get secondaryColor(){var r,i;let e=this.getAttribute(n.SECONDARY_COLOR);if(e!=null||this.mediaTheme&&(e=(i=(r=c.getComputedStyle(this.mediaTheme))==null?void 0:r.getPropertyValue("--_secondary-color"))==null?void 0:i.trim(),e))return e}set secondaryColor(e){this.setAttribute(n.SECONDARY_COLOR,`${e}`)}get accentColor(){var r,i;let e=this.getAttribute(n.ACCENT_COLOR);if(e!=null||this.mediaTheme&&(e=(i=(r=c.getComputedStyle(this.mediaTheme))==null?void 0:r.getPropertyValue("--_accent-color"))==null?void 0:i.trim(),e))return e}set accentColor(e){this.setAttribute(n.ACCENT_COLOR,`${e}`)}get defaultShowRemainingTime(){return this.hasAttribute(n.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(e){e?this.setAttribute(n.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(n.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(!!this.hasAttribute(n.PLAYBACK_RATES))return this.getAttribute(n.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map(e=>Number(e)).filter(e=>!Number.isNaN(e)).sort((e,r)=>e-r)}set playbackRates(e){if(!e){this.removeAttribute(n.PLAYBACK_RATES);return}this.setAttribute(n.PLAYBACK_RATES,e.join(" "))}get forwardSeekOffset(){var e;return(e=O(this.getAttribute(n.FORWARD_SEEK_OFFSET)))!=null?e:10}set forwardSeekOffset(e){this.setAttribute(n.FORWARD_SEEK_OFFSET,`${e}`)}get backwardSeekOffset(){var e;return(e=O(this.getAttribute(n.BACKWARD_SEEK_OFFSET)))!=null?e:10}set backwardSeekOffset(e){this.setAttribute(n.BACKWARD_SEEK_OFFSET,`${e}`)}get defaultHiddenCaptions(){return this.hasAttribute(n.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(e){e?this.setAttribute(n.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(n.DEFAULT_HIDDEN_CAPTIONS)}get playerSoftwareName(){var e;return(e=this.getAttribute(d.PLAYER_SOFTWARE_NAME))!=null?e:Ta}get playerSoftwareVersion(){var e;return(e=this.getAttribute(d.PLAYER_SOFTWARE_VERSION))!=null?e:Ea}get beaconCollectionDomain(){var e;return(e=this.getAttribute(d.BEACON_COLLECTION_DOMAIN))!=null?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(d.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(d.BEACON_COLLECTION_DOMAIN))}get maxResolution(){var e;return(e=this.getAttribute(d.MAX_RESOLUTION))!=null?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(d.MAX_RESOLUTION,e):this.removeAttribute(d.MAX_RESOLUTION))}get customDomain(){var e;return(e=this.getAttribute(d.CUSTOM_DOMAIN))!=null?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(d.CUSTOM_DOMAIN,e):this.removeAttribute(d.CUSTOM_DOMAIN))}get envKey(){var e;return(e=Z(this,d.ENV_KEY))!=null?e:void 0}set envKey(e){this.setAttribute(d.ENV_KEY,`${e}`)}get noVolumePref(){return this.hasAttribute(n.NO_VOLUME_PREF)}set noVolumePref(e){e?this.setAttribute(n.NO_VOLUME_PREF,""):this.removeAttribute(n.NO_VOLUME_PREF)}get debug(){return Z(this,d.DEBUG)!=null}set debug(e){e?this.setAttribute(d.DEBUG,""):this.removeAttribute(d.DEBUG)}get disableCookies(){return Z(this,d.DISABLE_COOKIES)!=null}set disableCookies(e){e?this.setAttribute(d.DISABLE_COOKIES,""):this.removeAttribute(d.DISABLE_COOKIES)}get streamType(){var e,r,i;return(i=(r=this.getAttribute(d.STREAM_TYPE))!=null?r:(e=this.media)==null?void 0:e.streamType)!=null?i:L.UNKNOWN}set streamType(e){this.setAttribute(d.STREAM_TYPE,`${e}`)}get defaultStreamType(){var e,r,i;return(i=(r=this.getAttribute(n.DEFAULT_STREAM_TYPE))!=null?r:(e=this.mediaController)==null?void 0:e.getAttribute(n.DEFAULT_STREAM_TYPE))!=null?i:L.ON_DEMAND}set defaultStreamType(e){e?this.setAttribute(n.DEFAULT_STREAM_TYPE,e):this.removeAttribute(n.DEFAULT_STREAM_TYPE)}get targetLiveWindow(){var e,r;return this.hasAttribute(n.TARGET_LIVE_WINDOW)?+this.getAttribute(n.TARGET_LIVE_WINDOW):(r=(e=this.media)==null?void 0:e.targetLiveWindow)!=null?r:Number.NaN}set targetLiveWindow(e){e!=this.targetLiveWindow&&(e==null?this.removeAttribute(n.TARGET_LIVE_WINDOW):this.setAttribute(n.TARGET_LIVE_WINDOW,`${+e}`))}get liveEdgeStart(){var e;return(e=this.media)==null?void 0:e.liveEdgeStart}get startTime(){return O(Z(this,d.START_TIME))}set startTime(e){this.setAttribute(d.START_TIME,`${e}`)}get preferPlayback(){let e=this.getAttribute(d.PREFER_PLAYBACK);if(e===Ee.MSE||e===Ee.NATIVE)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===Ee.MSE||e===Ee.NATIVE?this.setAttribute(d.PREFER_PLAYBACK,e):this.removeAttribute(d.PREFER_PLAYBACK))}get metadata(){var e;return(e=this.media)==null?void 0:e.metadata}set metadata(e){if(f(this,H,j).call(this),!this.media){w("underlying media element missing when trying to set metadata. metadata will not be set.");return}this.media.metadata={...Mt(this),...e}}async addCuePoints(e){var r;if(f(this,H,j).call(this),!this.media){w("underlying media element missing when trying to addCuePoints. cuePoints will not be added.");return}return(r=this.media)==null?void 0:r.addCuePoints(e)}get activeCuePoint(){var e;return(e=this.media)==null?void 0:e.activeCuePoint}get cuePoints(){var e,r;return(r=(e=this.media)==null?void 0:e.cuePoints)!=null?r:[]}getStartDate(){var e;return(e=this.media)==null?void 0:e.getStartDate()}get currentPdt(){var e;return(e=this.media)==null?void 0:e.currentPdt}get tokens(){let e=this.getAttribute(n.PLAYBACK_TOKEN),r=this.getAttribute(n.THUMBNAIL_TOKEN),i=this.getAttribute(n.STORYBOARD_TOKEN);return{...u(this,oe),...e!=null?{playback:e}:{},...r!=null?{thumbnail:r}:{},...i!=null?{storyboard:i}:{}}}set tokens(e){A(this,oe,e!=null?e:{})}get playbackToken(){var e;return(e=this.getAttribute(n.PLAYBACK_TOKEN))!=null?e:void 0}set playbackToken(e){this.setAttribute(n.PLAYBACK_TOKEN,`${e}`)}get thumbnailToken(){var e;return(e=this.getAttribute(n.THUMBNAIL_TOKEN))!=null?e:void 0}set thumbnailToken(e){this.setAttribute(n.THUMBNAIL_TOKEN,`${e}`)}get storyboardToken(){var e;return(e=this.getAttribute(n.STORYBOARD_TOKEN))!=null?e:void 0}set storyboardToken(e){this.setAttribute(n.STORYBOARD_TOKEN,`${e}`)}addTextTrack(e,r,i,o){var m;let s=(m=this.media)==null?void 0:m.nativeEl;if(!!s)return ca(s,e,r,i,o)}removeTextTrack(e){var i;let r=(i=this.media)==null?void 0:i.nativeEl;if(!!r)return pa(r,e)}get textTracks(){var e;return(e=this.media)==null?void 0:e.textTracks}};re=new WeakMap,oe=new WeakMap,R=new WeakMap,ne=new WeakMap,F=new WeakMap,H=new WeakSet,j=function(){var e,r,i;if(!u(this,re)){A(this,re,!0),f(this,V,q).call(this);try{if(customElements.upgrade(this.mediaTheme),!(this.mediaTheme instanceof c.HTMLElement))throw""}catch{w("<media-theme> failed to upgrade!")}try{if(customElements.upgrade(this.media),!(this.media instanceof ua))throw""}catch{w("<mux-video> failed to upgrade!")}try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof ma))throw""}catch{w("<media-controller> failed to upgrade!")}bt(this),f(this,Ce,_t).call(this),f(this,Ae,Pt).call(this),f(this,xe,Nt).call(this),A(this,R,(r=(e=this.mediaController)==null?void 0:e.hasAttribute("userinactive"))!=null?r:!0),f(this,we,It).call(this),(i=this.media)==null||i.addEventListener("streamtypechange",()=>{f(this,V,q).call(this)})}},Te=new WeakSet,Rt=function(){var e,r;try{(e=window==null?void 0:window.CSS)==null||e.registerProperty({name:"--media-primary-color",syntax:"<color>",inherits:!0}),(r=window==null?void 0:window.CSS)==null||r.registerProperty({name:"--media-secondary-color",syntax:"<color>",inherits:!0})}catch{}},se=new WeakSet,Ue=function(e){Object.assign(u(this,F),e),f(this,V,q).call(this)},V=new WeakSet,q=function(e={}){Ct(At(ha(this,{...u(this,F),...e})),this.shadowRoot)},Ce=new WeakSet,_t=function(){let e=i=>{var m,h;if(!(i!=null&&i.startsWith("theme-")))return;let o=i.replace(/^theme-/,"");if(Ke.includes(o))return;let s=this.getAttribute(i);s!=null?(m=this.mediaTheme)==null||m.setAttribute(o,s):(h=this.mediaTheme)==null||h.removeAttribute(o)};new MutationObserver(i=>{for(let{attributeName:o}of i)e(o)}).observe(this,{attributes:!0}),this.getAttributeNames().forEach(e)},Ae=new WeakSet,Pt=function(){var r;let e=i=>{let{detail:o}=i;if(o instanceof ke||(o=new ke(o.message,o.code,o.fatal)),!(o!=null&&o.fatal)){I(o),o.data&&I(`${o.name} data:`,o.data);return}let{dialog:s,devlog:m}=ye(o,!window.navigator.onLine,this.playbackId,this.playbackToken);m.message&&Ie(m),w(o),o.data&&w(`${o.name} data:`,o.data),f(this,se,Ue).call(this,{isDialogOpen:!0,dialog:s})};this.addEventListener("error",e),this.media&&(this.media.errorTranslator=(i={})=>{var s,m,h;if(!(((s=this.media)==null?void 0:s.error)instanceof ke))return i;let{devlog:o}=ye((m=this.media)==null?void 0:m.error,!window.navigator.onLine,this.playbackId,this.playbackToken,!1);return{player_error_code:(h=this.media)==null?void 0:h.error.code,player_error_message:o.message?String(o.message):i.player_error_message,player_error_context:o.context?String(o.context):i.player_error_context}}),(r=this.media)==null||r.addEventListener("error",i=>{var s,m;let{detail:o}=i;if(!o){let{message:h,code:x}=(m=(s=this.media)==null?void 0:s.error)!=null?m:{};o=new ke(h,x)}!(o!=null&&o.fatal)||this.dispatchEvent(new CustomEvent("error",{detail:o}))})},xe=new WeakSet,Nt=function(){var r,i,o,s;let e=()=>f(this,V,q).call(this);(i=(r=this.media)==null?void 0:r.textTracks)==null||i.addEventListener("addtrack",e),(s=(o=this.media)==null?void 0:o.textTracks)==null||s.addEventListener("removetrack",e)},we=new WeakSet,It=function(){var E,_;let e=/.*Version\/.*Safari\/.*/.test(navigator.userAgent);if(!/Firefox/i.test(navigator.userAgent))return;let i,o=new WeakMap,s=()=>this.streamType===L.LIVE&&!this.secondaryColor&&this.offsetWidth>=800,m=(g,v,C=!1)=>{if(s())return;Array.from(g&&g.activeCues||[]).forEach(p=>{if(!(!p.snapToLines||p.line<-5||p.line>=0&&p.line<10))if(!v||this.paused){let de=p.text.split(`
|
|
1259
|
-
`).length,G=e?-2:-3;this.streamType===
|
|
1292
|
+
`;import{MediaThemeElement as la}from"media-chrome/dist/media-theme-element.js";var He=T.createElement("template");"innerHTML"in He&&(He.innerHTML=xt);var Lt,wt,ye=class extends la{};ye.template=(wt=(Lt=He.content)==null?void 0:Lt.children)==null?void 0:wt[0];c.customElements.get("media-theme-gerwig")||c.customElements.define("media-theme-gerwig",ye);var ba="gerwig";var M={SRC:"src",POSTER:"poster"},n={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",PLAYBACK_TOKEN:"playback-token",THUMBNAIL_TOKEN:"thumbnail-token",STORYBOARD_TOKEN:"storyboard-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",TITLE:"title",PLACEHOLDER:"placeholder",THEME:"theme",DEFAULT_STREAM_TYPE:"default-stream-type",TARGET_LIVE_WINDOW:"target-live-window",NO_VOLUME_PREF:"no-volume-pref"},Be=["audio","backwardseekoffset","defaultshowremainingtime","defaultsubtitles","noautoseektolive","disabled","exportparts","forwardseekoffset","hideduration","hotkeys","nohotkeys","playbackrates","defaultstreamtype","streamtype","style","targetlivewindow","template","title","novolumepref"];function ha(t,a){var r;return{src:!t.playbackId&&t.src,playbackId:t.playbackId,hasSrc:!!t.playbackId||!!t.src,poster:t.poster,storyboard:t.storyboard,storyboardSrc:t.getAttribute(n.STORYBOARD_SRC),placeholder:t.getAttribute("placeholder"),themeTemplate:ga(t),thumbnailTime:!t.tokens.thumbnail&&t.thumbnailTime,autoplay:t.autoplay,crossOrigin:t.crossOrigin,loop:t.loop,noHotKeys:t.hasAttribute(n.NOHOTKEYS),hotKeys:t.getAttribute(n.HOTKEYS),muted:t.muted,paused:t.paused,preload:t.preload,envKey:t.envKey,preferCmcd:t.preferCmcd,debug:t.debug,disableCookies:t.disableCookies,tokens:t.tokens,beaconCollectionDomain:t.beaconCollectionDomain,maxResolution:t.maxResolution,minResolution:t.minResolution,renditionOrder:t.renditionOrder,metadata:t.metadata,playerSoftwareName:t.playerSoftwareName,playerSoftwareVersion:t.playerSoftwareVersion,startTime:t.startTime,preferPlayback:t.preferPlayback,audio:t.audio,defaultStreamType:t.defaultStreamType,targetLiveWindow:t.getAttribute(d.TARGET_LIVE_WINDOW),streamType:X(t.getAttribute(d.STREAM_TYPE)),primaryColor:t.primaryColor,secondaryColor:t.secondaryColor,accentColor:t.accentColor,forwardSeekOffset:t.forwardSeekOffset,backwardSeekOffset:t.backwardSeekOffset,defaultHiddenCaptions:t.defaultHiddenCaptions,defaultShowRemainingTime:t.defaultShowRemainingTime,hideDuration:fa(t),playbackRates:t.getAttribute(n.PLAYBACK_RATES),customDomain:(r=t.getAttribute(d.CUSTOM_DOMAIN))!=null?r:void 0,title:t.getAttribute(n.TITLE),novolumepref:t.hasAttribute(n.NO_VOLUME_PREF),extraPlaylistParams:{redundant_streams:!0},...a}}function ga(t){var e,r;let a=t.theme;if(a){let i=(r=(e=t.getRootNode())==null?void 0:e.getElementById)==null?void 0:r.call(e,a);if(i&&i instanceof HTMLTemplateElement)return i;a.startsWith("media-theme-")||(a=`media-theme-${a}`);let o=c.customElements.get(a);if(o!=null&&o.template)return o.template}}function fa(t){var e;let a=(e=t.mediaController)==null?void 0:e.querySelector("media-time-display");return a&&getComputedStyle(a).getPropertyValue("--media-duration-display-display").trim()==="none"}function Rt(t){let a=t.hasAttribute(n.TITLE)?{video_title:t.getAttribute(n.TITLE)}:{};return t.getAttributeNames().filter(e=>e.startsWith("metadata-")).reduce((e,r)=>{let i=t.getAttribute(r);return i!==null&&(e[r.replace(/^metadata-/,"").replace(/-/g,"_")]=i),e},a)}var ya=Object.values(d),va=Object.values(M),ka=Object.values(n),Ea=ce(),Ta="mux-player",Mt={dialog:void 0,isDialogOpen:!1},re,oe,S,ne,F,V,j,Ee,St,se,Ue,H,q,Te,_t,Ce,Pt,Ae,Nt,xe,It,ie=class extends Ie{constructor(){super();b(this,V);b(this,Ee);b(this,se);b(this,H);b(this,Te);b(this,Ce);b(this,Ae);b(this,xe);b(this,re,!1);b(this,oe,{});b(this,S,!0);b(this,ne,new ue(this,"hotkeys"));b(this,F,{...Mt,onCloseErrorDialog:()=>f(this,se,Ue).call(this,{dialog:void 0,isDialogOpen:!1}),onInitFocusDialog:e=>{Se(this,T.activeElement)||e.preventDefault()}});this.attachShadow({mode:"open"}),f(this,Ee,St).call(this),this.isConnected&&f(this,V,j).call(this)}static get observedAttributes(){var e;return[...(e=Ie.observedAttributes)!=null?e:[],...va,...ya,...ka]}get mediaTheme(){var e;return(e=this.shadowRoot)==null?void 0:e.querySelector("media-theme")}get mediaController(){var e,r;return(r=(e=this.mediaTheme)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("media-controller")}connectedCallback(){var r;let e=(r=this.shadowRoot)==null?void 0:r.querySelector("mux-video");e&&(e.metadata=Rt(this))}attributeChangedCallback(e,r,i){switch(f(this,V,j).call(this),super.attributeChangedCallback(e,r,i),e){case n.HOTKEYS:u(this,ne).value=i;break;case n.THUMBNAIL_TIME:{i!=null&&this.tokens.thumbnail&&I(l("Use of thumbnail-time with thumbnail-token is currently unsupported. Ignore thumbnail-time.").format({}));break}case n.THUMBNAIL_TOKEN:{let{aud:s}=N(i);i&&s!=="t"&&I(l("The provided thumbnail-token should have audience value 't' instead of '{aud}'.").format({aud:s}));break}case n.STORYBOARD_TOKEN:{let{aud:s}=N(i);i&&s!=="s"&&I(l("The provided storyboard-token should have audience value 's' instead of '{aud}'.").format({aud:s}));break}case d.PLAYBACK_ID:{i!=null&&i.includes("?token")&&L(l("The specificed playback ID {playbackId} contains a token which must be provided via the playback-token attribute.").format({playbackId:i}));break}case d.STREAM_TYPE:i&&![w.LIVE,w.ON_DEMAND,w.UNKNOWN].includes(i)?["ll-live","live:dvr","ll-live:dvr"].includes(this.streamType)?this.targetLiveWindow=i.includes("dvr")?Number.POSITIVE_INFINITY:0:Pe({file:"invalid-stream-type.md",message:l("Invalid stream-type value supplied: `{streamType}`. Please provide stream-type as either: `on-demand` or `live`").format({streamType:this.streamType})}):this.targetLiveWindow=i===w.LIVE?0:Number.NaN}[d.PLAYBACK_ID,M.SRC,n.PLAYBACK_TOKEN].includes(e)&&r!==i&&A(this,F,{...u(this,F),...Mt}),f(this,H,q).call(this,{[lt(e)]:i})}get preferCmcd(){var e;return(e=this.getAttribute(d.PREFER_CMCD))!=null?e:void 0}set preferCmcd(e){e!==this.preferCmcd&&(e?Ot.includes(e)?this.setAttribute(d.PREFER_CMCD,e):I(`Invalid value for preferCmcd. Must be one of ${Ot.join()}`):this.removeAttribute(d.PREFER_CMCD))}get hasPlayed(){var e,r;return(r=(e=this.mediaController)==null?void 0:e.hasAttribute("media-has-played"))!=null?r:!1}get inLiveWindow(){var e;return(e=this.mediaController)==null?void 0:e.hasAttribute("media-time-is-live")}get _hls(){var e;return(e=this.media)==null?void 0:e._hls}get mux(){var e;return(e=this.media)==null?void 0:e.mux}get theme(){var e;return(e=this.getAttribute(n.THEME))!=null?e:ba}set theme(e){this.setAttribute(n.THEME,`${e}`)}get themeProps(){let e=this.mediaTheme;if(!e)return;let r={};for(let i of e.getAttributeNames()){if(Be.includes(i))continue;let o=e.getAttribute(i);r[me(i)]=o===""?!0:o}return r}set themeProps(e){var i,o;f(this,V,j).call(this);let r={...this.themeProps,...e};for(let s in r){if(Be.includes(s))continue;let m=e==null?void 0:e[s];typeof m=="boolean"||m==null?(i=this.mediaTheme)==null||i.toggleAttribute(le(s),Boolean(m)):(o=this.mediaTheme)==null||o.setAttribute(le(s),m)}}get playbackId(){var e;return(e=this.getAttribute(d.PLAYBACK_ID))!=null?e:void 0}set playbackId(e){e?this.setAttribute(d.PLAYBACK_ID,e):this.removeAttribute(d.PLAYBACK_ID)}get src(){var e,r;return this.playbackId?(e=Z(this,M.SRC))!=null?e:void 0:(r=this.getAttribute(M.SRC))!=null?r:void 0}set src(e){e?this.setAttribute(M.SRC,e):this.removeAttribute(M.SRC)}get poster(){var r;let e=this.getAttribute(M.POSTER);if(e!=null)return e;if(this.playbackId&&!this.audio)return st(this.playbackId,{customDomain:this.customDomain,thumbnailTime:(r=this.thumbnailTime)!=null?r:this.startTime,token:this.tokens.thumbnail})}set poster(e){e||e===""?this.setAttribute(M.POSTER,e):this.removeAttribute(M.POSTER)}get storyboardSrc(){var e;return(e=this.getAttribute(n.STORYBOARD_SRC))!=null?e:void 0}set storyboardSrc(e){e?this.setAttribute(n.STORYBOARD_SRC,e):this.removeAttribute(n.STORYBOARD_SRC)}get storyboard(){if(this.storyboardSrc&&!this.tokens.storyboard)return this.storyboardSrc;if(!(this.audio||!this.playbackId||!this.streamType||[w.LIVE,w.UNKNOWN].includes(this.streamType)))return dt(this.playbackId,{customDomain:this.customDomain,token:this.tokens.storyboard})}get audio(){return this.hasAttribute(n.AUDIO)}set audio(e){if(!e){this.removeAttribute(n.AUDIO);return}this.setAttribute(n.AUDIO,"")}get hotkeys(){return u(this,ne)}get nohotkeys(){return this.hasAttribute(n.NOHOTKEYS)}set nohotkeys(e){if(!e){this.removeAttribute(n.NOHOTKEYS);return}this.setAttribute(n.NOHOTKEYS,"")}get thumbnailTime(){return O(this.getAttribute(n.THUMBNAIL_TIME))}set thumbnailTime(e){this.setAttribute(n.THUMBNAIL_TIME,`${e}`)}get title(){var e;return(e=this.getAttribute(n.TITLE))!=null?e:""}set title(e){e!==this.title&&(e?this.setAttribute(n.TITLE,e):this.removeAttribute("title"),super.title=e)}get placeholder(){var e;return(e=Z(this,n.PLACEHOLDER))!=null?e:""}set placeholder(e){this.setAttribute(n.PLACEHOLDER,`${e}`)}get primaryColor(){var r,i;let e=this.getAttribute(n.PRIMARY_COLOR);if(e!=null||this.mediaTheme&&(e=(i=(r=c.getComputedStyle(this.mediaTheme))==null?void 0:r.getPropertyValue("--_primary-color"))==null?void 0:i.trim(),e))return e}set primaryColor(e){this.setAttribute(n.PRIMARY_COLOR,`${e}`)}get secondaryColor(){var r,i;let e=this.getAttribute(n.SECONDARY_COLOR);if(e!=null||this.mediaTheme&&(e=(i=(r=c.getComputedStyle(this.mediaTheme))==null?void 0:r.getPropertyValue("--_secondary-color"))==null?void 0:i.trim(),e))return e}set secondaryColor(e){this.setAttribute(n.SECONDARY_COLOR,`${e}`)}get accentColor(){var r,i;let e=this.getAttribute(n.ACCENT_COLOR);if(e!=null||this.mediaTheme&&(e=(i=(r=c.getComputedStyle(this.mediaTheme))==null?void 0:r.getPropertyValue("--_accent-color"))==null?void 0:i.trim(),e))return e}set accentColor(e){this.setAttribute(n.ACCENT_COLOR,`${e}`)}get defaultShowRemainingTime(){return this.hasAttribute(n.DEFAULT_SHOW_REMAINING_TIME)}set defaultShowRemainingTime(e){e?this.setAttribute(n.DEFAULT_SHOW_REMAINING_TIME,""):this.removeAttribute(n.DEFAULT_SHOW_REMAINING_TIME)}get playbackRates(){if(!!this.hasAttribute(n.PLAYBACK_RATES))return this.getAttribute(n.PLAYBACK_RATES).trim().split(/\s*,?\s+/).map(e=>Number(e)).filter(e=>!Number.isNaN(e)).sort((e,r)=>e-r)}set playbackRates(e){if(!e){this.removeAttribute(n.PLAYBACK_RATES);return}this.setAttribute(n.PLAYBACK_RATES,e.join(" "))}get forwardSeekOffset(){var e;return(e=O(this.getAttribute(n.FORWARD_SEEK_OFFSET)))!=null?e:10}set forwardSeekOffset(e){this.setAttribute(n.FORWARD_SEEK_OFFSET,`${e}`)}get backwardSeekOffset(){var e;return(e=O(this.getAttribute(n.BACKWARD_SEEK_OFFSET)))!=null?e:10}set backwardSeekOffset(e){this.setAttribute(n.BACKWARD_SEEK_OFFSET,`${e}`)}get defaultHiddenCaptions(){return this.hasAttribute(n.DEFAULT_HIDDEN_CAPTIONS)}set defaultHiddenCaptions(e){e?this.setAttribute(n.DEFAULT_HIDDEN_CAPTIONS,""):this.removeAttribute(n.DEFAULT_HIDDEN_CAPTIONS)}get playerSoftwareName(){var e;return(e=this.getAttribute(d.PLAYER_SOFTWARE_NAME))!=null?e:Ta}get playerSoftwareVersion(){var e;return(e=this.getAttribute(d.PLAYER_SOFTWARE_VERSION))!=null?e:Ea}get beaconCollectionDomain(){var e;return(e=this.getAttribute(d.BEACON_COLLECTION_DOMAIN))!=null?e:void 0}set beaconCollectionDomain(e){e!==this.beaconCollectionDomain&&(e?this.setAttribute(d.BEACON_COLLECTION_DOMAIN,e):this.removeAttribute(d.BEACON_COLLECTION_DOMAIN))}get maxResolution(){var e;return(e=this.getAttribute(d.MAX_RESOLUTION))!=null?e:void 0}set maxResolution(e){e!==this.maxResolution&&(e?this.setAttribute(d.MAX_RESOLUTION,e):this.removeAttribute(d.MAX_RESOLUTION))}get minResolution(){var e;return(e=this.getAttribute(d.MIN_RESOLUTION))!=null?e:void 0}set minResolution(e){e!==this.minResolution&&(e?this.setAttribute(d.MIN_RESOLUTION,e):this.removeAttribute(d.MIN_RESOLUTION))}get renditionOrder(){var e;return(e=this.getAttribute(d.RENDITION_ORDER))!=null?e:void 0}set renditionOrder(e){e!==this.renditionOrder&&(e?this.setAttribute(d.RENDITION_ORDER,e):this.removeAttribute(d.RENDITION_ORDER))}get customDomain(){var e;return(e=this.getAttribute(d.CUSTOM_DOMAIN))!=null?e:void 0}set customDomain(e){e!==this.customDomain&&(e?this.setAttribute(d.CUSTOM_DOMAIN,e):this.removeAttribute(d.CUSTOM_DOMAIN))}get envKey(){var e;return(e=Z(this,d.ENV_KEY))!=null?e:void 0}set envKey(e){this.setAttribute(d.ENV_KEY,`${e}`)}get noVolumePref(){return this.hasAttribute(n.NO_VOLUME_PREF)}set noVolumePref(e){e?this.setAttribute(n.NO_VOLUME_PREF,""):this.removeAttribute(n.NO_VOLUME_PREF)}get debug(){return Z(this,d.DEBUG)!=null}set debug(e){e?this.setAttribute(d.DEBUG,""):this.removeAttribute(d.DEBUG)}get disableCookies(){return Z(this,d.DISABLE_COOKIES)!=null}set disableCookies(e){e?this.setAttribute(d.DISABLE_COOKIES,""):this.removeAttribute(d.DISABLE_COOKIES)}get streamType(){var e,r,i;return(i=(r=this.getAttribute(d.STREAM_TYPE))!=null?r:(e=this.media)==null?void 0:e.streamType)!=null?i:w.UNKNOWN}set streamType(e){this.setAttribute(d.STREAM_TYPE,`${e}`)}get defaultStreamType(){var e,r,i;return(i=(r=this.getAttribute(n.DEFAULT_STREAM_TYPE))!=null?r:(e=this.mediaController)==null?void 0:e.getAttribute(n.DEFAULT_STREAM_TYPE))!=null?i:w.ON_DEMAND}set defaultStreamType(e){e?this.setAttribute(n.DEFAULT_STREAM_TYPE,e):this.removeAttribute(n.DEFAULT_STREAM_TYPE)}get targetLiveWindow(){var e,r;return this.hasAttribute(n.TARGET_LIVE_WINDOW)?+this.getAttribute(n.TARGET_LIVE_WINDOW):(r=(e=this.media)==null?void 0:e.targetLiveWindow)!=null?r:Number.NaN}set targetLiveWindow(e){e!=this.targetLiveWindow&&(e==null?this.removeAttribute(n.TARGET_LIVE_WINDOW):this.setAttribute(n.TARGET_LIVE_WINDOW,`${+e}`))}get liveEdgeStart(){var e;return(e=this.media)==null?void 0:e.liveEdgeStart}get startTime(){return O(Z(this,d.START_TIME))}set startTime(e){this.setAttribute(d.START_TIME,`${e}`)}get preferPlayback(){let e=this.getAttribute(d.PREFER_PLAYBACK);if(e===ke.MSE||e===ke.NATIVE)return e}set preferPlayback(e){e!==this.preferPlayback&&(e===ke.MSE||e===ke.NATIVE?this.setAttribute(d.PREFER_PLAYBACK,e):this.removeAttribute(d.PREFER_PLAYBACK))}get metadata(){var e;return(e=this.media)==null?void 0:e.metadata}set metadata(e){if(f(this,V,j).call(this),!this.media){L("underlying media element missing when trying to set metadata. metadata will not be set.");return}this.media.metadata={...Rt(this),...e}}async addCuePoints(e){var r;if(f(this,V,j).call(this),!this.media){L("underlying media element missing when trying to addCuePoints. cuePoints will not be added.");return}return(r=this.media)==null?void 0:r.addCuePoints(e)}get activeCuePoint(){var e;return(e=this.media)==null?void 0:e.activeCuePoint}get cuePoints(){var e,r;return(r=(e=this.media)==null?void 0:e.cuePoints)!=null?r:[]}getStartDate(){var e;return(e=this.media)==null?void 0:e.getStartDate()}get currentPdt(){var e;return(e=this.media)==null?void 0:e.currentPdt}get tokens(){let e=this.getAttribute(n.PLAYBACK_TOKEN),r=this.getAttribute(n.THUMBNAIL_TOKEN),i=this.getAttribute(n.STORYBOARD_TOKEN);return{...u(this,oe),...e!=null?{playback:e}:{},...r!=null?{thumbnail:r}:{},...i!=null?{storyboard:i}:{}}}set tokens(e){A(this,oe,e!=null?e:{})}get playbackToken(){var e;return(e=this.getAttribute(n.PLAYBACK_TOKEN))!=null?e:void 0}set playbackToken(e){this.setAttribute(n.PLAYBACK_TOKEN,`${e}`)}get thumbnailToken(){var e;return(e=this.getAttribute(n.THUMBNAIL_TOKEN))!=null?e:void 0}set thumbnailToken(e){this.setAttribute(n.THUMBNAIL_TOKEN,`${e}`)}get storyboardToken(){var e;return(e=this.getAttribute(n.STORYBOARD_TOKEN))!=null?e:void 0}set storyboardToken(e){this.setAttribute(n.STORYBOARD_TOKEN,`${e}`)}addTextTrack(e,r,i,o){var m;let s=(m=this.media)==null?void 0:m.nativeEl;if(!!s)return ca(s,e,r,i,o)}removeTextTrack(e){var i;let r=(i=this.media)==null?void 0:i.nativeEl;if(!!r)return pa(r,e)}get textTracks(){var e;return(e=this.media)==null?void 0:e.textTracks}};re=new WeakMap,oe=new WeakMap,S=new WeakMap,ne=new WeakMap,F=new WeakMap,V=new WeakSet,j=function(){var e,r,i;if(!u(this,re)){A(this,re,!0),f(this,H,q).call(this);try{if(customElements.upgrade(this.mediaTheme),!(this.mediaTheme instanceof c.HTMLElement))throw""}catch{L("<media-theme> failed to upgrade!")}try{if(customElements.upgrade(this.media),!(this.media instanceof ua))throw""}catch{L("<mux-video> failed to upgrade!")}try{if(customElements.upgrade(this.mediaController),!(this.mediaController instanceof ma))throw""}catch{L("<media-controller> failed to upgrade!")}pt(this),f(this,Te,_t).call(this),f(this,Ce,Pt).call(this),f(this,Ae,Nt).call(this),A(this,S,(r=(e=this.mediaController)==null?void 0:e.hasAttribute("userinactive"))!=null?r:!0),f(this,xe,It).call(this),(i=this.media)==null||i.addEventListener("streamtypechange",()=>{f(this,H,q).call(this)})}},Ee=new WeakSet,St=function(){var e,r;try{(e=window==null?void 0:window.CSS)==null||e.registerProperty({name:"--media-primary-color",syntax:"<color>",inherits:!0}),(r=window==null?void 0:window.CSS)==null||r.registerProperty({name:"--media-secondary-color",syntax:"<color>",inherits:!0})}catch{}},se=new WeakSet,Ue=function(e){Object.assign(u(this,F),e),f(this,H,q).call(this)},H=new WeakSet,q=function(e={}){Tt(At(ha(this,{...u(this,F),...e})),this.shadowRoot)},Te=new WeakSet,_t=function(){let e=i=>{var m,h;if(!(i!=null&&i.startsWith("theme-")))return;let o=i.replace(/^theme-/,"");if(Be.includes(o))return;let s=this.getAttribute(i);s!=null?(m=this.mediaTheme)==null||m.setAttribute(o,s):(h=this.mediaTheme)==null||h.removeAttribute(o)};new MutationObserver(i=>{for(let{attributeName:o}of i)e(o)}).observe(this,{attributes:!0}),this.getAttributeNames().forEach(e)},Ce=new WeakSet,Pt=function(){var r;let e=i=>{let{detail:o}=i;if(o instanceof ve||(o=new ve(o.message,o.code,o.fatal)),!(o!=null&&o.fatal)){I(o),o.data&&I(`${o.name} data:`,o.data);return}let{dialog:s,devlog:m}=fe(o,!window.navigator.onLine,this.playbackId,this.playbackToken);m.message&&Pe(m),L(o),o.data&&L(`${o.name} data:`,o.data),f(this,se,Ue).call(this,{isDialogOpen:!0,dialog:s})};this.addEventListener("error",e),this.media&&(this.media.errorTranslator=(i={})=>{var s,m,h;if(!(((s=this.media)==null?void 0:s.error)instanceof ve))return i;let{devlog:o}=fe((m=this.media)==null?void 0:m.error,!window.navigator.onLine,this.playbackId,this.playbackToken,!1);return{player_error_code:(h=this.media)==null?void 0:h.error.code,player_error_message:o.message?String(o.message):i.player_error_message,player_error_context:o.context?String(o.context):i.player_error_context}}),(r=this.media)==null||r.addEventListener("error",i=>{var s,m;let{detail:o}=i;if(!o){let{message:h,code:x}=(m=(s=this.media)==null?void 0:s.error)!=null?m:{};o=new ve(h,x)}!(o!=null&&o.fatal)||this.dispatchEvent(new CustomEvent("error",{detail:o}))})},Ae=new WeakSet,Nt=function(){var r,i,o,s;let e=()=>f(this,H,q).call(this);(i=(r=this.media)==null?void 0:r.textTracks)==null||i.addEventListener("addtrack",e),(s=(o=this.media)==null?void 0:o.textTracks)==null||s.addEventListener("removetrack",e)},xe=new WeakSet,It=function(){var E,_;let e=/.*Version\/.*Safari\/.*/.test(navigator.userAgent);if(!/Firefox/i.test(navigator.userAgent))return;let i,o=new WeakMap,s=()=>this.streamType===w.LIVE&&!this.secondaryColor&&this.offsetWidth>=800,m=(g,v,C=!1)=>{if(s())return;Array.from(g&&g.activeCues||[]).forEach(p=>{if(!(!p.snapToLines||p.line<-5||p.line>=0&&p.line<10))if(!v||this.paused){let de=p.text.split(`
|
|
1293
|
+
`).length,G=e?-2:-3;this.streamType===w.LIVE&&(G=e?-1:-2);let Y=G-de;if(p.line===Y&&!C)return;o.has(p)||o.set(p,p.line),p.line=Y-1,p.line=Y}else setTimeout(()=>{p.line=o.get(p)||"auto"},500)})},h=()=>{var g,v;m(i,(v=(g=this.mediaController)==null?void 0:g.hasAttribute("userinactive"))!=null?v:!1)},x=()=>{var C,P;let v=Array.from(((P=(C=this.mediaController)==null?void 0:C.media)==null?void 0:P.textTracks)||[]).filter(p=>["subtitles","captions"].includes(p.kind)&&p.mode==="showing")[0];v!==i&&(i==null||i.removeEventListener("cuechange",h)),i=v,i==null||i.addEventListener("cuechange",h),m(i,u(this,S))};if(x(),(E=this.textTracks)==null||E.addEventListener("change",x),(_=this.textTracks)==null||_.addEventListener("addtrack",x),navigator.userAgent.includes("Chrome/")){let g=()=>{m(i,u(this,S),!0),this.paused||window.requestAnimationFrame(g)};this.addEventListener("playing",()=>{g()})}this.addEventListener("userinactivechange",()=>{var v,C;let g=(C=(v=this.mediaController)==null?void 0:v.hasAttribute("userinactive"))!=null?C:!0;u(this,S)!==g&&(A(this,S,g),m(i,u(this,S)))})};function Z(t,a){return t.media?t.media.getAttribute(a):t.getAttribute(a)}c.customElements.get("mux-player")||(c.customElements.define("mux-player",ie),c.MuxPlayerElement=ie);var Li=ie;export{ve as MediaError,Li as default,Z as getVideoAttribute};
|
package/dist/module.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/polyfills/index.ts":{"bytes":2117,"imports":[]},"../../node_modules/media-chrome/dist/constants.js":{"bytes":5028,"imports":[]},"../../node_modules/media-chrome/dist/labels/labels.js":{"bytes":1126,"imports":[]},"../../node_modules/media-chrome/dist/utils/utils.js":{"bytes":2307,"imports":[]},"../../node_modules/media-chrome/dist/utils/time.js":{"bytes":2660,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/element-utils.js":{"bytes":3423,"imports":[]},"../../node_modules/media-chrome/dist/utils/server-safe-globals.js":{"bytes":1203,"imports":[]},"../../node_modules/media-chrome/dist/media-chrome-button.js":{"bytes":7204,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-airplay-button.js":{"bytes":1834,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-cast-button.js":{"bytes":3805,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-gesture-receiver.js":{"bytes":5988,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-container.js":{"bytes":13381,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-gesture-receiver.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/attribute-token-list.js":{"bytes":3434,"imports":[]},"../../node_modules/media-chrome/dist/utils/captions.js":{"bytes":3960,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/fullscreen-api.js":{"bytes":812,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/platform-tests.js":{"bytes":1421,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/fullscreen-api.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/controller.js":{"bytes":21751,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/fullscreen-api.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/platform-tests.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-controller.js":{"bytes":22886,"imports":[{"path":"../../node_modules/media-chrome/dist/media-container.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/attribute-token-list.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/controller.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-chrome-range.js":{"bytes":12256,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-control-bar.js":{"bytes":4158,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-text-display.js":{"bytes":4193,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-duration-display.js":{"bytes":2096,"imports":[{"path":"../../node_modules/media-chrome/dist/media-text-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-time-display.js":{"bytes":7220,"imports":[{"path":"../../node_modules/media-chrome/dist/media-text-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-captions-button.js":{"bytes":5315,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-seek-forward-button.js":{"bytes":2830,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-fullscreen-button.js":{"bytes":3094,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-live-button.js":{"bytes":3306,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-mute-button.js":{"bytes":3423,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-pip-button.js":{"bytes":2665,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-play-button.js":{"bytes":2375,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-playback-rate-button.js":{"bytes":3551,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/attribute-token-list.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-poster-image.js":{"bytes":2608,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-seek-backward-button.js":{"bytes":2850,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-preview-time-display.js":{"bytes":2177,"imports":[{"path":"../../node_modules/media-chrome/dist/media-text-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-preview-thumbnail.js":{"bytes":5865,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-time-range.js":{"bytes":19909,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-loading-indicator.js":{"bytes":6425,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-volume-range.js":{"bytes":2744,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-chrome-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/index.js":{"bytes":2173,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/labels/labels.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/time.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-airplay-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-cast-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-gesture-receiver.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-controller.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-chrome-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-control-bar.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-duration-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-time-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-captions-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-seek-forward-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-fullscreen-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-live-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-mute-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-pip-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-play-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-playback-rate-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-poster-image.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-seek-backward-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-preview-time-display.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-preview-thumbnail.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-time-range.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-loading-indicator.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-volume-range.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js":{"bytes":14316,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-chrome-option.js":{"bytes":5926,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/resize-observer.js":{"bytes":828,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-chrome-selectmenu.js":{"bytes":13112,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/resize-observer.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-captions-listbox.js":{"bytes":6495,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-option.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/captions.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-captions-selectmenu.js":{"bytes":1267,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-selectmenu.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-captions-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-captions-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-playback-rate-listbox.js":{"bytes":4054,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-option.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-playback-rate-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/attribute-token-list.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-playback-rate-selectmenu.js":{"bytes":1355,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-selectmenu.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-playback-rate-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-playback-rate-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-rendition-listbox.js":{"bytes":4611,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-option.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-rendition-button.js":{"bytes":1439,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-rendition-selectmenu.js":{"bytes":1536,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-selectmenu.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-rendition-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-rendition-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-audio-track-listbox.js":{"bytes":4328,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-option.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-audio-track-button.js":{"bytes":1516,"imports":[{"path":"../../node_modules/media-chrome/dist/media-chrome-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/element-utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/media-audio-track-selectmenu.js":{"bytes":1567,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-selectmenu.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-audio-track-button.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-audio-track-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/experimental/index.js":{"bytes":1093,"imports":[{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-option.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-chrome-selectmenu.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-captions-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-captions-selectmenu.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-playback-rate-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-playback-rate-selectmenu.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-rendition-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-rendition-selectmenu.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-audio-track-listbox.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/media-audio-track-selectmenu.js","kind":"import-statement"}]},"../../node_modules/mux-embed/dist/mux.js":{"bytes":85194,"imports":[]},"../../node_modules/hls.js/dist/hls.mjs":{"bytes":889425,"imports":[]},"../playback-core/dist/index.mjs":{"bytes":18760,"imports":[{"path":"../../node_modules/mux-embed/dist/mux.js","kind":"import-statement"},{"path":"../../node_modules/hls.js/dist/hls.mjs","kind":"import-statement"}]},"../mux-video/dist/index.mjs":{"bytes":37681,"imports":[{"path":"../playback-core/dist/index.mjs","kind":"import-statement"}]},"lang/en.json":{"bytes":42,"imports":[]},"src/utils.ts":{"bytes":2741,"imports":[{"path":"lang/en.json","kind":"import-statement"}]},"src/helpers.ts":{"bytes":4911,"imports":[{"path":"../playback-core/dist/index.mjs","kind":"import-statement"},{"path":"src/utils.ts","kind":"import-statement"}]},"src/logger.ts":{"bytes":749,"imports":[{"path":"src/utils.ts","kind":"import-statement"},{"path":"src/helpers.ts","kind":"import-statement"}]},"src/video-api.ts":{"bytes":11381,"imports":[{"path":"src/polyfills/index.ts","kind":"import-statement"},{"path":"../mux-video/dist/index.mjs","kind":"import-statement"},{"path":"src/logger.ts","kind":"import-statement"},{"path":"src/utils.ts","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/template-parts.js":{"bytes":10364,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/utils/template-processor.js":{"bytes":6892,"imports":[{"path":"../../node_modules/media-chrome/dist/utils/template-parts.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"}]},"../../node_modules/media-chrome/dist/media-theme-element.js":{"bytes":8015,"imports":[{"path":"../../node_modules/media-chrome/dist/constants.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/server-safe-globals.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/template-parts.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/template-processor.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/utils.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/utils/template-parts.js","kind":"import-statement"}]},"src/styles.css":{"bytes":7158,"imports":[]},"src/media-chrome/dialog.ts":{"bytes":5731,"imports":[{"path":"src/polyfills/index.ts","kind":"import-statement"}]},"src/dialog.ts":{"bytes":1249,"imports":[{"path":"src/polyfills/index.ts","kind":"import-statement"},{"path":"src/media-chrome/dialog.ts","kind":"import-statement"}]},"src/html.ts":{"bytes":6956,"imports":[{"path":"src/polyfills/index.ts","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-theme-element.js","kind":"import-statement"}]},"src/template.ts":{"bytes":4716,"imports":[{"path":"../../node_modules/media-chrome/dist/media-theme-element.js","kind":"import-statement"},{"path":"src/styles.css","kind":"import-statement"},{"path":"src/dialog.ts","kind":"import-statement"},{"path":"src/helpers.ts","kind":"import-statement"},{"path":"src/html.ts","kind":"import-statement"},{"path":"src/utils.ts","kind":"import-statement"},{"path":"../playback-core/dist/index.mjs","kind":"import-statement"}]},"src/errors.ts":{"bytes":6273,"imports":[{"path":"../mux-video/dist/index.mjs","kind":"import-statement"},{"path":"lang/en.json","kind":"import-statement"},{"path":"src/utils.ts","kind":"import-statement"}]},"src/themes/gerwig/gerwig.html":{"bytes":43529,"imports":[]},"src/themes/gerwig/index.ts":{"bytes":574,"imports":[{"path":"src/themes/gerwig/gerwig.html","kind":"import-statement"},{"path":"src/polyfills/index.ts","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/media-theme-element.js","kind":"import-statement"}]},"src/index.ts":{"bytes":46741,"imports":[{"path":"src/polyfills/index.ts","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/index.js","kind":"import-statement"},{"path":"../../node_modules/media-chrome/dist/experimental/index.js","kind":"import-statement"},{"path":"../mux-video/dist/index.mjs","kind":"import-statement"},{"path":"../playback-core/dist/index.mjs","kind":"import-statement"},{"path":"src/video-api.ts","kind":"import-statement"},{"path":"src/helpers.ts","kind":"import-statement"},{"path":"src/template.ts","kind":"import-statement"},{"path":"src/html.ts","kind":"import-statement"},{"path":"src/errors.ts","kind":"import-statement"},{"path":"src/utils.ts","kind":"import-statement"},{"path":"src/logger.ts","kind":"import-statement"},{"path":"src/themes/gerwig/index.ts","kind":"import-statement"}]}},"outputs":{"dist/mux-player.mjs":{"imports":[],"exports":["MediaError","default","getVideoAttribute"],"entryPoint":"src/index.ts","inputs":{"../../node_modules/mux-embed/dist/mux.js":{"bytesInOutput":85670},"src/polyfills/index.ts":{"bytesInOutput":767},"../../node_modules/media-chrome/dist/constants.js":{"bytesInOutput":3474},"../../node_modules/media-chrome/dist/labels/labels.js":{"bytesInOutput":835},"../../node_modules/media-chrome/dist/utils/utils.js":{"bytesInOutput":1010},"../../node_modules/media-chrome/dist/utils/time.js":{"bytesInOutput":1120},"../../node_modules/media-chrome/dist/utils/element-utils.js":{"bytesInOutput":1388},"../../node_modules/media-chrome/dist/utils/server-safe-globals.js":{"bytesInOutput":645},"../../node_modules/media-chrome/dist/media-chrome-button.js":{"bytesInOutput":4353},"../../node_modules/media-chrome/dist/media-airplay-button.js":{"bytesInOutput":1009},"../../node_modules/media-chrome/dist/media-cast-button.js":{"bytesInOutput":2530},"../../node_modules/media-chrome/dist/media-gesture-receiver.js":{"bytesInOutput":2995},"../../node_modules/media-chrome/dist/media-container.js":{"bytesInOutput":8021},"../../node_modules/media-chrome/dist/utils/attribute-token-list.js":{"bytesInOutput":1680},"../../node_modules/media-chrome/dist/utils/captions.js":{"bytesInOutput":1459},"../../node_modules/media-chrome/dist/utils/fullscreen-api.js":{"bytesInOutput":547},"../../node_modules/media-chrome/dist/utils/platform-tests.js":{"bytesInOutput":445},"../../node_modules/media-chrome/dist/controller.js":{"bytesInOutput":11366},"../../node_modules/media-chrome/dist/media-controller.js":{"bytesInOutput":10152},"../../node_modules/media-chrome/dist/media-chrome-range.js":{"bytesInOutput":8880},"../../node_modules/media-chrome/dist/media-control-bar.js":{"bytesInOutput":2426},"../../node_modules/media-chrome/dist/media-text-display.js":{"bytesInOutput":2543},"../../node_modules/media-chrome/dist/media-duration-display.js":{"bytesInOutput":914},"../../node_modules/media-chrome/dist/media-time-display.js":{"bytesInOutput":3544},"../../node_modules/media-chrome/dist/media-captions-button.js":{"bytesInOutput":3819},"../../node_modules/media-chrome/dist/media-seek-forward-button.js":{"bytesInOutput":1438},"../../node_modules/media-chrome/dist/media-fullscreen-button.js":{"bytesInOutput":1780},"../../node_modules/media-chrome/dist/media-live-button.js":{"bytesInOutput":1891},"../../node_modules/media-chrome/dist/media-mute-button.js":{"bytesInOutput":2245},"../../node_modules/media-chrome/dist/media-pip-button.js":{"bytesInOutput":1458},"../../node_modules/media-chrome/dist/media-play-button.js":{"bytesInOutput":1277},"../../node_modules/media-chrome/dist/media-playback-rate-button.js":{"bytesInOutput":1625},"../../node_modules/media-chrome/dist/media-poster-image.js":{"bytesInOutput":1618},"../../node_modules/media-chrome/dist/media-seek-backward-button.js":{"bytesInOutput":1450},"../../node_modules/media-chrome/dist/media-preview-time-display.js":{"bytesInOutput":953},"../../node_modules/media-chrome/dist/media-preview-thumbnail.js":{"bytesInOutput":3023},"../../node_modules/media-chrome/dist/media-time-range.js":{"bytesInOutput":11662},"../../node_modules/media-chrome/dist/media-loading-indicator.js":{"bytesInOutput":3861},"../../node_modules/media-chrome/dist/media-volume-range.js":{"bytesInOutput":1227},"../../node_modules/media-chrome/dist/experimental/media-chrome-listbox.js":{"bytesInOutput":8029},"../../node_modules/media-chrome/dist/experimental/media-chrome-option.js":{"bytesInOutput":3630},"../../node_modules/media-chrome/dist/utils/resize-observer.js":{"bytesInOutput":260},"../../node_modules/media-chrome/dist/experimental/media-chrome-selectmenu.js":{"bytesInOutput":7085},"../../node_modules/media-chrome/dist/experimental/media-captions-listbox.js":{"bytesInOutput":3735},"../../node_modules/media-chrome/dist/experimental/media-captions-selectmenu.js":{"bytesInOutput":532},"../../node_modules/media-chrome/dist/experimental/media-playback-rate-listbox.js":{"bytesInOutput":1803},"../../node_modules/media-chrome/dist/experimental/media-playback-rate-selectmenu.js":{"bytesInOutput":552},"../../node_modules/media-chrome/dist/experimental/media-rendition-listbox.js":{"bytesInOutput":2177},"../../node_modules/media-chrome/dist/experimental/media-rendition-button.js":{"bytesInOutput":723},"../../node_modules/media-chrome/dist/experimental/media-rendition-selectmenu.js":{"bytesInOutput":661},"../../node_modules/media-chrome/dist/experimental/media-audio-track-listbox.js":{"bytesInOutput":1986},"../../node_modules/media-chrome/dist/experimental/media-audio-track-button.js":{"bytesInOutput":790},"../../node_modules/media-chrome/dist/experimental/media-audio-track-selectmenu.js":{"bytesInOutput":672},"../playback-core/dist/index.mjs":{"bytesInOutput":17572},"../../node_modules/hls.js/dist/hls.mjs":{"bytesInOutput":357127},"../mux-video/dist/index.mjs":{"bytesInOutput":37570},"lang/en.json":{"bytesInOutput":25},"src/utils.ts":{"bytesInOutput":1145},"src/helpers.ts":{"bytesInOutput":1821},"src/logger.ts":{"bytesInOutput":314},"src/video-api.ts":{"bytesInOutput":4794},"../../node_modules/media-chrome/dist/utils/template-parts.js":{"bytesInOutput":4812},"../../node_modules/media-chrome/dist/utils/template-processor.js":{"bytesInOutput":2919},"../../node_modules/media-chrome/dist/media-theme-element.js":{"bytesInOutput":4196},"src/styles.css":{"bytesInOutput":7168},"src/media-chrome/dialog.ts":{"bytesInOutput":3546},"src/dialog.ts":{"bytesInOutput":972},"src/html.ts":{"bytesInOutput":2537},"src/template.ts":{"bytesInOutput":3744},"src/errors.ts":{"bytesInOutput":3242},"src/themes/gerwig/gerwig.html":{"bytesInOutput":43539},"src/themes/gerwig/index.ts":{"bytesInOutput":276},"src/index.ts":{"bytesInOutput":20849}},"bytes":749136}}}
|